Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 99428
Collapse All | Expand All

(-)darimasen-0.0.8/Makefile.in (-7 / +10 lines)
Lines 1-4 Link Here
1
# Makefile.in generated by automake 1.7.6 from Makefile.am.
1
# Makefile.in generated by automake 1.7.9 from Makefile.am.
2
# @configure_input@
2
# @configure_input@
3
3
4
# Copyright 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003
4
# Copyright 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003
Lines 85-90 Link Here
85
PACKAGE_VERSION = @PACKAGE_VERSION@
85
PACKAGE_VERSION = @PACKAGE_VERSION@
86
PATH_SEPARATOR = @PATH_SEPARATOR@
86
PATH_SEPARATOR = @PATH_SEPARATOR@
87
PKG_CFLAGS = @PKG_CFLAGS@
87
PKG_CFLAGS = @PKG_CFLAGS@
88
PKG_CONFIG = @PKG_CONFIG@
88
PKG_LIBS = @PKG_LIBS@
89
PKG_LIBS = @PKG_LIBS@
89
RANLIB = @RANLIB@
90
RANLIB = @RANLIB@
90
SET_MAKE = @SET_MAKE@
91
SET_MAKE = @SET_MAKE@
Lines 156-165 Link Here
156
	all-recursive install-data-recursive install-exec-recursive \
157
	all-recursive install-data-recursive install-exec-recursive \
157
	installdirs-recursive install-recursive uninstall-recursive \
158
	installdirs-recursive install-recursive uninstall-recursive \
158
	check-recursive installcheck-recursive
159
	check-recursive installcheck-recursive
159
DIST_COMMON = README AUTHORS COPYING ChangeLog INSTALL Makefile.am \
160
DIST_COMMON = README $(srcdir)/Makefile.in $(srcdir)/configure AUTHORS \
160
	Makefile.in NEWS TODO aclocal.m4 config.guess config.h.in \
161
	COPYING ChangeLog INSTALL Makefile.am NEWS TODO aclocal.m4 \
161
	config.sub configure configure.in depcomp install-sh ltmain.sh \
162
	config.guess config.h.in config.sub configure configure.in \
162
	missing mkinstalldirs
163
	depcomp install-sh ltmain.sh missing mkinstalldirs
163
DIST_SUBDIRS = $(SUBDIRS)
164
DIST_SUBDIRS = $(SUBDIRS)
164
all: config.h
165
all: config.h
165
	$(MAKE) $(AM_MAKEFLAGS) all-recursive
166
	$(MAKE) $(AM_MAKEFLAGS) all-recursive
Lines 493-499 Link Here
493
installcheck: installcheck-recursive
494
installcheck: installcheck-recursive
494
install-strip:
495
install-strip:
495
	$(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
496
	$(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
496
	  INSTALL_STRIP_FLAG=-s \
497
	  install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
497
	  `test -z '$(STRIP)' || \
498
	  `test -z '$(STRIP)' || \
498
	    echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install
499
	    echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install
499
mostlyclean-generic:
500
mostlyclean-generic:
Lines 501-507 Link Here
501
clean-generic:
502
clean-generic:
502
503
503
distclean-generic:
504
distclean-generic:
504
	-rm -f Makefile $(CONFIG_CLEAN_FILES)
505
	-rm -f $(CONFIG_CLEAN_FILES)
505
506
506
maintainer-clean-generic:
507
maintainer-clean-generic:
507
	@echo "This command is intended for maintainers to use"
508
	@echo "This command is intended for maintainers to use"
Lines 512-517 Link Here
512
513
513
distclean: distclean-recursive
514
distclean: distclean-recursive
514
	-rm -f $(am__CONFIG_DISTCLEAN_FILES)
515
	-rm -f $(am__CONFIG_DISTCLEAN_FILES)
516
	-rm -f Makefile
515
distclean-am: clean-am distclean-generic distclean-hdr distclean-libtool \
517
distclean-am: clean-am distclean-generic distclean-hdr distclean-libtool \
516
	distclean-tags
518
	distclean-tags
517
519
Lines 536-541 Link Here
536
maintainer-clean: maintainer-clean-recursive
538
maintainer-clean: maintainer-clean-recursive
537
	-rm -f $(am__CONFIG_DISTCLEAN_FILES)
539
	-rm -f $(am__CONFIG_DISTCLEAN_FILES)
538
	-rm -rf $(top_srcdir)/autom4te.cache
540
	-rm -rf $(top_srcdir)/autom4te.cache
541
	-rm -f Makefile
539
maintainer-clean-am: distclean-am maintainer-clean-generic
542
maintainer-clean-am: distclean-am maintainer-clean-generic
540
543
541
mostlyclean: mostlyclean-recursive
544
mostlyclean: mostlyclean-recursive
(-)darimasen-0.0.8/aclocal.m4 (+7308 lines)
Line 0 Link Here
1
# generated automatically by aclocal 1.7.9 -*- Autoconf -*-
2
3
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002
4
# Free Software Foundation, Inc.
5
# This file is free software; the Free Software Foundation
6
# gives unlimited permission to copy and/or distribute it,
7
# with or without modifications, as long as this notice is preserved.
8
9
# This program is distributed in the hope that it will be useful,
10
# but WITHOUT ANY WARRANTY, to the extent permitted by law; without
11
# even the implied warranty of MERCHANTABILITY or FITNESS FOR A
12
# PARTICULAR PURPOSE.
13
14
# Do all the work for Automake.                            -*- Autoconf -*-
15
16
# This macro actually does too much some checks are only needed if
17
# your package does certain things.  But this isn't really a big deal.
18
19
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003
20
# Free Software Foundation, Inc.
21
22
# This program is free software; you can redistribute it and/or modify
23
# it under the terms of the GNU General Public License as published by
24
# the Free Software Foundation; either version 2, or (at your option)
25
# any later version.
26
27
# This program is distributed in the hope that it will be useful,
28
# but WITHOUT ANY WARRANTY; without even the implied warranty of
29
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
30
# GNU General Public License for more details.
31
32
# You should have received a copy of the GNU General Public License
33
# along with this program; if not, write to the Free Software
34
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
35
# 02111-1307, USA.
36
37
# serial 10
38
39
AC_PREREQ([2.54])
40
41
# Autoconf 2.50 wants to disallow AM_ names.  We explicitly allow
42
# the ones we care about.
43
m4_pattern_allow([^AM_[A-Z]+FLAGS$])dnl
44
45
# AM_INIT_AUTOMAKE(PACKAGE, VERSION, [NO-DEFINE])
46
# AM_INIT_AUTOMAKE([OPTIONS])
47
# -----------------------------------------------
48
# The call with PACKAGE and VERSION arguments is the old style
49
# call (pre autoconf-2.50), which is being phased out.  PACKAGE
50
# and VERSION should now be passed to AC_INIT and removed from
51
# the call to AM_INIT_AUTOMAKE.
52
# We support both call styles for the transition.  After
53
# the next Automake release, Autoconf can make the AC_INIT
54
# arguments mandatory, and then we can depend on a new Autoconf
55
# release and drop the old call support.
56
AC_DEFUN([AM_INIT_AUTOMAKE],
57
[AC_REQUIRE([AM_SET_CURRENT_AUTOMAKE_VERSION])dnl
58
 AC_REQUIRE([AC_PROG_INSTALL])dnl
59
# test to see if srcdir already configured
60
if test "`cd $srcdir && pwd`" != "`pwd`" &&
61
   test -f $srcdir/config.status; then
62
  AC_MSG_ERROR([source directory already configured; run "make distclean" there first])
63
fi
64
65
# test whether we have cygpath
66
if test -z "$CYGPATH_W"; then
67
  if (cygpath --version) >/dev/null 2>/dev/null; then
68
    CYGPATH_W='cygpath -w'
69
  else
70
    CYGPATH_W=echo
71
  fi
72
fi
73
AC_SUBST([CYGPATH_W])
74
75
# Define the identity of the package.
76
dnl Distinguish between old-style and new-style calls.
77
m4_ifval([$2],
78
[m4_ifval([$3], [_AM_SET_OPTION([no-define])])dnl
79
 AC_SUBST([PACKAGE], [$1])dnl
80
 AC_SUBST([VERSION], [$2])],
81
[_AM_SET_OPTIONS([$1])dnl
82
 AC_SUBST([PACKAGE], ['AC_PACKAGE_TARNAME'])dnl
83
 AC_SUBST([VERSION], ['AC_PACKAGE_VERSION'])])dnl
84
85
_AM_IF_OPTION([no-define],,
86
[AC_DEFINE_UNQUOTED(PACKAGE, "$PACKAGE", [Name of package])
87
 AC_DEFINE_UNQUOTED(VERSION, "$VERSION", [Version number of package])])dnl
88
89
# Some tools Automake needs.
90
AC_REQUIRE([AM_SANITY_CHECK])dnl
91
AC_REQUIRE([AC_ARG_PROGRAM])dnl
92
AM_MISSING_PROG(ACLOCAL, aclocal-${am__api_version})
93
AM_MISSING_PROG(AUTOCONF, autoconf)
94
AM_MISSING_PROG(AUTOMAKE, automake-${am__api_version})
95
AM_MISSING_PROG(AUTOHEADER, autoheader)
96
AM_MISSING_PROG(MAKEINFO, makeinfo)
97
AM_MISSING_PROG(AMTAR, tar)
98
AM_PROG_INSTALL_SH
99
AM_PROG_INSTALL_STRIP
100
# We need awk for the "check" target.  The system "awk" is bad on
101
# some platforms.
102
AC_REQUIRE([AC_PROG_AWK])dnl
103
AC_REQUIRE([AC_PROG_MAKE_SET])dnl
104
AC_REQUIRE([AM_SET_LEADING_DOT])dnl
105
106
_AM_IF_OPTION([no-dependencies],,
107
[AC_PROVIDE_IFELSE([AC_PROG_CC],
108
                  [_AM_DEPENDENCIES(CC)],
109
                  [define([AC_PROG_CC],
110
                          defn([AC_PROG_CC])[_AM_DEPENDENCIES(CC)])])dnl
111
AC_PROVIDE_IFELSE([AC_PROG_CXX],
112
                  [_AM_DEPENDENCIES(CXX)],
113
                  [define([AC_PROG_CXX],
114
                          defn([AC_PROG_CXX])[_AM_DEPENDENCIES(CXX)])])dnl
115
])
116
])
117
118
119
# When config.status generates a header, we must update the stamp-h file.
120
# This file resides in the same directory as the config header
121
# that is generated.  The stamp files are numbered to have different names.
122
123
# Autoconf calls _AC_AM_CONFIG_HEADER_HOOK (when defined) in the
124
# loop where config.status creates the headers, so we can generate
125
# our stamp files there.
126
AC_DEFUN([_AC_AM_CONFIG_HEADER_HOOK],
127
[# Compute $1's index in $config_headers.
128
_am_stamp_count=1
129
for _am_header in $config_headers :; do
130
  case $_am_header in
131
    $1 | $1:* )
132
      break ;;
133
    * )
134
      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
135
  esac
136
done
137
echo "timestamp for $1" >`AS_DIRNAME([$1])`/stamp-h[]$_am_stamp_count])
138
139
# Copyright 2002  Free Software Foundation, Inc.
140
141
# This program is free software; you can redistribute it and/or modify
142
# it under the terms of the GNU General Public License as published by
143
# the Free Software Foundation; either version 2, or (at your option)
144
# any later version.
145
146
# This program is distributed in the hope that it will be useful,
147
# but WITHOUT ANY WARRANTY; without even the implied warranty of
148
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
149
# GNU General Public License for more details.
150
151
# You should have received a copy of the GNU General Public License
152
# along with this program; if not, write to the Free Software
153
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
154
155
# AM_AUTOMAKE_VERSION(VERSION)
156
# ----------------------------
157
# Automake X.Y traces this macro to ensure aclocal.m4 has been
158
# generated from the m4 files accompanying Automake X.Y.
159
AC_DEFUN([AM_AUTOMAKE_VERSION],[am__api_version="1.7"])
160
161
# AM_SET_CURRENT_AUTOMAKE_VERSION
162
# -------------------------------
163
# Call AM_AUTOMAKE_VERSION so it can be traced.
164
# This function is AC_REQUIREd by AC_INIT_AUTOMAKE.
165
AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION],
166
	 [AM_AUTOMAKE_VERSION([1.7.9])])
167
168
# Helper functions for option handling.                    -*- Autoconf -*-
169
170
# Copyright 2001, 2002  Free Software Foundation, Inc.
171
172
# This program is free software; you can redistribute it and/or modify
173
# it under the terms of the GNU General Public License as published by
174
# the Free Software Foundation; either version 2, or (at your option)
175
# any later version.
176
177
# This program is distributed in the hope that it will be useful,
178
# but WITHOUT ANY WARRANTY; without even the implied warranty of
179
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
180
# GNU General Public License for more details.
181
182
# You should have received a copy of the GNU General Public License
183
# along with this program; if not, write to the Free Software
184
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
185
# 02111-1307, USA.
186
187
# serial 2
188
189
# _AM_MANGLE_OPTION(NAME)
190
# -----------------------
191
AC_DEFUN([_AM_MANGLE_OPTION],
192
[[_AM_OPTION_]m4_bpatsubst($1, [[^a-zA-Z0-9_]], [_])])
193
194
# _AM_SET_OPTION(NAME)
195
# ------------------------------
196
# Set option NAME.  Presently that only means defining a flag for this option.
197
AC_DEFUN([_AM_SET_OPTION],
198
[m4_define(_AM_MANGLE_OPTION([$1]), 1)])
199
200
# _AM_SET_OPTIONS(OPTIONS)
201
# ----------------------------------
202
# OPTIONS is a space-separated list of Automake options.
203
AC_DEFUN([_AM_SET_OPTIONS],
204
[AC_FOREACH([_AM_Option], [$1], [_AM_SET_OPTION(_AM_Option)])])
205
206
# _AM_IF_OPTION(OPTION, IF-SET, [IF-NOT-SET])
207
# -------------------------------------------
208
# Execute IF-SET if OPTION is set, IF-NOT-SET otherwise.
209
AC_DEFUN([_AM_IF_OPTION],
210
[m4_ifset(_AM_MANGLE_OPTION([$1]), [$2], [$3])])
211
212
#
213
# Check to make sure that the build environment is sane.
214
#
215
216
# Copyright 1996, 1997, 2000, 2001 Free Software Foundation, Inc.
217
218
# This program is free software; you can redistribute it and/or modify
219
# it under the terms of the GNU General Public License as published by
220
# the Free Software Foundation; either version 2, or (at your option)
221
# any later version.
222
223
# This program is distributed in the hope that it will be useful,
224
# but WITHOUT ANY WARRANTY; without even the implied warranty of
225
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
226
# GNU General Public License for more details.
227
228
# You should have received a copy of the GNU General Public License
229
# along with this program; if not, write to the Free Software
230
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
231
# 02111-1307, USA.
232
233
# serial 3
234
235
# AM_SANITY_CHECK
236
# ---------------
237
AC_DEFUN([AM_SANITY_CHECK],
238
[AC_MSG_CHECKING([whether build environment is sane])
239
# Just in case
240
sleep 1
241
echo timestamp > conftest.file
242
# Do `set' in a subshell so we don't clobber the current shell's
243
# arguments.  Must try -L first in case configure is actually a
244
# symlink; some systems play weird games with the mod time of symlinks
245
# (eg FreeBSD returns the mod time of the symlink's containing
246
# directory).
247
if (
248
   set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
249
   if test "$[*]" = "X"; then
250
      # -L didn't work.
251
      set X `ls -t $srcdir/configure conftest.file`
252
   fi
253
   rm -f conftest.file
254
   if test "$[*]" != "X $srcdir/configure conftest.file" \
255
      && test "$[*]" != "X conftest.file $srcdir/configure"; then
256
257
      # If neither matched, then we have a broken ls.  This can happen
258
      # if, for instance, CONFIG_SHELL is bash and it inherits a
259
      # broken ls alias from the environment.  This has actually
260
      # happened.  Such a system could not be considered "sane".
261
      AC_MSG_ERROR([ls -t appears to fail.  Make sure there is not a broken
262
alias in your environment])
263
   fi
264
265
   test "$[2]" = conftest.file
266
   )
267
then
268
   # Ok.
269
   :
270
else
271
   AC_MSG_ERROR([newly created file is older than distributed files!
272
Check your system clock])
273
fi
274
AC_MSG_RESULT(yes)])
275
276
#  -*- Autoconf -*-
277
278
279
# Copyright 1997, 1999, 2000, 2001 Free Software Foundation, Inc.
280
281
# This program is free software; you can redistribute it and/or modify
282
# it under the terms of the GNU General Public License as published by
283
# the Free Software Foundation; either version 2, or (at your option)
284
# any later version.
285
286
# This program is distributed in the hope that it will be useful,
287
# but WITHOUT ANY WARRANTY; without even the implied warranty of
288
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
289
# GNU General Public License for more details.
290
291
# You should have received a copy of the GNU General Public License
292
# along with this program; if not, write to the Free Software
293
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
294
# 02111-1307, USA.
295
296
# serial 3
297
298
# AM_MISSING_PROG(NAME, PROGRAM)
299
# ------------------------------
300
AC_DEFUN([AM_MISSING_PROG],
301
[AC_REQUIRE([AM_MISSING_HAS_RUN])
302
$1=${$1-"${am_missing_run}$2"}
303
AC_SUBST($1)])
304
305
306
# AM_MISSING_HAS_RUN
307
# ------------------
308
# Define MISSING if not defined so far and test if it supports --run.
309
# If it does, set am_missing_run to use it, otherwise, to nothing.
310
AC_DEFUN([AM_MISSING_HAS_RUN],
311
[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
312
test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
313
# Use eval to expand $SHELL
314
if eval "$MISSING --run true"; then
315
  am_missing_run="$MISSING --run "
316
else
317
  am_missing_run=
318
  AC_MSG_WARN([`missing' script is too old or missing])
319
fi
320
])
321
322
# AM_AUX_DIR_EXPAND
323
324
# Copyright 2001 Free Software Foundation, Inc.
325
326
# This program is free software; you can redistribute it and/or modify
327
# it under the terms of the GNU General Public License as published by
328
# the Free Software Foundation; either version 2, or (at your option)
329
# any later version.
330
331
# This program is distributed in the hope that it will be useful,
332
# but WITHOUT ANY WARRANTY; without even the implied warranty of
333
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
334
# GNU General Public License for more details.
335
336
# You should have received a copy of the GNU General Public License
337
# along with this program; if not, write to the Free Software
338
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
339
# 02111-1307, USA.
340
341
# For projects using AC_CONFIG_AUX_DIR([foo]), Autoconf sets
342
# $ac_aux_dir to `$srcdir/foo'.  In other projects, it is set to
343
# `$srcdir', `$srcdir/..', or `$srcdir/../..'.
344
#
345
# Of course, Automake must honor this variable whenever it calls a
346
# tool from the auxiliary directory.  The problem is that $srcdir (and
347
# therefore $ac_aux_dir as well) can be either absolute or relative,
348
# depending on how configure is run.  This is pretty annoying, since
349
# it makes $ac_aux_dir quite unusable in subdirectories: in the top
350
# source directory, any form will work fine, but in subdirectories a
351
# relative path needs to be adjusted first.
352
#
353
# $ac_aux_dir/missing
354
#    fails when called from a subdirectory if $ac_aux_dir is relative
355
# $top_srcdir/$ac_aux_dir/missing
356
#    fails if $ac_aux_dir is absolute,
357
#    fails when called from a subdirectory in a VPATH build with
358
#          a relative $ac_aux_dir
359
#
360
# The reason of the latter failure is that $top_srcdir and $ac_aux_dir
361
# are both prefixed by $srcdir.  In an in-source build this is usually
362
# harmless because $srcdir is `.', but things will broke when you
363
# start a VPATH build or use an absolute $srcdir.
364
#
365
# So we could use something similar to $top_srcdir/$ac_aux_dir/missing,
366
# iff we strip the leading $srcdir from $ac_aux_dir.  That would be:
367
#   am_aux_dir='\$(top_srcdir)/'`expr "$ac_aux_dir" : "$srcdir//*\(.*\)"`
368
# and then we would define $MISSING as
369
#   MISSING="\${SHELL} $am_aux_dir/missing"
370
# This will work as long as MISSING is not called from configure, because
371
# unfortunately $(top_srcdir) has no meaning in configure.
372
# However there are other variables, like CC, which are often used in
373
# configure, and could therefore not use this "fixed" $ac_aux_dir.
374
#
375
# Another solution, used here, is to always expand $ac_aux_dir to an
376
# absolute PATH.  The drawback is that using absolute paths prevent a
377
# configured tree to be moved without reconfiguration.
378
379
# Rely on autoconf to set up CDPATH properly.
380
AC_PREREQ([2.50])
381
382
AC_DEFUN([AM_AUX_DIR_EXPAND], [
383
# expand $ac_aux_dir to an absolute path
384
am_aux_dir=`cd $ac_aux_dir && pwd`
385
])
386
387
# AM_PROG_INSTALL_SH
388
# ------------------
389
# Define $install_sh.
390
391
# Copyright 2001 Free Software Foundation, Inc.
392
393
# This program is free software; you can redistribute it and/or modify
394
# it under the terms of the GNU General Public License as published by
395
# the Free Software Foundation; either version 2, or (at your option)
396
# any later version.
397
398
# This program is distributed in the hope that it will be useful,
399
# but WITHOUT ANY WARRANTY; without even the implied warranty of
400
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
401
# GNU General Public License for more details.
402
403
# You should have received a copy of the GNU General Public License
404
# along with this program; if not, write to the Free Software
405
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
406
# 02111-1307, USA.
407
408
AC_DEFUN([AM_PROG_INSTALL_SH],
409
[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
410
install_sh=${install_sh-"$am_aux_dir/install-sh"}
411
AC_SUBST(install_sh)])
412
413
# AM_PROG_INSTALL_STRIP
414
415
# Copyright 2001 Free Software Foundation, Inc.
416
417
# This program is free software; you can redistribute it and/or modify
418
# it under the terms of the GNU General Public License as published by
419
# the Free Software Foundation; either version 2, or (at your option)
420
# any later version.
421
422
# This program is distributed in the hope that it will be useful,
423
# but WITHOUT ANY WARRANTY; without even the implied warranty of
424
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
425
# GNU General Public License for more details.
426
427
# You should have received a copy of the GNU General Public License
428
# along with this program; if not, write to the Free Software
429
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
430
# 02111-1307, USA.
431
432
# One issue with vendor `install' (even GNU) is that you can't
433
# specify the program used to strip binaries.  This is especially
434
# annoying in cross-compiling environments, where the build's strip
435
# is unlikely to handle the host's binaries.
436
# Fortunately install-sh will honor a STRIPPROG variable, so we
437
# always use install-sh in `make install-strip', and initialize
438
# STRIPPROG with the value of the STRIP variable (set by the user).
439
AC_DEFUN([AM_PROG_INSTALL_STRIP],
440
[AC_REQUIRE([AM_PROG_INSTALL_SH])dnl
441
# Installed binaries are usually stripped using `strip' when the user
442
# run `make install-strip'.  However `strip' might not be the right
443
# tool to use in cross-compilation environments, therefore Automake
444
# will honor the `STRIP' environment variable to overrule this program.
445
dnl Don't test for $cross_compiling = yes, because it might be `maybe'.
446
if test "$cross_compiling" != no; then
447
  AC_CHECK_TOOL([STRIP], [strip], :)
448
fi
449
INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
450
AC_SUBST([INSTALL_STRIP_PROGRAM])])
451
452
#                                                          -*- Autoconf -*-
453
# Copyright (C) 2003  Free Software Foundation, Inc.
454
455
# This program is free software; you can redistribute it and/or modify
456
# it under the terms of the GNU General Public License as published by
457
# the Free Software Foundation; either version 2, or (at your option)
458
# any later version.
459
460
# This program is distributed in the hope that it will be useful,
461
# but WITHOUT ANY WARRANTY; without even the implied warranty of
462
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
463
# GNU General Public License for more details.
464
465
# You should have received a copy of the GNU General Public License
466
# along with this program; if not, write to the Free Software
467
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
468
# 02111-1307, USA.
469
470
# serial 1
471
472
# Check whether the underlying file-system supports filenames
473
# with a leading dot.  For instance MS-DOS doesn't.
474
AC_DEFUN([AM_SET_LEADING_DOT],
475
[rm -rf .tst 2>/dev/null
476
mkdir .tst 2>/dev/null
477
if test -d .tst; then
478
  am__leading_dot=.
479
else
480
  am__leading_dot=_
481
fi
482
rmdir .tst 2>/dev/null
483
AC_SUBST([am__leading_dot])])
484
485
# serial 5						-*- Autoconf -*-
486
487
# Copyright (C) 1999, 2000, 2001, 2002, 2003  Free Software Foundation, Inc.
488
489
# This program is free software; you can redistribute it and/or modify
490
# it under the terms of the GNU General Public License as published by
491
# the Free Software Foundation; either version 2, or (at your option)
492
# any later version.
493
494
# This program is distributed in the hope that it will be useful,
495
# but WITHOUT ANY WARRANTY; without even the implied warranty of
496
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
497
# GNU General Public License for more details.
498
499
# You should have received a copy of the GNU General Public License
500
# along with this program; if not, write to the Free Software
501
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
502
# 02111-1307, USA.
503
504
505
# There are a few dirty hacks below to avoid letting `AC_PROG_CC' be
506
# written in clear, in which case automake, when reading aclocal.m4,
507
# will think it sees a *use*, and therefore will trigger all it's
508
# C support machinery.  Also note that it means that autoscan, seeing
509
# CC etc. in the Makefile, will ask for an AC_PROG_CC use...
510
511
512
513
# _AM_DEPENDENCIES(NAME)
514
# ----------------------
515
# See how the compiler implements dependency checking.
516
# NAME is "CC", "CXX", "GCJ", or "OBJC".
517
# We try a few techniques and use that to set a single cache variable.
518
#
519
# We don't AC_REQUIRE the corresponding AC_PROG_CC since the latter was
520
# modified to invoke _AM_DEPENDENCIES(CC); we would have a circular
521
# dependency, and given that the user is not expected to run this macro,
522
# just rely on AC_PROG_CC.
523
AC_DEFUN([_AM_DEPENDENCIES],
524
[AC_REQUIRE([AM_SET_DEPDIR])dnl
525
AC_REQUIRE([AM_OUTPUT_DEPENDENCY_COMMANDS])dnl
526
AC_REQUIRE([AM_MAKE_INCLUDE])dnl
527
AC_REQUIRE([AM_DEP_TRACK])dnl
528
529
ifelse([$1], CC,   [depcc="$CC"   am_compiler_list=],
530
       [$1], CXX,  [depcc="$CXX"  am_compiler_list=],
531
       [$1], OBJC, [depcc="$OBJC" am_compiler_list='gcc3 gcc'],
532
       [$1], GCJ,  [depcc="$GCJ"  am_compiler_list='gcc3 gcc'],
533
                   [depcc="$$1"   am_compiler_list=])
534
535
AC_CACHE_CHECK([dependency style of $depcc],
536
               [am_cv_$1_dependencies_compiler_type],
537
[if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
538
  # We make a subdir and do the tests there.  Otherwise we can end up
539
  # making bogus files that we don't know about and never remove.  For
540
  # instance it was reported that on HP-UX the gcc test will end up
541
  # making a dummy file named `D' -- because `-MD' means `put the output
542
  # in D'.
543
  mkdir conftest.dir
544
  # Copy depcomp to subdir because otherwise we won't find it if we're
545
  # using a relative directory.
546
  cp "$am_depcomp" conftest.dir
547
  cd conftest.dir
548
  # We will build objects and dependencies in a subdirectory because
549
  # it helps to detect inapplicable dependency modes.  For instance
550
  # both Tru64's cc and ICC support -MD to output dependencies as a
551
  # side effect of compilation, but ICC will put the dependencies in
552
  # the current directory while Tru64 will put them in the object
553
  # directory.
554
  mkdir sub
555
556
  am_cv_$1_dependencies_compiler_type=none
557
  if test "$am_compiler_list" = ""; then
558
     am_compiler_list=`sed -n ['s/^#*\([a-zA-Z0-9]*\))$/\1/p'] < ./depcomp`
559
  fi
560
  for depmode in $am_compiler_list; do
561
    # Setup a source with many dependencies, because some compilers
562
    # like to wrap large dependency lists on column 80 (with \), and
563
    # we should not choose a depcomp mode which is confused by this.
564
    #
565
    # We need to recreate these files for each test, as the compiler may
566
    # overwrite some of them when testing with obscure command lines.
567
    # This happens at least with the AIX C compiler.
568
    : > sub/conftest.c
569
    for i in 1 2 3 4 5 6; do
570
      echo '#include "conftst'$i'.h"' >> sub/conftest.c
571
      : > sub/conftst$i.h
572
    done
573
    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
574
575
    case $depmode in
576
    nosideeffect)
577
      # after this tag, mechanisms are not by side-effect, so they'll
578
      # only be used when explicitly requested
579
      if test "x$enable_dependency_tracking" = xyes; then
580
	continue
581
      else
582
	break
583
      fi
584
      ;;
585
    none) break ;;
586
    esac
587
    # We check with `-c' and `-o' for the sake of the "dashmstdout"
588
    # mode.  It turns out that the SunPro C++ compiler does not properly
589
    # handle `-M -o', and we need to detect this.
590
    if depmode=$depmode \
591
       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
592
       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
593
       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
594
         >/dev/null 2>conftest.err &&
595
       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
596
       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
597
       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
598
      # icc doesn't choke on unknown options, it will just issue warnings
599
      # (even with -Werror).  So we grep stderr for any message
600
      # that says an option was ignored.
601
      if grep 'ignoring option' conftest.err >/dev/null 2>&1; then :; else
602
        am_cv_$1_dependencies_compiler_type=$depmode
603
        break
604
      fi
605
    fi
606
  done
607
608
  cd ..
609
  rm -rf conftest.dir
610
else
611
  am_cv_$1_dependencies_compiler_type=none
612
fi
613
])
614
AC_SUBST([$1DEPMODE], [depmode=$am_cv_$1_dependencies_compiler_type])
615
AM_CONDITIONAL([am__fastdep$1], [
616
  test "x$enable_dependency_tracking" != xno \
617
  && test "$am_cv_$1_dependencies_compiler_type" = gcc3])
618
])
619
620
621
# AM_SET_DEPDIR
622
# -------------
623
# Choose a directory name for dependency files.
624
# This macro is AC_REQUIREd in _AM_DEPENDENCIES
625
AC_DEFUN([AM_SET_DEPDIR],
626
[AC_REQUIRE([AM_SET_LEADING_DOT])dnl
627
AC_SUBST([DEPDIR], ["${am__leading_dot}deps"])dnl
628
])
629
630
631
# AM_DEP_TRACK
632
# ------------
633
AC_DEFUN([AM_DEP_TRACK],
634
[AC_ARG_ENABLE(dependency-tracking,
635
[  --disable-dependency-tracking Speeds up one-time builds
636
  --enable-dependency-tracking  Do not reject slow dependency extractors])
637
if test "x$enable_dependency_tracking" != xno; then
638
  am_depcomp="$ac_aux_dir/depcomp"
639
  AMDEPBACKSLASH='\'
640
fi
641
AM_CONDITIONAL([AMDEP], [test "x$enable_dependency_tracking" != xno])
642
AC_SUBST([AMDEPBACKSLASH])
643
])
644
645
# Generate code to set up dependency tracking.   -*- Autoconf -*-
646
647
# Copyright 1999, 2000, 2001, 2002 Free Software Foundation, Inc.
648
649
# This program is free software; you can redistribute it and/or modify
650
# it under the terms of the GNU General Public License as published by
651
# the Free Software Foundation; either version 2, or (at your option)
652
# any later version.
653
654
# This program is distributed in the hope that it will be useful,
655
# but WITHOUT ANY WARRANTY; without even the implied warranty of
656
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
657
# GNU General Public License for more details.
658
659
# You should have received a copy of the GNU General Public License
660
# along with this program; if not, write to the Free Software
661
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
662
# 02111-1307, USA.
663
664
#serial 2
665
666
# _AM_OUTPUT_DEPENDENCY_COMMANDS
667
# ------------------------------
668
AC_DEFUN([_AM_OUTPUT_DEPENDENCY_COMMANDS],
669
[for mf in $CONFIG_FILES; do
670
  # Strip MF so we end up with the name of the file.
671
  mf=`echo "$mf" | sed -e 's/:.*$//'`
672
  # Check whether this is an Automake generated Makefile or not.
673
  # We used to match only the files named `Makefile.in', but
674
  # some people rename them; so instead we look at the file content.
675
  # Grep'ing the first line is not enough: some people post-process
676
  # each Makefile.in and add a new line on top of each file to say so.
677
  # So let's grep whole file.
678
  if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
679
    dirpart=`AS_DIRNAME("$mf")`
680
  else
681
    continue
682
  fi
683
  grep '^DEP_FILES *= *[[^ @%:@]]' < "$mf" > /dev/null || continue
684
  # Extract the definition of DEP_FILES from the Makefile without
685
  # running `make'.
686
  DEPDIR=`sed -n -e '/^DEPDIR = / s///p' < "$mf"`
687
  test -z "$DEPDIR" && continue
688
  # When using ansi2knr, U may be empty or an underscore; expand it
689
  U=`sed -n -e '/^U = / s///p' < "$mf"`
690
  test -d "$dirpart/$DEPDIR" || mkdir "$dirpart/$DEPDIR"
691
  # We invoke sed twice because it is the simplest approach to
692
  # changing $(DEPDIR) to its actual value in the expansion.
693
  for file in `sed -n -e '
694
    /^DEP_FILES = .*\\\\$/ {
695
      s/^DEP_FILES = //
696
      :loop
697
	s/\\\\$//
698
	p
699
	n
700
	/\\\\$/ b loop
701
      p
702
    }
703
    /^DEP_FILES = / s/^DEP_FILES = //p' < "$mf" | \
704
       sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
705
    # Make sure the directory exists.
706
    test -f "$dirpart/$file" && continue
707
    fdir=`AS_DIRNAME(["$file"])`
708
    AS_MKDIR_P([$dirpart/$fdir])
709
    # echo "creating $dirpart/$file"
710
    echo '# dummy' > "$dirpart/$file"
711
  done
712
done
713
])# _AM_OUTPUT_DEPENDENCY_COMMANDS
714
715
716
# AM_OUTPUT_DEPENDENCY_COMMANDS
717
# -----------------------------
718
# This macro should only be invoked once -- use via AC_REQUIRE.
719
#
720
# This code is only required when automatic dependency tracking
721
# is enabled.  FIXME.  This creates each `.P' file that we will
722
# need in order to bootstrap the dependency handling code.
723
AC_DEFUN([AM_OUTPUT_DEPENDENCY_COMMANDS],
724
[AC_CONFIG_COMMANDS([depfiles],
725
     [test x"$AMDEP_TRUE" != x"" || _AM_OUTPUT_DEPENDENCY_COMMANDS],
726
     [AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"])
727
])
728
729
# Check to see how 'make' treats includes.	-*- Autoconf -*-
730
731
# Copyright (C) 2001, 2002, 2003 Free Software Foundation, Inc.
732
733
# This program is free software; you can redistribute it and/or modify
734
# it under the terms of the GNU General Public License as published by
735
# the Free Software Foundation; either version 2, or (at your option)
736
# any later version.
737
738
# This program is distributed in the hope that it will be useful,
739
# but WITHOUT ANY WARRANTY; without even the implied warranty of
740
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
741
# GNU General Public License for more details.
742
743
# You should have received a copy of the GNU General Public License
744
# along with this program; if not, write to the Free Software
745
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
746
# 02111-1307, USA.
747
748
# serial 2
749
750
# AM_MAKE_INCLUDE()
751
# -----------------
752
# Check to see how make treats includes.
753
AC_DEFUN([AM_MAKE_INCLUDE],
754
[am_make=${MAKE-make}
755
cat > confinc << 'END'
756
am__doit:
757
	@echo done
758
.PHONY: am__doit
759
END
760
# If we don't find an include directive, just comment out the code.
761
AC_MSG_CHECKING([for style of include used by $am_make])
762
am__include="#"
763
am__quote=
764
_am_result=none
765
# First try GNU make style include.
766
echo "include confinc" > confmf
767
# We grep out `Entering directory' and `Leaving directory'
768
# messages which can occur if `w' ends up in MAKEFLAGS.
769
# In particular we don't look at `^make:' because GNU make might
770
# be invoked under some other name (usually "gmake"), in which
771
# case it prints its new name instead of `make'.
772
if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
773
   am__include=include
774
   am__quote=
775
   _am_result=GNU
776
fi
777
# Now try BSD make style include.
778
if test "$am__include" = "#"; then
779
   echo '.include "confinc"' > confmf
780
   if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
781
      am__include=.include
782
      am__quote="\""
783
      _am_result=BSD
784
   fi
785
fi
786
AC_SUBST([am__include])
787
AC_SUBST([am__quote])
788
AC_MSG_RESULT([$_am_result])
789
rm -f confinc confmf
790
])
791
792
# AM_CONDITIONAL                                              -*- Autoconf -*-
793
794
# Copyright 1997, 2000, 2001 Free Software Foundation, Inc.
795
796
# This program is free software; you can redistribute it and/or modify
797
# it under the terms of the GNU General Public License as published by
798
# the Free Software Foundation; either version 2, or (at your option)
799
# any later version.
800
801
# This program is distributed in the hope that it will be useful,
802
# but WITHOUT ANY WARRANTY; without even the implied warranty of
803
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
804
# GNU General Public License for more details.
805
806
# You should have received a copy of the GNU General Public License
807
# along with this program; if not, write to the Free Software
808
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
809
# 02111-1307, USA.
810
811
# serial 5
812
813
AC_PREREQ(2.52)
814
815
# AM_CONDITIONAL(NAME, SHELL-CONDITION)
816
# -------------------------------------
817
# Define a conditional.
818
AC_DEFUN([AM_CONDITIONAL],
819
[ifelse([$1], [TRUE],  [AC_FATAL([$0: invalid condition: $1])],
820
        [$1], [FALSE], [AC_FATAL([$0: invalid condition: $1])])dnl
821
AC_SUBST([$1_TRUE])
822
AC_SUBST([$1_FALSE])
823
if $2; then
824
  $1_TRUE=
825
  $1_FALSE='#'
826
else
827
  $1_TRUE='#'
828
  $1_FALSE=
829
fi
830
AC_CONFIG_COMMANDS_PRE(
831
[if test -z "${$1_TRUE}" && test -z "${$1_FALSE}"; then
832
  AC_MSG_ERROR([conditional "$1" was never defined.
833
Usually this means the macro was only invoked conditionally.])
834
fi])])
835
836
# Like AC_CONFIG_HEADER, but automatically create stamp file. -*- Autoconf -*-
837
838
# Copyright 1996, 1997, 2000, 2001 Free Software Foundation, Inc.
839
840
# This program is free software; you can redistribute it and/or modify
841
# it under the terms of the GNU General Public License as published by
842
# the Free Software Foundation; either version 2, or (at your option)
843
# any later version.
844
845
# This program is distributed in the hope that it will be useful,
846
# but WITHOUT ANY WARRANTY; without even the implied warranty of
847
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
848
# GNU General Public License for more details.
849
850
# You should have received a copy of the GNU General Public License
851
# along with this program; if not, write to the Free Software
852
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
853
# 02111-1307, USA.
854
855
AC_PREREQ([2.52])
856
857
# serial 6
858
859
# AM_CONFIG_HEADER is obsolete.  It has been replaced by AC_CONFIG_HEADERS.
860
AU_DEFUN([AM_CONFIG_HEADER], [AC_CONFIG_HEADERS($@)])
861
862
# isc-posix.m4 serial 2 (gettext-0.11.2)
863
dnl Copyright (C) 1995-2002 Free Software Foundation, Inc.
864
dnl This file is free software; the Free Software Foundation
865
dnl gives unlimited permission to copy and/or distribute it,
866
dnl with or without modifications, as long as this notice is preserved.
867
868
# This file is not needed with autoconf-2.53 and newer.  Remove it in 2005.
869
870
# This test replaces the one in autoconf.
871
# Currently this macro should have the same name as the autoconf macro
872
# because gettext's gettext.m4 (distributed in the automake package)
873
# still uses it.  Otherwise, the use in gettext.m4 makes autoheader
874
# give these diagnostics:
875
#   configure.in:556: AC_TRY_COMPILE was called before AC_ISC_POSIX
876
#   configure.in:556: AC_TRY_RUN was called before AC_ISC_POSIX
877
878
undefine([AC_ISC_POSIX])
879
880
AC_DEFUN([AC_ISC_POSIX],
881
  [
882
    dnl This test replaces the obsolescent AC_ISC_POSIX kludge.
883
    AC_CHECK_LIB(cposix, strerror, [LIBS="$LIBS -lcposix"])
884
  ]
885
)
886
887
888
# Copyright 1996, 1997, 1999, 2000, 2001, 2002  Free Software Foundation, Inc.
889
890
# This program is free software; you can redistribute it and/or modify
891
# it under the terms of the GNU General Public License as published by
892
# the Free Software Foundation; either version 2, or (at your option)
893
# any later version.
894
895
# This program is distributed in the hope that it will be useful,
896
# but WITHOUT ANY WARRANTY; without even the implied warranty of
897
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
898
# GNU General Public License for more details.
899
900
# You should have received a copy of the GNU General Public License
901
# along with this program; if not, write to the Free Software
902
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
903
# 02111-1307, USA.
904
905
# serial 2
906
907
# @defmac AC_PROG_CC_STDC
908
# @maindex PROG_CC_STDC
909
# @ovindex CC
910
# If the C compiler in not in ANSI C mode by default, try to add an option
911
# to output variable @code{CC} to make it so.  This macro tries various
912
# options that select ANSI C on some system or another.  It considers the
913
# compiler to be in ANSI C mode if it handles function prototypes correctly.
914
#
915
# If you use this macro, you should check after calling it whether the C
916
# compiler has been set to accept ANSI C; if not, the shell variable
917
# @code{am_cv_prog_cc_stdc} is set to @samp{no}.  If you wrote your source
918
# code in ANSI C, you can make an un-ANSIfied copy of it by using the
919
# program @code{ansi2knr}, which comes with Ghostscript.
920
# @end defmac
921
922
AC_DEFUN([AM_PROG_CC_STDC],
923
[AC_REQUIRE([AC_PROG_CC])
924
AC_BEFORE([$0], [AC_C_INLINE])
925
AC_BEFORE([$0], [AC_C_CONST])
926
dnl Force this before AC_PROG_CPP.  Some cpp's, eg on HPUX, require
927
dnl a magic option to avoid problems with ANSI preprocessor commands
928
dnl like #elif.
929
dnl FIXME: can't do this because then AC_AIX won't work due to a
930
dnl circular dependency.
931
dnl AC_BEFORE([$0], [AC_PROG_CPP])
932
AC_MSG_CHECKING([for ${CC-cc} option to accept ANSI C])
933
AC_CACHE_VAL(am_cv_prog_cc_stdc,
934
[am_cv_prog_cc_stdc=no
935
ac_save_CC="$CC"
936
# Don't try gcc -ansi; that turns off useful extensions and
937
# breaks some systems' header files.
938
# AIX			-qlanglvl=ansi
939
# Ultrix and OSF/1	-std1
940
# HP-UX 10.20 and later	-Ae
941
# HP-UX older versions	-Aa -D_HPUX_SOURCE
942
# SVR4			-Xc -D__EXTENSIONS__
943
for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
944
do
945
  CC="$ac_save_CC $ac_arg"
946
  AC_TRY_COMPILE(
947
[#include <stdarg.h>
948
#include <stdio.h>
949
#include <sys/types.h>
950
#include <sys/stat.h>
951
/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
952
struct buf { int x; };
953
FILE * (*rcsopen) (struct buf *, struct stat *, int);
954
static char *e (p, i)
955
     char **p;
956
     int i;
957
{
958
  return p[i];
959
}
960
static char *f (char * (*g) (char **, int), char **p, ...)
961
{
962
  char *s;
963
  va_list v;
964
  va_start (v,p);
965
  s = g (p, va_arg (v,int));
966
  va_end (v);
967
  return s;
968
}
969
int test (int i, double x);
970
struct s1 {int (*f) (int a);};
971
struct s2 {int (*f) (double a);};
972
int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
973
int argc;
974
char **argv;
975
], [
976
return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
977
],
978
[am_cv_prog_cc_stdc="$ac_arg"; break])
979
done
980
CC="$ac_save_CC"
981
])
982
if test -z "$am_cv_prog_cc_stdc"; then
983
  AC_MSG_RESULT([none needed])
984
else
985
  AC_MSG_RESULT([$am_cv_prog_cc_stdc])
986
fi
987
case "x$am_cv_prog_cc_stdc" in
988
  x|xno) ;;
989
  *) CC="$CC $am_cv_prog_cc_stdc" ;;
990
esac
991
])
992
993
AU_DEFUN([fp_PROG_CC_STDC], [AM_PROG_CC_STDC])
994
995
# libtool.m4 - Configure libtool for the host system. -*-Autoconf-*-
996
997
# serial 47 AC_PROG_LIBTOOL
998
999
1000
# AC_PROVIDE_IFELSE(MACRO-NAME, IF-PROVIDED, IF-NOT-PROVIDED)
1001
# -----------------------------------------------------------
1002
# If this macro is not defined by Autoconf, define it here.
1003
m4_ifdef([AC_PROVIDE_IFELSE],
1004
         [],
1005
         [m4_define([AC_PROVIDE_IFELSE],
1006
	         [m4_ifdef([AC_PROVIDE_$1],
1007
		           [$2], [$3])])])
1008
1009
1010
# AC_PROG_LIBTOOL
1011
# ---------------
1012
AC_DEFUN([AC_PROG_LIBTOOL],
1013
[AC_REQUIRE([_AC_PROG_LIBTOOL])dnl
1014
dnl If AC_PROG_CXX has already been expanded, run AC_LIBTOOL_CXX
1015
dnl immediately, otherwise, hook it in at the end of AC_PROG_CXX.
1016
  AC_PROVIDE_IFELSE([AC_PROG_CXX],
1017
    [AC_LIBTOOL_CXX],
1018
    [define([AC_PROG_CXX], defn([AC_PROG_CXX])[AC_LIBTOOL_CXX
1019
  ])])
1020
dnl And a similar setup for Fortran 77 support
1021
  AC_PROVIDE_IFELSE([AC_PROG_F77],
1022
    [AC_LIBTOOL_F77],
1023
    [define([AC_PROG_F77], defn([AC_PROG_F77])[AC_LIBTOOL_F77
1024
])])
1025
1026
dnl Quote A][M_PROG_GCJ so that aclocal doesn't bring it in needlessly.
1027
dnl If either AC_PROG_GCJ or A][M_PROG_GCJ have already been expanded, run
1028
dnl AC_LIBTOOL_GCJ immediately, otherwise, hook it in at the end of both.
1029
  AC_PROVIDE_IFELSE([AC_PROG_GCJ],
1030
    [AC_LIBTOOL_GCJ],
1031
    [AC_PROVIDE_IFELSE([A][M_PROG_GCJ],
1032
      [AC_LIBTOOL_GCJ],
1033
      [AC_PROVIDE_IFELSE([LT_AC_PROG_GCJ],
1034
	[AC_LIBTOOL_GCJ],
1035
      [ifdef([AC_PROG_GCJ],
1036
	     [define([AC_PROG_GCJ], defn([AC_PROG_GCJ])[AC_LIBTOOL_GCJ])])
1037
       ifdef([A][M_PROG_GCJ],
1038
	     [define([A][M_PROG_GCJ], defn([A][M_PROG_GCJ])[AC_LIBTOOL_GCJ])])
1039
       ifdef([LT_AC_PROG_GCJ],
1040
	     [define([LT_AC_PROG_GCJ],
1041
		defn([LT_AC_PROG_GCJ])[AC_LIBTOOL_GCJ])])])])
1042
])])# AC_PROG_LIBTOOL
1043
1044
1045
# _AC_PROG_LIBTOOL
1046
# ----------------
1047
AC_DEFUN([_AC_PROG_LIBTOOL],
1048
[AC_REQUIRE([AC_LIBTOOL_SETUP])dnl
1049
AC_BEFORE([$0],[AC_LIBTOOL_CXX])dnl
1050
AC_BEFORE([$0],[AC_LIBTOOL_F77])dnl
1051
AC_BEFORE([$0],[AC_LIBTOOL_GCJ])dnl
1052
1053
# This can be used to rebuild libtool when needed
1054
LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
1055
1056
# Always use our own libtool.
1057
LIBTOOL='$(SHELL) $(top_builddir)/libtool'
1058
AC_SUBST(LIBTOOL)dnl
1059
1060
# Prevent multiple expansion
1061
define([AC_PROG_LIBTOOL], [])
1062
])# _AC_PROG_LIBTOOL
1063
1064
1065
# AC_LIBTOOL_SETUP
1066
# ----------------
1067
AC_DEFUN([AC_LIBTOOL_SETUP],
1068
[AC_PREREQ(2.50)dnl
1069
AC_REQUIRE([AC_ENABLE_SHARED])dnl
1070
AC_REQUIRE([AC_ENABLE_STATIC])dnl
1071
AC_REQUIRE([AC_ENABLE_FAST_INSTALL])dnl
1072
AC_REQUIRE([AC_CANONICAL_HOST])dnl
1073
AC_REQUIRE([AC_CANONICAL_BUILD])dnl
1074
AC_REQUIRE([AC_PROG_CC])dnl
1075
AC_REQUIRE([AC_PROG_LD])dnl
1076
AC_REQUIRE([AC_PROG_LD_RELOAD_FLAG])dnl
1077
AC_REQUIRE([AC_PROG_NM])dnl
1078
1079
AC_REQUIRE([AC_PROG_LN_S])dnl
1080
AC_REQUIRE([AC_DEPLIBS_CHECK_METHOD])dnl
1081
# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
1082
AC_REQUIRE([AC_OBJEXT])dnl
1083
AC_REQUIRE([AC_EXEEXT])dnl
1084
dnl
1085
1086
AC_LIBTOOL_SYS_MAX_CMD_LEN
1087
AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE
1088
AC_LIBTOOL_OBJDIR
1089
1090
AC_REQUIRE([_LT_AC_SYS_COMPILER])dnl
1091
_LT_AC_PROG_ECHO_BACKSLASH
1092
1093
case $host_os in
1094
aix3*)
1095
  # AIX sometimes has problems with the GCC collect2 program.  For some
1096
  # reason, if we set the COLLECT_NAMES environment variable, the problems
1097
  # vanish in a puff of smoke.
1098
  if test "X${COLLECT_NAMES+set}" != Xset; then
1099
    COLLECT_NAMES=
1100
    export COLLECT_NAMES
1101
  fi
1102
  ;;
1103
esac
1104
1105
# Sed substitution that helps us do robust quoting.  It backslashifies
1106
# metacharacters that are still active within double-quoted strings.
1107
Xsed='sed -e 1s/^X//'
1108
[sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g']
1109
1110
# Same as above, but do not quote variable references.
1111
[double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g']
1112
1113
# Sed substitution to delay expansion of an escaped shell variable in a
1114
# double_quote_subst'ed string.
1115
delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
1116
1117
# Sed substitution to avoid accidental globbing in evaled expressions
1118
no_glob_subst='s/\*/\\\*/g'
1119
1120
# Constants:
1121
rm="rm -f"
1122
1123
# Global variables:
1124
default_ofile=libtool
1125
can_build_shared=yes
1126
1127
# All known linkers require a `.a' archive for static linking (except M$VC,
1128
# which needs '.lib').
1129
libext=a
1130
ltmain="$ac_aux_dir/ltmain.sh"
1131
ofile="$default_ofile"
1132
with_gnu_ld="$lt_cv_prog_gnu_ld"
1133
1134
AC_CHECK_TOOL(AR, ar, false)
1135
AC_CHECK_TOOL(RANLIB, ranlib, :)
1136
AC_CHECK_TOOL(STRIP, strip, :)
1137
1138
old_CC="$CC"
1139
old_CFLAGS="$CFLAGS"
1140
1141
# Set sane defaults for various variables
1142
test -z "$AR" && AR=ar
1143
test -z "$AR_FLAGS" && AR_FLAGS=cru
1144
test -z "$AS" && AS=as
1145
test -z "$CC" && CC=cc
1146
test -z "$LTCC" && LTCC=$CC
1147
test -z "$DLLTOOL" && DLLTOOL=dlltool
1148
test -z "$LD" && LD=ld
1149
test -z "$LN_S" && LN_S="ln -s"
1150
test -z "$MAGIC_CMD" && MAGIC_CMD=file
1151
test -z "$NM" && NM=nm
1152
test -z "$SED" && SED=sed
1153
test -z "$OBJDUMP" && OBJDUMP=objdump
1154
test -z "$RANLIB" && RANLIB=:
1155
test -z "$STRIP" && STRIP=:
1156
test -z "$ac_objext" && ac_objext=o
1157
1158
# Determine commands to create old-style static archives.
1159
old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
1160
old_postinstall_cmds='chmod 644 $oldlib'
1161
old_postuninstall_cmds=
1162
1163
if test -n "$RANLIB"; then
1164
  case $host_os in
1165
  openbsd*)
1166
    old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
1167
    ;;
1168
  *)
1169
    old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
1170
    ;;
1171
  esac
1172
  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
1173
fi
1174
1175
_LT_CC_BASENAME([$compiler])
1176
1177
# Only perform the check for file, if the check method requires it
1178
case $deplibs_check_method in
1179
file_magic*)
1180
  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
1181
    AC_PATH_MAGIC
1182
  fi
1183
  ;;
1184
esac
1185
1186
AC_PROVIDE_IFELSE([AC_LIBTOOL_DLOPEN], enable_dlopen=yes, enable_dlopen=no)
1187
AC_PROVIDE_IFELSE([AC_LIBTOOL_WIN32_DLL],
1188
enable_win32_dll=yes, enable_win32_dll=no)
1189
1190
AC_ARG_ENABLE([libtool-lock],
1191
    [AC_HELP_STRING([--disable-libtool-lock],
1192
	[avoid locking (might break parallel builds)])])
1193
test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
1194
1195
AC_ARG_WITH([pic],
1196
    [AC_HELP_STRING([--with-pic],
1197
	[try to use only PIC/non-PIC objects @<:@default=use both@:>@])],
1198
    [pic_mode="$withval"],
1199
    [pic_mode=default])
1200
test -z "$pic_mode" && pic_mode=default
1201
1202
# Check if we have a version mismatch between libtool.m4 and ltmain.sh.
1203
#
1204
# Note:  This should be in AC_LIBTOOL_SETUP, _after_ $ltmain have been defined.
1205
#        We also should do it _before_ AC_LIBTOOL_LANG_C_CONFIG that actually
1206
#        calls AC_LIBTOOL_CONFIG and creates libtool.
1207
#
1208
_LT_VERSION_CHECK
1209
1210
# Use C for the default configuration in the libtool script
1211
tagname=
1212
AC_LIBTOOL_LANG_C_CONFIG
1213
_LT_AC_TAGCONFIG
1214
])# AC_LIBTOOL_SETUP
1215
1216
1217
# _LT_VERSION_CHECK
1218
# -----------------
1219
AC_DEFUN([_LT_VERSION_CHECK],
1220
[AC_MSG_CHECKING([for correct ltmain.sh version])
1221
if test -z "$ltmain"; then
1222
  AC_MSG_RESULT(no)
1223
  echo
1224
  echo "*** [Gentoo] sanity check failed! ***"
1225
  echo "*** \$ltmain is not defined, please check the patch for consistency! ***"
1226
  echo
1227
  exit 1
1228
fi
1229
gentoo_lt_version="1.5.18"
1230
gentoo_ltmain_version=`grep '^[[:space:]]*VERSION=' $ltmain | sed -e 's|^[[:space:]]*VERSION=||'`
1231
if test "$gentoo_lt_version" != "$gentoo_ltmain_version"; then
1232
  AC_MSG_RESULT(no)
1233
  echo
1234
  echo "*** [Gentoo] sanity check failed! ***"
1235
  echo "*** libtool.m4 and ltmain.sh have a version mismatch! ***"
1236
  echo "*** (libtool.m4 = $gentoo_lt_version, ltmain.sh = $gentoo_ltmain_version) ***"
1237
  echo
1238
  echo "Please run:"
1239
  echo
1240
  echo "  libtoolize --copy --force"
1241
  echo
1242
  echo "if appropriate, please contact the maintainer of this"
1243
  echo "package (or your distribution) for help."
1244
  echo
1245
  exit 1
1246
else
1247
  AC_MSG_RESULT(yes)
1248
fi
1249
])# _LT_VERSION_CHECK
1250
1251
1252
# _LT_AC_SYS_COMPILER
1253
# -------------------
1254
AC_DEFUN([_LT_AC_SYS_COMPILER],
1255
[AC_REQUIRE([AC_PROG_CC])dnl
1256
1257
# If no C compiler was specified, use CC.
1258
LTCC=${LTCC-"$CC"}
1259
1260
# Allow CC to be a program name with arguments.
1261
compiler=$CC
1262
])# _LT_AC_SYS_COMPILER
1263
1264
1265
# _LT_CC_BASENAME(CC)
1266
# -------------------
1267
# Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
1268
AC_DEFUN([_LT_CC_BASENAME],
1269
[for cc_temp in $1""; do
1270
  case $cc_temp in
1271
    compile | *[[\\/]]compile | ccache | *[[\\/]]ccache ) ;;
1272
    distcc | *[[\\/]]distcc | purify | *[[\\/]]purify ) ;;
1273
    \-*) ;;
1274
    *) break;;
1275
  esac
1276
done
1277
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
1278
])
1279
1280
1281
# _LT_COMPILER_BOILERPLATE
1282
# ------------------------
1283
# Check for compiler boilerplate output or warnings with
1284
# the simple compiler test code.
1285
AC_DEFUN([_LT_COMPILER_BOILERPLATE],
1286
[ac_outfile=conftest.$ac_objext
1287
printf "$lt_simple_compile_test_code" >conftest.$ac_ext
1288
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
1289
_lt_compiler_boilerplate=`cat conftest.err`
1290
$rm conftest*
1291
])# _LT_COMPILER_BOILERPLATE
1292
1293
1294
# _LT_LINKER_BOILERPLATE
1295
# ----------------------
1296
# Check for linker boilerplate output or warnings with
1297
# the simple link test code.
1298
AC_DEFUN([_LT_LINKER_BOILERPLATE],
1299
[ac_outfile=conftest.$ac_objext
1300
printf "$lt_simple_link_test_code" >conftest.$ac_ext
1301
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
1302
_lt_linker_boilerplate=`cat conftest.err`
1303
$rm conftest*
1304
])# _LT_LINKER_BOILERPLATE
1305
1306
1307
# _LT_AC_SYS_LIBPATH_AIX
1308
# ----------------------
1309
# Links a minimal program and checks the executable
1310
# for the system default hardcoded library path. In most cases,
1311
# this is /usr/lib:/lib, but when the MPI compilers are used
1312
# the location of the communication and MPI libs are included too.
1313
# If we don't find anything, use the default library path according
1314
# to the aix ld manual.
1315
AC_DEFUN([_LT_AC_SYS_LIBPATH_AIX],
1316
[AC_LINK_IFELSE(AC_LANG_PROGRAM,[
1317
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
1318
}'`
1319
# Check for a 64-bit object if we didn't find anything.
1320
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; }
1321
}'`; fi],[])
1322
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
1323
])# _LT_AC_SYS_LIBPATH_AIX
1324
1325
1326
# _LT_AC_SHELL_INIT(ARG)
1327
# ----------------------
1328
AC_DEFUN([_LT_AC_SHELL_INIT],
1329
[ifdef([AC_DIVERSION_NOTICE],
1330
	     [AC_DIVERT_PUSH(AC_DIVERSION_NOTICE)],
1331
	 [AC_DIVERT_PUSH(NOTICE)])
1332
$1
1333
AC_DIVERT_POP
1334
])# _LT_AC_SHELL_INIT
1335
1336
1337
# _LT_AC_PROG_ECHO_BACKSLASH
1338
# --------------------------
1339
# Add some code to the start of the generated configure script which
1340
# will find an echo command which doesn't interpret backslashes.
1341
AC_DEFUN([_LT_AC_PROG_ECHO_BACKSLASH],
1342
[_LT_AC_SHELL_INIT([
1343
# Check that we are running under the correct shell.
1344
SHELL=${CONFIG_SHELL-/bin/sh}
1345
1346
case X$ECHO in
1347
X*--fallback-echo)
1348
  # Remove one level of quotation (which was required for Make).
1349
  ECHO=`echo "$ECHO" | sed 's,\\\\\[$]\\[$]0,'[$]0','`
1350
  ;;
1351
esac
1352
1353
echo=${ECHO-echo}
1354
if test "X[$]1" = X--no-reexec; then
1355
  # Discard the --no-reexec flag, and continue.
1356
  shift
1357
elif test "X[$]1" = X--fallback-echo; then
1358
  # Avoid inline document here, it may be left over
1359
  :
1360
elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
1361
  # Yippee, $echo works!
1362
  :
1363
else
1364
  # Restart under the correct shell.
1365
  exec $SHELL "[$]0" --no-reexec ${1+"[$]@"}
1366
fi
1367
1368
if test "X[$]1" = X--fallback-echo; then
1369
  # used as fallback echo
1370
  shift
1371
  cat <<EOF
1372
[$]*
1373
EOF
1374
  exit 0
1375
fi
1376
1377
# The HP-UX ksh and POSIX shell print the target directory to stdout
1378
# if CDPATH is set.
1379
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
1380
1381
if test -z "$ECHO"; then
1382
if test "X${echo_test_string+set}" != Xset; then
1383
# find a string as large as possible, as long as the shell can cope with it
1384
  for cmd in 'sed 50q "[$]0"' 'sed 20q "[$]0"' 'sed 10q "[$]0"' 'sed 2q "[$]0"' 'echo test'; do
1385
    # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
1386
    if (echo_test_string="`eval $cmd`") 2>/dev/null &&
1387
       echo_test_string="`eval $cmd`" &&
1388
       (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
1389
    then
1390
      break
1391
    fi
1392
  done
1393
fi
1394
1395
if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
1396
   echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
1397
   test "X$echo_testing_string" = "X$echo_test_string"; then
1398
  :
1399
else
1400
  # The Solaris, AIX, and Digital Unix default echo programs unquote
1401
  # backslashes.  This makes it impossible to quote backslashes using
1402
  #   echo "$something" | sed 's/\\/\\\\/g'
1403
  #
1404
  # So, first we look for a working echo in the user's PATH.
1405
1406
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
1407
  for dir in $PATH /usr/ucb; do
1408
    IFS="$lt_save_ifs"
1409
    if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
1410
       test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
1411
       echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
1412
       test "X$echo_testing_string" = "X$echo_test_string"; then
1413
      echo="$dir/echo"
1414
      break
1415
    fi
1416
  done
1417
  IFS="$lt_save_ifs"
1418
1419
  if test "X$echo" = Xecho; then
1420
    # We didn't find a better echo, so look for alternatives.
1421
    if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
1422
       echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
1423
       test "X$echo_testing_string" = "X$echo_test_string"; then
1424
      # This shell has a builtin print -r that does the trick.
1425
      echo='print -r'
1426
    elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
1427
	 test "X$CONFIG_SHELL" != X/bin/ksh; then
1428
      # If we have ksh, try running configure again with it.
1429
      ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
1430
      export ORIGINAL_CONFIG_SHELL
1431
      CONFIG_SHELL=/bin/ksh
1432
      export CONFIG_SHELL
1433
      exec $CONFIG_SHELL "[$]0" --no-reexec ${1+"[$]@"}
1434
    else
1435
      # Try using printf.
1436
      echo='printf %s\n'
1437
      if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
1438
	 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
1439
	 test "X$echo_testing_string" = "X$echo_test_string"; then
1440
	# Cool, printf works
1441
	:
1442
      elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "[$]0" --fallback-echo '\t') 2>/dev/null` &&
1443
	   test "X$echo_testing_string" = 'X\t' &&
1444
	   echo_testing_string=`($ORIGINAL_CONFIG_SHELL "[$]0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
1445
	   test "X$echo_testing_string" = "X$echo_test_string"; then
1446
	CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
1447
	export CONFIG_SHELL
1448
	SHELL="$CONFIG_SHELL"
1449
	export SHELL
1450
	echo="$CONFIG_SHELL [$]0 --fallback-echo"
1451
      elif echo_testing_string=`($CONFIG_SHELL "[$]0" --fallback-echo '\t') 2>/dev/null` &&
1452
	   test "X$echo_testing_string" = 'X\t' &&
1453
	   echo_testing_string=`($CONFIG_SHELL "[$]0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
1454
	   test "X$echo_testing_string" = "X$echo_test_string"; then
1455
	echo="$CONFIG_SHELL [$]0 --fallback-echo"
1456
      else
1457
	# maybe with a smaller string...
1458
	prev=:
1459
1460
	for cmd in 'echo test' 'sed 2q "[$]0"' 'sed 10q "[$]0"' 'sed 20q "[$]0"' 'sed 50q "[$]0"'; do
1461
	  if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
1462
	  then
1463
	    break
1464
	  fi
1465
	  prev="$cmd"
1466
	done
1467
1468
	if test "$prev" != 'sed 50q "[$]0"'; then
1469
	  echo_test_string=`eval $prev`
1470
	  export echo_test_string
1471
	  exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "[$]0" ${1+"[$]@"}
1472
	else
1473
	  # Oops.  We lost completely, so just stick with echo.
1474
	  echo=echo
1475
	fi
1476
      fi
1477
    fi
1478
  fi
1479
fi
1480
fi
1481
1482
# Copy echo and quote the copy suitably for passing to libtool from
1483
# the Makefile, instead of quoting the original, which is used later.
1484
ECHO=$echo
1485
if test "X$ECHO" = "X$CONFIG_SHELL [$]0 --fallback-echo"; then
1486
   ECHO="$CONFIG_SHELL \\\$\[$]0 --fallback-echo"
1487
fi
1488
1489
AC_SUBST(ECHO)
1490
])])# _LT_AC_PROG_ECHO_BACKSLASH
1491
1492
1493
# _LT_AC_LOCK
1494
# -----------
1495
AC_DEFUN([_LT_AC_LOCK],
1496
[AC_ARG_ENABLE([libtool-lock],
1497
    [AC_HELP_STRING([--disable-libtool-lock],
1498
	[avoid locking (might break parallel builds)])])
1499
test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
1500
1501
# Some flags need to be propagated to the compiler or linker for good
1502
# libtool support.
1503
case $host in
1504
ia64-*-hpux*)
1505
  # Find out which ABI we are using.
1506
  echo 'int i;' > conftest.$ac_ext
1507
  if AC_TRY_EVAL(ac_compile); then
1508
    case `/usr/bin/file conftest.$ac_objext` in
1509
    *ELF-32*)
1510
      HPUX_IA64_MODE="32"
1511
      ;;
1512
    *ELF-64*)
1513
      HPUX_IA64_MODE="64"
1514
      ;;
1515
    esac
1516
  fi
1517
  rm -rf conftest*
1518
  ;;
1519
*-*-irix6*)
1520
  # Find out which ABI we are using.
1521
  echo '[#]line __oline__ "configure"' > conftest.$ac_ext
1522
  if AC_TRY_EVAL(ac_compile); then
1523
   if test "$lt_cv_prog_gnu_ld" = yes; then
1524
    case `/usr/bin/file conftest.$ac_objext` in
1525
    *32-bit*)
1526
      LD="${LD-ld} -melf32bsmip"
1527
      ;;
1528
    *N32*)
1529
      LD="${LD-ld} -melf32bmipn32"
1530
      ;;
1531
    *64-bit*)
1532
      LD="${LD-ld} -melf64bmip"
1533
      ;;
1534
    esac
1535
   else
1536
    case `/usr/bin/file conftest.$ac_objext` in
1537
    *32-bit*)
1538
      LD="${LD-ld} -32"
1539
      ;;
1540
    *N32*)
1541
      LD="${LD-ld} -n32"
1542
      ;;
1543
    *64-bit*)
1544
      LD="${LD-ld} -64"
1545
      ;;
1546
    esac
1547
   fi
1548
  fi
1549
  rm -rf conftest*
1550
  ;;
1551
1552
x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
1553
  # Find out which ABI we are using.
1554
  echo 'int i;' > conftest.$ac_ext
1555
  if AC_TRY_EVAL(ac_compile); then
1556
    case "`/usr/bin/file conftest.o`" in
1557
    *32-bit*)
1558
      case $host in
1559
        x86_64-*linux*)
1560
          LD="${LD-ld} -m elf_i386"
1561
          ;;
1562
        ppc64-*linux*|powerpc64-*linux*)
1563
          LD="${LD-ld} -m elf32ppclinux"
1564
          ;;
1565
        s390x-*linux*)
1566
          LD="${LD-ld} -m elf_s390"
1567
          ;;
1568
        sparc64-*linux*)
1569
          LD="${LD-ld} -m elf32_sparc"
1570
          ;;
1571
      esac
1572
      ;;
1573
    *64-bit*)
1574
      case $host in
1575
        x86_64-*linux*)
1576
          LD="${LD-ld} -m elf_x86_64"
1577
          ;;
1578
        ppc*-*linux*|powerpc*-*linux*)
1579
          LD="${LD-ld} -m elf64ppc"
1580
          ;;
1581
        s390*-*linux*)
1582
          LD="${LD-ld} -m elf64_s390"
1583
          ;;
1584
        sparc*-*linux*)
1585
          LD="${LD-ld} -m elf64_sparc"
1586
          ;;
1587
      esac
1588
      ;;
1589
    esac
1590
  fi
1591
  rm -rf conftest*
1592
  ;;
1593
1594
*-*-linux*)
1595
  # Test if the compiler is 64bit
1596
  echo 'int i;' > conftest.$ac_ext
1597
  lt_cv_cc_64bit_output=no
1598
  if AC_TRY_EVAL(ac_compile); then
1599
    case `/usr/bin/file conftest.$ac_objext` in
1600
    *"ELF 64"*)
1601
      lt_cv_cc_64bit_output=yes
1602
      ;;
1603
    esac
1604
  fi
1605
  rm -rf conftest*
1606
  ;;
1607
  
1608
*-*-sco3.2v5*)
1609
  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
1610
  SAVE_CFLAGS="$CFLAGS"
1611
  CFLAGS="$CFLAGS -belf"
1612
  AC_CACHE_CHECK([whether the C compiler needs -belf], lt_cv_cc_needs_belf,
1613
    [AC_LANG_PUSH(C)
1614
     AC_TRY_LINK([],[],[lt_cv_cc_needs_belf=yes],[lt_cv_cc_needs_belf=no])
1615
     AC_LANG_POP])
1616
  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
1617
    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
1618
    CFLAGS="$SAVE_CFLAGS"
1619
  fi
1620
  ;;
1621
AC_PROVIDE_IFELSE([AC_LIBTOOL_WIN32_DLL],
1622
[*-*-cygwin* | *-*-mingw* | *-*-pw32*)
1623
  AC_CHECK_TOOL(DLLTOOL, dlltool, false)
1624
  AC_CHECK_TOOL(AS, as, false)
1625
  AC_CHECK_TOOL(OBJDUMP, objdump, false)
1626
  ;;
1627
  ])
1628
esac
1629
1630
need_locks="$enable_libtool_lock"
1631
1632
])# _LT_AC_LOCK
1633
1634
1635
# AC_LIBTOOL_COMPILER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS,
1636
#		[OUTPUT-FILE], [ACTION-SUCCESS], [ACTION-FAILURE])
1637
# ----------------------------------------------------------------
1638
# Check whether the given compiler option works
1639
AC_DEFUN([AC_LIBTOOL_COMPILER_OPTION],
1640
[AC_REQUIRE([LT_AC_PROG_SED])
1641
AC_CACHE_CHECK([$1], [$2],
1642
  [$2=no
1643
  ifelse([$4], , [ac_outfile=conftest.$ac_objext], [ac_outfile=$4])
1644
   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
1645
   lt_compiler_flag="$3"
1646
   # Insert the option either (1) after the last *FLAGS variable, or
1647
   # (2) before a word containing "conftest.", or (3) at the end.
1648
   # Note that $ac_compile itself does not contain backslashes and begins
1649
   # with a dollar sign (not a hyphen), so the echo should work correctly.
1650
   # The option is referenced via a variable to avoid confusing sed.
1651
   lt_compile=`echo "$ac_compile" | $SED \
1652
   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
1653
   -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \
1654
   -e 's:$: $lt_compiler_flag:'`
1655
   (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&AS_MESSAGE_LOG_FD)
1656
   (eval "$lt_compile" 2>conftest.err)
1657
   ac_status=$?
1658
   cat conftest.err >&AS_MESSAGE_LOG_FD
1659
   echo "$as_me:__oline__: \$? = $ac_status" >&AS_MESSAGE_LOG_FD
1660
   if (exit $ac_status) && test -s "$ac_outfile"; then
1661
     # The compiler can only warn and ignore the option if not recognized
1662
     # So say no if there are warnings other than the usual output.
1663
     $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
1664
     $SED '/^$/d' conftest.err >conftest.er2
1665
     if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
1666
       $2=yes
1667
     fi
1668
   fi
1669
   $rm conftest*
1670
])
1671
1672
if test x"[$]$2" = xyes; then
1673
    ifelse([$5], , :, [$5])
1674
else
1675
    ifelse([$6], , :, [$6])
1676
fi
1677
])# AC_LIBTOOL_COMPILER_OPTION
1678
1679
1680
# AC_LIBTOOL_LINKER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS,
1681
#                          [ACTION-SUCCESS], [ACTION-FAILURE])
1682
# ------------------------------------------------------------
1683
# Check whether the given compiler option works
1684
AC_DEFUN([AC_LIBTOOL_LINKER_OPTION],
1685
[AC_CACHE_CHECK([$1], [$2],
1686
  [$2=no
1687
   save_LDFLAGS="$LDFLAGS"
1688
   LDFLAGS="$LDFLAGS $3"
1689
   printf "$lt_simple_link_test_code" > conftest.$ac_ext
1690
   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
1691
     # The compiler can only warn and ignore the option if not recognized
1692
     # So say no if there are warnings
1693
     if test -s conftest.err; then
1694
       # Append any errors to the config.log.
1695
       cat conftest.err 1>&AS_MESSAGE_LOG_FD
1696
       $echo "X$_lt_linker_boilerplate" | $Xsed > conftest.exp
1697
       $SED '/^$/d' conftest.err >conftest.er2
1698
       if diff conftest.exp conftest.er2 >/dev/null; then
1699
         $2=yes
1700
       fi
1701
     else
1702
       $2=yes
1703
     fi
1704
   fi
1705
   $rm conftest*
1706
   LDFLAGS="$save_LDFLAGS"
1707
])
1708
1709
if test x"[$]$2" = xyes; then
1710
    ifelse([$4], , :, [$4])
1711
else
1712
    ifelse([$5], , :, [$5])
1713
fi
1714
])# AC_LIBTOOL_LINKER_OPTION
1715
1716
1717
# AC_LIBTOOL_SYS_MAX_CMD_LEN
1718
# --------------------------
1719
AC_DEFUN([AC_LIBTOOL_SYS_MAX_CMD_LEN],
1720
[# find the maximum length of command line arguments
1721
AC_MSG_CHECKING([the maximum length of command line arguments])
1722
AC_CACHE_VAL([lt_cv_sys_max_cmd_len], [dnl
1723
  i=0
1724
  teststring="ABCD"
1725
1726
  case $build_os in
1727
  msdosdjgpp*)
1728
    # On DJGPP, this test can blow up pretty badly due to problems in libc
1729
    # (any single argument exceeding 2000 bytes causes a buffer overrun
1730
    # during glob expansion).  Even if it were fixed, the result of this
1731
    # check would be larger than it should be.
1732
    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
1733
    ;;
1734
1735
  gnu*)
1736
    # Under GNU Hurd, this test is not required because there is
1737
    # no limit to the length of command line arguments.
1738
    # Libtool will interpret -1 as no limit whatsoever
1739
    lt_cv_sys_max_cmd_len=-1;
1740
    ;;
1741
1742
  cygwin* | mingw*)
1743
    # On Win9x/ME, this test blows up -- it succeeds, but takes
1744
    # about 5 minutes as the teststring grows exponentially.
1745
    # Worse, since 9x/ME are not pre-emptively multitasking,
1746
    # you end up with a "frozen" computer, even though with patience
1747
    # the test eventually succeeds (with a max line length of 256k).
1748
    # Instead, let's just punt: use the minimum linelength reported by
1749
    # all of the supported platforms: 8192 (on NT/2K/XP).
1750
    lt_cv_sys_max_cmd_len=8192;
1751
    ;;
1752
1753
  amigaos*)
1754
    # On AmigaOS with pdksh, this test takes hours, literally.
1755
    # So we just punt and use a minimum line length of 8192.
1756
    lt_cv_sys_max_cmd_len=8192;
1757
    ;;
1758
1759
  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
1760
    # This has been around since 386BSD, at least.  Likely further.
1761
    if test -x /sbin/sysctl; then
1762
      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
1763
    elif test -x /usr/sbin/sysctl; then
1764
      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
1765
    else
1766
      lt_cv_sys_max_cmd_len=65536 # usable default for *BSD
1767
    fi
1768
    # And add a safety zone
1769
    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
1770
    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
1771
    ;;
1772
  osf*)
1773
    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
1774
    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
1775
    # nice to cause kernel panics so lets avoid the loop below.
1776
    # First set a reasonable default.
1777
    lt_cv_sys_max_cmd_len=16384
1778
    # 
1779
    if test -x /sbin/sysconfig; then
1780
      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
1781
        *1*) lt_cv_sys_max_cmd_len=-1 ;;
1782
      esac
1783
    fi
1784
    ;;
1785
  *)
1786
    # If test is not a shell built-in, we'll probably end up computing a
1787
    # maximum length that is only half of the actual maximum length, but
1788
    # we can't tell.
1789
    SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
1790
    while (test "X"`$SHELL [$]0 --fallback-echo "X$teststring" 2>/dev/null` \
1791
	       = "XX$teststring") >/dev/null 2>&1 &&
1792
	    new_result=`expr "X$teststring" : ".*" 2>&1` &&
1793
	    lt_cv_sys_max_cmd_len=$new_result &&
1794
	    test $i != 17 # 1/2 MB should be enough
1795
    do
1796
      i=`expr $i + 1`
1797
      teststring=$teststring$teststring
1798
    done
1799
    teststring=
1800
    # Add a significant safety factor because C++ compilers can tack on massive
1801
    # amounts of additional arguments before passing them to the linker.
1802
    # It appears as though 1/2 is a usable value.
1803
    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
1804
    ;;
1805
  esac
1806
])
1807
if test -n $lt_cv_sys_max_cmd_len ; then
1808
  AC_MSG_RESULT($lt_cv_sys_max_cmd_len)
1809
else
1810
  AC_MSG_RESULT(none)
1811
fi
1812
])# AC_LIBTOOL_SYS_MAX_CMD_LEN
1813
1814
1815
# _LT_AC_CHECK_DLFCN
1816
# --------------------
1817
AC_DEFUN([_LT_AC_CHECK_DLFCN],
1818
[AC_CHECK_HEADERS(dlfcn.h)dnl
1819
])# _LT_AC_CHECK_DLFCN
1820
1821
1822
# _LT_AC_TRY_DLOPEN_SELF (ACTION-IF-TRUE, ACTION-IF-TRUE-W-USCORE,
1823
#                           ACTION-IF-FALSE, ACTION-IF-CROSS-COMPILING)
1824
# ------------------------------------------------------------------
1825
AC_DEFUN([_LT_AC_TRY_DLOPEN_SELF],
1826
[AC_REQUIRE([_LT_AC_CHECK_DLFCN])dnl
1827
if test "$cross_compiling" = yes; then :
1828
  [$4]
1829
else
1830
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
1831
  lt_status=$lt_dlunknown
1832
  cat > conftest.$ac_ext <<EOF
1833
[#line __oline__ "configure"
1834
#include "confdefs.h"
1835
1836
#if HAVE_DLFCN_H
1837
#include <dlfcn.h>
1838
#endif
1839
1840
#include <stdio.h>
1841
1842
#ifdef RTLD_GLOBAL
1843
#  define LT_DLGLOBAL		RTLD_GLOBAL
1844
#else
1845
#  ifdef DL_GLOBAL
1846
#    define LT_DLGLOBAL		DL_GLOBAL
1847
#  else
1848
#    define LT_DLGLOBAL		0
1849
#  endif
1850
#endif
1851
1852
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
1853
   find out it does not work in some platform. */
1854
#ifndef LT_DLLAZY_OR_NOW
1855
#  ifdef RTLD_LAZY
1856
#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
1857
#  else
1858
#    ifdef DL_LAZY
1859
#      define LT_DLLAZY_OR_NOW		DL_LAZY
1860
#    else
1861
#      ifdef RTLD_NOW
1862
#        define LT_DLLAZY_OR_NOW	RTLD_NOW
1863
#      else
1864
#        ifdef DL_NOW
1865
#          define LT_DLLAZY_OR_NOW	DL_NOW
1866
#        else
1867
#          define LT_DLLAZY_OR_NOW	0
1868
#        endif
1869
#      endif
1870
#    endif
1871
#  endif
1872
#endif
1873
1874
#ifdef __cplusplus
1875
extern "C" void exit (int);
1876
#endif
1877
1878
void fnord() { int i=42;}
1879
int main ()
1880
{
1881
  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
1882
  int status = $lt_dlunknown;
1883
1884
  if (self)
1885
    {
1886
      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
1887
      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
1888
      /* dlclose (self); */
1889
    }
1890
1891
    exit (status);
1892
}]
1893
EOF
1894
  if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext} 2>/dev/null; then
1895
    (./conftest; exit; ) 2>/dev/null
1896
    lt_status=$?
1897
    case x$lt_status in
1898
      x$lt_dlno_uscore) $1 ;;
1899
      x$lt_dlneed_uscore) $2 ;;
1900
      x$lt_unknown|x*) $3 ;;
1901
    esac
1902
  else :
1903
    # compilation failed
1904
    $3
1905
  fi
1906
fi
1907
rm -fr conftest*
1908
])# _LT_AC_TRY_DLOPEN_SELF
1909
1910
1911
# AC_LIBTOOL_DLOPEN_SELF
1912
# -------------------
1913
AC_DEFUN([AC_LIBTOOL_DLOPEN_SELF],
1914
[AC_REQUIRE([_LT_AC_CHECK_DLFCN])dnl
1915
if test "x$enable_dlopen" != xyes; then
1916
  enable_dlopen=unknown
1917
  enable_dlopen_self=unknown
1918
  enable_dlopen_self_static=unknown
1919
else
1920
  lt_cv_dlopen=no
1921
  lt_cv_dlopen_libs=
1922
1923
  case $host_os in
1924
  beos*)
1925
    lt_cv_dlopen="load_add_on"
1926
    lt_cv_dlopen_libs=
1927
    lt_cv_dlopen_self=yes
1928
    ;;
1929
1930
  mingw* | pw32*)
1931
    lt_cv_dlopen="LoadLibrary"
1932
    lt_cv_dlopen_libs=
1933
   ;;
1934
1935
  cygwin*)
1936
    lt_cv_dlopen="dlopen"
1937
    lt_cv_dlopen_libs=
1938
   ;;
1939
1940
  darwin*)
1941
  # if libdl is installed we need to link against it
1942
    AC_CHECK_LIB([dl], [dlopen],
1943
		[lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"],[
1944
    lt_cv_dlopen="dyld"
1945
    lt_cv_dlopen_libs=
1946
    lt_cv_dlopen_self=yes
1947
    ])
1948
   ;;
1949
1950
  *)
1951
    AC_CHECK_FUNC([shl_load],
1952
	  [lt_cv_dlopen="shl_load"],
1953
      [AC_CHECK_LIB([dld], [shl_load],
1954
	    [lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"],
1955
	[AC_CHECK_FUNC([dlopen],
1956
	      [lt_cv_dlopen="dlopen"],
1957
	  [AC_CHECK_LIB([dl], [dlopen],
1958
		[lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"],
1959
	    [AC_CHECK_LIB([svld], [dlopen],
1960
		  [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"],
1961
	      [AC_CHECK_LIB([dld], [dld_link],
1962
		    [lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"])
1963
	      ])
1964
	    ])
1965
	  ])
1966
	])
1967
      ])
1968
    ;;
1969
  esac
1970
1971
  if test "x$lt_cv_dlopen" != xno; then
1972
    enable_dlopen=yes
1973
  else
1974
    enable_dlopen=no
1975
  fi
1976
1977
  case $lt_cv_dlopen in
1978
  dlopen)
1979
    save_CPPFLAGS="$CPPFLAGS"
1980
    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
1981
1982
    save_LDFLAGS="$LDFLAGS"
1983
    eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
1984
1985
    save_LIBS="$LIBS"
1986
    LIBS="$lt_cv_dlopen_libs $LIBS"
1987
1988
    AC_CACHE_CHECK([whether a program can dlopen itself],
1989
	  lt_cv_dlopen_self, [dnl
1990
	  _LT_AC_TRY_DLOPEN_SELF(
1991
	    lt_cv_dlopen_self=yes, lt_cv_dlopen_self=yes,
1992
	    lt_cv_dlopen_self=no, lt_cv_dlopen_self=cross)
1993
    ])
1994
1995
    if test "x$lt_cv_dlopen_self" = xyes; then
1996
      LDFLAGS="$LDFLAGS $link_static_flag"
1997
      AC_CACHE_CHECK([whether a statically linked program can dlopen itself],
1998
    	  lt_cv_dlopen_self_static, [dnl
1999
	  _LT_AC_TRY_DLOPEN_SELF(
2000
	    lt_cv_dlopen_self_static=yes, lt_cv_dlopen_self_static=yes,
2001
	    lt_cv_dlopen_self_static=no,  lt_cv_dlopen_self_static=cross)
2002
      ])
2003
    fi
2004
2005
    CPPFLAGS="$save_CPPFLAGS"
2006
    LDFLAGS="$save_LDFLAGS"
2007
    LIBS="$save_LIBS"
2008
    ;;
2009
  esac
2010
2011
  case $lt_cv_dlopen_self in
2012
  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
2013
  *) enable_dlopen_self=unknown ;;
2014
  esac
2015
2016
  case $lt_cv_dlopen_self_static in
2017
  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
2018
  *) enable_dlopen_self_static=unknown ;;
2019
  esac
2020
fi
2021
])# AC_LIBTOOL_DLOPEN_SELF
2022
2023
2024
# AC_LIBTOOL_PROG_CC_C_O([TAGNAME])
2025
# ---------------------------------
2026
# Check to see if options -c and -o are simultaneously supported by compiler
2027
AC_DEFUN([AC_LIBTOOL_PROG_CC_C_O],
2028
[AC_REQUIRE([_LT_AC_SYS_COMPILER])dnl
2029
AC_CACHE_CHECK([if $compiler supports -c -o file.$ac_objext],
2030
  [_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)],
2031
  [_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)=no
2032
   $rm -r conftest 2>/dev/null
2033
   mkdir conftest
2034
   cd conftest
2035
   mkdir out
2036
   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
2037
2038
   lt_compiler_flag="-o out/conftest2.$ac_objext"
2039
   # Insert the option either (1) after the last *FLAGS variable, or
2040
   # (2) before a word containing "conftest.", or (3) at the end.
2041
   # Note that $ac_compile itself does not contain backslashes and begins
2042
   # with a dollar sign (not a hyphen), so the echo should work correctly.
2043
   lt_compile=`echo "$ac_compile" | $SED \
2044
   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
2045
   -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \
2046
   -e 's:$: $lt_compiler_flag:'`
2047
   (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&AS_MESSAGE_LOG_FD)
2048
   (eval "$lt_compile" 2>out/conftest.err)
2049
   ac_status=$?
2050
   cat out/conftest.err >&AS_MESSAGE_LOG_FD
2051
   echo "$as_me:__oline__: \$? = $ac_status" >&AS_MESSAGE_LOG_FD
2052
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
2053
   then
2054
     # The compiler can only warn and ignore the option if not recognized
2055
     # So say no if there are warnings
2056
     $echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp
2057
     $SED '/^$/d' out/conftest.err >out/conftest.er2
2058
     if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 >/dev/null; then
2059
       _LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes
2060
     fi
2061
   fi
2062
   chmod u+w .
2063
   $rm conftest*
2064
   # SGI C++ compiler will create directory out/ii_files/ for
2065
   # template instantiation
2066
   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
2067
   $rm out/* && rmdir out
2068
   cd ..
2069
   rmdir conftest
2070
   $rm conftest*
2071
])
2072
])# AC_LIBTOOL_PROG_CC_C_O
2073
2074
2075
# AC_LIBTOOL_SYS_HARD_LINK_LOCKS([TAGNAME])
2076
# -----------------------------------------
2077
# Check to see if we can do hard links to lock some files if needed
2078
AC_DEFUN([AC_LIBTOOL_SYS_HARD_LINK_LOCKS],
2079
[AC_REQUIRE([_LT_AC_LOCK])dnl
2080
2081
hard_links="nottested"
2082
if test "$_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)" = no && test "$need_locks" != no; then
2083
  # do not overwrite the value of need_locks provided by the user
2084
  AC_MSG_CHECKING([if we can lock with hard links])
2085
  hard_links=yes
2086
  $rm conftest*
2087
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
2088
  touch conftest.a
2089
  ln conftest.a conftest.b 2>&5 || hard_links=no
2090
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
2091
  AC_MSG_RESULT([$hard_links])
2092
  if test "$hard_links" = no; then
2093
    AC_MSG_WARN([`$CC' does not support `-c -o', so `make -j' may be unsafe])
2094
    need_locks=warn
2095
  fi
2096
else
2097
  need_locks=no
2098
fi
2099
])# AC_LIBTOOL_SYS_HARD_LINK_LOCKS
2100
2101
2102
# AC_LIBTOOL_OBJDIR
2103
# -----------------
2104
AC_DEFUN([AC_LIBTOOL_OBJDIR],
2105
[AC_CACHE_CHECK([for objdir], [lt_cv_objdir],
2106
[rm -f .libs 2>/dev/null
2107
mkdir .libs 2>/dev/null
2108
if test -d .libs; then
2109
  lt_cv_objdir=.libs
2110
else
2111
  # MS-DOS does not allow filenames that begin with a dot.
2112
  lt_cv_objdir=_libs
2113
fi
2114
rmdir .libs 2>/dev/null])
2115
objdir=$lt_cv_objdir
2116
])# AC_LIBTOOL_OBJDIR
2117
2118
2119
# AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH([TAGNAME])
2120
# ----------------------------------------------
2121
# Check hardcoding attributes.
2122
AC_DEFUN([AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH],
2123
[AC_MSG_CHECKING([how to hardcode library paths into programs])
2124
_LT_AC_TAGVAR(hardcode_action, $1)=
2125
if test -n "$_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)" || \
2126
   test -n "$_LT_AC_TAGVAR(runpath_var, $1)" || \
2127
   test "X$_LT_AC_TAGVAR(hardcode_automatic, $1)" = "Xyes" ; then
2128
2129
  # We can hardcode non-existant directories.
2130
  if test "$_LT_AC_TAGVAR(hardcode_direct, $1)" != no &&
2131
     # If the only mechanism to avoid hardcoding is shlibpath_var, we
2132
     # have to relink, otherwise we might link with an installed library
2133
     # when we should be linking with a yet-to-be-installed one
2134
     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)" != no &&
2135
     test "$_LT_AC_TAGVAR(hardcode_minus_L, $1)" != no; then
2136
    # Linking always hardcodes the temporary library directory.
2137
    _LT_AC_TAGVAR(hardcode_action, $1)=relink
2138
  else
2139
    # We can link without hardcoding, and we can hardcode nonexisting dirs.
2140
    _LT_AC_TAGVAR(hardcode_action, $1)=immediate
2141
  fi
2142
else
2143
  # We cannot hardcode anything, or else we can only hardcode existing
2144
  # directories.
2145
  _LT_AC_TAGVAR(hardcode_action, $1)=unsupported
2146
fi
2147
AC_MSG_RESULT([$_LT_AC_TAGVAR(hardcode_action, $1)])
2148
2149
if test "$_LT_AC_TAGVAR(hardcode_action, $1)" = relink; then
2150
  # Fast installation is not supported
2151
  enable_fast_install=no
2152
elif test "$shlibpath_overrides_runpath" = yes ||
2153
     test "$enable_shared" = no; then
2154
  # Fast installation is not necessary
2155
  enable_fast_install=needless
2156
fi
2157
])# AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH
2158
2159
2160
# AC_LIBTOOL_SYS_LIB_STRIP
2161
# ------------------------
2162
AC_DEFUN([AC_LIBTOOL_SYS_LIB_STRIP],
2163
[striplib=
2164
old_striplib=
2165
AC_MSG_CHECKING([whether stripping libraries is possible])
2166
if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
2167
  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
2168
  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
2169
  AC_MSG_RESULT([yes])
2170
else
2171
# FIXME - insert some real tests, host_os isn't really good enough
2172
  case $host_os in
2173
   darwin*)
2174
       if test -n "$STRIP" ; then
2175
         striplib="$STRIP -x"
2176
         AC_MSG_RESULT([yes])
2177
       else
2178
  AC_MSG_RESULT([no])
2179
fi
2180
       ;;
2181
   *)
2182
  AC_MSG_RESULT([no])
2183
    ;;
2184
  esac
2185
fi
2186
])# AC_LIBTOOL_SYS_LIB_STRIP
2187
2188
2189
# AC_LIBTOOL_SYS_DYNAMIC_LINKER
2190
# -----------------------------
2191
# PORTME Fill in your ld.so characteristics
2192
AC_DEFUN([AC_LIBTOOL_SYS_DYNAMIC_LINKER],
2193
[AC_MSG_CHECKING([dynamic linker characteristics])
2194
library_names_spec=
2195
libname_spec='lib$name'
2196
soname_spec=
2197
shrext_cmds=".so"
2198
postinstall_cmds=
2199
postuninstall_cmds=
2200
finish_cmds=
2201
finish_eval=
2202
shlibpath_var=
2203
shlibpath_overrides_runpath=unknown
2204
version_type=none
2205
dynamic_linker="$host_os ld.so"
2206
sys_lib_dlsearch_path_spec="/lib /usr/lib"
2207
if test "$GCC" = yes; then
2208
  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
2209
  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
2210
    # if the path contains ";" then we assume it to be the separator
2211
    # otherwise default to the standard path separator (i.e. ":") - it is
2212
    # assumed that no part of a normal pathname contains ";" but that should
2213
    # okay in the real world where ";" in dirpaths is itself problematic.
2214
    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
2215
  else
2216
    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
2217
  fi
2218
else
2219
  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
2220
fi
2221
need_lib_prefix=unknown
2222
hardcode_into_libs=no
2223
2224
# when you set need_version to no, make sure it does not cause -set_version
2225
# flags to be left without arguments
2226
need_version=unknown
2227
2228
case $host_os in
2229
aix3*)
2230
  version_type=linux
2231
  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
2232
  shlibpath_var=LIBPATH
2233
2234
  # AIX 3 has no versioning support, so we append a major version to the name.
2235
  soname_spec='${libname}${release}${shared_ext}$major'
2236
  ;;
2237
2238
aix4* | aix5*)
2239
  version_type=linux
2240
  need_lib_prefix=no
2241
  need_version=no
2242
  hardcode_into_libs=yes
2243
  if test "$host_cpu" = ia64; then
2244
    # AIX 5 supports IA64
2245
    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
2246
    shlibpath_var=LD_LIBRARY_PATH
2247
  else
2248
    # With GCC up to 2.95.x, collect2 would create an import file
2249
    # for dependence libraries.  The import file would start with
2250
    # the line `#! .'.  This would cause the generated library to
2251
    # depend on `.', always an invalid library.  This was fixed in
2252
    # development snapshots of GCC prior to 3.0.
2253
    case $host_os in
2254
      aix4 | aix4.[[01]] | aix4.[[01]].*)
2255
      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
2256
	   echo ' yes '
2257
	   echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
2258
	:
2259
      else
2260
	can_build_shared=no
2261
      fi
2262
      ;;
2263
    esac
2264
    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
2265
    # soname into executable. Probably we can add versioning support to
2266
    # collect2, so additional links can be useful in future.
2267
    if test "$aix_use_runtimelinking" = yes; then
2268
      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
2269
      # instead of lib<name>.a to let people know that these are not
2270
      # typical AIX shared libraries.
2271
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
2272
    else
2273
      # We preserve .a as extension for shared libraries through AIX4.2
2274
      # and later when we are not doing run time linking.
2275
      library_names_spec='${libname}${release}.a $libname.a'
2276
      soname_spec='${libname}${release}${shared_ext}$major'
2277
    fi
2278
    shlibpath_var=LIBPATH
2279
  fi
2280
  ;;
2281
2282
amigaos*)
2283
  library_names_spec='$libname.ixlibrary $libname.a'
2284
  # Create ${libname}_ixlibrary.a entries in /sys/libs.
2285
  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'
2286
  ;;
2287
2288
beos*)
2289
  library_names_spec='${libname}${shared_ext}'
2290
  dynamic_linker="$host_os ld.so"
2291
  shlibpath_var=LIBRARY_PATH
2292
  ;;
2293
2294
bsdi[[45]]*)
2295
  version_type=linux
2296
  need_version=no
2297
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
2298
  soname_spec='${libname}${release}${shared_ext}$major'
2299
  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
2300
  shlibpath_var=LD_LIBRARY_PATH
2301
  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
2302
  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
2303
  # the default ld.so.conf also contains /usr/contrib/lib and
2304
  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
2305
  # libtool to hard-code these into programs
2306
  ;;
2307
2308
cygwin* | mingw* | pw32*)
2309
  version_type=windows
2310
  shrext_cmds=".dll"
2311
  need_version=no
2312
  need_lib_prefix=no
2313
2314
  case $GCC,$host_os in
2315
  yes,cygwin* | yes,mingw* | yes,pw32*)
2316
    library_names_spec='$libname.dll.a'
2317
    # DLL is installed to $(libdir)/../bin by postinstall_cmds
2318
    postinstall_cmds='base_file=`basename \${file}`~
2319
      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
2320
      dldir=$destdir/`dirname \$dlpath`~
2321
      test -d \$dldir || mkdir -p \$dldir~
2322
      $install_prog $dir/$dlname \$dldir/$dlname'
2323
    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
2324
      dlpath=$dir/\$dldll~
2325
       $rm \$dlpath'
2326
    shlibpath_overrides_runpath=yes
2327
2328
    case $host_os in
2329
    cygwin*)
2330
      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
2331
      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
2332
      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
2333
      ;;
2334
    mingw*)
2335
      # MinGW DLLs use traditional 'lib' prefix
2336
      soname_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
2337
      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
2338
      if echo "$sys_lib_search_path_spec" | [grep ';[c-zC-Z]:/' >/dev/null]; then
2339
        # It is most probably a Windows format PATH printed by
2340
        # mingw gcc, but we are running on Cygwin. Gcc prints its search
2341
        # path with ; separators, and with drive letters. We can handle the
2342
        # drive letters (cygwin fileutils understands them), so leave them,
2343
        # especially as we might pass files found there to a mingw objdump,
2344
        # which wouldn't understand a cygwinified path. Ahh.
2345
        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
2346
      else
2347
        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
2348
      fi
2349
      ;;
2350
    pw32*)
2351
      # pw32 DLLs use 'pw' prefix rather than 'lib'
2352
      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
2353
      ;;
2354
    esac
2355
    ;;
2356
2357
  linux*)
2358
    if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
2359
      archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
2360
      supports_anon_versioning=no
2361
      case `$LD -v 2>/dev/null` in
2362
        *\ [01].* | *\ 2.[[0-9]].* | *\ 2.10.*) ;; # catch versions < 2.11
2363
        *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
2364
        *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
2365
        *\ 2.11.*) ;; # other 2.11 versions
2366
        *) supports_anon_versioning=yes ;;
2367
      esac
2368
      if test $supports_anon_versioning = yes; then
2369
        archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
2370
cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
2371
$echo "local: *; };" >> $output_objdir/$libname.ver~
2372
        $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
2373
      else
2374
        $archive_expsym_cmds="$archive_cmds"
2375
      fi
2376
    else
2377
      ld_shlibs=no
2378
    fi
2379
    ;;
2380
2381
  *)
2382
    library_names_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext} $libname.lib'
2383
    ;;
2384
  esac
2385
  dynamic_linker='Win32 ld.exe'
2386
  # FIXME: first we should search . and the directory the executable is in
2387
  shlibpath_var=PATH
2388
  ;;
2389
2390
darwin* | rhapsody*)
2391
  dynamic_linker="$host_os dyld"
2392
  version_type=darwin
2393
  need_lib_prefix=no
2394
  need_version=no
2395
  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
2396
  soname_spec='${libname}${release}${major}$shared_ext'
2397
  shlibpath_overrides_runpath=yes
2398
  shlibpath_var=DYLD_LIBRARY_PATH
2399
  shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
2400
  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
2401
  if test "$GCC" = yes; then
2402
    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"`
2403
  else
2404
    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
2405
  fi
2406
  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
2407
  ;;
2408
2409
dgux*)
2410
  version_type=linux
2411
  need_lib_prefix=no
2412
  need_version=no
2413
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
2414
  soname_spec='${libname}${release}${shared_ext}$major'
2415
  shlibpath_var=LD_LIBRARY_PATH
2416
  ;;
2417
2418
freebsd1*)
2419
  dynamic_linker=no
2420
  ;;
2421
2422
kfreebsd*-gnu)
2423
  version_type=linux
2424
  need_lib_prefix=no
2425
  need_version=no
2426
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
2427
  soname_spec='${libname}${release}${shared_ext}$major'
2428
  shlibpath_var=LD_LIBRARY_PATH
2429
  shlibpath_overrides_runpath=no
2430
  hardcode_into_libs=yes
2431
  dynamic_linker='GNU ld.so'
2432
  ;;
2433
2434
freebsd* | dragonfly*)
2435
  # DragonFly does not have aout.  When/if they implement a new
2436
  # versioning mechanism, adjust this.
2437
  objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
2438
  version_type=freebsd-$objformat
2439
  case $version_type in
2440
    freebsd-elf*)
2441
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
2442
      need_version=no
2443
      need_lib_prefix=no
2444
      ;;
2445
    freebsd-*)
2446
      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
2447
      need_version=yes
2448
      ;;
2449
  esac
2450
  shlibpath_var=LD_LIBRARY_PATH
2451
  case $host_os in
2452
  freebsd2*)
2453
    shlibpath_overrides_runpath=yes
2454
    ;;
2455
  freebsd3.[[01]]* | freebsdelf3.[[01]]*)
2456
    shlibpath_overrides_runpath=yes
2457
    hardcode_into_libs=yes
2458
    ;;
2459
  *) # from 3.2 on
2460
    shlibpath_overrides_runpath=no
2461
    hardcode_into_libs=yes
2462
    ;;
2463
  esac
2464
  ;;
2465
2466
gnu*)
2467
  version_type=linux
2468
  need_lib_prefix=no
2469
  need_version=no
2470
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
2471
  soname_spec='${libname}${release}${shared_ext}$major'
2472
  shlibpath_var=LD_LIBRARY_PATH
2473
  hardcode_into_libs=yes
2474
  ;;
2475
2476
hpux9* | hpux10* | hpux11*)
2477
  # Give a soname corresponding to the major version so that dld.sl refuses to
2478
  # link against other versions.
2479
  version_type=sunos
2480
  need_lib_prefix=no
2481
  need_version=no
2482
  case "$host_cpu" in
2483
  ia64*)
2484
    shrext_cmds='.so'
2485
    hardcode_into_libs=yes
2486
    dynamic_linker="$host_os dld.so"
2487
    shlibpath_var=LD_LIBRARY_PATH
2488
    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
2489
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
2490
    soname_spec='${libname}${release}${shared_ext}$major'
2491
    if test "X$HPUX_IA64_MODE" = X32; then
2492
      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
2493
    else
2494
      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
2495
    fi
2496
    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
2497
    ;;
2498
   hppa*64*)
2499
     shrext_cmds='.sl'
2500
     hardcode_into_libs=yes
2501
     dynamic_linker="$host_os dld.sl"
2502
     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
2503
     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
2504
     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
2505
     soname_spec='${libname}${release}${shared_ext}$major'
2506
     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
2507
     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
2508
     ;;
2509
   *)
2510
    shrext_cmds='.sl'
2511
    dynamic_linker="$host_os dld.sl"
2512
    shlibpath_var=SHLIB_PATH
2513
    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
2514
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
2515
    soname_spec='${libname}${release}${shared_ext}$major'
2516
    ;;
2517
  esac
2518
  # HP-UX runs *really* slowly unless shared libraries are mode 555.
2519
  postinstall_cmds='chmod 555 $lib'
2520
  ;;
2521
2522
irix5* | irix6* | nonstopux*)
2523
  case $host_os in
2524
    nonstopux*) version_type=nonstopux ;;
2525
    *)
2526
	if test "$lt_cv_prog_gnu_ld" = yes; then
2527
		version_type=linux
2528
	else
2529
		version_type=irix
2530
	fi ;;
2531
  esac
2532
  need_lib_prefix=no
2533
  need_version=no
2534
  soname_spec='${libname}${release}${shared_ext}$major'
2535
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
2536
  case $host_os in
2537
  irix5* | nonstopux*)
2538
    libsuff= shlibsuff=
2539
    ;;
2540
  *)
2541
    case $LD in # libtool.m4 will add one of these switches to LD
2542
    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
2543
      libsuff= shlibsuff= libmagic=32-bit;;
2544
    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
2545
      libsuff=32 shlibsuff=N32 libmagic=N32;;
2546
    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
2547
      libsuff=64 shlibsuff=64 libmagic=64-bit;;
2548
    *) libsuff= shlibsuff= libmagic=never-match;;
2549
    esac
2550
    ;;
2551
  esac
2552
  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
2553
  shlibpath_overrides_runpath=no
2554
  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
2555
  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
2556
  hardcode_into_libs=yes
2557
  ;;
2558
2559
# No shared lib support for Linux oldld, aout, or coff.
2560
linux*oldld* | linux*aout* | linux*coff*)
2561
  dynamic_linker=no
2562
  ;;
2563
2564
# This must be Linux ELF.
2565
linux*)
2566
  version_type=linux
2567
  need_lib_prefix=no
2568
  need_version=no
2569
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
2570
  soname_spec='${libname}${release}${shared_ext}$major'
2571
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
2572
  shlibpath_var=LD_LIBRARY_PATH
2573
  shlibpath_overrides_runpath=no
2574
  # This implies no fast_install, which is unacceptable.
2575
  # Some rework will be needed to allow for fast_install
2576
  # before this can be enabled.
2577
  hardcode_into_libs=yes
2578
2579
  # Append ld.so.conf contents to the search path
2580
  if test -f /etc/ld.so.conf; then
2581
    lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \[$]2)); skip = 1; } { if (!skip) print \[$]0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:,	]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
2582
    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
2583
  fi
2584
2585
  case $host_cpu:$lt_cv_cc_64bit_output in
2586
  powerpc64:yes | s390x:yes | sparc64:yes | x86_64:yes)
2587
    sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /usr/X11R6/lib64"
2588
    sys_lib_search_path_spec="/lib64 /usr/lib64 /usr/local/lib64 /usr/X11R6/lib64"
2589
    ;;
2590
  esac
2591
2592
  # We used to test for /lib/ld.so.1 and disable shared libraries on
2593
  # powerpc, because MkLinux only supported shared libraries with the
2594
  # GNU dynamic linker.  Since this was broken with cross compilers,
2595
  # most powerpc-linux boxes support dynamic linking these days and
2596
  # people can always --disable-shared, the test was removed, and we
2597
  # assume the GNU/Linux dynamic linker is in use.
2598
  dynamic_linker='GNU/Linux ld.so'
2599
2600
  # Find out which ABI we are using (multilib Linux x86_64 hack).
2601
  libsuff=
2602
  case "$host_cpu" in
2603
  x86_64*)
2604
    echo '[#]line __oline__ "configure"' > conftest.$ac_ext
2605
    if AC_TRY_EVAL(ac_compile); then
2606
      case `/usr/bin/file conftest.$ac_objext` in
2607
      *64-bit*)
2608
        libsuff=64
2609
        ;;
2610
      esac
2611
    fi
2612
    rm -rf conftest*
2613
    ;;
2614
  *)
2615
    ;;
2616
  esac
2617
  sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff}"
2618
  sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
2619
  ;;
2620
2621
knetbsd*-gnu)
2622
  version_type=linux
2623
  need_lib_prefix=no
2624
  need_version=no
2625
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
2626
  soname_spec='${libname}${release}${shared_ext}$major'
2627
  shlibpath_var=LD_LIBRARY_PATH
2628
  shlibpath_overrides_runpath=no
2629
  hardcode_into_libs=yes
2630
  dynamic_linker='GNU ld.so'
2631
  ;;
2632
2633
netbsd*)
2634
  version_type=sunos
2635
  need_lib_prefix=no
2636
  need_version=no
2637
  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
2638
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
2639
    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
2640
    dynamic_linker='NetBSD (a.out) ld.so'
2641
  else
2642
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
2643
    soname_spec='${libname}${release}${shared_ext}$major'
2644
    dynamic_linker='NetBSD ld.elf_so'
2645
  fi
2646
  shlibpath_var=LD_LIBRARY_PATH
2647
  shlibpath_overrides_runpath=yes
2648
  hardcode_into_libs=yes
2649
  ;;
2650
2651
newsos6)
2652
  version_type=linux
2653
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
2654
  shlibpath_var=LD_LIBRARY_PATH
2655
  shlibpath_overrides_runpath=yes
2656
  ;;
2657
2658
nto-qnx*)
2659
  version_type=linux
2660
  need_lib_prefix=no
2661
  need_version=no
2662
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
2663
  soname_spec='${libname}${release}${shared_ext}$major'
2664
  shlibpath_var=LD_LIBRARY_PATH
2665
  shlibpath_overrides_runpath=yes
2666
  ;;
2667
2668
openbsd*)
2669
  version_type=sunos
2670
  need_lib_prefix=no
2671
  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
2672
  case $host_os in
2673
    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
2674
    *)                         need_version=no  ;;
2675
  esac
2676
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
2677
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
2678
  shlibpath_var=LD_LIBRARY_PATH
2679
  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
2680
    case $host_os in
2681
      openbsd2.[[89]] | openbsd2.[[89]].*)
2682
	shlibpath_overrides_runpath=no
2683
	;;
2684
      *)
2685
	shlibpath_overrides_runpath=yes
2686
	;;
2687
      esac
2688
  else
2689
    shlibpath_overrides_runpath=yes
2690
  fi
2691
  ;;
2692
2693
os2*)
2694
  libname_spec='$name'
2695
  shrext_cmds=".dll"
2696
  need_lib_prefix=no
2697
  library_names_spec='$libname${shared_ext} $libname.a'
2698
  dynamic_linker='OS/2 ld.exe'
2699
  shlibpath_var=LIBPATH
2700
  ;;
2701
2702
osf3* | osf4* | osf5*)
2703
  version_type=osf
2704
  need_lib_prefix=no
2705
  need_version=no
2706
  soname_spec='${libname}${release}${shared_ext}$major'
2707
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
2708
  shlibpath_var=LD_LIBRARY_PATH
2709
  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
2710
  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
2711
  ;;
2712
2713
sco3.2v5*)
2714
  version_type=osf
2715
  soname_spec='${libname}${release}${shared_ext}$major'
2716
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
2717
  shlibpath_var=LD_LIBRARY_PATH
2718
  ;;
2719
2720
solaris*)
2721
  version_type=linux
2722
  need_lib_prefix=no
2723
  need_version=no
2724
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
2725
  soname_spec='${libname}${release}${shared_ext}$major'
2726
  shlibpath_var=LD_LIBRARY_PATH
2727
  shlibpath_overrides_runpath=yes
2728
  hardcode_into_libs=yes
2729
  # ldd complains unless libraries are executable
2730
  postinstall_cmds='chmod +x $lib'
2731
  ;;
2732
2733
sunos4*)
2734
  version_type=sunos
2735
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
2736
  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
2737
  shlibpath_var=LD_LIBRARY_PATH
2738
  shlibpath_overrides_runpath=yes
2739
  if test "$with_gnu_ld" = yes; then
2740
    need_lib_prefix=no
2741
  fi
2742
  need_version=yes
2743
  ;;
2744
2745
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
2746
  version_type=linux
2747
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
2748
  soname_spec='${libname}${release}${shared_ext}$major'
2749
  shlibpath_var=LD_LIBRARY_PATH
2750
  case $host_vendor in
2751
    sni)
2752
      shlibpath_overrides_runpath=no
2753
      need_lib_prefix=no
2754
      export_dynamic_flag_spec='${wl}-Blargedynsym'
2755
      runpath_var=LD_RUN_PATH
2756
      ;;
2757
    siemens)
2758
      need_lib_prefix=no
2759
      ;;
2760
    motorola)
2761
      need_lib_prefix=no
2762
      need_version=no
2763
      shlibpath_overrides_runpath=no
2764
      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
2765
      ;;
2766
  esac
2767
  ;;
2768
2769
sysv4*MP*)
2770
  if test -d /usr/nec ;then
2771
    version_type=linux
2772
    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
2773
    soname_spec='$libname${shared_ext}.$major'
2774
    shlibpath_var=LD_LIBRARY_PATH
2775
  fi
2776
  ;;
2777
2778
uts4*)
2779
  version_type=linux
2780
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
2781
  soname_spec='${libname}${release}${shared_ext}$major'
2782
  shlibpath_var=LD_LIBRARY_PATH
2783
  ;;
2784
2785
*)
2786
  dynamic_linker=no
2787
  ;;
2788
esac
2789
AC_MSG_RESULT([$dynamic_linker])
2790
test "$dynamic_linker" = no && can_build_shared=no
2791
])# AC_LIBTOOL_SYS_DYNAMIC_LINKER
2792
2793
2794
# _LT_AC_TAGCONFIG
2795
# ----------------
2796
AC_DEFUN([_LT_AC_TAGCONFIG],
2797
[AC_ARG_WITH([tags],
2798
    [AC_HELP_STRING([--with-tags@<:@=TAGS@:>@],
2799
        [include additional configurations @<:@automatic@:>@])],
2800
    [tagnames="$withval"])
2801
2802
if test -f "$ltmain" && test -n "$tagnames"; then
2803
  if test ! -f "${ofile}"; then
2804
    AC_MSG_WARN([output file `$ofile' does not exist])
2805
  fi
2806
2807
  if test -z "$LTCC"; then
2808
    eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
2809
    if test -z "$LTCC"; then
2810
      AC_MSG_WARN([output file `$ofile' does not look like a libtool script])
2811
    else
2812
      AC_MSG_WARN([using `LTCC=$LTCC', extracted from `$ofile'])
2813
    fi
2814
  fi
2815
2816
  # Extract list of available tagged configurations in $ofile.
2817
  # Note that this assumes the entire list is on one line.
2818
  available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
2819
2820
  lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2821
  for tagname in $tagnames; do
2822
    IFS="$lt_save_ifs"
2823
    # Check whether tagname contains only valid characters
2824
    case `$echo "X$tagname" | $Xsed -e 's:[[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]]::g'` in
2825
    "") ;;
2826
    *)  AC_MSG_ERROR([invalid tag name: $tagname])
2827
	;;
2828
    esac
2829
2830
    if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
2831
    then
2832
      AC_MSG_ERROR([tag name \"$tagname\" already exists])
2833
    fi
2834
2835
    # Update the list of available tags.
2836
    if test -n "$tagname"; then
2837
      echo appending configuration tag \"$tagname\" to $ofile
2838
2839
      case $tagname in
2840
      CXX)
2841
	if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
2842
	    ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
2843
	    (test "X$CXX" != "Xg++"))) ; then
2844
	  AC_LIBTOOL_LANG_CXX_CONFIG
2845
	else
2846
	  tagname=""
2847
	fi
2848
	;;
2849
2850
      F77)
2851
	if test -n "$F77" && test "X$F77" != "Xno"; then
2852
	  AC_LIBTOOL_LANG_F77_CONFIG
2853
	else
2854
	  tagname=""
2855
	fi
2856
	;;
2857
2858
      GCJ)
2859
	if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
2860
	  AC_LIBTOOL_LANG_GCJ_CONFIG
2861
	else
2862
	  tagname=""
2863
	fi
2864
	;;
2865
2866
      RC)
2867
	AC_LIBTOOL_LANG_RC_CONFIG
2868
	;;
2869
2870
      *)
2871
	AC_MSG_ERROR([Unsupported tag name: $tagname])
2872
	;;
2873
      esac
2874
2875
      # Append the new tag name to the list of available tags.
2876
      if test -n "$tagname" ; then
2877
      available_tags="$available_tags $tagname"
2878
    fi
2879
    fi
2880
  done
2881
  IFS="$lt_save_ifs"
2882
2883
  # Now substitute the updated list of available tags.
2884
  if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
2885
    mv "${ofile}T" "$ofile"
2886
    chmod +x "$ofile"
2887
  else
2888
    rm -f "${ofile}T"
2889
    AC_MSG_ERROR([unable to update list of available tagged configurations.])
2890
  fi
2891
fi
2892
])# _LT_AC_TAGCONFIG
2893
2894
2895
# AC_LIBTOOL_DLOPEN
2896
# -----------------
2897
# enable checks for dlopen support
2898
AC_DEFUN([AC_LIBTOOL_DLOPEN],
2899
 [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])
2900
])# AC_LIBTOOL_DLOPEN
2901
2902
2903
# AC_LIBTOOL_WIN32_DLL
2904
# --------------------
2905
# declare package support for building win32 dll's
2906
AC_DEFUN([AC_LIBTOOL_WIN32_DLL],
2907
[AC_BEFORE([$0], [AC_LIBTOOL_SETUP])
2908
])# AC_LIBTOOL_WIN32_DLL
2909
2910
2911
# AC_ENABLE_SHARED([DEFAULT])
2912
# ---------------------------
2913
# implement the --enable-shared flag
2914
# DEFAULT is either `yes' or `no'.  If omitted, it defaults to `yes'.
2915
AC_DEFUN([AC_ENABLE_SHARED],
2916
[define([AC_ENABLE_SHARED_DEFAULT], ifelse($1, no, no, yes))dnl
2917
AC_ARG_ENABLE([shared],
2918
    [AC_HELP_STRING([--enable-shared@<:@=PKGS@:>@],
2919
	[build shared libraries @<:@default=]AC_ENABLE_SHARED_DEFAULT[@:>@])],
2920
    [p=${PACKAGE-default}
2921
    case $enableval in
2922
    yes) enable_shared=yes ;;
2923
    no) enable_shared=no ;;
2924
    *)
2925
      enable_shared=no
2926
      # Look at the argument we got.  We use all the common list separators.
2927
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2928
      for pkg in $enableval; do
2929
	IFS="$lt_save_ifs"
2930
	if test "X$pkg" = "X$p"; then
2931
	  enable_shared=yes
2932
	fi
2933
      done
2934
      IFS="$lt_save_ifs"
2935
      ;;
2936
    esac],
2937
    [enable_shared=]AC_ENABLE_SHARED_DEFAULT)
2938
])# AC_ENABLE_SHARED
2939
2940
2941
# AC_DISABLE_SHARED
2942
# -----------------
2943
#- set the default shared flag to --disable-shared
2944
AC_DEFUN([AC_DISABLE_SHARED],
2945
[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
2946
AC_ENABLE_SHARED(no)
2947
])# AC_DISABLE_SHARED
2948
2949
2950
# AC_ENABLE_STATIC([DEFAULT])
2951
# ---------------------------
2952
# implement the --enable-static flag
2953
# DEFAULT is either `yes' or `no'.  If omitted, it defaults to `yes'.
2954
AC_DEFUN([AC_ENABLE_STATIC],
2955
[define([AC_ENABLE_STATIC_DEFAULT], ifelse($1, no, no, yes))dnl
2956
AC_ARG_ENABLE([static],
2957
    [AC_HELP_STRING([--enable-static@<:@=PKGS@:>@],
2958
	[build static libraries @<:@default=]AC_ENABLE_STATIC_DEFAULT[@:>@])],
2959
    [p=${PACKAGE-default}
2960
    case $enableval in
2961
    yes) enable_static=yes ;;
2962
    no) enable_static=no ;;
2963
    *)
2964
     enable_static=no
2965
      # Look at the argument we got.  We use all the common list separators.
2966
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2967
      for pkg in $enableval; do
2968
	IFS="$lt_save_ifs"
2969
	if test "X$pkg" = "X$p"; then
2970
	  enable_static=yes
2971
	fi
2972
      done
2973
      IFS="$lt_save_ifs"
2974
      ;;
2975
    esac],
2976
    [enable_static=]AC_ENABLE_STATIC_DEFAULT)
2977
])# AC_ENABLE_STATIC
2978
2979
2980
# AC_DISABLE_STATIC
2981
# -----------------
2982
# set the default static flag to --disable-static
2983
AC_DEFUN([AC_DISABLE_STATIC],
2984
[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
2985
AC_ENABLE_STATIC(no)
2986
])# AC_DISABLE_STATIC
2987
2988
2989
# AC_ENABLE_FAST_INSTALL([DEFAULT])
2990
# ---------------------------------
2991
# implement the --enable-fast-install flag
2992
# DEFAULT is either `yes' or `no'.  If omitted, it defaults to `yes'.
2993
AC_DEFUN([AC_ENABLE_FAST_INSTALL],
2994
[define([AC_ENABLE_FAST_INSTALL_DEFAULT], ifelse($1, no, no, yes))dnl
2995
AC_ARG_ENABLE([fast-install],
2996
    [AC_HELP_STRING([--enable-fast-install@<:@=PKGS@:>@],
2997
    [optimize for fast installation @<:@default=]AC_ENABLE_FAST_INSTALL_DEFAULT[@:>@])],
2998
    [p=${PACKAGE-default}
2999
    case $enableval in
3000
    yes) enable_fast_install=yes ;;
3001
    no) enable_fast_install=no ;;
3002
    *)
3003
      enable_fast_install=no
3004
      # Look at the argument we got.  We use all the common list separators.
3005
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3006
      for pkg in $enableval; do
3007
	IFS="$lt_save_ifs"
3008
	if test "X$pkg" = "X$p"; then
3009
	  enable_fast_install=yes
3010
	fi
3011
      done
3012
      IFS="$lt_save_ifs"
3013
      ;;
3014
    esac],
3015
    [enable_fast_install=]AC_ENABLE_FAST_INSTALL_DEFAULT)
3016
])# AC_ENABLE_FAST_INSTALL
3017
3018
3019
# AC_DISABLE_FAST_INSTALL
3020
# -----------------------
3021
# set the default to --disable-fast-install
3022
AC_DEFUN([AC_DISABLE_FAST_INSTALL],
3023
[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
3024
AC_ENABLE_FAST_INSTALL(no)
3025
])# AC_DISABLE_FAST_INSTALL
3026
3027
3028
# AC_LIBTOOL_PICMODE([MODE])
3029
# --------------------------
3030
# implement the --with-pic flag
3031
# MODE is either `yes' or `no'.  If omitted, it defaults to `both'.
3032
AC_DEFUN([AC_LIBTOOL_PICMODE],
3033
[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
3034
pic_mode=ifelse($#,1,$1,default)
3035
])# AC_LIBTOOL_PICMODE
3036
3037
3038
# AC_PROG_EGREP
3039
# -------------
3040
# This is predefined starting with Autoconf 2.54, so this conditional
3041
# definition can be removed once we require Autoconf 2.54 or later.
3042
m4_ifndef([AC_PROG_EGREP], [AC_DEFUN([AC_PROG_EGREP],
3043
[AC_CACHE_CHECK([for egrep], [ac_cv_prog_egrep],
3044
   [if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3045
    then ac_cv_prog_egrep='grep -E'
3046
    else ac_cv_prog_egrep='egrep'
3047
    fi])
3048
 EGREP=$ac_cv_prog_egrep
3049
 AC_SUBST([EGREP])
3050
])])
3051
3052
3053
# AC_PATH_TOOL_PREFIX
3054
# -------------------
3055
# find a file program which can recognise shared library
3056
AC_DEFUN([AC_PATH_TOOL_PREFIX],
3057
[AC_REQUIRE([AC_PROG_EGREP])dnl
3058
AC_MSG_CHECKING([for $1])
3059
AC_CACHE_VAL(lt_cv_path_MAGIC_CMD,
3060
[case $MAGIC_CMD in
3061
[[\\/*] |  ?:[\\/]*])
3062
  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
3063
  ;;
3064
*)
3065
  lt_save_MAGIC_CMD="$MAGIC_CMD"
3066
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3067
dnl $ac_dummy forces splitting on constant user-supplied paths.
3068
dnl POSIX.2 word splitting is done only on the output of word expansions,
3069
dnl not every word.  This closes a longstanding sh security hole.
3070
  ac_dummy="ifelse([$2], , $PATH, [$2])"
3071
  for ac_dir in $ac_dummy; do
3072
    IFS="$lt_save_ifs"
3073
    test -z "$ac_dir" && ac_dir=.
3074
    if test -f $ac_dir/$1; then
3075
      lt_cv_path_MAGIC_CMD="$ac_dir/$1"
3076
      if test -n "$file_magic_test_file"; then
3077
	case $deplibs_check_method in
3078
	"file_magic "*)
3079
	  file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
3080
	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
3081
	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
3082
	    $EGREP "$file_magic_regex" > /dev/null; then
3083
	    :
3084
	  else
3085
	    cat <<EOF 1>&2
3086
3087
*** Warning: the command libtool uses to detect shared libraries,
3088
*** $file_magic_cmd, produces output that libtool cannot recognize.
3089
*** The result is that libtool may fail to recognize shared libraries
3090
*** as such.  This will affect the creation of libtool libraries that
3091
*** depend on shared libraries, but programs linked with such libtool
3092
*** libraries will work regardless of this problem.  Nevertheless, you
3093
*** may want to report the problem to your system manager and/or to
3094
*** bug-libtool@gnu.org
3095
3096
EOF
3097
	  fi ;;
3098
	esac
3099
      fi
3100
      break
3101
    fi
3102
  done
3103
  IFS="$lt_save_ifs"
3104
  MAGIC_CMD="$lt_save_MAGIC_CMD"
3105
  ;;
3106
esac])
3107
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
3108
if test -n "$MAGIC_CMD"; then
3109
  AC_MSG_RESULT($MAGIC_CMD)
3110
else
3111
  AC_MSG_RESULT(no)
3112
fi
3113
])# AC_PATH_TOOL_PREFIX
3114
3115
3116
# AC_PATH_MAGIC
3117
# -------------
3118
# find a file program which can recognise a shared library
3119
AC_DEFUN([AC_PATH_MAGIC],
3120
[AC_PATH_TOOL_PREFIX(${ac_tool_prefix}file, /usr/bin$PATH_SEPARATOR$PATH)
3121
if test -z "$lt_cv_path_MAGIC_CMD"; then
3122
  if test -n "$ac_tool_prefix"; then
3123
    AC_PATH_TOOL_PREFIX(file, /usr/bin$PATH_SEPARATOR$PATH)
3124
  else
3125
    MAGIC_CMD=:
3126
  fi
3127
fi
3128
])# AC_PATH_MAGIC
3129
3130
3131
# AC_PROG_LD
3132
# ----------
3133
# find the pathname to the GNU or non-GNU linker
3134
AC_DEFUN([AC_PROG_LD],
3135
[AC_ARG_WITH([gnu-ld],
3136
    [AC_HELP_STRING([--with-gnu-ld],
3137
	[assume the C compiler uses GNU ld @<:@default=no@:>@])],
3138
    [test "$withval" = no || with_gnu_ld=yes],
3139
    [with_gnu_ld=no])
3140
AC_REQUIRE([LT_AC_PROG_SED])dnl
3141
AC_REQUIRE([AC_PROG_CC])dnl
3142
AC_REQUIRE([AC_CANONICAL_HOST])dnl
3143
AC_REQUIRE([AC_CANONICAL_BUILD])dnl
3144
ac_prog=ld
3145
if test "$GCC" = yes; then
3146
  # Check if gcc -print-prog-name=ld gives a path.
3147
  AC_MSG_CHECKING([for ld used by $CC])
3148
  case $host in
3149
  *-*-mingw*)
3150
    # gcc leaves a trailing carriage return which upsets mingw
3151
    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3152
  *)
3153
    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3154
  esac
3155
  case $ac_prog in
3156
    # Accept absolute paths.
3157
    [[\\/]]* | ?:[[\\/]]*)
3158
      re_direlt='/[[^/]][[^/]]*/\.\./'
3159
      # Canonicalize the pathname of ld
3160
      ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
3161
      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
3162
	ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
3163
      done
3164
      test -z "$LD" && LD="$ac_prog"
3165
      ;;
3166
  "")
3167
    # If it fails, then pretend we aren't using GCC.
3168
    ac_prog=ld
3169
    ;;
3170
  *)
3171
    # If it is relative, then search for the first ld in PATH.
3172
    with_gnu_ld=unknown
3173
    ;;
3174
  esac
3175
elif test "$with_gnu_ld" = yes; then
3176
  AC_MSG_CHECKING([for GNU ld])
3177
else
3178
  AC_MSG_CHECKING([for non-GNU ld])
3179
fi
3180
AC_CACHE_VAL(lt_cv_path_LD,
3181
[if test -z "$LD"; then
3182
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3183
  for ac_dir in $PATH; do
3184
    IFS="$lt_save_ifs"
3185
    test -z "$ac_dir" && ac_dir=.
3186
    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3187
      lt_cv_path_LD="$ac_dir/$ac_prog"
3188
      # Check to see if the program is GNU ld.  I'd rather use --version,
3189
      # but apparently some GNU ld's only accept -v.
3190
      # Break only if it was the GNU/non-GNU ld that we prefer.
3191
      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
3192
      *GNU* | *'with BFD'*)
3193
	test "$with_gnu_ld" != no && break
3194
	;;
3195
      *)
3196
	test "$with_gnu_ld" != yes && break
3197
	;;
3198
      esac
3199
    fi
3200
  done
3201
  IFS="$lt_save_ifs"
3202
else
3203
  lt_cv_path_LD="$LD" # Let the user override the test with a path.
3204
fi])
3205
LD="$lt_cv_path_LD"
3206
if test -n "$LD"; then
3207
  AC_MSG_RESULT($LD)
3208
else
3209
  AC_MSG_RESULT(no)
3210
fi
3211
test -z "$LD" && AC_MSG_ERROR([no acceptable ld found in \$PATH])
3212
AC_PROG_LD_GNU
3213
])# AC_PROG_LD
3214
3215
3216
# AC_PROG_LD_GNU
3217
# --------------
3218
AC_DEFUN([AC_PROG_LD_GNU],
3219
[AC_REQUIRE([AC_PROG_EGREP])dnl
3220
AC_CACHE_CHECK([if the linker ($LD) is GNU ld], lt_cv_prog_gnu_ld,
3221
[# I'd rather use --version here, but apparently some GNU ld's only accept -v.
3222
case `$LD -v 2>&1 </dev/null` in
3223
*GNU* | *'with BFD'*)
3224
  lt_cv_prog_gnu_ld=yes
3225
  ;;
3226
*)
3227
  lt_cv_prog_gnu_ld=no
3228
  ;;
3229
esac])
3230
with_gnu_ld=$lt_cv_prog_gnu_ld
3231
])# AC_PROG_LD_GNU
3232
3233
3234
# AC_PROG_LD_RELOAD_FLAG
3235
# ----------------------
3236
# find reload flag for linker
3237
#   -- PORTME Some linkers may need a different reload flag.
3238
AC_DEFUN([AC_PROG_LD_RELOAD_FLAG],
3239
[AC_CACHE_CHECK([for $LD option to reload object files],
3240
  lt_cv_ld_reload_flag,
3241
  [lt_cv_ld_reload_flag='-r'])
3242
reload_flag=$lt_cv_ld_reload_flag
3243
case $reload_flag in
3244
"" | " "*) ;;
3245
*) reload_flag=" $reload_flag" ;;
3246
esac
3247
reload_cmds='$LD$reload_flag -o $output$reload_objs'
3248
case $host_os in
3249
  darwin*)
3250
    if test "$GCC" = yes; then
3251
      reload_cmds='$CC -nostdlib ${wl}-r -o $output$reload_objs'
3252
    else
3253
      reload_cmds='$LD$reload_flag -o $output$reload_objs'
3254
    fi
3255
    ;;
3256
esac
3257
])# AC_PROG_LD_RELOAD_FLAG
3258
3259
3260
# AC_DEPLIBS_CHECK_METHOD
3261
# -----------------------
3262
# how to check for library dependencies
3263
#  -- PORTME fill in with the dynamic library characteristics
3264
AC_DEFUN([AC_DEPLIBS_CHECK_METHOD],
3265
[AC_CACHE_CHECK([how to recognise dependent libraries],
3266
lt_cv_deplibs_check_method,
3267
[lt_cv_file_magic_cmd='$MAGIC_CMD'
3268
lt_cv_file_magic_test_file=
3269
lt_cv_deplibs_check_method='unknown'
3270
# Need to set the preceding variable on all platforms that support
3271
# interlibrary dependencies.
3272
# 'none' -- dependencies not supported.
3273
# `unknown' -- same as none, but documents that we really don't know.
3274
# 'pass_all' -- all dependencies passed with no checks.
3275
# 'test_compile' -- check by making test program.
3276
# 'file_magic [[regex]]' -- check by looking for files in library path
3277
# which responds to the $file_magic_cmd with a given extended regex.
3278
# If you have `file' or equivalent on your system and you're not sure
3279
# whether `pass_all' will *always* work, you probably want this one.
3280
3281
case $host_os in
3282
aix4* | aix5*)
3283
  lt_cv_deplibs_check_method=pass_all
3284
  ;;
3285
3286
beos*)
3287
  lt_cv_deplibs_check_method=pass_all
3288
  ;;
3289
3290
bsdi[[45]]*)
3291
  lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (shared object|dynamic lib)'
3292
  lt_cv_file_magic_cmd='/usr/bin/file -L'
3293
  lt_cv_file_magic_test_file=/shlib/libc.so
3294
  ;;
3295
3296
cygwin*)
3297
  # func_win32_libid is a shell function defined in ltmain.sh
3298
  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
3299
  lt_cv_file_magic_cmd='func_win32_libid'
3300
  ;;
3301
3302
mingw* | pw32*)
3303
  # Base MSYS/MinGW do not provide the 'file' command needed by
3304
  # func_win32_libid shell function, so use a weaker test based on 'objdump'.
3305
  lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
3306
  lt_cv_file_magic_cmd='$OBJDUMP -f'
3307
  ;;
3308
3309
darwin* | rhapsody*)
3310
  lt_cv_deplibs_check_method=pass_all
3311
  ;;
3312
3313
freebsd* | kfreebsd*-gnu | dragonfly*)
3314
  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3315
    case $host_cpu in
3316
    i*86 )
3317
      # Not sure whether the presence of OpenBSD here was a mistake.
3318
      # Let's accept both of them until this is cleared up.
3319
      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[[3-9]]86 (compact )?demand paged shared library'
3320
      lt_cv_file_magic_cmd=/usr/bin/file
3321
      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3322
      ;;
3323
    esac
3324
  else
3325
    lt_cv_deplibs_check_method=pass_all
3326
  fi
3327
  ;;
3328
3329
gnu*)
3330
  lt_cv_deplibs_check_method=pass_all
3331
  ;;
3332
3333
hpux10.20* | hpux11*)
3334
  lt_cv_file_magic_cmd=/usr/bin/file
3335
  case "$host_cpu" in
3336
  ia64*)
3337
    lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|ELF-[[0-9]][[0-9]]) shared object file - IA64'
3338
    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
3339
    ;;
3340
  hppa*64*)
3341
    [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]']
3342
    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
3343
    ;;
3344
  *)
3345
    lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|PA-RISC[[0-9]].[[0-9]]) shared library'
3346
    lt_cv_file_magic_test_file=/usr/lib/libc.sl
3347
    ;;
3348
  esac
3349
  ;;
3350
3351
irix5* | irix6* | nonstopux*)
3352
  case $LD in
3353
  *-32|*"-32 ") libmagic=32-bit;;
3354
  *-n32|*"-n32 ") libmagic=N32;;
3355
  *-64|*"-64 ") libmagic=64-bit;;
3356
  *) libmagic=never-match;;
3357
  esac
3358
  lt_cv_deplibs_check_method=pass_all
3359
  ;;
3360
3361
# This must be Linux ELF.
3362
linux*)
3363
  lt_cv_deplibs_check_method=pass_all
3364
  ;;
3365
3366
netbsd*)
3367
  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3368
    lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$'
3369
  else
3370
    lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so|_pic\.a)$'
3371
  fi
3372
  ;;
3373
3374
newos6*)
3375
  lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (executable|dynamic lib)'
3376
  lt_cv_file_magic_cmd=/usr/bin/file
3377
  lt_cv_file_magic_test_file=/usr/lib/libnls.so
3378
  ;;
3379
3380
nto-qnx*)
3381
  lt_cv_deplibs_check_method=unknown
3382
  ;;
3383
3384
openbsd*)
3385
  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
3386
    lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|\.so|_pic\.a)$'
3387
  else
3388
    lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$'
3389
  fi
3390
  ;;
3391
3392
osf3* | osf4* | osf5*)
3393
  lt_cv_deplibs_check_method=pass_all
3394
  ;;
3395
3396
sco3.2v5*)
3397
  lt_cv_deplibs_check_method=pass_all
3398
  ;;
3399
3400
solaris*)
3401
  lt_cv_deplibs_check_method=pass_all
3402
  ;;
3403
3404
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
3405
  case $host_vendor in
3406
  motorola)
3407
    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]]'
3408
    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
3409
    ;;
3410
  ncr)
3411
    lt_cv_deplibs_check_method=pass_all
3412
    ;;
3413
  sequent)
3414
    lt_cv_file_magic_cmd='/bin/file'
3415
    lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB (shared object|dynamic lib )'
3416
    ;;
3417
  sni)
3418
    lt_cv_file_magic_cmd='/bin/file'
3419
    lt_cv_deplibs_check_method="file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB dynamic lib"
3420
    lt_cv_file_magic_test_file=/lib/libc.so
3421
    ;;
3422
  siemens)
3423
    lt_cv_deplibs_check_method=pass_all
3424
    ;;
3425
  esac
3426
  ;;
3427
3428
sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[[78]]* | unixware7* | sysv4*uw2*)
3429
  lt_cv_deplibs_check_method=pass_all
3430
  ;;
3431
esac
3432
])
3433
file_magic_cmd=$lt_cv_file_magic_cmd
3434
deplibs_check_method=$lt_cv_deplibs_check_method
3435
test -z "$deplibs_check_method" && deplibs_check_method=unknown
3436
])# AC_DEPLIBS_CHECK_METHOD
3437
3438
3439
# AC_PROG_NM
3440
# ----------
3441
# find the pathname to a BSD-compatible name lister
3442
AC_DEFUN([AC_PROG_NM],
3443
[AC_CACHE_CHECK([for BSD-compatible nm], lt_cv_path_NM,
3444
[if test -n "$NM"; then
3445
  # Let the user override the test.
3446
  lt_cv_path_NM="$NM"
3447
else
3448
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3449
  for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
3450
    IFS="$lt_save_ifs"
3451
    test -z "$ac_dir" && ac_dir=.
3452
    tmp_nm="$ac_dir/${ac_tool_prefix}nm"
3453
    if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
3454
      # Check to see if the nm accepts a BSD-compat flag.
3455
      # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3456
      #   nm: unknown option "B" ignored
3457
      # Tru64's nm complains that /dev/null is an invalid object file
3458
      case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
3459
      */dev/null* | *'Invalid file or object type'*)
3460
	lt_cv_path_NM="$tmp_nm -B"
3461
	break
3462
        ;;
3463
      *)
3464
	case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
3465
	*/dev/null*)
3466
	  lt_cv_path_NM="$tmp_nm -p"
3467
	  break
3468
	  ;;
3469
	*)
3470
	  lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3471
	  continue # so that we can try to find one that supports BSD flags
3472
	  ;;
3473
	esac
3474
      esac
3475
    fi
3476
  done
3477
  IFS="$lt_save_ifs"
3478
  test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
3479
fi])
3480
NM="$lt_cv_path_NM"
3481
])# AC_PROG_NM
3482
3483
3484
# AC_CHECK_LIBM
3485
# -------------
3486
# check for math library
3487
AC_DEFUN([AC_CHECK_LIBM],
3488
[AC_REQUIRE([AC_CANONICAL_HOST])dnl
3489
LIBM=
3490
case $host in
3491
*-*-beos* | *-*-cygwin* | *-*-pw32* | *-*-darwin*)
3492
  # These system don't have libm, or don't need it
3493
  ;;
3494
*-ncr-sysv4.3*)
3495
  AC_CHECK_LIB(mw, _mwvalidcheckl, LIBM="-lmw")
3496
  AC_CHECK_LIB(m, cos, LIBM="$LIBM -lm")
3497
  ;;
3498
*)
3499
  AC_CHECK_LIB(m, cos, LIBM="-lm")
3500
  ;;
3501
esac
3502
])# AC_CHECK_LIBM
3503
3504
3505
# AC_LIBLTDL_CONVENIENCE([DIRECTORY])
3506
# -----------------------------------
3507
# sets LIBLTDL to the link flags for the libltdl convenience library and
3508
# LTDLINCL to the include flags for the libltdl header and adds
3509
# --enable-ltdl-convenience to the configure arguments.  Note that LIBLTDL
3510
# and LTDLINCL are not AC_SUBSTed, nor is AC_CONFIG_SUBDIRS called.  If
3511
# DIRECTORY is not provided, it is assumed to be `libltdl'.  LIBLTDL will
3512
# be prefixed with '${top_builddir}/' and LTDLINCL will be prefixed with
3513
# '${top_srcdir}/' (note the single quotes!).  If your package is not
3514
# flat and you're not using automake, define top_builddir and
3515
# top_srcdir appropriately in the Makefiles.
3516
AC_DEFUN([AC_LIBLTDL_CONVENIENCE],
3517
[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
3518
  case $enable_ltdl_convenience in
3519
  no) AC_MSG_ERROR([this package needs a convenience libltdl]) ;;
3520
  "") enable_ltdl_convenience=yes
3521
      ac_configure_args="$ac_configure_args --enable-ltdl-convenience" ;;
3522
  esac
3523
  LIBLTDL='${top_builddir}/'ifelse($#,1,[$1],['libltdl'])/libltdlc.la
3524
  LTDLINCL='-I${top_srcdir}/'ifelse($#,1,[$1],['libltdl'])
3525
  # For backwards non-gettext consistent compatibility...
3526
  INCLTDL="$LTDLINCL"
3527
])# AC_LIBLTDL_CONVENIENCE
3528
3529
3530
# AC_LIBLTDL_INSTALLABLE([DIRECTORY])
3531
# -----------------------------------
3532
# sets LIBLTDL to the link flags for the libltdl installable library and
3533
# LTDLINCL to the include flags for the libltdl header and adds
3534
# --enable-ltdl-install to the configure arguments.  Note that LIBLTDL
3535
# and LTDLINCL are not AC_SUBSTed, nor is AC_CONFIG_SUBDIRS called.  If
3536
# DIRECTORY is not provided and an installed libltdl is not found, it is
3537
# assumed to be `libltdl'.  LIBLTDL will be prefixed with '${top_builddir}/'
3538
# and LTDLINCL will be prefixed with '${top_srcdir}/' (note the single
3539
# quotes!).  If your package is not flat and you're not using automake,
3540
# define top_builddir and top_srcdir appropriately in the Makefiles.
3541
# In the future, this macro may have to be called after AC_PROG_LIBTOOL.
3542
AC_DEFUN([AC_LIBLTDL_INSTALLABLE],
3543
[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
3544
  AC_CHECK_LIB(ltdl, lt_dlinit,
3545
  [test x"$enable_ltdl_install" != xyes && enable_ltdl_install=no],
3546
  [if test x"$enable_ltdl_install" = xno; then
3547
     AC_MSG_WARN([libltdl not installed, but installation disabled])
3548
   else
3549
     enable_ltdl_install=yes
3550
   fi
3551
  ])
3552
  if test x"$enable_ltdl_install" = x"yes"; then
3553
    ac_configure_args="$ac_configure_args --enable-ltdl-install"
3554
    LIBLTDL='${top_builddir}/'ifelse($#,1,[$1],['libltdl'])/libltdl.la
3555
    LTDLINCL='-I${top_srcdir}/'ifelse($#,1,[$1],['libltdl'])
3556
  else
3557
    ac_configure_args="$ac_configure_args --enable-ltdl-install=no"
3558
    LIBLTDL="-lltdl"
3559
    LTDLINCL=
3560
  fi
3561
  # For backwards non-gettext consistent compatibility...
3562
  INCLTDL="$LTDLINCL"
3563
])# AC_LIBLTDL_INSTALLABLE
3564
3565
3566
# AC_LIBTOOL_CXX
3567
# --------------
3568
# enable support for C++ libraries
3569
AC_DEFUN([AC_LIBTOOL_CXX],
3570
[AC_REQUIRE([_LT_AC_LANG_CXX])
3571
])# AC_LIBTOOL_CXX
3572
3573
3574
# _LT_AC_LANG_CXX
3575
# ---------------
3576
AC_DEFUN([_LT_AC_LANG_CXX],
3577
[AC_REQUIRE([AC_PROG_CXX])
3578
AC_REQUIRE([_LT_AC_PROG_CXXCPP])
3579
_LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}CXX])
3580
])# _LT_AC_LANG_CXX
3581
3582
# _LT_AC_PROG_CXXCPP
3583
# ---------------
3584
AC_DEFUN([_LT_AC_PROG_CXXCPP],
3585
[
3586
AC_REQUIRE([AC_PROG_CXX])
3587
if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
3588
    ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
3589
    (test "X$CXX" != "Xg++"))) ; then
3590
  AC_PROG_CXXCPP
3591
fi
3592
])# _LT_AC_PROG_CXXCPP
3593
3594
# AC_LIBTOOL_F77
3595
# --------------
3596
# enable support for Fortran 77 libraries
3597
AC_DEFUN([AC_LIBTOOL_F77],
3598
[AC_REQUIRE([_LT_AC_LANG_F77])
3599
])# AC_LIBTOOL_F77
3600
3601
3602
# _LT_AC_LANG_F77
3603
# ---------------
3604
AC_DEFUN([_LT_AC_LANG_F77],
3605
[AC_REQUIRE([AC_PROG_F77])
3606
_LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}F77])
3607
])# _LT_AC_LANG_F77
3608
3609
3610
# AC_LIBTOOL_GCJ
3611
# --------------
3612
# enable support for GCJ libraries
3613
AC_DEFUN([AC_LIBTOOL_GCJ],
3614
[AC_REQUIRE([_LT_AC_LANG_GCJ])
3615
])# AC_LIBTOOL_GCJ
3616
3617
3618
# _LT_AC_LANG_GCJ
3619
# ---------------
3620
AC_DEFUN([_LT_AC_LANG_GCJ],
3621
[AC_PROVIDE_IFELSE([AC_PROG_GCJ],[],
3622
  [AC_PROVIDE_IFELSE([A][M_PROG_GCJ],[],
3623
    [AC_PROVIDE_IFELSE([LT_AC_PROG_GCJ],[],
3624
      [ifdef([AC_PROG_GCJ],[AC_REQUIRE([AC_PROG_GCJ])],
3625
	 [ifdef([A][M_PROG_GCJ],[AC_REQUIRE([A][M_PROG_GCJ])],
3626
	   [AC_REQUIRE([A][C_PROG_GCJ_OR_A][M_PROG_GCJ])])])])])])
3627
_LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}GCJ])
3628
])# _LT_AC_LANG_GCJ
3629
3630
3631
# AC_LIBTOOL_RC
3632
# --------------
3633
# enable support for Windows resource files
3634
AC_DEFUN([AC_LIBTOOL_RC],
3635
[AC_REQUIRE([LT_AC_PROG_RC])
3636
_LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}RC])
3637
])# AC_LIBTOOL_RC
3638
3639
3640
# AC_LIBTOOL_LANG_C_CONFIG
3641
# ------------------------
3642
# Ensure that the configuration vars for the C compiler are
3643
# suitably defined.  Those variables are subsequently used by
3644
# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
3645
AC_DEFUN([AC_LIBTOOL_LANG_C_CONFIG], [_LT_AC_LANG_C_CONFIG])
3646
AC_DEFUN([_LT_AC_LANG_C_CONFIG],
3647
[lt_save_CC="$CC"
3648
AC_LANG_PUSH(C)
3649
3650
# Source file extension for C test sources.
3651
ac_ext=c
3652
3653
# Object file extension for compiled C test sources.
3654
objext=o
3655
_LT_AC_TAGVAR(objext, $1)=$objext
3656
3657
# Code to be used in simple compile tests
3658
lt_simple_compile_test_code="int some_variable = 0;\n"
3659
3660
# Code to be used in simple link tests
3661
lt_simple_link_test_code='int main(){return(0);}\n'
3662
3663
_LT_AC_SYS_COMPILER
3664
3665
# save warnings/boilerplate of simple test code
3666
_LT_COMPILER_BOILERPLATE
3667
_LT_LINKER_BOILERPLATE
3668
3669
#
3670
# Check for any special shared library compilation flags.
3671
#
3672
_LT_AC_TAGVAR(lt_prog_cc_shlib, $1)=
3673
if test "$GCC" = no; then
3674
  case $host_os in
3675
  sco3.2v5*)
3676
    _LT_AC_TAGVAR(lt_prog_cc_shlib, $1)='-belf'
3677
    ;;
3678
  esac
3679
fi
3680
if test -n "$_LT_AC_TAGVAR(lt_prog_cc_shlib, $1)"; then
3681
  AC_MSG_WARN([`$CC' requires `$_LT_AC_TAGVAR(lt_prog_cc_shlib, $1)' to build shared libraries])
3682
  if echo "$old_CC $old_CFLAGS " | grep "[[ 	]]$_LT_AC_TAGVAR(lt_prog_cc_shlib, $1)[[ 	]]" >/dev/null; then :
3683
  else
3684
    AC_MSG_WARN([add `$_LT_AC_TAGVAR(lt_prog_cc_shlib, $1)' to the CC or CFLAGS env variable and reconfigure])
3685
    _LT_AC_TAGVAR(lt_cv_prog_cc_can_build_shared, $1)=no
3686
  fi
3687
fi
3688
3689
3690
#
3691
# Check to make sure the static flag actually works.
3692
#
3693
AC_LIBTOOL_LINKER_OPTION([if $compiler static flag $_LT_AC_TAGVAR(lt_prog_compiler_static, $1) works],
3694
  _LT_AC_TAGVAR(lt_prog_compiler_static_works, $1),
3695
  $_LT_AC_TAGVAR(lt_prog_compiler_static, $1),
3696
  [],
3697
  [_LT_AC_TAGVAR(lt_prog_compiler_static, $1)=])
3698
3699
3700
AC_LIBTOOL_PROG_COMPILER_NO_RTTI($1)
3701
AC_LIBTOOL_PROG_COMPILER_PIC($1)
3702
AC_LIBTOOL_PROG_CC_C_O($1)
3703
AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1)
3704
AC_LIBTOOL_PROG_LD_SHLIBS($1)
3705
AC_LIBTOOL_SYS_DYNAMIC_LINKER($1)
3706
AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1)
3707
AC_LIBTOOL_SYS_LIB_STRIP
3708
AC_LIBTOOL_DLOPEN_SELF($1)
3709
3710
# Report which librarie types wil actually be built
3711
AC_MSG_CHECKING([if libtool supports shared libraries])
3712
AC_MSG_RESULT([$can_build_shared])
3713
3714
AC_MSG_CHECKING([whether to build shared libraries])
3715
test "$can_build_shared" = "no" && enable_shared=no
3716
3717
# On AIX, shared libraries and static libraries use the same namespace, and
3718
# are all built from PIC.
3719
case "$host_os" in
3720
aix3*)
3721
  test "$enable_shared" = yes && enable_static=no
3722
  if test -n "$RANLIB"; then
3723
    archive_cmds="$archive_cmds~\$RANLIB \$lib"
3724
    postinstall_cmds='$RANLIB $lib'
3725
  fi
3726
  ;;
3727
3728
aix4* | aix5*)
3729
  if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
3730
    test "$enable_shared" = yes && enable_static=no
3731
  fi
3732
    ;;
3733
esac
3734
AC_MSG_RESULT([$enable_shared])
3735
3736
AC_MSG_CHECKING([whether to build static libraries])
3737
# Make sure either enable_shared or enable_static is yes.
3738
test "$enable_shared" = yes || enable_static=yes
3739
AC_MSG_RESULT([$enable_static])
3740
3741
AC_LIBTOOL_CONFIG($1)
3742
3743
AC_LANG_POP
3744
CC="$lt_save_CC"
3745
])# AC_LIBTOOL_LANG_C_CONFIG
3746
3747
3748
# AC_LIBTOOL_LANG_CXX_CONFIG
3749
# --------------------------
3750
# Ensure that the configuration vars for the C compiler are
3751
# suitably defined.  Those variables are subsequently used by
3752
# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
3753
AC_DEFUN([AC_LIBTOOL_LANG_CXX_CONFIG], [_LT_AC_LANG_CXX_CONFIG(CXX)])
3754
AC_DEFUN([_LT_AC_LANG_CXX_CONFIG],
3755
[AC_LANG_PUSH(C++)
3756
AC_REQUIRE([AC_PROG_CXX])
3757
AC_REQUIRE([_LT_AC_PROG_CXXCPP])
3758
3759
_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
3760
_LT_AC_TAGVAR(allow_undefined_flag, $1)=
3761
_LT_AC_TAGVAR(always_export_symbols, $1)=no
3762
_LT_AC_TAGVAR(archive_expsym_cmds, $1)=
3763
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)=
3764
_LT_AC_TAGVAR(hardcode_direct, $1)=no
3765
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=
3766
_LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
3767
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
3768
_LT_AC_TAGVAR(hardcode_minus_L, $1)=no
3769
_LT_AC_TAGVAR(hardcode_automatic, $1)=no
3770
_LT_AC_TAGVAR(module_cmds, $1)=
3771
_LT_AC_TAGVAR(module_expsym_cmds, $1)=
3772
_LT_AC_TAGVAR(link_all_deplibs, $1)=unknown
3773
_LT_AC_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
3774
_LT_AC_TAGVAR(no_undefined_flag, $1)=
3775
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
3776
_LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=no
3777
3778
# Dependencies to place before and after the object being linked:
3779
_LT_AC_TAGVAR(predep_objects, $1)=
3780
_LT_AC_TAGVAR(postdep_objects, $1)=
3781
_LT_AC_TAGVAR(predeps, $1)=
3782
_LT_AC_TAGVAR(postdeps, $1)=
3783
_LT_AC_TAGVAR(compiler_lib_search_path, $1)=
3784
3785
# Source file extension for C++ test sources.
3786
ac_ext=cc
3787
3788
# Object file extension for compiled C++ test sources.
3789
objext=o
3790
_LT_AC_TAGVAR(objext, $1)=$objext
3791
3792
# Code to be used in simple compile tests
3793
lt_simple_compile_test_code="int some_variable = 0;\n"
3794
3795
# Code to be used in simple link tests
3796
lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n'
3797
3798
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
3799
_LT_AC_SYS_COMPILER
3800
3801
# save warnings/boilerplate of simple test code
3802
_LT_COMPILER_BOILERPLATE
3803
_LT_LINKER_BOILERPLATE
3804
3805
# Allow CC to be a program name with arguments.
3806
lt_save_CC=$CC
3807
lt_save_LD=$LD
3808
lt_save_GCC=$GCC
3809
GCC=$GXX
3810
lt_save_with_gnu_ld=$with_gnu_ld
3811
lt_save_path_LD=$lt_cv_path_LD
3812
if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
3813
  lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
3814
else
3815
  unset lt_cv_prog_gnu_ld
3816
fi
3817
if test -n "${lt_cv_path_LDCXX+set}"; then
3818
  lt_cv_path_LD=$lt_cv_path_LDCXX
3819
else
3820
  unset lt_cv_path_LD
3821
fi
3822
test -z "${LDCXX+set}" || LD=$LDCXX
3823
CC=${CXX-"c++"}
3824
compiler=$CC
3825
_LT_AC_TAGVAR(compiler, $1)=$CC
3826
_LT_CC_BASENAME([$compiler])
3827
3828
# We don't want -fno-exception wen compiling C++ code, so set the
3829
# no_builtin_flag separately
3830
if test "$GXX" = yes; then
3831
  _LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin'
3832
else
3833
  _LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=
3834
fi
3835
3836
if test "$GXX" = yes; then
3837
  # Set up default GNU C++ configuration
3838
3839
  AC_PROG_LD
3840
3841
  # Check if GNU C++ uses GNU ld as the underlying linker, since the
3842
  # archiving commands below assume that GNU ld is being used.
3843
  if test "$with_gnu_ld" = yes; then
3844
    _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
3845
    _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'
3846
3847
    _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir'
3848
    _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
3849
3850
    # If archive_cmds runs LD, not CC, wlarc should be empty
3851
    # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
3852
    #     investigate it a little bit more. (MM)
3853
    wlarc='${wl}'
3854
3855
    # ancient GNU ld didn't support --whole-archive et. al.
3856
    if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
3857
	grep 'no-whole-archive' > /dev/null; then
3858
      _LT_AC_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
3859
    else
3860
      _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
3861
    fi
3862
  else
3863
    with_gnu_ld=no
3864
    wlarc=
3865
3866
    # A generic and very simple default shared library creation
3867
    # command for GNU C++ for the case where it uses the native
3868
    # linker, instead of GNU ld.  If possible, this setting should
3869
    # overridden to take advantage of the native linker features on
3870
    # the platform it is being used on.
3871
    _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
3872
  fi
3873
3874
  # Commands to make compiler produce verbose output that lists
3875
  # what "hidden" libraries, object files and flags are used when
3876
  # linking a shared library.
3877
  output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
3878
3879
else
3880
  GXX=no
3881
  with_gnu_ld=no
3882
  wlarc=
3883
fi
3884
3885
# PORTME: fill in a description of your system's C++ link characteristics
3886
AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries])
3887
_LT_AC_TAGVAR(ld_shlibs, $1)=yes
3888
case $host_os in
3889
  aix3*)
3890
    # FIXME: insert proper C++ library support
3891
    _LT_AC_TAGVAR(ld_shlibs, $1)=no
3892
    ;;
3893
  aix4* | aix5*)
3894
    if test "$host_cpu" = ia64; then
3895
      # On IA64, the linker does run time linking by default, so we don't
3896
      # have to do anything special.
3897
      aix_use_runtimelinking=no
3898
      exp_sym_flag='-Bexport'
3899
      no_entry_flag=""
3900
    else
3901
      aix_use_runtimelinking=no
3902
3903
      # Test if we are trying to use run time linking or normal
3904
      # AIX style linking. If -brtl is somewhere in LDFLAGS, we
3905
      # need to do runtime linking.
3906
      case $host_os in aix4.[[23]]|aix4.[[23]].*|aix5*)
3907
	for ld_flag in $LDFLAGS; do
3908
	  case $ld_flag in
3909
	  *-brtl*)
3910
	    aix_use_runtimelinking=yes
3911
	    break
3912
	    ;;
3913
	  esac
3914
	done
3915
      esac
3916
3917
      exp_sym_flag='-bexport'
3918
      no_entry_flag='-bnoentry'
3919
    fi
3920
3921
    # When large executables or shared objects are built, AIX ld can
3922
    # have problems creating the table of contents.  If linking a library
3923
    # or program results in "error TOC overflow" add -mminimal-toc to
3924
    # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
3925
    # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
3926
3927
    _LT_AC_TAGVAR(archive_cmds, $1)=''
3928
    _LT_AC_TAGVAR(hardcode_direct, $1)=yes
3929
    _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=':'
3930
    _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
3931
3932
    if test "$GXX" = yes; then
3933
      case $host_os in aix4.[[012]]|aix4.[[012]].*)
3934
      # We only want to do this on AIX 4.2 and lower, the check
3935
      # below for broken collect2 doesn't work under 4.3+
3936
	collect2name=`${CC} -print-prog-name=collect2`
3937
	if test -f "$collect2name" && \
3938
	   strings "$collect2name" | grep resolve_lib_name >/dev/null
3939
	then
3940
	  # We have reworked collect2
3941
	  _LT_AC_TAGVAR(hardcode_direct, $1)=yes
3942
	else
3943
	  # We have old collect2
3944
	  _LT_AC_TAGVAR(hardcode_direct, $1)=unsupported
3945
	  # It fails to find uninstalled libraries when the uninstalled
3946
	  # path is not listed in the libpath.  Setting hardcode_minus_L
3947
	  # to unsupported forces relinking
3948
	  _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
3949
	  _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
3950
	  _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
3951
	fi
3952
      esac
3953
      shared_flag='-shared'
3954
      if test "$aix_use_runtimelinking" = yes; then
3955
	shared_flag="$shared_flag "'${wl}-G'
3956
      fi
3957
    else
3958
      # not using gcc
3959
      if test "$host_cpu" = ia64; then
3960
	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
3961
	# chokes on -Wl,-G. The following line is correct:
3962
	shared_flag='-G'
3963
      else
3964
	if test "$aix_use_runtimelinking" = yes; then
3965
	  shared_flag='${wl}-G'
3966
	else
3967
	  shared_flag='${wl}-bM:SRE'
3968
	fi
3969
      fi
3970
    fi
3971
3972
    # It seems that -bexpall does not export symbols beginning with
3973
    # underscore (_), so it is better to generate a list of symbols to export.
3974
    _LT_AC_TAGVAR(always_export_symbols, $1)=yes
3975
    if test "$aix_use_runtimelinking" = yes; then
3976
      # Warning - without using the other runtime loading flags (-brtl),
3977
      # -berok will link without error, but may produce a broken library.
3978
      _LT_AC_TAGVAR(allow_undefined_flag, $1)='-berok'
3979
      # Determine the default libpath from the value encoded in an empty executable.
3980
      _LT_AC_SYS_LIBPATH_AIX
3981
      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
3982
3983
      _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"
3984
     else
3985
      if test "$host_cpu" = ia64; then
3986
	_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib'
3987
	_LT_AC_TAGVAR(allow_undefined_flag, $1)="-z nodefs"
3988
	_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"
3989
      else
3990
	# Determine the default libpath from the value encoded in an empty executable.
3991
	_LT_AC_SYS_LIBPATH_AIX
3992
	_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
3993
	# Warning - without using the other run time loading flags,
3994
	# -berok will link without error, but may produce a broken library.
3995
	_LT_AC_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok'
3996
	_LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok'
3997
	# -bexpall does not export symbols beginning with underscore (_)
3998
	_LT_AC_TAGVAR(always_export_symbols, $1)=yes
3999
	# Exported symbols can be pulled into shared objects from archives
4000
	_LT_AC_TAGVAR(whole_archive_flag_spec, $1)=' '
4001
	_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes
4002
	# This is similar to how AIX traditionally builds it's shared libraries.
4003
	_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'
4004
      fi
4005
    fi
4006
    ;;
4007
  chorus*)
4008
    case $cc_basename in
4009
      *)
4010
	# FIXME: insert proper C++ library support
4011
	_LT_AC_TAGVAR(ld_shlibs, $1)=no
4012
	;;
4013
    esac
4014
    ;;
4015
4016
4017
  cygwin* | mingw* | pw32*)
4018
    # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless,
4019
    # as there is no search path for DLLs.
4020
    _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
4021
    _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
4022
    _LT_AC_TAGVAR(always_export_symbols, $1)=no
4023
    _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
4024
4025
    if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
4026
      _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'
4027
      # If the export-symbols file already is a .def file (1st line
4028
      # is EXPORTS), use it as is; otherwise, prepend...
4029
      _LT_AC_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
4030
	cp $export_symbols $output_objdir/$soname.def;
4031
      else
4032
	echo EXPORTS > $output_objdir/$soname.def;
4033
	cat $export_symbols >> $output_objdir/$soname.def;
4034
      fi~
4035
      $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'
4036
    else
4037
      _LT_AC_TAGVAR(ld_shlibs, $1)=no
4038
    fi
4039
  ;;
4040
      darwin* | rhapsody*)
4041
        case "$host_os" in
4042
        rhapsody* | darwin1.[[012]])
4043
         _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-undefined ${wl}suppress'
4044
         ;;
4045
       *) # Darwin 1.3 on
4046
         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
4047
           _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
4048
         else
4049
           case ${MACOSX_DEPLOYMENT_TARGET} in
4050
             10.[[012]])
4051
               _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
4052
               ;;
4053
             10.*)
4054
               _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-undefined ${wl}dynamic_lookup'
4055
               ;;
4056
           esac
4057
         fi
4058
         ;;
4059
        esac
4060
      _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
4061
      _LT_AC_TAGVAR(hardcode_direct, $1)=no
4062
      _LT_AC_TAGVAR(hardcode_automatic, $1)=yes
4063
      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
4064
      _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=''
4065
      _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
4066
4067
    if test "$GXX" = yes ; then
4068
      lt_int_apple_cc_single_mod=no
4069
      output_verbose_link_cmd='echo'
4070
      if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
4071
       lt_int_apple_cc_single_mod=yes
4072
      fi
4073
      if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
4074
       _LT_AC_TAGVAR(archive_cmds, $1)='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
4075
      else
4076
          _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'
4077
        fi
4078
        _LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
4079
        # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
4080
          if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
4081
            _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}'
4082
          else
4083
            _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}'
4084
          fi
4085
            _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}'
4086
      else
4087
      case $cc_basename in
4088
        xlc*)
4089
         output_verbose_link_cmd='echo'
4090
          _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'
4091
          _LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
4092
          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
4093
          _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}'
4094
          _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}'
4095
          ;;
4096
       *)
4097
         _LT_AC_TAGVAR(ld_shlibs, $1)=no
4098
          ;;
4099
      esac
4100
      fi
4101
        ;;
4102
4103
  dgux*)
4104
    case $cc_basename in
4105
      ec++*)
4106
	# FIXME: insert proper C++ library support
4107
	_LT_AC_TAGVAR(ld_shlibs, $1)=no
4108
	;;
4109
      ghcx*)
4110
	# Green Hills C++ Compiler
4111
	# FIXME: insert proper C++ library support
4112
	_LT_AC_TAGVAR(ld_shlibs, $1)=no
4113
	;;
4114
      *)
4115
	# FIXME: insert proper C++ library support
4116
	_LT_AC_TAGVAR(ld_shlibs, $1)=no
4117
	;;
4118
    esac
4119
    ;;
4120
  freebsd[[12]]*)
4121
    # C++ shared libraries reported to be fairly broken before switch to ELF
4122
    _LT_AC_TAGVAR(ld_shlibs, $1)=no
4123
    ;;
4124
  freebsd-elf*)
4125
    _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
4126
    ;;
4127
  freebsd* | kfreebsd*-gnu | dragonfly*)
4128
    # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
4129
    # conventions
4130
    _LT_AC_TAGVAR(ld_shlibs, $1)=yes
4131
    ;;
4132
  gnu*)
4133
    ;;
4134
  hpux9*)
4135
    _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
4136
    _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
4137
    _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
4138
    _LT_AC_TAGVAR(hardcode_direct, $1)=yes
4139
    _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH,
4140
				# but as the default
4141
				# location of the library.
4142
4143
    case $cc_basename in
4144
    CC*)
4145
      # FIXME: insert proper C++ library support
4146
      _LT_AC_TAGVAR(ld_shlibs, $1)=no
4147
      ;;
4148
    aCC*)
4149
      _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'
4150
      # Commands to make compiler produce verbose output that lists
4151
      # what "hidden" libraries, object files and flags are used when
4152
      # linking a shared library.
4153
      #
4154
      # There doesn't appear to be a way to prevent this compiler from
4155
      # explicitly linking system object files so we need to strip them
4156
      # from the output so that they don't get included in the library
4157
      # dependencies.
4158
      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'
4159
      ;;
4160
    *)
4161
      if test "$GXX" = yes; then
4162
        _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'
4163
      else
4164
        # FIXME: insert proper C++ library support
4165
        _LT_AC_TAGVAR(ld_shlibs, $1)=no
4166
      fi
4167
      ;;
4168
    esac
4169
    ;;
4170
  hpux10*|hpux11*)
4171
    if test $with_gnu_ld = no; then
4172
      case "$host_cpu" in
4173
      hppa*64*)
4174
	_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
4175
	_LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='+b $libdir'
4176
	_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
4177
        ;;
4178
      ia64*)
4179
	_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
4180
        ;;
4181
      *)
4182
	_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
4183
	_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
4184
	_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
4185
        ;;
4186
      esac
4187
    fi
4188
    case "$host_cpu" in
4189
    hppa*64*)
4190
      _LT_AC_TAGVAR(hardcode_direct, $1)=no
4191
      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
4192
      ;;
4193
    ia64*)
4194
      _LT_AC_TAGVAR(hardcode_direct, $1)=no
4195
      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
4196
      _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH,
4197
					      # but as the default
4198
					      # location of the library.
4199
      ;;
4200
    *)
4201
      _LT_AC_TAGVAR(hardcode_direct, $1)=yes
4202
      _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH,
4203
					      # but as the default
4204
					      # location of the library.
4205
      ;;
4206
    esac
4207
4208
    case $cc_basename in
4209
      CC*)
4210
	# FIXME: insert proper C++ library support
4211
	_LT_AC_TAGVAR(ld_shlibs, $1)=no
4212
	;;
4213
      aCC*)
4214
	case "$host_cpu" in
4215
	hppa*64*|ia64*)
4216
	  _LT_AC_TAGVAR(archive_cmds, $1)='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
4217
	  ;;
4218
	*)
4219
	  _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'
4220
	  ;;
4221
	esac
4222
	# Commands to make compiler produce verbose output that lists
4223
	# what "hidden" libraries, object files and flags are used when
4224
	# linking a shared library.
4225
	#
4226
	# There doesn't appear to be a way to prevent this compiler from
4227
	# explicitly linking system object files so we need to strip them
4228
	# from the output so that they don't get included in the library
4229
	# dependencies.
4230
	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'
4231
	;;
4232
      *)
4233
	if test "$GXX" = yes; then
4234
	  if test $with_gnu_ld = no; then
4235
	    case "$host_cpu" in
4236
	    ia64*|hppa*64*)
4237
	      _LT_AC_TAGVAR(archive_cmds, $1)='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
4238
	      ;;
4239
	    *)
4240
	      _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'
4241
	      ;;
4242
	    esac
4243
	  fi
4244
	else
4245
	  # FIXME: insert proper C++ library support
4246
	  _LT_AC_TAGVAR(ld_shlibs, $1)=no
4247
	fi
4248
	;;
4249
    esac
4250
    ;;
4251
  irix5* | irix6*)
4252
    case $cc_basename in
4253
      CC*)
4254
	# SGI C++
4255
	_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'
4256
4257
	# Archives containing C++ object files must be created using
4258
	# "CC -ar", where "CC" is the IRIX C++ compiler.  This is
4259
	# necessary to make sure instantiated templates are included
4260
	# in the archive.
4261
	_LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -ar -WR,-u -o $oldlib $oldobjs'
4262
	;;
4263
      *)
4264
	if test "$GXX" = yes; then
4265
	  if test "$with_gnu_ld" = no; then
4266
	    _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'
4267
	  else
4268
	    _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'
4269
	  fi
4270
	fi
4271
	_LT_AC_TAGVAR(link_all_deplibs, $1)=yes
4272
	;;
4273
    esac
4274
    _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
4275
    _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
4276
    ;;
4277
  linux*)
4278
    case $cc_basename in
4279
      KCC*)
4280
	# Kuck and Associates, Inc. (KAI) C++ Compiler
4281
4282
	# KCC will only create a shared library if the output file
4283
	# ends with ".so" (or ".sl" for HP-UX), so rename the library
4284
	# to its proper name (with version) after linking.
4285
	_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'
4286
	_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'
4287
	# Commands to make compiler produce verbose output that lists
4288
	# what "hidden" libraries, object files and flags are used when
4289
	# linking a shared library.
4290
	#
4291
	# There doesn't appear to be a way to prevent this compiler from
4292
	# explicitly linking system object files so we need to strip them
4293
	# from the output so that they don't get included in the library
4294
	# dependencies.
4295
	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'
4296
4297
	_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath,$libdir'
4298
	_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
4299
4300
	# Archives containing C++ object files must be created using
4301
	# "CC -Bstatic", where "CC" is the KAI C++ compiler.
4302
	_LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs'
4303
	;;
4304
      icpc*)
4305
	# Intel C++
4306
	with_gnu_ld=yes
4307
	# version 8.0 and above of icpc choke on multiply defined symbols
4308
	# if we add $predep_objects and $postdep_objects, however 7.1 and
4309
	# earlier do not add the objects themselves.
4310
	case `$CC -V 2>&1` in
4311
	*"Version 7."*)
4312
  	  _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
4313
  	  _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'
4314
	  ;;
4315
	*)  # Version 8.0 or newer
4316
	  tmp_idyn=
4317
	  case $host_cpu in
4318
	    ia64*) tmp_idyn=' -i_dynamic';;
4319
	  esac
4320
  	  _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
4321
	  _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'
4322
	  ;;
4323
	esac
4324
	_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
4325
	_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
4326
	_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
4327
	_LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
4328
	;;
4329
      pgCC*)
4330
        # Portland Group C++ compiler
4331
	_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
4332
  	_LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
4333
4334
	_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir'
4335
	_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
4336
	_LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive,`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
4337
        ;;
4338
      cxx*)
4339
	# Compaq C++
4340
	_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
4341
	_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'
4342
4343
	runpath_var=LD_RUN_PATH
4344
	_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
4345
	_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
4346
4347
	# Commands to make compiler produce verbose output that lists
4348
	# what "hidden" libraries, object files and flags are used when
4349
	# linking a shared library.
4350
	#
4351
	# There doesn't appear to be a way to prevent this compiler from
4352
	# explicitly linking system object files so we need to strip them
4353
	# from the output so that they don't get included in the library
4354
	# dependencies.
4355
	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'
4356
	;;
4357
    esac
4358
    ;;
4359
  lynxos*)
4360
    # FIXME: insert proper C++ library support
4361
    _LT_AC_TAGVAR(ld_shlibs, $1)=no
4362
    ;;
4363
  m88k*)
4364
    # FIXME: insert proper C++ library support
4365
    _LT_AC_TAGVAR(ld_shlibs, $1)=no
4366
    ;;
4367
  mvs*)
4368
    case $cc_basename in
4369
      cxx*)
4370
	# FIXME: insert proper C++ library support
4371
	_LT_AC_TAGVAR(ld_shlibs, $1)=no
4372
	;;
4373
      *)
4374
	# FIXME: insert proper C++ library support
4375
	_LT_AC_TAGVAR(ld_shlibs, $1)=no
4376
	;;
4377
    esac
4378
    ;;
4379
  netbsd*)
4380
    if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
4381
      _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
4382
      wlarc=
4383
      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
4384
      _LT_AC_TAGVAR(hardcode_direct, $1)=yes
4385
      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
4386
    fi
4387
    # Workaround some broken pre-1.5 toolchains
4388
    output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
4389
    ;;
4390
  openbsd2*)
4391
    # C++ shared libraries are fairly broken
4392
    _LT_AC_TAGVAR(ld_shlibs, $1)=no
4393
    ;;
4394
  openbsd*)
4395
    _LT_AC_TAGVAR(hardcode_direct, $1)=yes
4396
    _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
4397
    _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
4398
    _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
4399
    if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4400
      _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'
4401
      _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
4402
      _LT_AC_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
4403
    fi
4404
    output_verbose_link_cmd='echo'
4405
    ;;
4406
  osf3*)
4407
    case $cc_basename in
4408
      KCC*)
4409
	# Kuck and Associates, Inc. (KAI) C++ Compiler
4410
4411
	# KCC will only create a shared library if the output file
4412
	# ends with ".so" (or ".sl" for HP-UX), so rename the library
4413
	# to its proper name (with version) after linking.
4414
	_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'
4415
4416
	_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
4417
	_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
4418
4419
	# Archives containing C++ object files must be created using
4420
	# "CC -Bstatic", where "CC" is the KAI C++ compiler.
4421
	_LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs'
4422
4423
	;;
4424
      RCC*)
4425
	# Rational C++ 2.4.1
4426
	# FIXME: insert proper C++ library support
4427
	_LT_AC_TAGVAR(ld_shlibs, $1)=no
4428
	;;
4429
      cxx*)
4430
	_LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
4431
	_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'
4432
4433
	_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
4434
	_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
4435
4436
	# Commands to make compiler produce verbose output that lists
4437
	# what "hidden" libraries, object files and flags are used when
4438
	# linking a shared library.
4439
	#
4440
	# There doesn't appear to be a way to prevent this compiler from
4441
	# explicitly linking system object files so we need to strip them
4442
	# from the output so that they don't get included in the library
4443
	# dependencies.
4444
	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'
4445
	;;
4446
      *)
4447
	if test "$GXX" = yes && test "$with_gnu_ld" = no; then
4448
	  _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
4449
	  _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'
4450
4451
	  _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
4452
	  _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
4453
4454
	  # Commands to make compiler produce verbose output that lists
4455
	  # what "hidden" libraries, object files and flags are used when
4456
	  # linking a shared library.
4457
	  output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
4458
4459
	else
4460
	  # FIXME: insert proper C++ library support
4461
	  _LT_AC_TAGVAR(ld_shlibs, $1)=no
4462
	fi
4463
	;;
4464
    esac
4465
    ;;
4466
  osf4* | osf5*)
4467
    case $cc_basename in
4468
      KCC*)
4469
	# Kuck and Associates, Inc. (KAI) C++ Compiler
4470
4471
	# KCC will only create a shared library if the output file
4472
	# ends with ".so" (or ".sl" for HP-UX), so rename the library
4473
	# to its proper name (with version) after linking.
4474
	_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'
4475
4476
	_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
4477
	_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
4478
4479
	# Archives containing C++ object files must be created using
4480
	# the KAI C++ compiler.
4481
	_LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -o $oldlib $oldobjs'
4482
	;;
4483
      RCC*)
4484
	# Rational C++ 2.4.1
4485
	# FIXME: insert proper C++ library support
4486
	_LT_AC_TAGVAR(ld_shlibs, $1)=no
4487
	;;
4488
      cxx*)
4489
	_LT_AC_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
4490
	_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'
4491
	_LT_AC_TAGVAR(archive_expsym_cmds, $1)='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
4492
	  echo "-hidden">> $lib.exp~
4493
	  $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~
4494
	  $rm $lib.exp'
4495
4496
	_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
4497
	_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
4498
4499
	# Commands to make compiler produce verbose output that lists
4500
	# what "hidden" libraries, object files and flags are used when
4501
	# linking a shared library.
4502
	#
4503
	# There doesn't appear to be a way to prevent this compiler from
4504
	# explicitly linking system object files so we need to strip them
4505
	# from the output so that they don't get included in the library
4506
	# dependencies.
4507
	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'
4508
	;;
4509
      *)
4510
	if test "$GXX" = yes && test "$with_gnu_ld" = no; then
4511
	  _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
4512
	 _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'
4513
4514
	  _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
4515
	  _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
4516
4517
	  # Commands to make compiler produce verbose output that lists
4518
	  # what "hidden" libraries, object files and flags are used when
4519
	  # linking a shared library.
4520
	  output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
4521
4522
	else
4523
	  # FIXME: insert proper C++ library support
4524
	  _LT_AC_TAGVAR(ld_shlibs, $1)=no
4525
	fi
4526
	;;
4527
    esac
4528
    ;;
4529
  psos*)
4530
    # FIXME: insert proper C++ library support
4531
    _LT_AC_TAGVAR(ld_shlibs, $1)=no
4532
    ;;
4533
  sco*)
4534
    _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
4535
    case $cc_basename in
4536
      CC*)
4537
	# FIXME: insert proper C++ library support
4538
	_LT_AC_TAGVAR(ld_shlibs, $1)=no
4539
	;;
4540
      *)
4541
	# FIXME: insert proper C++ library support
4542
	_LT_AC_TAGVAR(ld_shlibs, $1)=no
4543
	;;
4544
    esac
4545
    ;;
4546
  sunos4*)
4547
    case $cc_basename in
4548
      CC*)
4549
	# Sun C++ 4.x
4550
	# FIXME: insert proper C++ library support
4551
	_LT_AC_TAGVAR(ld_shlibs, $1)=no
4552
	;;
4553
      lcc*)
4554
	# Lucid
4555
	# FIXME: insert proper C++ library support
4556
	_LT_AC_TAGVAR(ld_shlibs, $1)=no
4557
	;;
4558
      *)
4559
	# FIXME: insert proper C++ library support
4560
	_LT_AC_TAGVAR(ld_shlibs, $1)=no
4561
	;;
4562
    esac
4563
    ;;
4564
  solaris*)
4565
    case $cc_basename in
4566
      CC*)
4567
	# Sun C++ 4.2, 5.x and Centerline C++
4568
	_LT_AC_TAGVAR(no_undefined_flag, $1)=' -zdefs'
4569
	_LT_AC_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -nolib -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
4570
	_LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
4571
	$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'
4572
4573
	_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
4574
	_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
4575
	case $host_os in
4576
	  solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
4577
	  *)
4578
	    # The C++ compiler is used as linker so we must use $wl
4579
	    # flag to pass the commands to the underlying system
4580
	    # linker. We must also pass each convience library through
4581
	    # to the system linker between allextract/defaultextract.
4582
	    # The C++ compiler will combine linker options so we
4583
	    # cannot just pass the convience library names through
4584
	    # without $wl.
4585
	    # Supported since Solaris 2.6 (maybe 2.5.1?)
4586
	    _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'
4587
	    ;;
4588
	esac
4589
	_LT_AC_TAGVAR(link_all_deplibs, $1)=yes
4590
4591
	# Commands to make compiler produce verbose output that lists
4592
	# what "hidden" libraries, object files and flags are used when
4593
	# linking a shared library.
4594
	#
4595
	# There doesn't appear to be a way to prevent this compiler from
4596
	# explicitly linking system object files so we need to strip them
4597
	# from the output so that they don't get included in the library
4598
	# dependencies.
4599
	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'
4600
4601
	# Archives containing C++ object files must be created using
4602
	# "CC -xar", where "CC" is the Sun C++ compiler.  This is
4603
	# necessary to make sure instantiated templates are included
4604
	# in the archive.
4605
	_LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs'
4606
	;;
4607
      gcx*)
4608
	# Green Hills C++ Compiler
4609
	_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
4610
4611
	# The C++ compiler must be used to create the archive.
4612
	_LT_AC_TAGVAR(old_archive_cmds, $1)='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
4613
	;;
4614
      *)
4615
	# GNU C++ compiler with Solaris linker
4616
	if test "$GXX" = yes && test "$with_gnu_ld" = no; then
4617
	  _LT_AC_TAGVAR(no_undefined_flag, $1)=' ${wl}-z ${wl}defs'
4618
	  if $CC --version | grep -v '^2\.7' > /dev/null; then
4619
	    _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
4620
	    _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
4621
		$CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
4622
4623
	    # Commands to make compiler produce verbose output that lists
4624
	    # what "hidden" libraries, object files and flags are used when
4625
	    # linking a shared library.
4626
	    output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
4627
	  else
4628
	    # g++ 2.7 appears to require `-G' NOT `-shared' on this
4629
	    # platform.
4630
	    _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
4631
	    _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
4632
		$CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
4633
4634
	    # Commands to make compiler produce verbose output that lists
4635
	    # what "hidden" libraries, object files and flags are used when
4636
	    # linking a shared library.
4637
	    output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
4638
	  fi
4639
4640
	  _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $wl$libdir'
4641
	fi
4642
	;;
4643
    esac
4644
    ;;
4645
  sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[[78]]* | unixware7*)
4646
    _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
4647
    ;;
4648
  tandem*)
4649
    case $cc_basename in
4650
      NCC*)
4651
	# NonStop-UX NCC 3.20
4652
	# FIXME: insert proper C++ library support
4653
	_LT_AC_TAGVAR(ld_shlibs, $1)=no
4654
	;;
4655
      *)
4656
	# FIXME: insert proper C++ library support
4657
	_LT_AC_TAGVAR(ld_shlibs, $1)=no
4658
	;;
4659
    esac
4660
    ;;
4661
  vxworks*)
4662
    # FIXME: insert proper C++ library support
4663
    _LT_AC_TAGVAR(ld_shlibs, $1)=no
4664
    ;;
4665
  *)
4666
    # FIXME: insert proper C++ library support
4667
    _LT_AC_TAGVAR(ld_shlibs, $1)=no
4668
    ;;
4669
esac
4670
AC_MSG_RESULT([$_LT_AC_TAGVAR(ld_shlibs, $1)])
4671
test "$_LT_AC_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no
4672
4673
_LT_AC_TAGVAR(GCC, $1)="$GXX"
4674
_LT_AC_TAGVAR(LD, $1)="$LD"
4675
4676
AC_LIBTOOL_POSTDEP_PREDEP($1)
4677
AC_LIBTOOL_PROG_COMPILER_PIC($1)
4678
AC_LIBTOOL_PROG_CC_C_O($1)
4679
AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1)
4680
AC_LIBTOOL_PROG_LD_SHLIBS($1)
4681
AC_LIBTOOL_SYS_DYNAMIC_LINKER($1)
4682
AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1)
4683
AC_LIBTOOL_SYS_LIB_STRIP
4684
AC_LIBTOOL_DLOPEN_SELF($1)
4685
4686
AC_LIBTOOL_CONFIG($1)
4687
4688
AC_LANG_POP
4689
CC=$lt_save_CC
4690
LDCXX=$LD
4691
LD=$lt_save_LD
4692
GCC=$lt_save_GCC
4693
with_gnu_ldcxx=$with_gnu_ld
4694
with_gnu_ld=$lt_save_with_gnu_ld
4695
lt_cv_path_LDCXX=$lt_cv_path_LD
4696
lt_cv_path_LD=$lt_save_path_LD
4697
lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
4698
lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
4699
])# AC_LIBTOOL_LANG_CXX_CONFIG
4700
4701
# AC_LIBTOOL_POSTDEP_PREDEP([TAGNAME])
4702
# ------------------------
4703
# Figure out "hidden" library dependencies from verbose
4704
# compiler output when linking a shared library.
4705
# Parse the compiler output and extract the necessary
4706
# objects, libraries and library flags.
4707
AC_DEFUN([AC_LIBTOOL_POSTDEP_PREDEP],[
4708
dnl we can't use the lt_simple_compile_test_code here,
4709
dnl because it contains code intended for an executable,
4710
dnl not a library.  It's possible we should let each
4711
dnl tag define a new lt_????_link_test_code variable,
4712
dnl but it's only used here...
4713
ifelse([$1],[],[cat > conftest.$ac_ext <<EOF
4714
int a;
4715
void foo (void) { a = 0; }
4716
EOF
4717
],[$1],[CXX],[cat > conftest.$ac_ext <<EOF
4718
class Foo
4719
{
4720
public:
4721
  Foo (void) { a = 0; }
4722
private:
4723
  int a;
4724
};
4725
EOF
4726
],[$1],[F77],[cat > conftest.$ac_ext <<EOF
4727
      subroutine foo
4728
      implicit none
4729
      integer*4 a
4730
      a=0
4731
      return
4732
      end
4733
EOF
4734
],[$1],[GCJ],[cat > conftest.$ac_ext <<EOF
4735
public class foo {
4736
  private int a;
4737
  public void bar (void) {
4738
    a = 0;
4739
  }
4740
};
4741
EOF
4742
])
4743
dnl Parse the compiler output and extract the necessary
4744
dnl objects, libraries and library flags.
4745
if AC_TRY_EVAL(ac_compile); then
4746
  # Parse the compiler output and extract the necessary
4747
  # objects, libraries and library flags.
4748
4749
  # Sentinel used to keep track of whether or not we are before
4750
  # the conftest object file.
4751
  pre_test_object_deps_done=no
4752
4753
  # The `*' in the case matches for architectures that use `case' in
4754
  # $output_verbose_cmd can trigger glob expansion during the loop
4755
  # eval without this substitution.
4756
  output_verbose_link_cmd="`$echo \"X$output_verbose_link_cmd\" | $Xsed -e \"$no_glob_subst\"`"
4757
4758
  for p in `eval $output_verbose_link_cmd`; do
4759
    case $p in
4760
4761
    -L* | -R* | -l*)
4762
       # Some compilers place space between "-{L,R}" and the path.
4763
       # Remove the space.
4764
       if test $p = "-L" \
4765
	  || test $p = "-R"; then
4766
	 prev=$p
4767
	 continue
4768
       else
4769
	 prev=
4770
       fi
4771
4772
       if test "$pre_test_object_deps_done" = no; then
4773
	 case $p in
4774
	 -L* | -R*)
4775
	   # Internal compiler library paths should come after those
4776
	   # provided the user.  The postdeps already come after the
4777
	   # user supplied libs so there is no need to process them.
4778
	   if test -z "$_LT_AC_TAGVAR(compiler_lib_search_path, $1)"; then
4779
	     _LT_AC_TAGVAR(compiler_lib_search_path, $1)="${prev}${p}"
4780
	   else
4781
	     _LT_AC_TAGVAR(compiler_lib_search_path, $1)="${_LT_AC_TAGVAR(compiler_lib_search_path, $1)} ${prev}${p}"
4782
	   fi
4783
	   ;;
4784
	 # The "-l" case would never come before the object being
4785
	 # linked, so don't bother handling this case.
4786
	 esac
4787
       else
4788
	 if test -z "$_LT_AC_TAGVAR(postdeps, $1)"; then
4789
	   _LT_AC_TAGVAR(postdeps, $1)="${prev}${p}"
4790
	 else
4791
	   _LT_AC_TAGVAR(postdeps, $1)="${_LT_AC_TAGVAR(postdeps, $1)} ${prev}${p}"
4792
	 fi
4793
       fi
4794
       ;;
4795
4796
    *.$objext)
4797
       # This assumes that the test object file only shows up
4798
       # once in the compiler output.
4799
       if test "$p" = "conftest.$objext"; then
4800
	 pre_test_object_deps_done=yes
4801
	 continue
4802
       fi
4803
4804
       if test "$pre_test_object_deps_done" = no; then
4805
	 if test -z "$_LT_AC_TAGVAR(predep_objects, $1)"; then
4806
	   _LT_AC_TAGVAR(predep_objects, $1)="$p"
4807
	 else
4808
	   _LT_AC_TAGVAR(predep_objects, $1)="$_LT_AC_TAGVAR(predep_objects, $1) $p"
4809
	 fi
4810
       else
4811
	 if test -z "$_LT_AC_TAGVAR(postdep_objects, $1)"; then
4812
	   _LT_AC_TAGVAR(postdep_objects, $1)="$p"
4813
	 else
4814
	   _LT_AC_TAGVAR(postdep_objects, $1)="$_LT_AC_TAGVAR(postdep_objects, $1) $p"
4815
	 fi
4816
       fi
4817
       ;;
4818
4819
    *) ;; # Ignore the rest.
4820
4821
    esac
4822
  done
4823
4824
  # Clean up.
4825
  rm -f a.out a.exe
4826
else
4827
  echo "libtool.m4: error: problem compiling $1 test program"
4828
fi
4829
4830
$rm -f confest.$objext
4831
4832
case " $_LT_AC_TAGVAR(postdeps, $1) " in
4833
*" -lc "*) _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no ;;
4834
esac
4835
])# AC_LIBTOOL_POSTDEP_PREDEP
4836
4837
# AC_LIBTOOL_LANG_F77_CONFIG
4838
# ------------------------
4839
# Ensure that the configuration vars for the C compiler are
4840
# suitably defined.  Those variables are subsequently used by
4841
# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
4842
AC_DEFUN([AC_LIBTOOL_LANG_F77_CONFIG], [_LT_AC_LANG_F77_CONFIG(F77)])
4843
AC_DEFUN([_LT_AC_LANG_F77_CONFIG],
4844
[AC_REQUIRE([AC_PROG_F77])
4845
AC_LANG_PUSH(Fortran 77)
4846
4847
_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
4848
_LT_AC_TAGVAR(allow_undefined_flag, $1)=
4849
_LT_AC_TAGVAR(always_export_symbols, $1)=no
4850
_LT_AC_TAGVAR(archive_expsym_cmds, $1)=
4851
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)=
4852
_LT_AC_TAGVAR(hardcode_direct, $1)=no
4853
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=
4854
_LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
4855
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
4856
_LT_AC_TAGVAR(hardcode_minus_L, $1)=no
4857
_LT_AC_TAGVAR(hardcode_automatic, $1)=no
4858
_LT_AC_TAGVAR(module_cmds, $1)=
4859
_LT_AC_TAGVAR(module_expsym_cmds, $1)=
4860
_LT_AC_TAGVAR(link_all_deplibs, $1)=unknown
4861
_LT_AC_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
4862
_LT_AC_TAGVAR(no_undefined_flag, $1)=
4863
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
4864
_LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=no
4865
4866
# Source file extension for f77 test sources.
4867
ac_ext=f
4868
4869
# Object file extension for compiled f77 test sources.
4870
objext=o
4871
_LT_AC_TAGVAR(objext, $1)=$objext
4872
4873
# Code to be used in simple compile tests
4874
lt_simple_compile_test_code="      subroutine t\n      return\n      end\n"
4875
4876
# Code to be used in simple link tests
4877
lt_simple_link_test_code="      program t\n      end\n"
4878
4879
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
4880
_LT_AC_SYS_COMPILER
4881
4882
# save warnings/boilerplate of simple test code
4883
_LT_COMPILER_BOILERPLATE
4884
_LT_LINKER_BOILERPLATE
4885
4886
# Allow CC to be a program name with arguments.
4887
lt_save_CC="$CC"
4888
CC=${F77-"f77"}
4889
compiler=$CC
4890
_LT_AC_TAGVAR(compiler, $1)=$CC
4891
_LT_CC_BASENAME([$compiler])
4892
4893
AC_MSG_CHECKING([if libtool supports shared libraries])
4894
AC_MSG_RESULT([$can_build_shared])
4895
4896
AC_MSG_CHECKING([whether to build shared libraries])
4897
test "$can_build_shared" = "no" && enable_shared=no
4898
4899
# On AIX, shared libraries and static libraries use the same namespace, and
4900
# are all built from PIC.
4901
case "$host_os" in
4902
aix3*)
4903
  test "$enable_shared" = yes && enable_static=no
4904
  if test -n "$RANLIB"; then
4905
    archive_cmds="$archive_cmds~\$RANLIB \$lib"
4906
    postinstall_cmds='$RANLIB $lib'
4907
  fi
4908
  ;;
4909
aix4* | aix5*)
4910
  if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
4911
    test "$enable_shared" = yes && enable_static=no
4912
  fi
4913
  ;;
4914
esac
4915
AC_MSG_RESULT([$enable_shared])
4916
4917
AC_MSG_CHECKING([whether to build static libraries])
4918
# Make sure either enable_shared or enable_static is yes.
4919
test "$enable_shared" = yes || enable_static=yes
4920
AC_MSG_RESULT([$enable_static])
4921
4922
test "$_LT_AC_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no
4923
4924
_LT_AC_TAGVAR(GCC, $1)="$G77"
4925
_LT_AC_TAGVAR(LD, $1)="$LD"
4926
4927
AC_LIBTOOL_PROG_COMPILER_PIC($1)
4928
AC_LIBTOOL_PROG_CC_C_O($1)
4929
AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1)
4930
AC_LIBTOOL_PROG_LD_SHLIBS($1)
4931
AC_LIBTOOL_SYS_DYNAMIC_LINKER($1)
4932
AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1)
4933
AC_LIBTOOL_SYS_LIB_STRIP
4934
4935
4936
AC_LIBTOOL_CONFIG($1)
4937
4938
AC_LANG_POP
4939
CC="$lt_save_CC"
4940
])# AC_LIBTOOL_LANG_F77_CONFIG
4941
4942
4943
# AC_LIBTOOL_LANG_GCJ_CONFIG
4944
# --------------------------
4945
# Ensure that the configuration vars for the C compiler are
4946
# suitably defined.  Those variables are subsequently used by
4947
# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
4948
AC_DEFUN([AC_LIBTOOL_LANG_GCJ_CONFIG], [_LT_AC_LANG_GCJ_CONFIG(GCJ)])
4949
AC_DEFUN([_LT_AC_LANG_GCJ_CONFIG],
4950
[AC_LANG_SAVE
4951
4952
# Source file extension for Java test sources.
4953
ac_ext=java
4954
4955
# Object file extension for compiled Java test sources.
4956
objext=o
4957
_LT_AC_TAGVAR(objext, $1)=$objext
4958
4959
# Code to be used in simple compile tests
4960
lt_simple_compile_test_code="class foo {}\n"
4961
4962
# Code to be used in simple link tests
4963
lt_simple_link_test_code='public class conftest { public static void main(String[[]] argv) {}; }\n'
4964
4965
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
4966
_LT_AC_SYS_COMPILER
4967
4968
# save warnings/boilerplate of simple test code
4969
_LT_COMPILER_BOILERPLATE
4970
_LT_LINKER_BOILERPLATE
4971
4972
# Allow CC to be a program name with arguments.
4973
lt_save_CC="$CC"
4974
CC=${GCJ-"gcj"}
4975
compiler=$CC
4976
_LT_AC_TAGVAR(compiler, $1)=$CC
4977
_LT_CC_BASENAME([$compiler])
4978
4979
# GCJ did not exist at the time GCC didn't implicitly link libc in.
4980
_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
4981
4982
_LT_AC_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
4983
4984
AC_LIBTOOL_PROG_COMPILER_NO_RTTI($1)
4985
AC_LIBTOOL_PROG_COMPILER_PIC($1)
4986
AC_LIBTOOL_PROG_CC_C_O($1)
4987
AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1)
4988
AC_LIBTOOL_PROG_LD_SHLIBS($1)
4989
AC_LIBTOOL_SYS_DYNAMIC_LINKER($1)
4990
AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1)
4991
AC_LIBTOOL_SYS_LIB_STRIP
4992
AC_LIBTOOL_DLOPEN_SELF($1)
4993
4994
AC_LIBTOOL_CONFIG($1)
4995
4996
AC_LANG_RESTORE
4997
CC="$lt_save_CC"
4998
])# AC_LIBTOOL_LANG_GCJ_CONFIG
4999
5000
5001
# AC_LIBTOOL_LANG_RC_CONFIG
5002
# --------------------------
5003
# Ensure that the configuration vars for the Windows resource compiler are
5004
# suitably defined.  Those variables are subsequently used by
5005
# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
5006
AC_DEFUN([AC_LIBTOOL_LANG_RC_CONFIG], [_LT_AC_LANG_RC_CONFIG(RC)])
5007
AC_DEFUN([_LT_AC_LANG_RC_CONFIG],
5008
[AC_LANG_SAVE
5009
5010
# Source file extension for RC test sources.
5011
ac_ext=rc
5012
5013
# Object file extension for compiled RC test sources.
5014
objext=o
5015
_LT_AC_TAGVAR(objext, $1)=$objext
5016
5017
# Code to be used in simple compile tests
5018
lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
5019
5020
# Code to be used in simple link tests
5021
lt_simple_link_test_code="$lt_simple_compile_test_code"
5022
5023
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
5024
_LT_AC_SYS_COMPILER
5025
5026
# save warnings/boilerplate of simple test code
5027
_LT_COMPILER_BOILERPLATE
5028
_LT_LINKER_BOILERPLATE
5029
5030
# Allow CC to be a program name with arguments.
5031
lt_save_CC="$CC"
5032
CC=${RC-"windres"}
5033
compiler=$CC
5034
_LT_AC_TAGVAR(compiler, $1)=$CC
5035
_LT_CC_BASENAME([$compiler])
5036
_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes
5037
5038
AC_LIBTOOL_CONFIG($1)
5039
5040
AC_LANG_RESTORE
5041
CC="$lt_save_CC"
5042
])# AC_LIBTOOL_LANG_RC_CONFIG
5043
5044
5045
# AC_LIBTOOL_CONFIG([TAGNAME])
5046
# ----------------------------
5047
# If TAGNAME is not passed, then create an initial libtool script
5048
# with a default configuration from the untagged config vars.  Otherwise
5049
# add code to config.status for appending the configuration named by
5050
# TAGNAME from the matching tagged config vars.
5051
AC_DEFUN([AC_LIBTOOL_CONFIG],
5052
[# The else clause should only fire when bootstrapping the
5053
# libtool distribution, otherwise you forgot to ship ltmain.sh
5054
# with your package, and you will get complaints that there are
5055
# no rules to generate ltmain.sh.
5056
if test -f "$ltmain"; then
5057
  # See if we are running on zsh, and set the options which allow our commands through
5058
  # without removal of \ escapes.
5059
  if test -n "${ZSH_VERSION+set}" ; then
5060
    setopt NO_GLOB_SUBST
5061
  fi
5062
  # Now quote all the things that may contain metacharacters while being
5063
  # careful not to overquote the AC_SUBSTed values.  We take copies of the
5064
  # variables and quote the copies for generation of the libtool script.
5065
  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
5066
    SED SHELL STRIP \
5067
    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
5068
    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
5069
    deplibs_check_method reload_flag reload_cmds need_locks \
5070
    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
5071
    lt_cv_sys_global_symbol_to_c_name_address \
5072
    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
5073
    old_postinstall_cmds old_postuninstall_cmds \
5074
    _LT_AC_TAGVAR(compiler, $1) \
5075
    _LT_AC_TAGVAR(CC, $1) \
5076
    _LT_AC_TAGVAR(LD, $1) \
5077
    _LT_AC_TAGVAR(lt_prog_compiler_wl, $1) \
5078
    _LT_AC_TAGVAR(lt_prog_compiler_pic, $1) \
5079
    _LT_AC_TAGVAR(lt_prog_compiler_static, $1) \
5080
    _LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1) \
5081
    _LT_AC_TAGVAR(export_dynamic_flag_spec, $1) \
5082
    _LT_AC_TAGVAR(thread_safe_flag_spec, $1) \
5083
    _LT_AC_TAGVAR(whole_archive_flag_spec, $1) \
5084
    _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1) \
5085
    _LT_AC_TAGVAR(old_archive_cmds, $1) \
5086
    _LT_AC_TAGVAR(old_archive_from_new_cmds, $1) \
5087
    _LT_AC_TAGVAR(predep_objects, $1) \
5088
    _LT_AC_TAGVAR(postdep_objects, $1) \
5089
    _LT_AC_TAGVAR(predeps, $1) \
5090
    _LT_AC_TAGVAR(postdeps, $1) \
5091
    _LT_AC_TAGVAR(compiler_lib_search_path, $1) \
5092
    _LT_AC_TAGVAR(archive_cmds, $1) \
5093
    _LT_AC_TAGVAR(archive_expsym_cmds, $1) \
5094
    _LT_AC_TAGVAR(postinstall_cmds, $1) \
5095
    _LT_AC_TAGVAR(postuninstall_cmds, $1) \
5096
    _LT_AC_TAGVAR(old_archive_from_expsyms_cmds, $1) \
5097
    _LT_AC_TAGVAR(allow_undefined_flag, $1) \
5098
    _LT_AC_TAGVAR(no_undefined_flag, $1) \
5099
    _LT_AC_TAGVAR(export_symbols_cmds, $1) \
5100
    _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1) \
5101
    _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1) \
5102
    _LT_AC_TAGVAR(hardcode_libdir_separator, $1) \
5103
    _LT_AC_TAGVAR(hardcode_automatic, $1) \
5104
    _LT_AC_TAGVAR(module_cmds, $1) \
5105
    _LT_AC_TAGVAR(module_expsym_cmds, $1) \
5106
    _LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1) \
5107
    _LT_AC_TAGVAR(exclude_expsyms, $1) \
5108
    _LT_AC_TAGVAR(include_expsyms, $1); do
5109
5110
    case $var in
5111
    _LT_AC_TAGVAR(old_archive_cmds, $1) | \
5112
    _LT_AC_TAGVAR(old_archive_from_new_cmds, $1) | \
5113
    _LT_AC_TAGVAR(archive_cmds, $1) | \
5114
    _LT_AC_TAGVAR(archive_expsym_cmds, $1) | \
5115
    _LT_AC_TAGVAR(module_cmds, $1) | \
5116
    _LT_AC_TAGVAR(module_expsym_cmds, $1) | \
5117
    _LT_AC_TAGVAR(old_archive_from_expsyms_cmds, $1) | \
5118
    _LT_AC_TAGVAR(export_symbols_cmds, $1) | \
5119
    extract_expsyms_cmds | reload_cmds | finish_cmds | \
5120
    postinstall_cmds | postuninstall_cmds | \
5121
    old_postinstall_cmds | old_postuninstall_cmds | \
5122
    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
5123
      # Double-quote double-evaled strings.
5124
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
5125
      ;;
5126
    *)
5127
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
5128
      ;;
5129
    esac
5130
  done
5131
5132
  case $lt_echo in
5133
  *'\[$]0 --fallback-echo"')
5134
    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\[$]0 --fallback-echo"[$]/[$]0 --fallback-echo"/'`
5135
    ;;
5136
  esac
5137
5138
ifelse([$1], [],
5139
  [cfgfile="${ofile}T"
5140
  trap "$rm \"$cfgfile\"; exit 1" 1 2 15
5141
  $rm -f "$cfgfile"
5142
  AC_MSG_NOTICE([creating $ofile])],
5143
  [cfgfile="$ofile"])
5144
5145
  cat <<__EOF__ >> "$cfgfile"
5146
ifelse([$1], [],
5147
[#! $SHELL
5148
5149
# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
5150
# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
5151
# NOTE: Changes made to this file will be lost: look at ltmain.sh.
5152
#
5153
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
5154
# Free Software Foundation, Inc.
5155
#
5156
# This file is part of GNU Libtool:
5157
# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
5158
#
5159
# This program is free software; you can redistribute it and/or modify
5160
# it under the terms of the GNU General Public License as published by
5161
# the Free Software Foundation; either version 2 of the License, or
5162
# (at your option) any later version.
5163
#
5164
# This program is distributed in the hope that it will be useful, but
5165
# WITHOUT ANY WARRANTY; without even the implied warranty of
5166
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
5167
# General Public License for more details.
5168
#
5169
# You should have received a copy of the GNU General Public License
5170
# along with this program; if not, write to the Free Software
5171
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
5172
#
5173
# As a special exception to the GNU General Public License, if you
5174
# distribute this file as part of a program that contains a
5175
# configuration script generated by Autoconf, you may include it under
5176
# the same distribution terms that you use for the rest of that program.
5177
5178
# A sed program that does not truncate output.
5179
SED=$lt_SED
5180
5181
# Sed that helps us avoid accidentally triggering echo(1) options like -n.
5182
Xsed="$SED -e 1s/^X//"
5183
5184
# The HP-UX ksh and POSIX shell print the target directory to stdout
5185
# if CDPATH is set.
5186
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
5187
5188
# The names of the tagged configurations supported by this script.
5189
available_tags=
5190
5191
# ### BEGIN LIBTOOL CONFIG],
5192
[# ### BEGIN LIBTOOL TAG CONFIG: $tagname])
5193
5194
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
5195
5196
# Shell to use when invoking shell scripts.
5197
SHELL=$lt_SHELL
5198
5199
# Whether or not to build shared libraries.
5200
build_libtool_libs=$enable_shared
5201
5202
# Whether or not to build static libraries.
5203
build_old_libs=$enable_static
5204
5205
# Whether or not to add -lc for building shared libraries.
5206
build_libtool_need_lc=$_LT_AC_TAGVAR(archive_cmds_need_lc, $1)
5207
5208
# Whether or not to disallow shared libs when runtime libs are static
5209
allow_libtool_libs_with_static_runtimes=$_LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)
5210
5211
# Whether or not to optimize for fast installation.
5212
fast_install=$enable_fast_install
5213
5214
# The host system.
5215
host_alias=$host_alias
5216
host=$host
5217
host_os=$host_os
5218
5219
# The build system.
5220
build_alias=$build_alias
5221
build=$build
5222
build_os=$build_os
5223
5224
# An echo program that does not interpret backslashes.
5225
echo=$lt_echo
5226
5227
# The archiver.
5228
AR=$lt_AR
5229
AR_FLAGS=$lt_AR_FLAGS
5230
5231
# A C compiler.
5232
LTCC=$lt_LTCC
5233
5234
# A language-specific compiler.
5235
CC=$lt_[]_LT_AC_TAGVAR(compiler, $1)
5236
5237
# Is the compiler the GNU C compiler?
5238
with_gcc=$_LT_AC_TAGVAR(GCC, $1)
5239
5240
# An ERE matcher.
5241
EGREP=$lt_EGREP
5242
5243
# The linker used to build libraries.
5244
LD=$lt_[]_LT_AC_TAGVAR(LD, $1)
5245
5246
# Whether we need hard or soft links.
5247
LN_S=$lt_LN_S
5248
5249
# A BSD-compatible nm program.
5250
NM=$lt_NM
5251
5252
# A symbol stripping program
5253
STRIP=$lt_STRIP
5254
5255
# Used to examine libraries when file_magic_cmd begins "file"
5256
MAGIC_CMD=$MAGIC_CMD
5257
5258
# Used on cygwin: DLL creation program.
5259
DLLTOOL="$DLLTOOL"
5260
5261
# Used on cygwin: object dumper.
5262
OBJDUMP="$OBJDUMP"
5263
5264
# Used on cygwin: assembler.
5265
AS="$AS"
5266
5267
# The name of the directory that contains temporary libtool files.
5268
objdir=$objdir
5269
5270
# How to create reloadable object files.
5271
reload_flag=$lt_reload_flag
5272
reload_cmds=$lt_reload_cmds
5273
5274
# How to pass a linker flag through the compiler.
5275
wl=$lt_[]_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)
5276
5277
# Object file suffix (normally "o").
5278
objext="$ac_objext"
5279
5280
# Old archive suffix (normally "a").
5281
libext="$libext"
5282
5283
# Shared library suffix (normally ".so").
5284
shrext_cmds='$shrext_cmds'
5285
5286
# Executable file suffix (normally "").
5287
exeext="$exeext"
5288
5289
# Additional compiler flags for building library objects.
5290
pic_flag=$lt_[]_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)
5291
pic_mode=$pic_mode
5292
5293
# What is the maximum length of a command?
5294
max_cmd_len=$lt_cv_sys_max_cmd_len
5295
5296
# Does compiler simultaneously support -c and -o options?
5297
compiler_c_o=$lt_[]_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)
5298
5299
# Must we lock files when doing compilation?
5300
need_locks=$lt_need_locks
5301
5302
# Do we need the lib prefix for modules?
5303
need_lib_prefix=$need_lib_prefix
5304
5305
# Do we need a version for libraries?
5306
need_version=$need_version
5307
5308
# Whether dlopen is supported.
5309
dlopen_support=$enable_dlopen
5310
5311
# Whether dlopen of programs is supported.
5312
dlopen_self=$enable_dlopen_self
5313
5314
# Whether dlopen of statically linked programs is supported.
5315
dlopen_self_static=$enable_dlopen_self_static
5316
5317
# Compiler flag to prevent dynamic linking.
5318
link_static_flag=$lt_[]_LT_AC_TAGVAR(lt_prog_compiler_static, $1)
5319
5320
# Compiler flag to turn off builtin functions.
5321
no_builtin_flag=$lt_[]_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)
5322
5323
# Compiler flag to allow reflexive dlopens.
5324
export_dynamic_flag_spec=$lt_[]_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)
5325
5326
# Compiler flag to generate shared objects directly from archives.
5327
whole_archive_flag_spec=$lt_[]_LT_AC_TAGVAR(whole_archive_flag_spec, $1)
5328
5329
# Compiler flag to generate thread-safe objects.
5330
thread_safe_flag_spec=$lt_[]_LT_AC_TAGVAR(thread_safe_flag_spec, $1)
5331
5332
# Library versioning type.
5333
version_type=$version_type
5334
5335
# Format of library name prefix.
5336
libname_spec=$lt_libname_spec
5337
5338
# List of archive names.  First name is the real one, the rest are links.
5339
# The last name is the one that the linker finds with -lNAME.
5340
library_names_spec=$lt_library_names_spec
5341
5342
# The coded name of the library, if different from the real name.
5343
soname_spec=$lt_soname_spec
5344
5345
# Commands used to build and install an old-style archive.
5346
RANLIB=$lt_RANLIB
5347
old_archive_cmds=$lt_[]_LT_AC_TAGVAR(old_archive_cmds, $1)
5348
old_postinstall_cmds=$lt_old_postinstall_cmds
5349
old_postuninstall_cmds=$lt_old_postuninstall_cmds
5350
5351
# Create an old-style archive from a shared archive.
5352
old_archive_from_new_cmds=$lt_[]_LT_AC_TAGVAR(old_archive_from_new_cmds, $1)
5353
5354
# Create a temporary old-style archive to link instead of a shared archive.
5355
old_archive_from_expsyms_cmds=$lt_[]_LT_AC_TAGVAR(old_archive_from_expsyms_cmds, $1)
5356
5357
# Commands used to build and install a shared archive.
5358
archive_cmds=$lt_[]_LT_AC_TAGVAR(archive_cmds, $1)
5359
archive_expsym_cmds=$lt_[]_LT_AC_TAGVAR(archive_expsym_cmds, $1)
5360
postinstall_cmds=$lt_postinstall_cmds
5361
postuninstall_cmds=$lt_postuninstall_cmds
5362
5363
# Commands used to build a loadable module (assumed same as above if empty)
5364
module_cmds=$lt_[]_LT_AC_TAGVAR(module_cmds, $1)
5365
module_expsym_cmds=$lt_[]_LT_AC_TAGVAR(module_expsym_cmds, $1)
5366
5367
# Commands to strip libraries.
5368
old_striplib=$lt_old_striplib
5369
striplib=$lt_striplib
5370
5371
# Dependencies to place before the objects being linked to create a
5372
# shared library.
5373
predep_objects=$lt_[]_LT_AC_TAGVAR(predep_objects, $1)
5374
5375
# Dependencies to place after the objects being linked to create a
5376
# shared library.
5377
postdep_objects=$lt_[]_LT_AC_TAGVAR(postdep_objects, $1)
5378
5379
# Dependencies to place before the objects being linked to create a
5380
# shared library.
5381
predeps=$lt_[]_LT_AC_TAGVAR(predeps, $1)
5382
5383
# Dependencies to place after the objects being linked to create a
5384
# shared library.
5385
postdeps=$lt_[]_LT_AC_TAGVAR(postdeps, $1)
5386
5387
# The library search path used internally by the compiler when linking
5388
# a shared library.
5389
compiler_lib_search_path=$lt_[]_LT_AC_TAGVAR(compiler_lib_search_path, $1)
5390
5391
# Method to check whether dependent libraries are shared objects.
5392
deplibs_check_method=$lt_deplibs_check_method
5393
5394
# Command to use when deplibs_check_method == file_magic.
5395
file_magic_cmd=$lt_file_magic_cmd
5396
5397
# Flag that allows shared libraries with undefined symbols to be built.
5398
allow_undefined_flag=$lt_[]_LT_AC_TAGVAR(allow_undefined_flag, $1)
5399
5400
# Flag that forces no undefined symbols.
5401
no_undefined_flag=$lt_[]_LT_AC_TAGVAR(no_undefined_flag, $1)
5402
5403
# Commands used to finish a libtool library installation in a directory.
5404
finish_cmds=$lt_finish_cmds
5405
5406
# Same as above, but a single script fragment to be evaled but not shown.
5407
finish_eval=$lt_finish_eval
5408
5409
# Take the output of nm and produce a listing of raw symbols and C names.
5410
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
5411
5412
# Transform the output of nm in a proper C declaration
5413
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
5414
5415
# Transform the output of nm in a C name address pair
5416
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
5417
5418
# This is the shared library runtime path variable.
5419
runpath_var=$runpath_var
5420
5421
# This is the shared library path variable.
5422
shlibpath_var=$shlibpath_var
5423
5424
# Is shlibpath searched before the hard-coded library search path?
5425
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
5426
5427
# How to hardcode a shared library path into an executable.
5428
hardcode_action=$_LT_AC_TAGVAR(hardcode_action, $1)
5429
5430
# Whether we should hardcode library paths into libraries.
5431
hardcode_into_libs=$hardcode_into_libs
5432
5433
# Flag to hardcode \$libdir into a binary during linking.
5434
# This must work even if \$libdir does not exist.
5435
hardcode_libdir_flag_spec=$lt_[]_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)
5436
5437
# If ld is used when linking, flag to hardcode \$libdir into
5438
# a binary during linking. This must work even if \$libdir does
5439
# not exist.
5440
hardcode_libdir_flag_spec_ld=$lt_[]_LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)
5441
5442
# Whether we need a single -rpath flag with a separated argument.
5443
hardcode_libdir_separator=$lt_[]_LT_AC_TAGVAR(hardcode_libdir_separator, $1)
5444
5445
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
5446
# resulting binary.
5447
hardcode_direct=$_LT_AC_TAGVAR(hardcode_direct, $1)
5448
5449
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
5450
# resulting binary.
5451
hardcode_minus_L=$_LT_AC_TAGVAR(hardcode_minus_L, $1)
5452
5453
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
5454
# the resulting binary.
5455
hardcode_shlibpath_var=$_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)
5456
5457
# Set to yes if building a shared library automatically hardcodes DIR into the library
5458
# and all subsequent libraries and executables linked against it.
5459
hardcode_automatic=$_LT_AC_TAGVAR(hardcode_automatic, $1)
5460
5461
# Variables whose values should be saved in libtool wrapper scripts and
5462
# restored at relink time.
5463
variables_saved_for_relink="$variables_saved_for_relink"
5464
5465
# Whether libtool must link a program against all its dependency libraries.
5466
link_all_deplibs=$_LT_AC_TAGVAR(link_all_deplibs, $1)
5467
5468
# Compile-time system search path for libraries
5469
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
5470
5471
# Run-time system search path for libraries
5472
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
5473
5474
# Fix the shell variable \$srcfile for the compiler.
5475
fix_srcfile_path="$_LT_AC_TAGVAR(fix_srcfile_path, $1)"
5476
5477
# Set to yes if exported symbols are required.
5478
always_export_symbols=$_LT_AC_TAGVAR(always_export_symbols, $1)
5479
5480
# The commands to list exported symbols.
5481
export_symbols_cmds=$lt_[]_LT_AC_TAGVAR(export_symbols_cmds, $1)
5482
5483
# The commands to extract the exported symbol list from a shared archive.
5484
extract_expsyms_cmds=$lt_extract_expsyms_cmds
5485
5486
# Symbols that should not be listed in the preloaded symbols.
5487
exclude_expsyms=$lt_[]_LT_AC_TAGVAR(exclude_expsyms, $1)
5488
5489
# Symbols that must always be exported.
5490
include_expsyms=$lt_[]_LT_AC_TAGVAR(include_expsyms, $1)
5491
5492
ifelse([$1],[],
5493
[# ### END LIBTOOL CONFIG],
5494
[# ### END LIBTOOL TAG CONFIG: $tagname])
5495
5496
__EOF__
5497
5498
ifelse([$1],[], [
5499
  case $host_os in
5500
  aix3*)
5501
    cat <<\EOF >> "$cfgfile"
5502
5503
# AIX sometimes has problems with the GCC collect2 program.  For some
5504
# reason, if we set the COLLECT_NAMES environment variable, the problems
5505
# vanish in a puff of smoke.
5506
if test "X${COLLECT_NAMES+set}" != Xset; then
5507
  COLLECT_NAMES=
5508
  export COLLECT_NAMES
5509
fi
5510
EOF
5511
    ;;
5512
  esac
5513
5514
  # We use sed instead of cat because bash on DJGPP gets confused if
5515
  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
5516
  # text mode, it properly converts lines to CR/LF.  This bash problem
5517
  # is reportedly fixed, but why not run on old versions too?
5518
  sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
5519
5520
  mv -f "$cfgfile" "$ofile" || \
5521
    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
5522
  chmod +x "$ofile"
5523
])
5524
else
5525
  # If there is no Makefile yet, we rely on a make rule to execute
5526
  # `config.status --recheck' to rerun these tests and create the
5527
  # libtool script then.
5528
  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
5529
  if test -f "$ltmain_in"; then
5530
    test -f Makefile && make "$ltmain"
5531
  fi
5532
fi
5533
])# AC_LIBTOOL_CONFIG
5534
5535
5536
# AC_LIBTOOL_PROG_COMPILER_NO_RTTI([TAGNAME])
5537
# -------------------------------------------
5538
AC_DEFUN([AC_LIBTOOL_PROG_COMPILER_NO_RTTI],
5539
[AC_REQUIRE([_LT_AC_SYS_COMPILER])dnl
5540
5541
_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=
5542
5543
if test "$GCC" = yes; then
5544
  _LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin'
5545
5546
  AC_LIBTOOL_COMPILER_OPTION([if $compiler supports -fno-rtti -fno-exceptions],
5547
    lt_cv_prog_compiler_rtti_exceptions,
5548
    [-fno-rtti -fno-exceptions], [],
5549
    [_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)="$_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1) -fno-rtti -fno-exceptions"])
5550
fi
5551
])# AC_LIBTOOL_PROG_COMPILER_NO_RTTI
5552
5553
5554
# AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE
5555
# ---------------------------------
5556
AC_DEFUN([AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE],
5557
[AC_REQUIRE([AC_CANONICAL_HOST])
5558
AC_REQUIRE([AC_PROG_NM])
5559
AC_REQUIRE([AC_OBJEXT])
5560
# Check for command to grab the raw symbol name followed by C symbol from nm.
5561
AC_MSG_CHECKING([command to parse $NM output from $compiler object])
5562
AC_CACHE_VAL([lt_cv_sys_global_symbol_pipe],
5563
[
5564
# These are sane defaults that work on at least a few old systems.
5565
# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
5566
5567
# Character class describing NM global symbol codes.
5568
symcode='[[BCDEGRST]]'
5569
5570
# Regexp to match symbols that can be accessed directly from C.
5571
sympat='\([[_A-Za-z]][[_A-Za-z0-9]]*\)'
5572
5573
# Transform an extracted symbol line into a proper C declaration
5574
lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
5575
5576
# Transform an extracted symbol line into symbol name and symbol address
5577
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'"
5578
5579
# Define system-specific variables.
5580
case $host_os in
5581
aix*)
5582
  symcode='[[BCDT]]'
5583
  ;;
5584
cygwin* | mingw* | pw32*)
5585
  symcode='[[ABCDGISTW]]'
5586
  ;;
5587
hpux*) # Its linker distinguishes data from code symbols
5588
  if test "$host_cpu" = ia64; then
5589
    symcode='[[ABCDEGRST]]'
5590
  fi
5591
  lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5592
  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'"
5593
  ;;
5594
linux*)
5595
  if test "$host_cpu" = ia64; then
5596
    symcode='[[ABCDGIRSTW]]'
5597
    lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5598
    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'"
5599
  fi
5600
  ;;
5601
irix* | nonstopux*)
5602
  symcode='[[BCDEGRST]]'
5603
  ;;
5604
osf*)
5605
  symcode='[[BCDEGQRST]]'
5606
  ;;
5607
solaris* | sysv5*)
5608
  symcode='[[BDRT]]'
5609
  ;;
5610
sysv4)
5611
  symcode='[[DFNSTU]]'
5612
  ;;
5613
esac
5614
5615
# Handle CRLF in mingw tool chain
5616
opt_cr=
5617
case $build_os in
5618
mingw*)
5619
  opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5620
  ;;
5621
esac
5622
5623
# If we're using GNU nm, then use its standard symbol codes.
5624
case `$NM -V 2>&1` in
5625
*GNU* | *'with BFD'*)
5626
  symcode='[[ABCDGIRSTW]]' ;;
5627
esac
5628
5629
# Try without a prefix undercore, then with it.
5630
for ac_symprfx in "" "_"; do
5631
5632
  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
5633
  symxfrm="\\1 $ac_symprfx\\2 \\2"
5634
5635
  # Write the raw and C identifiers.
5636
  lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[[ 	]]\($symcode$symcode*\)[[ 	]][[ 	]]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
5637
5638
  # Check to see that the pipe works correctly.
5639
  pipe_works=no
5640
5641
  rm -f conftest*
5642
  cat > conftest.$ac_ext <<EOF
5643
#ifdef __cplusplus
5644
extern "C" {
5645
#endif
5646
char nm_test_var;
5647
void nm_test_func(){}
5648
#ifdef __cplusplus
5649
}
5650
#endif
5651
int main(){nm_test_var='a';nm_test_func();return(0);}
5652
EOF
5653
5654
  if AC_TRY_EVAL(ac_compile); then
5655
    # Now try to grab the symbols.
5656
    nlist=conftest.nm
5657
    if AC_TRY_EVAL(NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) && test -s "$nlist"; then
5658
      # Try sorting and uniquifying the output.
5659
      if sort "$nlist" | uniq > "$nlist"T; then
5660
	mv -f "$nlist"T "$nlist"
5661
      else
5662
	rm -f "$nlist"T
5663
      fi
5664
5665
      # Make sure that we snagged all the symbols we need.
5666
      if grep ' nm_test_var$' "$nlist" >/dev/null; then
5667
	if grep ' nm_test_func$' "$nlist" >/dev/null; then
5668
	  cat <<EOF > conftest.$ac_ext
5669
#ifdef __cplusplus
5670
extern "C" {
5671
#endif
5672
5673
EOF
5674
	  # Now generate the symbol file.
5675
	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
5676
5677
	  cat <<EOF >> conftest.$ac_ext
5678
#if defined (__STDC__) && __STDC__
5679
# define lt_ptr_t void *
5680
#else
5681
# define lt_ptr_t char *
5682
# define const
5683
#endif
5684
5685
/* The mapping between symbol names and symbols. */
5686
const struct {
5687
  const char *name;
5688
  lt_ptr_t address;
5689
}
5690
lt_preloaded_symbols[[]] =
5691
{
5692
EOF
5693
	  $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
5694
	  cat <<\EOF >> conftest.$ac_ext
5695
  {0, (lt_ptr_t) 0}
5696
};
5697
5698
#ifdef __cplusplus
5699
}
5700
#endif
5701
EOF
5702
	  # Now try linking the two files.
5703
	  mv conftest.$ac_objext conftstm.$ac_objext
5704
	  lt_save_LIBS="$LIBS"
5705
	  lt_save_CFLAGS="$CFLAGS"
5706
	  LIBS="conftstm.$ac_objext"
5707
	  CFLAGS="$CFLAGS$_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)"
5708
	  if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext}; then
5709
	    pipe_works=yes
5710
	  fi
5711
	  LIBS="$lt_save_LIBS"
5712
	  CFLAGS="$lt_save_CFLAGS"
5713
	else
5714
	  echo "cannot find nm_test_func in $nlist" >&AS_MESSAGE_LOG_FD
5715
	fi
5716
      else
5717
	echo "cannot find nm_test_var in $nlist" >&AS_MESSAGE_LOG_FD
5718
      fi
5719
    else
5720
      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&AS_MESSAGE_LOG_FD
5721
    fi
5722
  else
5723
    echo "$progname: failed program was:" >&AS_MESSAGE_LOG_FD
5724
    cat conftest.$ac_ext >&5
5725
  fi
5726
  rm -f conftest* conftst*
5727
5728
  # Do not use the global_symbol_pipe unless it works.
5729
  if test "$pipe_works" = yes; then
5730
    break
5731
  else
5732
    lt_cv_sys_global_symbol_pipe=
5733
  fi
5734
done
5735
])
5736
if test -z "$lt_cv_sys_global_symbol_pipe"; then
5737
  lt_cv_sys_global_symbol_to_cdecl=
5738
fi
5739
if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5740
  AC_MSG_RESULT(failed)
5741
else
5742
  AC_MSG_RESULT(ok)
5743
fi
5744
]) # AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE
5745
5746
5747
# AC_LIBTOOL_PROG_COMPILER_PIC([TAGNAME])
5748
# ---------------------------------------
5749
AC_DEFUN([AC_LIBTOOL_PROG_COMPILER_PIC],
5750
[_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)=
5751
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
5752
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)=
5753
5754
AC_MSG_CHECKING([for $compiler option to produce PIC])
5755
 ifelse([$1],[CXX],[
5756
  # C++ specific cases for pic, static, wl, etc.
5757
  if test "$GXX" = yes; then
5758
    _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5759
    _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static'
5760
5761
    case $host_os in
5762
    aix*)
5763
      # All AIX code is PIC.
5764
      if test "$host_cpu" = ia64; then
5765
	# AIX 5 now supports IA64 processor
5766
	_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5767
      fi
5768
      ;;
5769
    amigaos*)
5770
      # FIXME: we need at least 68020 code to build shared libraries, but
5771
      # adding the `-m68020' flag to GCC prevents building anything better,
5772
      # like `-m68040'.
5773
      _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4'
5774
      ;;
5775
    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
5776
      # PIC is the default for these OSes.
5777
      ;;
5778
    mingw* | os2* | pw32*)
5779
      # This hack is so that the source file can tell whether it is being
5780
      # built for inclusion in a dll (and should export symbols for example).
5781
      _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'
5782
      ;;
5783
    darwin* | rhapsody*)
5784
      # PIC is the default on this platform
5785
      # Common symbols not allowed in MH_DYLIB files
5786
      _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common'
5787
      ;;
5788
    *djgpp*)
5789
      # DJGPP does not support shared libraries at all
5790
      _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
5791
      ;;
5792
    sysv4*MP*)
5793
      if test -d /usr/nec; then
5794
	_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic
5795
      fi
5796
      ;;
5797
    hpux*)
5798
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
5799
      # not for PA HP-UX.
5800
      case "$host_cpu" in
5801
      hppa*64*|ia64*)
5802
	;;
5803
      *)
5804
	_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
5805
	;;
5806
      esac
5807
      ;;
5808
    *)
5809
      _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
5810
      ;;
5811
    esac
5812
  else
5813
    case $host_os in
5814
      aix4* | aix5*)
5815
	# All AIX code is PIC.
5816
	if test "$host_cpu" = ia64; then
5817
	  # AIX 5 now supports IA64 processor
5818
	  _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5819
	else
5820
	  _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp'
5821
	fi
5822
	;;
5823
      chorus*)
5824
	case $cc_basename in
5825
	cxch68*)
5826
	  # Green Hills C++ Compiler
5827
	  # _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"
5828
	  ;;
5829
	esac
5830
	;;
5831
       darwin*)
5832
         # PIC is the default on this platform
5833
         # Common symbols not allowed in MH_DYLIB files
5834
         case $cc_basename in
5835
           xlc*)
5836
           _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-qnocommon'
5837
           _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5838
           ;;
5839
         esac
5840
       ;;
5841
      dgux*)
5842
	case $cc_basename in
5843
	  ec++*)
5844
	    _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
5845
	    ;;
5846
	  ghcx*)
5847
	    # Green Hills C++ Compiler
5848
	    _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
5849
	    ;;
5850
	  *)
5851
	    ;;
5852
	esac
5853
	;;
5854
      freebsd* | kfreebsd*-gnu | dragonfly*)
5855
	# FreeBSD uses GNU C++
5856
	;;
5857
      hpux9* | hpux10* | hpux11*)
5858
	case $cc_basename in
5859
	  CC*)
5860
	    _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5861
	    _LT_AC_TAGVAR(lt_prog_compiler_static, $1)="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
5862
	    if test "$host_cpu" != ia64; then
5863
	      _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
5864
	    fi
5865
	    ;;
5866
	  aCC*)
5867
	    _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5868
	    _LT_AC_TAGVAR(lt_prog_compiler_static, $1)="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
5869
	    case "$host_cpu" in
5870
	    hppa*64*|ia64*)
5871
	      # +Z the default
5872
	      ;;
5873
	    *)
5874
	      _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
5875
	      ;;
5876
	    esac
5877
	    ;;
5878
	  *)
5879
	    ;;
5880
	esac
5881
	;;
5882
      irix5* | irix6* | nonstopux*)
5883
	case $cc_basename in
5884
	  CC*)
5885
	    _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5886
	    _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
5887
	    # CC pic flag -KPIC is the default.
5888
	    ;;
5889
	  *)
5890
	    ;;
5891
	esac
5892
	;;
5893
      linux*)
5894
	case $cc_basename in
5895
	  KCC*)
5896
	    # KAI C++ Compiler
5897
	    _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,'
5898
	    _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
5899
	    ;;
5900
	  icpc* | ecpc*)
5901
	    # Intel C++
5902
	    _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5903
	    _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
5904
	    _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static'
5905
	    ;;
5906
	  pgCC*)
5907
	    # Portland Group C++ compiler.
5908
	    _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5909
	    _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fpic'
5910
	    _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static'
5911
	    ;;
5912
	  cxx*)
5913
	    # Compaq C++
5914
	    # Make sure the PIC flag is empty.  It appears that all Alpha
5915
	    # Linux and Compaq Tru64 Unix objects are PIC.
5916
	    _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
5917
	    _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
5918
	    ;;
5919
	  *)
5920
	    ;;
5921
	esac
5922
	;;
5923
      lynxos*)
5924
	;;
5925
      m88k*)
5926
	;;
5927
      mvs*)
5928
	case $cc_basename in
5929
	  cxx*)
5930
	    _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-W c,exportall'
5931
	    ;;
5932
	  *)
5933
	    ;;
5934
	esac
5935
	;;
5936
      netbsd*)
5937
	;;
5938
      osf3* | osf4* | osf5*)
5939
	case $cc_basename in
5940
	  KCC*)
5941
	    _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,'
5942
	    ;;
5943
	  RCC*)
5944
	    # Rational C++ 2.4.1
5945
	    _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
5946
	    ;;
5947
	  cxx*)
5948
	    # Digital/Compaq C++
5949
	    _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5950
	    # Make sure the PIC flag is empty.  It appears that all Alpha
5951
	    # Linux and Compaq Tru64 Unix objects are PIC.
5952
	    _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
5953
	    _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
5954
	    ;;
5955
	  *)
5956
	    ;;
5957
	esac
5958
	;;
5959
      psos*)
5960
	;;
5961
      sco*)
5962
	case $cc_basename in
5963
	  CC*)
5964
	    _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
5965
	    ;;
5966
	  *)
5967
	    ;;
5968
	esac
5969
	;;
5970
      solaris*)
5971
	case $cc_basename in
5972
	  CC*)
5973
	    # Sun C++ 4.2, 5.x and Centerline C++
5974
	    _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
5975
	    _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5976
	    _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
5977
	    ;;
5978
	  gcx*)
5979
	    # Green Hills C++ Compiler
5980
	    _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-PIC'
5981
	    ;;
5982
	  *)
5983
	    ;;
5984
	esac
5985
	;;
5986
      sunos4*)
5987
	case $cc_basename in
5988
	  CC*)
5989
	    # Sun C++ 4.x
5990
	    _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
5991
	    _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5992
	    ;;
5993
	  lcc*)
5994
	    # Lucid
5995
	    _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
5996
	    ;;
5997
	  *)
5998
	    ;;
5999
	esac
6000
	;;
6001
      tandem*)
6002
	case $cc_basename in
6003
	  NCC*)
6004
	    # NonStop-UX NCC 3.20
6005
	    _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
6006
	    ;;
6007
	  *)
6008
	    ;;
6009
	esac
6010
	;;
6011
      unixware*)
6012
	;;
6013
      vxworks*)
6014
	;;
6015
      *)
6016
	_LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
6017
	;;
6018
    esac
6019
  fi
6020
],
6021
[
6022
  if test "$GCC" = yes; then
6023
    _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
6024
    _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static'
6025
6026
    case $host_os in
6027
      aix*)
6028
      # All AIX code is PIC.
6029
      if test "$host_cpu" = ia64; then
6030
	# AIX 5 now supports IA64 processor
6031
	_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
6032
      fi
6033
      ;;
6034
6035
    amigaos*)
6036
      # FIXME: we need at least 68020 code to build shared libraries, but
6037
      # adding the `-m68020' flag to GCC prevents building anything better,
6038
      # like `-m68040'.
6039
      _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4'
6040
      ;;
6041
6042
    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
6043
      # PIC is the default for these OSes.
6044
      ;;
6045
6046
    mingw* | pw32* | os2*)
6047
      # This hack is so that the source file can tell whether it is being
6048
      # built for inclusion in a dll (and should export symbols for example).
6049
      _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'
6050
      ;;
6051
6052
    darwin* | rhapsody*)
6053
      # PIC is the default on this platform
6054
      # Common symbols not allowed in MH_DYLIB files
6055
      _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common'
6056
      ;;
6057
6058
    msdosdjgpp*)
6059
      # Just because we use GCC doesn't mean we suddenly get shared libraries
6060
      # on systems that don't support them.
6061
      _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
6062
      enable_shared=no
6063
      ;;
6064
6065
    sysv4*MP*)
6066
      if test -d /usr/nec; then
6067
	_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic
6068
      fi
6069
      ;;
6070
6071
    hpux*)
6072
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6073
      # not for PA HP-UX.
6074
      case "$host_cpu" in
6075
      hppa*64*|ia64*)
6076
	# +Z the default
6077
	;;
6078
      *)
6079
	_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
6080
	;;
6081
      esac
6082
      ;;
6083
6084
    *)
6085
      _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
6086
      ;;
6087
    esac
6088
  else
6089
    # PORTME Check for flag to pass linker flags through the system compiler.
6090
    case $host_os in
6091
    aix*)
6092
      _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
6093
      if test "$host_cpu" = ia64; then
6094
	# AIX 5 now supports IA64 processor
6095
	_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
6096
      else
6097
	_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp'
6098
      fi
6099
      ;;
6100
      darwin*)
6101
        # PIC is the default on this platform
6102
        # Common symbols not allowed in MH_DYLIB files
6103
       case $cc_basename in
6104
         xlc*)
6105
         _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-qnocommon'
6106
         _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
6107
         ;;
6108
       esac
6109
       ;;
6110
6111
    mingw* | pw32* | os2*)
6112
      # This hack is so that the source file can tell whether it is being
6113
      # built for inclusion in a dll (and should export symbols for example).
6114
      _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'
6115
      ;;
6116
6117
    hpux9* | hpux10* | hpux11*)
6118
      _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
6119
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6120
      # not for PA HP-UX.
6121
      case "$host_cpu" in
6122
      hppa*64*|ia64*)
6123
	# +Z the default
6124
	;;
6125
      *)
6126
	_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
6127
	;;
6128
      esac
6129
      # Is there a better lt_prog_compiler_static that works with the bundled CC?
6130
      _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
6131
      ;;
6132
6133
    irix5* | irix6* | nonstopux*)
6134
      _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
6135
      # PIC (with -KPIC) is the default.
6136
      _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
6137
      ;;
6138
6139
    newsos6)
6140
      _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
6141
      _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
6142
      ;;
6143
6144
    linux*)
6145
      case $cc_basename in
6146
      icc* | ecc*)
6147
	_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
6148
	_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
6149
	_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static'
6150
        ;;
6151
      pgcc* | pgf77* | pgf90*)
6152
        # Portland Group compilers (*not* the Pentium gcc compiler,
6153
	# which looks to be a dead project)
6154
	_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
6155
	_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fpic'
6156
	_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static'
6157
        ;;
6158
      ccc*)
6159
        _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
6160
        # All Alpha code is PIC.
6161
        _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
6162
        ;;
6163
      esac
6164
      ;;
6165
6166
    osf3* | osf4* | osf5*)
6167
      _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
6168
      # All OSF/1 code is PIC.
6169
      _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
6170
      ;;
6171
6172
    sco3.2v5*)
6173
      _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-Kpic'
6174
      _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-dn'
6175
      ;;
6176
6177
    solaris*)
6178
      _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
6179
      _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
6180
      case $cc_basename in
6181
      f77* | f90* | f95*)
6182
	_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ';;
6183
      *)
6184
	_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,';;
6185
      esac
6186
      ;;
6187
6188
    sunos4*)
6189
      _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
6190
      _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-PIC'
6191
      _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
6192
      ;;
6193
6194
    sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
6195
      _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
6196
      _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
6197
      _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
6198
      ;;
6199
6200
    sysv4*MP*)
6201
      if test -d /usr/nec ;then
6202
	_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-Kconform_pic'
6203
	_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
6204
      fi
6205
      ;;
6206
6207
    unicos*)
6208
      _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
6209
      _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
6210
      ;;
6211
6212
    uts4*)
6213
      _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
6214
      _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
6215
      ;;
6216
6217
    *)
6218
      _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
6219
      ;;
6220
    esac
6221
  fi
6222
])
6223
AC_MSG_RESULT([$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)])
6224
6225
#
6226
# Check to make sure the PIC flag actually works.
6227
#
6228
if test -n "$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)"; then
6229
  AC_LIBTOOL_COMPILER_OPTION([if $compiler PIC flag $_LT_AC_TAGVAR(lt_prog_compiler_pic, $1) works],
6230
    _LT_AC_TAGVAR(lt_prog_compiler_pic_works, $1),
6231
    [$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)ifelse([$1],[],[ -DPIC],[ifelse([$1],[CXX],[ -DPIC],[])])], [],
6232
    [case $_LT_AC_TAGVAR(lt_prog_compiler_pic, $1) in
6233
     "" | " "*) ;;
6234
     *) _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=" $_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)" ;;
6235
     esac],
6236
    [_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
6237
     _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no])
6238
fi
6239
case "$host_os" in
6240
  # For platforms which do not support PIC, -DPIC is meaningless:
6241
  *djgpp*)
6242
    _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
6243
    ;;
6244
  *)
6245
    _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)="$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)ifelse([$1],[],[ -DPIC],[ifelse([$1],[CXX],[ -DPIC],[])])"
6246
    ;;
6247
esac
6248
])
6249
6250
6251
# AC_LIBTOOL_PROG_LD_SHLIBS([TAGNAME])
6252
# ------------------------------------
6253
# See if the linker supports building shared libraries.
6254
AC_DEFUN([AC_LIBTOOL_PROG_LD_SHLIBS],
6255
[AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries])
6256
ifelse([$1],[CXX],[
6257
  _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
6258
  case $host_os in
6259
  aix4* | aix5*)
6260
    # If we're using GNU nm, then we don't want the "-C" option.
6261
    # -C means demangle to AIX nm, but means don't demangle with GNU nm
6262
    if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
6263
      _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'
6264
    else
6265
      _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'
6266
    fi
6267
    ;;
6268
  pw32*)
6269
    _LT_AC_TAGVAR(export_symbols_cmds, $1)="$ltdll_cmds"
6270
  ;;
6271
  cygwin* | mingw*)
6272
    _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'
6273
  ;;
6274
  *)
6275
    _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
6276
  ;;
6277
  esac
6278
],[
6279
  runpath_var=
6280
  _LT_AC_TAGVAR(allow_undefined_flag, $1)=
6281
  _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=no
6282
  _LT_AC_TAGVAR(archive_cmds, $1)=
6283
  _LT_AC_TAGVAR(archive_expsym_cmds, $1)=
6284
  _LT_AC_TAGVAR(old_archive_From_new_cmds, $1)=
6285
  _LT_AC_TAGVAR(old_archive_from_expsyms_cmds, $1)=
6286
  _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)=
6287
  _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
6288
  _LT_AC_TAGVAR(thread_safe_flag_spec, $1)=
6289
  _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=
6290
  _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
6291
  _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
6292
  _LT_AC_TAGVAR(hardcode_direct, $1)=no
6293
  _LT_AC_TAGVAR(hardcode_minus_L, $1)=no
6294
  _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
6295
  _LT_AC_TAGVAR(link_all_deplibs, $1)=unknown
6296
  _LT_AC_TAGVAR(hardcode_automatic, $1)=no
6297
  _LT_AC_TAGVAR(module_cmds, $1)=
6298
  _LT_AC_TAGVAR(module_expsym_cmds, $1)=
6299
  _LT_AC_TAGVAR(always_export_symbols, $1)=no
6300
  _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
6301
  # include_expsyms should be a list of space-separated symbols to be *always*
6302
  # included in the symbol list
6303
  _LT_AC_TAGVAR(include_expsyms, $1)=
6304
  # exclude_expsyms can be an extended regexp of symbols to exclude
6305
  # it will be wrapped by ` (' and `)$', so one must not match beginning or
6306
  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
6307
  # as well as any symbol that contains `d'.
6308
  _LT_AC_TAGVAR(exclude_expsyms, $1)="_GLOBAL_OFFSET_TABLE_"
6309
  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
6310
  # platforms (ab)use it in PIC code, but their linkers get confused if
6311
  # the symbol is explicitly referenced.  Since portable code cannot
6312
  # rely on this symbol name, it's probably fine to never include it in
6313
  # preloaded symbol tables.
6314
  extract_expsyms_cmds=
6315
  # Just being paranoid about ensuring that cc_basename is set.
6316
  _LT_CC_BASENAME([$compiler])
6317
  case $host_os in
6318
  cygwin* | mingw* | pw32*)
6319
    # FIXME: the MSVC++ port hasn't been tested in a loooong time
6320
    # When not using gcc, we currently assume that we are using
6321
    # Microsoft Visual C++.
6322
    if test "$GCC" != yes; then
6323
      with_gnu_ld=no
6324
    fi
6325
    ;;
6326
  openbsd*)
6327
    with_gnu_ld=no
6328
    ;;
6329
  esac
6330
6331
  _LT_AC_TAGVAR(ld_shlibs, $1)=yes
6332
  if test "$with_gnu_ld" = yes; then
6333
    # If archive_cmds runs LD, not CC, wlarc should be empty
6334
    wlarc='${wl}'
6335
    
6336
    # Set some defaults for GNU ld with shared library support. These
6337
    # are reset later if shared libraries are not supported. Putting them
6338
    # here allows them to be overridden if necessary.
6339
    runpath_var=LD_RUN_PATH
6340
    _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir'
6341
    _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
6342
    # ancient GNU ld didn't support --whole-archive et. al.
6343
    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
6344
	_LT_AC_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
6345
      else
6346
  	_LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
6347
    fi
6348
    supports_anon_versioning=no
6349
    case `$LD -v 2>/dev/null` in
6350
      *\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.10.*) ;; # catch versions < 2.11
6351
      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
6352
      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
6353
      *\ 2.11.*) ;; # other 2.11 versions
6354
      *) supports_anon_versioning=yes ;;
6355
    esac
6356
    
6357
    # See if GNU ld supports shared libraries.
6358
    case $host_os in
6359
    aix3* | aix4* | aix5*)
6360
      # On AIX/PPC, the GNU linker is very broken
6361
      if test "$host_cpu" != ia64; then
6362
	_LT_AC_TAGVAR(ld_shlibs, $1)=no
6363
	cat <<EOF 1>&2
6364
6365
*** Warning: the GNU linker, at least up to release 2.9.1, is reported
6366
*** to be unable to reliably create shared libraries on AIX.
6367
*** Therefore, libtool is disabling shared libraries support.  If you
6368
*** really care for shared libraries, you may want to modify your PATH
6369
*** so that a non-GNU linker is found, and then restart.
6370
6371
EOF
6372
      fi
6373
      ;;
6374
6375
    amigaos*)
6376
      _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)'
6377
      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
6378
      _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
6379
6380
      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
6381
      # that the semantics of dynamic libraries on AmigaOS, at least up
6382
      # to version 4, is to share data among multiple programs linked
6383
      # with the same dynamic library.  Since this doesn't match the
6384
      # behavior of shared libraries on other platforms, we can't use
6385
      # them.
6386
      _LT_AC_TAGVAR(ld_shlibs, $1)=no
6387
      ;;
6388
6389
    beos*)
6390
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6391
	_LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
6392
	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
6393
	# support --undefined.  This deserves some investigation.  FIXME
6394
	_LT_AC_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6395
      else
6396
	_LT_AC_TAGVAR(ld_shlibs, $1)=no
6397
      fi
6398
      ;;
6399
6400
    cygwin* | mingw* | pw32*)
6401
      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless,
6402
      # as there is no search path for DLLs.
6403
      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
6404
      _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
6405
      _LT_AC_TAGVAR(always_export_symbols, $1)=no
6406
      _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
6407
      _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'
6408
6409
      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
6410
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
6411
	# If the export-symbols file already is a .def file (1st line
6412
	# is EXPORTS), use it as is; otherwise, prepend...
6413
	_LT_AC_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
6414
	  cp $export_symbols $output_objdir/$soname.def;
6415
	else
6416
	  echo EXPORTS > $output_objdir/$soname.def;
6417
	  cat $export_symbols >> $output_objdir/$soname.def;
6418
	fi~
6419
	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
6420
      else
6421
	_LT_AC_TAGVAR(ld_shlibs, $1)=no
6422
      fi
6423
      ;;
6424
6425
    linux*)
6426
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6427
	tmp_addflag=
6428
	case $cc_basename,$host_cpu in
6429
	pgcc*)				# Portland Group C compiler
6430
	  _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive,`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
6431
	  tmp_addflag=' $pic_flag'
6432
	  ;;
6433
	pgf77* | pgf90* )			# Portland Group f77 and f90 compilers
6434
	  _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive,`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
6435
	  tmp_addflag=' $pic_flag -Mnomain' ;;
6436
	ecc*,ia64* | icc*,ia64*)		# Intel C compiler on ia64
6437
	  tmp_addflag=' -i_dynamic' ;;
6438
	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
6439
	  tmp_addflag=' -i_dynamic -nofor_main' ;;
6440
	ifc* | ifort*)			# Intel Fortran compiler
6441
	  tmp_addflag=' -nofor_main' ;;
6442
	esac
6443
	_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6444
6445
	if test $supports_anon_versioning = yes; then
6446
	  _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $output_objdir/$libname.ver~
6447
  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
6448
  $echo "local: *; };" >> $output_objdir/$libname.ver~
6449
	  $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
6450
	fi
6451
      else
6452
	_LT_AC_TAGVAR(ld_shlibs, $1)=no
6453
      fi
6454
      ;;
6455
6456
    netbsd*)
6457
      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6458
	_LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
6459
	wlarc=
6460
      else
6461
	_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6462
	_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'
6463
      fi
6464
      ;;
6465
6466
    solaris* | sysv5*)
6467
      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
6468
	_LT_AC_TAGVAR(ld_shlibs, $1)=no
6469
	cat <<EOF 1>&2
6470
6471
*** Warning: The releases 2.8.* of the GNU linker cannot reliably
6472
*** create shared libraries on Solaris systems.  Therefore, libtool
6473
*** is disabling shared libraries support.  We urge you to upgrade GNU
6474
*** binutils to release 2.9.1 or newer.  Another option is to modify
6475
*** your PATH or compiler configuration so that the native linker is
6476
*** used, and then restart.
6477
6478
EOF
6479
      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6480
	_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6481
	_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'
6482
      else
6483
	_LT_AC_TAGVAR(ld_shlibs, $1)=no
6484
      fi
6485
      ;;
6486
6487
    sunos4*)
6488
      _LT_AC_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6489
      wlarc=
6490
      _LT_AC_TAGVAR(hardcode_direct, $1)=yes
6491
      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
6492
      ;;
6493
6494
    *)
6495
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6496
	_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6497
	_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'
6498
      else
6499
	_LT_AC_TAGVAR(ld_shlibs, $1)=no
6500
      fi
6501
      ;;
6502
    esac
6503
6504
    if test "$_LT_AC_TAGVAR(ld_shlibs, $1)" = no; then
6505
      runpath_var=
6506
      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=
6507
      _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)=
6508
      _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
6509
    fi
6510
  else
6511
    # PORTME fill in a description of your system's linker (not GNU ld)
6512
    case $host_os in
6513
    aix3*)
6514
      _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
6515
      _LT_AC_TAGVAR(always_export_symbols, $1)=yes
6516
      _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'
6517
      # Note: this linker hardcodes the directories in LIBPATH if there
6518
      # are no directories specified by -L.
6519
      _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
6520
      if test "$GCC" = yes && test -z "$link_static_flag"; then
6521
	# Neither direct hardcoding nor static linking is supported with a
6522
	# broken collect2.
6523
	_LT_AC_TAGVAR(hardcode_direct, $1)=unsupported
6524
      fi
6525
      ;;
6526
6527
    aix4* | aix5*)
6528
      if test "$host_cpu" = ia64; then
6529
	# On IA64, the linker does run time linking by default, so we don't
6530
	# have to do anything special.
6531
	aix_use_runtimelinking=no
6532
	exp_sym_flag='-Bexport'
6533
	no_entry_flag=""
6534
      else
6535
	# If we're using GNU nm, then we don't want the "-C" option.
6536
	# -C means demangle to AIX nm, but means don't demangle with GNU nm
6537
	if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
6538
	  _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'
6539
	else
6540
	  _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'
6541
	fi
6542
	aix_use_runtimelinking=no
6543
6544
	# Test if we are trying to use run time linking or normal
6545
	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
6546
	# need to do runtime linking.
6547
	case $host_os in aix4.[[23]]|aix4.[[23]].*|aix5*)
6548
	  for ld_flag in $LDFLAGS; do
6549
  	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
6550
  	    aix_use_runtimelinking=yes
6551
  	    break
6552
  	  fi
6553
	  done
6554
	esac
6555
6556
	exp_sym_flag='-bexport'
6557
	no_entry_flag='-bnoentry'
6558
      fi
6559
6560
      # When large executables or shared objects are built, AIX ld can
6561
      # have problems creating the table of contents.  If linking a library
6562
      # or program results in "error TOC overflow" add -mminimal-toc to
6563
      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
6564
      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
6565
6566
      _LT_AC_TAGVAR(archive_cmds, $1)=''
6567
      _LT_AC_TAGVAR(hardcode_direct, $1)=yes
6568
      _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=':'
6569
      _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
6570
6571
      if test "$GCC" = yes; then
6572
	case $host_os in aix4.[[012]]|aix4.[[012]].*)
6573
	# We only want to do this on AIX 4.2 and lower, the check
6574
	# below for broken collect2 doesn't work under 4.3+
6575
	  collect2name=`${CC} -print-prog-name=collect2`
6576
	  if test -f "$collect2name" && \
6577
  	   strings "$collect2name" | grep resolve_lib_name >/dev/null
6578
	  then
6579
  	  # We have reworked collect2
6580
  	  _LT_AC_TAGVAR(hardcode_direct, $1)=yes
6581
	  else
6582
  	  # We have old collect2
6583
  	  _LT_AC_TAGVAR(hardcode_direct, $1)=unsupported
6584
  	  # It fails to find uninstalled libraries when the uninstalled
6585
  	  # path is not listed in the libpath.  Setting hardcode_minus_L
6586
  	  # to unsupported forces relinking
6587
  	  _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
6588
  	  _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
6589
  	  _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
6590
	  fi
6591
	esac
6592
	shared_flag='-shared'
6593
	if test "$aix_use_runtimelinking" = yes; then
6594
	  shared_flag="$shared_flag "'${wl}-G'
6595
	fi
6596
      else
6597
	# not using gcc
6598
	if test "$host_cpu" = ia64; then
6599
  	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
6600
  	# chokes on -Wl,-G. The following line is correct:
6601
	  shared_flag='-G'
6602
	else
6603
  	if test "$aix_use_runtimelinking" = yes; then
6604
	    shared_flag='${wl}-G'
6605
	  else
6606
	    shared_flag='${wl}-bM:SRE'
6607
  	fi
6608
	fi
6609
      fi
6610
6611
      # It seems that -bexpall does not export symbols beginning with
6612
      # underscore (_), so it is better to generate a list of symbols to export.
6613
      _LT_AC_TAGVAR(always_export_symbols, $1)=yes
6614
      if test "$aix_use_runtimelinking" = yes; then
6615
	# Warning - without using the other runtime loading flags (-brtl),
6616
	# -berok will link without error, but may produce a broken library.
6617
	_LT_AC_TAGVAR(allow_undefined_flag, $1)='-berok'
6618
       # Determine the default libpath from the value encoded in an empty executable.
6619
       _LT_AC_SYS_LIBPATH_AIX
6620
       _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
6621
	_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"
6622
       else
6623
	if test "$host_cpu" = ia64; then
6624
	  _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib'
6625
	  _LT_AC_TAGVAR(allow_undefined_flag, $1)="-z nodefs"
6626
	  _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"
6627
	else
6628
	 # Determine the default libpath from the value encoded in an empty executable.
6629
	 _LT_AC_SYS_LIBPATH_AIX
6630
	 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
6631
	  # Warning - without using the other run time loading flags,
6632
	  # -berok will link without error, but may produce a broken library.
6633
	  _LT_AC_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok'
6634
	  _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok'
6635
	  # -bexpall does not export symbols beginning with underscore (_)
6636
	  _LT_AC_TAGVAR(always_export_symbols, $1)=yes
6637
	  # Exported symbols can be pulled into shared objects from archives
6638
	  _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=' '
6639
	  _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes
6640
	  # This is similar to how AIX traditionally builds it's shared libraries.
6641
	  _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'
6642
	fi
6643
      fi
6644
      ;;
6645
6646
    amigaos*)
6647
      _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)'
6648
      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
6649
      _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
6650
      # see comment about different semantics on the GNU ld section
6651
      _LT_AC_TAGVAR(ld_shlibs, $1)=no
6652
      ;;
6653
6654
    bsdi[[45]]*)
6655
      _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)=-rdynamic
6656
      ;;
6657
6658
    cygwin* | mingw* | pw32*)
6659
      # When not using gcc, we currently assume that we are using
6660
      # Microsoft Visual C++.
6661
      # hardcode_libdir_flag_spec is actually meaningless, as there is
6662
      # no search path for DLLs.
6663
      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=' '
6664
      _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
6665
      # Tell ltmain to make .lib files, not .a files.
6666
      libext=lib
6667
      # Tell ltmain to make .dll files, not .so files.
6668
      shrext_cmds=".dll"
6669
      # FIXME: Setting linknames here is a bad hack.
6670
      _LT_AC_TAGVAR(archive_cmds, $1)='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
6671
      # The linker will automatically build a .lib file if we build a DLL.
6672
      _LT_AC_TAGVAR(old_archive_From_new_cmds, $1)='true'
6673
      # FIXME: Should let the user specify the lib program.
6674
      _LT_AC_TAGVAR(old_archive_cmds, $1)='lib /OUT:$oldlib$oldobjs$old_deplibs'
6675
      _LT_AC_TAGVAR(fix_srcfile_path, $1)='`cygpath -w "$srcfile"`'
6676
      _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
6677
      ;;
6678
6679
    darwin* | rhapsody*)
6680
      case "$host_os" in
6681
        rhapsody* | darwin1.[[012]])
6682
         _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-undefined ${wl}suppress'
6683
         ;;
6684
       *) # Darwin 1.3 on
6685
         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
6686
           _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
6687
         else
6688
           case ${MACOSX_DEPLOYMENT_TARGET} in
6689
             10.[[012]])
6690
               _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
6691
               ;;
6692
             10.*)
6693
               _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-undefined ${wl}dynamic_lookup'
6694
               ;;
6695
           esac
6696
         fi
6697
         ;;
6698
      esac
6699
      _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
6700
      _LT_AC_TAGVAR(hardcode_direct, $1)=no
6701
      _LT_AC_TAGVAR(hardcode_automatic, $1)=yes
6702
      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
6703
      _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=''
6704
      _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
6705
    if test "$GCC" = yes ; then
6706
    	output_verbose_link_cmd='echo'
6707
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
6708
      _LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
6709
      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
6710
      _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}'
6711
      _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}'
6712
    else
6713
      case $cc_basename in
6714
        xlc*)
6715
         output_verbose_link_cmd='echo'
6716
         _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'
6717
         _LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
6718
          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
6719
         _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}'
6720
          _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}'
6721
          ;;
6722
       *)
6723
         _LT_AC_TAGVAR(ld_shlibs, $1)=no
6724
          ;;
6725
      esac
6726
    fi
6727
      ;;
6728
6729
    dgux*)
6730
      _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6731
      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
6732
      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
6733
      ;;
6734
6735
    freebsd1*)
6736
      _LT_AC_TAGVAR(ld_shlibs, $1)=no
6737
      ;;
6738
6739
    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
6740
    # support.  Future versions do this automatically, but an explicit c++rt0.o
6741
    # does not break anything, and helps significantly (at the cost of a little
6742
    # extra space).
6743
    freebsd2.2*)
6744
      _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
6745
      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
6746
      _LT_AC_TAGVAR(hardcode_direct, $1)=yes
6747
      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
6748
      ;;
6749
6750
    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
6751
    freebsd2*)
6752
      _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6753
      _LT_AC_TAGVAR(hardcode_direct, $1)=yes
6754
      _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
6755
      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
6756
      ;;
6757
6758
    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
6759
    freebsd* | kfreebsd*-gnu | dragonfly*)
6760
      _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
6761
      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
6762
      _LT_AC_TAGVAR(hardcode_direct, $1)=yes
6763
      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
6764
      ;;
6765
6766
    hpux9*)
6767
      if test "$GCC" = yes; then
6768
	_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'
6769
      else
6770
	_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'
6771
      fi
6772
      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
6773
      _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
6774
      _LT_AC_TAGVAR(hardcode_direct, $1)=yes
6775
6776
      # hardcode_minus_L: Not really in the search PATH,
6777
      # but as the default location of the library.
6778
      _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
6779
      _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
6780
      ;;
6781
6782
    hpux10* | hpux11*)
6783
      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
6784
	case "$host_cpu" in
6785
	hppa*64*|ia64*)
6786
	  _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
6787
	  ;;
6788
	*)
6789
	  _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
6790
	  ;;
6791
	esac
6792
      else
6793
	case "$host_cpu" in
6794
	hppa*64*|ia64*)
6795
	  _LT_AC_TAGVAR(archive_cmds, $1)='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
6796
	  ;;
6797
	*)
6798
	  _LT_AC_TAGVAR(archive_cmds, $1)='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
6799
	  ;;
6800
	esac
6801
      fi
6802
      if test "$with_gnu_ld" = no; then
6803
	case "$host_cpu" in
6804
	hppa*64*)
6805
	  _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
6806
	  _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='+b $libdir'
6807
	  _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
6808
	  _LT_AC_TAGVAR(hardcode_direct, $1)=no
6809
	  _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
6810
	  ;;
6811
	ia64*)
6812
	  _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
6813
	  _LT_AC_TAGVAR(hardcode_direct, $1)=no
6814
	  _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
6815
6816
	  # hardcode_minus_L: Not really in the search PATH,
6817
	  # but as the default location of the library.
6818
	  _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
6819
	  ;;
6820
	*)
6821
	  _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
6822
	  _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
6823
	  _LT_AC_TAGVAR(hardcode_direct, $1)=yes
6824
	  _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
6825
6826
	  # hardcode_minus_L: Not really in the search PATH,
6827
	  # but as the default location of the library.
6828
	  _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
6829
	  ;;
6830
	esac
6831
      fi
6832
      ;;
6833
6834
    irix5* | irix6* | nonstopux*)
6835
      if test "$GCC" = yes; then
6836
	_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'
6837
      else
6838
	_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'
6839
	_LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='-rpath $libdir'
6840
      fi
6841
      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
6842
      _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
6843
      _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
6844
      ;;
6845
6846
    netbsd*)
6847
      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6848
	_LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
6849
      else
6850
	_LT_AC_TAGVAR(archive_cmds, $1)='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
6851
      fi
6852
      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
6853
      _LT_AC_TAGVAR(hardcode_direct, $1)=yes
6854
      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
6855
      ;;
6856
6857
    newsos6)
6858
      _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6859
      _LT_AC_TAGVAR(hardcode_direct, $1)=yes
6860
      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
6861
      _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
6862
      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
6863
      ;;
6864
6865
    openbsd*)
6866
      _LT_AC_TAGVAR(hardcode_direct, $1)=yes
6867
      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
6868
      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6869
	_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
6870
	_LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
6871
	_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
6872
	_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
6873
      else
6874
       case $host_os in
6875
	 openbsd[[01]].* | openbsd2.[[0-7]] | openbsd2.[[0-7]].*)
6876
	   _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6877
	   _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
6878
	   ;;
6879
	 *)
6880
	   _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
6881
	   _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
6882
	   ;;
6883
       esac
6884
      fi
6885
      ;;
6886
6887
    os2*)
6888
      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
6889
      _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
6890
      _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
6891
      _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'
6892
      _LT_AC_TAGVAR(old_archive_From_new_cmds, $1)='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
6893
      ;;
6894
6895
    osf3*)
6896
      if test "$GCC" = yes; then
6897
	_LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
6898
	_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'
6899
      else
6900
	_LT_AC_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
6901
	_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'
6902
      fi
6903
      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
6904
      _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
6905
      ;;
6906
6907
    osf4* | osf5*)	# as osf3* with the addition of -msym flag
6908
      if test "$GCC" = yes; then
6909
	_LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
6910
	_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'
6911
	_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
6912
      else
6913
	_LT_AC_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
6914
	_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'
6915
	_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~
6916
	$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'
6917
6918
	# Both c and cxx compiler support -rpath directly
6919
	_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
6920
      fi
6921
      _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
6922
      ;;
6923
6924
    sco3.2v5*)
6925
      _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6926
      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
6927
      _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport'
6928
      runpath_var=LD_RUN_PATH
6929
      hardcode_runpath_var=yes
6930
      ;;
6931
6932
    solaris*)
6933
      _LT_AC_TAGVAR(no_undefined_flag, $1)=' -z text'
6934
      if test "$GCC" = yes; then
6935
	wlarc='${wl}'
6936
	_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
6937
	_LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
6938
	  $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
6939
      else
6940
	wlarc=''
6941
	_LT_AC_TAGVAR(archive_cmds, $1)='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
6942
	_LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
6943
  	$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
6944
      fi
6945
      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
6946
      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
6947
      case $host_os in
6948
      solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
6949
      *)
6950
 	# The compiler driver will combine linker options so we
6951
 	# cannot just pass the convience library names through
6952
 	# without $wl, iff we do not link with $LD.
6953
 	# Luckily, gcc supports the same syntax we need for Sun Studio.
6954
 	# Supported since Solaris 2.6 (maybe 2.5.1?)
6955
 	case $wlarc in
6956
 	'')
6957
 	  _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract' ;;
6958
 	*)
6959
 	  _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' ;;
6960
 	esac ;;
6961
      esac
6962
      _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
6963
      ;;
6964
6965
    sunos4*)
6966
      if test "x$host_vendor" = xsequent; then
6967
	# Use $CC to link under sequent, because it throws in some extra .o
6968
	# files that make .init and .fini sections work.
6969
	_LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
6970
      else
6971
	_LT_AC_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
6972
      fi
6973
      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
6974
      _LT_AC_TAGVAR(hardcode_direct, $1)=yes
6975
      _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
6976
      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
6977
      ;;
6978
6979
    sysv4)
6980
      case $host_vendor in
6981
	sni)
6982
	  _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6983
	  _LT_AC_TAGVAR(hardcode_direct, $1)=yes # is this really true???
6984
	;;
6985
	siemens)
6986
	  ## LD is ld it makes a PLAMLIB
6987
	  ## CC just makes a GrossModule.
6988
	  _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -o $lib $libobjs $deplibs $linker_flags'
6989
	  _LT_AC_TAGVAR(reload_cmds, $1)='$CC -r -o $output$reload_objs'
6990
	  _LT_AC_TAGVAR(hardcode_direct, $1)=no
6991
        ;;
6992
	motorola)
6993
	  _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6994
	  _LT_AC_TAGVAR(hardcode_direct, $1)=no #Motorola manual says yes, but my tests say they lie
6995
	;;
6996
      esac
6997
      runpath_var='LD_RUN_PATH'
6998
      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
6999
      ;;
7000
7001
    sysv4.3*)
7002
      _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7003
      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
7004
      _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='-Bexport'
7005
      ;;
7006
7007
    sysv4*MP*)
7008
      if test -d /usr/nec; then
7009
	_LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7010
	_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
7011
	runpath_var=LD_RUN_PATH
7012
	hardcode_runpath_var=yes
7013
	_LT_AC_TAGVAR(ld_shlibs, $1)=yes
7014
      fi
7015
      ;;
7016
7017
    sysv4.2uw2*)
7018
      _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -o $lib $libobjs $deplibs $linker_flags'
7019
      _LT_AC_TAGVAR(hardcode_direct, $1)=yes
7020
      _LT_AC_TAGVAR(hardcode_minus_L, $1)=no
7021
      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
7022
      hardcode_runpath_var=yes
7023
      runpath_var=LD_RUN_PATH
7024
      ;;
7025
7026
   sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[[78]]* | unixware7*)
7027
      _LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z ${wl}text'
7028
      if test "$GCC" = yes; then
7029
	_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7030
      else
7031
	_LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7032
      fi
7033
      runpath_var='LD_RUN_PATH'
7034
      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
7035
      ;;
7036
7037
    sysv5*)
7038
      _LT_AC_TAGVAR(no_undefined_flag, $1)=' -z text'
7039
      # $CC -shared without GNU ld will not create a library from C++
7040
      # object files and a static libstdc++, better avoid it by now
7041
      _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7042
      _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7043
  		$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
7044
      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=
7045
      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
7046
      runpath_var='LD_RUN_PATH'
7047
      ;;
7048
7049
    uts4*)
7050
      _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7051
      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
7052
      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
7053
      ;;
7054
7055
    *)
7056
      _LT_AC_TAGVAR(ld_shlibs, $1)=no
7057
      ;;
7058
    esac
7059
  fi
7060
])
7061
AC_MSG_RESULT([$_LT_AC_TAGVAR(ld_shlibs, $1)])
7062
test "$_LT_AC_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no
7063
7064
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
7065
if test "$GCC" = yes; then
7066
  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
7067
fi
7068
7069
#
7070
# Do we need to explicitly link libc?
7071
#
7072
case "x$_LT_AC_TAGVAR(archive_cmds_need_lc, $1)" in
7073
x|xyes)
7074
  # Assume -lc should be added
7075
  _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes
7076
7077
  if test "$enable_shared" = yes && test "$GCC" = yes; then
7078
    case $_LT_AC_TAGVAR(archive_cmds, $1) in
7079
    *'~'*)
7080
      # FIXME: we may have to deal with multi-command sequences.
7081
      ;;
7082
    '$CC '*)
7083
      # Test whether the compiler implicitly links with -lc since on some
7084
      # systems, -lgcc has to come before -lc. If gcc already passes -lc
7085
      # to ld, don't add -lc before -lgcc.
7086
      AC_MSG_CHECKING([whether -lc should be explicitly linked in])
7087
      $rm conftest*
7088
      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7089
7090
      if AC_TRY_EVAL(ac_compile) 2>conftest.err; then
7091
        soname=conftest
7092
        lib=conftest
7093
        libobjs=conftest.$ac_objext
7094
        deplibs=
7095
        wl=$_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)
7096
        compiler_flags=-v
7097
        linker_flags=-v
7098
        verstring=
7099
        output_objdir=.
7100
        libname=conftest
7101
        lt_save_allow_undefined_flag=$_LT_AC_TAGVAR(allow_undefined_flag, $1)
7102
        _LT_AC_TAGVAR(allow_undefined_flag, $1)=
7103
        if AC_TRY_EVAL(_LT_AC_TAGVAR(archive_cmds, $1) 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1)
7104
        then
7105
	  _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
7106
        else
7107
	  _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes
7108
        fi
7109
        _LT_AC_TAGVAR(allow_undefined_flag, $1)=$lt_save_allow_undefined_flag
7110
      else
7111
        cat conftest.err 1>&5
7112
      fi
7113
      $rm conftest*
7114
      AC_MSG_RESULT([$_LT_AC_TAGVAR(archive_cmds_need_lc, $1)])
7115
      ;;
7116
    esac
7117
  fi
7118
  ;;
7119
esac
7120
])# AC_LIBTOOL_PROG_LD_SHLIBS
7121
7122
7123
# _LT_AC_FILE_LTDLL_C
7124
# -------------------
7125
# Be careful that the start marker always follows a newline.
7126
AC_DEFUN([_LT_AC_FILE_LTDLL_C], [
7127
# /* ltdll.c starts here */
7128
# #define WIN32_LEAN_AND_MEAN
7129
# #include <windows.h>
7130
# #undef WIN32_LEAN_AND_MEAN
7131
# #include <stdio.h>
7132
#
7133
# #ifndef __CYGWIN__
7134
# #  ifdef __CYGWIN32__
7135
# #    define __CYGWIN__ __CYGWIN32__
7136
# #  endif
7137
# #endif
7138
#
7139
# #ifdef __cplusplus
7140
# extern "C" {
7141
# #endif
7142
# BOOL APIENTRY DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved);
7143
# #ifdef __cplusplus
7144
# }
7145
# #endif
7146
#
7147
# #ifdef __CYGWIN__
7148
# #include <cygwin/cygwin_dll.h>
7149
# DECLARE_CYGWIN_DLL( DllMain );
7150
# #endif
7151
# HINSTANCE __hDllInstance_base;
7152
#
7153
# BOOL APIENTRY
7154
# DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved)
7155
# {
7156
#   __hDllInstance_base = hInst;
7157
#   return TRUE;
7158
# }
7159
# /* ltdll.c ends here */
7160
])# _LT_AC_FILE_LTDLL_C
7161
7162
7163
# _LT_AC_TAGVAR(VARNAME, [TAGNAME])
7164
# ---------------------------------
7165
AC_DEFUN([_LT_AC_TAGVAR], [ifelse([$2], [], [$1], [$1_$2])])
7166
7167
7168
# old names
7169
AC_DEFUN([AM_PROG_LIBTOOL],   [AC_PROG_LIBTOOL])
7170
AC_DEFUN([AM_ENABLE_SHARED],  [AC_ENABLE_SHARED($@)])
7171
AC_DEFUN([AM_ENABLE_STATIC],  [AC_ENABLE_STATIC($@)])
7172
AC_DEFUN([AM_DISABLE_SHARED], [AC_DISABLE_SHARED($@)])
7173
AC_DEFUN([AM_DISABLE_STATIC], [AC_DISABLE_STATIC($@)])
7174
AC_DEFUN([AM_PROG_LD],        [AC_PROG_LD])
7175
AC_DEFUN([AM_PROG_NM],        [AC_PROG_NM])
7176
7177
# This is just to silence aclocal about the macro not being used
7178
ifelse([AC_DISABLE_FAST_INSTALL])
7179
7180
AC_DEFUN([LT_AC_PROG_GCJ],
7181
[AC_CHECK_TOOL(GCJ, gcj, no)
7182
  test "x${GCJFLAGS+set}" = xset || GCJFLAGS="-g -O2"
7183
  AC_SUBST(GCJFLAGS)
7184
])
7185
7186
AC_DEFUN([LT_AC_PROG_RC],
7187
[AC_CHECK_TOOL(RC, windres, no)
7188
])
7189
7190
# NOTE: This macro has been submitted for inclusion into   #
7191
#  GNU Autoconf as AC_PROG_SED.  When it is available in   #
7192
#  a released version of Autoconf we should remove this    #
7193
#  macro and use it instead.                               #
7194
# LT_AC_PROG_SED
7195
# --------------
7196
# Check for a fully-functional sed program, that truncates
7197
# as few characters as possible.  Prefer GNU sed if found.
7198
AC_DEFUN([LT_AC_PROG_SED],
7199
[AC_MSG_CHECKING([for a sed that does not truncate output])
7200
AC_CACHE_VAL(lt_cv_path_SED,
7201
[# Loop through the user's path and test for sed and gsed.
7202
# Then use that list of sed's as ones to test for truncation.
7203
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7204
for as_dir in $PATH
7205
do
7206
  IFS=$as_save_IFS
7207
  test -z "$as_dir" && as_dir=.
7208
  for lt_ac_prog in sed gsed; do
7209
    for ac_exec_ext in '' $ac_executable_extensions; do
7210
      if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
7211
        lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
7212
      fi
7213
    done
7214
  done
7215
done
7216
lt_ac_max=0
7217
lt_ac_count=0
7218
# Add /usr/xpg4/bin/sed as it is typically found on Solaris
7219
# along with /bin/sed that truncates output.
7220
for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
7221
  test ! -f $lt_ac_sed && continue
7222
  cat /dev/null > conftest.in
7223
  lt_ac_count=0
7224
  echo $ECHO_N "0123456789$ECHO_C" >conftest.in
7225
  # Check for GNU sed and select it if it is found.
7226
  if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
7227
    lt_cv_path_SED=$lt_ac_sed
7228
    break
7229
  fi
7230
  while true; do
7231
    cat conftest.in conftest.in >conftest.tmp
7232
    mv conftest.tmp conftest.in
7233
    cp conftest.in conftest.nl
7234
    echo >>conftest.nl
7235
    $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
7236
    cmp -s conftest.out conftest.nl || break
7237
    # 10000 chars as input seems more than enough
7238
    test $lt_ac_count -gt 10 && break
7239
    lt_ac_count=`expr $lt_ac_count + 1`
7240
    if test $lt_ac_count -gt $lt_ac_max; then
7241
      lt_ac_max=$lt_ac_count
7242
      lt_cv_path_SED=$lt_ac_sed
7243
    fi
7244
  done
7245
done
7246
])
7247
SED=$lt_cv_path_SED
7248
AC_MSG_RESULT([$SED])
7249
])
7250
7251
7252
dnl PKG_CHECK_MODULES(GSTUFF, gtk+-2.0 >= 1.3 glib = 1.3.4, action-if, action-not)
7253
dnl defines GSTUFF_LIBS, GSTUFF_CFLAGS, see pkg-config man page
7254
dnl also defines GSTUFF_PKG_ERRORS on error
7255
AC_DEFUN(PKG_CHECK_MODULES, [
7256
  succeeded=no
7257
7258
  if test -z "$PKG_CONFIG"; then
7259
    AC_PATH_PROG(PKG_CONFIG, pkg-config, no)
7260
  fi
7261
7262
  if test "$PKG_CONFIG" = "no" ; then
7263
     echo "*** The pkg-config script could not be found. Make sure it is"
7264
     echo "*** in your path, or set the PKG_CONFIG environment variable"
7265
     echo "*** to the full path to pkg-config."
7266
     echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
7267
  else
7268
     PKG_CONFIG_MIN_VERSION=0.9.0
7269
     if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
7270
        AC_MSG_CHECKING(for $2)
7271
7272
        if $PKG_CONFIG --exists "$2" ; then
7273
            AC_MSG_RESULT(yes)
7274
            succeeded=yes
7275
7276
            AC_MSG_CHECKING($1_CFLAGS)
7277
            $1_CFLAGS=`$PKG_CONFIG --cflags "$2"`
7278
            AC_MSG_RESULT($$1_CFLAGS)
7279
7280
            AC_MSG_CHECKING($1_LIBS)
7281
            $1_LIBS=`$PKG_CONFIG --libs "$2"`
7282
            AC_MSG_RESULT($$1_LIBS)
7283
        else
7284
            $1_CFLAGS=""
7285
            $1_LIBS=""
7286
            ## If we have a custom action on failure, don't print errors, but 
7287
            ## do set a variable so people can do so.
7288
            $1_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$2"`
7289
            ifelse([$4], ,echo $$1_PKG_ERRORS,)
7290
        fi
7291
7292
        AC_SUBST($1_CFLAGS)
7293
        AC_SUBST($1_LIBS)
7294
     else
7295
        echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
7296
        echo "*** See http://www.freedesktop.org/software/pkgconfig"
7297
     fi
7298
  fi
7299
7300
  if test $succeeded = yes; then
7301
     ifelse([$3], , :, [$3])
7302
  else
7303
     ifelse([$4], , AC_MSG_ERROR([Library requirements ($2) not met; consider adjusting the PKG_CONFIG_PATH environment variable if your libraries are in a nonstandard prefix so pkg-config can find them.]), [$4])
7304
  fi
7305
])
7306
7307
7308
(-)darimasen-0.0.8/config.guess (-43 / +85 lines)
Lines 3-9 Link Here
3
#   Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999,
3
#   Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999,
4
#   2000, 2001, 2002, 2003 Free Software Foundation, Inc.
4
#   2000, 2001, 2002, 2003 Free Software Foundation, Inc.
5
5
6
timestamp='2003-07-02'
6
timestamp='2004-03-12'
7
7
8
# This file is free software; you can redistribute it and/or modify it
8
# This file is free software; you can redistribute it and/or modify it
9
# under the terms of the GNU General Public License as published by
9
# under the terms of the GNU General Public License as published by
Lines 136-151 Link Here
136
UNAME_SYSTEM=`(uname -s) 2>/dev/null`  || UNAME_SYSTEM=unknown
136
UNAME_SYSTEM=`(uname -s) 2>/dev/null`  || UNAME_SYSTEM=unknown
137
UNAME_VERSION=`(uname -v) 2>/dev/null` || UNAME_VERSION=unknown
137
UNAME_VERSION=`(uname -v) 2>/dev/null` || UNAME_VERSION=unknown
138
138
139
case "${UNAME_MACHINE}" in
140
    i?86)
141
	test -z "$VENDOR" && VENDOR=pc
142
	;;
143
    *)
144
	test -z "$VENDOR" && VENDOR=unknown
145
	;;
146
esac
147
test -f /etc/SuSE-release -o -f /.buildenv && VENDOR=suse
148
149
# Note: order is significant - the case branches are not exclusive.
139
# Note: order is significant - the case branches are not exclusive.
150
140
151
case "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" in
141
case "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" in
Lines 207-218 Link Here
207
	# CPU_TYPE-MANUFACTURER-OPERATING_SYSTEM is used.
197
	# CPU_TYPE-MANUFACTURER-OPERATING_SYSTEM is used.
208
	echo "${machine}-${os}${release}"
198
	echo "${machine}-${os}${release}"
209
	exit 0 ;;
199
	exit 0 ;;
200
    amd64:OpenBSD:*:*)
201
	echo x86_64-unknown-openbsd${UNAME_RELEASE}
202
	exit 0 ;;
210
    amiga:OpenBSD:*:*)
203
    amiga:OpenBSD:*:*)
211
	echo m68k-unknown-openbsd${UNAME_RELEASE}
204
	echo m68k-unknown-openbsd${UNAME_RELEASE}
212
	exit 0 ;;
205
	exit 0 ;;
213
    arc:OpenBSD:*:*)
206
    arc:OpenBSD:*:*)
214
	echo mipsel-unknown-openbsd${UNAME_RELEASE}
207
	echo mipsel-unknown-openbsd${UNAME_RELEASE}
215
	exit 0 ;;
208
	exit 0 ;;
209
    cats:OpenBSD:*:*)
210
	echo arm-unknown-openbsd${UNAME_RELEASE}
211
	exit 0 ;;
216
    hp300:OpenBSD:*:*)
212
    hp300:OpenBSD:*:*)
217
	echo m68k-unknown-openbsd${UNAME_RELEASE}
213
	echo m68k-unknown-openbsd${UNAME_RELEASE}
218
	exit 0 ;;
214
	exit 0 ;;
Lines 231-236 Link Here
231
    mvmeppc:OpenBSD:*:*)
227
    mvmeppc:OpenBSD:*:*)
232
	echo powerpc-unknown-openbsd${UNAME_RELEASE}
228
	echo powerpc-unknown-openbsd${UNAME_RELEASE}
233
	exit 0 ;;
229
	exit 0 ;;
230
    pegasos:OpenBSD:*:*)
231
	echo powerpc-unknown-openbsd${UNAME_RELEASE}
232
	exit 0 ;;
234
    pmax:OpenBSD:*:*)
233
    pmax:OpenBSD:*:*)
235
	echo mipsel-unknown-openbsd${UNAME_RELEASE}
234
	echo mipsel-unknown-openbsd${UNAME_RELEASE}
236
	exit 0 ;;
235
	exit 0 ;;
Lines 246-255 Link Here
246
    *:OpenBSD:*:*)
245
    *:OpenBSD:*:*)
247
	echo ${UNAME_MACHINE}-unknown-openbsd${UNAME_RELEASE}
246
	echo ${UNAME_MACHINE}-unknown-openbsd${UNAME_RELEASE}
248
	exit 0 ;;
247
	exit 0 ;;
248
    *:ekkoBSD:*:*)
249
	echo ${UNAME_MACHINE}-unknown-ekkobsd${UNAME_RELEASE}
250
	exit 0 ;;
251
    macppc:MirBSD:*:*)
252
	echo powerppc-unknown-mirbsd${UNAME_RELEASE}
253
	exit 0 ;;
254
    *:MirBSD:*:*)
255
	echo ${UNAME_MACHINE}-unknown-mirbsd${UNAME_RELEASE}
256
	exit 0 ;;
249
    alpha:OSF1:*:*)
257
    alpha:OSF1:*:*)
250
	if test $UNAME_RELEASE = "V4.0"; then
258
	case $UNAME_RELEASE in
259
	*4.0)
251
		UNAME_RELEASE=`/usr/sbin/sizer -v | awk '{print $3}'`
260
		UNAME_RELEASE=`/usr/sbin/sizer -v | awk '{print $3}'`
252
	fi
261
		;;
262
	*5.*)
263
	        UNAME_RELEASE=`/usr/sbin/sizer -v | awk '{print $4}'`
264
		;;
265
	esac
253
	# According to Compaq, /usr/sbin/psrinfo has been available on
266
	# According to Compaq, /usr/sbin/psrinfo has been available on
254
	# OSF/1 and Tru64 systems produced since 1995.  I hope that
267
	# OSF/1 and Tru64 systems produced since 1995.  I hope that
255
	# covers most systems running today.  This code pipes the CPU
268
	# covers most systems running today.  This code pipes the CPU
Lines 287-297 Link Here
287
	    "EV7.9 (21364A)")
300
	    "EV7.9 (21364A)")
288
		UNAME_MACHINE="alphaev79" ;;
301
		UNAME_MACHINE="alphaev79" ;;
289
	esac
302
	esac
303
	# A Pn.n version is a patched version.
290
	# A Vn.n version is a released version.
304
	# A Vn.n version is a released version.
291
	# A Tn.n version is a released field test version.
305
	# A Tn.n version is a released field test version.
292
	# A Xn.n version is an unreleased experimental baselevel.
306
	# A Xn.n version is an unreleased experimental baselevel.
293
	# 1.2 uses "1.2" for uname -r.
307
	# 1.2 uses "1.2" for uname -r.
294
	echo ${UNAME_MACHINE}-dec-osf`echo ${UNAME_RELEASE} | sed -e 's/^[VTX]//' | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
308
	echo ${UNAME_MACHINE}-dec-osf`echo ${UNAME_RELEASE} | sed -e 's/^[PVTX]//' | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
295
	exit 0 ;;
309
	exit 0 ;;
296
    Alpha*:OpenVMS:*:*)
310
    Alpha*:OpenVMS:*:*)
297
	echo alpha-hp-vms
311
	echo alpha-hp-vms
Lines 317-322 Link Here
317
    *:OS/390:*:*)
331
    *:OS/390:*:*)
318
	echo i370-ibm-openedition
332
	echo i370-ibm-openedition
319
	exit 0 ;;
333
	exit 0 ;;
334
    *:OS400:*:*)
335
        echo powerpc-ibm-os400
336
	exit 0 ;;
320
    arm:RISC*:1.[012]*:*|arm:riscix:1.[012]*:*)
337
    arm:RISC*:1.[012]*:*|arm:riscix:1.[012]*:*)
321
	echo arm-acorn-riscix${UNAME_RELEASE}
338
	echo arm-acorn-riscix${UNAME_RELEASE}
322
	exit 0;;
339
	exit 0;;
Lines 409-414 Link Here
409
    *:*MiNT:*:* | *:*mint:*:* | *:*TOS:*:*)
426
    *:*MiNT:*:* | *:*mint:*:* | *:*TOS:*:*)
410
        echo m68k-unknown-mint${UNAME_RELEASE}
427
        echo m68k-unknown-mint${UNAME_RELEASE}
411
        exit 0 ;;
428
        exit 0 ;;
429
    m68k:machten:*:*)
430
	echo m68k-apple-machten${UNAME_RELEASE}
431
	exit 0 ;;
412
    powerpc:machten:*:*)
432
    powerpc:machten:*:*)
413
	echo powerpc-apple-machten${UNAME_RELEASE}
433
	echo powerpc-apple-machten${UNAME_RELEASE}
414
	exit 0 ;;
434
	exit 0 ;;
Lines 744-750 Link Here
744
	echo sv1-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
764
	echo sv1-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
745
	exit 0 ;;
765
	exit 0 ;;
746
    *:UNICOS/mp:*:*)
766
    *:UNICOS/mp:*:*)
747
	echo nv1-cray-unicosmp${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/' 
767
	echo nv1-cray-unicosmp${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
748
	exit 0 ;;
768
	exit 0 ;;
749
    F30[01]:UNIX_System_V:*:* | F700:UNIX_System_V:*:*)
769
    F30[01]:UNIX_System_V:*:* | F700:UNIX_System_V:*:*)
750
	FUJITSU_PROC=`uname -m | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
770
	FUJITSU_PROC=`uname -m | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
Lines 752-757 Link Here
752
        FUJITSU_REL=`echo ${UNAME_RELEASE} | sed -e 's/ /_/'`
772
        FUJITSU_REL=`echo ${UNAME_RELEASE} | sed -e 's/ /_/'`
753
        echo "${FUJITSU_PROC}-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}"
773
        echo "${FUJITSU_PROC}-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}"
754
        exit 0 ;;
774
        exit 0 ;;
775
    5000:UNIX_System_V:4.*:*)
776
        FUJITSU_SYS=`uname -p | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/\///'`
777
        FUJITSU_REL=`echo ${UNAME_RELEASE} | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/ /_/'`
778
        echo "sparc-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}"
779
	exit 0 ;;
755
    i*86:BSD/386:*:* | i*86:BSD/OS:*:* | *:Ascend\ Embedded/OS:*:*)
780
    i*86:BSD/386:*:* | i*86:BSD/OS:*:* | *:Ascend\ Embedded/OS:*:*)
756
	echo ${UNAME_MACHINE}-pc-bsdi${UNAME_RELEASE}
781
	echo ${UNAME_MACHINE}-pc-bsdi${UNAME_RELEASE}
757
	exit 0 ;;
782
	exit 0 ;;
Lines 761-767 Link Here
761
    *:BSD/OS:*:*)
786
    *:BSD/OS:*:*)
762
	echo ${UNAME_MACHINE}-unknown-bsdi${UNAME_RELEASE}
787
	echo ${UNAME_MACHINE}-unknown-bsdi${UNAME_RELEASE}
763
	exit 0 ;;
788
	exit 0 ;;
764
    *:FreeBSD:*:*|*:GNU/FreeBSD:*:*)
789
    *:FreeBSD:*:*)
765
	# Determine whether the default compiler uses glibc.
790
	# Determine whether the default compiler uses glibc.
766
	eval $set_cc_for_build
791
	eval $set_cc_for_build
767
	sed 's/^	//' << EOF >$dummy.c
792
	sed 's/^	//' << EOF >$dummy.c
Lines 773-779 Link Here
773
	#endif
798
	#endif
774
EOF
799
EOF
775
	eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep ^LIBC=`
800
	eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep ^LIBC=`
776
	# GNU/FreeBSD systems have a "k" prefix to indicate we are using
801
	# GNU/KFreeBSD systems have a "k" prefix to indicate we are using
777
	# FreeBSD's kernel, but not the complete OS.
802
	# FreeBSD's kernel, but not the complete OS.
778
	case ${LIBC} in gnu) kernel_only='k' ;; esac
803
	case ${LIBC} in gnu) kernel_only='k' ;; esac
779
	echo ${UNAME_MACHINE}-unknown-${kernel_only}freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`${LIBC:+-$LIBC}
804
	echo ${UNAME_MACHINE}-unknown-${kernel_only}freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`${LIBC:+-$LIBC}
Lines 809-830 Link Here
809
	echo powerpcle-unknown-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
834
	echo powerpcle-unknown-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
810
	exit 0 ;;
835
	exit 0 ;;
811
    *:GNU:*:*)
836
    *:GNU:*:*)
837
	# the GNU system
812
	echo `echo ${UNAME_MACHINE}|sed -e 's,[-/].*$,,'`-unknown-gnu`echo ${UNAME_RELEASE}|sed -e 's,/.*$,,'`
838
	echo `echo ${UNAME_MACHINE}|sed -e 's,[-/].*$,,'`-unknown-gnu`echo ${UNAME_RELEASE}|sed -e 's,/.*$,,'`
813
	exit 0 ;;
839
	exit 0 ;;
840
    *:GNU/*:*:*)
841
	# other systems with GNU libc and userland
842
	echo ${UNAME_MACHINE}-unknown-`echo ${UNAME_SYSTEM} | sed 's,^[^/]*/,,' | tr '[A-Z]' '[a-z]'``echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`-gnu
843
	exit 0 ;;
814
    i*86:Minix:*:*)
844
    i*86:Minix:*:*)
815
	echo ${UNAME_MACHINE}-pc-minix
845
	echo ${UNAME_MACHINE}-pc-minix
816
	exit 0 ;;
846
	exit 0 ;;
817
    arm*:Linux:*:*)
847
    arm*:Linux:*:*)
818
	echo ${UNAME_MACHINE}-${VENDOR}-linux
848
	echo ${UNAME_MACHINE}-unknown-linux-gnu
819
	exit 0 ;;
849
	exit 0 ;;
820
    cris:Linux:*:*)
850
    cris:Linux:*:*)
821
	echo cris-axis-linux
851
	echo cris-axis-linux-gnu
822
	exit 0 ;;
852
	exit 0 ;;
823
    ia64:Linux:*:*)
853
    ia64:Linux:*:*)
824
	echo ${UNAME_MACHINE}-${VENDOR}-linux
854
	echo ${UNAME_MACHINE}-unknown-linux-gnu
855
	exit 0 ;;
856
    m32r*:Linux:*:*)
857
	echo ${UNAME_MACHINE}-unknown-linux-gnu
825
	exit 0 ;;
858
	exit 0 ;;
826
    m68*:Linux:*:*)
859
    m68*:Linux:*:*)
827
	echo ${UNAME_MACHINE}-${VENDOR}-linux
860
	echo ${UNAME_MACHINE}-unknown-linux-gnu
828
	exit 0 ;;
861
	exit 0 ;;
829
    mips:Linux:*:*)
862
    mips:Linux:*:*)
830
	eval $set_cc_for_build
863
	eval $set_cc_for_build
Lines 843-849 Link Here
843
	#endif
876
	#endif
844
EOF
877
EOF
845
	eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep ^CPU=`
878
	eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep ^CPU=`
846
	test x"${CPU}" != x && echo "${CPU}-${VENDOR}-linux" && exit 0
879
	test x"${CPU}" != x && echo "${CPU}-unknown-linux-gnu" && exit 0
847
	;;
880
	;;
848
    mips64:Linux:*:*)
881
    mips64:Linux:*:*)
849
	eval $set_cc_for_build
882
	eval $set_cc_for_build
Lines 862-874 Link Here
862
	#endif
895
	#endif
863
EOF
896
EOF
864
	eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep ^CPU=`
897
	eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep ^CPU=`
865
	test x"${CPU}" != x && echo "${CPU}-${VENDOR}-linux" && exit 0
898
	test x"${CPU}" != x && echo "${CPU}-unknown-linux-gnu" && exit 0
866
	;;
899
	;;
867
    ppc:Linux:*:*)
900
    ppc:Linux:*:*)
868
	echo powerpc-${VENDOR}-linux
901
	echo powerpc-unknown-linux-gnu
869
	exit 0 ;;
902
	exit 0 ;;
870
    ppc64:Linux:*:*)
903
    ppc64:Linux:*:*)
871
	echo powerpc64-${VENDOR}-linux
904
	echo powerpc64-unknown-linux-gnu
872
	exit 0 ;;
905
	exit 0 ;;
873
    alpha:Linux:*:*)
906
    alpha:Linux:*:*)
874
	case `sed -n '/^cpu model/s/^.*: \(.*\)/\1/p' < /proc/cpuinfo` in
907
	case `sed -n '/^cpu model/s/^.*: \(.*\)/\1/p' < /proc/cpuinfo` in
Lines 881-914 Link Here
881
	  EV68*) UNAME_MACHINE=alphaev68 ;;
914
	  EV68*) UNAME_MACHINE=alphaev68 ;;
882
        esac
915
        esac
883
	objdump --private-headers /bin/sh | grep ld.so.1 >/dev/null
916
	objdump --private-headers /bin/sh | grep ld.so.1 >/dev/null
884
	if test "$?" = 0 ; then LIBC="-libc1" ; else LIBC="" ; fi
917
	if test "$?" = 0 ; then LIBC="libc1" ; else LIBC="" ; fi
885
	echo ${UNAME_MACHINE}-${VENDOR}-linux${LIBC}
918
	echo ${UNAME_MACHINE}-unknown-linux-gnu${LIBC}
886
	exit 0 ;;
919
	exit 0 ;;
887
    parisc:Linux:*:* | hppa:Linux:*:*)
920
    parisc:Linux:*:* | hppa:Linux:*:*)
888
	# Look for CPU level
921
	# Look for CPU level
889
	case `grep '^cpu[^a-z]*:' /proc/cpuinfo 2>/dev/null | cut -d' ' -f2` in
922
	case `grep '^cpu[^a-z]*:' /proc/cpuinfo 2>/dev/null | cut -d' ' -f2` in
890
	  PA7*) echo hppa1.1-${VENDOR}-linux ;;
923
	  PA7*) echo hppa1.1-unknown-linux-gnu ;;
891
	  PA8*) echo hppa2.0-${VENDOR}-linux ;;
924
	  PA8*) echo hppa2.0-unknown-linux-gnu ;;
892
	  *)    echo hppa-${VENDOR}-linux ;;
925
	  *)    echo hppa-unknown-linux-gnu ;;
893
	esac
926
	esac
894
	exit 0 ;;
927
	exit 0 ;;
895
    parisc64:Linux:*:* | hppa64:Linux:*:*)
928
    parisc64:Linux:*:* | hppa64:Linux:*:*)
896
	echo hppa64-${VENDOR}-linux
929
	echo hppa64-unknown-linux-gnu
897
	exit 0 ;;
930
	exit 0 ;;
898
    s390:Linux:*:* | s390x:Linux:*:*)
931
    s390:Linux:*:* | s390x:Linux:*:*)
899
	echo ${UNAME_MACHINE}-ibm-linux
932
	echo ${UNAME_MACHINE}-ibm-linux
900
	exit 0 ;;
933
	exit 0 ;;
901
    sh64*:Linux:*:*)
934
    sh64*:Linux:*:*)
902
    	echo ${UNAME_MACHINE}-${VENDOR}-linux
935
    	echo ${UNAME_MACHINE}-unknown-linux-gnu
903
	exit 0 ;;
936
	exit 0 ;;
904
    sh*:Linux:*:*)
937
    sh*:Linux:*:*)
905
	echo ${UNAME_MACHINE}-${VENDOR}-linux
938
	echo ${UNAME_MACHINE}-unknown-linux-gnu
906
	exit 0 ;;
939
	exit 0 ;;
907
    sparc:Linux:*:* | sparc64:Linux:*:*)
940
    sparc:Linux:*:* | sparc64:Linux:*:*)
908
	echo ${UNAME_MACHINE}-${VENDOR}-linux
941
	echo ${UNAME_MACHINE}-unknown-linux-gnu
909
	exit 0 ;;
942
	exit 0 ;;
910
    x86_64:Linux:*:*)
943
    x86_64:Linux:*:*)
911
	echo x86_64-${VENDOR}-linux
944
	echo x86_64-unknown-linux-gnu
912
	exit 0 ;;
945
	exit 0 ;;
913
    i*86:Linux:*:*)
946
    i*86:Linux:*:*)
914
	# The BFD linker knows what the default object file format is, so
947
	# The BFD linker knows what the default object file format is, so
Lines 923-940 Link Here
923
				    p'`
956
				    p'`
924
        case "$ld_supported_targets" in
957
        case "$ld_supported_targets" in
925
	  elf32-i386)
958
	  elf32-i386)
926
		TENTATIVE="${UNAME_MACHINE}-${VENDOR}-linux"
959
		TENTATIVE="${UNAME_MACHINE}-pc-linux-gnu"
927
		;;
960
		;;
928
	  a.out-i386-linux)
961
	  a.out-i386-linux)
929
		echo "${UNAME_MACHINE}-${VENDOR}-linuxaout"
962
		echo "${UNAME_MACHINE}-pc-linux-gnuaout"
930
		exit 0 ;;
963
		exit 0 ;;
931
	  coff-i386)
964
	  coff-i386)
932
		echo "${UNAME_MACHINE}-${VENDOR}-linuxcoff"
965
		echo "${UNAME_MACHINE}-pc-linux-gnucoff"
933
		exit 0 ;;
966
		exit 0 ;;
934
	  "")
967
	  "")
935
		# Either a pre-BFD a.out linker (linuxoldld) or
968
		# Either a pre-BFD a.out linker (linux-gnuoldld) or
936
		# one that does not give us useful --help.
969
		# one that does not give us useful --help.
937
		echo "${UNAME_MACHINE}-${VENDOR}-linuxoldld"
970
		echo "${UNAME_MACHINE}-pc-linux-gnuoldld"
938
		exit 0 ;;
971
		exit 0 ;;
939
	esac
972
	esac
940
	# Determine whether the default compiler is a.out or elf
973
	# Determine whether the default compiler is a.out or elf
Lines 958-966 Link Here
958
	LIBC=gnuaout
991
	LIBC=gnuaout
959
	#endif
992
	#endif
960
	#endif
993
	#endif
994
	#ifdef __dietlibc__
995
	LIBC=dietlibc
996
	#endif
961
EOF
997
EOF
962
	eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep ^LIBC=`
998
	eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep ^LIBC=`
963
	test x"${LIBC}" != x && echo "${UNAME_MACHINE}-${VENDOR}-linux-${LIBC}" | sed 's/linux-gnu/linux/' && exit 0
999
	test x"${LIBC}" != x && echo "${UNAME_MACHINE}-pc-linux-${LIBC}" && exit 0
964
	test x"${TENTATIVE}" != x && echo "${TENTATIVE}" && exit 0
1000
	test x"${TENTATIVE}" != x && echo "${TENTATIVE}" && exit 0
965
	;;
1001
	;;
966
    i*86:DYNIX/ptx:4*:*)
1002
    i*86:DYNIX/ptx:4*:*)
Lines 988-993 Link Here
988
    i*86:atheos:*:*)
1024
    i*86:atheos:*:*)
989
	echo ${UNAME_MACHINE}-unknown-atheos
1025
	echo ${UNAME_MACHINE}-unknown-atheos
990
	exit 0 ;;
1026
	exit 0 ;;
1027
	i*86:syllable:*:*)
1028
	echo ${UNAME_MACHINE}-pc-syllable
1029
	exit 0 ;;
991
    i*86:LynxOS:2.*:* | i*86:LynxOS:3.[01]*:* | i*86:LynxOS:4.0*:*)
1030
    i*86:LynxOS:2.*:* | i*86:LynxOS:3.[01]*:* | i*86:LynxOS:4.0*:*)
992
	echo i386-unknown-lynxos${UNAME_RELEASE}
1031
	echo i386-unknown-lynxos${UNAME_RELEASE}
993
	exit 0 ;;
1032
	exit 0 ;;
Lines 1059-1065 Link Here
1059
	exit 0 ;;
1098
	exit 0 ;;
1060
    M68*:*:R3V[567]*:*)
1099
    M68*:*:R3V[567]*:*)
1061
	test -r /sysV68 && echo 'm68k-motorola-sysv' && exit 0 ;;
1100
	test -r /sysV68 && echo 'm68k-motorola-sysv' && exit 0 ;;
1062
    3[34]??:*:4.0:3.0 | 3[34]??A:*:4.0:3.0 | 3[34]??,*:*:4.0:3.0 | 3[34]??/*:*:4.0:3.0 | 4400:*:4.0:3.0 | 4850:*:4.0:3.0 | SKA40:*:4.0:3.0 | SDS2:*:4.0:3.0 | SHG2:*:4.0:3.0)
1101
    3[345]??:*:4.0:3.0 | 3[34]??A:*:4.0:3.0 | 3[34]??,*:*:4.0:3.0 | 3[34]??/*:*:4.0:3.0 | 4400:*:4.0:3.0 | 4850:*:4.0:3.0 | SKA40:*:4.0:3.0 | SDS2:*:4.0:3.0 | SHG2:*:4.0:3.0)
1063
	OS_REL=''
1102
	OS_REL=''
1064
	test -r /etc/.relid \
1103
	test -r /etc/.relid \
1065
	&& OS_REL=.`sed -n 's/[^ ]* [^ ]* \([0-9][0-9]\).*/\1/p' < /etc/.relid`
1104
	&& OS_REL=.`sed -n 's/[^ ]* [^ ]* \([0-9][0-9]\).*/\1/p' < /etc/.relid`
Lines 1174-1180 Link Here
1174
    *:QNX:*:4*)
1213
    *:QNX:*:4*)
1175
	echo i386-pc-qnx
1214
	echo i386-pc-qnx
1176
	exit 0 ;;
1215
	exit 0 ;;
1177
    NSR-[DGKLNPTVW]:NONSTOP_KERNEL:*:*)
1216
    NSR-?:NONSTOP_KERNEL:*:*)
1178
	echo nsr-tandem-nsk${UNAME_RELEASE}
1217
	echo nsr-tandem-nsk${UNAME_RELEASE}
1179
	exit 0 ;;
1218
	exit 0 ;;
1180
    *:NonStop-UX:*:*)
1219
    *:NonStop-UX:*:*)
Lines 1218-1223 Link Here
1218
    SEI:*:*:SEIUX)
1257
    SEI:*:*:SEIUX)
1219
        echo mips-sei-seiux${UNAME_RELEASE}
1258
        echo mips-sei-seiux${UNAME_RELEASE}
1220
	exit 0 ;;
1259
	exit 0 ;;
1260
    *:DragonFly:*:*)
1261
	echo ${UNAME_MACHINE}-unknown-dragonfly`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`
1262
	exit 0 ;;
1221
esac
1263
esac
1222
1264
1223
#echo '(No uname command or uname output not recognized.)' 1>&2
1265
#echo '(No uname command or uname output not recognized.)' 1>&2
(-)darimasen-0.0.8/config.sub (-13 / +61 lines)
Lines 3-9 Link Here
3
#   Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999,
3
#   Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999,
4
#   2000, 2001, 2002, 2003 Free Software Foundation, Inc.
4
#   2000, 2001, 2002, 2003 Free Software Foundation, Inc.
5
5
6
timestamp='2003-07-04'
6
timestamp='2004-03-12'
7
7
8
# This file is (in principle) common to ALL GNU software.
8
# This file is (in principle) common to ALL GNU software.
9
# The presence of a machine in this file suggests that SOME GNU software
9
# The presence of a machine in this file suggests that SOME GNU software
Lines 118-124 Link Here
118
# Here we must recognize all the valid KERNEL-OS combinations.
118
# Here we must recognize all the valid KERNEL-OS combinations.
119
maybe_os=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\2/'`
119
maybe_os=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\2/'`
120
case $maybe_os in
120
case $maybe_os in
121
  nto-qnx* | linux-gnu* | kfreebsd*-gnu* | netbsd*-gnu* | storm-chaos* | os2-emx* | rtmk-nova*)
121
  nto-qnx* | linux-gnu* | linux-dietlibc | linux-uclibc* | uclinux-uclibc* | uclinux-gnu* | \
122
  kfreebsd*-gnu* | knetbsd*-gnu* | netbsd*-gnu* | storm-chaos* | os2-emx* | rtmk-nova*)
122
    os=-$maybe_os
123
    os=-$maybe_os
123
    basic_machine=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\1/'`
124
    basic_machine=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\1/'`
124
    ;;
125
    ;;
Lines 228-241 Link Here
228
	| a29k \
229
	| a29k \
229
	| alpha | alphaev[4-8] | alphaev56 | alphaev6[78] | alphapca5[67] \
230
	| alpha | alphaev[4-8] | alphaev56 | alphaev6[78] | alphapca5[67] \
230
	| alpha64 | alpha64ev[4-8] | alpha64ev56 | alpha64ev6[78] | alpha64pca5[67] \
231
	| alpha64 | alpha64ev[4-8] | alpha64ev56 | alpha64ev6[78] | alpha64pca5[67] \
232
	| am33_2.0 \
231
	| arc | arm | arm[bl]e | arme[lb] | armv[2345] | armv[345][lb] | avr \
233
	| arc | arm | arm[bl]e | arme[lb] | armv[2345] | armv[345][lb] | avr \
232
	| c4x | clipper \
234
	| c4x | clipper \
233
	| d10v | d30v | dlx | dsp16xx \
235
	| d10v | d30v | dlx | dsp16xx \
234
	| fr30 | frv \
236
	| fr30 | frv \
235
	| h8300 | h8500 | hppa | hppa1.[01] | hppa2.0 | hppa2.0[nw] | hppa64 \
237
	| h8300 | h8500 | hppa | hppa1.[01] | hppa2.0 | hppa2.0[nw] | hppa64 \
236
	| i370 | i860 | i960 | ia64 \
238
	| i370 | i860 | i960 | ia64 \
237
	| ip2k \
239
	| ip2k | iq2000 \
238
	| m32r | m68000 | m68k | m88k | mcore \
240
	| m32r | m32rle | m68000 | m68k | m88k | mcore \
239
	| mips | mipsbe | mipseb | mipsel | mipsle \
241
	| mips | mipsbe | mipseb | mipsel | mipsle \
240
	| mips16 \
242
	| mips16 \
241
	| mips64 | mips64el \
243
	| mips64 | mips64el \
Lines 247-252 Link Here
247
	| mipsisa32 | mipsisa32el \
249
	| mipsisa32 | mipsisa32el \
248
	| mipsisa32r2 | mipsisa32r2el \
250
	| mipsisa32r2 | mipsisa32r2el \
249
	| mipsisa64 | mipsisa64el \
251
	| mipsisa64 | mipsisa64el \
252
	| mipsisa64r2 | mipsisa64r2el \
250
	| mipsisa64sb1 | mipsisa64sb1el \
253
	| mipsisa64sb1 | mipsisa64sb1el \
251
	| mipsisa64sr71k | mipsisa64sr71kel \
254
	| mipsisa64sr71k | mipsisa64sr71kel \
252
	| mipstx39 | mipstx39el \
255
	| mipstx39 | mipstx39el \
Lines 259-265 Link Here
259
	| pyramid \
262
	| pyramid \
260
	| sh | sh[1234] | sh[23]e | sh[34]eb | shbe | shle | sh[1234]le | sh3ele \
263
	| sh | sh[1234] | sh[23]e | sh[34]eb | shbe | shle | sh[1234]le | sh3ele \
261
	| sh64 | sh64le \
264
	| sh64 | sh64le \
262
	| sparc | sparc64 | sparc86x | sparclet | sparclite | sparcv9 | sparcv9b \
265
	| sparc | sparc64 | sparc86x | sparclet | sparclite | sparcv8 | sparcv9 | sparcv9b \
263
	| strongarm \
266
	| strongarm \
264
	| tahoe | thumb | tic4x | tic80 | tron \
267
	| tahoe | thumb | tic4x | tic80 | tron \
265
	| v850 | v850e \
268
	| v850 | v850e \
Lines 304-311 Link Here
304
	| h8300-* | h8500-* \
307
	| h8300-* | h8500-* \
305
	| hppa-* | hppa1.[01]-* | hppa2.0-* | hppa2.0[nw]-* | hppa64-* \
308
	| hppa-* | hppa1.[01]-* | hppa2.0-* | hppa2.0[nw]-* | hppa64-* \
306
	| i*86-* | i860-* | i960-* | ia64-* \
309
	| i*86-* | i860-* | i960-* | ia64-* \
307
	| ip2k-* \
310
	| ip2k-* | iq2000-* \
308
	| m32r-* \
311
	| m32r-* | m32rle-* \
309
	| m68000-* | m680[012346]0-* | m68360-* | m683?2-* | m68k-* \
312
	| m68000-* | m680[012346]0-* | m68360-* | m683?2-* | m68k-* \
310
	| m88110-* | m88k-* | mcore-* \
313
	| m88110-* | m88k-* | mcore-* \
311
	| mips-* | mipsbe-* | mipseb-* | mipsel-* | mipsle-* \
314
	| mips-* | mipsbe-* | mipseb-* | mipsel-* | mipsle-* \
Lines 319-324 Link Here
319
	| mipsisa32-* | mipsisa32el-* \
322
	| mipsisa32-* | mipsisa32el-* \
320
	| mipsisa32r2-* | mipsisa32r2el-* \
323
	| mipsisa32r2-* | mipsisa32r2el-* \
321
	| mipsisa64-* | mipsisa64el-* \
324
	| mipsisa64-* | mipsisa64el-* \
325
	| mipsisa64r2-* | mipsisa64r2el-* \
322
	| mipsisa64sb1-* | mipsisa64sb1el-* \
326
	| mipsisa64sb1-* | mipsisa64sb1el-* \
323
	| mipsisa64sr71k-* | mipsisa64sr71kel-* \
327
	| mipsisa64sr71k-* | mipsisa64sr71kel-* \
324
	| mipstx39-* | mipstx39el-* \
328
	| mipstx39-* | mipstx39el-* \
Lines 332-338 Link Here
332
	| sh-* | sh[1234]-* | sh[23]e-* | sh[34]eb-* | shbe-* \
336
	| sh-* | sh[1234]-* | sh[23]e-* | sh[34]eb-* | shbe-* \
333
	| shle-* | sh[1234]le-* | sh3ele-* | sh64-* | sh64le-* \
337
	| shle-* | sh[1234]le-* | sh3ele-* | sh64-* | sh64le-* \
334
	| sparc-* | sparc64-* | sparc86x-* | sparclet-* | sparclite-* \
338
	| sparc-* | sparc64-* | sparc86x-* | sparclet-* | sparclite-* \
335
	| sparcv9-* | sparcv9b-* | strongarm-* | sv1-* | sx?-* \
339
	| sparcv8-* | sparcv9-* | sparcv9b-* | strongarm-* | sv1-* | sx?-* \
336
	| tahoe-* | thumb-* \
340
	| tahoe-* | thumb-* \
337
	| tic30-* | tic4x-* | tic54x-* | tic55x-* | tic6x-* | tic80-* \
341
	| tic30-* | tic4x-* | tic54x-* | tic55x-* | tic6x-* | tic80-* \
338
	| tron-* \
342
	| tron-* \
Lines 359-364 Link Here
359
		basic_machine=a29k-amd
363
		basic_machine=a29k-amd
360
		os=-udi
364
		os=-udi
361
		;;
365
		;;
366
    	abacus)
367
		basic_machine=abacus-unknown
368
		;;
362
	adobe68k)
369
	adobe68k)
363
		basic_machine=m68010-adobe
370
		basic_machine=m68010-adobe
364
		os=-scout
371
		os=-scout
Lines 376-381 Link Here
376
	amd64)
383
	amd64)
377
		basic_machine=x86_64-pc
384
		basic_machine=x86_64-pc
378
		;;
385
		;;
386
	amd64-*)
387
		basic_machine=x86_64-`echo $basic_machine | sed 's/^[^-]*-//'`
388
		;;
379
	amdahl)
389
	amdahl)
380
		basic_machine=580-amdahl
390
		basic_machine=580-amdahl
381
		os=-sysv
391
		os=-sysv
Lines 435-446 Link Here
435
		basic_machine=j90-cray
445
		basic_machine=j90-cray
436
		os=-unicos
446
		os=-unicos
437
		;;
447
		;;
448
	cr16c)
449
		basic_machine=cr16c-unknown
450
		os=-elf
451
		;;
438
	crds | unos)
452
	crds | unos)
439
		basic_machine=m68k-crds
453
		basic_machine=m68k-crds
440
		;;
454
		;;
441
	cris | cris-* | etrax*)
455
	cris | cris-* | etrax*)
442
		basic_machine=cris-axis
456
		basic_machine=cris-axis
443
		;;
457
		;;
458
	crx)
459
		basic_machine=crx-unknown
460
		os=-elf
461
		;;
444
	da30 | da30-*)
462
	da30 | da30-*)
445
		basic_machine=m68k-da30
463
		basic_machine=m68k-da30
446
		;;
464
		;;
Lines 740-745 Link Here
740
		basic_machine=or32-unknown
758
		basic_machine=or32-unknown
741
		os=-coff
759
		os=-coff
742
		;;
760
		;;
761
	os400)
762
		basic_machine=powerpc-ibm
763
		os=-os400
764
		;;
743
	OSE68000 | ose68000)
765
	OSE68000 | ose68000)
744
		basic_machine=m68000-ericsson
766
		basic_machine=m68000-ericsson
745
		os=-ose
767
		os=-ose
Lines 960-965 Link Here
960
	tower | tower-32)
982
	tower | tower-32)
961
		basic_machine=m68k-ncr
983
		basic_machine=m68k-ncr
962
		;;
984
		;;
985
	tpf)
986
		basic_machine=s390x-ibm
987
		os=-tpf
988
		;;
963
	udi29k)
989
	udi29k)
964
		basic_machine=a29k-amd
990
		basic_machine=a29k-amd
965
		os=-udi
991
		os=-udi
Lines 1055-1061 Link Here
1055
	sh64)
1081
	sh64)
1056
		basic_machine=sh64-unknown
1082
		basic_machine=sh64-unknown
1057
		;;
1083
		;;
1058
	sparc | sparcv9 | sparcv9b)
1084
	sparc | sparcv8 | sparcv9 | sparcv9b)
1059
		basic_machine=sparc-sun
1085
		basic_machine=sparc-sun
1060
		;;
1086
		;;
1061
	cydra)
1087
	cydra)
Lines 1128-1146 Link Here
1128
	      | -aos* \
1154
	      | -aos* \
1129
	      | -nindy* | -vxsim* | -vxworks* | -ebmon* | -hms* | -mvs* \
1155
	      | -nindy* | -vxsim* | -vxworks* | -ebmon* | -hms* | -mvs* \
1130
	      | -clix* | -riscos* | -uniplus* | -iris* | -rtu* | -xenix* \
1156
	      | -clix* | -riscos* | -uniplus* | -iris* | -rtu* | -xenix* \
1131
	      | -hiux* | -386bsd* | -netbsd* | -openbsd* | -kfreebsd* | -freebsd* | -riscix* \
1157
	      | -hiux* | -386bsd* | -knetbsd* | -mirbsd* | -netbsd* | -openbsd* \
1132
	      | -lynxos* | -bosx* | -nextstep* | -cxux* | -aout* | -elf* | -oabi* \
1158
	      | -ekkobsd* | -kfreebsd* | -freebsd* | -riscix* | -lynxos* \
1159
	      | -bosx* | -nextstep* | -cxux* | -aout* | -elf* | -oabi* \
1133
	      | -ptx* | -coff* | -ecoff* | -winnt* | -domain* | -vsta* \
1160
	      | -ptx* | -coff* | -ecoff* | -winnt* | -domain* | -vsta* \
1134
	      | -udi* | -eabi* | -lites* | -ieee* | -go32* | -aux* \
1161
	      | -udi* | -eabi* | -lites* | -ieee* | -go32* | -aux* \
1135
	      | -chorusos* | -chorusrdb* \
1162
	      | -chorusos* | -chorusrdb* \
1136
	      | -cygwin* | -pe* | -psos* | -moss* | -proelf* | -rtems* \
1163
	      | -cygwin* | -pe* | -psos* | -moss* | -proelf* | -rtems* \
1137
	      | -mingw32* | -linux* | -uxpv* | -beos* | -mpeix* | -udk* \
1164
	      | -mingw32* | -linux-gnu* | -linux-uclibc* | -uxpv* | -beos* | -mpeix* | -udk* \
1138
	      | -interix* | -uwin* | -mks* | -rhapsody* | -darwin* | -opened* \
1165
	      | -interix* | -uwin* | -mks* | -rhapsody* | -darwin* | -opened* \
1139
	      | -openstep* | -oskit* | -conix* | -pw32* | -nonstopux* \
1166
	      | -openstep* | -oskit* | -conix* | -pw32* | -nonstopux* \
1140
	      | -storm-chaos* | -tops10* | -tenex* | -tops20* | -its* \
1167
	      | -storm-chaos* | -tops10* | -tenex* | -tops20* | -its* \
1141
	      | -os2* | -vos* | -palmos* | -uclinux* | -nucleus* \
1168
	      | -os2* | -vos* | -palmos* | -uclinux* | -nucleus* \
1142
	      | -morphos* | -superux* | -rtmk* | -rtmk-nova* | -windiss* \
1169
	      | -morphos* | -superux* | -rtmk* | -rtmk-nova* | -windiss* \
1143
	      | -powermax* | -dnix* | -nx6 | -nx7 | -sei*)
1170
	      | -powermax* | -dnix* | -nx6 | -nx7 | -sei* | -dragonfly*)
1144
	# Remember, each alternative MUST END IN *, to match a version number.
1171
	# Remember, each alternative MUST END IN *, to match a version number.
1145
		;;
1172
		;;
1146
	-qnx*)
1173
	-qnx*)
Lines 1164-1169 Link Here
1164
	-mac*)
1191
	-mac*)
1165
		os=`echo $os | sed -e 's|mac|macos|'`
1192
		os=`echo $os | sed -e 's|mac|macos|'`
1166
		;;
1193
		;;
1194
	-linux-dietlibc)
1195
		os=-linux-dietlibc
1196
		;;
1197
	-linux*)
1198
		os=`echo $os | sed -e 's|linux|linux-gnu|'`
1199
		;;
1167
	-sunos5*)
1200
	-sunos5*)
1168
		os=`echo $os | sed -e 's|sunos5|solaris2|'`
1201
		os=`echo $os | sed -e 's|sunos5|solaris2|'`
1169
		;;
1202
		;;
Lines 1173-1178 Link Here
1173
	-opened*)
1206
	-opened*)
1174
		os=-openedition
1207
		os=-openedition
1175
		;;
1208
		;;
1209
        -os400*)
1210
		os=-os400
1211
		;;
1176
	-wince*)
1212
	-wince*)
1177
		os=-wince
1213
		os=-wince
1178
		;;
1214
		;;
Lines 1194-1199 Link Here
1194
	-atheos*)
1230
	-atheos*)
1195
		os=-atheos
1231
		os=-atheos
1196
		;;
1232
		;;
1233
	-syllable*)
1234
		os=-syllable
1235
		;;
1197
	-386bsd)
1236
	-386bsd)
1198
		os=-bsd
1237
		os=-bsd
1199
		;;
1238
		;;
Lines 1216-1221 Link Here
1216
	-sinix*)
1255
	-sinix*)
1217
		os=-sysv4
1256
		os=-sysv4
1218
		;;
1257
		;;
1258
        -tpf*)
1259
		os=-tpf
1260
		;;
1219
	-triton*)
1261
	-triton*)
1220
		os=-sysv3
1262
		os=-sysv3
1221
		;;
1263
		;;
Lines 1464-1472 Link Here
1464
			-mvs* | -opened*)
1506
			-mvs* | -opened*)
1465
				vendor=ibm
1507
				vendor=ibm
1466
				;;
1508
				;;
1509
			-os400*)
1510
				vendor=ibm
1511
				;;
1467
			-ptx*)
1512
			-ptx*)
1468
				vendor=sequent
1513
				vendor=sequent
1469
				;;
1514
				;;
1515
			-tpf*)
1516
				vendor=ibm
1517
				;;
1470
			-vxsim* | -vxworks* | -windiss*)
1518
			-vxsim* | -vxworks* | -windiss*)
1471
				vendor=wrs
1519
				vendor=wrs
1472
				;;
1520
				;;
(-)darimasen-0.0.8/configure (-1366 / +3394 lines)
Lines 1-9 Link Here
1
#! /bin/sh
1
#! /bin/sh
2
# Guess values for system-dependent variables and create Makefiles.
2
# Guess values for system-dependent variables and create Makefiles.
3
# Generated by GNU Autoconf 2.57.
3
# Generated by GNU Autoconf 2.59.
4
#
4
#
5
# Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
5
# Copyright (C) 2003 Free Software Foundation, Inc.
6
# Free Software Foundation, Inc.
7
# This configure script is free software; the Free Software Foundation
6
# This configure script is free software; the Free Software Foundation
8
# gives unlimited permission to copy, distribute and modify it.
7
# gives unlimited permission to copy, distribute and modify it.
9
## --------------------- ##
8
## --------------------- ##
Lines 20-28 Link Here
20
elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
19
elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
21
  set -o posix
20
  set -o posix
22
fi
21
fi
22
DUALCASE=1; export DUALCASE # for MKS sh
23
23
24
# Support unset when possible.
24
# Support unset when possible.
25
if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
25
if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
26
  as_unset=unset
26
  as_unset=unset
27
else
27
else
28
  as_unset=false
28
  as_unset=false
Lines 41-47 Link Here
41
  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
41
  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
42
  LC_TELEPHONE LC_TIME
42
  LC_TELEPHONE LC_TIME
43
do
43
do
44
  if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
44
  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
45
    eval $as_var=C; export $as_var
45
    eval $as_var=C; export $as_var
46
  else
46
  else
47
    $as_unset $as_var
47
    $as_unset $as_var
Lines 218-233 Link Here
218
if mkdir -p . 2>/dev/null; then
218
if mkdir -p . 2>/dev/null; then
219
  as_mkdir_p=:
219
  as_mkdir_p=:
220
else
220
else
221
  test -d ./-p && rmdir ./-p
221
  as_mkdir_p=false
222
  as_mkdir_p=false
222
fi
223
fi
223
224
224
as_executable_p="test -f"
225
as_executable_p="test -f"
225
226
226
# Sed expression to map a string onto a valid CPP name.
227
# Sed expression to map a string onto a valid CPP name.
227
as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
228
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
228
229
229
# Sed expression to map a string onto a valid variable name.
230
# Sed expression to map a string onto a valid variable name.
230
as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
231
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
231
232
232
233
233
# IFS
234
# IFS
Lines 277-283 Link Here
277
278
278
# The HP-UX ksh and POSIX shell print the target directory to stdout
279
# The HP-UX ksh and POSIX shell print the target directory to stdout
279
# if CDPATH is set.
280
# if CDPATH is set.
280
if test "X${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
281
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
281
282
282
if test -z "$ECHO"; then
283
if test -z "$ECHO"; then
283
if test "X${echo_test_string+set}" != Xset; then
284
if test "X${echo_test_string+set}" != Xset; then
Lines 390-398 Link Here
390
391
391
392
392
393
393
tagnames=`echo "$tagnames,CXX" | sed 's/^,//'`
394
tagnames=${tagnames+${tagnames},}CXX
394
395
395
tagnames=`echo "$tagnames,F77" | sed 's/^,//'`
396
tagnames=${tagnames+${tagnames},}F77
396
397
397
# Name of the host.
398
# Name of the host.
398
# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
399
# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
Lines 462-468 Link Here
462
# include <unistd.h>
463
# include <unistd.h>
463
#endif"
464
#endif"
464
465
465
ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO AMTAR install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM AWK SET_MAKE am__leading_dot CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE CPP EGREP CXX CXXFLAGS ac_ct_CXX CXXDEPMODE am__fastdepCXX_TRUE am__fastdepCXX_FALSE CXXCPP build build_cpu build_vendor build_os host host_cpu host_vendor host_os LN_S ECHO AR ac_ct_AR RANLIB ac_ct_RANLIB F77 FFLAGS ac_ct_F77 LIBTOOL PKG_CFLAGS PKG_LIBS LIBOBJS LTLIBOBJS'
466
ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO AMTAR install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM AWK SET_MAKE am__leading_dot CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE CPP EGREP CXX CXXFLAGS ac_ct_CXX CXXDEPMODE am__fastdepCXX_TRUE am__fastdepCXX_FALSE CXXCPP build build_cpu build_vendor build_os host host_cpu host_vendor host_os LN_S ECHO AR ac_ct_AR RANLIB ac_ct_RANLIB F77 FFLAGS ac_ct_F77 LIBTOOL PKG_CONFIG PKG_CFLAGS PKG_LIBS LIBOBJS LTLIBOBJS'
466
ac_subst_files=''
467
ac_subst_files=''
467
468
468
# Initialize some variables set by options.
469
# Initialize some variables set by options.
Lines 821-827 Link Here
821
822
822
# Be sure to have absolute paths.
823
# Be sure to have absolute paths.
823
for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
824
for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
824
              localstatedir libdir includedir oldincludedir infodir mandir
825
	      localstatedir libdir includedir oldincludedir infodir mandir
825
do
826
do
826
  eval ac_val=$`echo $ac_var`
827
  eval ac_val=$`echo $ac_var`
827
  case $ac_val in
828
  case $ac_val in
Lines 861-870 Link Here
861
  # Try the directory containing this script, then its parent.
862
  # Try the directory containing this script, then its parent.
862
  ac_confdir=`(dirname "$0") 2>/dev/null ||
863
  ac_confdir=`(dirname "$0") 2>/dev/null ||
863
$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
864
$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
864
         X"$0" : 'X\(//\)[^/]' \| \
865
	 X"$0" : 'X\(//\)[^/]' \| \
865
         X"$0" : 'X\(//\)$' \| \
866
	 X"$0" : 'X\(//\)$' \| \
866
         X"$0" : 'X\(/\)' \| \
867
	 X"$0" : 'X\(/\)' \| \
867
         .     : '\(.\)' 2>/dev/null ||
868
	 .     : '\(.\)' 2>/dev/null ||
868
echo X"$0" |
869
echo X"$0" |
869
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
870
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
870
  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
871
  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
Lines 976-984 Link Here
976
  cat <<_ACEOF
977
  cat <<_ACEOF
977
Installation directories:
978
Installation directories:
978
  --prefix=PREFIX         install architecture-independent files in PREFIX
979
  --prefix=PREFIX         install architecture-independent files in PREFIX
979
                          [$ac_default_prefix]
980
			  [$ac_default_prefix]
980
  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
981
  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
981
                          [PREFIX]
982
			  [PREFIX]
982
983
983
By default, \`make install' will install all the files in
984
By default, \`make install' will install all the files in
984
\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
985
\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
Lines 1091-1102 Link Here
1091
    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1092
    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1092
    ac_top_srcdir=$ac_top_builddir$srcdir ;;
1093
    ac_top_srcdir=$ac_top_builddir$srcdir ;;
1093
esac
1094
esac
1094
# Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
1095
1095
# absolute.
1096
# Do not use `cd foo && pwd` to compute absolute paths, because
1096
ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
1097
# the directories may not exist.
1097
ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
1098
case `pwd` in
1098
ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
1099
.) ac_abs_builddir="$ac_dir";;
1099
ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
1100
*)
1101
  case "$ac_dir" in
1102
  .) ac_abs_builddir=`pwd`;;
1103
  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1104
  *) ac_abs_builddir=`pwd`/"$ac_dir";;
1105
  esac;;
1106
esac
1107
case $ac_abs_builddir in
1108
.) ac_abs_top_builddir=${ac_top_builddir}.;;
1109
*)
1110
  case ${ac_top_builddir}. in
1111
  .) ac_abs_top_builddir=$ac_abs_builddir;;
1112
  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1113
  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1114
  esac;;
1115
esac
1116
case $ac_abs_builddir in
1117
.) ac_abs_srcdir=$ac_srcdir;;
1118
*)
1119
  case $ac_srcdir in
1120
  .) ac_abs_srcdir=$ac_abs_builddir;;
1121
  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1122
  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1123
  esac;;
1124
esac
1125
case $ac_abs_builddir in
1126
.) ac_abs_top_srcdir=$ac_top_srcdir;;
1127
*)
1128
  case $ac_top_srcdir in
1129
  .) ac_abs_top_srcdir=$ac_abs_builddir;;
1130
  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1131
  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1132
  esac;;
1133
esac
1100
1134
1101
    cd $ac_dir
1135
    cd $ac_dir
1102
    # Check for guested configure; otherwise get Cygnus style configure.
1136
    # Check for guested configure; otherwise get Cygnus style configure.
Lines 1107-1113 Link Here
1107
      echo
1141
      echo
1108
      $SHELL $ac_srcdir/configure  --help=recursive
1142
      $SHELL $ac_srcdir/configure  --help=recursive
1109
    elif test -f $ac_srcdir/configure.ac ||
1143
    elif test -f $ac_srcdir/configure.ac ||
1110
           test -f $ac_srcdir/configure.in; then
1144
	   test -f $ac_srcdir/configure.in; then
1111
      echo
1145
      echo
1112
      $ac_configure --help
1146
      $ac_configure --help
1113
    else
1147
    else
Lines 1121-1128 Link Here
1121
if $ac_init_version; then
1155
if $ac_init_version; then
1122
  cat <<\_ACEOF
1156
  cat <<\_ACEOF
1123
1157
1124
Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
1158
Copyright (C) 2003 Free Software Foundation, Inc.
1125
Free Software Foundation, Inc.
1126
This configure script is free software; the Free Software Foundation
1159
This configure script is free software; the Free Software Foundation
1127
gives unlimited permission to copy, distribute and modify it.
1160
gives unlimited permission to copy, distribute and modify it.
1128
_ACEOF
1161
_ACEOF
Lines 1134-1140 Link Here
1134
running configure, to aid debugging if configure makes a mistake.
1167
running configure, to aid debugging if configure makes a mistake.
1135
1168
1136
It was created by $as_me, which was
1169
It was created by $as_me, which was
1137
generated by GNU Autoconf 2.57.  Invocation command line was
1170
generated by GNU Autoconf 2.59.  Invocation command line was
1138
1171
1139
  $ $0 $@
1172
  $ $0 $@
1140
1173
Lines 1211-1229 Link Here
1211
    2)
1244
    2)
1212
      ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1245
      ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1213
      if test $ac_must_keep_next = true; then
1246
      if test $ac_must_keep_next = true; then
1214
        ac_must_keep_next=false # Got value, back to normal.
1247
	ac_must_keep_next=false # Got value, back to normal.
1215
      else
1248
      else
1216
        case $ac_arg in
1249
	case $ac_arg in
1217
          *=* | --config-cache | -C | -disable-* | --disable-* \
1250
	  *=* | --config-cache | -C | -disable-* | --disable-* \
1218
          | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1251
	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1219
          | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1252
	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1220
          | -with-* | --with-* | -without-* | --without-* | --x)
1253
	  | -with-* | --with-* | -without-* | --without-* | --x)
1221
            case "$ac_configure_args0 " in
1254
	    case "$ac_configure_args0 " in
1222
              "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1255
	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1223
            esac
1256
	    esac
1224
            ;;
1257
	    ;;
1225
          -* ) ac_must_keep_next=true ;;
1258
	  -* ) ac_must_keep_next=true ;;
1226
        esac
1259
	esac
1227
      fi
1260
      fi
1228
      ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1261
      ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1229
      # Get rid of the leading space.
1262
      # Get rid of the leading space.
Lines 1257-1268 Link Here
1257
    case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1290
    case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1258
    *ac_space=\ *)
1291
    *ac_space=\ *)
1259
      sed -n \
1292
      sed -n \
1260
        "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1293
	"s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1261
    	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1294
	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1262
      ;;
1295
      ;;
1263
    *)
1296
    *)
1264
      sed -n \
1297
      sed -n \
1265
        "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1298
	"s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1266
      ;;
1299
      ;;
1267
    esac;
1300
    esac;
1268
}
1301
}
Lines 1291-1297 Link Here
1291
      for ac_var in $ac_subst_files
1324
      for ac_var in $ac_subst_files
1292
      do
1325
      do
1293
	eval ac_val=$`echo $ac_var`
1326
	eval ac_val=$`echo $ac_var`
1294
        echo "$ac_var='"'"'$ac_val'"'"'"
1327
	echo "$ac_var='"'"'$ac_val'"'"'"
1295
      done | sort
1328
      done | sort
1296
      echo
1329
      echo
1297
    fi
1330
    fi
Lines 1310-1316 Link Here
1310
      echo "$as_me: caught signal $ac_signal"
1343
      echo "$as_me: caught signal $ac_signal"
1311
    echo "$as_me: exit $exit_status"
1344
    echo "$as_me: exit $exit_status"
1312
  } >&5
1345
  } >&5
1313
  rm -f core core.* *.core &&
1346
  rm -f core *.core &&
1314
  rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1347
  rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1315
    exit $exit_status
1348
    exit $exit_status
1316
     ' 0
1349
     ' 0
Lines 1390-1396 Link Here
1390
# value.
1423
# value.
1391
ac_cache_corrupted=false
1424
ac_cache_corrupted=false
1392
for ac_var in `(set) 2>&1 |
1425
for ac_var in `(set) 2>&1 |
1393
               sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1426
	       sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1394
  eval ac_old_set=\$ac_cv_env_${ac_var}_set
1427
  eval ac_old_set=\$ac_cv_env_${ac_var}_set
1395
  eval ac_new_set=\$ac_env_${ac_var}_set
1428
  eval ac_new_set=\$ac_env_${ac_var}_set
1396
  eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1429
  eval ac_old_val="\$ac_cv_env_${ac_var}_value"
Lines 1407-1419 Link Here
1407
    ,);;
1440
    ,);;
1408
    *)
1441
    *)
1409
      if test "x$ac_old_val" != "x$ac_new_val"; then
1442
      if test "x$ac_old_val" != "x$ac_new_val"; then
1410
        { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1443
	{ echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1411
echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1444
echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1412
        { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1445
	{ echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1413
echo "$as_me:   former value:  $ac_old_val" >&2;}
1446
echo "$as_me:   former value:  $ac_old_val" >&2;}
1414
        { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1447
	{ echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1415
echo "$as_me:   current value: $ac_new_val" >&2;}
1448
echo "$as_me:   current value: $ac_new_val" >&2;}
1416
        ac_cache_corrupted=:
1449
	ac_cache_corrupted=:
1417
      fi;;
1450
      fi;;
1418
  esac
1451
  esac
1419
  # Pass precious variables to config.status.
1452
  # Pass precious variables to config.status.
Lines 1498-1503 Link Here
1498
# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1531
# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1499
# AFS /usr/afsws/bin/install, which mishandles nonexistent args
1532
# AFS /usr/afsws/bin/install, which mishandles nonexistent args
1500
# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1533
# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1534
# OS/2's system install, which has a completely different semantic
1501
# ./install, which can be erroneously created by make from ./install.sh.
1535
# ./install, which can be erroneously created by make from ./install.sh.
1502
echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1536
echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1503
echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1537
echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
Lines 1514-1519 Link Here
1514
case $as_dir/ in
1548
case $as_dir/ in
1515
  ./ | .// | /cC/* | \
1549
  ./ | .// | /cC/* | \
1516
  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1550
  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1551
  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1517
  /usr/ucb/* ) ;;
1552
  /usr/ucb/* ) ;;
1518
  *)
1553
  *)
1519
    # OSF1 and SCO ODT 3.0 have their own names for install.
1554
    # OSF1 and SCO ODT 3.0 have their own names for install.
Lines 1521-1540 Link Here
1521
    # by default.
1556
    # by default.
1522
    for ac_prog in ginstall scoinst install; do
1557
    for ac_prog in ginstall scoinst install; do
1523
      for ac_exec_ext in '' $ac_executable_extensions; do
1558
      for ac_exec_ext in '' $ac_executable_extensions; do
1524
        if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1559
	if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1525
          if test $ac_prog = install &&
1560
	  if test $ac_prog = install &&
1526
            grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1561
	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1527
            # AIX install.  It has an incompatible calling convention.
1562
	    # AIX install.  It has an incompatible calling convention.
1528
            :
1563
	    :
1529
          elif test $ac_prog = install &&
1564
	  elif test $ac_prog = install &&
1530
            grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1565
	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1531
            # program-specific install script used by HP pwplus--don't use.
1566
	    # program-specific install script used by HP pwplus--don't use.
1532
            :
1567
	    :
1533
          else
1568
	  else
1534
            ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1569
	    ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1535
            break 3
1570
	    break 3
1536
          fi
1571
	  fi
1537
        fi
1572
	fi
1538
      done
1573
      done
1539
    done
1574
    done
1540
    ;;
1575
    ;;
Lines 1678-1684 Link Here
1678
1713
1679
echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1714
echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1680
echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1715
echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1681
set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'`
1716
set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
1682
if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1717
if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1683
  echo $ECHO_N "(cached) $ECHO_C" >&6
1718
  echo $ECHO_N "(cached) $ECHO_C" >&6
1684
else
1719
else
Lines 2264-2270 Link Here
2264
  (exit $ac_status); }
2299
  (exit $ac_status); }
2265
2300
2266
cat >conftest.$ac_ext <<_ACEOF
2301
cat >conftest.$ac_ext <<_ACEOF
2267
#line $LINENO "configure"
2268
/* confdefs.h.  */
2302
/* confdefs.h.  */
2269
_ACEOF
2303
_ACEOF
2270
cat confdefs.h >>conftest.$ac_ext
2304
cat confdefs.h >>conftest.$ac_ext
Lines 2284-2291 Link Here
2284
# Try to create an executable without -o first, disregard a.out.
2318
# Try to create an executable without -o first, disregard a.out.
2285
# It will help us diagnose broken compilers, and finding out an intuition
2319
# It will help us diagnose broken compilers, and finding out an intuition
2286
# of exeext.
2320
# of exeext.
2287
echo "$as_me:$LINENO: checking for C compiler default output" >&5
2321
echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2288
echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
2322
echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2289
ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2323
ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2290
if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2324
if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2291
  (eval $ac_link_default) 2>&5
2325
  (eval $ac_link_default) 2>&5
Lines 2305-2327 Link Here
2305
  test -f "$ac_file" || continue
2339
  test -f "$ac_file" || continue
2306
  case $ac_file in
2340
  case $ac_file in
2307
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2341
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2308
        ;;
2342
	;;
2309
    conftest.$ac_ext )
2343
    conftest.$ac_ext )
2310
        # This is the source file.
2344
	# This is the source file.
2311
        ;;
2345
	;;
2312
    [ab].out )
2346
    [ab].out )
2313
        # We found the default executable, but exeext='' is most
2347
	# We found the default executable, but exeext='' is most
2314
        # certainly right.
2348
	# certainly right.
2315
        break;;
2349
	break;;
2316
    *.* )
2350
    *.* )
2317
        ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2351
	ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2318
        # FIXME: I believe we export ac_cv_exeext for Libtool,
2352
	# FIXME: I believe we export ac_cv_exeext for Libtool,
2319
        # but it would be cool to find out if it's true.  Does anybody
2353
	# but it would be cool to find out if it's true.  Does anybody
2320
        # maintain Libtool? --akim.
2354
	# maintain Libtool? --akim.
2321
        export ac_cv_exeext
2355
	export ac_cv_exeext
2322
        break;;
2356
	break;;
2323
    * )
2357
    * )
2324
        break;;
2358
	break;;
2325
  esac
2359
  esac
2326
done
2360
done
2327
else
2361
else
Lines 2395-2402 Link Here
2395
  case $ac_file in
2429
  case $ac_file in
2396
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2430
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2397
    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2431
    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2398
          export ac_cv_exeext
2432
	  export ac_cv_exeext
2399
          break;;
2433
	  break;;
2400
    * ) break;;
2434
    * ) break;;
2401
  esac
2435
  esac
2402
done
2436
done
Lines 2421-2427 Link Here
2421
  echo $ECHO_N "(cached) $ECHO_C" >&6
2455
  echo $ECHO_N "(cached) $ECHO_C" >&6
2422
else
2456
else
2423
  cat >conftest.$ac_ext <<_ACEOF
2457
  cat >conftest.$ac_ext <<_ACEOF
2424
#line $LINENO "configure"
2425
/* confdefs.h.  */
2458
/* confdefs.h.  */
2426
_ACEOF
2459
_ACEOF
2427
cat confdefs.h >>conftest.$ac_ext
2460
cat confdefs.h >>conftest.$ac_ext
Lines 2472-2478 Link Here
2472
  echo $ECHO_N "(cached) $ECHO_C" >&6
2505
  echo $ECHO_N "(cached) $ECHO_C" >&6
2473
else
2506
else
2474
  cat >conftest.$ac_ext <<_ACEOF
2507
  cat >conftest.$ac_ext <<_ACEOF
2475
#line $LINENO "configure"
2476
/* confdefs.h.  */
2508
/* confdefs.h.  */
2477
_ACEOF
2509
_ACEOF
2478
cat confdefs.h >>conftest.$ac_ext
2510
cat confdefs.h >>conftest.$ac_ext
Lines 2492-2502 Link Here
2492
_ACEOF
2524
_ACEOF
2493
rm -f conftest.$ac_objext
2525
rm -f conftest.$ac_objext
2494
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2526
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2495
  (eval $ac_compile) 2>&5
2527
  (eval $ac_compile) 2>conftest.er1
2496
  ac_status=$?
2528
  ac_status=$?
2529
  grep -v '^ *+' conftest.er1 >conftest.err
2530
  rm -f conftest.er1
2531
  cat conftest.err >&5
2497
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2532
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2498
  (exit $ac_status); } &&
2533
  (exit $ac_status); } &&
2499
         { ac_try='test -s conftest.$ac_objext'
2534
	 { ac_try='test -z "$ac_c_werror_flag"
2535
			 || test ! -s conftest.err'
2536
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2537
  (eval $ac_try) 2>&5
2538
  ac_status=$?
2539
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2540
  (exit $ac_status); }; } &&
2541
	 { ac_try='test -s conftest.$ac_objext'
2500
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2542
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2501
  (eval $ac_try) 2>&5
2543
  (eval $ac_try) 2>&5
2502
  ac_status=$?
2544
  ac_status=$?
Lines 2509-2515 Link Here
2509
2551
2510
ac_compiler_gnu=no
2552
ac_compiler_gnu=no
2511
fi
2553
fi
2512
rm -f conftest.$ac_objext conftest.$ac_ext
2554
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2513
ac_cv_c_compiler_gnu=$ac_compiler_gnu
2555
ac_cv_c_compiler_gnu=$ac_compiler_gnu
2514
2556
2515
fi
2557
fi
Lines 2525-2531 Link Here
2525
  echo $ECHO_N "(cached) $ECHO_C" >&6
2567
  echo $ECHO_N "(cached) $ECHO_C" >&6
2526
else
2568
else
2527
  cat >conftest.$ac_ext <<_ACEOF
2569
  cat >conftest.$ac_ext <<_ACEOF
2528
#line $LINENO "configure"
2529
/* confdefs.h.  */
2570
/* confdefs.h.  */
2530
_ACEOF
2571
_ACEOF
2531
cat confdefs.h >>conftest.$ac_ext
2572
cat confdefs.h >>conftest.$ac_ext
Lines 2542-2552 Link Here
2542
_ACEOF
2583
_ACEOF
2543
rm -f conftest.$ac_objext
2584
rm -f conftest.$ac_objext
2544
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2585
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2545
  (eval $ac_compile) 2>&5
2586
  (eval $ac_compile) 2>conftest.er1
2546
  ac_status=$?
2587
  ac_status=$?
2588
  grep -v '^ *+' conftest.er1 >conftest.err
2589
  rm -f conftest.er1
2590
  cat conftest.err >&5
2547
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2591
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2548
  (exit $ac_status); } &&
2592
  (exit $ac_status); } &&
2549
         { ac_try='test -s conftest.$ac_objext'
2593
	 { ac_try='test -z "$ac_c_werror_flag"
2594
			 || test ! -s conftest.err'
2595
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2596
  (eval $ac_try) 2>&5
2597
  ac_status=$?
2598
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2599
  (exit $ac_status); }; } &&
2600
	 { ac_try='test -s conftest.$ac_objext'
2550
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2601
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2551
  (eval $ac_try) 2>&5
2602
  (eval $ac_try) 2>&5
2552
  ac_status=$?
2603
  ac_status=$?
Lines 2559-2565 Link Here
2559
2610
2560
ac_cv_prog_cc_g=no
2611
ac_cv_prog_cc_g=no
2561
fi
2612
fi
2562
rm -f conftest.$ac_objext conftest.$ac_ext
2613
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2563
fi
2614
fi
2564
echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2615
echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2565
echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2616
echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
Lines 2586-2592 Link Here
2586
  ac_cv_prog_cc_stdc=no
2637
  ac_cv_prog_cc_stdc=no
2587
ac_save_CC=$CC
2638
ac_save_CC=$CC
2588
cat >conftest.$ac_ext <<_ACEOF
2639
cat >conftest.$ac_ext <<_ACEOF
2589
#line $LINENO "configure"
2590
/* confdefs.h.  */
2640
/* confdefs.h.  */
2591
_ACEOF
2641
_ACEOF
2592
cat confdefs.h >>conftest.$ac_ext
2642
cat confdefs.h >>conftest.$ac_ext
Lines 2614-2619 Link Here
2614
  va_end (v);
2664
  va_end (v);
2615
  return s;
2665
  return s;
2616
}
2666
}
2667
2668
/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2669
   function prototypes and stuff, but not '\xHH' hex character constants.
2670
   These don't provoke an error unfortunately, instead are silently treated
2671
   as 'x'.  The following induces an error, until -std1 is added to get
2672
   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2673
   array size at least.  It's necessary to write '\x00'==0 to get something
2674
   that's true only with -std1.  */
2675
int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2676
2617
int test (int i, double x);
2677
int test (int i, double x);
2618
struct s1 {int (*f) (int a);};
2678
struct s1 {int (*f) (int a);};
2619
struct s2 {int (*f) (double a);};
2679
struct s2 {int (*f) (double a);};
Lines 2640-2650 Link Here
2640
  CC="$ac_save_CC $ac_arg"
2700
  CC="$ac_save_CC $ac_arg"
2641
  rm -f conftest.$ac_objext
2701
  rm -f conftest.$ac_objext
2642
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2702
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2643
  (eval $ac_compile) 2>&5
2703
  (eval $ac_compile) 2>conftest.er1
2644
  ac_status=$?
2704
  ac_status=$?
2705
  grep -v '^ *+' conftest.er1 >conftest.err
2706
  rm -f conftest.er1
2707
  cat conftest.err >&5
2645
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2708
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2646
  (exit $ac_status); } &&
2709
  (exit $ac_status); } &&
2647
         { ac_try='test -s conftest.$ac_objext'
2710
	 { ac_try='test -z "$ac_c_werror_flag"
2711
			 || test ! -s conftest.err'
2712
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2713
  (eval $ac_try) 2>&5
2714
  ac_status=$?
2715
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2716
  (exit $ac_status); }; } &&
2717
	 { ac_try='test -s conftest.$ac_objext'
2648
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2718
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2649
  (eval $ac_try) 2>&5
2719
  (eval $ac_try) 2>&5
2650
  ac_status=$?
2720
  ac_status=$?
Lines 2657-2663 Link Here
2657
sed 's/^/| /' conftest.$ac_ext >&5
2727
sed 's/^/| /' conftest.$ac_ext >&5
2658
2728
2659
fi
2729
fi
2660
rm -f conftest.$ac_objext
2730
rm -f conftest.err conftest.$ac_objext
2661
done
2731
done
2662
rm -f conftest.$ac_ext conftest.$ac_objext
2732
rm -f conftest.$ac_ext conftest.$ac_objext
2663
CC=$ac_save_CC
2733
CC=$ac_save_CC
Lines 2685-2703 Link Here
2685
_ACEOF
2755
_ACEOF
2686
rm -f conftest.$ac_objext
2756
rm -f conftest.$ac_objext
2687
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2757
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2688
  (eval $ac_compile) 2>&5
2758
  (eval $ac_compile) 2>conftest.er1
2689
  ac_status=$?
2759
  ac_status=$?
2760
  grep -v '^ *+' conftest.er1 >conftest.err
2761
  rm -f conftest.er1
2762
  cat conftest.err >&5
2690
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2763
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2691
  (exit $ac_status); } &&
2764
  (exit $ac_status); } &&
2692
         { ac_try='test -s conftest.$ac_objext'
2765
	 { ac_try='test -z "$ac_c_werror_flag"
2766
			 || test ! -s conftest.err'
2767
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2768
  (eval $ac_try) 2>&5
2769
  ac_status=$?
2770
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2771
  (exit $ac_status); }; } &&
2772
	 { ac_try='test -s conftest.$ac_objext'
2693
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2773
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2694
  (eval $ac_try) 2>&5
2774
  (eval $ac_try) 2>&5
2695
  ac_status=$?
2775
  ac_status=$?
2696
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2776
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2697
  (exit $ac_status); }; }; then
2777
  (exit $ac_status); }; }; then
2698
  for ac_declaration in \
2778
  for ac_declaration in \
2699
   ''\
2779
   '' \
2700
   '#include <stdlib.h>' \
2701
   'extern "C" void std::exit (int) throw (); using std::exit;' \
2780
   'extern "C" void std::exit (int) throw (); using std::exit;' \
2702
   'extern "C" void std::exit (int); using std::exit;' \
2781
   'extern "C" void std::exit (int); using std::exit;' \
2703
   'extern "C" void exit (int) throw ();' \
2782
   'extern "C" void exit (int) throw ();' \
Lines 2705-2718 Link Here
2705
   'void exit (int);'
2784
   'void exit (int);'
2706
do
2785
do
2707
  cat >conftest.$ac_ext <<_ACEOF
2786
  cat >conftest.$ac_ext <<_ACEOF
2708
#line $LINENO "configure"
2709
/* confdefs.h.  */
2787
/* confdefs.h.  */
2710
_ACEOF
2788
_ACEOF
2711
cat confdefs.h >>conftest.$ac_ext
2789
cat confdefs.h >>conftest.$ac_ext
2712
cat >>conftest.$ac_ext <<_ACEOF
2790
cat >>conftest.$ac_ext <<_ACEOF
2713
/* end confdefs.h.  */
2791
/* end confdefs.h.  */
2714
#include <stdlib.h>
2715
$ac_declaration
2792
$ac_declaration
2793
#include <stdlib.h>
2716
int
2794
int
2717
main ()
2795
main ()
2718
{
2796
{
Lines 2723-2733 Link Here
2723
_ACEOF
2801
_ACEOF
2724
rm -f conftest.$ac_objext
2802
rm -f conftest.$ac_objext
2725
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2803
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2726
  (eval $ac_compile) 2>&5
2804
  (eval $ac_compile) 2>conftest.er1
2727
  ac_status=$?
2805
  ac_status=$?
2806
  grep -v '^ *+' conftest.er1 >conftest.err
2807
  rm -f conftest.er1
2808
  cat conftest.err >&5
2728
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2809
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2729
  (exit $ac_status); } &&
2810
  (exit $ac_status); } &&
2730
         { ac_try='test -s conftest.$ac_objext'
2811
	 { ac_try='test -z "$ac_c_werror_flag"
2812
			 || test ! -s conftest.err'
2813
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2814
  (eval $ac_try) 2>&5
2815
  ac_status=$?
2816
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2817
  (exit $ac_status); }; } &&
2818
	 { ac_try='test -s conftest.$ac_objext'
2731
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2819
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2732
  (eval $ac_try) 2>&5
2820
  (eval $ac_try) 2>&5
2733
  ac_status=$?
2821
  ac_status=$?
Lines 2740-2748 Link Here
2740
2828
2741
continue
2829
continue
2742
fi
2830
fi
2743
rm -f conftest.$ac_objext conftest.$ac_ext
2831
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2744
  cat >conftest.$ac_ext <<_ACEOF
2832
  cat >conftest.$ac_ext <<_ACEOF
2745
#line $LINENO "configure"
2746
/* confdefs.h.  */
2833
/* confdefs.h.  */
2747
_ACEOF
2834
_ACEOF
2748
cat confdefs.h >>conftest.$ac_ext
2835
cat confdefs.h >>conftest.$ac_ext
Lines 2759-2769 Link Here
2759
_ACEOF
2846
_ACEOF
2760
rm -f conftest.$ac_objext
2847
rm -f conftest.$ac_objext
2761
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2848
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2762
  (eval $ac_compile) 2>&5
2849
  (eval $ac_compile) 2>conftest.er1
2763
  ac_status=$?
2850
  ac_status=$?
2851
  grep -v '^ *+' conftest.er1 >conftest.err
2852
  rm -f conftest.er1
2853
  cat conftest.err >&5
2764
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2854
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2765
  (exit $ac_status); } &&
2855
  (exit $ac_status); } &&
2766
         { ac_try='test -s conftest.$ac_objext'
2856
	 { ac_try='test -z "$ac_c_werror_flag"
2857
			 || test ! -s conftest.err'
2858
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2859
  (eval $ac_try) 2>&5
2860
  ac_status=$?
2861
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2862
  (exit $ac_status); }; } &&
2863
	 { ac_try='test -s conftest.$ac_objext'
2767
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2864
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2768
  (eval $ac_try) 2>&5
2865
  (eval $ac_try) 2>&5
2769
  ac_status=$?
2866
  ac_status=$?
Lines 2775-2781 Link Here
2775
sed 's/^/| /' conftest.$ac_ext >&5
2872
sed 's/^/| /' conftest.$ac_ext >&5
2776
2873
2777
fi
2874
fi
2778
rm -f conftest.$ac_objext conftest.$ac_ext
2875
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2779
done
2876
done
2780
rm -f conftest*
2877
rm -f conftest*
2781
if test -n "$ac_declaration"; then
2878
if test -n "$ac_declaration"; then
Lines 2789-2795 Link Here
2789
sed 's/^/| /' conftest.$ac_ext >&5
2886
sed 's/^/| /' conftest.$ac_ext >&5
2790
2887
2791
fi
2888
fi
2792
rm -f conftest.$ac_objext conftest.$ac_ext
2889
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2793
ac_ext=c
2890
ac_ext=c
2794
ac_cpp='$CPP $CPPFLAGS'
2891
ac_cpp='$CPP $CPPFLAGS'
2795
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2892
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
Lines 2908-2914 Link Here
2908
  ac_check_lib_save_LIBS=$LIBS
3005
  ac_check_lib_save_LIBS=$LIBS
2909
LIBS="-lcposix  $LIBS"
3006
LIBS="-lcposix  $LIBS"
2910
cat >conftest.$ac_ext <<_ACEOF
3007
cat >conftest.$ac_ext <<_ACEOF
2911
#line $LINENO "configure"
2912
/* confdefs.h.  */
3008
/* confdefs.h.  */
2913
_ACEOF
3009
_ACEOF
2914
cat confdefs.h >>conftest.$ac_ext
3010
cat confdefs.h >>conftest.$ac_ext
Lines 2932-2942 Link Here
2932
_ACEOF
3028
_ACEOF
2933
rm -f conftest.$ac_objext conftest$ac_exeext
3029
rm -f conftest.$ac_objext conftest$ac_exeext
2934
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3030
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2935
  (eval $ac_link) 2>&5
3031
  (eval $ac_link) 2>conftest.er1
2936
  ac_status=$?
3032
  ac_status=$?
3033
  grep -v '^ *+' conftest.er1 >conftest.err
3034
  rm -f conftest.er1
3035
  cat conftest.err >&5
2937
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3036
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2938
  (exit $ac_status); } &&
3037
  (exit $ac_status); } &&
2939
         { ac_try='test -s conftest$ac_exeext'
3038
	 { ac_try='test -z "$ac_c_werror_flag"
3039
			 || test ! -s conftest.err'
3040
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3041
  (eval $ac_try) 2>&5
3042
  ac_status=$?
3043
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3044
  (exit $ac_status); }; } &&
3045
	 { ac_try='test -s conftest$ac_exeext'
2940
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3046
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2941
  (eval $ac_try) 2>&5
3047
  (eval $ac_try) 2>&5
2942
  ac_status=$?
3048
  ac_status=$?
Lines 2949-2955 Link Here
2949
3055
2950
ac_cv_lib_cposix_strerror=no
3056
ac_cv_lib_cposix_strerror=no
2951
fi
3057
fi
2952
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3058
rm -f conftest.err conftest.$ac_objext \
3059
      conftest$ac_exeext conftest.$ac_ext
2953
LIBS=$ac_check_lib_save_LIBS
3060
LIBS=$ac_check_lib_save_LIBS
2954
fi
3061
fi
2955
echo "$as_me:$LINENO: result: $ac_cv_lib_cposix_strerror" >&5
3062
echo "$as_me:$LINENO: result: $ac_cv_lib_cposix_strerror" >&5
Lines 3301-3307 Link Here
3301
  echo $ECHO_N "(cached) $ECHO_C" >&6
3408
  echo $ECHO_N "(cached) $ECHO_C" >&6
3302
else
3409
else
3303
  cat >conftest.$ac_ext <<_ACEOF
3410
  cat >conftest.$ac_ext <<_ACEOF
3304
#line $LINENO "configure"
3305
/* confdefs.h.  */
3411
/* confdefs.h.  */
3306
_ACEOF
3412
_ACEOF
3307
cat confdefs.h >>conftest.$ac_ext
3413
cat confdefs.h >>conftest.$ac_ext
Lines 3321-3331 Link Here
3321
_ACEOF
3427
_ACEOF
3322
rm -f conftest.$ac_objext
3428
rm -f conftest.$ac_objext
3323
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3429
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3324
  (eval $ac_compile) 2>&5
3430
  (eval $ac_compile) 2>conftest.er1
3325
  ac_status=$?
3431
  ac_status=$?
3432
  grep -v '^ *+' conftest.er1 >conftest.err
3433
  rm -f conftest.er1
3434
  cat conftest.err >&5
3326
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3435
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3327
  (exit $ac_status); } &&
3436
  (exit $ac_status); } &&
3328
         { ac_try='test -s conftest.$ac_objext'
3437
	 { ac_try='test -z "$ac_c_werror_flag"
3438
			 || test ! -s conftest.err'
3439
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3440
  (eval $ac_try) 2>&5
3441
  ac_status=$?
3442
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3443
  (exit $ac_status); }; } &&
3444
	 { ac_try='test -s conftest.$ac_objext'
3329
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3445
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3330
  (eval $ac_try) 2>&5
3446
  (eval $ac_try) 2>&5
3331
  ac_status=$?
3447
  ac_status=$?
Lines 3338-3344 Link Here
3338
3454
3339
ac_compiler_gnu=no
3455
ac_compiler_gnu=no
3340
fi
3456
fi
3341
rm -f conftest.$ac_objext conftest.$ac_ext
3457
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3342
ac_cv_c_compiler_gnu=$ac_compiler_gnu
3458
ac_cv_c_compiler_gnu=$ac_compiler_gnu
3343
3459
3344
fi
3460
fi
Lines 3354-3360 Link Here
3354
  echo $ECHO_N "(cached) $ECHO_C" >&6
3470
  echo $ECHO_N "(cached) $ECHO_C" >&6
3355
else
3471
else
3356
  cat >conftest.$ac_ext <<_ACEOF
3472
  cat >conftest.$ac_ext <<_ACEOF
3357
#line $LINENO "configure"
3358
/* confdefs.h.  */
3473
/* confdefs.h.  */
3359
_ACEOF
3474
_ACEOF
3360
cat confdefs.h >>conftest.$ac_ext
3475
cat confdefs.h >>conftest.$ac_ext
Lines 3371-3381 Link Here
3371
_ACEOF
3486
_ACEOF
3372
rm -f conftest.$ac_objext
3487
rm -f conftest.$ac_objext
3373
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3488
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3374
  (eval $ac_compile) 2>&5
3489
  (eval $ac_compile) 2>conftest.er1
3375
  ac_status=$?
3490
  ac_status=$?
3491
  grep -v '^ *+' conftest.er1 >conftest.err
3492
  rm -f conftest.er1
3493
  cat conftest.err >&5
3376
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3494
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3377
  (exit $ac_status); } &&
3495
  (exit $ac_status); } &&
3378
         { ac_try='test -s conftest.$ac_objext'
3496
	 { ac_try='test -z "$ac_c_werror_flag"
3497
			 || test ! -s conftest.err'
3498
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3499
  (eval $ac_try) 2>&5
3500
  ac_status=$?
3501
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3502
  (exit $ac_status); }; } &&
3503
	 { ac_try='test -s conftest.$ac_objext'
3379
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3504
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3380
  (eval $ac_try) 2>&5
3505
  (eval $ac_try) 2>&5
3381
  ac_status=$?
3506
  ac_status=$?
Lines 3388-3394 Link Here
3388
3513
3389
ac_cv_prog_cc_g=no
3514
ac_cv_prog_cc_g=no
3390
fi
3515
fi
3391
rm -f conftest.$ac_objext conftest.$ac_ext
3516
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3392
fi
3517
fi
3393
echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3518
echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3394
echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
3519
echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
Lines 3415-3421 Link Here
3415
  ac_cv_prog_cc_stdc=no
3540
  ac_cv_prog_cc_stdc=no
3416
ac_save_CC=$CC
3541
ac_save_CC=$CC
3417
cat >conftest.$ac_ext <<_ACEOF
3542
cat >conftest.$ac_ext <<_ACEOF
3418
#line $LINENO "configure"
3419
/* confdefs.h.  */
3543
/* confdefs.h.  */
3420
_ACEOF
3544
_ACEOF
3421
cat confdefs.h >>conftest.$ac_ext
3545
cat confdefs.h >>conftest.$ac_ext
Lines 3443-3448 Link Here
3443
  va_end (v);
3567
  va_end (v);
3444
  return s;
3568
  return s;
3445
}
3569
}
3570
3571
/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3572
   function prototypes and stuff, but not '\xHH' hex character constants.
3573
   These don't provoke an error unfortunately, instead are silently treated
3574
   as 'x'.  The following induces an error, until -std1 is added to get
3575
   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3576
   array size at least.  It's necessary to write '\x00'==0 to get something
3577
   that's true only with -std1.  */
3578
int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3579
3446
int test (int i, double x);
3580
int test (int i, double x);
3447
struct s1 {int (*f) (int a);};
3581
struct s1 {int (*f) (int a);};
3448
struct s2 {int (*f) (double a);};
3582
struct s2 {int (*f) (double a);};
Lines 3469-3479 Link Here
3469
  CC="$ac_save_CC $ac_arg"
3603
  CC="$ac_save_CC $ac_arg"
3470
  rm -f conftest.$ac_objext
3604
  rm -f conftest.$ac_objext
3471
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3605
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3472
  (eval $ac_compile) 2>&5
3606
  (eval $ac_compile) 2>conftest.er1
3473
  ac_status=$?
3607
  ac_status=$?
3608
  grep -v '^ *+' conftest.er1 >conftest.err
3609
  rm -f conftest.er1
3610
  cat conftest.err >&5
3474
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3611
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3475
  (exit $ac_status); } &&
3612
  (exit $ac_status); } &&
3476
         { ac_try='test -s conftest.$ac_objext'
3613
	 { ac_try='test -z "$ac_c_werror_flag"
3614
			 || test ! -s conftest.err'
3615
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3616
  (eval $ac_try) 2>&5
3617
  ac_status=$?
3618
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3619
  (exit $ac_status); }; } &&
3620
	 { ac_try='test -s conftest.$ac_objext'
3477
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3621
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3478
  (eval $ac_try) 2>&5
3622
  (eval $ac_try) 2>&5
3479
  ac_status=$?
3623
  ac_status=$?
Lines 3486-3492 Link Here
3486
sed 's/^/| /' conftest.$ac_ext >&5
3630
sed 's/^/| /' conftest.$ac_ext >&5
3487
3631
3488
fi
3632
fi
3489
rm -f conftest.$ac_objext
3633
rm -f conftest.err conftest.$ac_objext
3490
done
3634
done
3491
rm -f conftest.$ac_ext conftest.$ac_objext
3635
rm -f conftest.$ac_ext conftest.$ac_objext
3492
CC=$ac_save_CC
3636
CC=$ac_save_CC
Lines 3514-3532 Link Here
3514
_ACEOF
3658
_ACEOF
3515
rm -f conftest.$ac_objext
3659
rm -f conftest.$ac_objext
3516
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3660
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3517
  (eval $ac_compile) 2>&5
3661
  (eval $ac_compile) 2>conftest.er1
3518
  ac_status=$?
3662
  ac_status=$?
3663
  grep -v '^ *+' conftest.er1 >conftest.err
3664
  rm -f conftest.er1
3665
  cat conftest.err >&5
3519
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3666
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3520
  (exit $ac_status); } &&
3667
  (exit $ac_status); } &&
3521
         { ac_try='test -s conftest.$ac_objext'
3668
	 { ac_try='test -z "$ac_c_werror_flag"
3669
			 || test ! -s conftest.err'
3670
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3671
  (eval $ac_try) 2>&5
3672
  ac_status=$?
3673
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3674
  (exit $ac_status); }; } &&
3675
	 { ac_try='test -s conftest.$ac_objext'
3522
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3676
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3523
  (eval $ac_try) 2>&5
3677
  (eval $ac_try) 2>&5
3524
  ac_status=$?
3678
  ac_status=$?
3525
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3679
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3526
  (exit $ac_status); }; }; then
3680
  (exit $ac_status); }; }; then
3527
  for ac_declaration in \
3681
  for ac_declaration in \
3528
   ''\
3682
   '' \
3529
   '#include <stdlib.h>' \
3530
   'extern "C" void std::exit (int) throw (); using std::exit;' \
3683
   'extern "C" void std::exit (int) throw (); using std::exit;' \
3531
   'extern "C" void std::exit (int); using std::exit;' \
3684
   'extern "C" void std::exit (int); using std::exit;' \
3532
   'extern "C" void exit (int) throw ();' \
3685
   'extern "C" void exit (int) throw ();' \
Lines 3534-3547 Link Here
3534
   'void exit (int);'
3687
   'void exit (int);'
3535
do
3688
do
3536
  cat >conftest.$ac_ext <<_ACEOF
3689
  cat >conftest.$ac_ext <<_ACEOF
3537
#line $LINENO "configure"
3538
/* confdefs.h.  */
3690
/* confdefs.h.  */
3539
_ACEOF
3691
_ACEOF
3540
cat confdefs.h >>conftest.$ac_ext
3692
cat confdefs.h >>conftest.$ac_ext
3541
cat >>conftest.$ac_ext <<_ACEOF
3693
cat >>conftest.$ac_ext <<_ACEOF
3542
/* end confdefs.h.  */
3694
/* end confdefs.h.  */
3543
#include <stdlib.h>
3544
$ac_declaration
3695
$ac_declaration
3696
#include <stdlib.h>
3545
int
3697
int
3546
main ()
3698
main ()
3547
{
3699
{
Lines 3552-3562 Link Here
3552
_ACEOF
3704
_ACEOF
3553
rm -f conftest.$ac_objext
3705
rm -f conftest.$ac_objext
3554
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3706
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3555
  (eval $ac_compile) 2>&5
3707
  (eval $ac_compile) 2>conftest.er1
3556
  ac_status=$?
3708
  ac_status=$?
3709
  grep -v '^ *+' conftest.er1 >conftest.err
3710
  rm -f conftest.er1
3711
  cat conftest.err >&5
3557
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3712
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3558
  (exit $ac_status); } &&
3713
  (exit $ac_status); } &&
3559
         { ac_try='test -s conftest.$ac_objext'
3714
	 { ac_try='test -z "$ac_c_werror_flag"
3715
			 || test ! -s conftest.err'
3716
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3717
  (eval $ac_try) 2>&5
3718
  ac_status=$?
3719
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3720
  (exit $ac_status); }; } &&
3721
	 { ac_try='test -s conftest.$ac_objext'
3560
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3722
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3561
  (eval $ac_try) 2>&5
3723
  (eval $ac_try) 2>&5
3562
  ac_status=$?
3724
  ac_status=$?
Lines 3569-3577 Link Here
3569
3731
3570
continue
3732
continue
3571
fi
3733
fi
3572
rm -f conftest.$ac_objext conftest.$ac_ext
3734
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3573
  cat >conftest.$ac_ext <<_ACEOF
3735
  cat >conftest.$ac_ext <<_ACEOF
3574
#line $LINENO "configure"
3575
/* confdefs.h.  */
3736
/* confdefs.h.  */
3576
_ACEOF
3737
_ACEOF
3577
cat confdefs.h >>conftest.$ac_ext
3738
cat confdefs.h >>conftest.$ac_ext
Lines 3588-3598 Link Here
3588
_ACEOF
3749
_ACEOF
3589
rm -f conftest.$ac_objext
3750
rm -f conftest.$ac_objext
3590
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3751
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3591
  (eval $ac_compile) 2>&5
3752
  (eval $ac_compile) 2>conftest.er1
3592
  ac_status=$?
3753
  ac_status=$?
3754
  grep -v '^ *+' conftest.er1 >conftest.err
3755
  rm -f conftest.er1
3756
  cat conftest.err >&5
3593
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3757
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3594
  (exit $ac_status); } &&
3758
  (exit $ac_status); } &&
3595
         { ac_try='test -s conftest.$ac_objext'
3759
	 { ac_try='test -z "$ac_c_werror_flag"
3760
			 || test ! -s conftest.err'
3761
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3762
  (eval $ac_try) 2>&5
3763
  ac_status=$?
3764
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3765
  (exit $ac_status); }; } &&
3766
	 { ac_try='test -s conftest.$ac_objext'
3596
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3767
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3597
  (eval $ac_try) 2>&5
3768
  (eval $ac_try) 2>&5
3598
  ac_status=$?
3769
  ac_status=$?
Lines 3604-3610 Link Here
3604
sed 's/^/| /' conftest.$ac_ext >&5
3775
sed 's/^/| /' conftest.$ac_ext >&5
3605
3776
3606
fi
3777
fi
3607
rm -f conftest.$ac_objext conftest.$ac_ext
3778
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3608
done
3779
done
3609
rm -f conftest*
3780
rm -f conftest*
3610
if test -n "$ac_declaration"; then
3781
if test -n "$ac_declaration"; then
Lines 3618-3624 Link Here
3618
sed 's/^/| /' conftest.$ac_ext >&5
3789
sed 's/^/| /' conftest.$ac_ext >&5
3619
3790
3620
fi
3791
fi
3621
rm -f conftest.$ac_objext conftest.$ac_ext
3792
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3622
ac_ext=c
3793
ac_ext=c
3623
ac_cpp='$CPP $CPPFLAGS'
3794
ac_cpp='$CPP $CPPFLAGS'
3624
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3795
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
Lines 3748-3754 Link Here
3748
do
3919
do
3749
  CC="$ac_save_CC $ac_arg"
3920
  CC="$ac_save_CC $ac_arg"
3750
  cat >conftest.$ac_ext <<_ACEOF
3921
  cat >conftest.$ac_ext <<_ACEOF
3751
#line $LINENO "configure"
3752
/* confdefs.h.  */
3922
/* confdefs.h.  */
3753
_ACEOF
3923
_ACEOF
3754
cat confdefs.h >>conftest.$ac_ext
3924
cat confdefs.h >>conftest.$ac_ext
Lines 3795-3805 Link Here
3795
_ACEOF
3965
_ACEOF
3796
rm -f conftest.$ac_objext
3966
rm -f conftest.$ac_objext
3797
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3967
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3798
  (eval $ac_compile) 2>&5
3968
  (eval $ac_compile) 2>conftest.er1
3799
  ac_status=$?
3969
  ac_status=$?
3970
  grep -v '^ *+' conftest.er1 >conftest.err
3971
  rm -f conftest.er1
3972
  cat conftest.err >&5
3800
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3973
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3801
  (exit $ac_status); } &&
3974
  (exit $ac_status); } &&
3802
         { ac_try='test -s conftest.$ac_objext'
3975
	 { ac_try='test -z "$ac_c_werror_flag"
3976
			 || test ! -s conftest.err'
3977
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3978
  (eval $ac_try) 2>&5
3979
  ac_status=$?
3980
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3981
  (exit $ac_status); }; } &&
3982
	 { ac_try='test -s conftest.$ac_objext'
3803
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3983
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3804
  (eval $ac_try) 2>&5
3984
  (eval $ac_try) 2>&5
3805
  ac_status=$?
3985
  ac_status=$?
Lines 3811-3817 Link Here
3811
sed 's/^/| /' conftest.$ac_ext >&5
3991
sed 's/^/| /' conftest.$ac_ext >&5
3812
3992
3813
fi
3993
fi
3814
rm -f conftest.$ac_objext conftest.$ac_ext
3994
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3815
done
3995
done
3816
CC="$ac_save_CC"
3996
CC="$ac_save_CC"
3817
3997
Lines 3857-3863 Link Here
3857
  # On the NeXT, cc -E runs the code through the compiler's parser,
4037
  # On the NeXT, cc -E runs the code through the compiler's parser,
3858
  # not just through cpp. "Syntax error" is here to catch this case.
4038
  # not just through cpp. "Syntax error" is here to catch this case.
3859
  cat >conftest.$ac_ext <<_ACEOF
4039
  cat >conftest.$ac_ext <<_ACEOF
3860
#line $LINENO "configure"
3861
/* confdefs.h.  */
4040
/* confdefs.h.  */
3862
_ACEOF
4041
_ACEOF
3863
cat confdefs.h >>conftest.$ac_ext
4042
cat confdefs.h >>conftest.$ac_ext
Lines 3868-3874 Link Here
3868
#else
4047
#else
3869
# include <assert.h>
4048
# include <assert.h>
3870
#endif
4049
#endif
3871
                     Syntax error
4050
		     Syntax error
3872
_ACEOF
4051
_ACEOF
3873
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4052
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3874
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4053
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
Lines 3880-3885 Link Here
3880
  (exit $ac_status); } >/dev/null; then
4059
  (exit $ac_status); } >/dev/null; then
3881
  if test -s conftest.err; then
4060
  if test -s conftest.err; then
3882
    ac_cpp_err=$ac_c_preproc_warn_flag
4061
    ac_cpp_err=$ac_c_preproc_warn_flag
4062
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3883
  else
4063
  else
3884
    ac_cpp_err=
4064
    ac_cpp_err=
3885
  fi
4065
  fi
Lines 3900-3906 Link Here
3900
  # OK, works on sane cases.  Now check whether non-existent headers
4080
  # OK, works on sane cases.  Now check whether non-existent headers
3901
  # can be detected and how.
4081
  # can be detected and how.
3902
  cat >conftest.$ac_ext <<_ACEOF
4082
  cat >conftest.$ac_ext <<_ACEOF
3903
#line $LINENO "configure"
3904
/* confdefs.h.  */
4083
/* confdefs.h.  */
3905
_ACEOF
4084
_ACEOF
3906
cat confdefs.h >>conftest.$ac_ext
4085
cat confdefs.h >>conftest.$ac_ext
Lines 3918-3923 Link Here
3918
  (exit $ac_status); } >/dev/null; then
4097
  (exit $ac_status); } >/dev/null; then
3919
  if test -s conftest.err; then
4098
  if test -s conftest.err; then
3920
    ac_cpp_err=$ac_c_preproc_warn_flag
4099
    ac_cpp_err=$ac_c_preproc_warn_flag
4100
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3921
  else
4101
  else
3922
    ac_cpp_err=
4102
    ac_cpp_err=
3923
  fi
4103
  fi
Lines 3964-3970 Link Here
3964
  # On the NeXT, cc -E runs the code through the compiler's parser,
4144
  # On the NeXT, cc -E runs the code through the compiler's parser,
3965
  # not just through cpp. "Syntax error" is here to catch this case.
4145
  # not just through cpp. "Syntax error" is here to catch this case.
3966
  cat >conftest.$ac_ext <<_ACEOF
4146
  cat >conftest.$ac_ext <<_ACEOF
3967
#line $LINENO "configure"
3968
/* confdefs.h.  */
4147
/* confdefs.h.  */
3969
_ACEOF
4148
_ACEOF
3970
cat confdefs.h >>conftest.$ac_ext
4149
cat confdefs.h >>conftest.$ac_ext
Lines 3975-3981 Link Here
3975
#else
4154
#else
3976
# include <assert.h>
4155
# include <assert.h>
3977
#endif
4156
#endif
3978
                     Syntax error
4157
		     Syntax error
3979
_ACEOF
4158
_ACEOF
3980
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4159
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3981
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4160
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
Lines 3987-3992 Link Here
3987
  (exit $ac_status); } >/dev/null; then
4166
  (exit $ac_status); } >/dev/null; then
3988
  if test -s conftest.err; then
4167
  if test -s conftest.err; then
3989
    ac_cpp_err=$ac_c_preproc_warn_flag
4168
    ac_cpp_err=$ac_c_preproc_warn_flag
4169
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3990
  else
4170
  else
3991
    ac_cpp_err=
4171
    ac_cpp_err=
3992
  fi
4172
  fi
Lines 4007-4013 Link Here
4007
  # OK, works on sane cases.  Now check whether non-existent headers
4187
  # OK, works on sane cases.  Now check whether non-existent headers
4008
  # can be detected and how.
4188
  # can be detected and how.
4009
  cat >conftest.$ac_ext <<_ACEOF
4189
  cat >conftest.$ac_ext <<_ACEOF
4010
#line $LINENO "configure"
4011
/* confdefs.h.  */
4190
/* confdefs.h.  */
4012
_ACEOF
4191
_ACEOF
4013
cat confdefs.h >>conftest.$ac_ext
4192
cat confdefs.h >>conftest.$ac_ext
Lines 4025-4030 Link Here
4025
  (exit $ac_status); } >/dev/null; then
4204
  (exit $ac_status); } >/dev/null; then
4026
  if test -s conftest.err; then
4205
  if test -s conftest.err; then
4027
    ac_cpp_err=$ac_c_preproc_warn_flag
4206
    ac_cpp_err=$ac_c_preproc_warn_flag
4207
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4028
  else
4208
  else
4029
    ac_cpp_err=
4209
    ac_cpp_err=
4030
  fi
4210
  fi
Lines 4085-4091 Link Here
4085
  echo $ECHO_N "(cached) $ECHO_C" >&6
4265
  echo $ECHO_N "(cached) $ECHO_C" >&6
4086
else
4266
else
4087
  cat >conftest.$ac_ext <<_ACEOF
4267
  cat >conftest.$ac_ext <<_ACEOF
4088
#line $LINENO "configure"
4089
/* confdefs.h.  */
4268
/* confdefs.h.  */
4090
_ACEOF
4269
_ACEOF
4091
cat confdefs.h >>conftest.$ac_ext
4270
cat confdefs.h >>conftest.$ac_ext
Lines 4106-4116 Link Here
4106
_ACEOF
4285
_ACEOF
4107
rm -f conftest.$ac_objext
4286
rm -f conftest.$ac_objext
4108
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4287
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4109
  (eval $ac_compile) 2>&5
4288
  (eval $ac_compile) 2>conftest.er1
4110
  ac_status=$?
4289
  ac_status=$?
4290
  grep -v '^ *+' conftest.er1 >conftest.err
4291
  rm -f conftest.er1
4292
  cat conftest.err >&5
4111
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4293
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4112
  (exit $ac_status); } &&
4294
  (exit $ac_status); } &&
4113
         { ac_try='test -s conftest.$ac_objext'
4295
	 { ac_try='test -z "$ac_c_werror_flag"
4296
			 || test ! -s conftest.err'
4297
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4298
  (eval $ac_try) 2>&5
4299
  ac_status=$?
4300
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4301
  (exit $ac_status); }; } &&
4302
	 { ac_try='test -s conftest.$ac_objext'
4114
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4303
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4115
  (eval $ac_try) 2>&5
4304
  (eval $ac_try) 2>&5
4116
  ac_status=$?
4305
  ac_status=$?
Lines 4123-4134 Link Here
4123
4312
4124
ac_cv_header_stdc=no
4313
ac_cv_header_stdc=no
4125
fi
4314
fi
4126
rm -f conftest.$ac_objext conftest.$ac_ext
4315
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4127
4316
4128
if test $ac_cv_header_stdc = yes; then
4317
if test $ac_cv_header_stdc = yes; then
4129
  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4318
  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4130
  cat >conftest.$ac_ext <<_ACEOF
4319
  cat >conftest.$ac_ext <<_ACEOF
4131
#line $LINENO "configure"
4132
/* confdefs.h.  */
4320
/* confdefs.h.  */
4133
_ACEOF
4321
_ACEOF
4134
cat confdefs.h >>conftest.$ac_ext
4322
cat confdefs.h >>conftest.$ac_ext
Lines 4150-4156 Link Here
4150
if test $ac_cv_header_stdc = yes; then
4338
if test $ac_cv_header_stdc = yes; then
4151
  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4339
  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4152
  cat >conftest.$ac_ext <<_ACEOF
4340
  cat >conftest.$ac_ext <<_ACEOF
4153
#line $LINENO "configure"
4154
/* confdefs.h.  */
4341
/* confdefs.h.  */
4155
_ACEOF
4342
_ACEOF
4156
cat confdefs.h >>conftest.$ac_ext
4343
cat confdefs.h >>conftest.$ac_ext
Lines 4175-4181 Link Here
4175
  :
4362
  :
4176
else
4363
else
4177
  cat >conftest.$ac_ext <<_ACEOF
4364
  cat >conftest.$ac_ext <<_ACEOF
4178
#line $LINENO "configure"
4179
/* confdefs.h.  */
4365
/* confdefs.h.  */
4180
_ACEOF
4366
_ACEOF
4181
cat confdefs.h >>conftest.$ac_ext
4367
cat confdefs.h >>conftest.$ac_ext
Lines 4187-4195 Link Here
4187
# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4373
# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4188
#else
4374
#else
4189
# define ISLOWER(c) \
4375
# define ISLOWER(c) \
4190
                   (('a' <= (c) && (c) <= 'i') \
4376
		   (('a' <= (c) && (c) <= 'i') \
4191
                     || ('j' <= (c) && (c) <= 'r') \
4377
		     || ('j' <= (c) && (c) <= 'r') \
4192
                     || ('s' <= (c) && (c) <= 'z'))
4378
		     || ('s' <= (c) && (c) <= 'z'))
4193
# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4379
# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4194
#endif
4380
#endif
4195
4381
Lines 4200-4206 Link Here
4200
  int i;
4386
  int i;
4201
  for (i = 0; i < 256; i++)
4387
  for (i = 0; i < 256; i++)
4202
    if (XOR (islower (i), ISLOWER (i))
4388
    if (XOR (islower (i), ISLOWER (i))
4203
        || toupper (i) != TOUPPER (i))
4389
	|| toupper (i) != TOUPPER (i))
4204
      exit(2);
4390
      exit(2);
4205
  exit (0);
4391
  exit (0);
4206
}
4392
}
Lines 4225-4231 Link Here
4225
( exit $ac_status )
4411
( exit $ac_status )
4226
ac_cv_header_stdc=no
4412
ac_cv_header_stdc=no
4227
fi
4413
fi
4228
rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4414
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4229
fi
4415
fi
4230
fi
4416
fi
4231
fi
4417
fi
Lines 4267-4273 Link Here
4267
  # On the NeXT, cc -E runs the code through the compiler's parser,
4453
  # On the NeXT, cc -E runs the code through the compiler's parser,
4268
  # not just through cpp. "Syntax error" is here to catch this case.
4454
  # not just through cpp. "Syntax error" is here to catch this case.
4269
  cat >conftest.$ac_ext <<_ACEOF
4455
  cat >conftest.$ac_ext <<_ACEOF
4270
#line $LINENO "configure"
4271
/* confdefs.h.  */
4456
/* confdefs.h.  */
4272
_ACEOF
4457
_ACEOF
4273
cat confdefs.h >>conftest.$ac_ext
4458
cat confdefs.h >>conftest.$ac_ext
Lines 4278-4284 Link Here
4278
#else
4463
#else
4279
# include <assert.h>
4464
# include <assert.h>
4280
#endif
4465
#endif
4281
                     Syntax error
4466
		     Syntax error
4282
_ACEOF
4467
_ACEOF
4283
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4468
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4284
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4469
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
Lines 4290-4295 Link Here
4290
  (exit $ac_status); } >/dev/null; then
4475
  (exit $ac_status); } >/dev/null; then
4291
  if test -s conftest.err; then
4476
  if test -s conftest.err; then
4292
    ac_cpp_err=$ac_c_preproc_warn_flag
4477
    ac_cpp_err=$ac_c_preproc_warn_flag
4478
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4293
  else
4479
  else
4294
    ac_cpp_err=
4480
    ac_cpp_err=
4295
  fi
4481
  fi
Lines 4310-4316 Link Here
4310
  # OK, works on sane cases.  Now check whether non-existent headers
4496
  # OK, works on sane cases.  Now check whether non-existent headers
4311
  # can be detected and how.
4497
  # can be detected and how.
4312
  cat >conftest.$ac_ext <<_ACEOF
4498
  cat >conftest.$ac_ext <<_ACEOF
4313
#line $LINENO "configure"
4314
/* confdefs.h.  */
4499
/* confdefs.h.  */
4315
_ACEOF
4500
_ACEOF
4316
cat confdefs.h >>conftest.$ac_ext
4501
cat confdefs.h >>conftest.$ac_ext
Lines 4328-4333 Link Here
4328
  (exit $ac_status); } >/dev/null; then
4513
  (exit $ac_status); } >/dev/null; then
4329
  if test -s conftest.err; then
4514
  if test -s conftest.err; then
4330
    ac_cpp_err=$ac_c_preproc_warn_flag
4515
    ac_cpp_err=$ac_c_preproc_warn_flag
4516
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4331
  else
4517
  else
4332
    ac_cpp_err=
4518
    ac_cpp_err=
4333
  fi
4519
  fi
Lines 4374-4380 Link Here
4374
  # On the NeXT, cc -E runs the code through the compiler's parser,
4560
  # On the NeXT, cc -E runs the code through the compiler's parser,
4375
  # not just through cpp. "Syntax error" is here to catch this case.
4561
  # not just through cpp. "Syntax error" is here to catch this case.
4376
  cat >conftest.$ac_ext <<_ACEOF
4562
  cat >conftest.$ac_ext <<_ACEOF
4377
#line $LINENO "configure"
4378
/* confdefs.h.  */
4563
/* confdefs.h.  */
4379
_ACEOF
4564
_ACEOF
4380
cat confdefs.h >>conftest.$ac_ext
4565
cat confdefs.h >>conftest.$ac_ext
Lines 4385-4391 Link Here
4385
#else
4570
#else
4386
# include <assert.h>
4571
# include <assert.h>
4387
#endif
4572
#endif
4388
                     Syntax error
4573
		     Syntax error
4389
_ACEOF
4574
_ACEOF
4390
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4575
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4391
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4576
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
Lines 4397-4402 Link Here
4397
  (exit $ac_status); } >/dev/null; then
4582
  (exit $ac_status); } >/dev/null; then
4398
  if test -s conftest.err; then
4583
  if test -s conftest.err; then
4399
    ac_cpp_err=$ac_c_preproc_warn_flag
4584
    ac_cpp_err=$ac_c_preproc_warn_flag
4585
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4400
  else
4586
  else
4401
    ac_cpp_err=
4587
    ac_cpp_err=
4402
  fi
4588
  fi
Lines 4417-4423 Link Here
4417
  # OK, works on sane cases.  Now check whether non-existent headers
4603
  # OK, works on sane cases.  Now check whether non-existent headers
4418
  # can be detected and how.
4604
  # can be detected and how.
4419
  cat >conftest.$ac_ext <<_ACEOF
4605
  cat >conftest.$ac_ext <<_ACEOF
4420
#line $LINENO "configure"
4421
/* confdefs.h.  */
4606
/* confdefs.h.  */
4422
_ACEOF
4607
_ACEOF
4423
cat confdefs.h >>conftest.$ac_ext
4608
cat confdefs.h >>conftest.$ac_ext
Lines 4435-4440 Link Here
4435
  (exit $ac_status); } >/dev/null; then
4620
  (exit $ac_status); } >/dev/null; then
4436
  if test -s conftest.err; then
4621
  if test -s conftest.err; then
4437
    ac_cpp_err=$ac_c_preproc_warn_flag
4622
    ac_cpp_err=$ac_c_preproc_warn_flag
4623
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4438
  else
4624
  else
4439
    ac_cpp_err=
4625
    ac_cpp_err=
4440
  fi
4626
  fi
Lines 4592-4598 Link Here
4592
  echo $ECHO_N "(cached) $ECHO_C" >&6
4778
  echo $ECHO_N "(cached) $ECHO_C" >&6
4593
else
4779
else
4594
  cat >conftest.$ac_ext <<_ACEOF
4780
  cat >conftest.$ac_ext <<_ACEOF
4595
#line $LINENO "configure"
4596
/* confdefs.h.  */
4781
/* confdefs.h.  */
4597
_ACEOF
4782
_ACEOF
4598
cat confdefs.h >>conftest.$ac_ext
4783
cat confdefs.h >>conftest.$ac_ext
Lines 4612-4622 Link Here
4612
_ACEOF
4797
_ACEOF
4613
rm -f conftest.$ac_objext
4798
rm -f conftest.$ac_objext
4614
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4799
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4615
  (eval $ac_compile) 2>&5
4800
  (eval $ac_compile) 2>conftest.er1
4616
  ac_status=$?
4801
  ac_status=$?
4802
  grep -v '^ *+' conftest.er1 >conftest.err
4803
  rm -f conftest.er1
4804
  cat conftest.err >&5
4617
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4805
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4618
  (exit $ac_status); } &&
4806
  (exit $ac_status); } &&
4619
         { ac_try='test -s conftest.$ac_objext'
4807
	 { ac_try='test -z "$ac_cxx_werror_flag"
4808
			 || test ! -s conftest.err'
4809
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4810
  (eval $ac_try) 2>&5
4811
  ac_status=$?
4812
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4813
  (exit $ac_status); }; } &&
4814
	 { ac_try='test -s conftest.$ac_objext'
4620
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4815
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4621
  (eval $ac_try) 2>&5
4816
  (eval $ac_try) 2>&5
4622
  ac_status=$?
4817
  ac_status=$?
Lines 4629-4635 Link Here
4629
4824
4630
ac_compiler_gnu=no
4825
ac_compiler_gnu=no
4631
fi
4826
fi
4632
rm -f conftest.$ac_objext conftest.$ac_ext
4827
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4633
ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4828
ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4634
4829
4635
fi
4830
fi
Lines 4645-4651 Link Here
4645
  echo $ECHO_N "(cached) $ECHO_C" >&6
4840
  echo $ECHO_N "(cached) $ECHO_C" >&6
4646
else
4841
else
4647
  cat >conftest.$ac_ext <<_ACEOF
4842
  cat >conftest.$ac_ext <<_ACEOF
4648
#line $LINENO "configure"
4649
/* confdefs.h.  */
4843
/* confdefs.h.  */
4650
_ACEOF
4844
_ACEOF
4651
cat confdefs.h >>conftest.$ac_ext
4845
cat confdefs.h >>conftest.$ac_ext
Lines 4662-4672 Link Here
4662
_ACEOF
4856
_ACEOF
4663
rm -f conftest.$ac_objext
4857
rm -f conftest.$ac_objext
4664
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4858
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4665
  (eval $ac_compile) 2>&5
4859
  (eval $ac_compile) 2>conftest.er1
4666
  ac_status=$?
4860
  ac_status=$?
4861
  grep -v '^ *+' conftest.er1 >conftest.err
4862
  rm -f conftest.er1
4863
  cat conftest.err >&5
4667
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4864
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4668
  (exit $ac_status); } &&
4865
  (exit $ac_status); } &&
4669
         { ac_try='test -s conftest.$ac_objext'
4866
	 { ac_try='test -z "$ac_cxx_werror_flag"
4867
			 || test ! -s conftest.err'
4868
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4869
  (eval $ac_try) 2>&5
4870
  ac_status=$?
4871
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4872
  (exit $ac_status); }; } &&
4873
	 { ac_try='test -s conftest.$ac_objext'
4670
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4874
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4671
  (eval $ac_try) 2>&5
4875
  (eval $ac_try) 2>&5
4672
  ac_status=$?
4876
  ac_status=$?
Lines 4679-4685 Link Here
4679
4883
4680
ac_cv_prog_cxx_g=no
4884
ac_cv_prog_cxx_g=no
4681
fi
4885
fi
4682
rm -f conftest.$ac_objext conftest.$ac_ext
4886
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4683
fi
4887
fi
4684
echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
4888
echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
4685
echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
4889
echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
Lines 4699-4706 Link Here
4699
  fi
4903
  fi
4700
fi
4904
fi
4701
for ac_declaration in \
4905
for ac_declaration in \
4702
   ''\
4906
   '' \
4703
   '#include <stdlib.h>' \
4704
   'extern "C" void std::exit (int) throw (); using std::exit;' \
4907
   'extern "C" void std::exit (int) throw (); using std::exit;' \
4705
   'extern "C" void std::exit (int); using std::exit;' \
4908
   'extern "C" void std::exit (int); using std::exit;' \
4706
   'extern "C" void exit (int) throw ();' \
4909
   'extern "C" void exit (int) throw ();' \
Lines 4708-4721 Link Here
4708
   'void exit (int);'
4911
   'void exit (int);'
4709
do
4912
do
4710
  cat >conftest.$ac_ext <<_ACEOF
4913
  cat >conftest.$ac_ext <<_ACEOF
4711
#line $LINENO "configure"
4712
/* confdefs.h.  */
4914
/* confdefs.h.  */
4713
_ACEOF
4915
_ACEOF
4714
cat confdefs.h >>conftest.$ac_ext
4916
cat confdefs.h >>conftest.$ac_ext
4715
cat >>conftest.$ac_ext <<_ACEOF
4917
cat >>conftest.$ac_ext <<_ACEOF
4716
/* end confdefs.h.  */
4918
/* end confdefs.h.  */
4717
#include <stdlib.h>
4718
$ac_declaration
4919
$ac_declaration
4920
#include <stdlib.h>
4719
int
4921
int
4720
main ()
4922
main ()
4721
{
4923
{
Lines 4726-4736 Link Here
4726
_ACEOF
4928
_ACEOF
4727
rm -f conftest.$ac_objext
4929
rm -f conftest.$ac_objext
4728
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4930
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4729
  (eval $ac_compile) 2>&5
4931
  (eval $ac_compile) 2>conftest.er1
4730
  ac_status=$?
4932
  ac_status=$?
4933
  grep -v '^ *+' conftest.er1 >conftest.err
4934
  rm -f conftest.er1
4935
  cat conftest.err >&5
4731
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4936
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4732
  (exit $ac_status); } &&
4937
  (exit $ac_status); } &&
4733
         { ac_try='test -s conftest.$ac_objext'
4938
	 { ac_try='test -z "$ac_cxx_werror_flag"
4939
			 || test ! -s conftest.err'
4940
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4941
  (eval $ac_try) 2>&5
4942
  ac_status=$?
4943
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4944
  (exit $ac_status); }; } &&
4945
	 { ac_try='test -s conftest.$ac_objext'
4734
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4946
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4735
  (eval $ac_try) 2>&5
4947
  (eval $ac_try) 2>&5
4736
  ac_status=$?
4948
  ac_status=$?
Lines 4743-4751 Link Here
4743
4955
4744
continue
4956
continue
4745
fi
4957
fi
4746
rm -f conftest.$ac_objext conftest.$ac_ext
4958
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4747
  cat >conftest.$ac_ext <<_ACEOF
4959
  cat >conftest.$ac_ext <<_ACEOF
4748
#line $LINENO "configure"
4749
/* confdefs.h.  */
4960
/* confdefs.h.  */
4750
_ACEOF
4961
_ACEOF
4751
cat confdefs.h >>conftest.$ac_ext
4962
cat confdefs.h >>conftest.$ac_ext
Lines 4762-4772 Link Here
4762
_ACEOF
4973
_ACEOF
4763
rm -f conftest.$ac_objext
4974
rm -f conftest.$ac_objext
4764
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4975
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4765
  (eval $ac_compile) 2>&5
4976
  (eval $ac_compile) 2>conftest.er1
4766
  ac_status=$?
4977
  ac_status=$?
4978
  grep -v '^ *+' conftest.er1 >conftest.err
4979
  rm -f conftest.er1
4980
  cat conftest.err >&5
4767
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4981
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4768
  (exit $ac_status); } &&
4982
  (exit $ac_status); } &&
4769
         { ac_try='test -s conftest.$ac_objext'
4983
	 { ac_try='test -z "$ac_cxx_werror_flag"
4984
			 || test ! -s conftest.err'
4985
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4986
  (eval $ac_try) 2>&5
4987
  ac_status=$?
4988
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4989
  (exit $ac_status); }; } &&
4990
	 { ac_try='test -s conftest.$ac_objext'
4770
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4991
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4771
  (eval $ac_try) 2>&5
4992
  (eval $ac_try) 2>&5
4772
  ac_status=$?
4993
  ac_status=$?
Lines 4778-4784 Link Here
4778
sed 's/^/| /' conftest.$ac_ext >&5
4999
sed 's/^/| /' conftest.$ac_ext >&5
4779
5000
4780
fi
5001
fi
4781
rm -f conftest.$ac_objext conftest.$ac_ext
5002
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4782
done
5003
done
4783
rm -f conftest*
5004
rm -f conftest*
4784
if test -n "$ac_declaration"; then
5005
if test -n "$ac_declaration"; then
Lines 4919-4925 Link Here
4919
  # On the NeXT, cc -E runs the code through the compiler's parser,
5140
  # On the NeXT, cc -E runs the code through the compiler's parser,
4920
  # not just through cpp. "Syntax error" is here to catch this case.
5141
  # not just through cpp. "Syntax error" is here to catch this case.
4921
  cat >conftest.$ac_ext <<_ACEOF
5142
  cat >conftest.$ac_ext <<_ACEOF
4922
#line $LINENO "configure"
4923
/* confdefs.h.  */
5143
/* confdefs.h.  */
4924
_ACEOF
5144
_ACEOF
4925
cat confdefs.h >>conftest.$ac_ext
5145
cat confdefs.h >>conftest.$ac_ext
Lines 4930-4936 Link Here
4930
#else
5150
#else
4931
# include <assert.h>
5151
# include <assert.h>
4932
#endif
5152
#endif
4933
                     Syntax error
5153
		     Syntax error
4934
_ACEOF
5154
_ACEOF
4935
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5155
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4936
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5156
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
Lines 4942-4947 Link Here
4942
  (exit $ac_status); } >/dev/null; then
5162
  (exit $ac_status); } >/dev/null; then
4943
  if test -s conftest.err; then
5163
  if test -s conftest.err; then
4944
    ac_cpp_err=$ac_cxx_preproc_warn_flag
5164
    ac_cpp_err=$ac_cxx_preproc_warn_flag
5165
    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
4945
  else
5166
  else
4946
    ac_cpp_err=
5167
    ac_cpp_err=
4947
  fi
5168
  fi
Lines 4962-4968 Link Here
4962
  # OK, works on sane cases.  Now check whether non-existent headers
5183
  # OK, works on sane cases.  Now check whether non-existent headers
4963
  # can be detected and how.
5184
  # can be detected and how.
4964
  cat >conftest.$ac_ext <<_ACEOF
5185
  cat >conftest.$ac_ext <<_ACEOF
4965
#line $LINENO "configure"
4966
/* confdefs.h.  */
5186
/* confdefs.h.  */
4967
_ACEOF
5187
_ACEOF
4968
cat confdefs.h >>conftest.$ac_ext
5188
cat confdefs.h >>conftest.$ac_ext
Lines 4980-4985 Link Here
4980
  (exit $ac_status); } >/dev/null; then
5200
  (exit $ac_status); } >/dev/null; then
4981
  if test -s conftest.err; then
5201
  if test -s conftest.err; then
4982
    ac_cpp_err=$ac_cxx_preproc_warn_flag
5202
    ac_cpp_err=$ac_cxx_preproc_warn_flag
5203
    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
4983
  else
5204
  else
4984
    ac_cpp_err=
5205
    ac_cpp_err=
4985
  fi
5206
  fi
Lines 5026-5032 Link Here
5026
  # On the NeXT, cc -E runs the code through the compiler's parser,
5247
  # On the NeXT, cc -E runs the code through the compiler's parser,
5027
  # not just through cpp. "Syntax error" is here to catch this case.
5248
  # not just through cpp. "Syntax error" is here to catch this case.
5028
  cat >conftest.$ac_ext <<_ACEOF
5249
  cat >conftest.$ac_ext <<_ACEOF
5029
#line $LINENO "configure"
5030
/* confdefs.h.  */
5250
/* confdefs.h.  */
5031
_ACEOF
5251
_ACEOF
5032
cat confdefs.h >>conftest.$ac_ext
5252
cat confdefs.h >>conftest.$ac_ext
Lines 5037-5043 Link Here
5037
#else
5257
#else
5038
# include <assert.h>
5258
# include <assert.h>
5039
#endif
5259
#endif
5040
                     Syntax error
5260
		     Syntax error
5041
_ACEOF
5261
_ACEOF
5042
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5262
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5043
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5263
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
Lines 5049-5054 Link Here
5049
  (exit $ac_status); } >/dev/null; then
5269
  (exit $ac_status); } >/dev/null; then
5050
  if test -s conftest.err; then
5270
  if test -s conftest.err; then
5051
    ac_cpp_err=$ac_cxx_preproc_warn_flag
5271
    ac_cpp_err=$ac_cxx_preproc_warn_flag
5272
    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5052
  else
5273
  else
5053
    ac_cpp_err=
5274
    ac_cpp_err=
5054
  fi
5275
  fi
Lines 5069-5075 Link Here
5069
  # OK, works on sane cases.  Now check whether non-existent headers
5290
  # OK, works on sane cases.  Now check whether non-existent headers
5070
  # can be detected and how.
5291
  # can be detected and how.
5071
  cat >conftest.$ac_ext <<_ACEOF
5292
  cat >conftest.$ac_ext <<_ACEOF
5072
#line $LINENO "configure"
5073
/* confdefs.h.  */
5293
/* confdefs.h.  */
5074
_ACEOF
5294
_ACEOF
5075
cat confdefs.h >>conftest.$ac_ext
5295
cat confdefs.h >>conftest.$ac_ext
Lines 5087-5092 Link Here
5087
  (exit $ac_status); } >/dev/null; then
5307
  (exit $ac_status); } >/dev/null; then
5088
  if test -s conftest.err; then
5308
  if test -s conftest.err; then
5089
    ac_cpp_err=$ac_cxx_preproc_warn_flag
5309
    ac_cpp_err=$ac_cxx_preproc_warn_flag
5310
    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5090
  else
5311
  else
5091
    ac_cpp_err=
5312
    ac_cpp_err=
5092
  fi
5313
  fi
Lines 5276-5282 Link Here
5276
# Add /usr/xpg4/bin/sed as it is typically found on Solaris
5497
# Add /usr/xpg4/bin/sed as it is typically found on Solaris
5277
# along with /bin/sed that truncates output.
5498
# along with /bin/sed that truncates output.
5278
for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
5499
for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
5279
  test ! -f $lt_ac_sed && break
5500
  test ! -f $lt_ac_sed && continue
5280
  cat /dev/null > conftest.in
5501
  cat /dev/null > conftest.in
5281
  lt_ac_count=0
5502
  lt_ac_count=0
5282
  echo $ECHO_N "0123456789$ECHO_C" >conftest.in
5503
  echo $ECHO_N "0123456789$ECHO_C" >conftest.in
Lines 5301-5310 Link Here
5301
    fi
5522
    fi
5302
  done
5523
  done
5303
done
5524
done
5304
SED=$lt_cv_path_SED
5305
5525
5306
fi
5526
fi
5307
5527
5528
SED=$lt_cv_path_SED
5308
echo "$as_me:$LINENO: result: $SED" >&5
5529
echo "$as_me:$LINENO: result: $SED" >&5
5309
echo "${ECHO_T}$SED" >&6
5530
echo "${ECHO_T}$SED" >&6
5310
5531
Lines 5332-5338 Link Here
5332
    # Accept absolute paths.
5553
    # Accept absolute paths.
5333
    [\\/]* | ?:[\\/]*)
5554
    [\\/]* | ?:[\\/]*)
5334
      re_direlt='/[^/][^/]*/\.\./'
5555
      re_direlt='/[^/][^/]*/\.\./'
5335
      # Canonicalize the path of ld
5556
      # Canonicalize the pathname of ld
5336
      ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
5557
      ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
5337
      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
5558
      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
5338
	ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
5559
	ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
Lines 5430-5435 Link Here
5430
*) reload_flag=" $reload_flag" ;;
5651
*) reload_flag=" $reload_flag" ;;
5431
esac
5652
esac
5432
reload_cmds='$LD$reload_flag -o $output$reload_objs'
5653
reload_cmds='$LD$reload_flag -o $output$reload_objs'
5654
case $host_os in
5655
  darwin*)
5656
    if test "$GCC" = yes; then
5657
      reload_cmds='$CC -nostdlib ${wl}-r -o $output$reload_objs'
5658
    else
5659
      reload_cmds='$LD$reload_flag -o $output$reload_objs'
5660
    fi
5661
    ;;
5662
esac
5433
5663
5434
echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
5664
echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
5435
echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
5665
echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
Lines 5516-5555 Link Here
5516
  lt_cv_deplibs_check_method=pass_all
5746
  lt_cv_deplibs_check_method=pass_all
5517
  ;;
5747
  ;;
5518
5748
5519
bsdi4*)
5749
bsdi[45]*)
5520
  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5750
  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5521
  lt_cv_file_magic_cmd='/usr/bin/file -L'
5751
  lt_cv_file_magic_cmd='/usr/bin/file -L'
5522
  lt_cv_file_magic_test_file=/shlib/libc.so
5752
  lt_cv_file_magic_test_file=/shlib/libc.so
5523
  ;;
5753
  ;;
5524
5754
5525
cygwin* | mingw* | pw32*)
5755
cygwin*)
5526
  # win32_libid is a shell function defined in ltmain.sh
5756
  # func_win32_libid is a shell function defined in ltmain.sh
5527
  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5757
  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5528
  lt_cv_file_magic_cmd='win32_libid'
5758
  lt_cv_file_magic_cmd='func_win32_libid'
5759
  ;;
5760
5761
mingw* | pw32*)
5762
  # Base MSYS/MinGW do not provide the 'file' command needed by
5763
  # func_win32_libid shell function, so use a weaker test based on 'objdump'.
5764
  lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5765
  lt_cv_file_magic_cmd='$OBJDUMP -f'
5529
  ;;
5766
  ;;
5530
5767
5531
darwin* | rhapsody*)
5768
darwin* | rhapsody*)
5532
  # this will be overwritten by pass_all, but leave it in just in case
5533
  lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
5534
  lt_cv_file_magic_cmd='/usr/bin/file -L'
5535
  case "$host_os" in
5536
  rhapsody* | darwin1.[012])
5537
    lt_cv_file_magic_test_file=`/System/Library/Frameworks/System.framework/System`
5538
    ;;
5539
  *) # Darwin 1.3 on
5540
    lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
5541
    ;;
5542
  esac
5543
  lt_cv_deplibs_check_method=pass_all
5769
  lt_cv_deplibs_check_method=pass_all
5544
  ;;
5770
  ;;
5545
5771
5546
freebsd*)
5772
freebsd* | kfreebsd*-gnu | dragonfly*)
5547
  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
5773
  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
5548
    case $host_cpu in
5774
    case $host_cpu in
5549
    i*86 )
5775
    i*86 )
5550
      # Not sure whether the presence of OpenBSD here was a mistake.
5776
      # Not sure whether the presence of OpenBSD here was a mistake.
5551
      # Let's accept both of them until this is cleared up.
5777
      # Let's accept both of them until this is cleared up.
5552
      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
5778
      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5553
      lt_cv_file_magic_cmd=/usr/bin/file
5779
      lt_cv_file_magic_cmd=/usr/bin/file
5554
      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5780
      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5555
      ;;
5781
      ;;
Lines 5582-5617 Link Here
5582
  ;;
5808
  ;;
5583
5809
5584
irix5* | irix6* | nonstopux*)
5810
irix5* | irix6* | nonstopux*)
5585
  case $host_os in
5811
  case $LD in
5586
  irix5* | nonstopux*)
5812
  *-32|*"-32 ") libmagic=32-bit;;
5587
    # this will be overridden with pass_all, but let us keep it just in case
5813
  *-n32|*"-n32 ") libmagic=N32;;
5588
    lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
5814
  *-64|*"-64 ") libmagic=64-bit;;
5589
    ;;
5815
  *) libmagic=never-match;;
5590
  *)
5591
    case $LD in
5592
    *-32|*"-32 ") libmagic=32-bit;;
5593
    *-n32|*"-n32 ") libmagic=N32;;
5594
    *-64|*"-64 ") libmagic=64-bit;;
5595
    *) libmagic=never-match;;
5596
    esac
5597
    # this will be overridden with pass_all, but let us keep it just in case
5598
    lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
5599
    ;;
5600
  esac
5816
  esac
5601
  lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
5602
  lt_cv_deplibs_check_method=pass_all
5817
  lt_cv_deplibs_check_method=pass_all
5603
  ;;
5818
  ;;
5604
5819
5605
# This must be Linux ELF.
5820
# This must be Linux ELF.
5606
linux*)
5821
linux*)
5607
  case $host_cpu in
5822
  lt_cv_deplibs_check_method=pass_all
5608
  alpha* | hppa* | i*86 | ia64* | m68* | mips | mipsel | powerpc* | sparc* | s390* | sh* | x86_64)
5609
    lt_cv_deplibs_check_method=pass_all ;;
5610
  *)
5611
    # glibc up to 2.1.1 does not perform some relocations on ARM
5612
    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
5613
  esac
5614
  lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
5615
  ;;
5823
  ;;
5616
5824
5617
netbsd*)
5825
netbsd*)
Lines 5628-5651 Link Here
5628
  lt_cv_file_magic_test_file=/usr/lib/libnls.so
5836
  lt_cv_file_magic_test_file=/usr/lib/libnls.so
5629
  ;;
5837
  ;;
5630
5838
5631
nto-qnx)
5839
nto-qnx*)
5632
  lt_cv_deplibs_check_method=unknown
5840
  lt_cv_deplibs_check_method=unknown
5633
  ;;
5841
  ;;
5634
5842
5635
openbsd*)
5843
openbsd*)
5636
  lt_cv_file_magic_cmd=/usr/bin/file
5637
  lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5638
  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5844
  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5639
    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object'
5845
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5640
  else
5846
  else
5641
    lt_cv_deplibs_check_method='file_magic OpenBSD.* shared library'
5847
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5642
  fi
5848
  fi
5643
  ;;
5849
  ;;
5644
5850
5645
osf3* | osf4* | osf5*)
5851
osf3* | osf4* | osf5*)
5646
  # this will be overridden with pass_all, but let us keep it just in case
5647
  lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
5648
  lt_cv_file_magic_test_file=/shlib/libc.so
5649
  lt_cv_deplibs_check_method=pass_all
5852
  lt_cv_deplibs_check_method=pass_all
5650
  ;;
5853
  ;;
5651
5854
Lines 5655-5661 Link Here
5655
5858
5656
solaris*)
5859
solaris*)
5657
  lt_cv_deplibs_check_method=pass_all
5860
  lt_cv_deplibs_check_method=pass_all
5658
  lt_cv_file_magic_test_file=/lib/libc.so
5659
  ;;
5861
  ;;
5660
5862
5661
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
5863
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
Lines 5734-5740 Link Here
5734
  ;;
5936
  ;;
5735
*-*-irix6*)
5937
*-*-irix6*)
5736
  # Find out which ABI we are using.
5938
  # Find out which ABI we are using.
5737
  echo '#line 5737 "configure"' > conftest.$ac_ext
5939
  echo '#line 5939 "configure"' > conftest.$ac_ext
5738
  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5940
  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5739
  (eval $ac_compile) 2>&5
5941
  (eval $ac_compile) 2>&5
5740
  ac_status=$?
5942
  ac_status=$?
Lines 5815-5820 Link Here
5815
  rm -rf conftest*
6017
  rm -rf conftest*
5816
  ;;
6018
  ;;
5817
6019
6020
*-*-linux*)
6021
  # Test if the compiler is 64bit
6022
  echo 'int i;' > conftest.$ac_ext
6023
  lt_cv_cc_64bit_output=no
6024
  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6025
  (eval $ac_compile) 2>&5
6026
  ac_status=$?
6027
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6028
  (exit $ac_status); }; then
6029
    case `/usr/bin/file conftest.$ac_objext` in
6030
    *"ELF 64"*)
6031
      lt_cv_cc_64bit_output=yes
6032
      ;;
6033
    esac
6034
  fi
6035
  rm -rf conftest*
6036
  ;;
6037
5818
*-*-sco3.2v5*)
6038
*-*-sco3.2v5*)
5819
  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6039
  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
5820
  SAVE_CFLAGS="$CFLAGS"
6040
  SAVE_CFLAGS="$CFLAGS"
Lines 5831-5837 Link Here
5831
ac_compiler_gnu=$ac_cv_c_compiler_gnu
6051
ac_compiler_gnu=$ac_cv_c_compiler_gnu
5832
6052
5833
     cat >conftest.$ac_ext <<_ACEOF
6053
     cat >conftest.$ac_ext <<_ACEOF
5834
#line $LINENO "configure"
5835
/* confdefs.h.  */
6054
/* confdefs.h.  */
5836
_ACEOF
6055
_ACEOF
5837
cat confdefs.h >>conftest.$ac_ext
6056
cat confdefs.h >>conftest.$ac_ext
Lines 5848-5858 Link Here
5848
_ACEOF
6067
_ACEOF
5849
rm -f conftest.$ac_objext conftest$ac_exeext
6068
rm -f conftest.$ac_objext conftest$ac_exeext
5850
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6069
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5851
  (eval $ac_link) 2>&5
6070
  (eval $ac_link) 2>conftest.er1
5852
  ac_status=$?
6071
  ac_status=$?
6072
  grep -v '^ *+' conftest.er1 >conftest.err
6073
  rm -f conftest.er1
6074
  cat conftest.err >&5
5853
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6075
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5854
  (exit $ac_status); } &&
6076
  (exit $ac_status); } &&
5855
         { ac_try='test -s conftest$ac_exeext'
6077
	 { ac_try='test -z "$ac_c_werror_flag"
6078
			 || test ! -s conftest.err'
6079
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6080
  (eval $ac_try) 2>&5
6081
  ac_status=$?
6082
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6083
  (exit $ac_status); }; } &&
6084
	 { ac_try='test -s conftest$ac_exeext'
5856
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6085
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5857
  (eval $ac_try) 2>&5
6086
  (eval $ac_try) 2>&5
5858
  ac_status=$?
6087
  ac_status=$?
Lines 5865-5871 Link Here
5865
6094
5866
lt_cv_cc_needs_belf=no
6095
lt_cv_cc_needs_belf=no
5867
fi
6096
fi
5868
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6097
rm -f conftest.err conftest.$ac_objext \
6098
      conftest$ac_exeext conftest.$ac_ext
5869
     ac_ext=c
6099
     ac_ext=c
5870
ac_cpp='$CPP $CPPFLAGS'
6100
ac_cpp='$CPP $CPPFLAGS'
5871
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6101
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
Lines 5897-5903 Link Here
5897
6127
5898
6128
5899
for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6129
for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5900
                  inttypes.h stdint.h unistd.h
6130
		  inttypes.h stdint.h unistd.h
5901
do
6131
do
5902
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6132
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5903
echo "$as_me:$LINENO: checking for $ac_header" >&5
6133
echo "$as_me:$LINENO: checking for $ac_header" >&5
Lines 5906-5912 Link Here
5906
  echo $ECHO_N "(cached) $ECHO_C" >&6
6136
  echo $ECHO_N "(cached) $ECHO_C" >&6
5907
else
6137
else
5908
  cat >conftest.$ac_ext <<_ACEOF
6138
  cat >conftest.$ac_ext <<_ACEOF
5909
#line $LINENO "configure"
5910
/* confdefs.h.  */
6139
/* confdefs.h.  */
5911
_ACEOF
6140
_ACEOF
5912
cat confdefs.h >>conftest.$ac_ext
6141
cat confdefs.h >>conftest.$ac_ext
Lines 5918-5928 Link Here
5918
_ACEOF
6147
_ACEOF
5919
rm -f conftest.$ac_objext
6148
rm -f conftest.$ac_objext
5920
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6149
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5921
  (eval $ac_compile) 2>&5
6150
  (eval $ac_compile) 2>conftest.er1
5922
  ac_status=$?
6151
  ac_status=$?
6152
  grep -v '^ *+' conftest.er1 >conftest.err
6153
  rm -f conftest.er1
6154
  cat conftest.err >&5
5923
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6155
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5924
  (exit $ac_status); } &&
6156
  (exit $ac_status); } &&
5925
         { ac_try='test -s conftest.$ac_objext'
6157
	 { ac_try='test -z "$ac_c_werror_flag"
6158
			 || test ! -s conftest.err'
6159
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6160
  (eval $ac_try) 2>&5
6161
  ac_status=$?
6162
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6163
  (exit $ac_status); }; } &&
6164
	 { ac_try='test -s conftest.$ac_objext'
5926
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6165
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5927
  (eval $ac_try) 2>&5
6166
  (eval $ac_try) 2>&5
5928
  ac_status=$?
6167
  ac_status=$?
Lines 5935-5941 Link Here
5935
6174
5936
eval "$as_ac_Header=no"
6175
eval "$as_ac_Header=no"
5937
fi
6176
fi
5938
rm -f conftest.$ac_objext conftest.$ac_ext
6177
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5939
fi
6178
fi
5940
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6179
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5941
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6180
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
Lines 5966-5972 Link Here
5966
echo "$as_me:$LINENO: checking $ac_header usability" >&5
6205
echo "$as_me:$LINENO: checking $ac_header usability" >&5
5967
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6206
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5968
cat >conftest.$ac_ext <<_ACEOF
6207
cat >conftest.$ac_ext <<_ACEOF
5969
#line $LINENO "configure"
5970
/* confdefs.h.  */
6208
/* confdefs.h.  */
5971
_ACEOF
6209
_ACEOF
5972
cat confdefs.h >>conftest.$ac_ext
6210
cat confdefs.h >>conftest.$ac_ext
Lines 5977-5987 Link Here
5977
_ACEOF
6215
_ACEOF
5978
rm -f conftest.$ac_objext
6216
rm -f conftest.$ac_objext
5979
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6217
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5980
  (eval $ac_compile) 2>&5
6218
  (eval $ac_compile) 2>conftest.er1
5981
  ac_status=$?
6219
  ac_status=$?
6220
  grep -v '^ *+' conftest.er1 >conftest.err
6221
  rm -f conftest.er1
6222
  cat conftest.err >&5
5982
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6223
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5983
  (exit $ac_status); } &&
6224
  (exit $ac_status); } &&
5984
         { ac_try='test -s conftest.$ac_objext'
6225
	 { ac_try='test -z "$ac_c_werror_flag"
6226
			 || test ! -s conftest.err'
6227
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6228
  (eval $ac_try) 2>&5
6229
  ac_status=$?
6230
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6231
  (exit $ac_status); }; } &&
6232
	 { ac_try='test -s conftest.$ac_objext'
5985
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6233
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5986
  (eval $ac_try) 2>&5
6234
  (eval $ac_try) 2>&5
5987
  ac_status=$?
6235
  ac_status=$?
Lines 5994-6000 Link Here
5994
6242
5995
ac_header_compiler=no
6243
ac_header_compiler=no
5996
fi
6244
fi
5997
rm -f conftest.$ac_objext conftest.$ac_ext
6245
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5998
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6246
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5999
echo "${ECHO_T}$ac_header_compiler" >&6
6247
echo "${ECHO_T}$ac_header_compiler" >&6
6000
6248
Lines 6002-6008 Link Here
6002
echo "$as_me:$LINENO: checking $ac_header presence" >&5
6250
echo "$as_me:$LINENO: checking $ac_header presence" >&5
6003
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6251
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6004
cat >conftest.$ac_ext <<_ACEOF
6252
cat >conftest.$ac_ext <<_ACEOF
6005
#line $LINENO "configure"
6006
/* confdefs.h.  */
6253
/* confdefs.h.  */
6007
_ACEOF
6254
_ACEOF
6008
cat confdefs.h >>conftest.$ac_ext
6255
cat confdefs.h >>conftest.$ac_ext
Lines 6020-6025 Link Here
6020
  (exit $ac_status); } >/dev/null; then
6267
  (exit $ac_status); } >/dev/null; then
6021
  if test -s conftest.err; then
6268
  if test -s conftest.err; then
6022
    ac_cpp_err=$ac_c_preproc_warn_flag
6269
    ac_cpp_err=$ac_c_preproc_warn_flag
6270
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6023
  else
6271
  else
6024
    ac_cpp_err=
6272
    ac_cpp_err=
6025
  fi
6273
  fi
Lines 6039-6071 Link Here
6039
echo "${ECHO_T}$ac_header_preproc" >&6
6287
echo "${ECHO_T}$ac_header_preproc" >&6
6040
6288
6041
# So?  What about this header?
6289
# So?  What about this header?
6042
case $ac_header_compiler:$ac_header_preproc in
6290
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6043
  yes:no )
6291
  yes:no: )
6044
    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6292
    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6045
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6293
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6046
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6294
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6047
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6295
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6048
    (
6296
    ac_header_preproc=yes
6049
      cat <<\_ASBOX
6050
## ------------------------------------ ##
6051
## Report this to bug-autoconf@gnu.org. ##
6052
## ------------------------------------ ##
6053
_ASBOX
6054
    ) |
6055
      sed "s/^/$as_me: WARNING:     /" >&2
6056
    ;;
6297
    ;;
6057
  no:yes )
6298
  no:yes:* )
6058
    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6299
    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6059
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6300
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6060
    { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6301
    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
6061
echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6302
echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
6303
    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6304
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6305
    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
6306
echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
6062
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6307
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6063
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6308
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6309
    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6310
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6064
    (
6311
    (
6065
      cat <<\_ASBOX
6312
      cat <<\_ASBOX
6066
## ------------------------------------ ##
6313
## ------------------------------------------ ##
6067
## Report this to bug-autoconf@gnu.org. ##
6314
## Report this to the AC_PACKAGE_NAME lists.  ##
6068
## ------------------------------------ ##
6315
## ------------------------------------------ ##
6069
_ASBOX
6316
_ASBOX
6070
    ) |
6317
    ) |
6071
      sed "s/^/$as_me: WARNING:     /" >&2
6318
      sed "s/^/$as_me: WARNING:     /" >&2
Lines 6076-6082 Link Here
6076
if eval "test \"\${$as_ac_Header+set}\" = set"; then
6323
if eval "test \"\${$as_ac_Header+set}\" = set"; then
6077
  echo $ECHO_N "(cached) $ECHO_C" >&6
6324
  echo $ECHO_N "(cached) $ECHO_C" >&6
6078
else
6325
else
6079
  eval "$as_ac_Header=$ac_header_preproc"
6326
  eval "$as_ac_Header=\$ac_header_preproc"
6080
fi
6327
fi
6081
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6328
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6082
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6329
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
Lines 6092-6103 Link Here
6092
done
6339
done
6093
6340
6094
6341
6342
6343
if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
6344
    ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
6345
    (test "X$CXX" != "Xg++"))) ; then
6346
  ac_ext=cc
6347
ac_cpp='$CXXCPP $CPPFLAGS'
6348
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6349
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6350
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6351
echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
6352
echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
6353
if test -z "$CXXCPP"; then
6354
  if test "${ac_cv_prog_CXXCPP+set}" = set; then
6355
  echo $ECHO_N "(cached) $ECHO_C" >&6
6356
else
6357
      # Double quotes because CXXCPP needs to be expanded
6358
    for CXXCPP in "$CXX -E" "/lib/cpp"
6359
    do
6360
      ac_preproc_ok=false
6361
for ac_cxx_preproc_warn_flag in '' yes
6362
do
6363
  # Use a header file that comes with gcc, so configuring glibc
6364
  # with a fresh cross-compiler works.
6365
  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6366
  # <limits.h> exists even on freestanding compilers.
6367
  # On the NeXT, cc -E runs the code through the compiler's parser,
6368
  # not just through cpp. "Syntax error" is here to catch this case.
6369
  cat >conftest.$ac_ext <<_ACEOF
6370
/* confdefs.h.  */
6371
_ACEOF
6372
cat confdefs.h >>conftest.$ac_ext
6373
cat >>conftest.$ac_ext <<_ACEOF
6374
/* end confdefs.h.  */
6375
#ifdef __STDC__
6376
# include <limits.h>
6377
#else
6378
# include <assert.h>
6379
#endif
6380
		     Syntax error
6381
_ACEOF
6382
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6383
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6384
  ac_status=$?
6385
  grep -v '^ *+' conftest.er1 >conftest.err
6386
  rm -f conftest.er1
6387
  cat conftest.err >&5
6388
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6389
  (exit $ac_status); } >/dev/null; then
6390
  if test -s conftest.err; then
6391
    ac_cpp_err=$ac_cxx_preproc_warn_flag
6392
    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6393
  else
6394
    ac_cpp_err=
6395
  fi
6396
else
6397
  ac_cpp_err=yes
6398
fi
6399
if test -z "$ac_cpp_err"; then
6400
  :
6401
else
6402
  echo "$as_me: failed program was:" >&5
6403
sed 's/^/| /' conftest.$ac_ext >&5
6404
6405
  # Broken: fails on valid input.
6406
continue
6407
fi
6408
rm -f conftest.err conftest.$ac_ext
6409
6410
  # OK, works on sane cases.  Now check whether non-existent headers
6411
  # can be detected and how.
6412
  cat >conftest.$ac_ext <<_ACEOF
6413
/* confdefs.h.  */
6414
_ACEOF
6415
cat confdefs.h >>conftest.$ac_ext
6416
cat >>conftest.$ac_ext <<_ACEOF
6417
/* end confdefs.h.  */
6418
#include <ac_nonexistent.h>
6419
_ACEOF
6420
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6421
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6422
  ac_status=$?
6423
  grep -v '^ *+' conftest.er1 >conftest.err
6424
  rm -f conftest.er1
6425
  cat conftest.err >&5
6426
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6427
  (exit $ac_status); } >/dev/null; then
6428
  if test -s conftest.err; then
6429
    ac_cpp_err=$ac_cxx_preproc_warn_flag
6430
    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6431
  else
6432
    ac_cpp_err=
6433
  fi
6434
else
6435
  ac_cpp_err=yes
6436
fi
6437
if test -z "$ac_cpp_err"; then
6438
  # Broken: success on invalid input.
6439
continue
6440
else
6441
  echo "$as_me: failed program was:" >&5
6442
sed 's/^/| /' conftest.$ac_ext >&5
6443
6444
  # Passes both tests.
6445
ac_preproc_ok=:
6446
break
6447
fi
6448
rm -f conftest.err conftest.$ac_ext
6449
6450
done
6451
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6452
rm -f conftest.err conftest.$ac_ext
6453
if $ac_preproc_ok; then
6454
  break
6455
fi
6456
6457
    done
6458
    ac_cv_prog_CXXCPP=$CXXCPP
6459
6460
fi
6461
  CXXCPP=$ac_cv_prog_CXXCPP
6462
else
6463
  ac_cv_prog_CXXCPP=$CXXCPP
6464
fi
6465
echo "$as_me:$LINENO: result: $CXXCPP" >&5
6466
echo "${ECHO_T}$CXXCPP" >&6
6467
ac_preproc_ok=false
6468
for ac_cxx_preproc_warn_flag in '' yes
6469
do
6470
  # Use a header file that comes with gcc, so configuring glibc
6471
  # with a fresh cross-compiler works.
6472
  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6473
  # <limits.h> exists even on freestanding compilers.
6474
  # On the NeXT, cc -E runs the code through the compiler's parser,
6475
  # not just through cpp. "Syntax error" is here to catch this case.
6476
  cat >conftest.$ac_ext <<_ACEOF
6477
/* confdefs.h.  */
6478
_ACEOF
6479
cat confdefs.h >>conftest.$ac_ext
6480
cat >>conftest.$ac_ext <<_ACEOF
6481
/* end confdefs.h.  */
6482
#ifdef __STDC__
6483
# include <limits.h>
6484
#else
6485
# include <assert.h>
6486
#endif
6487
		     Syntax error
6488
_ACEOF
6489
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6490
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6491
  ac_status=$?
6492
  grep -v '^ *+' conftest.er1 >conftest.err
6493
  rm -f conftest.er1
6494
  cat conftest.err >&5
6495
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6496
  (exit $ac_status); } >/dev/null; then
6497
  if test -s conftest.err; then
6498
    ac_cpp_err=$ac_cxx_preproc_warn_flag
6499
    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6500
  else
6501
    ac_cpp_err=
6502
  fi
6503
else
6504
  ac_cpp_err=yes
6505
fi
6506
if test -z "$ac_cpp_err"; then
6507
  :
6508
else
6509
  echo "$as_me: failed program was:" >&5
6510
sed 's/^/| /' conftest.$ac_ext >&5
6511
6512
  # Broken: fails on valid input.
6513
continue
6514
fi
6515
rm -f conftest.err conftest.$ac_ext
6516
6517
  # OK, works on sane cases.  Now check whether non-existent headers
6518
  # can be detected and how.
6519
  cat >conftest.$ac_ext <<_ACEOF
6520
/* confdefs.h.  */
6521
_ACEOF
6522
cat confdefs.h >>conftest.$ac_ext
6523
cat >>conftest.$ac_ext <<_ACEOF
6524
/* end confdefs.h.  */
6525
#include <ac_nonexistent.h>
6526
_ACEOF
6527
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6528
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6529
  ac_status=$?
6530
  grep -v '^ *+' conftest.er1 >conftest.err
6531
  rm -f conftest.er1
6532
  cat conftest.err >&5
6533
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6534
  (exit $ac_status); } >/dev/null; then
6535
  if test -s conftest.err; then
6536
    ac_cpp_err=$ac_cxx_preproc_warn_flag
6537
    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6538
  else
6539
    ac_cpp_err=
6540
  fi
6541
else
6542
  ac_cpp_err=yes
6543
fi
6544
if test -z "$ac_cpp_err"; then
6545
  # Broken: success on invalid input.
6546
continue
6547
else
6548
  echo "$as_me: failed program was:" >&5
6549
sed 's/^/| /' conftest.$ac_ext >&5
6550
6551
  # Passes both tests.
6552
ac_preproc_ok=:
6553
break
6554
fi
6555
rm -f conftest.err conftest.$ac_ext
6556
6557
done
6558
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6559
rm -f conftest.err conftest.$ac_ext
6560
if $ac_preproc_ok; then
6561
  :
6562
else
6563
  { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6564
See \`config.log' for more details." >&5
6565
echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6566
See \`config.log' for more details." >&2;}
6567
   { (exit 1); exit 1; }; }
6568
fi
6569
6570
ac_ext=cc
6571
ac_cpp='$CXXCPP $CPPFLAGS'
6572
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6573
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6574
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6575
6576
fi
6577
6578
6095
ac_ext=f
6579
ac_ext=f
6096
ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
6580
ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
6097
ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6581
ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6098
ac_compiler_gnu=$ac_cv_f77_compiler_gnu
6582
ac_compiler_gnu=$ac_cv_f77_compiler_gnu
6099
if test -n "$ac_tool_prefix"; then
6583
if test -n "$ac_tool_prefix"; then
6100
  for ac_prog in g77 f77 xlf frt pgf77 fl32 af77 fort77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 lf95 g95
6584
  for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
6101
  do
6585
  do
6102
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6586
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6103
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6587
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
Lines 6139-6145 Link Here
6139
fi
6623
fi
6140
if test -z "$F77"; then
6624
if test -z "$F77"; then
6141
  ac_ct_F77=$F77
6625
  ac_ct_F77=$F77
6142
  for ac_prog in g77 f77 xlf frt pgf77 fl32 af77 fort77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 lf95 g95
6626
  for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
6143
do
6627
do
6144
  # Extract the first word of "$ac_prog", so it can be a program name with args.
6628
  # Extract the first word of "$ac_prog", so it can be a program name with args.
6145
set dummy $ac_prog; ac_word=$2
6629
set dummy $ac_prog; ac_word=$2
Lines 6184-6190 Link Here
6184
6668
6185
6669
6186
# Provide some information about the compiler.
6670
# Provide some information about the compiler.
6187
echo "$as_me:6187:" \
6671
echo "$as_me:6671:" \
6188
     "checking for Fortran 77 compiler version" >&5
6672
     "checking for Fortran 77 compiler version" >&5
6189
ac_compiler=`set X $ac_compile; echo $2`
6673
ac_compiler=`set X $ac_compile; echo $2`
6190
{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
6674
{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
Lines 6202-6210 Link Here
6202
  ac_status=$?
6686
  ac_status=$?
6203
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6687
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6204
  (exit $ac_status); }
6688
  (exit $ac_status); }
6689
rm -f a.out
6205
6690
6206
# If we don't use `.F' as extension, the preprocessor is not run on the
6691
# If we don't use `.F' as extension, the preprocessor is not run on the
6207
# input file.
6692
# input file.  (Note that this only needs to work for GNU compilers.)
6208
ac_save_ext=$ac_ext
6693
ac_save_ext=$ac_ext
6209
ac_ext=F
6694
ac_ext=F
6210
echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
6695
echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
Lines 6222-6232 Link Here
6222
_ACEOF
6707
_ACEOF
6223
rm -f conftest.$ac_objext
6708
rm -f conftest.$ac_objext
6224
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6709
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6225
  (eval $ac_compile) 2>&5
6710
  (eval $ac_compile) 2>conftest.er1
6226
  ac_status=$?
6711
  ac_status=$?
6712
  grep -v '^ *+' conftest.er1 >conftest.err
6713
  rm -f conftest.er1
6714
  cat conftest.err >&5
6227
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6715
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6228
  (exit $ac_status); } &&
6716
  (exit $ac_status); } &&
6229
         { ac_try='test -s conftest.$ac_objext'
6717
	 { ac_try='test -z "$ac_f77_werror_flag"
6718
			 || test ! -s conftest.err'
6719
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6720
  (eval $ac_try) 2>&5
6721
  ac_status=$?
6722
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6723
  (exit $ac_status); }; } &&
6724
	 { ac_try='test -s conftest.$ac_objext'
6230
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6725
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6231
  (eval $ac_try) 2>&5
6726
  (eval $ac_try) 2>&5
6232
  ac_status=$?
6727
  ac_status=$?
Lines 6239-6252 Link Here
6239
6734
6240
ac_compiler_gnu=no
6735
ac_compiler_gnu=no
6241
fi
6736
fi
6242
rm -f conftest.$ac_objext conftest.$ac_ext
6737
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6243
ac_cv_f77_compiler_gnu=$ac_compiler_gnu
6738
ac_cv_f77_compiler_gnu=$ac_compiler_gnu
6244
6739
6245
fi
6740
fi
6246
echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
6741
echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
6247
echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
6742
echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
6248
ac_ext=$ac_save_ext
6743
ac_ext=$ac_save_ext
6249
G77=`test $ac_compiler_gnu = yes && echo yes`
6250
ac_test_FFLAGS=${FFLAGS+set}
6744
ac_test_FFLAGS=${FFLAGS+set}
6251
ac_save_FFLAGS=$FFLAGS
6745
ac_save_FFLAGS=$FFLAGS
6252
FFLAGS=
6746
FFLAGS=
Lines 6263-6273 Link Here
6263
_ACEOF
6757
_ACEOF
6264
rm -f conftest.$ac_objext
6758
rm -f conftest.$ac_objext
6265
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6759
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6266
  (eval $ac_compile) 2>&5
6760
  (eval $ac_compile) 2>conftest.er1
6267
  ac_status=$?
6761
  ac_status=$?
6762
  grep -v '^ *+' conftest.er1 >conftest.err
6763
  rm -f conftest.er1
6764
  cat conftest.err >&5
6268
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6765
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6269
  (exit $ac_status); } &&
6766
  (exit $ac_status); } &&
6270
         { ac_try='test -s conftest.$ac_objext'
6767
	 { ac_try='test -z "$ac_f77_werror_flag"
6768
			 || test ! -s conftest.err'
6769
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6770
  (eval $ac_try) 2>&5
6771
  ac_status=$?
6772
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6773
  (exit $ac_status); }; } &&
6774
	 { ac_try='test -s conftest.$ac_objext'
6271
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6775
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6272
  (eval $ac_try) 2>&5
6776
  (eval $ac_try) 2>&5
6273
  ac_status=$?
6777
  ac_status=$?
Lines 6280-6286 Link Here
6280
6784
6281
ac_cv_prog_f77_g=no
6785
ac_cv_prog_f77_g=no
6282
fi
6786
fi
6283
rm -f conftest.$ac_objext conftest.$ac_ext
6787
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6284
6788
6285
fi
6789
fi
6286
echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
6790
echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
Lines 6288-6305 Link Here
6288
if test "$ac_test_FFLAGS" = set; then
6792
if test "$ac_test_FFLAGS" = set; then
6289
  FFLAGS=$ac_save_FFLAGS
6793
  FFLAGS=$ac_save_FFLAGS
6290
elif test $ac_cv_prog_f77_g = yes; then
6794
elif test $ac_cv_prog_f77_g = yes; then
6291
  if test "$G77" = yes; then
6795
  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6292
    FFLAGS="-g -O2"
6796
    FFLAGS="-g -O2"
6293
  else
6797
  else
6294
    FFLAGS="-g"
6798
    FFLAGS="-g"
6295
  fi
6799
  fi
6296
else
6800
else
6297
  if test "$G77" = yes; then
6801
  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6298
    FFLAGS="-O2"
6802
    FFLAGS="-O2"
6299
  else
6803
  else
6300
    FFLAGS=
6804
    FFLAGS=
6301
  fi
6805
  fi
6302
fi
6806
fi
6807
6808
G77=`test $ac_compiler_gnu = yes && echo yes`
6303
ac_ext=c
6809
ac_ext=c
6304
ac_cpp='$CPP $CPPFLAGS'
6810
ac_cpp='$CPP $CPPFLAGS'
6305
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6811
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
Lines 6317-6323 Link Here
6317
  echo $ECHO_N "(cached) $ECHO_C" >&6
6823
  echo $ECHO_N "(cached) $ECHO_C" >&6
6318
else
6824
else
6319
    i=0
6825
    i=0
6320
  testring="ABCD"
6826
  teststring="ABCD"
6321
6827
6322
  case $build_os in
6828
  case $build_os in
6323
  msdosdjgpp*)
6829
  msdosdjgpp*)
Lines 6346-6365 Link Here
6346
    lt_cv_sys_max_cmd_len=8192;
6852
    lt_cv_sys_max_cmd_len=8192;
6347
    ;;
6853
    ;;
6348
6854
6349
 *)
6855
  amigaos*)
6856
    # On AmigaOS with pdksh, this test takes hours, literally.
6857
    # So we just punt and use a minimum line length of 8192.
6858
    lt_cv_sys_max_cmd_len=8192;
6859
    ;;
6860
6861
  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6862
    # This has been around since 386BSD, at least.  Likely further.
6863
    if test -x /sbin/sysctl; then
6864
      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6865
    elif test -x /usr/sbin/sysctl; then
6866
      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6867
    else
6868
      lt_cv_sys_max_cmd_len=65536 # usable default for *BSD
6869
    fi
6870
    # And add a safety zone
6871
    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6872
    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6873
    ;;
6874
  osf*)
6875
    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6876
    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6877
    # nice to cause kernel panics so lets avoid the loop below.
6878
    # First set a reasonable default.
6879
    lt_cv_sys_max_cmd_len=16384
6880
    #
6881
    if test -x /sbin/sysconfig; then
6882
      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6883
        *1*) lt_cv_sys_max_cmd_len=-1 ;;
6884
      esac
6885
    fi
6886
    ;;
6887
  *)
6350
    # If test is not a shell built-in, we'll probably end up computing a
6888
    # If test is not a shell built-in, we'll probably end up computing a
6351
    # maximum length that is only half of the actual maximum length, but
6889
    # maximum length that is only half of the actual maximum length, but
6352
    # we can't tell.
6890
    # we can't tell.
6353
    while (test "X"`$CONFIG_SHELL $0 --fallback-echo "X$testring" 2>/dev/null` \
6891
    SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6354
	       = "XX$testring") >/dev/null 2>&1 &&
6892
    while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
6355
	    new_result=`expr "X$testring" : ".*" 2>&1` &&
6893
	       = "XX$teststring") >/dev/null 2>&1 &&
6894
	    new_result=`expr "X$teststring" : ".*" 2>&1` &&
6356
	    lt_cv_sys_max_cmd_len=$new_result &&
6895
	    lt_cv_sys_max_cmd_len=$new_result &&
6357
	    test $i != 17 # 1/2 MB should be enough
6896
	    test $i != 17 # 1/2 MB should be enough
6358
    do
6897
    do
6359
      i=`expr $i + 1`
6898
      i=`expr $i + 1`
6360
      testring=$testring$testring
6899
      teststring=$teststring$teststring
6361
    done
6900
    done
6362
    testring=
6901
    teststring=
6363
    # Add a significant safety factor because C++ compilers can tack on massive
6902
    # Add a significant safety factor because C++ compilers can tack on massive
6364
    # amounts of additional arguments before passing them to the linker.
6903
    # amounts of additional arguments before passing them to the linker.
6365
    # It appears as though 1/2 is a usable value.
6904
    # It appears as though 1/2 is a usable value.
Lines 6396-6404 Link Here
6396
# Regexp to match symbols that can be accessed directly from C.
6935
# Regexp to match symbols that can be accessed directly from C.
6397
sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6936
sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6398
6937
6399
# Transform the above into a raw symbol and a C symbol.
6400
symxfrm='\1 \2\3 \3'
6401
6402
# Transform an extracted symbol line into a proper C declaration
6938
# Transform an extracted symbol line into a proper C declaration
6403
lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
6939
lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
6404
6940
Lines 6420-6425 Link Here
6420
  lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6956
  lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6421
  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'"
6957
  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'"
6422
  ;;
6958
  ;;
6959
linux*)
6960
  if test "$host_cpu" = ia64; then
6961
    symcode='[ABCDGIRSTW]'
6962
    lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6963
    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'"
6964
  fi
6965
  ;;
6423
irix* | nonstopux*)
6966
irix* | nonstopux*)
6424
  symcode='[BCDEGRST]'
6967
  symcode='[BCDEGRST]'
6425
  ;;
6968
  ;;
Lines 6427-6433 Link Here
6427
  symcode='[BCDEGQRST]'
6970
  symcode='[BCDEGQRST]'
6428
  ;;
6971
  ;;
6429
solaris* | sysv5*)
6972
solaris* | sysv5*)
6430
  symcode='[BDT]'
6973
  symcode='[BDRT]'
6431
  ;;
6974
  ;;
6432
sysv4)
6975
sysv4)
6433
  symcode='[DFNSTU]'
6976
  symcode='[DFNSTU]'
Lines 6445-6458 Link Here
6445
# If we're using GNU nm, then use its standard symbol codes.
6988
# If we're using GNU nm, then use its standard symbol codes.
6446
case `$NM -V 2>&1` in
6989
case `$NM -V 2>&1` in
6447
*GNU* | *'with BFD'*)
6990
*GNU* | *'with BFD'*)
6448
  symcode='[ABCDGISTW]' ;;
6991
  symcode='[ABCDGIRSTW]' ;;
6449
esac
6992
esac
6450
6993
6451
# Try without a prefix undercore, then with it.
6994
# Try without a prefix undercore, then with it.
6452
for ac_symprfx in "" "_"; do
6995
for ac_symprfx in "" "_"; do
6453
6996
6997
  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6998
  symxfrm="\\1 $ac_symprfx\\2 \\2"
6999
6454
  # Write the raw and C identifiers.
7000
  # Write the raw and C identifiers.
6455
  lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ 	]\($symcode$symcode*\)[ 	][ 	]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
7001
  lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ 	]\($symcode$symcode*\)[ 	][ 	]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6456
7002
6457
  # Check to see that the pipe works correctly.
7003
  # Check to see that the pipe works correctly.
6458
  pipe_works=no
7004
  pipe_works=no
Lines 6614-6620 Link Here
6614
7160
6615
# Sed substitution that helps us do robust quoting.  It backslashifies
7161
# Sed substitution that helps us do robust quoting.  It backslashifies
6616
# metacharacters that are still active within double-quoted strings.
7162
# metacharacters that are still active within double-quoted strings.
6617
Xsed='sed -e s/^X//'
7163
Xsed='sed -e 1s/^X//'
6618
sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
7164
sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
6619
7165
6620
# Same as above, but do not quote variable references.
7166
# Same as above, but do not quote variable references.
Lines 6919-6924 Link Here
6919
  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
7465
  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6920
fi
7466
fi
6921
7467
7468
for cc_temp in $compiler""; do
7469
  case $cc_temp in
7470
    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7471
    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7472
    \-*) ;;
7473
    *) break;;
7474
  esac
7475
done
7476
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7477
7478
6922
# Only perform the check for file, if the check method requires it
7479
# Only perform the check for file, if the check method requires it
6923
case $deplibs_check_method in
7480
case $deplibs_check_method in
6924
file_magic*)
7481
file_magic*)
Lines 7074-7079 Link Here
7074
fi;
7631
fi;
7075
test -z "$pic_mode" && pic_mode=default
7632
test -z "$pic_mode" && pic_mode=default
7076
7633
7634
# Check if we have a version mismatch between libtool.m4 and ltmain.sh.
7635
#
7636
# Note:  This should be in AC_LIBTOOL_SETUP, _after_ $ltmain have been defined.
7637
#        We also should do it _before_ AC_LIBTOOL_LANG_C_CONFIG that actually
7638
#        calls AC_LIBTOOL_CONFIG and creates libtool.
7639
#
7640
echo "$as_me:$LINENO: checking for correct ltmain.sh version" >&5
7641
echo $ECHO_N "checking for correct ltmain.sh version... $ECHO_C" >&6
7642
if test -z "$ltmain"; then
7643
  echo "$as_me:$LINENO: result: no" >&5
7644
echo "${ECHO_T}no" >&6
7645
  echo
7646
  echo "*** Gentoo sanity check failed! ***"
7647
  echo "*** \$ltmain is not defined, please check the patch for consistency! ***"
7648
  echo
7649
  exit 1
7650
fi
7651
gentoo_lt_version="1.5.18"
7652
gentoo_ltmain_version=`grep '^[:space:]*VERSION=' $ltmain | sed -e 's|^[:space:]*VERSION=||'`
7653
if test "$gentoo_lt_version" != "$gentoo_ltmain_version"; then
7654
  echo "$as_me:$LINENO: result: no" >&5
7655
echo "${ECHO_T}no" >&6
7656
  echo
7657
  echo "*** Gentoo sanity check failed! ***"
7658
  echo "*** libtool.m4 and ltmain.sh have a version mismatch! ***"
7659
  echo "*** (libtool.m4 = $gentoo_lt_version, ltmain.sh = $gentoo_ltmain_version) ***"
7660
  echo
7661
  echo "Please run:"
7662
  echo
7663
  echo "  libtoolize --copy --force"
7664
  echo
7665
  echo "if appropriate, please contact the maintainer of this"
7666
  echo "package (or your distribution) for help."
7667
  echo
7668
  exit 1
7669
else
7670
  echo "$as_me:$LINENO: result: yes" >&5
7671
echo "${ECHO_T}yes" >&6
7672
fi
7673
7674
7077
# Use C for the default configuration in the libtool script
7675
# Use C for the default configuration in the libtool script
7078
tagname=
7676
tagname=
7079
lt_save_CC="$CC"
7677
lt_save_CC="$CC"
Lines 7105-7110 Link Here
7105
compiler=$CC
7703
compiler=$CC
7106
7704
7107
7705
7706
# save warnings/boilerplate of simple test code
7707
ac_outfile=conftest.$ac_objext
7708
printf "$lt_simple_compile_test_code" >conftest.$ac_ext
7709
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
7710
_lt_compiler_boilerplate=`cat conftest.err`
7711
$rm conftest*
7712
7713
ac_outfile=conftest.$ac_objext
7714
printf "$lt_simple_link_test_code" >conftest.$ac_ext
7715
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
7716
_lt_linker_boilerplate=`cat conftest.err`
7717
$rm conftest*
7718
7719
7108
#
7720
#
7109
# Check for any special shared library compilation flags.
7721
# Check for any special shared library compilation flags.
7110
#
7722
#
Lines 7146-7151 Link Here
7146
     if test -s conftest.err; then
7758
     if test -s conftest.err; then
7147
       # Append any errors to the config.log.
7759
       # Append any errors to the config.log.
7148
       cat conftest.err 1>&5
7760
       cat conftest.err 1>&5
7761
       $echo "X$_lt_linker_boilerplate" | $Xsed > conftest.exp
7762
       $SED '/^$/d' conftest.err >conftest.er2
7763
       if diff conftest.exp conftest.er2 >/dev/null; then
7764
         lt_prog_compiler_static_works=yes
7765
       fi
7149
     else
7766
     else
7150
       lt_prog_compiler_static_works=yes
7767
       lt_prog_compiler_static_works=yes
7151
     fi
7768
     fi
Lines 7171-7177 Link Here
7171
if test "$GCC" = yes; then
7788
if test "$GCC" = yes; then
7172
  lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7789
  lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7173
7790
7174
  echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7791
7792
echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7175
echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
7793
echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
7176
if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
7794
if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
7177
  echo $ECHO_N "(cached) $ECHO_C" >&6
7795
  echo $ECHO_N "(cached) $ECHO_C" >&6
Lines 7189-7203 Link Here
7189
   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
7807
   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
7190
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7808
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7191
   -e 's:$: $lt_compiler_flag:'`
7809
   -e 's:$: $lt_compiler_flag:'`
7192
   (eval echo "\"\$as_me:7192: $lt_compile\"" >&5)
7810
   (eval echo "\"\$as_me:7810: $lt_compile\"" >&5)
7193
   (eval "$lt_compile" 2>conftest.err)
7811
   (eval "$lt_compile" 2>conftest.err)
7194
   ac_status=$?
7812
   ac_status=$?
7195
   cat conftest.err >&5
7813
   cat conftest.err >&5
7196
   echo "$as_me:7196: \$? = $ac_status" >&5
7814
   echo "$as_me:7814: \$? = $ac_status" >&5
7197
   if (exit $ac_status) && test -s "$ac_outfile"; then
7815
   if (exit $ac_status) && test -s "$ac_outfile"; then
7198
     # The compiler can only warn and ignore the option if not recognized
7816
     # The compiler can only warn and ignore the option if not recognized
7199
     # So say no if there are warnings
7817
     # So say no if there are warnings other than the usual output.
7200
     if test ! -s conftest.err; then
7818
     $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
7819
     $SED '/^$/d' conftest.err >conftest.er2
7820
     if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
7201
       lt_cv_prog_compiler_rtti_exceptions=yes
7821
       lt_cv_prog_compiler_rtti_exceptions=yes
7202
     fi
7822
     fi
7203
   fi
7823
   fi
Lines 7300-7305 Link Here
7300
	lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7920
	lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7301
      fi
7921
      fi
7302
      ;;
7922
      ;;
7923
      darwin*)
7924
        # PIC is the default on this platform
7925
        # Common symbols not allowed in MH_DYLIB files
7926
       case $cc_basename in
7927
         xlc*)
7928
         lt_prog_compiler_pic='-qnocommon'
7929
         lt_prog_compiler_wl='-Wl,'
7930
         ;;
7931
       esac
7932
       ;;
7303
7933
7304
    mingw* | pw32* | os2*)
7934
    mingw* | pw32* | os2*)
7305
      # This hack is so that the source file can tell whether it is being
7935
      # This hack is so that the source file can tell whether it is being
Lines 7335-7347 Link Here
7335
      ;;
7965
      ;;
7336
7966
7337
    linux*)
7967
    linux*)
7338
      case $CC in
7968
      case $cc_basename in
7339
      icc|ecc)
7969
      icc* | ecc*)
7340
	lt_prog_compiler_wl='-Wl,'
7970
	lt_prog_compiler_wl='-Wl,'
7341
	lt_prog_compiler_pic='-KPIC'
7971
	lt_prog_compiler_pic='-KPIC'
7342
	lt_prog_compiler_static='-static'
7972
	lt_prog_compiler_static='-static'
7343
        ;;
7973
        ;;
7344
      ccc)
7974
      pgcc* | pgf77* | pgf90*)
7975
        # Portland Group compilers (*not* the Pentium gcc compiler,
7976
	# which looks to be a dead project)
7977
	lt_prog_compiler_wl='-Wl,'
7978
	lt_prog_compiler_pic='-fpic'
7979
	lt_prog_compiler_static='-static'
7980
        ;;
7981
      ccc*)
7345
        lt_prog_compiler_wl='-Wl,'
7982
        lt_prog_compiler_wl='-Wl,'
7346
        # All Alpha code is PIC.
7983
        # All Alpha code is PIC.
7347
        lt_prog_compiler_static='-non_shared'
7984
        lt_prog_compiler_static='-non_shared'
Lines 7361-7369 Link Here
7361
      ;;
7998
      ;;
7362
7999
7363
    solaris*)
8000
    solaris*)
7364
      lt_prog_compiler_wl='-Wl,'
7365
      lt_prog_compiler_pic='-KPIC'
8001
      lt_prog_compiler_pic='-KPIC'
7366
      lt_prog_compiler_static='-Bstatic'
8002
      lt_prog_compiler_static='-Bstatic'
8003
      case $cc_basename in
8004
      f77* | f90* | f95*)
8005
	lt_prog_compiler_wl='-Qoption ld ';;
8006
      *)
8007
	lt_prog_compiler_wl='-Wl,';;
8008
      esac
7367
      ;;
8009
      ;;
7368
8010
7369
    sunos4*)
8011
    sunos4*)
Lines 7385-7390 Link Here
7385
      fi
8027
      fi
7386
      ;;
8028
      ;;
7387
8029
8030
    unicos*)
8031
      lt_prog_compiler_wl='-Wl,'
8032
      lt_prog_compiler_can_build_shared=no
8033
      ;;
8034
7388
    uts4*)
8035
    uts4*)
7389
      lt_prog_compiler_pic='-pic'
8036
      lt_prog_compiler_pic='-pic'
7390
      lt_prog_compiler_static='-Bstatic'
8037
      lt_prog_compiler_static='-Bstatic'
Lines 7403-7409 Link Here
7403
# Check to make sure the PIC flag actually works.
8050
# Check to make sure the PIC flag actually works.
7404
#
8051
#
7405
if test -n "$lt_prog_compiler_pic"; then
8052
if test -n "$lt_prog_compiler_pic"; then
7406
  echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8053
8054
echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7407
echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
8055
echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
7408
if test "${lt_prog_compiler_pic_works+set}" = set; then
8056
if test "${lt_prog_compiler_pic_works+set}" = set; then
7409
  echo $ECHO_N "(cached) $ECHO_C" >&6
8057
  echo $ECHO_N "(cached) $ECHO_C" >&6
Lines 7421-7435 Link Here
7421
   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
8069
   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
7422
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8070
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7423
   -e 's:$: $lt_compiler_flag:'`
8071
   -e 's:$: $lt_compiler_flag:'`
7424
   (eval echo "\"\$as_me:7424: $lt_compile\"" >&5)
8072
   (eval echo "\"\$as_me:8072: $lt_compile\"" >&5)
7425
   (eval "$lt_compile" 2>conftest.err)
8073
   (eval "$lt_compile" 2>conftest.err)
7426
   ac_status=$?
8074
   ac_status=$?
7427
   cat conftest.err >&5
8075
   cat conftest.err >&5
7428
   echo "$as_me:7428: \$? = $ac_status" >&5
8076
   echo "$as_me:8076: \$? = $ac_status" >&5
7429
   if (exit $ac_status) && test -s "$ac_outfile"; then
8077
   if (exit $ac_status) && test -s "$ac_outfile"; then
7430
     # The compiler can only warn and ignore the option if not recognized
8078
     # The compiler can only warn and ignore the option if not recognized
7431
     # So say no if there are warnings
8079
     # So say no if there are warnings other than the usual output.
7432
     if test ! -s conftest.err; then
8080
     $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
8081
     $SED '/^$/d' conftest.err >conftest.er2
8082
     if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
7433
       lt_prog_compiler_pic_works=yes
8083
       lt_prog_compiler_pic_works=yes
7434
     fi
8084
     fi
7435
   fi
8085
   fi
Lines 7472-7484 Link Here
7472
   mkdir out
8122
   mkdir out
7473
   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8123
   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7474
8124
7475
   # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
7476
   # that will create temporary files in the current directory regardless of
7477
   # the output directory.  Thus, making CWD read-only will cause this test
7478
   # to fail, enabling locking or at least warning the user not to do parallel
7479
   # builds.
7480
   chmod -w .
7481
7482
   lt_compiler_flag="-o out/conftest2.$ac_objext"
8125
   lt_compiler_flag="-o out/conftest2.$ac_objext"
7483
   # Insert the option either (1) after the last *FLAGS variable, or
8126
   # Insert the option either (1) after the last *FLAGS variable, or
7484
   # (2) before a word containing "conftest.", or (3) at the end.
8127
   # (2) before a word containing "conftest.", or (3) at the end.
Lines 7488-7509 Link Here
7488
   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
8131
   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
7489
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8132
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7490
   -e 's:$: $lt_compiler_flag:'`
8133
   -e 's:$: $lt_compiler_flag:'`
7491
   (eval echo "\"\$as_me:7491: $lt_compile\"" >&5)
8134
   (eval echo "\"\$as_me:8134: $lt_compile\"" >&5)
7492
   (eval "$lt_compile" 2>out/conftest.err)
8135
   (eval "$lt_compile" 2>out/conftest.err)
7493
   ac_status=$?
8136
   ac_status=$?
7494
   cat out/conftest.err >&5
8137
   cat out/conftest.err >&5
7495
   echo "$as_me:7495: \$? = $ac_status" >&5
8138
   echo "$as_me:8138: \$? = $ac_status" >&5
7496
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
8139
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
7497
   then
8140
   then
7498
     # The compiler can only warn and ignore the option if not recognized
8141
     # The compiler can only warn and ignore the option if not recognized
7499
     # So say no if there are warnings
8142
     # So say no if there are warnings
7500
     if test ! -s out/conftest.err; then
8143
     $echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp
8144
     $SED '/^$/d' out/conftest.err >out/conftest.er2
8145
     if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7501
       lt_cv_prog_compiler_c_o=yes
8146
       lt_cv_prog_compiler_c_o=yes
7502
     fi
8147
     fi
7503
   fi
8148
   fi
7504
   chmod u+w .
8149
   chmod u+w .
7505
   $rm conftest* out/*
8150
   $rm conftest*
7506
   rmdir out
8151
   # SGI C++ compiler will create directory out/ii_files/ for
8152
   # template instantiation
8153
   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
8154
   $rm out/* && rmdir out
7507
   cd ..
8155
   cd ..
7508
   rmdir conftest
8156
   rmdir conftest
7509
   $rm conftest*
8157
   $rm conftest*
Lines 7574-7579 Link Here
7574
  # rely on this symbol name, it's probably fine to never include it in
8222
  # rely on this symbol name, it's probably fine to never include it in
7575
  # preloaded symbol tables.
8223
  # preloaded symbol tables.
7576
  extract_expsyms_cmds=
8224
  extract_expsyms_cmds=
8225
  # Just being paranoid about ensuring that cc_basename is set.
8226
  for cc_temp in $compiler""; do
8227
  case $cc_temp in
8228
    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8229
    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8230
    \-*) ;;
8231
    *) break;;
8232
  esac
8233
done
8234
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7577
8235
7578
  case $host_os in
8236
  case $host_os in
7579
  cygwin* | mingw* | pw32*)
8237
  cygwin* | mingw* | pw32*)
Lines 7594-7599 Link Here
7594
    # If archive_cmds runs LD, not CC, wlarc should be empty
8252
    # If archive_cmds runs LD, not CC, wlarc should be empty
7595
    wlarc='${wl}'
8253
    wlarc='${wl}'
7596
8254
8255
    # Set some defaults for GNU ld with shared library support. These
8256
    # are reset later if shared libraries are not supported. Putting them
8257
    # here allows them to be overridden if necessary.
8258
    runpath_var=LD_RUN_PATH
8259
    hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
8260
    export_dynamic_flag_spec='${wl}--export-dynamic'
8261
    # ancient GNU ld didn't support --whole-archive et. al.
8262
    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
8263
	whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8264
      else
8265
  	whole_archive_flag_spec=
8266
    fi
8267
    supports_anon_versioning=no
8268
    case `$LD -v 2>/dev/null` in
8269
      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8270
      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8271
      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8272
      *\ 2.11.*) ;; # other 2.11 versions
8273
      *) supports_anon_versioning=yes ;;
8274
    esac
8275
7597
    # See if GNU ld supports shared libraries.
8276
    # See if GNU ld supports shared libraries.
7598
    case $host_os in
8277
    case $host_os in
7599
    aix3* | aix4* | aix5*)
8278
    aix3* | aix4* | aix5*)
Lines 7644-7650 Link Here
7644
      allow_undefined_flag=unsupported
8323
      allow_undefined_flag=unsupported
7645
      always_export_symbols=no
8324
      always_export_symbols=no
7646
      enable_shared_with_static_runtimes=yes
8325
      enable_shared_with_static_runtimes=yes
7647
      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
8326
      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
7648
8327
7649
      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
8328
      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
7650
        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
8329
        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
Lines 7662-7667 Link Here
7662
      fi
8341
      fi
7663
      ;;
8342
      ;;
7664
8343
8344
    linux*)
8345
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8346
	tmp_addflag=
8347
	case $cc_basename,$host_cpu in
8348
	pgcc*)				# Portland Group C compiler
8349
	  whole_archive_flag_spec='${wl}--whole-archive,`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
8350
	  tmp_addflag=' $pic_flag'
8351
	  ;;
8352
	pgf77* | pgf90* )			# Portland Group f77 and f90 compilers
8353
	  whole_archive_flag_spec='${wl}--whole-archive,`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
8354
	  tmp_addflag=' $pic_flag -Mnomain' ;;
8355
	ecc*,ia64* | icc*,ia64*)		# Intel C compiler on ia64
8356
	  tmp_addflag=' -i_dynamic' ;;
8357
	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
8358
	  tmp_addflag=' -i_dynamic -nofor_main' ;;
8359
	ifc* | ifort*)			# Intel Fortran compiler
8360
	  tmp_addflag=' -nofor_main' ;;
8361
	esac
8362
	archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8363
8364
	if test $supports_anon_versioning = yes; then
8365
	  archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
8366
  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8367
  $echo "local: *; };" >> $output_objdir/$libname.ver~
8368
	  $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8369
	fi
8370
      else
8371
	ld_shlibs=no
8372
      fi
8373
      ;;
8374
7665
    netbsd*)
8375
    netbsd*)
7666
      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8376
      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7667
	archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8377
	archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
Lines 7710-7725 Link Here
7710
      ;;
8420
      ;;
7711
    esac
8421
    esac
7712
8422
7713
    if test "$ld_shlibs" = yes; then
8423
    if test "$ld_shlibs" = no; then
7714
      runpath_var=LD_RUN_PATH
8424
      runpath_var=
7715
      hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
8425
      hardcode_libdir_flag_spec=
7716
      export_dynamic_flag_spec='${wl}--export-dynamic'
8426
      export_dynamic_flag_spec=
7717
      # ancient GNU ld didn't support --whole-archive et. al.
8427
      whole_archive_flag_spec=
7718
      if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
7719
 	whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
7720
      else
7721
  	whole_archive_flag_spec=
7722
      fi
7723
    fi
8428
    fi
7724
  else
8429
  else
7725
    # PORTME fill in a description of your system's linker (not GNU ld)
8430
    # PORTME fill in a description of your system's linker (not GNU ld)
Lines 7783-7789 Link Here
7783
      link_all_deplibs=yes
8488
      link_all_deplibs=yes
7784
8489
7785
      if test "$GCC" = yes; then
8490
      if test "$GCC" = yes; then
7786
	case $host_os in aix4.012|aix4.012.*)
8491
	case $host_os in aix4.[012]|aix4.[012].*)
7787
	# We only want to do this on AIX 4.2 and lower, the check
8492
	# We only want to do this on AIX 4.2 and lower, the check
7788
	# below for broken collect2 doesn't work under 4.3+
8493
	# below for broken collect2 doesn't work under 4.3+
7789
	  collect2name=`${CC} -print-prog-name=collect2`
8494
	  collect2name=`${CC} -print-prog-name=collect2`
Lines 7804-7809 Link Here
7804
	  fi
8509
	  fi
7805
	esac
8510
	esac
7806
	shared_flag='-shared'
8511
	shared_flag='-shared'
8512
	if test "$aix_use_runtimelinking" = yes; then
8513
	  shared_flag="$shared_flag "'${wl}-G'
8514
	fi
7807
      else
8515
      else
7808
	# not using gcc
8516
	# not using gcc
7809
	if test "$host_cpu" = ia64; then
8517
	if test "$host_cpu" = ia64; then
Lines 7828-7834 Link Here
7828
	allow_undefined_flag='-berok'
8536
	allow_undefined_flag='-berok'
7829
       # Determine the default libpath from the value encoded in an empty executable.
8537
       # Determine the default libpath from the value encoded in an empty executable.
7830
       cat >conftest.$ac_ext <<_ACEOF
8538
       cat >conftest.$ac_ext <<_ACEOF
7831
#line $LINENO "configure"
7832
/* confdefs.h.  */
8539
/* confdefs.h.  */
7833
_ACEOF
8540
_ACEOF
7834
cat confdefs.h >>conftest.$ac_ext
8541
cat confdefs.h >>conftest.$ac_ext
Lines 7845-7855 Link Here
7845
_ACEOF
8552
_ACEOF
7846
rm -f conftest.$ac_objext conftest$ac_exeext
8553
rm -f conftest.$ac_objext conftest$ac_exeext
7847
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8554
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7848
  (eval $ac_link) 2>&5
8555
  (eval $ac_link) 2>conftest.er1
7849
  ac_status=$?
8556
  ac_status=$?
8557
  grep -v '^ *+' conftest.er1 >conftest.err
8558
  rm -f conftest.er1
8559
  cat conftest.err >&5
7850
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8560
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7851
  (exit $ac_status); } &&
8561
  (exit $ac_status); } &&
7852
         { ac_try='test -s conftest$ac_exeext'
8562
	 { ac_try='test -z "$ac_c_werror_flag"
8563
			 || test ! -s conftest.err'
8564
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8565
  (eval $ac_try) 2>&5
8566
  ac_status=$?
8567
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8568
  (exit $ac_status); }; } &&
8569
	 { ac_try='test -s conftest$ac_exeext'
7853
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8570
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7854
  (eval $ac_try) 2>&5
8571
  (eval $ac_try) 2>&5
7855
  ac_status=$?
8572
  ac_status=$?
Lines 7866-7872 Link Here
7866
sed 's/^/| /' conftest.$ac_ext >&5
8583
sed 's/^/| /' conftest.$ac_ext >&5
7867
8584
7868
fi
8585
fi
7869
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8586
rm -f conftest.err conftest.$ac_objext \
8587
      conftest$ac_exeext conftest.$ac_ext
7870
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8588
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7871
8589
7872
       hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8590
       hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
Lines 7879-7885 Link Here
7879
	else
8597
	else
7880
	 # Determine the default libpath from the value encoded in an empty executable.
8598
	 # Determine the default libpath from the value encoded in an empty executable.
7881
	 cat >conftest.$ac_ext <<_ACEOF
8599
	 cat >conftest.$ac_ext <<_ACEOF
7882
#line $LINENO "configure"
7883
/* confdefs.h.  */
8600
/* confdefs.h.  */
7884
_ACEOF
8601
_ACEOF
7885
cat confdefs.h >>conftest.$ac_ext
8602
cat confdefs.h >>conftest.$ac_ext
Lines 7896-7906 Link Here
7896
_ACEOF
8613
_ACEOF
7897
rm -f conftest.$ac_objext conftest$ac_exeext
8614
rm -f conftest.$ac_objext conftest$ac_exeext
7898
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8615
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7899
  (eval $ac_link) 2>&5
8616
  (eval $ac_link) 2>conftest.er1
7900
  ac_status=$?
8617
  ac_status=$?
8618
  grep -v '^ *+' conftest.er1 >conftest.err
8619
  rm -f conftest.er1
8620
  cat conftest.err >&5
7901
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8621
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7902
  (exit $ac_status); } &&
8622
  (exit $ac_status); } &&
7903
         { ac_try='test -s conftest$ac_exeext'
8623
	 { ac_try='test -z "$ac_c_werror_flag"
8624
			 || test ! -s conftest.err'
8625
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8626
  (eval $ac_try) 2>&5
8627
  ac_status=$?
8628
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8629
  (exit $ac_status); }; } &&
8630
	 { ac_try='test -s conftest$ac_exeext'
7904
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8631
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7905
  (eval $ac_try) 2>&5
8632
  (eval $ac_try) 2>&5
7906
  ac_status=$?
8633
  ac_status=$?
Lines 7917-7923 Link Here
7917
sed 's/^/| /' conftest.$ac_ext >&5
8644
sed 's/^/| /' conftest.$ac_ext >&5
7918
8645
7919
fi
8646
fi
7920
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8647
rm -f conftest.err conftest.$ac_objext \
8648
      conftest$ac_exeext conftest.$ac_ext
7921
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8649
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7922
8650
7923
	 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8651
	 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
Lines 7944-7950 Link Here
7944
      ld_shlibs=no
8672
      ld_shlibs=no
7945
      ;;
8673
      ;;
7946
8674
7947
    bsdi4*)
8675
    bsdi[45]*)
7948
      export_dynamic_flag_spec=-rdynamic
8676
      export_dynamic_flag_spec=-rdynamic
7949
      ;;
8677
      ;;
7950
8678
Lines 7958-7964 Link Here
7958
      # Tell ltmain to make .lib files, not .a files.
8686
      # Tell ltmain to make .lib files, not .a files.
7959
      libext=lib
8687
      libext=lib
7960
      # Tell ltmain to make .dll files, not .so files.
8688
      # Tell ltmain to make .dll files, not .so files.
7961
      shrext=".dll"
8689
      shrext_cmds=".dll"
7962
      # FIXME: Setting linknames here is a bad hack.
8690
      # FIXME: Setting linknames here is a bad hack.
7963
      archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
8691
      archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
7964
      # The linker will automatically build a .lib file if we build a DLL.
8692
      # The linker will automatically build a .lib file if we build a DLL.
Lines 7970-8012 Link Here
7970
      ;;
8698
      ;;
7971
8699
7972
    darwin* | rhapsody*)
8700
    darwin* | rhapsody*)
7973
    if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
7974
      archive_cmds_need_lc=no
7975
      case "$host_os" in
8701
      case "$host_os" in
7976
      rhapsody* | darwin1.[012])
8702
        rhapsody* | darwin1.[012])
7977
	allow_undefined_flag='-undefined suppress'
8703
         allow_undefined_flag='${wl}-undefined ${wl}suppress'
7978
	;;
8704
         ;;
7979
      *) # Darwin 1.3 on
8705
       *) # Darwin 1.3 on
7980
	test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag='-flat_namespace -undefined suppress'
8706
         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
7981
	;;
8707
           allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8708
         else
8709
           case ${MACOSX_DEPLOYMENT_TARGET} in
8710
             10.[012])
8711
               allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8712
               ;;
8713
             10.*)
8714
               allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
8715
               ;;
8716
           esac
8717
         fi
8718
         ;;
7982
      esac
8719
      esac
7983
      # FIXME: Relying on posixy $() will cause problems for
8720
      archive_cmds_need_lc=no
7984
      #        cross-compilation, but unfortunately the echo tests do not
7985
      #        yet detect zsh echo's removal of \ escapes.  Also zsh mangles
7986
      #	       `"' quotes if we put them in here... so don't!
7987
    	lt_int_apple_cc_single_mod=no
7988
    	output_verbose_link_cmd='echo'
7989
    	if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
7990
    	  lt_int_apple_cc_single_mod=yes
7991
    	fi
7992
    	if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
7993
    	  archive_cmds='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
7994
    	else
7995
        archive_cmds='$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
7996
      fi
7997
      module_cmds='$CC -bundle ${wl}-bind_at_load $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags'
7998
      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
7999
        if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
8000
          archive_expsym_cmds='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}'
8001
        else
8002
          archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
8003
        fi
8004
          module_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -bundle $allow_undefined_flag  -o $lib $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
8005
      hardcode_direct=no
8721
      hardcode_direct=no
8006
      hardcode_automatic=yes
8722
      hardcode_automatic=yes
8007
      hardcode_shlibpath_var=unsupported
8723
      hardcode_shlibpath_var=unsupported
8008
      whole_archive_flag_spec='-all_load $convenience'
8724
      whole_archive_flag_spec=''
8009
      link_all_deplibs=yes
8725
      link_all_deplibs=yes
8726
    if test "$GCC" = yes ; then
8727
    	output_verbose_link_cmd='echo'
8728
        archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
8729
      module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8730
      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
8731
      archive_expsym_cmds='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}'
8732
      module_expsym_cmds='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}'
8733
    else
8734
      case $cc_basename in
8735
        xlc*)
8736
         output_verbose_link_cmd='echo'
8737
         archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
8738
         module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8739
          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
8740
         archive_expsym_cmds='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}'
8741
          module_expsym_cmds='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}'
8742
          ;;
8743
       *)
8744
         ld_shlibs=no
8745
          ;;
8746
      esac
8010
    fi
8747
    fi
8011
      ;;
8748
      ;;
8012
8749
Lines 8040-8046 Link Here
8040
      ;;
8777
      ;;
8041
8778
8042
    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8779
    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8043
    freebsd*)
8780
    freebsd* | kfreebsd*-gnu | dragonfly*)
8044
      archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8781
      archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8045
      hardcode_libdir_flag_spec='-R$libdir'
8782
      hardcode_libdir_flag_spec='-R$libdir'
8046
      hardcode_direct=yes
8783
      hardcode_direct=yes
Lines 8151-8156 Link Here
8151
      hardcode_shlibpath_var=no
8888
      hardcode_shlibpath_var=no
8152
      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8889
      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8153
	archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8890
	archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8891
	archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8154
	hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8892
	hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8155
	export_dynamic_flag_spec='${wl}-E'
8893
	export_dynamic_flag_spec='${wl}-E'
8156
      else
8894
      else
Lines 8196-8202 Link Here
8196
	allow_undefined_flag=' -expect_unresolved \*'
8934
	allow_undefined_flag=' -expect_unresolved \*'
8197
	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'
8935
	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'
8198
	archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
8936
	archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
8199
	$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'
8937
	$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'
8200
8938
8201
	# Both c and cxx compiler support -rpath directly
8939
	# Both c and cxx compiler support -rpath directly
8202
	hardcode_libdir_flag_spec='-rpath $libdir'
8940
	hardcode_libdir_flag_spec='-rpath $libdir'
Lines 8215-8224 Link Here
8215
    solaris*)
8953
    solaris*)
8216
      no_undefined_flag=' -z text'
8954
      no_undefined_flag=' -z text'
8217
      if test "$GCC" = yes; then
8955
      if test "$GCC" = yes; then
8956
	wlarc='${wl}'
8218
	archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8957
	archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8219
	archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8958
	archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8220
	  $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
8959
	  $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
8221
      else
8960
      else
8961
	wlarc=''
8222
	archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8962
	archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8223
	archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8963
	archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8224
  	$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
8964
  	$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
Lines 8227-8234 Link Here
8227
      hardcode_shlibpath_var=no
8967
      hardcode_shlibpath_var=no
8228
      case $host_os in
8968
      case $host_os in
8229
      solaris2.[0-5] | solaris2.[0-5].*) ;;
8969
      solaris2.[0-5] | solaris2.[0-5].*) ;;
8230
      *) # Supported since Solaris 2.6 (maybe 2.5.1?)
8970
      *)
8231
	whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
8971
 	# The compiler driver will combine linker options so we
8972
 	# cannot just pass the convience library names through
8973
 	# without $wl, iff we do not link with $LD.
8974
 	# Luckily, gcc supports the same syntax we need for Sun Studio.
8975
 	# Supported since Solaris 2.6 (maybe 2.5.1?)
8976
 	case $wlarc in
8977
 	'')
8978
 	  whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
8979
 	*)
8980
 	  whole_archive_flag_spec='${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' ;;
8981
 	esac ;;
8232
      esac
8982
      esac
8233
      link_all_deplibs=yes
8983
      link_all_deplibs=yes
8234
      ;;
8984
      ;;
Lines 8371-8477 Link Here
8371
        deplibs=
9121
        deplibs=
8372
        wl=$lt_prog_compiler_wl
9122
        wl=$lt_prog_compiler_wl
8373
        compiler_flags=-v
9123
        compiler_flags=-v
8374
        linker_flags=-v
9124
        linker_flags=-v
8375
        verstring=
9125
        verstring=
8376
        output_objdir=.
9126
        output_objdir=.
8377
        libname=conftest
9127
        libname=conftest
8378
        lt_save_allow_undefined_flag=$allow_undefined_flag
9128
        lt_save_allow_undefined_flag=$allow_undefined_flag
8379
        allow_undefined_flag=
9129
        allow_undefined_flag=
8380
        if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
9130
        if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
8381
  (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
9131
  (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
8382
  ac_status=$?
9132
  ac_status=$?
8383
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9133
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8384
  (exit $ac_status); }
9134
  (exit $ac_status); }
8385
        then
9135
        then
8386
	  archive_cmds_need_lc=no
9136
	  archive_cmds_need_lc=no
8387
        else
9137
        else
8388
	  archive_cmds_need_lc=yes
9138
	  archive_cmds_need_lc=yes
8389
        fi
9139
        fi
8390
        allow_undefined_flag=$lt_save_allow_undefined_flag
9140
        allow_undefined_flag=$lt_save_allow_undefined_flag
8391
      else
9141
      else
8392
        cat conftest.err 1>&5
9142
        cat conftest.err 1>&5
8393
      fi
9143
      fi
8394
      $rm conftest*
9144
      $rm conftest*
8395
      echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
9145
      echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
8396
echo "${ECHO_T}$archive_cmds_need_lc" >&6
9146
echo "${ECHO_T}$archive_cmds_need_lc" >&6
8397
      ;;
9147
      ;;
8398
    esac
9148
    esac
8399
  fi
9149
  fi
8400
  ;;
9150
  ;;
8401
esac
9151
esac
8402
8403
echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
8404
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
8405
hardcode_action=
8406
if test -n "$hardcode_libdir_flag_spec" || \
8407
   test -n "$runpath_var " || \
8408
   test "X$hardcode_automatic"="Xyes" ; then
8409
8410
  # We can hardcode non-existant directories.
8411
  if test "$hardcode_direct" != no &&
8412
     # If the only mechanism to avoid hardcoding is shlibpath_var, we
8413
     # have to relink, otherwise we might link with an installed library
8414
     # when we should be linking with a yet-to-be-installed one
8415
     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
8416
     test "$hardcode_minus_L" != no; then
8417
    # Linking always hardcodes the temporary library directory.
8418
    hardcode_action=relink
8419
  else
8420
    # We can link without hardcoding, and we can hardcode nonexisting dirs.
8421
    hardcode_action=immediate
8422
  fi
8423
else
8424
  # We cannot hardcode anything, or else we can only hardcode existing
8425
  # directories.
8426
  hardcode_action=unsupported
8427
fi
8428
echo "$as_me:$LINENO: result: $hardcode_action" >&5
8429
echo "${ECHO_T}$hardcode_action" >&6
8430
8431
if test "$hardcode_action" = relink; then
8432
  # Fast installation is not supported
8433
  enable_fast_install=no
8434
elif test "$shlibpath_overrides_runpath" = yes ||
8435
     test "$enable_shared" = no; then
8436
  # Fast installation is not necessary
8437
  enable_fast_install=needless
8438
fi
8439
8440
striplib=
8441
old_striplib=
8442
echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
8443
echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
8444
if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
8445
  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
8446
  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
8447
  echo "$as_me:$LINENO: result: yes" >&5
8448
echo "${ECHO_T}yes" >&6
8449
else
8450
# FIXME - insert some real tests, host_os isn't really good enough
8451
  case $host_os in
8452
   darwin*)
8453
       if test -n "$STRIP" ; then
8454
         striplib="$STRIP -x"
8455
         echo "$as_me:$LINENO: result: yes" >&5
8456
echo "${ECHO_T}yes" >&6
8457
       else
8458
  echo "$as_me:$LINENO: result: no" >&5
8459
echo "${ECHO_T}no" >&6
8460
fi
8461
       ;;
8462
   *)
8463
  echo "$as_me:$LINENO: result: no" >&5
8464
echo "${ECHO_T}no" >&6
8465
    ;;
8466
  esac
8467
fi
8468
9152
8469
echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
9153
echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8470
echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
9154
echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
8471
library_names_spec=
9155
library_names_spec=
8472
libname_spec='lib$name'
9156
libname_spec='lib$name'
8473
soname_spec=
9157
soname_spec=
8474
shrext=".so"
9158
shrext_cmds=".so"
8475
postinstall_cmds=
9159
postinstall_cmds=
8476
postuninstall_cmds=
9160
postuninstall_cmds=
8477
finish_cmds=
9161
finish_cmds=
Lines 8559-8565 Link Here
8559
amigaos*)
9243
amigaos*)
8560
  library_names_spec='$libname.ixlibrary $libname.a'
9244
  library_names_spec='$libname.ixlibrary $libname.a'
8561
  # Create ${libname}_ixlibrary.a entries in /sys/libs.
9245
  # Create ${libname}_ixlibrary.a entries in /sys/libs.
8562
  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'
9246
  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'
8563
  ;;
9247
  ;;
8564
9248
8565
beos*)
9249
beos*)
Lines 8568-8574 Link Here
8568
  shlibpath_var=LIBRARY_PATH
9252
  shlibpath_var=LIBRARY_PATH
8569
  ;;
9253
  ;;
8570
9254
8571
bsdi4*)
9255
bsdi[45]*)
8572
  version_type=linux
9256
  version_type=linux
8573
  need_version=no
9257
  need_version=no
8574
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9258
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
Lines 8584-8590 Link Here
8584
9268
8585
cygwin* | mingw* | pw32*)
9269
cygwin* | mingw* | pw32*)
8586
  version_type=windows
9270
  version_type=windows
8587
  shrext=".dll"
9271
  shrext_cmds=".dll"
8588
  need_version=no
9272
  need_version=no
8589
  need_lib_prefix=no
9273
  need_lib_prefix=no
8590
9274
Lines 8606-8612 Link Here
8606
    cygwin*)
9290
    cygwin*)
8607
      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9291
      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8608
      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9292
      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8609
      sys_lib_search_path_spec="/lib /lib/w32api /usr/lib /usr/local/lib"
9293
      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8610
      ;;
9294
      ;;
8611
    mingw*)
9295
    mingw*)
8612
      # MinGW DLLs use traditional 'lib' prefix
9296
      # MinGW DLLs use traditional 'lib' prefix
Lines 8626-8636 Link Here
8626
      ;;
9310
      ;;
8627
    pw32*)
9311
    pw32*)
8628
      # pw32 DLLs use 'pw' prefix rather than 'lib'
9312
      # pw32 DLLs use 'pw' prefix rather than 'lib'
8629
      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
9313
      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8630
      ;;
9314
      ;;
8631
    esac
9315
    esac
8632
    ;;
9316
    ;;
8633
9317
9318
  linux*)
9319
    if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
9320
      archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9321
      supports_anon_versioning=no
9322
      case `$LD -v 2>/dev/null` in
9323
        *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9324
        *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9325
        *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9326
        *\ 2.11.*) ;; # other 2.11 versions
9327
        *) supports_anon_versioning=yes ;;
9328
      esac
9329
      if test $supports_anon_versioning = yes; then
9330
        archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
9331
cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9332
$echo "local: *; };" >> $output_objdir/$libname.ver~
9333
        $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9334
      else
9335
        $archive_expsym_cmds="$archive_cmds"
9336
      fi
9337
    else
9338
      ld_shlibs=no
9339
    fi
9340
    ;;
9341
8634
  *)
9342
  *)
8635
    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9343
    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
8636
    ;;
9344
    ;;
Lines 8645-8661 Link Here
8645
  version_type=darwin
9353
  version_type=darwin
8646
  need_lib_prefix=no
9354
  need_lib_prefix=no
8647
  need_version=no
9355
  need_version=no
8648
  # FIXME: Relying on posixy $() will cause problems for
8649
  #        cross-compilation, but unfortunately the echo tests do not
8650
  #        yet detect zsh echo's removal of \ escapes.
8651
  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9356
  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
8652
  soname_spec='${libname}${release}${major}$shared_ext'
9357
  soname_spec='${libname}${release}${major}$shared_ext'
8653
  shlibpath_overrides_runpath=yes
9358
  shlibpath_overrides_runpath=yes
8654
  shlibpath_var=DYLD_LIBRARY_PATH
9359
  shlibpath_var=DYLD_LIBRARY_PATH
8655
  shrext='$(test .$module = .yes && echo .so || echo .dylib)'
9360
  shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
8656
  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
9361
  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
8657
  if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
9362
  if test "$GCC" = yes; then
8658
  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"`
9363
    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"`
9364
  else
9365
    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
8659
  fi
9366
  fi
8660
  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9367
  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
8661
  ;;
9368
  ;;
Lines 8673-8679 Link Here
8673
  dynamic_linker=no
9380
  dynamic_linker=no
8674
  ;;
9381
  ;;
8675
9382
8676
freebsd*)
9383
kfreebsd*-gnu)
9384
  version_type=linux
9385
  need_lib_prefix=no
9386
  need_version=no
9387
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9388
  soname_spec='${libname}${release}${shared_ext}$major'
9389
  shlibpath_var=LD_LIBRARY_PATH
9390
  shlibpath_overrides_runpath=no
9391
  hardcode_into_libs=yes
9392
  dynamic_linker='GNU ld.so'
9393
  ;;
9394
9395
freebsd* | dragonfly*)
9396
  # DragonFly does not have aout.  When/if they implement a new
9397
  # versioning mechanism, adjust this.
8677
  objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
9398
  objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
8678
  version_type=freebsd-$objformat
9399
  version_type=freebsd-$objformat
8679
  case $version_type in
9400
  case $version_type in
Lines 8692-8698 Link Here
8692
  freebsd2*)
9413
  freebsd2*)
8693
    shlibpath_overrides_runpath=yes
9414
    shlibpath_overrides_runpath=yes
8694
    ;;
9415
    ;;
8695
  freebsd3.01* | freebsdelf3.01*)
9416
  freebsd3.[01]* | freebsdelf3.[01]*)
8696
    shlibpath_overrides_runpath=yes
9417
    shlibpath_overrides_runpath=yes
8697
    hardcode_into_libs=yes
9418
    hardcode_into_libs=yes
8698
    ;;
9419
    ;;
Lines 8721-8727 Link Here
8721
  need_version=no
9442
  need_version=no
8722
  case "$host_cpu" in
9443
  case "$host_cpu" in
8723
  ia64*)
9444
  ia64*)
8724
    shrext='.so'
9445
    shrext_cmds='.so'
8725
    hardcode_into_libs=yes
9446
    hardcode_into_libs=yes
8726
    dynamic_linker="$host_os dld.so"
9447
    dynamic_linker="$host_os dld.so"
8727
    shlibpath_var=LD_LIBRARY_PATH
9448
    shlibpath_var=LD_LIBRARY_PATH
Lines 8736-8742 Link Here
8736
    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9457
    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8737
    ;;
9458
    ;;
8738
   hppa*64*)
9459
   hppa*64*)
8739
     shrext='.sl'
9460
     shrext_cmds='.sl'
8740
     hardcode_into_libs=yes
9461
     hardcode_into_libs=yes
8741
     dynamic_linker="$host_os dld.sl"
9462
     dynamic_linker="$host_os dld.sl"
8742
     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9463
     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
Lines 8747-8753 Link Here
8747
     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9468
     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8748
     ;;
9469
     ;;
8749
   *)
9470
   *)
8750
    shrext='.sl'
9471
    shrext_cmds='.sl'
8751
    dynamic_linker="$host_os dld.sl"
9472
    dynamic_linker="$host_os dld.sl"
8752
    shlibpath_var=SHLIB_PATH
9473
    shlibpath_var=SHLIB_PATH
8753
    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9474
    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
Lines 8816-8825 Link Here
8816
  # before this can be enabled.
9537
  # before this can be enabled.
8817
  hardcode_into_libs=yes
9538
  hardcode_into_libs=yes
8818
9539
8819
  case $LD in # libtool.m4 will add one of these switches to LD
9540
  # Append ld.so.conf contents to the search path
8820
  *"-m elf_x86_64"*|*"-m elf64ppc"*|*"-m elf64_s390"*|*"-m elf64_sparc"*)
9541
  if test -f /etc/ld.so.conf; then
8821
    sys_lib_dlsearch_path_spec="/lib64 /usr/lib64"
9542
    lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:,	]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
8822
    sys_lib_search_path_spec="/lib64 /usr/lib64 /usr/local/lib64"
9543
    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9544
  fi
9545
9546
  case $host_cpu:$lt_cv_cc_64bit_output in
9547
  powerpc64:yes | s390x:yes | sparc64:yes | x86_64:yes)
9548
    sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /usr/X11R6/lib64"
9549
    sys_lib_search_path_spec="/lib64 /usr/lib64 /usr/local/lib64 /usr/X11R6/lib64"
8823
    ;;
9550
    ;;
8824
  esac
9551
  esac
8825
9552
Lines 8830-8835 Link Here
8830
  # people can always --disable-shared, the test was removed, and we
9557
  # people can always --disable-shared, the test was removed, and we
8831
  # assume the GNU/Linux dynamic linker is in use.
9558
  # assume the GNU/Linux dynamic linker is in use.
8832
  dynamic_linker='GNU/Linux ld.so'
9559
  dynamic_linker='GNU/Linux ld.so'
9560
9561
  # Find out which ABI we are using (multilib Linux x86_64 hack).
9562
  libsuff=
9563
  case "$host_cpu" in
9564
  x86_64*)
9565
    echo '#line 9565 "configure"' > conftest.$ac_ext
9566
    if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9567
  (eval $ac_compile) 2>&5
9568
  ac_status=$?
9569
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9570
  (exit $ac_status); }; then
9571
      case `/usr/bin/file conftest.$ac_objext` in
9572
      *64-bit*)
9573
        libsuff=64
9574
        ;;
9575
      esac
9576
    fi
9577
    rm -rf conftest*
9578
    ;;
9579
  *)
9580
    ;;
9581
  esac
9582
  sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff}"
9583
  sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
9584
  ;;
9585
9586
knetbsd*-gnu)
9587
  version_type=linux
9588
  need_lib_prefix=no
9589
  need_version=no
9590
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9591
  soname_spec='${libname}${release}${shared_ext}$major'
9592
  shlibpath_var=LD_LIBRARY_PATH
9593
  shlibpath_overrides_runpath=no
9594
  hardcode_into_libs=yes
9595
  dynamic_linker='GNU ld.so'
8833
  ;;
9596
  ;;
8834
9597
8835
netbsd*)
9598
netbsd*)
Lines 8841-8847 Link Here
8841
    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9604
    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8842
    dynamic_linker='NetBSD (a.out) ld.so'
9605
    dynamic_linker='NetBSD (a.out) ld.so'
8843
  else
9606
  else
8844
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
9607
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8845
    soname_spec='${libname}${release}${shared_ext}$major'
9608
    soname_spec='${libname}${release}${shared_ext}$major'
8846
    dynamic_linker='NetBSD ld.elf_so'
9609
    dynamic_linker='NetBSD ld.elf_so'
8847
  fi
9610
  fi
Lines 8857-8863 Link Here
8857
  shlibpath_overrides_runpath=yes
9620
  shlibpath_overrides_runpath=yes
8858
  ;;
9621
  ;;
8859
9622
8860
nto-qnx)
9623
nto-qnx*)
8861
  version_type=linux
9624
  version_type=linux
8862
  need_lib_prefix=no
9625
  need_lib_prefix=no
8863
  need_version=no
9626
  need_version=no
Lines 8870-8876 Link Here
8870
openbsd*)
9633
openbsd*)
8871
  version_type=sunos
9634
  version_type=sunos
8872
  need_lib_prefix=no
9635
  need_lib_prefix=no
8873
  need_version=no
9636
  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9637
  case $host_os in
9638
    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9639
    *)                         need_version=no  ;;
9640
  esac
8874
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9641
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8875
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9642
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8876
  shlibpath_var=LD_LIBRARY_PATH
9643
  shlibpath_var=LD_LIBRARY_PATH
Lines 8890-8896 Link Here
8890
9657
8891
os2*)
9658
os2*)
8892
  libname_spec='$name'
9659
  libname_spec='$name'
8893
  shrext=".dll"
9660
  shrext_cmds=".dll"
8894
  need_lib_prefix=no
9661
  need_lib_prefix=no
8895
  library_names_spec='$libname${shared_ext} $libname.a'
9662
  library_names_spec='$libname${shared_ext} $libname.a'
8896
  dynamic_linker='OS/2 ld.exe'
9663
  dynamic_linker='OS/2 ld.exe'
Lines 8988-8993 Link Here
8988
echo "${ECHO_T}$dynamic_linker" >&6
9755
echo "${ECHO_T}$dynamic_linker" >&6
8989
test "$dynamic_linker" = no && can_build_shared=no
9756
test "$dynamic_linker" = no && can_build_shared=no
8990
9757
9758
echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
9759
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
9760
hardcode_action=
9761
if test -n "$hardcode_libdir_flag_spec" || \
9762
   test -n "$runpath_var" || \
9763
   test "X$hardcode_automatic" = "Xyes" ; then
9764
9765
  # We can hardcode non-existant directories.
9766
  if test "$hardcode_direct" != no &&
9767
     # If the only mechanism to avoid hardcoding is shlibpath_var, we
9768
     # have to relink, otherwise we might link with an installed library
9769
     # when we should be linking with a yet-to-be-installed one
9770
     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
9771
     test "$hardcode_minus_L" != no; then
9772
    # Linking always hardcodes the temporary library directory.
9773
    hardcode_action=relink
9774
  else
9775
    # We can link without hardcoding, and we can hardcode nonexisting dirs.
9776
    hardcode_action=immediate
9777
  fi
9778
else
9779
  # We cannot hardcode anything, or else we can only hardcode existing
9780
  # directories.
9781
  hardcode_action=unsupported
9782
fi
9783
echo "$as_me:$LINENO: result: $hardcode_action" >&5
9784
echo "${ECHO_T}$hardcode_action" >&6
9785
9786
if test "$hardcode_action" = relink; then
9787
  # Fast installation is not supported
9788
  enable_fast_install=no
9789
elif test "$shlibpath_overrides_runpath" = yes ||
9790
     test "$enable_shared" = no; then
9791
  # Fast installation is not necessary
9792
  enable_fast_install=needless
9793
fi
9794
9795
striplib=
9796
old_striplib=
9797
echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
9798
echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
9799
if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
9800
  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
9801
  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
9802
  echo "$as_me:$LINENO: result: yes" >&5
9803
echo "${ECHO_T}yes" >&6
9804
else
9805
# FIXME - insert some real tests, host_os isn't really good enough
9806
  case $host_os in
9807
   darwin*)
9808
       if test -n "$STRIP" ; then
9809
         striplib="$STRIP -x"
9810
         echo "$as_me:$LINENO: result: yes" >&5
9811
echo "${ECHO_T}yes" >&6
9812
       else
9813
  echo "$as_me:$LINENO: result: no" >&5
9814
echo "${ECHO_T}no" >&6
9815
fi
9816
       ;;
9817
   *)
9818
  echo "$as_me:$LINENO: result: no" >&5
9819
echo "${ECHO_T}no" >&6
9820
    ;;
9821
  esac
9822
fi
9823
8991
if test "x$enable_dlopen" != xyes; then
9824
if test "x$enable_dlopen" != xyes; then
8992
  enable_dlopen=unknown
9825
  enable_dlopen=unknown
8993
  enable_dlopen_self=unknown
9826
  enable_dlopen_self=unknown
Lines 9023-9029 Link Here
9023
  ac_check_lib_save_LIBS=$LIBS
9856
  ac_check_lib_save_LIBS=$LIBS
9024
LIBS="-ldl  $LIBS"
9857
LIBS="-ldl  $LIBS"
9025
cat >conftest.$ac_ext <<_ACEOF
9858
cat >conftest.$ac_ext <<_ACEOF
9026
#line $LINENO "configure"
9027
/* confdefs.h.  */
9859
/* confdefs.h.  */
9028
_ACEOF
9860
_ACEOF
9029
cat confdefs.h >>conftest.$ac_ext
9861
cat confdefs.h >>conftest.$ac_ext
Lines 9047-9057 Link Here
9047
_ACEOF
9879
_ACEOF
9048
rm -f conftest.$ac_objext conftest$ac_exeext
9880
rm -f conftest.$ac_objext conftest$ac_exeext
9049
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9881
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9050
  (eval $ac_link) 2>&5
9882
  (eval $ac_link) 2>conftest.er1
9051
  ac_status=$?
9883
  ac_status=$?
9884
  grep -v '^ *+' conftest.er1 >conftest.err
9885
  rm -f conftest.er1
9886
  cat conftest.err >&5
9052
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9887
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9053
  (exit $ac_status); } &&
9888
  (exit $ac_status); } &&
9054
         { ac_try='test -s conftest$ac_exeext'
9889
	 { ac_try='test -z "$ac_c_werror_flag"
9890
			 || test ! -s conftest.err'
9891
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9892
  (eval $ac_try) 2>&5
9893
  ac_status=$?
9894
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9895
  (exit $ac_status); }; } &&
9896
	 { ac_try='test -s conftest$ac_exeext'
9055
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9897
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9056
  (eval $ac_try) 2>&5
9898
  (eval $ac_try) 2>&5
9057
  ac_status=$?
9899
  ac_status=$?
Lines 9064-9070 Link Here
9064
9906
9065
ac_cv_lib_dl_dlopen=no
9907
ac_cv_lib_dl_dlopen=no
9066
fi
9908
fi
9067
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9909
rm -f conftest.err conftest.$ac_objext \
9910
      conftest$ac_exeext conftest.$ac_ext
9068
LIBS=$ac_check_lib_save_LIBS
9911
LIBS=$ac_check_lib_save_LIBS
9069
fi
9912
fi
9070
echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9913
echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
Lines 9088-9108 Link Here
9088
  echo $ECHO_N "(cached) $ECHO_C" >&6
9931
  echo $ECHO_N "(cached) $ECHO_C" >&6
9089
else
9932
else
9090
  cat >conftest.$ac_ext <<_ACEOF
9933
  cat >conftest.$ac_ext <<_ACEOF
9091
#line $LINENO "configure"
9092
/* confdefs.h.  */
9934
/* confdefs.h.  */
9093
_ACEOF
9935
_ACEOF
9094
cat confdefs.h >>conftest.$ac_ext
9936
cat confdefs.h >>conftest.$ac_ext
9095
cat >>conftest.$ac_ext <<_ACEOF
9937
cat >>conftest.$ac_ext <<_ACEOF
9096
/* end confdefs.h.  */
9938
/* end confdefs.h.  */
9939
/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9940
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9941
#define shl_load innocuous_shl_load
9942
9097
/* System header to define __stub macros and hopefully few prototypes,
9943
/* System header to define __stub macros and hopefully few prototypes,
9098
    which can conflict with char shl_load (); below.
9944
    which can conflict with char shl_load (); below.
9099
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9945
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9100
    <limits.h> exists even on freestanding compilers.  */
9946
    <limits.h> exists even on freestanding compilers.  */
9947
9101
#ifdef __STDC__
9948
#ifdef __STDC__
9102
# include <limits.h>
9949
# include <limits.h>
9103
#else
9950
#else
9104
# include <assert.h>
9951
# include <assert.h>
9105
#endif
9952
#endif
9953
9954
#undef shl_load
9955
9106
/* Override any gcc2 internal prototype to avoid an error.  */
9956
/* Override any gcc2 internal prototype to avoid an error.  */
9107
#ifdef __cplusplus
9957
#ifdef __cplusplus
9108
extern "C"
9958
extern "C"
Lines 9133-9143 Link Here
9133
_ACEOF
9983
_ACEOF
9134
rm -f conftest.$ac_objext conftest$ac_exeext
9984
rm -f conftest.$ac_objext conftest$ac_exeext
9135
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9985
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9136
  (eval $ac_link) 2>&5
9986
  (eval $ac_link) 2>conftest.er1
9137
  ac_status=$?
9987
  ac_status=$?
9988
  grep -v '^ *+' conftest.er1 >conftest.err
9989
  rm -f conftest.er1
9990
  cat conftest.err >&5
9138
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9991
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9139
  (exit $ac_status); } &&
9992
  (exit $ac_status); } &&
9140
         { ac_try='test -s conftest$ac_exeext'
9993
	 { ac_try='test -z "$ac_c_werror_flag"
9994
			 || test ! -s conftest.err'
9995
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9996
  (eval $ac_try) 2>&5
9997
  ac_status=$?
9998
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9999
  (exit $ac_status); }; } &&
10000
	 { ac_try='test -s conftest$ac_exeext'
9141
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10001
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9142
  (eval $ac_try) 2>&5
10002
  (eval $ac_try) 2>&5
9143
  ac_status=$?
10003
  ac_status=$?
Lines 9150-9156 Link Here
9150
10010
9151
ac_cv_func_shl_load=no
10011
ac_cv_func_shl_load=no
9152
fi
10012
fi
9153
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10013
rm -f conftest.err conftest.$ac_objext \
10014
      conftest$ac_exeext conftest.$ac_ext
9154
fi
10015
fi
9155
echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
10016
echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9156
echo "${ECHO_T}$ac_cv_func_shl_load" >&6
10017
echo "${ECHO_T}$ac_cv_func_shl_load" >&6
Lines 9165-9171 Link Here
9165
  ac_check_lib_save_LIBS=$LIBS
10026
  ac_check_lib_save_LIBS=$LIBS
9166
LIBS="-ldld  $LIBS"
10027
LIBS="-ldld  $LIBS"
9167
cat >conftest.$ac_ext <<_ACEOF
10028
cat >conftest.$ac_ext <<_ACEOF
9168
#line $LINENO "configure"
9169
/* confdefs.h.  */
10029
/* confdefs.h.  */
9170
_ACEOF
10030
_ACEOF
9171
cat confdefs.h >>conftest.$ac_ext
10031
cat confdefs.h >>conftest.$ac_ext
Lines 9189-9199 Link Here
9189
_ACEOF
10049
_ACEOF
9190
rm -f conftest.$ac_objext conftest$ac_exeext
10050
rm -f conftest.$ac_objext conftest$ac_exeext
9191
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10051
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9192
  (eval $ac_link) 2>&5
10052
  (eval $ac_link) 2>conftest.er1
9193
  ac_status=$?
10053
  ac_status=$?
10054
  grep -v '^ *+' conftest.er1 >conftest.err
10055
  rm -f conftest.er1
10056
  cat conftest.err >&5
9194
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10057
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9195
  (exit $ac_status); } &&
10058
  (exit $ac_status); } &&
9196
         { ac_try='test -s conftest$ac_exeext'
10059
	 { ac_try='test -z "$ac_c_werror_flag"
10060
			 || test ! -s conftest.err'
10061
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10062
  (eval $ac_try) 2>&5
10063
  ac_status=$?
10064
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10065
  (exit $ac_status); }; } &&
10066
	 { ac_try='test -s conftest$ac_exeext'
9197
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10067
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9198
  (eval $ac_try) 2>&5
10068
  (eval $ac_try) 2>&5
9199
  ac_status=$?
10069
  ac_status=$?
Lines 9206-9212 Link Here
9206
10076
9207
ac_cv_lib_dld_shl_load=no
10077
ac_cv_lib_dld_shl_load=no
9208
fi
10078
fi
9209
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10079
rm -f conftest.err conftest.$ac_objext \
10080
      conftest$ac_exeext conftest.$ac_ext
9210
LIBS=$ac_check_lib_save_LIBS
10081
LIBS=$ac_check_lib_save_LIBS
9211
fi
10082
fi
9212
echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
10083
echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
Lines 9220-9240 Link Here
9220
  echo $ECHO_N "(cached) $ECHO_C" >&6
10091
  echo $ECHO_N "(cached) $ECHO_C" >&6
9221
else
10092
else
9222
  cat >conftest.$ac_ext <<_ACEOF
10093
  cat >conftest.$ac_ext <<_ACEOF
9223
#line $LINENO "configure"
9224
/* confdefs.h.  */
10094
/* confdefs.h.  */
9225
_ACEOF
10095
_ACEOF
9226
cat confdefs.h >>conftest.$ac_ext
10096
cat confdefs.h >>conftest.$ac_ext
9227
cat >>conftest.$ac_ext <<_ACEOF
10097
cat >>conftest.$ac_ext <<_ACEOF
9228
/* end confdefs.h.  */
10098
/* end confdefs.h.  */
10099
/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
10100
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10101
#define dlopen innocuous_dlopen
10102
9229
/* System header to define __stub macros and hopefully few prototypes,
10103
/* System header to define __stub macros and hopefully few prototypes,
9230
    which can conflict with char dlopen (); below.
10104
    which can conflict with char dlopen (); below.
9231
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10105
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9232
    <limits.h> exists even on freestanding compilers.  */
10106
    <limits.h> exists even on freestanding compilers.  */
10107
9233
#ifdef __STDC__
10108
#ifdef __STDC__
9234
# include <limits.h>
10109
# include <limits.h>
9235
#else
10110
#else
9236
# include <assert.h>
10111
# include <assert.h>
9237
#endif
10112
#endif
10113
10114
#undef dlopen
10115
9238
/* Override any gcc2 internal prototype to avoid an error.  */
10116
/* Override any gcc2 internal prototype to avoid an error.  */
9239
#ifdef __cplusplus
10117
#ifdef __cplusplus
9240
extern "C"
10118
extern "C"
Lines 9265-9275 Link Here
9265
_ACEOF
10143
_ACEOF
9266
rm -f conftest.$ac_objext conftest$ac_exeext
10144
rm -f conftest.$ac_objext conftest$ac_exeext
9267
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10145
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9268
  (eval $ac_link) 2>&5
10146
  (eval $ac_link) 2>conftest.er1
9269
  ac_status=$?
10147
  ac_status=$?
10148
  grep -v '^ *+' conftest.er1 >conftest.err
10149
  rm -f conftest.er1
10150
  cat conftest.err >&5
9270
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10151
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9271
  (exit $ac_status); } &&
10152
  (exit $ac_status); } &&
9272
         { ac_try='test -s conftest$ac_exeext'
10153
	 { ac_try='test -z "$ac_c_werror_flag"
10154
			 || test ! -s conftest.err'
10155
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10156
  (eval $ac_try) 2>&5
10157
  ac_status=$?
10158
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10159
  (exit $ac_status); }; } &&
10160
	 { ac_try='test -s conftest$ac_exeext'
9273
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10161
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9274
  (eval $ac_try) 2>&5
10162
  (eval $ac_try) 2>&5
9275
  ac_status=$?
10163
  ac_status=$?
Lines 9282-9288 Link Here
9282
10170
9283
ac_cv_func_dlopen=no
10171
ac_cv_func_dlopen=no
9284
fi
10172
fi
9285
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10173
rm -f conftest.err conftest.$ac_objext \
10174
      conftest$ac_exeext conftest.$ac_ext
9286
fi
10175
fi
9287
echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
10176
echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
9288
echo "${ECHO_T}$ac_cv_func_dlopen" >&6
10177
echo "${ECHO_T}$ac_cv_func_dlopen" >&6
Lines 9297-9303 Link Here
9297
  ac_check_lib_save_LIBS=$LIBS
10186
  ac_check_lib_save_LIBS=$LIBS
9298
LIBS="-ldl  $LIBS"
10187
LIBS="-ldl  $LIBS"
9299
cat >conftest.$ac_ext <<_ACEOF
10188
cat >conftest.$ac_ext <<_ACEOF
9300
#line $LINENO "configure"
9301
/* confdefs.h.  */
10189
/* confdefs.h.  */
9302
_ACEOF
10190
_ACEOF
9303
cat confdefs.h >>conftest.$ac_ext
10191
cat confdefs.h >>conftest.$ac_ext
Lines 9321-9331 Link Here
9321
_ACEOF
10209
_ACEOF
9322
rm -f conftest.$ac_objext conftest$ac_exeext
10210
rm -f conftest.$ac_objext conftest$ac_exeext
9323
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10211
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9324
  (eval $ac_link) 2>&5
10212
  (eval $ac_link) 2>conftest.er1
9325
  ac_status=$?
10213
  ac_status=$?
10214
  grep -v '^ *+' conftest.er1 >conftest.err
10215
  rm -f conftest.er1
10216
  cat conftest.err >&5
9326
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10217
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9327
  (exit $ac_status); } &&
10218
  (exit $ac_status); } &&
9328
         { ac_try='test -s conftest$ac_exeext'
10219
	 { ac_try='test -z "$ac_c_werror_flag"
10220
			 || test ! -s conftest.err'
10221
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10222
  (eval $ac_try) 2>&5
10223
  ac_status=$?
10224
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10225
  (exit $ac_status); }; } &&
10226
	 { ac_try='test -s conftest$ac_exeext'
9329
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10227
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9330
  (eval $ac_try) 2>&5
10228
  (eval $ac_try) 2>&5
9331
  ac_status=$?
10229
  ac_status=$?
Lines 9338-9344 Link Here
9338
10236
9339
ac_cv_lib_dl_dlopen=no
10237
ac_cv_lib_dl_dlopen=no
9340
fi
10238
fi
9341
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10239
rm -f conftest.err conftest.$ac_objext \
10240
      conftest$ac_exeext conftest.$ac_ext
9342
LIBS=$ac_check_lib_save_LIBS
10241
LIBS=$ac_check_lib_save_LIBS
9343
fi
10242
fi
9344
echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10243
echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
Lines 9354-9360 Link Here
9354
  ac_check_lib_save_LIBS=$LIBS
10253
  ac_check_lib_save_LIBS=$LIBS
9355
LIBS="-lsvld  $LIBS"
10254
LIBS="-lsvld  $LIBS"
9356
cat >conftest.$ac_ext <<_ACEOF
10255
cat >conftest.$ac_ext <<_ACEOF
9357
#line $LINENO "configure"
9358
/* confdefs.h.  */
10256
/* confdefs.h.  */
9359
_ACEOF
10257
_ACEOF
9360
cat confdefs.h >>conftest.$ac_ext
10258
cat confdefs.h >>conftest.$ac_ext
Lines 9378-9388 Link Here
9378
_ACEOF
10276
_ACEOF
9379
rm -f conftest.$ac_objext conftest$ac_exeext
10277
rm -f conftest.$ac_objext conftest$ac_exeext
9380
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10278
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9381
  (eval $ac_link) 2>&5
10279
  (eval $ac_link) 2>conftest.er1
9382
  ac_status=$?
10280
  ac_status=$?
10281
  grep -v '^ *+' conftest.er1 >conftest.err
10282
  rm -f conftest.er1
10283
  cat conftest.err >&5
9383
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10284
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9384
  (exit $ac_status); } &&
10285
  (exit $ac_status); } &&
9385
         { ac_try='test -s conftest$ac_exeext'
10286
	 { ac_try='test -z "$ac_c_werror_flag"
10287
			 || test ! -s conftest.err'
10288
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10289
  (eval $ac_try) 2>&5
10290
  ac_status=$?
10291
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10292
  (exit $ac_status); }; } &&
10293
	 { ac_try='test -s conftest$ac_exeext'
9386
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10294
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9387
  (eval $ac_try) 2>&5
10295
  (eval $ac_try) 2>&5
9388
  ac_status=$?
10296
  ac_status=$?
Lines 9395-9401 Link Here
9395
10303
9396
ac_cv_lib_svld_dlopen=no
10304
ac_cv_lib_svld_dlopen=no
9397
fi
10305
fi
9398
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10306
rm -f conftest.err conftest.$ac_objext \
10307
      conftest$ac_exeext conftest.$ac_ext
9399
LIBS=$ac_check_lib_save_LIBS
10308
LIBS=$ac_check_lib_save_LIBS
9400
fi
10309
fi
9401
echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10310
echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
Lines 9411-9417 Link Here
9411
  ac_check_lib_save_LIBS=$LIBS
10320
  ac_check_lib_save_LIBS=$LIBS
9412
LIBS="-ldld  $LIBS"
10321
LIBS="-ldld  $LIBS"
9413
cat >conftest.$ac_ext <<_ACEOF
10322
cat >conftest.$ac_ext <<_ACEOF
9414
#line $LINENO "configure"
9415
/* confdefs.h.  */
10323
/* confdefs.h.  */
9416
_ACEOF
10324
_ACEOF
9417
cat confdefs.h >>conftest.$ac_ext
10325
cat confdefs.h >>conftest.$ac_ext
Lines 9435-9445 Link Here
9435
_ACEOF
10343
_ACEOF
9436
rm -f conftest.$ac_objext conftest$ac_exeext
10344
rm -f conftest.$ac_objext conftest$ac_exeext
9437
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10345
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9438
  (eval $ac_link) 2>&5
10346
  (eval $ac_link) 2>conftest.er1
9439
  ac_status=$?
10347
  ac_status=$?
10348
  grep -v '^ *+' conftest.er1 >conftest.err
10349
  rm -f conftest.er1
10350
  cat conftest.err >&5
9440
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10351
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9441
  (exit $ac_status); } &&
10352
  (exit $ac_status); } &&
9442
         { ac_try='test -s conftest$ac_exeext'
10353
	 { ac_try='test -z "$ac_c_werror_flag"
10354
			 || test ! -s conftest.err'
10355
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10356
  (eval $ac_try) 2>&5
10357
  ac_status=$?
10358
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10359
  (exit $ac_status); }; } &&
10360
	 { ac_try='test -s conftest$ac_exeext'
9443
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10361
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9444
  (eval $ac_try) 2>&5
10362
  (eval $ac_try) 2>&5
9445
  ac_status=$?
10363
  ac_status=$?
Lines 9452-9458 Link Here
9452
10370
9453
ac_cv_lib_dld_dld_link=no
10371
ac_cv_lib_dld_dld_link=no
9454
fi
10372
fi
9455
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10373
rm -f conftest.err conftest.$ac_objext \
10374
      conftest$ac_exeext conftest.$ac_ext
9456
LIBS=$ac_check_lib_save_LIBS
10375
LIBS=$ac_check_lib_save_LIBS
9457
fi
10376
fi
9458
echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10377
echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
Lines 9507-9513 Link Here
9507
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10426
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9508
  lt_status=$lt_dlunknown
10427
  lt_status=$lt_dlunknown
9509
  cat > conftest.$ac_ext <<EOF
10428
  cat > conftest.$ac_ext <<EOF
9510
#line 9510 "configure"
10429
#line 10429 "configure"
9511
#include "confdefs.h"
10430
#include "confdefs.h"
9512
10431
9513
#if HAVE_DLFCN_H
10432
#if HAVE_DLFCN_H
Lines 9605-9611 Link Here
9605
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10524
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9606
  lt_status=$lt_dlunknown
10525
  lt_status=$lt_dlunknown
9607
  cat > conftest.$ac_ext <<EOF
10526
  cat > conftest.$ac_ext <<EOF
9608
#line 9608 "configure"
10527
#line 10527 "configure"
9609
#include "confdefs.h"
10528
#include "confdefs.h"
9610
10529
9611
#if HAVE_DLFCN_H
10530
#if HAVE_DLFCN_H
Lines 9730-9767 Link Here
9730
  fi
10649
  fi
9731
  ;;
10650
  ;;
9732
10651
9733
aix4*)
10652
aix4* | aix5*)
9734
  if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10653
  if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
9735
    test "$enable_shared" = yes && enable_static=no
10654
    test "$enable_shared" = yes && enable_static=no
9736
  fi
10655
  fi
9737
  ;;
9738
  darwin* | rhapsody*)
9739
  if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
9740
    archive_cmds_need_lc=no
9741
    case "$host_os" in
9742
    rhapsody* | darwin1.[012])
9743
      allow_undefined_flag='-undefined suppress'
9744
      ;;
9745
    *) # Darwin 1.3 on
9746
      test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag='-flat_namespace -undefined suppress'
9747
      ;;
9748
    esac
9749
    # FIXME: Relying on posixy $() will cause problems for
9750
    #        cross-compilation, but unfortunately the echo tests do not
9751
    #        yet detect zsh echo's removal of \ escapes.  Also zsh mangles
9752
    #	       `"' quotes if we put them in here... so don't!
9753
		output_verbose_link_cmd='echo'
9754
    archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags -install_name $rpath/$soname $verstring'
9755
    module_cmds='$CC -bundle $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags'
9756
    # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
9757
		  archive_expsym_cmds='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}'
9758
		  module_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -bundle $allow_undefined_flag  -o $lib $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
9759
    hardcode_direct=no
9760
    hardcode_automatic=yes
9761
    hardcode_shlibpath_var=unsupported
9762
    whole_archive_flag_spec='-all_load $convenience'
9763
    link_all_deplibs=yes
9764
    fi
9765
    ;;
10656
    ;;
9766
esac
10657
esac
9767
echo "$as_me:$LINENO: result: $enable_shared" >&5
10658
echo "$as_me:$LINENO: result: $enable_shared" >&5
Lines 9787-9793 Link Here
9787
  # Now quote all the things that may contain metacharacters while being
10678
  # Now quote all the things that may contain metacharacters while being
9788
  # careful not to overquote the AC_SUBSTed values.  We take copies of the
10679
  # careful not to overquote the AC_SUBSTed values.  We take copies of the
9789
  # variables and quote the copies for generation of the libtool script.
10680
  # variables and quote the copies for generation of the libtool script.
9790
  for var in echo old_CC old_CFLAGS AR AR_FLAGS AS EGREP RANLIB LN_S LTCC NM SED SHELL \
10681
  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
10682
    SED SHELL STRIP \
9791
    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
10683
    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
9792
    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
10684
    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
9793
    deplibs_check_method reload_flag reload_cmds need_locks \
10685
    deplibs_check_method reload_flag reload_cmds need_locks \
Lines 9890-9896 Link Here
9890
#
10782
#
9891
# You should have received a copy of the GNU General Public License
10783
# You should have received a copy of the GNU General Public License
9892
# along with this program; if not, write to the Free Software
10784
# along with this program; if not, write to the Free Software
9893
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
10785
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
9894
#
10786
#
9895
# As a special exception to the GNU General Public License, if you
10787
# As a special exception to the GNU General Public License, if you
9896
# distribute this file as part of a program that contains a
10788
# distribute this file as part of a program that contains a
Lines 9901-9911 Link Here
9901
SED=$lt_SED
10793
SED=$lt_SED
9902
10794
9903
# Sed that helps us avoid accidentally triggering echo(1) options like -n.
10795
# Sed that helps us avoid accidentally triggering echo(1) options like -n.
9904
Xsed="$SED -e s/^X//"
10796
Xsed="$SED -e 1s/^X//"
9905
10797
9906
# The HP-UX ksh and POSIX shell print the target directory to stdout
10798
# The HP-UX ksh and POSIX shell print the target directory to stdout
9907
# if CDPATH is set.
10799
# if CDPATH is set.
9908
if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
10800
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
9909
10801
9910
# The names of the tagged configurations supported by this script.
10802
# The names of the tagged configurations supported by this script.
9911
available_tags=
10803
available_tags=
Lines 9935-9940 Link Here
9935
# The host system.
10827
# The host system.
9936
host_alias=$host_alias
10828
host_alias=$host_alias
9937
host=$host
10829
host=$host
10830
host_os=$host_os
10831
10832
# The build system.
10833
build_alias=$build_alias
10834
build=$build
10835
build_os=$build_os
9938
10836
9939
# An echo program that does not interpret backslashes.
10837
# An echo program that does not interpret backslashes.
9940
echo=$lt_echo
10838
echo=$lt_echo
Lines 9965-9971 Link Here
9965
NM=$lt_NM
10863
NM=$lt_NM
9966
10864
9967
# A symbol stripping program
10865
# A symbol stripping program
9968
STRIP=$STRIP
10866
STRIP=$lt_STRIP
9969
10867
9970
# Used to examine libraries when file_magic_cmd begins "file"
10868
# Used to examine libraries when file_magic_cmd begins "file"
9971
MAGIC_CMD=$MAGIC_CMD
10869
MAGIC_CMD=$MAGIC_CMD
Lines 9977-9983 Link Here
9977
OBJDUMP="$OBJDUMP"
10875
OBJDUMP="$OBJDUMP"
9978
10876
9979
# Used on cygwin: assembler.
10877
# Used on cygwin: assembler.
9980
AS=$lt_AS
10878
AS="$AS"
9981
10879
9982
# The name of the directory that contains temporary libtool files.
10880
# The name of the directory that contains temporary libtool files.
9983
objdir=$objdir
10881
objdir=$objdir
Lines 9996-10002 Link Here
9996
libext="$libext"
10894
libext="$libext"
9997
10895
9998
# Shared library suffix (normally ".so").
10896
# Shared library suffix (normally ".so").
9999
shrext='$shrext'
10897
shrext_cmds='$shrext_cmds'
10000
10898
10001
# Executable file suffix (normally "").
10899
# Executable file suffix (normally "").
10002
exeext="$exeext"
10900
exeext="$exeext"
Lines 10011-10017 Link Here
10011
# Does compiler simultaneously support -c and -o options?
10909
# Does compiler simultaneously support -c and -o options?
10012
compiler_c_o=$lt_lt_cv_prog_compiler_c_o
10910
compiler_c_o=$lt_lt_cv_prog_compiler_c_o
10013
10911
10014
# Must we lock files when doing compilation ?
10912
# Must we lock files when doing compilation?
10015
need_locks=$lt_need_locks
10913
need_locks=$lt_need_locks
10016
10914
10017
# Do we need the lib prefix for modules?
10915
# Do we need the lib prefix for modules?
Lines 10238-10244 Link Here
10238
  # If there is no Makefile yet, we rely on a make rule to execute
11136
  # If there is no Makefile yet, we rely on a make rule to execute
10239
  # `config.status --recheck' to rerun these tests and create the
11137
  # `config.status --recheck' to rerun these tests and create the
10240
  # libtool script then.
11138
  # libtool script then.
10241
  test -f Makefile && make "$ltmain"
11139
  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
11140
  if test -f "$ltmain_in"; then
11141
    test -f Makefile && make "$ltmain"
11142
  fi
10242
fi
11143
fi
10243
11144
10244
11145
Lines 10303-10309 Link Here
10303
11204
10304
      case $tagname in
11205
      case $tagname in
10305
      CXX)
11206
      CXX)
10306
	if test -n "$CXX" && test "X$CXX" != "Xno"; then
11207
	if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
11208
	    ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
11209
	    (test "X$CXX" != "Xg++"))) ; then
10307
	  ac_ext=cc
11210
	  ac_ext=cc
10308
ac_cpp='$CXXCPP $CPPFLAGS'
11211
ac_cpp='$CXXCPP $CPPFLAGS'
10309
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11212
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
Lines 10361-10366 Link Here
10361
compiler=$CC
11264
compiler=$CC
10362
11265
10363
11266
11267
# save warnings/boilerplate of simple test code
11268
ac_outfile=conftest.$ac_objext
11269
printf "$lt_simple_compile_test_code" >conftest.$ac_ext
11270
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
11271
_lt_compiler_boilerplate=`cat conftest.err`
11272
$rm conftest*
11273
11274
ac_outfile=conftest.$ac_objext
11275
printf "$lt_simple_link_test_code" >conftest.$ac_ext
11276
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
11277
_lt_linker_boilerplate=`cat conftest.err`
11278
$rm conftest*
11279
11280
10364
# Allow CC to be a program name with arguments.
11281
# Allow CC to be a program name with arguments.
10365
lt_save_CC=$CC
11282
lt_save_CC=$CC
10366
lt_save_LD=$LD
11283
lt_save_LD=$LD
Lines 10382-10388 Link Here
10382
CC=${CXX-"c++"}
11299
CC=${CXX-"c++"}
10383
compiler=$CC
11300
compiler=$CC
10384
compiler_CXX=$CC
11301
compiler_CXX=$CC
10385
cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
11302
for cc_temp in $compiler""; do
11303
  case $cc_temp in
11304
    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
11305
    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
11306
    \-*) ;;
11307
    *) break;;
11308
  esac
11309
done
11310
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
11311
10386
11312
10387
# We don't want -fno-exception wen compiling C++ code, so set the
11313
# We don't want -fno-exception wen compiling C++ code, so set the
10388
# no_builtin_flag separately
11314
# no_builtin_flag separately
Lines 10419-10425 Link Here
10419
    # Accept absolute paths.
11345
    # Accept absolute paths.
10420
    [\\/]* | ?:[\\/]*)
11346
    [\\/]* | ?:[\\/]*)
10421
      re_direlt='/[^/][^/]*/\.\./'
11347
      re_direlt='/[^/][^/]*/\.\./'
10422
      # Canonicalize the path of ld
11348
      # Canonicalize the pathname of ld
10423
      ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
11349
      ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
10424
      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
11350
      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
10425
	ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
11351
	ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
Lines 10533-10539 Link Here
10533
    # linker, instead of GNU ld.  If possible, this setting should
11459
    # linker, instead of GNU ld.  If possible, this setting should
10534
    # overridden to take advantage of the native linker features on
11460
    # overridden to take advantage of the native linker features on
10535
    # the platform it is being used on.
11461
    # the platform it is being used on.
10536
    archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11462
    archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
10537
  fi
11463
  fi
10538
11464
10539
  # Commands to make compiler produce verbose output that lists
11465
  # Commands to make compiler produce verbose output that lists
Lines 10596-10602 Link Here
10596
    link_all_deplibs_CXX=yes
11522
    link_all_deplibs_CXX=yes
10597
11523
10598
    if test "$GXX" = yes; then
11524
    if test "$GXX" = yes; then
10599
      case $host_os in aix4.012|aix4.012.*)
11525
      case $host_os in aix4.[012]|aix4.[012].*)
10600
      # We only want to do this on AIX 4.2 and lower, the check
11526
      # We only want to do this on AIX 4.2 and lower, the check
10601
      # below for broken collect2 doesn't work under 4.3+
11527
      # below for broken collect2 doesn't work under 4.3+
10602
	collect2name=`${CC} -print-prog-name=collect2`
11528
	collect2name=`${CC} -print-prog-name=collect2`
Lines 10617-10622 Link Here
10617
	fi
11543
	fi
10618
      esac
11544
      esac
10619
      shared_flag='-shared'
11545
      shared_flag='-shared'
11546
      if test "$aix_use_runtimelinking" = yes; then
11547
	shared_flag="$shared_flag "'${wl}-G'
11548
      fi
10620
    else
11549
    else
10621
      # not using gcc
11550
      # not using gcc
10622
      if test "$host_cpu" = ia64; then
11551
      if test "$host_cpu" = ia64; then
Lines 10641-10647 Link Here
10641
      allow_undefined_flag_CXX='-berok'
11570
      allow_undefined_flag_CXX='-berok'
10642
      # Determine the default libpath from the value encoded in an empty executable.
11571
      # Determine the default libpath from the value encoded in an empty executable.
10643
      cat >conftest.$ac_ext <<_ACEOF
11572
      cat >conftest.$ac_ext <<_ACEOF
10644
#line $LINENO "configure"
10645
/* confdefs.h.  */
11573
/* confdefs.h.  */
10646
_ACEOF
11574
_ACEOF
10647
cat confdefs.h >>conftest.$ac_ext
11575
cat confdefs.h >>conftest.$ac_ext
Lines 10658-10668 Link Here
10658
_ACEOF
11586
_ACEOF
10659
rm -f conftest.$ac_objext conftest$ac_exeext
11587
rm -f conftest.$ac_objext conftest$ac_exeext
10660
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11588
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10661
  (eval $ac_link) 2>&5
11589
  (eval $ac_link) 2>conftest.er1
10662
  ac_status=$?
11590
  ac_status=$?
11591
  grep -v '^ *+' conftest.er1 >conftest.err
11592
  rm -f conftest.er1
11593
  cat conftest.err >&5
10663
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11594
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10664
  (exit $ac_status); } &&
11595
  (exit $ac_status); } &&
10665
         { ac_try='test -s conftest$ac_exeext'
11596
	 { ac_try='test -z "$ac_cxx_werror_flag"
11597
			 || test ! -s conftest.err'
11598
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11599
  (eval $ac_try) 2>&5
11600
  ac_status=$?
11601
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11602
  (exit $ac_status); }; } &&
11603
	 { ac_try='test -s conftest$ac_exeext'
10666
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11604
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10667
  (eval $ac_try) 2>&5
11605
  (eval $ac_try) 2>&5
10668
  ac_status=$?
11606
  ac_status=$?
Lines 10679-10685 Link Here
10679
sed 's/^/| /' conftest.$ac_ext >&5
11617
sed 's/^/| /' conftest.$ac_ext >&5
10680
11618
10681
fi
11619
fi
10682
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11620
rm -f conftest.err conftest.$ac_objext \
11621
      conftest$ac_exeext conftest.$ac_ext
10683
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11622
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10684
11623
10685
      hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11624
      hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
Lines 10693-10699 Link Here
10693
      else
11632
      else
10694
	# Determine the default libpath from the value encoded in an empty executable.
11633
	# Determine the default libpath from the value encoded in an empty executable.
10695
	cat >conftest.$ac_ext <<_ACEOF
11634
	cat >conftest.$ac_ext <<_ACEOF
10696
#line $LINENO "configure"
10697
/* confdefs.h.  */
11635
/* confdefs.h.  */
10698
_ACEOF
11636
_ACEOF
10699
cat confdefs.h >>conftest.$ac_ext
11637
cat confdefs.h >>conftest.$ac_ext
Lines 10710-10720 Link Here
10710
_ACEOF
11648
_ACEOF
10711
rm -f conftest.$ac_objext conftest$ac_exeext
11649
rm -f conftest.$ac_objext conftest$ac_exeext
10712
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11650
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10713
  (eval $ac_link) 2>&5
11651
  (eval $ac_link) 2>conftest.er1
10714
  ac_status=$?
11652
  ac_status=$?
11653
  grep -v '^ *+' conftest.er1 >conftest.err
11654
  rm -f conftest.er1
11655
  cat conftest.err >&5
10715
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11656
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10716
  (exit $ac_status); } &&
11657
  (exit $ac_status); } &&
10717
         { ac_try='test -s conftest$ac_exeext'
11658
	 { ac_try='test -z "$ac_cxx_werror_flag"
11659
			 || test ! -s conftest.err'
11660
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11661
  (eval $ac_try) 2>&5
11662
  ac_status=$?
11663
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11664
  (exit $ac_status); }; } &&
11665
	 { ac_try='test -s conftest$ac_exeext'
10718
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11666
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10719
  (eval $ac_try) 2>&5
11667
  (eval $ac_try) 2>&5
10720
  ac_status=$?
11668
  ac_status=$?
Lines 10731-10737 Link Here
10731
sed 's/^/| /' conftest.$ac_ext >&5
11679
sed 's/^/| /' conftest.$ac_ext >&5
10732
11680
10733
fi
11681
fi
10734
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11682
rm -f conftest.err conftest.$ac_objext \
11683
      conftest$ac_exeext conftest.$ac_ext
10735
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11684
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10736
11685
10737
	hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11686
	hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
Lines 10758-10763 Link Here
10758
    esac
11707
    esac
10759
    ;;
11708
    ;;
10760
11709
11710
10761
  cygwin* | mingw* | pw32*)
11711
  cygwin* | mingw* | pw32*)
10762
    # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
11712
    # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
10763
    # as there is no search path for DLLs.
11713
    # as there is no search path for DLLs.
Lines 10781-10832 Link Here
10781
      ld_shlibs_CXX=no
11731
      ld_shlibs_CXX=no
10782
    fi
11732
    fi
10783
  ;;
11733
  ;;
10784
11734
      darwin* | rhapsody*)
10785
  darwin* | rhapsody*)
11735
        case "$host_os" in
10786
   if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
11736
        rhapsody* | darwin1.[012])
10787
    archive_cmds_need_lc_CXX=no
11737
         allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
10788
    case "$host_os" in
11738
         ;;
10789
    rhapsody* | darwin1.[012])
11739
       *) # Darwin 1.3 on
10790
      allow_undefined_flag_CXX='-undefined suppress'
11740
         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
10791
      ;;
11741
           allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
10792
    *) # Darwin 1.3 on
11742
         else
10793
      test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag_CXX='-flat_namespace -undefined suppress'
11743
           case ${MACOSX_DEPLOYMENT_TARGET} in
10794
      ;;
11744
             10.[012])
10795
    esac
11745
               allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
10796
    	lt_int_apple_cc_single_mod=no
11746
               ;;
10797
    	output_verbose_link_cmd='echo'
11747
             10.*)
10798
    	if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
11748
               allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
10799
    	  lt_int_apple_cc_single_mod=yes
11749
               ;;
10800
    	fi
11750
           esac
10801
    	if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
11751
         fi
10802
    	  archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
11752
         ;;
10803
    	else
11753
        esac
10804
        archive_cmds_CXX='$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
11754
      archive_cmds_need_lc_CXX=no
11755
      hardcode_direct_CXX=no
11756
      hardcode_automatic_CXX=yes
11757
      hardcode_shlibpath_var_CXX=unsupported
11758
      whole_archive_flag_spec_CXX=''
11759
      link_all_deplibs_CXX=yes
11760
11761
    if test "$GXX" = yes ; then
11762
      lt_int_apple_cc_single_mod=no
11763
      output_verbose_link_cmd='echo'
11764
      if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
11765
       lt_int_apple_cc_single_mod=yes
10805
      fi
11766
      fi
10806
      module_cmds_CXX='$CC -bundle ${wl}-bind_at_load $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags'
10807
10808
    # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
10809
      if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
11767
      if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
10810
        archive_expsym_cmds_CXX='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}'
11768
       archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
10811
      else
11769
      else
10812
        archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
11770
          archive_cmds_CXX='$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'
10813
      fi
11771
        fi
10814
        module_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -bundle $allow_undefined_flag  -o $lib $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
11772
        module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
10815
    hardcode_direct_CXX=no
11773
        # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
10816
    hardcode_automatic_CXX=yes
11774
          if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
10817
    hardcode_shlibpath_var_CXX=unsupported
11775
            archive_expsym_cmds_CXX='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}'
10818
    whole_archive_flag_spec_CXX='-all_load $convenience'
11776
          else
10819
    link_all_deplibs_CXX=yes
11777
            archive_expsym_cmds_CXX='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}'
10820
   fi
11778
          fi
10821
    ;;
11779
            module_expsym_cmds_CXX='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}'
11780
      else
11781
      case $cc_basename in
11782
        xlc*)
11783
         output_verbose_link_cmd='echo'
11784
          archive_cmds_CXX='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
11785
          module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
11786
          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
11787
          archive_expsym_cmds_CXX='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}'
11788
          module_expsym_cmds_CXX='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}'
11789
          ;;
11790
       *)
11791
         ld_shlibs_CXX=no
11792
          ;;
11793
      esac
11794
      fi
11795
        ;;
10822
11796
10823
  dgux*)
11797
  dgux*)
10824
    case $cc_basename in
11798
    case $cc_basename in
10825
      ec++)
11799
      ec++*)
10826
	# FIXME: insert proper C++ library support
11800
	# FIXME: insert proper C++ library support
10827
	ld_shlibs_CXX=no
11801
	ld_shlibs_CXX=no
10828
	;;
11802
	;;
10829
      ghcx)
11803
      ghcx*)
10830
	# Green Hills C++ Compiler
11804
	# Green Hills C++ Compiler
10831
	# FIXME: insert proper C++ library support
11805
	# FIXME: insert proper C++ library support
10832
	ld_shlibs_CXX=no
11806
	ld_shlibs_CXX=no
Lines 10837-10850 Link Here
10837
	;;
11811
	;;
10838
    esac
11812
    esac
10839
    ;;
11813
    ;;
10840
  freebsd12*)
11814
  freebsd[12]*)
10841
    # C++ shared libraries reported to be fairly broken before switch to ELF
11815
    # C++ shared libraries reported to be fairly broken before switch to ELF
10842
    ld_shlibs_CXX=no
11816
    ld_shlibs_CXX=no
10843
    ;;
11817
    ;;
10844
  freebsd-elf*)
11818
  freebsd-elf*)
10845
    archive_cmds_need_lc_CXX=no
11819
    archive_cmds_need_lc_CXX=no
10846
    ;;
11820
    ;;
10847
  freebsd*)
11821
  freebsd* | kfreebsd*-gnu | dragonfly*)
10848
    # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
11822
    # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
10849
    # conventions
11823
    # conventions
10850
    ld_shlibs_CXX=yes
11824
    ld_shlibs_CXX=yes
Lines 10861-10871 Link Here
10861
				# location of the library.
11835
				# location of the library.
10862
11836
10863
    case $cc_basename in
11837
    case $cc_basename in
10864
    CC)
11838
    CC*)
10865
      # FIXME: insert proper C++ library support
11839
      # FIXME: insert proper C++ library support
10866
      ld_shlibs_CXX=no
11840
      ld_shlibs_CXX=no
10867
      ;;
11841
      ;;
10868
    aCC)
11842
    aCC*)
10869
      archive_cmds_CXX='$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'
11843
      archive_cmds_CXX='$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'
10870
      # Commands to make compiler produce verbose output that lists
11844
      # Commands to make compiler produce verbose output that lists
10871
      # what "hidden" libraries, object files and flags are used when
11845
      # what "hidden" libraries, object files and flags are used when
Lines 10875-10881 Link Here
10875
      # explicitly linking system object files so we need to strip them
11849
      # explicitly linking system object files so we need to strip them
10876
      # from the output so that they don't get included in the library
11850
      # from the output so that they don't get included in the library
10877
      # dependencies.
11851
      # dependencies.
10878
      output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | egrep "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
11852
      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'
10879
      ;;
11853
      ;;
10880
    *)
11854
    *)
10881
      if test "$GXX" = yes; then
11855
      if test "$GXX" = yes; then
Lines 10926-10936 Link Here
10926
    esac
11900
    esac
10927
11901
10928
    case $cc_basename in
11902
    case $cc_basename in
10929
      CC)
11903
      CC*)
10930
	# FIXME: insert proper C++ library support
11904
	# FIXME: insert proper C++ library support
10931
	ld_shlibs_CXX=no
11905
	ld_shlibs_CXX=no
10932
	;;
11906
	;;
10933
      aCC)
11907
      aCC*)
10934
	case "$host_cpu" in
11908
	case "$host_cpu" in
10935
	hppa*64*|ia64*)
11909
	hppa*64*|ia64*)
10936
	  archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
11910
	  archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
Lines 10970-10978 Link Here
10970
    ;;
11944
    ;;
10971
  irix5* | irix6*)
11945
  irix5* | irix6*)
10972
    case $cc_basename in
11946
    case $cc_basename in
10973
      CC)
11947
      CC*)
10974
	# SGI C++
11948
	# SGI C++
10975
	archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib'
11949
	archive_cmds_CXX='$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'
10976
11950
10977
	# Archives containing C++ object files must be created using
11951
	# Archives containing C++ object files must be created using
10978
	# "CC -ar", where "CC" is the IRIX C++ compiler.  This is
11952
	# "CC -ar", where "CC" is the IRIX C++ compiler.  This is
Lines 10983-10989 Link Here
10983
      *)
11957
      *)
10984
	if test "$GXX" = yes; then
11958
	if test "$GXX" = yes; then
10985
	  if test "$with_gnu_ld" = no; then
11959
	  if test "$with_gnu_ld" = no; then
10986
	    archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${objdir}/so_locations -o $lib'
11960
	    archive_cmds_CXX='$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'
10987
	  else
11961
	  else
10988
	    archive_cmds_CXX='$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'
11962
	    archive_cmds_CXX='$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'
10989
	  fi
11963
	  fi
Lines 10996-11002 Link Here
10996
    ;;
11970
    ;;
10997
  linux*)
11971
  linux*)
10998
    case $cc_basename in
11972
    case $cc_basename in
10999
      KCC)
11973
      KCC*)
11000
	# Kuck and Associates, Inc. (KAI) C++ Compiler
11974
	# Kuck and Associates, Inc. (KAI) C++ Compiler
11001
11975
11002
	# KCC will only create a shared library if the output file
11976
	# KCC will only create a shared library if the output file
Lines 11021-11037 Link Here
11021
	# "CC -Bstatic", where "CC" is the KAI C++ compiler.
11995
	# "CC -Bstatic", where "CC" is the KAI C++ compiler.
11022
	old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11996
	old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11023
	;;
11997
	;;
11024
      icpc)
11998
      icpc*)
11025
	# Intel C++
11999
	# Intel C++
11026
	with_gnu_ld=yes
12000
	with_gnu_ld=yes
12001
	# version 8.0 and above of icpc choke on multiply defined symbols
12002
	# if we add $predep_objects and $postdep_objects, however 7.1 and
12003
	# earlier do not add the objects themselves.
12004
	case `$CC -V 2>&1` in
12005
	*"Version 7."*)
12006
  	  archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12007
  	  archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12008
	  ;;
12009
	*)  # Version 8.0 or newer
12010
	  tmp_idyn=
12011
	  case $host_cpu in
12012
	    ia64*) tmp_idyn=' -i_dynamic';;
12013
	  esac
12014
  	  archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12015
	  archive_expsym_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12016
	  ;;
12017
	esac
11027
	archive_cmds_need_lc_CXX=no
12018
	archive_cmds_need_lc_CXX=no
11028
	archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11029
	archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
11030
	hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12019
	hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11031
	export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12020
	export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11032
	whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
12021
	whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
11033
	;;
12022
	;;
11034
      cxx)
12023
      pgCC*)
12024
        # Portland Group C++ compiler
12025
	archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
12026
  	archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
12027
12028
	hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
12029
	export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12030
	whole_archive_flag_spec_CXX='${wl}--whole-archive,`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
12031
        ;;
12032
      cxx*)
11035
	# Compaq C++
12033
	# Compaq C++
11036
	archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12034
	archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11037
	archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname  -o $lib ${wl}-retain-symbols-file $wl$export_symbols'
12035
	archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname  -o $lib ${wl}-retain-symbols-file $wl$export_symbols'
Lines 11062-11068 Link Here
11062
    ;;
12060
    ;;
11063
  mvs*)
12061
  mvs*)
11064
    case $cc_basename in
12062
    case $cc_basename in
11065
      cxx)
12063
      cxx*)
11066
	# FIXME: insert proper C++ library support
12064
	# FIXME: insert proper C++ library support
11067
	ld_shlibs_CXX=no
12065
	ld_shlibs_CXX=no
11068
	;;
12066
	;;
Lines 11083-11091 Link Here
11083
    # Workaround some broken pre-1.5 toolchains
12081
    # Workaround some broken pre-1.5 toolchains
11084
    output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
12082
    output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
11085
    ;;
12083
    ;;
12084
  openbsd2*)
12085
    # C++ shared libraries are fairly broken
12086
    ld_shlibs_CXX=no
12087
    ;;
12088
  openbsd*)
12089
    hardcode_direct_CXX=yes
12090
    hardcode_shlibpath_var_CXX=no
12091
    archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12092
    hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12093
    if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12094
      archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
12095
      export_dynamic_flag_spec_CXX='${wl}-E'
12096
      whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12097
    fi
12098
    output_verbose_link_cmd='echo'
12099
    ;;
11086
  osf3*)
12100
  osf3*)
11087
    case $cc_basename in
12101
    case $cc_basename in
11088
      KCC)
12102
      KCC*)
11089
	# Kuck and Associates, Inc. (KAI) C++ Compiler
12103
	# Kuck and Associates, Inc. (KAI) C++ Compiler
11090
12104
11091
	# KCC will only create a shared library if the output file
12105
	# KCC will only create a shared library if the output file
Lines 11101-11114 Link Here
11101
	old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
12115
	old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11102
12116
11103
	;;
12117
	;;
11104
      RCC)
12118
      RCC*)
11105
	# Rational C++ 2.4.1
12119
	# Rational C++ 2.4.1
11106
	# FIXME: insert proper C++ library support
12120
	# FIXME: insert proper C++ library support
11107
	ld_shlibs_CXX=no
12121
	ld_shlibs_CXX=no
11108
	;;
12122
	;;
11109
      cxx)
12123
      cxx*)
11110
	allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12124
	allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11111
	archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && echo ${wl}-set_version $verstring` -update_registry ${objdir}/so_locations -o $lib'
12125
	archive_cmds_CXX='$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'
11112
12126
11113
	hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12127
	hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11114
	hardcode_libdir_separator_CXX=:
12128
	hardcode_libdir_separator_CXX=:
Lines 11126-11132 Link Here
11126
      *)
12140
      *)
11127
	if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12141
	if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11128
	  allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12142
	  allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11129
	  archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${objdir}/so_locations -o $lib'
12143
	  archive_cmds_CXX='$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'
11130
12144
11131
	  hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12145
	  hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11132
	  hardcode_libdir_separator_CXX=:
12146
	  hardcode_libdir_separator_CXX=:
Lines 11145-11151 Link Here
11145
    ;;
12159
    ;;
11146
  osf4* | osf5*)
12160
  osf4* | osf5*)
11147
    case $cc_basename in
12161
    case $cc_basename in
11148
      KCC)
12162
      KCC*)
11149
	# Kuck and Associates, Inc. (KAI) C++ Compiler
12163
	# Kuck and Associates, Inc. (KAI) C++ Compiler
11150
12164
11151
	# KCC will only create a shared library if the output file
12165
	# KCC will only create a shared library if the output file
Lines 11160-11176 Link Here
11160
	# the KAI C++ compiler.
12174
	# the KAI C++ compiler.
11161
	old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
12175
	old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
11162
	;;
12176
	;;
11163
      RCC)
12177
      RCC*)
11164
	# Rational C++ 2.4.1
12178
	# Rational C++ 2.4.1
11165
	# FIXME: insert proper C++ library support
12179
	# FIXME: insert proper C++ library support
11166
	ld_shlibs_CXX=no
12180
	ld_shlibs_CXX=no
11167
	;;
12181
	;;
11168
      cxx)
12182
      cxx*)
11169
	allow_undefined_flag_CXX=' -expect_unresolved \*'
12183
	allow_undefined_flag_CXX=' -expect_unresolved \*'
11170
	archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib'
12184
	archive_cmds_CXX='$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'
11171
	archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
12185
	archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
11172
	  echo "-hidden">> $lib.exp~
12186
	  echo "-hidden">> $lib.exp~
11173
	  $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname -Wl,-input -Wl,$lib.exp  `test -n "$verstring" && echo -set_version	$verstring` -update_registry $objdir/so_locations -o $lib~
12187
	  $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~
11174
	  $rm $lib.exp'
12188
	  $rm $lib.exp'
11175
12189
11176
	hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12190
	hardcode_libdir_flag_spec_CXX='-rpath $libdir'
Lines 11189-11195 Link Here
11189
      *)
12203
      *)
11190
	if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12204
	if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11191
	  allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12205
	  allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11192
	 archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${objdir}/so_locations -o $lib'
12206
	 archive_cmds_CXX='$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'
11193
12207
11194
	  hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12208
	  hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11195
	  hardcode_libdir_separator_CXX=:
12209
	  hardcode_libdir_separator_CXX=:
Lines 11213-11219 Link Here
11213
  sco*)
12227
  sco*)
11214
    archive_cmds_need_lc_CXX=no
12228
    archive_cmds_need_lc_CXX=no
11215
    case $cc_basename in
12229
    case $cc_basename in
11216
      CC)
12230
      CC*)
11217
	# FIXME: insert proper C++ library support
12231
	# FIXME: insert proper C++ library support
11218
	ld_shlibs_CXX=no
12232
	ld_shlibs_CXX=no
11219
	;;
12233
	;;
Lines 11225-11236 Link Here
11225
    ;;
12239
    ;;
11226
  sunos4*)
12240
  sunos4*)
11227
    case $cc_basename in
12241
    case $cc_basename in
11228
      CC)
12242
      CC*)
11229
	# Sun C++ 4.x
12243
	# Sun C++ 4.x
11230
	# FIXME: insert proper C++ library support
12244
	# FIXME: insert proper C++ library support
11231
	ld_shlibs_CXX=no
12245
	ld_shlibs_CXX=no
11232
	;;
12246
	;;
11233
      lcc)
12247
      lcc*)
11234
	# Lucid
12248
	# Lucid
11235
	# FIXME: insert proper C++ library support
12249
	# FIXME: insert proper C++ library support
11236
	ld_shlibs_CXX=no
12250
	ld_shlibs_CXX=no
Lines 11243-11249 Link Here
11243
    ;;
12257
    ;;
11244
  solaris*)
12258
  solaris*)
11245
    case $cc_basename in
12259
    case $cc_basename in
11246
      CC)
12260
      CC*)
11247
	# Sun C++ 4.2, 5.x and Centerline C++
12261
	# Sun C++ 4.2, 5.x and Centerline C++
11248
	no_undefined_flag_CXX=' -zdefs'
12262
	no_undefined_flag_CXX=' -zdefs'
11249
	archive_cmds_CXX='$CC -G${allow_undefined_flag} -nolib -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12263
	archive_cmds_CXX='$CC -G${allow_undefined_flag} -nolib -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
Lines 11253-11265 Link Here
11253
	hardcode_libdir_flag_spec_CXX='-R$libdir'
12267
	hardcode_libdir_flag_spec_CXX='-R$libdir'
11254
	hardcode_shlibpath_var_CXX=no
12268
	hardcode_shlibpath_var_CXX=no
11255
	case $host_os in
12269
	case $host_os in
11256
	  solaris2.0-5 | solaris2.0-5.*) ;;
12270
	  solaris2.[0-5] | solaris2.[0-5].*) ;;
11257
	  *)
12271
	  *)
11258
	    # The C++ compiler is used as linker so we must use $wl
12272
	    # The C++ compiler is used as linker so we must use $wl
11259
	    # flag to pass the commands to the underlying system
12273
	    # flag to pass the commands to the underlying system
11260
	    # linker.
12274
	    # linker. We must also pass each convience library through
12275
	    # to the system linker between allextract/defaultextract.
12276
	    # The C++ compiler will combine linker options so we
12277
	    # cannot just pass the convience library names through
12278
	    # without $wl.
11261
	    # Supported since Solaris 2.6 (maybe 2.5.1?)
12279
	    # Supported since Solaris 2.6 (maybe 2.5.1?)
11262
	    whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
12280
	    whole_archive_flag_spec_CXX='${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'
11263
	    ;;
12281
	    ;;
11264
	esac
12282
	esac
11265
	link_all_deplibs_CXX=yes
12283
	link_all_deplibs_CXX=yes
Lines 11280-11286 Link Here
11280
	# in the archive.
12298
	# in the archive.
11281
	old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
12299
	old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
11282
	;;
12300
	;;
11283
      gcx)
12301
      gcx*)
11284
	# Green Hills C++ Compiler
12302
	# Green Hills C++ Compiler
11285
	archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12303
	archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11286
12304
Lines 11323-11329 Link Here
11323
    ;;
12341
    ;;
11324
  tandem*)
12342
  tandem*)
11325
    case $cc_basename in
12343
    case $cc_basename in
11326
      NCC)
12344
      NCC*)
11327
	# NonStop-UX NCC 3.20
12345
	# NonStop-UX NCC 3.20
11328
	# FIXME: insert proper C++ library support
12346
	# FIXME: insert proper C++ library support
11329
	ld_shlibs_CXX=no
12347
	ld_shlibs_CXX=no
Lines 11532-11549 Link Here
11532
	;;
12550
	;;
11533
      chorus*)
12551
      chorus*)
11534
	case $cc_basename in
12552
	case $cc_basename in
11535
	cxch68)
12553
	cxch68*)
11536
	  # Green Hills C++ Compiler
12554
	  # Green Hills C++ Compiler
11537
	  # _LT_AC_TAGVAR(lt_prog_compiler_static, CXX)="--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"
12555
	  # _LT_AC_TAGVAR(lt_prog_compiler_static, CXX)="--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"
11538
	  ;;
12556
	  ;;
11539
	esac
12557
	esac
11540
	;;
12558
	;;
12559
       darwin*)
12560
         # PIC is the default on this platform
12561
         # Common symbols not allowed in MH_DYLIB files
12562
         case $cc_basename in
12563
           xlc*)
12564
           lt_prog_compiler_pic_CXX='-qnocommon'
12565
           lt_prog_compiler_wl_CXX='-Wl,'
12566
           ;;
12567
         esac
12568
       ;;
11541
      dgux*)
12569
      dgux*)
11542
	case $cc_basename in
12570
	case $cc_basename in
11543
	  ec++)
12571
	  ec++*)
11544
	    lt_prog_compiler_pic_CXX='-KPIC'
12572
	    lt_prog_compiler_pic_CXX='-KPIC'
11545
	    ;;
12573
	    ;;
11546
	  ghcx)
12574
	  ghcx*)
11547
	    # Green Hills C++ Compiler
12575
	    # Green Hills C++ Compiler
11548
	    lt_prog_compiler_pic_CXX='-pic'
12576
	    lt_prog_compiler_pic_CXX='-pic'
11549
	    ;;
12577
	    ;;
Lines 11551-11569 Link Here
11551
	    ;;
12579
	    ;;
11552
	esac
12580
	esac
11553
	;;
12581
	;;
11554
      freebsd*)
12582
      freebsd* | kfreebsd*-gnu | dragonfly*)
11555
	# FreeBSD uses GNU C++
12583
	# FreeBSD uses GNU C++
11556
	;;
12584
	;;
11557
      hpux9* | hpux10* | hpux11*)
12585
      hpux9* | hpux10* | hpux11*)
11558
	case $cc_basename in
12586
	case $cc_basename in
11559
	  CC)
12587
	  CC*)
11560
	    lt_prog_compiler_wl_CXX='-Wl,'
12588
	    lt_prog_compiler_wl_CXX='-Wl,'
11561
	    lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
12589
	    lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
11562
	    if test "$host_cpu" != ia64; then
12590
	    if test "$host_cpu" != ia64; then
11563
	      lt_prog_compiler_pic_CXX='+Z'
12591
	      lt_prog_compiler_pic_CXX='+Z'
11564
	    fi
12592
	    fi
11565
	    ;;
12593
	    ;;
11566
	  aCC)
12594
	  aCC*)
11567
	    lt_prog_compiler_wl_CXX='-Wl,'
12595
	    lt_prog_compiler_wl_CXX='-Wl,'
11568
	    lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
12596
	    lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
11569
	    case "$host_cpu" in
12597
	    case "$host_cpu" in
Lines 11581-11587 Link Here
11581
	;;
12609
	;;
11582
      irix5* | irix6* | nonstopux*)
12610
      irix5* | irix6* | nonstopux*)
11583
	case $cc_basename in
12611
	case $cc_basename in
11584
	  CC)
12612
	  CC*)
11585
	    lt_prog_compiler_wl_CXX='-Wl,'
12613
	    lt_prog_compiler_wl_CXX='-Wl,'
11586
	    lt_prog_compiler_static_CXX='-non_shared'
12614
	    lt_prog_compiler_static_CXX='-non_shared'
11587
	    # CC pic flag -KPIC is the default.
12615
	    # CC pic flag -KPIC is the default.
Lines 11592-11609 Link Here
11592
	;;
12620
	;;
11593
      linux*)
12621
      linux*)
11594
	case $cc_basename in
12622
	case $cc_basename in
11595
	  KCC)
12623
	  KCC*)
11596
	    # KAI C++ Compiler
12624
	    # KAI C++ Compiler
11597
	    lt_prog_compiler_wl_CXX='--backend -Wl,'
12625
	    lt_prog_compiler_wl_CXX='--backend -Wl,'
11598
	    lt_prog_compiler_pic_CXX='-fPIC'
12626
	    lt_prog_compiler_pic_CXX='-fPIC'
11599
	    ;;
12627
	    ;;
11600
	  icpc)
12628
	  icpc* | ecpc*)
11601
	    # Intel C++
12629
	    # Intel C++
11602
	    lt_prog_compiler_wl_CXX='-Wl,'
12630
	    lt_prog_compiler_wl_CXX='-Wl,'
11603
	    lt_prog_compiler_pic_CXX='-KPIC'
12631
	    lt_prog_compiler_pic_CXX='-KPIC'
11604
	    lt_prog_compiler_static_CXX='-static'
12632
	    lt_prog_compiler_static_CXX='-static'
11605
	    ;;
12633
	    ;;
11606
	  cxx)
12634
	  pgCC*)
12635
	    # Portland Group C++ compiler.
12636
	    lt_prog_compiler_wl_CXX='-Wl,'
12637
	    lt_prog_compiler_pic_CXX='-fpic'
12638
	    lt_prog_compiler_static_CXX='-static'
12639
	    ;;
12640
	  cxx*)
11607
	    # Compaq C++
12641
	    # Compaq C++
11608
	    # Make sure the PIC flag is empty.  It appears that all Alpha
12642
	    # Make sure the PIC flag is empty.  It appears that all Alpha
11609
	    # Linux and Compaq Tru64 Unix objects are PIC.
12643
	    # Linux and Compaq Tru64 Unix objects are PIC.
Lines 11620-11626 Link Here
11620
	;;
12654
	;;
11621
      mvs*)
12655
      mvs*)
11622
	case $cc_basename in
12656
	case $cc_basename in
11623
	  cxx)
12657
	  cxx*)
11624
	    lt_prog_compiler_pic_CXX='-W c,exportall'
12658
	    lt_prog_compiler_pic_CXX='-W c,exportall'
11625
	    ;;
12659
	    ;;
11626
	  *)
12660
	  *)
Lines 11631-11644 Link Here
11631
	;;
12665
	;;
11632
      osf3* | osf4* | osf5*)
12666
      osf3* | osf4* | osf5*)
11633
	case $cc_basename in
12667
	case $cc_basename in
11634
	  KCC)
12668
	  KCC*)
11635
	    lt_prog_compiler_wl_CXX='--backend -Wl,'
12669
	    lt_prog_compiler_wl_CXX='--backend -Wl,'
11636
	    ;;
12670
	    ;;
11637
	  RCC)
12671
	  RCC*)
11638
	    # Rational C++ 2.4.1
12672
	    # Rational C++ 2.4.1
11639
	    lt_prog_compiler_pic_CXX='-pic'
12673
	    lt_prog_compiler_pic_CXX='-pic'
11640
	    ;;
12674
	    ;;
11641
	  cxx)
12675
	  cxx*)
11642
	    # Digital/Compaq C++
12676
	    # Digital/Compaq C++
11643
	    lt_prog_compiler_wl_CXX='-Wl,'
12677
	    lt_prog_compiler_wl_CXX='-Wl,'
11644
	    # Make sure the PIC flag is empty.  It appears that all Alpha
12678
	    # Make sure the PIC flag is empty.  It appears that all Alpha
Lines 11654-11660 Link Here
11654
	;;
12688
	;;
11655
      sco*)
12689
      sco*)
11656
	case $cc_basename in
12690
	case $cc_basename in
11657
	  CC)
12691
	  CC*)
11658
	    lt_prog_compiler_pic_CXX='-fPIC'
12692
	    lt_prog_compiler_pic_CXX='-fPIC'
11659
	    ;;
12693
	    ;;
11660
	  *)
12694
	  *)
Lines 11663-11675 Link Here
11663
	;;
12697
	;;
11664
      solaris*)
12698
      solaris*)
11665
	case $cc_basename in
12699
	case $cc_basename in
11666
	  CC)
12700
	  CC*)
11667
	    # Sun C++ 4.2, 5.x and Centerline C++
12701
	    # Sun C++ 4.2, 5.x and Centerline C++
11668
	    lt_prog_compiler_pic_CXX='-KPIC'
12702
	    lt_prog_compiler_pic_CXX='-KPIC'
11669
	    lt_prog_compiler_static_CXX='-Bstatic'
12703
	    lt_prog_compiler_static_CXX='-Bstatic'
11670
	    lt_prog_compiler_wl_CXX='-Qoption ld '
12704
	    lt_prog_compiler_wl_CXX='-Qoption ld '
11671
	    ;;
12705
	    ;;
11672
	  gcx)
12706
	  gcx*)
11673
	    # Green Hills C++ Compiler
12707
	    # Green Hills C++ Compiler
11674
	    lt_prog_compiler_pic_CXX='-PIC'
12708
	    lt_prog_compiler_pic_CXX='-PIC'
11675
	    ;;
12709
	    ;;
Lines 11679-11690 Link Here
11679
	;;
12713
	;;
11680
      sunos4*)
12714
      sunos4*)
11681
	case $cc_basename in
12715
	case $cc_basename in
11682
	  CC)
12716
	  CC*)
11683
	    # Sun C++ 4.x
12717
	    # Sun C++ 4.x
11684
	    lt_prog_compiler_pic_CXX='-pic'
12718
	    lt_prog_compiler_pic_CXX='-pic'
11685
	    lt_prog_compiler_static_CXX='-Bstatic'
12719
	    lt_prog_compiler_static_CXX='-Bstatic'
11686
	    ;;
12720
	    ;;
11687
	  lcc)
12721
	  lcc*)
11688
	    # Lucid
12722
	    # Lucid
11689
	    lt_prog_compiler_pic_CXX='-pic'
12723
	    lt_prog_compiler_pic_CXX='-pic'
11690
	    ;;
12724
	    ;;
Lines 11694-11700 Link Here
11694
	;;
12728
	;;
11695
      tandem*)
12729
      tandem*)
11696
	case $cc_basename in
12730
	case $cc_basename in
11697
	  NCC)
12731
	  NCC*)
11698
	    # NonStop-UX NCC 3.20
12732
	    # NonStop-UX NCC 3.20
11699
	    lt_prog_compiler_pic_CXX='-KPIC'
12733
	    lt_prog_compiler_pic_CXX='-KPIC'
11700
	    ;;
12734
	    ;;
Lines 11719-11725 Link Here
11719
# Check to make sure the PIC flag actually works.
12753
# Check to make sure the PIC flag actually works.
11720
#
12754
#
11721
if test -n "$lt_prog_compiler_pic_CXX"; then
12755
if test -n "$lt_prog_compiler_pic_CXX"; then
11722
  echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
12756
12757
echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
11723
echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
12758
echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
11724
if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
12759
if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
11725
  echo $ECHO_N "(cached) $ECHO_C" >&6
12760
  echo $ECHO_N "(cached) $ECHO_C" >&6
Lines 11737-11751 Link Here
11737
   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
12772
   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
11738
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12773
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11739
   -e 's:$: $lt_compiler_flag:'`
12774
   -e 's:$: $lt_compiler_flag:'`
11740
   (eval echo "\"\$as_me:11740: $lt_compile\"" >&5)
12775
   (eval echo "\"\$as_me:12775: $lt_compile\"" >&5)
11741
   (eval "$lt_compile" 2>conftest.err)
12776
   (eval "$lt_compile" 2>conftest.err)
11742
   ac_status=$?
12777
   ac_status=$?
11743
   cat conftest.err >&5
12778
   cat conftest.err >&5
11744
   echo "$as_me:11744: \$? = $ac_status" >&5
12779
   echo "$as_me:12779: \$? = $ac_status" >&5
11745
   if (exit $ac_status) && test -s "$ac_outfile"; then
12780
   if (exit $ac_status) && test -s "$ac_outfile"; then
11746
     # The compiler can only warn and ignore the option if not recognized
12781
     # The compiler can only warn and ignore the option if not recognized
11747
     # So say no if there are warnings
12782
     # So say no if there are warnings other than the usual output.
11748
     if test ! -s conftest.err; then
12783
     $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
12784
     $SED '/^$/d' conftest.err >conftest.er2
12785
     if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
11749
       lt_prog_compiler_pic_works_CXX=yes
12786
       lt_prog_compiler_pic_works_CXX=yes
11750
     fi
12787
     fi
11751
   fi
12788
   fi
Lines 11788-11800 Link Here
11788
   mkdir out
12825
   mkdir out
11789
   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12826
   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11790
12827
11791
   # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
11792
   # that will create temporary files in the current directory regardless of
11793
   # the output directory.  Thus, making CWD read-only will cause this test
11794
   # to fail, enabling locking or at least warning the user not to do parallel
11795
   # builds.
11796
   chmod -w .
11797
11798
   lt_compiler_flag="-o out/conftest2.$ac_objext"
12828
   lt_compiler_flag="-o out/conftest2.$ac_objext"
11799
   # Insert the option either (1) after the last *FLAGS variable, or
12829
   # Insert the option either (1) after the last *FLAGS variable, or
11800
   # (2) before a word containing "conftest.", or (3) at the end.
12830
   # (2) before a word containing "conftest.", or (3) at the end.
Lines 11804-11825 Link Here
11804
   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
12834
   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
11805
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12835
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11806
   -e 's:$: $lt_compiler_flag:'`
12836
   -e 's:$: $lt_compiler_flag:'`
11807
   (eval echo "\"\$as_me:11807: $lt_compile\"" >&5)
12837
   (eval echo "\"\$as_me:12837: $lt_compile\"" >&5)
11808
   (eval "$lt_compile" 2>out/conftest.err)
12838
   (eval "$lt_compile" 2>out/conftest.err)
11809
   ac_status=$?
12839
   ac_status=$?
11810
   cat out/conftest.err >&5
12840
   cat out/conftest.err >&5
11811
   echo "$as_me:11811: \$? = $ac_status" >&5
12841
   echo "$as_me:12841: \$? = $ac_status" >&5
11812
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
12842
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
11813
   then
12843
   then
11814
     # The compiler can only warn and ignore the option if not recognized
12844
     # The compiler can only warn and ignore the option if not recognized
11815
     # So say no if there are warnings
12845
     # So say no if there are warnings
11816
     if test ! -s out/conftest.err; then
12846
     $echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp
12847
     $SED '/^$/d' out/conftest.err >out/conftest.er2
12848
     if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 >/dev/null; then
11817
       lt_cv_prog_compiler_c_o_CXX=yes
12849
       lt_cv_prog_compiler_c_o_CXX=yes
11818
     fi
12850
     fi
11819
   fi
12851
   fi
11820
   chmod u+w .
12852
   chmod u+w .
11821
   $rm conftest* out/*
12853
   $rm conftest*
11822
   rmdir out
12854
   # SGI C++ compiler will create directory out/ii_files/ for
12855
   # template instantiation
12856
   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
12857
   $rm out/* && rmdir out
11823
   cd ..
12858
   cd ..
11824
   rmdir conftest
12859
   rmdir conftest
11825
   $rm conftest*
12860
   $rm conftest*
Lines 11869-11875 Link Here
11869
    export_symbols_cmds_CXX="$ltdll_cmds"
12904
    export_symbols_cmds_CXX="$ltdll_cmds"
11870
  ;;
12905
  ;;
11871
  cygwin* | mingw*)
12906
  cygwin* | mingw*)
11872
    export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
12907
    export_symbols_cmds_CXX='$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'
11873
  ;;
12908
  ;;
11874
  *)
12909
  *)
11875
    export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12910
    export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
Lines 11947-12024 Link Here
11947
  ;;
12982
  ;;
11948
esac
12983
esac
11949
12984
11950
echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
11951
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
11952
hardcode_action_CXX=
11953
if test -n "$hardcode_libdir_flag_spec_CXX" || \
11954
   test -n "$runpath_var CXX" || \
11955
   test "X$hardcode_automatic_CXX"="Xyes" ; then
11956
11957
  # We can hardcode non-existant directories.
11958
  if test "$hardcode_direct_CXX" != no &&
11959
     # If the only mechanism to avoid hardcoding is shlibpath_var, we
11960
     # have to relink, otherwise we might link with an installed library
11961
     # when we should be linking with a yet-to-be-installed one
11962
     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
11963
     test "$hardcode_minus_L_CXX" != no; then
11964
    # Linking always hardcodes the temporary library directory.
11965
    hardcode_action_CXX=relink
11966
  else
11967
    # We can link without hardcoding, and we can hardcode nonexisting dirs.
11968
    hardcode_action_CXX=immediate
11969
  fi
11970
else
11971
  # We cannot hardcode anything, or else we can only hardcode existing
11972
  # directories.
11973
  hardcode_action_CXX=unsupported
11974
fi
11975
echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
11976
echo "${ECHO_T}$hardcode_action_CXX" >&6
11977
11978
if test "$hardcode_action_CXX" = relink; then
11979
  # Fast installation is not supported
11980
  enable_fast_install=no
11981
elif test "$shlibpath_overrides_runpath" = yes ||
11982
     test "$enable_shared" = no; then
11983
  # Fast installation is not necessary
11984
  enable_fast_install=needless
11985
fi
11986
11987
striplib=
11988
old_striplib=
11989
echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
11990
echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
11991
if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
11992
  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11993
  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11994
  echo "$as_me:$LINENO: result: yes" >&5
11995
echo "${ECHO_T}yes" >&6
11996
else
11997
# FIXME - insert some real tests, host_os isn't really good enough
11998
  case $host_os in
11999
   darwin*)
12000
       if test -n "$STRIP" ; then
12001
         striplib="$STRIP -x"
12002
         echo "$as_me:$LINENO: result: yes" >&5
12003
echo "${ECHO_T}yes" >&6
12004
       else
12005
  echo "$as_me:$LINENO: result: no" >&5
12006
echo "${ECHO_T}no" >&6
12007
fi
12008
       ;;
12009
   *)
12010
  echo "$as_me:$LINENO: result: no" >&5
12011
echo "${ECHO_T}no" >&6
12012
    ;;
12013
  esac
12014
fi
12015
12016
echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
12985
echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
12017
echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
12986
echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
12018
library_names_spec=
12987
library_names_spec=
12019
libname_spec='lib$name'
12988
libname_spec='lib$name'
12020
soname_spec=
12989
soname_spec=
12021
shrext=".so"
12990
shrext_cmds=".so"
12022
postinstall_cmds=
12991
postinstall_cmds=
12023
postuninstall_cmds=
12992
postuninstall_cmds=
12024
finish_cmds=
12993
finish_cmds=
Lines 12106-12112 Link Here
12106
amigaos*)
13075
amigaos*)
12107
  library_names_spec='$libname.ixlibrary $libname.a'
13076
  library_names_spec='$libname.ixlibrary $libname.a'
12108
  # Create ${libname}_ixlibrary.a entries in /sys/libs.
13077
  # Create ${libname}_ixlibrary.a entries in /sys/libs.
12109
  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'
13078
  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'
12110
  ;;
13079
  ;;
12111
13080
12112
beos*)
13081
beos*)
Lines 12115-12121 Link Here
12115
  shlibpath_var=LIBRARY_PATH
13084
  shlibpath_var=LIBRARY_PATH
12116
  ;;
13085
  ;;
12117
13086
12118
bsdi4*)
13087
bsdi[45]*)
12119
  version_type=linux
13088
  version_type=linux
12120
  need_version=no
13089
  need_version=no
12121
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13090
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
Lines 12131-12137 Link Here
12131
13100
12132
cygwin* | mingw* | pw32*)
13101
cygwin* | mingw* | pw32*)
12133
  version_type=windows
13102
  version_type=windows
12134
  shrext=".dll"
13103
  shrext_cmds=".dll"
12135
  need_version=no
13104
  need_version=no
12136
  need_lib_prefix=no
13105
  need_lib_prefix=no
12137
13106
Lines 12153-12159 Link Here
12153
    cygwin*)
13122
    cygwin*)
12154
      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
13123
      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
12155
      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13124
      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12156
      sys_lib_search_path_spec="/lib /lib/w32api /usr/lib /usr/local/lib"
13125
      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
12157
      ;;
13126
      ;;
12158
    mingw*)
13127
    mingw*)
12159
      # MinGW DLLs use traditional 'lib' prefix
13128
      # MinGW DLLs use traditional 'lib' prefix
Lines 12173-12183 Link Here
12173
      ;;
13142
      ;;
12174
    pw32*)
13143
    pw32*)
12175
      # pw32 DLLs use 'pw' prefix rather than 'lib'
13144
      # pw32 DLLs use 'pw' prefix rather than 'lib'
12176
      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
13145
      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12177
      ;;
13146
      ;;
12178
    esac
13147
    esac
12179
    ;;
13148
    ;;
12180
13149
13150
  linux*)
13151
    if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
13152
      archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13153
      supports_anon_versioning=no
13154
      case `$LD -v 2>/dev/null` in
13155
        *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
13156
        *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
13157
        *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
13158
        *\ 2.11.*) ;; # other 2.11 versions
13159
        *) supports_anon_versioning=yes ;;
13160
      esac
13161
      if test $supports_anon_versioning = yes; then
13162
        archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
13163
cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13164
$echo "local: *; };" >> $output_objdir/$libname.ver~
13165
        $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13166
      else
13167
        $archive_expsym_cmds="$archive_cmds"
13168
      fi
13169
    else
13170
      ld_shlibs=no
13171
    fi
13172
    ;;
13173
12181
  *)
13174
  *)
12182
    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
13175
    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
12183
    ;;
13176
    ;;
Lines 12192-12208 Link Here
12192
  version_type=darwin
13185
  version_type=darwin
12193
  need_lib_prefix=no
13186
  need_lib_prefix=no
12194
  need_version=no
13187
  need_version=no
12195
  # FIXME: Relying on posixy $() will cause problems for
12196
  #        cross-compilation, but unfortunately the echo tests do not
12197
  #        yet detect zsh echo's removal of \ escapes.
12198
  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
13188
  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
12199
  soname_spec='${libname}${release}${major}$shared_ext'
13189
  soname_spec='${libname}${release}${major}$shared_ext'
12200
  shlibpath_overrides_runpath=yes
13190
  shlibpath_overrides_runpath=yes
12201
  shlibpath_var=DYLD_LIBRARY_PATH
13191
  shlibpath_var=DYLD_LIBRARY_PATH
12202
  shrext='$(test .$module = .yes && echo .so || echo .dylib)'
13192
  shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
12203
  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
13193
  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
12204
  if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
13194
  if test "$GCC" = yes; then
12205
  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"`
13195
    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"`
13196
  else
13197
    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
12206
  fi
13198
  fi
12207
  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
13199
  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
12208
  ;;
13200
  ;;
Lines 12220-12226 Link Here
12220
  dynamic_linker=no
13212
  dynamic_linker=no
12221
  ;;
13213
  ;;
12222
13214
12223
freebsd*)
13215
kfreebsd*-gnu)
13216
  version_type=linux
13217
  need_lib_prefix=no
13218
  need_version=no
13219
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13220
  soname_spec='${libname}${release}${shared_ext}$major'
13221
  shlibpath_var=LD_LIBRARY_PATH
13222
  shlibpath_overrides_runpath=no
13223
  hardcode_into_libs=yes
13224
  dynamic_linker='GNU ld.so'
13225
  ;;
13226
13227
freebsd* | dragonfly*)
13228
  # DragonFly does not have aout.  When/if they implement a new
13229
  # versioning mechanism, adjust this.
12224
  objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
13230
  objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
12225
  version_type=freebsd-$objformat
13231
  version_type=freebsd-$objformat
12226
  case $version_type in
13232
  case $version_type in
Lines 12239-12245 Link Here
12239
  freebsd2*)
13245
  freebsd2*)
12240
    shlibpath_overrides_runpath=yes
13246
    shlibpath_overrides_runpath=yes
12241
    ;;
13247
    ;;
12242
  freebsd3.01* | freebsdelf3.01*)
13248
  freebsd3.[01]* | freebsdelf3.[01]*)
12243
    shlibpath_overrides_runpath=yes
13249
    shlibpath_overrides_runpath=yes
12244
    hardcode_into_libs=yes
13250
    hardcode_into_libs=yes
12245
    ;;
13251
    ;;
Lines 12268-12274 Link Here
12268
  need_version=no
13274
  need_version=no
12269
  case "$host_cpu" in
13275
  case "$host_cpu" in
12270
  ia64*)
13276
  ia64*)
12271
    shrext='.so'
13277
    shrext_cmds='.so'
12272
    hardcode_into_libs=yes
13278
    hardcode_into_libs=yes
12273
    dynamic_linker="$host_os dld.so"
13279
    dynamic_linker="$host_os dld.so"
12274
    shlibpath_var=LD_LIBRARY_PATH
13280
    shlibpath_var=LD_LIBRARY_PATH
Lines 12283-12289 Link Here
12283
    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13289
    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12284
    ;;
13290
    ;;
12285
   hppa*64*)
13291
   hppa*64*)
12286
     shrext='.sl'
13292
     shrext_cmds='.sl'
12287
     hardcode_into_libs=yes
13293
     hardcode_into_libs=yes
12288
     dynamic_linker="$host_os dld.sl"
13294
     dynamic_linker="$host_os dld.sl"
12289
     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
13295
     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
Lines 12294-12300 Link Here
12294
     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13300
     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12295
     ;;
13301
     ;;
12296
   *)
13302
   *)
12297
    shrext='.sl'
13303
    shrext_cmds='.sl'
12298
    dynamic_linker="$host_os dld.sl"
13304
    dynamic_linker="$host_os dld.sl"
12299
    shlibpath_var=SHLIB_PATH
13305
    shlibpath_var=SHLIB_PATH
12300
    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
13306
    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
Lines 12363-12372 Link Here
12363
  # before this can be enabled.
13369
  # before this can be enabled.
12364
  hardcode_into_libs=yes
13370
  hardcode_into_libs=yes
12365
13371
12366
  case $LD in # libtool.m4 will add one of these switches to LD
13372
  # Append ld.so.conf contents to the search path
12367
  *"-m elf_x86_64"*|*"-m elf64ppc"*|*"-m elf64_s390"*|*"-m elf64_sparc"*)
13373
  if test -f /etc/ld.so.conf; then
12368
    sys_lib_dlsearch_path_spec="/lib64 /usr/lib64"
13374
    lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:,	]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
12369
    sys_lib_search_path_spec="/lib64 /usr/lib64 /usr/local/lib64"
13375
    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
13376
  fi
13377
13378
  case $host_cpu:$lt_cv_cc_64bit_output in
13379
  powerpc64:yes | s390x:yes | sparc64:yes | x86_64:yes)
13380
    sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /usr/X11R6/lib64"
13381
    sys_lib_search_path_spec="/lib64 /usr/lib64 /usr/local/lib64 /usr/X11R6/lib64"
12370
    ;;
13382
    ;;
12371
  esac
13383
  esac
12372
13384
Lines 12377-12382 Link Here
12377
  # people can always --disable-shared, the test was removed, and we
13389
  # people can always --disable-shared, the test was removed, and we
12378
  # assume the GNU/Linux dynamic linker is in use.
13390
  # assume the GNU/Linux dynamic linker is in use.
12379
  dynamic_linker='GNU/Linux ld.so'
13391
  dynamic_linker='GNU/Linux ld.so'
13392
13393
  # Find out which ABI we are using (multilib Linux x86_64 hack).
13394
  libsuff=
13395
  case "$host_cpu" in
13396
  x86_64*)
13397
    echo '#line 13397 "configure"' > conftest.$ac_ext
13398
    if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13399
  (eval $ac_compile) 2>&5
13400
  ac_status=$?
13401
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13402
  (exit $ac_status); }; then
13403
      case `/usr/bin/file conftest.$ac_objext` in
13404
      *64-bit*)
13405
        libsuff=64
13406
        ;;
13407
      esac
13408
    fi
13409
    rm -rf conftest*
13410
    ;;
13411
  *)
13412
    ;;
13413
  esac
13414
  sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff}"
13415
  sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
13416
  ;;
13417
13418
knetbsd*-gnu)
13419
  version_type=linux
13420
  need_lib_prefix=no
13421
  need_version=no
13422
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13423
  soname_spec='${libname}${release}${shared_ext}$major'
13424
  shlibpath_var=LD_LIBRARY_PATH
13425
  shlibpath_overrides_runpath=no
13426
  hardcode_into_libs=yes
13427
  dynamic_linker='GNU ld.so'
12380
  ;;
13428
  ;;
12381
13429
12382
netbsd*)
13430
netbsd*)
Lines 12388-12394 Link Here
12388
    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13436
    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12389
    dynamic_linker='NetBSD (a.out) ld.so'
13437
    dynamic_linker='NetBSD (a.out) ld.so'
12390
  else
13438
  else
12391
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
13439
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12392
    soname_spec='${libname}${release}${shared_ext}$major'
13440
    soname_spec='${libname}${release}${shared_ext}$major'
12393
    dynamic_linker='NetBSD ld.elf_so'
13441
    dynamic_linker='NetBSD ld.elf_so'
12394
  fi
13442
  fi
Lines 12404-12410 Link Here
12404
  shlibpath_overrides_runpath=yes
13452
  shlibpath_overrides_runpath=yes
12405
  ;;
13453
  ;;
12406
13454
12407
nto-qnx)
13455
nto-qnx*)
12408
  version_type=linux
13456
  version_type=linux
12409
  need_lib_prefix=no
13457
  need_lib_prefix=no
12410
  need_version=no
13458
  need_version=no
Lines 12417-12423 Link Here
12417
openbsd*)
13465
openbsd*)
12418
  version_type=sunos
13466
  version_type=sunos
12419
  need_lib_prefix=no
13467
  need_lib_prefix=no
12420
  need_version=no
13468
  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
13469
  case $host_os in
13470
    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
13471
    *)                         need_version=no  ;;
13472
  esac
12421
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13473
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12422
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13474
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12423
  shlibpath_var=LD_LIBRARY_PATH
13475
  shlibpath_var=LD_LIBRARY_PATH
Lines 12437-12443 Link Here
12437
13489
12438
os2*)
13490
os2*)
12439
  libname_spec='$name'
13491
  libname_spec='$name'
12440
  shrext=".dll"
13492
  shrext_cmds=".dll"
12441
  need_lib_prefix=no
13493
  need_lib_prefix=no
12442
  library_names_spec='$libname${shared_ext} $libname.a'
13494
  library_names_spec='$libname${shared_ext} $libname.a'
12443
  dynamic_linker='OS/2 ld.exe'
13495
  dynamic_linker='OS/2 ld.exe'
Lines 12535-12540 Link Here
12535
echo "${ECHO_T}$dynamic_linker" >&6
13587
echo "${ECHO_T}$dynamic_linker" >&6
12536
test "$dynamic_linker" = no && can_build_shared=no
13588
test "$dynamic_linker" = no && can_build_shared=no
12537
13589
13590
echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
13591
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
13592
hardcode_action_CXX=
13593
if test -n "$hardcode_libdir_flag_spec_CXX" || \
13594
   test -n "$runpath_var_CXX" || \
13595
   test "X$hardcode_automatic_CXX" = "Xyes" ; then
13596
13597
  # We can hardcode non-existant directories.
13598
  if test "$hardcode_direct_CXX" != no &&
13599
     # If the only mechanism to avoid hardcoding is shlibpath_var, we
13600
     # have to relink, otherwise we might link with an installed library
13601
     # when we should be linking with a yet-to-be-installed one
13602
     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
13603
     test "$hardcode_minus_L_CXX" != no; then
13604
    # Linking always hardcodes the temporary library directory.
13605
    hardcode_action_CXX=relink
13606
  else
13607
    # We can link without hardcoding, and we can hardcode nonexisting dirs.
13608
    hardcode_action_CXX=immediate
13609
  fi
13610
else
13611
  # We cannot hardcode anything, or else we can only hardcode existing
13612
  # directories.
13613
  hardcode_action_CXX=unsupported
13614
fi
13615
echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
13616
echo "${ECHO_T}$hardcode_action_CXX" >&6
13617
13618
if test "$hardcode_action_CXX" = relink; then
13619
  # Fast installation is not supported
13620
  enable_fast_install=no
13621
elif test "$shlibpath_overrides_runpath" = yes ||
13622
     test "$enable_shared" = no; then
13623
  # Fast installation is not necessary
13624
  enable_fast_install=needless
13625
fi
13626
13627
striplib=
13628
old_striplib=
13629
echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
13630
echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
13631
if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
13632
  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
13633
  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
13634
  echo "$as_me:$LINENO: result: yes" >&5
13635
echo "${ECHO_T}yes" >&6
13636
else
13637
# FIXME - insert some real tests, host_os isn't really good enough
13638
  case $host_os in
13639
   darwin*)
13640
       if test -n "$STRIP" ; then
13641
         striplib="$STRIP -x"
13642
         echo "$as_me:$LINENO: result: yes" >&5
13643
echo "${ECHO_T}yes" >&6
13644
       else
13645
  echo "$as_me:$LINENO: result: no" >&5
13646
echo "${ECHO_T}no" >&6
13647
fi
13648
       ;;
13649
   *)
13650
  echo "$as_me:$LINENO: result: no" >&5
13651
echo "${ECHO_T}no" >&6
13652
    ;;
13653
  esac
13654
fi
13655
12538
if test "x$enable_dlopen" != xyes; then
13656
if test "x$enable_dlopen" != xyes; then
12539
  enable_dlopen=unknown
13657
  enable_dlopen=unknown
12540
  enable_dlopen_self=unknown
13658
  enable_dlopen_self=unknown
Lines 12570-12576 Link Here
12570
  ac_check_lib_save_LIBS=$LIBS
13688
  ac_check_lib_save_LIBS=$LIBS
12571
LIBS="-ldl  $LIBS"
13689
LIBS="-ldl  $LIBS"
12572
cat >conftest.$ac_ext <<_ACEOF
13690
cat >conftest.$ac_ext <<_ACEOF
12573
#line $LINENO "configure"
12574
/* confdefs.h.  */
13691
/* confdefs.h.  */
12575
_ACEOF
13692
_ACEOF
12576
cat confdefs.h >>conftest.$ac_ext
13693
cat confdefs.h >>conftest.$ac_ext
Lines 12594-12604 Link Here
12594
_ACEOF
13711
_ACEOF
12595
rm -f conftest.$ac_objext conftest$ac_exeext
13712
rm -f conftest.$ac_objext conftest$ac_exeext
12596
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13713
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12597
  (eval $ac_link) 2>&5
13714
  (eval $ac_link) 2>conftest.er1
12598
  ac_status=$?
13715
  ac_status=$?
13716
  grep -v '^ *+' conftest.er1 >conftest.err
13717
  rm -f conftest.er1
13718
  cat conftest.err >&5
12599
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13719
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12600
  (exit $ac_status); } &&
13720
  (exit $ac_status); } &&
12601
         { ac_try='test -s conftest$ac_exeext'
13721
	 { ac_try='test -z "$ac_cxx_werror_flag"
13722
			 || test ! -s conftest.err'
13723
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13724
  (eval $ac_try) 2>&5
13725
  ac_status=$?
13726
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13727
  (exit $ac_status); }; } &&
13728
	 { ac_try='test -s conftest$ac_exeext'
12602
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13729
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12603
  (eval $ac_try) 2>&5
13730
  (eval $ac_try) 2>&5
12604
  ac_status=$?
13731
  ac_status=$?
Lines 12611-12617 Link Here
12611
13738
12612
ac_cv_lib_dl_dlopen=no
13739
ac_cv_lib_dl_dlopen=no
12613
fi
13740
fi
12614
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13741
rm -f conftest.err conftest.$ac_objext \
13742
      conftest$ac_exeext conftest.$ac_ext
12615
LIBS=$ac_check_lib_save_LIBS
13743
LIBS=$ac_check_lib_save_LIBS
12616
fi
13744
fi
12617
echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
13745
echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
Lines 12635-12655 Link Here
12635
  echo $ECHO_N "(cached) $ECHO_C" >&6
13763
  echo $ECHO_N "(cached) $ECHO_C" >&6
12636
else
13764
else
12637
  cat >conftest.$ac_ext <<_ACEOF
13765
  cat >conftest.$ac_ext <<_ACEOF
12638
#line $LINENO "configure"
12639
/* confdefs.h.  */
13766
/* confdefs.h.  */
12640
_ACEOF
13767
_ACEOF
12641
cat confdefs.h >>conftest.$ac_ext
13768
cat confdefs.h >>conftest.$ac_ext
12642
cat >>conftest.$ac_ext <<_ACEOF
13769
cat >>conftest.$ac_ext <<_ACEOF
12643
/* end confdefs.h.  */
13770
/* end confdefs.h.  */
13771
/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
13772
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
13773
#define shl_load innocuous_shl_load
13774
12644
/* System header to define __stub macros and hopefully few prototypes,
13775
/* System header to define __stub macros and hopefully few prototypes,
12645
    which can conflict with char shl_load (); below.
13776
    which can conflict with char shl_load (); below.
12646
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13777
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12647
    <limits.h> exists even on freestanding compilers.  */
13778
    <limits.h> exists even on freestanding compilers.  */
13779
12648
#ifdef __STDC__
13780
#ifdef __STDC__
12649
# include <limits.h>
13781
# include <limits.h>
12650
#else
13782
#else
12651
# include <assert.h>
13783
# include <assert.h>
12652
#endif
13784
#endif
13785
13786
#undef shl_load
13787
12653
/* Override any gcc2 internal prototype to avoid an error.  */
13788
/* Override any gcc2 internal prototype to avoid an error.  */
12654
#ifdef __cplusplus
13789
#ifdef __cplusplus
12655
extern "C"
13790
extern "C"
Lines 12680-12690 Link Here
12680
_ACEOF
13815
_ACEOF
12681
rm -f conftest.$ac_objext conftest$ac_exeext
13816
rm -f conftest.$ac_objext conftest$ac_exeext
12682
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13817
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12683
  (eval $ac_link) 2>&5
13818
  (eval $ac_link) 2>conftest.er1
12684
  ac_status=$?
13819
  ac_status=$?
13820
  grep -v '^ *+' conftest.er1 >conftest.err
13821
  rm -f conftest.er1
13822
  cat conftest.err >&5
12685
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13823
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12686
  (exit $ac_status); } &&
13824
  (exit $ac_status); } &&
12687
         { ac_try='test -s conftest$ac_exeext'
13825
	 { ac_try='test -z "$ac_cxx_werror_flag"
13826
			 || test ! -s conftest.err'
13827
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13828
  (eval $ac_try) 2>&5
13829
  ac_status=$?
13830
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13831
  (exit $ac_status); }; } &&
13832
	 { ac_try='test -s conftest$ac_exeext'
12688
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13833
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12689
  (eval $ac_try) 2>&5
13834
  (eval $ac_try) 2>&5
12690
  ac_status=$?
13835
  ac_status=$?
Lines 12697-12703 Link Here
12697
13842
12698
ac_cv_func_shl_load=no
13843
ac_cv_func_shl_load=no
12699
fi
13844
fi
12700
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13845
rm -f conftest.err conftest.$ac_objext \
13846
      conftest$ac_exeext conftest.$ac_ext
12701
fi
13847
fi
12702
echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
13848
echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
12703
echo "${ECHO_T}$ac_cv_func_shl_load" >&6
13849
echo "${ECHO_T}$ac_cv_func_shl_load" >&6
Lines 12712-12718 Link Here
12712
  ac_check_lib_save_LIBS=$LIBS
13858
  ac_check_lib_save_LIBS=$LIBS
12713
LIBS="-ldld  $LIBS"
13859
LIBS="-ldld  $LIBS"
12714
cat >conftest.$ac_ext <<_ACEOF
13860
cat >conftest.$ac_ext <<_ACEOF
12715
#line $LINENO "configure"
12716
/* confdefs.h.  */
13861
/* confdefs.h.  */
12717
_ACEOF
13862
_ACEOF
12718
cat confdefs.h >>conftest.$ac_ext
13863
cat confdefs.h >>conftest.$ac_ext
Lines 12736-12746 Link Here
12736
_ACEOF
13881
_ACEOF
12737
rm -f conftest.$ac_objext conftest$ac_exeext
13882
rm -f conftest.$ac_objext conftest$ac_exeext
12738
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13883
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12739
  (eval $ac_link) 2>&5
13884
  (eval $ac_link) 2>conftest.er1
12740
  ac_status=$?
13885
  ac_status=$?
13886
  grep -v '^ *+' conftest.er1 >conftest.err
13887
  rm -f conftest.er1
13888
  cat conftest.err >&5
12741
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13889
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12742
  (exit $ac_status); } &&
13890
  (exit $ac_status); } &&
12743
         { ac_try='test -s conftest$ac_exeext'
13891
	 { ac_try='test -z "$ac_cxx_werror_flag"
13892
			 || test ! -s conftest.err'
13893
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13894
  (eval $ac_try) 2>&5
13895
  ac_status=$?
13896
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13897
  (exit $ac_status); }; } &&
13898
	 { ac_try='test -s conftest$ac_exeext'
12744
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13899
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12745
  (eval $ac_try) 2>&5
13900
  (eval $ac_try) 2>&5
12746
  ac_status=$?
13901
  ac_status=$?
Lines 12753-12759 Link Here
12753
13908
12754
ac_cv_lib_dld_shl_load=no
13909
ac_cv_lib_dld_shl_load=no
12755
fi
13910
fi
12756
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13911
rm -f conftest.err conftest.$ac_objext \
13912
      conftest$ac_exeext conftest.$ac_ext
12757
LIBS=$ac_check_lib_save_LIBS
13913
LIBS=$ac_check_lib_save_LIBS
12758
fi
13914
fi
12759
echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
13915
echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
Lines 12767-12787 Link Here
12767
  echo $ECHO_N "(cached) $ECHO_C" >&6
13923
  echo $ECHO_N "(cached) $ECHO_C" >&6
12768
else
13924
else
12769
  cat >conftest.$ac_ext <<_ACEOF
13925
  cat >conftest.$ac_ext <<_ACEOF
12770
#line $LINENO "configure"
12771
/* confdefs.h.  */
13926
/* confdefs.h.  */
12772
_ACEOF
13927
_ACEOF
12773
cat confdefs.h >>conftest.$ac_ext
13928
cat confdefs.h >>conftest.$ac_ext
12774
cat >>conftest.$ac_ext <<_ACEOF
13929
cat >>conftest.$ac_ext <<_ACEOF
12775
/* end confdefs.h.  */
13930
/* end confdefs.h.  */
13931
/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
13932
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
13933
#define dlopen innocuous_dlopen
13934
12776
/* System header to define __stub macros and hopefully few prototypes,
13935
/* System header to define __stub macros and hopefully few prototypes,
12777
    which can conflict with char dlopen (); below.
13936
    which can conflict with char dlopen (); below.
12778
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13937
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12779
    <limits.h> exists even on freestanding compilers.  */
13938
    <limits.h> exists even on freestanding compilers.  */
13939
12780
#ifdef __STDC__
13940
#ifdef __STDC__
12781
# include <limits.h>
13941
# include <limits.h>
12782
#else
13942
#else
12783
# include <assert.h>
13943
# include <assert.h>
12784
#endif
13944
#endif
13945
13946
#undef dlopen
13947
12785
/* Override any gcc2 internal prototype to avoid an error.  */
13948
/* Override any gcc2 internal prototype to avoid an error.  */
12786
#ifdef __cplusplus
13949
#ifdef __cplusplus
12787
extern "C"
13950
extern "C"
Lines 12812-12822 Link Here
12812
_ACEOF
13975
_ACEOF
12813
rm -f conftest.$ac_objext conftest$ac_exeext
13976
rm -f conftest.$ac_objext conftest$ac_exeext
12814
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13977
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12815
  (eval $ac_link) 2>&5
13978
  (eval $ac_link) 2>conftest.er1
12816
  ac_status=$?
13979
  ac_status=$?
13980
  grep -v '^ *+' conftest.er1 >conftest.err
13981
  rm -f conftest.er1
13982
  cat conftest.err >&5
12817
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13983
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12818
  (exit $ac_status); } &&
13984
  (exit $ac_status); } &&
12819
         { ac_try='test -s conftest$ac_exeext'
13985
	 { ac_try='test -z "$ac_cxx_werror_flag"
13986
			 || test ! -s conftest.err'
13987
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13988
  (eval $ac_try) 2>&5
13989
  ac_status=$?
13990
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13991
  (exit $ac_status); }; } &&
13992
	 { ac_try='test -s conftest$ac_exeext'
12820
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13993
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12821
  (eval $ac_try) 2>&5
13994
  (eval $ac_try) 2>&5
12822
  ac_status=$?
13995
  ac_status=$?
Lines 12829-12835 Link Here
12829
14002
12830
ac_cv_func_dlopen=no
14003
ac_cv_func_dlopen=no
12831
fi
14004
fi
12832
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14005
rm -f conftest.err conftest.$ac_objext \
14006
      conftest$ac_exeext conftest.$ac_ext
12833
fi
14007
fi
12834
echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
14008
echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
12835
echo "${ECHO_T}$ac_cv_func_dlopen" >&6
14009
echo "${ECHO_T}$ac_cv_func_dlopen" >&6
Lines 12844-12850 Link Here
12844
  ac_check_lib_save_LIBS=$LIBS
14018
  ac_check_lib_save_LIBS=$LIBS
12845
LIBS="-ldl  $LIBS"
14019
LIBS="-ldl  $LIBS"
12846
cat >conftest.$ac_ext <<_ACEOF
14020
cat >conftest.$ac_ext <<_ACEOF
12847
#line $LINENO "configure"
12848
/* confdefs.h.  */
14021
/* confdefs.h.  */
12849
_ACEOF
14022
_ACEOF
12850
cat confdefs.h >>conftest.$ac_ext
14023
cat confdefs.h >>conftest.$ac_ext
Lines 12868-12878 Link Here
12868
_ACEOF
14041
_ACEOF
12869
rm -f conftest.$ac_objext conftest$ac_exeext
14042
rm -f conftest.$ac_objext conftest$ac_exeext
12870
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14043
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12871
  (eval $ac_link) 2>&5
14044
  (eval $ac_link) 2>conftest.er1
12872
  ac_status=$?
14045
  ac_status=$?
14046
  grep -v '^ *+' conftest.er1 >conftest.err
14047
  rm -f conftest.er1
14048
  cat conftest.err >&5
12873
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14049
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12874
  (exit $ac_status); } &&
14050
  (exit $ac_status); } &&
12875
         { ac_try='test -s conftest$ac_exeext'
14051
	 { ac_try='test -z "$ac_cxx_werror_flag"
14052
			 || test ! -s conftest.err'
14053
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14054
  (eval $ac_try) 2>&5
14055
  ac_status=$?
14056
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14057
  (exit $ac_status); }; } &&
14058
	 { ac_try='test -s conftest$ac_exeext'
12876
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14059
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12877
  (eval $ac_try) 2>&5
14060
  (eval $ac_try) 2>&5
12878
  ac_status=$?
14061
  ac_status=$?
Lines 12885-12891 Link Here
12885
14068
12886
ac_cv_lib_dl_dlopen=no
14069
ac_cv_lib_dl_dlopen=no
12887
fi
14070
fi
12888
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14071
rm -f conftest.err conftest.$ac_objext \
14072
      conftest$ac_exeext conftest.$ac_ext
12889
LIBS=$ac_check_lib_save_LIBS
14073
LIBS=$ac_check_lib_save_LIBS
12890
fi
14074
fi
12891
echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
14075
echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
Lines 12901-12907 Link Here
12901
  ac_check_lib_save_LIBS=$LIBS
14085
  ac_check_lib_save_LIBS=$LIBS
12902
LIBS="-lsvld  $LIBS"
14086
LIBS="-lsvld  $LIBS"
12903
cat >conftest.$ac_ext <<_ACEOF
14087
cat >conftest.$ac_ext <<_ACEOF
12904
#line $LINENO "configure"
12905
/* confdefs.h.  */
14088
/* confdefs.h.  */
12906
_ACEOF
14089
_ACEOF
12907
cat confdefs.h >>conftest.$ac_ext
14090
cat confdefs.h >>conftest.$ac_ext
Lines 12925-12935 Link Here
12925
_ACEOF
14108
_ACEOF
12926
rm -f conftest.$ac_objext conftest$ac_exeext
14109
rm -f conftest.$ac_objext conftest$ac_exeext
12927
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14110
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12928
  (eval $ac_link) 2>&5
14111
  (eval $ac_link) 2>conftest.er1
14112
  ac_status=$?
14113
  grep -v '^ *+' conftest.er1 >conftest.err
14114
  rm -f conftest.er1
14115
  cat conftest.err >&5
14116
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14117
  (exit $ac_status); } &&
14118
	 { ac_try='test -z "$ac_cxx_werror_flag"
14119
			 || test ! -s conftest.err'
14120
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14121
  (eval $ac_try) 2>&5
12929
  ac_status=$?
14122
  ac_status=$?
12930
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14123
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12931
  (exit $ac_status); } &&
14124
  (exit $ac_status); }; } &&
12932
         { ac_try='test -s conftest$ac_exeext'
14125
	 { ac_try='test -s conftest$ac_exeext'
12933
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14126
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12934
  (eval $ac_try) 2>&5
14127
  (eval $ac_try) 2>&5
12935
  ac_status=$?
14128
  ac_status=$?
Lines 12942-12948 Link Here
12942
14135
12943
ac_cv_lib_svld_dlopen=no
14136
ac_cv_lib_svld_dlopen=no
12944
fi
14137
fi
12945
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14138
rm -f conftest.err conftest.$ac_objext \
14139
      conftest$ac_exeext conftest.$ac_ext
12946
LIBS=$ac_check_lib_save_LIBS
14140
LIBS=$ac_check_lib_save_LIBS
12947
fi
14141
fi
12948
echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
14142
echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
Lines 12958-12964 Link Here
12958
  ac_check_lib_save_LIBS=$LIBS
14152
  ac_check_lib_save_LIBS=$LIBS
12959
LIBS="-ldld  $LIBS"
14153
LIBS="-ldld  $LIBS"
12960
cat >conftest.$ac_ext <<_ACEOF
14154
cat >conftest.$ac_ext <<_ACEOF
12961
#line $LINENO "configure"
12962
/* confdefs.h.  */
14155
/* confdefs.h.  */
12963
_ACEOF
14156
_ACEOF
12964
cat confdefs.h >>conftest.$ac_ext
14157
cat confdefs.h >>conftest.$ac_ext
Lines 12982-12992 Link Here
12982
_ACEOF
14175
_ACEOF
12983
rm -f conftest.$ac_objext conftest$ac_exeext
14176
rm -f conftest.$ac_objext conftest$ac_exeext
12984
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14177
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12985
  (eval $ac_link) 2>&5
14178
  (eval $ac_link) 2>conftest.er1
12986
  ac_status=$?
14179
  ac_status=$?
14180
  grep -v '^ *+' conftest.er1 >conftest.err
14181
  rm -f conftest.er1
14182
  cat conftest.err >&5
12987
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14183
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12988
  (exit $ac_status); } &&
14184
  (exit $ac_status); } &&
12989
         { ac_try='test -s conftest$ac_exeext'
14185
	 { ac_try='test -z "$ac_cxx_werror_flag"
14186
			 || test ! -s conftest.err'
14187
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14188
  (eval $ac_try) 2>&5
14189
  ac_status=$?
14190
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14191
  (exit $ac_status); }; } &&
14192
	 { ac_try='test -s conftest$ac_exeext'
12990
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14193
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12991
  (eval $ac_try) 2>&5
14194
  (eval $ac_try) 2>&5
12992
  ac_status=$?
14195
  ac_status=$?
Lines 12999-13005 Link Here
12999
14202
13000
ac_cv_lib_dld_dld_link=no
14203
ac_cv_lib_dld_dld_link=no
13001
fi
14204
fi
13002
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14205
rm -f conftest.err conftest.$ac_objext \
14206
      conftest$ac_exeext conftest.$ac_ext
13003
LIBS=$ac_check_lib_save_LIBS
14207
LIBS=$ac_check_lib_save_LIBS
13004
fi
14208
fi
13005
echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
14209
echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
Lines 13054-13060 Link Here
13054
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
14258
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
13055
  lt_status=$lt_dlunknown
14259
  lt_status=$lt_dlunknown
13056
  cat > conftest.$ac_ext <<EOF
14260
  cat > conftest.$ac_ext <<EOF
13057
#line 13057 "configure"
14261
#line 14261 "configure"
13058
#include "confdefs.h"
14262
#include "confdefs.h"
13059
14263
13060
#if HAVE_DLFCN_H
14264
#if HAVE_DLFCN_H
Lines 13152-13158 Link Here
13152
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
14356
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
13153
  lt_status=$lt_dlunknown
14357
  lt_status=$lt_dlunknown
13154
  cat > conftest.$ac_ext <<EOF
14358
  cat > conftest.$ac_ext <<EOF
13155
#line 13155 "configure"
14359
#line 14359 "configure"
13156
#include "confdefs.h"
14360
#include "confdefs.h"
13157
14361
13158
#if HAVE_DLFCN_H
14362
#if HAVE_DLFCN_H
Lines 13269-13275 Link Here
13269
  # Now quote all the things that may contain metacharacters while being
14473
  # Now quote all the things that may contain metacharacters while being
13270
  # careful not to overquote the AC_SUBSTed values.  We take copies of the
14474
  # careful not to overquote the AC_SUBSTed values.  We take copies of the
13271
  # variables and quote the copies for generation of the libtool script.
14475
  # variables and quote the copies for generation of the libtool script.
13272
  for var in echo old_CC old_CFLAGS AR AR_FLAGS AS EGREP RANLIB LN_S LTCC NM SED SHELL \
14476
  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
14477
    SED SHELL STRIP \
13273
    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
14478
    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
13274
    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
14479
    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
13275
    deplibs_check_method reload_flag reload_cmds need_locks \
14480
    deplibs_check_method reload_flag reload_cmds need_locks \
Lines 13369-13374 Link Here
13369
# The host system.
14574
# The host system.
13370
host_alias=$host_alias
14575
host_alias=$host_alias
13371
host=$host
14576
host=$host
14577
host_os=$host_os
14578
14579
# The build system.
14580
build_alias=$build_alias
14581
build=$build
14582
build_os=$build_os
13372
14583
13373
# An echo program that does not interpret backslashes.
14584
# An echo program that does not interpret backslashes.
13374
echo=$lt_echo
14585
echo=$lt_echo
Lines 13399-13405 Link Here
13399
NM=$lt_NM
14610
NM=$lt_NM
13400
14611
13401
# A symbol stripping program
14612
# A symbol stripping program
13402
STRIP=$STRIP
14613
STRIP=$lt_STRIP
13403
14614
13404
# Used to examine libraries when file_magic_cmd begins "file"
14615
# Used to examine libraries when file_magic_cmd begins "file"
13405
MAGIC_CMD=$MAGIC_CMD
14616
MAGIC_CMD=$MAGIC_CMD
Lines 13411-13417 Link Here
13411
OBJDUMP="$OBJDUMP"
14622
OBJDUMP="$OBJDUMP"
13412
14623
13413
# Used on cygwin: assembler.
14624
# Used on cygwin: assembler.
13414
AS=$lt_AS
14625
AS="$AS"
13415
14626
13416
# The name of the directory that contains temporary libtool files.
14627
# The name of the directory that contains temporary libtool files.
13417
objdir=$objdir
14628
objdir=$objdir
Lines 13430-13436 Link Here
13430
libext="$libext"
14641
libext="$libext"
13431
14642
13432
# Shared library suffix (normally ".so").
14643
# Shared library suffix (normally ".so").
13433
shrext='$shrext'
14644
shrext_cmds='$shrext_cmds'
13434
14645
13435
# Executable file suffix (normally "").
14646
# Executable file suffix (normally "").
13436
exeext="$exeext"
14647
exeext="$exeext"
Lines 13445-13451 Link Here
13445
# Does compiler simultaneously support -c and -o options?
14656
# Does compiler simultaneously support -c and -o options?
13446
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
14657
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
13447
14658
13448
# Must we lock files when doing compilation ?
14659
# Must we lock files when doing compilation?
13449
need_locks=$lt_need_locks
14660
need_locks=$lt_need_locks
13450
14661
13451
# Do we need the lib prefix for modules?
14662
# Do we need the lib prefix for modules?
Lines 13647-13653 Link Here
13647
  # If there is no Makefile yet, we rely on a make rule to execute
14858
  # If there is no Makefile yet, we rely on a make rule to execute
13648
  # `config.status --recheck' to rerun these tests and create the
14859
  # `config.status --recheck' to rerun these tests and create the
13649
  # libtool script then.
14860
  # libtool script then.
13650
  test -f Makefile && make "$ltmain"
14861
  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
14862
  if test -f "$ltmain_in"; then
14863
    test -f Makefile && make "$ltmain"
14864
  fi
13651
fi
14865
fi
13652
14866
13653
14867
Lines 13723-13734 Link Here
13723
compiler=$CC
14937
compiler=$CC
13724
14938
13725
14939
14940
# save warnings/boilerplate of simple test code
14941
ac_outfile=conftest.$ac_objext
14942
printf "$lt_simple_compile_test_code" >conftest.$ac_ext
14943
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
14944
_lt_compiler_boilerplate=`cat conftest.err`
14945
$rm conftest*
14946
14947
ac_outfile=conftest.$ac_objext
14948
printf "$lt_simple_link_test_code" >conftest.$ac_ext
14949
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
14950
_lt_linker_boilerplate=`cat conftest.err`
14951
$rm conftest*
14952
14953
13726
# Allow CC to be a program name with arguments.
14954
# Allow CC to be a program name with arguments.
13727
lt_save_CC="$CC"
14955
lt_save_CC="$CC"
13728
CC=${F77-"f77"}
14956
CC=${F77-"f77"}
13729
compiler=$CC
14957
compiler=$CC
13730
compiler_F77=$CC
14958
compiler_F77=$CC
13731
cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
14959
for cc_temp in $compiler""; do
14960
  case $cc_temp in
14961
    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14962
    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14963
    \-*) ;;
14964
    *) break;;
14965
  esac
14966
done
14967
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14968
13732
14969
13733
echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
14970
echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
13734
echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
14971
echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
Lines 13749-13756 Link Here
13749
    postinstall_cmds='$RANLIB $lib'
14986
    postinstall_cmds='$RANLIB $lib'
13750
  fi
14987
  fi
13751
  ;;
14988
  ;;
13752
aix4*)
14989
aix4* | aix5*)
13753
  test "$enable_shared" = yes && enable_static=no
14990
  if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
14991
    test "$enable_shared" = yes && enable_static=no
14992
  fi
13754
  ;;
14993
  ;;
13755
esac
14994
esac
13756
echo "$as_me:$LINENO: result: $enable_shared" >&5
14995
echo "$as_me:$LINENO: result: $enable_shared" >&5
Lines 13853-13858 Link Here
13853
	lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
15092
	lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
13854
      fi
15093
      fi
13855
      ;;
15094
      ;;
15095
      darwin*)
15096
        # PIC is the default on this platform
15097
        # Common symbols not allowed in MH_DYLIB files
15098
       case $cc_basename in
15099
         xlc*)
15100
         lt_prog_compiler_pic_F77='-qnocommon'
15101
         lt_prog_compiler_wl_F77='-Wl,'
15102
         ;;
15103
       esac
15104
       ;;
13856
15105
13857
    mingw* | pw32* | os2*)
15106
    mingw* | pw32* | os2*)
13858
      # This hack is so that the source file can tell whether it is being
15107
      # This hack is so that the source file can tell whether it is being
Lines 13888-13900 Link Here
13888
      ;;
15137
      ;;
13889
15138
13890
    linux*)
15139
    linux*)
13891
      case $CC in
15140
      case $cc_basename in
13892
      icc|ecc)
15141
      icc* | ecc*)
13893
	lt_prog_compiler_wl_F77='-Wl,'
15142
	lt_prog_compiler_wl_F77='-Wl,'
13894
	lt_prog_compiler_pic_F77='-KPIC'
15143
	lt_prog_compiler_pic_F77='-KPIC'
13895
	lt_prog_compiler_static_F77='-static'
15144
	lt_prog_compiler_static_F77='-static'
13896
        ;;
15145
        ;;
13897
      ccc)
15146
      pgcc* | pgf77* | pgf90*)
15147
        # Portland Group compilers (*not* the Pentium gcc compiler,
15148
	# which looks to be a dead project)
15149
	lt_prog_compiler_wl_F77='-Wl,'
15150
	lt_prog_compiler_pic_F77='-fpic'
15151
	lt_prog_compiler_static_F77='-static'
15152
        ;;
15153
      ccc*)
13898
        lt_prog_compiler_wl_F77='-Wl,'
15154
        lt_prog_compiler_wl_F77='-Wl,'
13899
        # All Alpha code is PIC.
15155
        # All Alpha code is PIC.
13900
        lt_prog_compiler_static_F77='-non_shared'
15156
        lt_prog_compiler_static_F77='-non_shared'
Lines 13914-13922 Link Here
13914
      ;;
15170
      ;;
13915
15171
13916
    solaris*)
15172
    solaris*)
13917
      lt_prog_compiler_wl_F77='-Wl,'
13918
      lt_prog_compiler_pic_F77='-KPIC'
15173
      lt_prog_compiler_pic_F77='-KPIC'
13919
      lt_prog_compiler_static_F77='-Bstatic'
15174
      lt_prog_compiler_static_F77='-Bstatic'
15175
      case $cc_basename in
15176
      f77* | f90* | f95*)
15177
	lt_prog_compiler_wl_F77='-Qoption ld ';;
15178
      *)
15179
	lt_prog_compiler_wl_F77='-Wl,';;
15180
      esac
13920
      ;;
15181
      ;;
13921
15182
13922
    sunos4*)
15183
    sunos4*)
Lines 13938-13943 Link Here
13938
      fi
15199
      fi
13939
      ;;
15200
      ;;
13940
15201
15202
    unicos*)
15203
      lt_prog_compiler_wl_F77='-Wl,'
15204
      lt_prog_compiler_can_build_shared_F77=no
15205
      ;;
15206
13941
    uts4*)
15207
    uts4*)
13942
      lt_prog_compiler_pic_F77='-pic'
15208
      lt_prog_compiler_pic_F77='-pic'
13943
      lt_prog_compiler_static_F77='-Bstatic'
15209
      lt_prog_compiler_static_F77='-Bstatic'
Lines 13956-13962 Link Here
13956
# Check to make sure the PIC flag actually works.
15222
# Check to make sure the PIC flag actually works.
13957
#
15223
#
13958
if test -n "$lt_prog_compiler_pic_F77"; then
15224
if test -n "$lt_prog_compiler_pic_F77"; then
13959
  echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
15225
15226
echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
13960
echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6
15227
echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6
13961
if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
15228
if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
13962
  echo $ECHO_N "(cached) $ECHO_C" >&6
15229
  echo $ECHO_N "(cached) $ECHO_C" >&6
Lines 13974-13988 Link Here
13974
   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
15241
   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
13975
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15242
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13976
   -e 's:$: $lt_compiler_flag:'`
15243
   -e 's:$: $lt_compiler_flag:'`
13977
   (eval echo "\"\$as_me:13977: $lt_compile\"" >&5)
15244
   (eval echo "\"\$as_me:15244: $lt_compile\"" >&5)
13978
   (eval "$lt_compile" 2>conftest.err)
15245
   (eval "$lt_compile" 2>conftest.err)
13979
   ac_status=$?
15246
   ac_status=$?
13980
   cat conftest.err >&5
15247
   cat conftest.err >&5
13981
   echo "$as_me:13981: \$? = $ac_status" >&5
15248
   echo "$as_me:15248: \$? = $ac_status" >&5
13982
   if (exit $ac_status) && test -s "$ac_outfile"; then
15249
   if (exit $ac_status) && test -s "$ac_outfile"; then
13983
     # The compiler can only warn and ignore the option if not recognized
15250
     # The compiler can only warn and ignore the option if not recognized
13984
     # So say no if there are warnings
15251
     # So say no if there are warnings other than the usual output.
13985
     if test ! -s conftest.err; then
15252
     $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
15253
     $SED '/^$/d' conftest.err >conftest.er2
15254
     if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
13986
       lt_prog_compiler_pic_works_F77=yes
15255
       lt_prog_compiler_pic_works_F77=yes
13987
     fi
15256
     fi
13988
   fi
15257
   fi
Lines 14025-14037 Link Here
14025
   mkdir out
15294
   mkdir out
14026
   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15295
   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14027
15296
14028
   # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
14029
   # that will create temporary files in the current directory regardless of
14030
   # the output directory.  Thus, making CWD read-only will cause this test
14031
   # to fail, enabling locking or at least warning the user not to do parallel
14032
   # builds.
14033
   chmod -w .
14034
14035
   lt_compiler_flag="-o out/conftest2.$ac_objext"
15297
   lt_compiler_flag="-o out/conftest2.$ac_objext"
14036
   # Insert the option either (1) after the last *FLAGS variable, or
15298
   # Insert the option either (1) after the last *FLAGS variable, or
14037
   # (2) before a word containing "conftest.", or (3) at the end.
15299
   # (2) before a word containing "conftest.", or (3) at the end.
Lines 14041-14062 Link Here
14041
   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
15303
   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
14042
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15304
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14043
   -e 's:$: $lt_compiler_flag:'`
15305
   -e 's:$: $lt_compiler_flag:'`
14044
   (eval echo "\"\$as_me:14044: $lt_compile\"" >&5)
15306
   (eval echo "\"\$as_me:15306: $lt_compile\"" >&5)
14045
   (eval "$lt_compile" 2>out/conftest.err)
15307
   (eval "$lt_compile" 2>out/conftest.err)
14046
   ac_status=$?
15308
   ac_status=$?
14047
   cat out/conftest.err >&5
15309
   cat out/conftest.err >&5
14048
   echo "$as_me:14048: \$? = $ac_status" >&5
15310
   echo "$as_me:15310: \$? = $ac_status" >&5
14049
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
15311
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
14050
   then
15312
   then
14051
     # The compiler can only warn and ignore the option if not recognized
15313
     # The compiler can only warn and ignore the option if not recognized
14052
     # So say no if there are warnings
15314
     # So say no if there are warnings
14053
     if test ! -s out/conftest.err; then
15315
     $echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp
15316
     $SED '/^$/d' out/conftest.err >out/conftest.er2
15317
     if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14054
       lt_cv_prog_compiler_c_o_F77=yes
15318
       lt_cv_prog_compiler_c_o_F77=yes
14055
     fi
15319
     fi
14056
   fi
15320
   fi
14057
   chmod u+w .
15321
   chmod u+w .
14058
   $rm conftest* out/*
15322
   $rm conftest*
14059
   rmdir out
15323
   # SGI C++ compiler will create directory out/ii_files/ for
15324
   # template instantiation
15325
   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
15326
   $rm out/* && rmdir out
14060
   cd ..
15327
   cd ..
14061
   rmdir conftest
15328
   rmdir conftest
14062
   $rm conftest*
15329
   $rm conftest*
Lines 14127-14132 Link Here
14127
  # rely on this symbol name, it's probably fine to never include it in
15394
  # rely on this symbol name, it's probably fine to never include it in
14128
  # preloaded symbol tables.
15395
  # preloaded symbol tables.
14129
  extract_expsyms_cmds=
15396
  extract_expsyms_cmds=
15397
  # Just being paranoid about ensuring that cc_basename is set.
15398
  for cc_temp in $compiler""; do
15399
  case $cc_temp in
15400
    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
15401
    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
15402
    \-*) ;;
15403
    *) break;;
15404
  esac
15405
done
15406
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14130
15407
14131
  case $host_os in
15408
  case $host_os in
14132
  cygwin* | mingw* | pw32*)
15409
  cygwin* | mingw* | pw32*)
Lines 14147-14152 Link Here
14147
    # If archive_cmds runs LD, not CC, wlarc should be empty
15424
    # If archive_cmds runs LD, not CC, wlarc should be empty
14148
    wlarc='${wl}'
15425
    wlarc='${wl}'
14149
15426
15427
    # Set some defaults for GNU ld with shared library support. These
15428
    # are reset later if shared libraries are not supported. Putting them
15429
    # here allows them to be overridden if necessary.
15430
    runpath_var=LD_RUN_PATH
15431
    hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
15432
    export_dynamic_flag_spec_F77='${wl}--export-dynamic'
15433
    # ancient GNU ld didn't support --whole-archive et. al.
15434
    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
15435
	whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15436
      else
15437
  	whole_archive_flag_spec_F77=
15438
    fi
15439
    supports_anon_versioning=no
15440
    case `$LD -v 2>/dev/null` in
15441
      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
15442
      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
15443
      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
15444
      *\ 2.11.*) ;; # other 2.11 versions
15445
      *) supports_anon_versioning=yes ;;
15446
    esac
15447
14150
    # See if GNU ld supports shared libraries.
15448
    # See if GNU ld supports shared libraries.
14151
    case $host_os in
15449
    case $host_os in
14152
    aix3* | aix4* | aix5*)
15450
    aix3* | aix4* | aix5*)
Lines 14197-14203 Link Here
14197
      allow_undefined_flag_F77=unsupported
15495
      allow_undefined_flag_F77=unsupported
14198
      always_export_symbols_F77=no
15496
      always_export_symbols_F77=no
14199
      enable_shared_with_static_runtimes_F77=yes
15497
      enable_shared_with_static_runtimes_F77=yes
14200
      export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
15498
      export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
14201
15499
14202
      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
15500
      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
14203
        archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
15501
        archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
Lines 14211-14217 Link Here
14211
	fi~
15509
	fi~
14212
	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
15510
	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
14213
      else
15511
      else
14214
	ld_shlibs=no
15512
	ld_shlibs_F77=no
15513
      fi
15514
      ;;
15515
15516
    linux*)
15517
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15518
	tmp_addflag=
15519
	case $cc_basename,$host_cpu in
15520
	pgcc*)				# Portland Group C compiler
15521
	  whole_archive_flag_spec_F77='${wl}--whole-archive,`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
15522
	  tmp_addflag=' $pic_flag'
15523
	  ;;
15524
	pgf77* | pgf90* )			# Portland Group f77 and f90 compilers
15525
	  whole_archive_flag_spec_F77='${wl}--whole-archive,`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
15526
	  tmp_addflag=' $pic_flag -Mnomain' ;;
15527
	ecc*,ia64* | icc*,ia64*)		# Intel C compiler on ia64
15528
	  tmp_addflag=' -i_dynamic' ;;
15529
	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
15530
	  tmp_addflag=' -i_dynamic -nofor_main' ;;
15531
	ifc* | ifort*)			# Intel Fortran compiler
15532
	  tmp_addflag=' -nofor_main' ;;
15533
	esac
15534
	archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15535
15536
	if test $supports_anon_versioning = yes; then
15537
	  archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
15538
  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15539
  $echo "local: *; };" >> $output_objdir/$libname.ver~
15540
	  $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
15541
	fi
15542
      else
15543
	ld_shlibs_F77=no
14215
      fi
15544
      fi
14216
      ;;
15545
      ;;
14217
15546
Lines 14263-14278 Link Here
14263
      ;;
15592
      ;;
14264
    esac
15593
    esac
14265
15594
14266
    if test "$ld_shlibs_F77" = yes; then
15595
    if test "$ld_shlibs_F77" = no; then
14267
      runpath_var=LD_RUN_PATH
15596
      runpath_var=
14268
      hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
15597
      hardcode_libdir_flag_spec_F77=
14269
      export_dynamic_flag_spec_F77='${wl}--export-dynamic'
15598
      export_dynamic_flag_spec_F77=
14270
      # ancient GNU ld didn't support --whole-archive et. al.
15599
      whole_archive_flag_spec_F77=
14271
      if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
14272
 	whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14273
      else
14274
  	whole_archive_flag_spec_F77=
14275
      fi
14276
    fi
15600
    fi
14277
  else
15601
  else
14278
    # PORTME fill in a description of your system's linker (not GNU ld)
15602
    # PORTME fill in a description of your system's linker (not GNU ld)
Lines 14336-14342 Link Here
14336
      link_all_deplibs_F77=yes
15660
      link_all_deplibs_F77=yes
14337
15661
14338
      if test "$GCC" = yes; then
15662
      if test "$GCC" = yes; then
14339
	case $host_os in aix4.012|aix4.012.*)
15663
	case $host_os in aix4.[012]|aix4.[012].*)
14340
	# We only want to do this on AIX 4.2 and lower, the check
15664
	# We only want to do this on AIX 4.2 and lower, the check
14341
	# below for broken collect2 doesn't work under 4.3+
15665
	# below for broken collect2 doesn't work under 4.3+
14342
	  collect2name=`${CC} -print-prog-name=collect2`
15666
	  collect2name=`${CC} -print-prog-name=collect2`
Lines 14357-14362 Link Here
14357
	  fi
15681
	  fi
14358
	esac
15682
	esac
14359
	shared_flag='-shared'
15683
	shared_flag='-shared'
15684
	if test "$aix_use_runtimelinking" = yes; then
15685
	  shared_flag="$shared_flag "'${wl}-G'
15686
	fi
14360
      else
15687
      else
14361
	# not using gcc
15688
	# not using gcc
14362
	if test "$host_cpu" = ia64; then
15689
	if test "$host_cpu" = ia64; then
Lines 14387-14397 Link Here
14387
_ACEOF
15714
_ACEOF
14388
rm -f conftest.$ac_objext conftest$ac_exeext
15715
rm -f conftest.$ac_objext conftest$ac_exeext
14389
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15716
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14390
  (eval $ac_link) 2>&5
15717
  (eval $ac_link) 2>conftest.er1
14391
  ac_status=$?
15718
  ac_status=$?
15719
  grep -v '^ *+' conftest.er1 >conftest.err
15720
  rm -f conftest.er1
15721
  cat conftest.err >&5
14392
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15722
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14393
  (exit $ac_status); } &&
15723
  (exit $ac_status); } &&
14394
         { ac_try='test -s conftest$ac_exeext'
15724
	 { ac_try='test -z "$ac_f77_werror_flag"
15725
			 || test ! -s conftest.err'
15726
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15727
  (eval $ac_try) 2>&5
15728
  ac_status=$?
15729
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15730
  (exit $ac_status); }; } &&
15731
	 { ac_try='test -s conftest$ac_exeext'
14395
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15732
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14396
  (eval $ac_try) 2>&5
15733
  (eval $ac_try) 2>&5
14397
  ac_status=$?
15734
  ac_status=$?
Lines 14408-14414 Link Here
14408
sed 's/^/| /' conftest.$ac_ext >&5
15745
sed 's/^/| /' conftest.$ac_ext >&5
14409
15746
14410
fi
15747
fi
14411
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15748
rm -f conftest.err conftest.$ac_objext \
15749
      conftest$ac_exeext conftest.$ac_ext
14412
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15750
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14413
15751
14414
       hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
15752
       hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
Lines 14427-14437 Link Here
14427
_ACEOF
15765
_ACEOF
14428
rm -f conftest.$ac_objext conftest$ac_exeext
15766
rm -f conftest.$ac_objext conftest$ac_exeext
14429
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15767
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14430
  (eval $ac_link) 2>&5
15768
  (eval $ac_link) 2>conftest.er1
14431
  ac_status=$?
15769
  ac_status=$?
15770
  grep -v '^ *+' conftest.er1 >conftest.err
15771
  rm -f conftest.er1
15772
  cat conftest.err >&5
14432
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15773
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14433
  (exit $ac_status); } &&
15774
  (exit $ac_status); } &&
14434
         { ac_try='test -s conftest$ac_exeext'
15775
	 { ac_try='test -z "$ac_f77_werror_flag"
15776
			 || test ! -s conftest.err'
15777
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15778
  (eval $ac_try) 2>&5
15779
  ac_status=$?
15780
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15781
  (exit $ac_status); }; } &&
15782
	 { ac_try='test -s conftest$ac_exeext'
14435
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15783
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14436
  (eval $ac_try) 2>&5
15784
  (eval $ac_try) 2>&5
14437
  ac_status=$?
15785
  ac_status=$?
Lines 14448-14454 Link Here
14448
sed 's/^/| /' conftest.$ac_ext >&5
15796
sed 's/^/| /' conftest.$ac_ext >&5
14449
15797
14450
fi
15798
fi
14451
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15799
rm -f conftest.err conftest.$ac_objext \
15800
      conftest$ac_exeext conftest.$ac_ext
14452
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15801
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14453
15802
14454
	 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
15803
	 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
Lines 14475-14481 Link Here
14475
      ld_shlibs_F77=no
15824
      ld_shlibs_F77=no
14476
      ;;
15825
      ;;
14477
15826
14478
    bsdi4*)
15827
    bsdi[45]*)
14479
      export_dynamic_flag_spec_F77=-rdynamic
15828
      export_dynamic_flag_spec_F77=-rdynamic
14480
      ;;
15829
      ;;
14481
15830
Lines 14489-14543 Link Here
14489
      # Tell ltmain to make .lib files, not .a files.
15838
      # Tell ltmain to make .lib files, not .a files.
14490
      libext=lib
15839
      libext=lib
14491
      # Tell ltmain to make .dll files, not .so files.
15840
      # Tell ltmain to make .dll files, not .so files.
14492
      shrext=".dll"
15841
      shrext_cmds=".dll"
14493
      # FIXME: Setting linknames here is a bad hack.
15842
      # FIXME: Setting linknames here is a bad hack.
14494
      archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
15843
      archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
14495
      # The linker will automatically build a .lib file if we build a DLL.
15844
      # The linker will automatically build a .lib file if we build a DLL.
14496
      old_archive_From_new_cmds_F77='true'
15845
      old_archive_From_new_cmds_F77='true'
14497
      # FIXME: Should let the user specify the lib program.
15846
      # FIXME: Should let the user specify the lib program.
14498
      old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
15847
      old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
14499
      fix_srcfile_path='`cygpath -w "$srcfile"`'
15848
      fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
14500
      enable_shared_with_static_runtimes_F77=yes
15849
      enable_shared_with_static_runtimes_F77=yes
14501
      ;;
15850
      ;;
14502
15851
14503
    darwin* | rhapsody*)
15852
    darwin* | rhapsody*)
14504
    if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
14505
      archive_cmds_need_lc_F77=no
14506
      case "$host_os" in
15853
      case "$host_os" in
14507
      rhapsody* | darwin1.[012])
15854
        rhapsody* | darwin1.[012])
14508
	allow_undefined_flag_F77='-undefined suppress'
15855
         allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
14509
	;;
15856
         ;;
14510
      *) # Darwin 1.3 on
15857
       *) # Darwin 1.3 on
14511
	test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag_F77='-flat_namespace -undefined suppress'
15858
         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
14512
	;;
15859
           allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15860
         else
15861
           case ${MACOSX_DEPLOYMENT_TARGET} in
15862
             10.[012])
15863
               allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15864
               ;;
15865
             10.*)
15866
               allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
15867
               ;;
15868
           esac
15869
         fi
15870
         ;;
14513
      esac
15871
      esac
14514
      # FIXME: Relying on posixy $() will cause problems for
15872
      archive_cmds_need_lc_F77=no
14515
      #        cross-compilation, but unfortunately the echo tests do not
14516
      #        yet detect zsh echo's removal of \ escapes.  Also zsh mangles
14517
      #	       `"' quotes if we put them in here... so don't!
14518
    	lt_int_apple_cc_single_mod=no
14519
    	output_verbose_link_cmd='echo'
14520
    	if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
14521
    	  lt_int_apple_cc_single_mod=yes
14522
    	fi
14523
    	if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
14524
    	  archive_cmds_F77='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
14525
    	else
14526
        archive_cmds_F77='$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
14527
      fi
14528
      module_cmds_F77='$CC -bundle ${wl}-bind_at_load $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags'
14529
      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
14530
        if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
14531
          archive_expsym_cmds_F77='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}'
14532
        else
14533
          archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
14534
        fi
14535
          module_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -bundle $allow_undefined_flag  -o $lib $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
14536
      hardcode_direct_F77=no
15873
      hardcode_direct_F77=no
14537
      hardcode_automatic_F77=yes
15874
      hardcode_automatic_F77=yes
14538
      hardcode_shlibpath_var_F77=unsupported
15875
      hardcode_shlibpath_var_F77=unsupported
14539
      whole_archive_flag_spec_F77='-all_load $convenience'
15876
      whole_archive_flag_spec_F77=''
14540
      link_all_deplibs_F77=yes
15877
      link_all_deplibs_F77=yes
15878
    if test "$GCC" = yes ; then
15879
    	output_verbose_link_cmd='echo'
15880
        archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
15881
      module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15882
      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
15883
      archive_expsym_cmds_F77='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}'
15884
      module_expsym_cmds_F77='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}'
15885
    else
15886
      case $cc_basename in
15887
        xlc*)
15888
         output_verbose_link_cmd='echo'
15889
         archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
15890
         module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15891
          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
15892
         archive_expsym_cmds_F77='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}'
15893
          module_expsym_cmds_F77='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}'
15894
          ;;
15895
       *)
15896
         ld_shlibs_F77=no
15897
          ;;
15898
      esac
14541
    fi
15899
    fi
14542
      ;;
15900
      ;;
14543
15901
Lines 14571-14577 Link Here
14571
      ;;
15929
      ;;
14572
15930
14573
    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
15931
    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
14574
    freebsd*)
15932
    freebsd* | kfreebsd*-gnu | dragonfly*)
14575
      archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
15933
      archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
14576
      hardcode_libdir_flag_spec_F77='-R$libdir'
15934
      hardcode_libdir_flag_spec_F77='-R$libdir'
14577
      hardcode_direct_F77=yes
15935
      hardcode_direct_F77=yes
Lines 14682-14687 Link Here
14682
      hardcode_shlibpath_var_F77=no
16040
      hardcode_shlibpath_var_F77=no
14683
      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16041
      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14684
	archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16042
	archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16043
	archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
14685
	hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
16044
	hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14686
	export_dynamic_flag_spec_F77='${wl}-E'
16045
	export_dynamic_flag_spec_F77='${wl}-E'
14687
      else
16046
      else
Lines 14727-14733 Link Here
14727
	allow_undefined_flag_F77=' -expect_unresolved \*'
16086
	allow_undefined_flag_F77=' -expect_unresolved \*'
14728
	archive_cmds_F77='$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'
16087
	archive_cmds_F77='$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'
14729
	archive_expsym_cmds_F77='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
16088
	archive_expsym_cmds_F77='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
14730
	$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'
16089
	$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'
14731
16090
14732
	# Both c and cxx compiler support -rpath directly
16091
	# Both c and cxx compiler support -rpath directly
14733
	hardcode_libdir_flag_spec_F77='-rpath $libdir'
16092
	hardcode_libdir_flag_spec_F77='-rpath $libdir'
Lines 14746-14755 Link Here
14746
    solaris*)
16105
    solaris*)
14747
      no_undefined_flag_F77=' -z text'
16106
      no_undefined_flag_F77=' -z text'
14748
      if test "$GCC" = yes; then
16107
      if test "$GCC" = yes; then
16108
	wlarc='${wl}'
14749
	archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16109
	archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14750
	archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16110
	archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14751
	  $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
16111
	  $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
14752
      else
16112
      else
16113
	wlarc=''
14753
	archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16114
	archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
14754
	archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16115
	archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14755
  	$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
16116
  	$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
Lines 14758-14765 Link Here
14758
      hardcode_shlibpath_var_F77=no
16119
      hardcode_shlibpath_var_F77=no
14759
      case $host_os in
16120
      case $host_os in
14760
      solaris2.[0-5] | solaris2.[0-5].*) ;;
16121
      solaris2.[0-5] | solaris2.[0-5].*) ;;
14761
      *) # Supported since Solaris 2.6 (maybe 2.5.1?)
16122
      *)
14762
	whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
16123
 	# The compiler driver will combine linker options so we
16124
 	# cannot just pass the convience library names through
16125
 	# without $wl, iff we do not link with $LD.
16126
 	# Luckily, gcc supports the same syntax we need for Sun Studio.
16127
 	# Supported since Solaris 2.6 (maybe 2.5.1?)
16128
 	case $wlarc in
16129
 	'')
16130
 	  whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
16131
 	*)
16132
 	  whole_archive_flag_spec_F77='${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' ;;
16133
 	esac ;;
14763
      esac
16134
      esac
14764
      link_all_deplibs_F77=yes
16135
      link_all_deplibs_F77=yes
14765
      ;;
16136
      ;;
Lines 14931-15008 Link Here
14931
  ;;
16302
  ;;
14932
esac
16303
esac
14933
16304
14934
echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
14935
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
14936
hardcode_action_F77=
14937
if test -n "$hardcode_libdir_flag_spec_F77" || \
14938
   test -n "$runpath_var F77" || \
14939
   test "X$hardcode_automatic_F77"="Xyes" ; then
14940
14941
  # We can hardcode non-existant directories.
14942
  if test "$hardcode_direct_F77" != no &&
14943
     # If the only mechanism to avoid hardcoding is shlibpath_var, we
14944
     # have to relink, otherwise we might link with an installed library
14945
     # when we should be linking with a yet-to-be-installed one
14946
     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
14947
     test "$hardcode_minus_L_F77" != no; then
14948
    # Linking always hardcodes the temporary library directory.
14949
    hardcode_action_F77=relink
14950
  else
14951
    # We can link without hardcoding, and we can hardcode nonexisting dirs.
14952
    hardcode_action_F77=immediate
14953
  fi
14954
else
14955
  # We cannot hardcode anything, or else we can only hardcode existing
14956
  # directories.
14957
  hardcode_action_F77=unsupported
14958
fi
14959
echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
14960
echo "${ECHO_T}$hardcode_action_F77" >&6
14961
14962
if test "$hardcode_action_F77" = relink; then
14963
  # Fast installation is not supported
14964
  enable_fast_install=no
14965
elif test "$shlibpath_overrides_runpath" = yes ||
14966
     test "$enable_shared" = no; then
14967
  # Fast installation is not necessary
14968
  enable_fast_install=needless
14969
fi
14970
14971
striplib=
14972
old_striplib=
14973
echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
14974
echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
14975
if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
14976
  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
14977
  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
14978
  echo "$as_me:$LINENO: result: yes" >&5
14979
echo "${ECHO_T}yes" >&6
14980
else
14981
# FIXME - insert some real tests, host_os isn't really good enough
14982
  case $host_os in
14983
   darwin*)
14984
       if test -n "$STRIP" ; then
14985
         striplib="$STRIP -x"
14986
         echo "$as_me:$LINENO: result: yes" >&5
14987
echo "${ECHO_T}yes" >&6
14988
       else
14989
  echo "$as_me:$LINENO: result: no" >&5
14990
echo "${ECHO_T}no" >&6
14991
fi
14992
       ;;
14993
   *)
14994
  echo "$as_me:$LINENO: result: no" >&5
14995
echo "${ECHO_T}no" >&6
14996
    ;;
14997
  esac
14998
fi
14999
15000
echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
16305
echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
15001
echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
16306
echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
15002
library_names_spec=
16307
library_names_spec=
15003
libname_spec='lib$name'
16308
libname_spec='lib$name'
15004
soname_spec=
16309
soname_spec=
15005
shrext=".so"
16310
shrext_cmds=".so"
15006
postinstall_cmds=
16311
postinstall_cmds=
15007
postuninstall_cmds=
16312
postuninstall_cmds=
15008
finish_cmds=
16313
finish_cmds=
Lines 15090-15096 Link Here
15090
amigaos*)
16395
amigaos*)
15091
  library_names_spec='$libname.ixlibrary $libname.a'
16396
  library_names_spec='$libname.ixlibrary $libname.a'
15092
  # Create ${libname}_ixlibrary.a entries in /sys/libs.
16397
  # Create ${libname}_ixlibrary.a entries in /sys/libs.
15093
  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'
16398
  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'
15094
  ;;
16399
  ;;
15095
16400
15096
beos*)
16401
beos*)
Lines 15099-15105 Link Here
15099
  shlibpath_var=LIBRARY_PATH
16404
  shlibpath_var=LIBRARY_PATH
15100
  ;;
16405
  ;;
15101
16406
15102
bsdi4*)
16407
bsdi[45]*)
15103
  version_type=linux
16408
  version_type=linux
15104
  need_version=no
16409
  need_version=no
15105
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16410
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
Lines 15115-15121 Link Here
15115
16420
15116
cygwin* | mingw* | pw32*)
16421
cygwin* | mingw* | pw32*)
15117
  version_type=windows
16422
  version_type=windows
15118
  shrext=".dll"
16423
  shrext_cmds=".dll"
15119
  need_version=no
16424
  need_version=no
15120
  need_lib_prefix=no
16425
  need_lib_prefix=no
15121
16426
Lines 15137-15143 Link Here
15137
    cygwin*)
16442
    cygwin*)
15138
      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16443
      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15139
      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16444
      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15140
      sys_lib_search_path_spec="/lib /lib/w32api /usr/lib /usr/local/lib"
16445
      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
15141
      ;;
16446
      ;;
15142
    mingw*)
16447
    mingw*)
15143
      # MinGW DLLs use traditional 'lib' prefix
16448
      # MinGW DLLs use traditional 'lib' prefix
Lines 15157-15167 Link Here
15157
      ;;
16462
      ;;
15158
    pw32*)
16463
    pw32*)
15159
      # pw32 DLLs use 'pw' prefix rather than 'lib'
16464
      # pw32 DLLs use 'pw' prefix rather than 'lib'
15160
      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
16465
      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15161
      ;;
16466
      ;;
15162
    esac
16467
    esac
15163
    ;;
16468
    ;;
15164
16469
16470
  linux*)
16471
    if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
16472
      archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16473
      supports_anon_versioning=no
16474
      case `$LD -v 2>/dev/null` in
16475
        *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
16476
        *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
16477
        *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
16478
        *\ 2.11.*) ;; # other 2.11 versions
16479
        *) supports_anon_versioning=yes ;;
16480
      esac
16481
      if test $supports_anon_versioning = yes; then
16482
        archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
16483
cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16484
$echo "local: *; };" >> $output_objdir/$libname.ver~
16485
        $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
16486
      else
16487
        $archive_expsym_cmds="$archive_cmds"
16488
      fi
16489
    else
16490
      ld_shlibs=no
16491
    fi
16492
    ;;
16493
15165
  *)
16494
  *)
15166
    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
16495
    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15167
    ;;
16496
    ;;
Lines 15176-15192 Link Here
15176
  version_type=darwin
16505
  version_type=darwin
15177
  need_lib_prefix=no
16506
  need_lib_prefix=no
15178
  need_version=no
16507
  need_version=no
15179
  # FIXME: Relying on posixy $() will cause problems for
15180
  #        cross-compilation, but unfortunately the echo tests do not
15181
  #        yet detect zsh echo's removal of \ escapes.
15182
  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16508
  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15183
  soname_spec='${libname}${release}${major}$shared_ext'
16509
  soname_spec='${libname}${release}${major}$shared_ext'
15184
  shlibpath_overrides_runpath=yes
16510
  shlibpath_overrides_runpath=yes
15185
  shlibpath_var=DYLD_LIBRARY_PATH
16511
  shlibpath_var=DYLD_LIBRARY_PATH
15186
  shrext='$(test .$module = .yes && echo .so || echo .dylib)'
16512
  shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
15187
  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
16513
  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
15188
  if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
16514
  if test "$GCC" = yes; then
15189
  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"`
16515
    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"`
16516
  else
16517
    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
15190
  fi
16518
  fi
15191
  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16519
  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15192
  ;;
16520
  ;;
Lines 15204-15210 Link Here
15204
  dynamic_linker=no
16532
  dynamic_linker=no
15205
  ;;
16533
  ;;
15206
16534
15207
freebsd*)
16535
kfreebsd*-gnu)
16536
  version_type=linux
16537
  need_lib_prefix=no
16538
  need_version=no
16539
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16540
  soname_spec='${libname}${release}${shared_ext}$major'
16541
  shlibpath_var=LD_LIBRARY_PATH
16542
  shlibpath_overrides_runpath=no
16543
  hardcode_into_libs=yes
16544
  dynamic_linker='GNU ld.so'
16545
  ;;
16546
16547
freebsd* | dragonfly*)
16548
  # DragonFly does not have aout.  When/if they implement a new
16549
  # versioning mechanism, adjust this.
15208
  objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
16550
  objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
15209
  version_type=freebsd-$objformat
16551
  version_type=freebsd-$objformat
15210
  case $version_type in
16552
  case $version_type in
Lines 15223-15229 Link Here
15223
  freebsd2*)
16565
  freebsd2*)
15224
    shlibpath_overrides_runpath=yes
16566
    shlibpath_overrides_runpath=yes
15225
    ;;
16567
    ;;
15226
  freebsd3.01* | freebsdelf3.01*)
16568
  freebsd3.[01]* | freebsdelf3.[01]*)
15227
    shlibpath_overrides_runpath=yes
16569
    shlibpath_overrides_runpath=yes
15228
    hardcode_into_libs=yes
16570
    hardcode_into_libs=yes
15229
    ;;
16571
    ;;
Lines 15252-15258 Link Here
15252
  need_version=no
16594
  need_version=no
15253
  case "$host_cpu" in
16595
  case "$host_cpu" in
15254
  ia64*)
16596
  ia64*)
15255
    shrext='.so'
16597
    shrext_cmds='.so'
15256
    hardcode_into_libs=yes
16598
    hardcode_into_libs=yes
15257
    dynamic_linker="$host_os dld.so"
16599
    dynamic_linker="$host_os dld.so"
15258
    shlibpath_var=LD_LIBRARY_PATH
16600
    shlibpath_var=LD_LIBRARY_PATH
Lines 15267-15273 Link Here
15267
    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16609
    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15268
    ;;
16610
    ;;
15269
   hppa*64*)
16611
   hppa*64*)
15270
     shrext='.sl'
16612
     shrext_cmds='.sl'
15271
     hardcode_into_libs=yes
16613
     hardcode_into_libs=yes
15272
     dynamic_linker="$host_os dld.sl"
16614
     dynamic_linker="$host_os dld.sl"
15273
     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16615
     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
Lines 15278-15284 Link Here
15278
     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16620
     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15279
     ;;
16621
     ;;
15280
   *)
16622
   *)
15281
    shrext='.sl'
16623
    shrext_cmds='.sl'
15282
    dynamic_linker="$host_os dld.sl"
16624
    dynamic_linker="$host_os dld.sl"
15283
    shlibpath_var=SHLIB_PATH
16625
    shlibpath_var=SHLIB_PATH
15284
    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16626
    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
Lines 15347-15356 Link Here
15347
  # before this can be enabled.
16689
  # before this can be enabled.
15348
  hardcode_into_libs=yes
16690
  hardcode_into_libs=yes
15349
16691
15350
  case $LD in # libtool.m4 will add one of these switches to LD
16692
  # Append ld.so.conf contents to the search path
15351
  *"-m elf_x86_64"*|*"-m elf64ppc"*|*"-m elf64_s390"*|*"-m elf64_sparc"*)
16693
  if test -f /etc/ld.so.conf; then
15352
    sys_lib_dlsearch_path_spec="/lib64 /usr/lib64"
16694
    lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:,	]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
15353
    sys_lib_search_path_spec="/lib64 /usr/lib64 /usr/local/lib64"
16695
    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
16696
  fi
16697
16698
  case $host_cpu:$lt_cv_cc_64bit_output in
16699
  powerpc64:yes | s390x:yes | sparc64:yes | x86_64:yes)
16700
    sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /usr/X11R6/lib64"
16701
    sys_lib_search_path_spec="/lib64 /usr/lib64 /usr/local/lib64 /usr/X11R6/lib64"
15354
    ;;
16702
    ;;
15355
  esac
16703
  esac
15356
16704
Lines 15361-15366 Link Here
15361
  # people can always --disable-shared, the test was removed, and we
16709
  # people can always --disable-shared, the test was removed, and we
15362
  # assume the GNU/Linux dynamic linker is in use.
16710
  # assume the GNU/Linux dynamic linker is in use.
15363
  dynamic_linker='GNU/Linux ld.so'
16711
  dynamic_linker='GNU/Linux ld.so'
16712
16713
  # Find out which ABI we are using (multilib Linux x86_64 hack).
16714
  libsuff=
16715
  case "$host_cpu" in
16716
  x86_64*)
16717
    echo '#line 16717 "configure"' > conftest.$ac_ext
16718
    if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16719
  (eval $ac_compile) 2>&5
16720
  ac_status=$?
16721
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16722
  (exit $ac_status); }; then
16723
      case `/usr/bin/file conftest.$ac_objext` in
16724
      *64-bit*)
16725
        libsuff=64
16726
        ;;
16727
      esac
16728
    fi
16729
    rm -rf conftest*
16730
    ;;
16731
  *)
16732
    ;;
16733
  esac
16734
  sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff}"
16735
  sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
16736
  ;;
16737
16738
knetbsd*-gnu)
16739
  version_type=linux
16740
  need_lib_prefix=no
16741
  need_version=no
16742
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16743
  soname_spec='${libname}${release}${shared_ext}$major'
16744
  shlibpath_var=LD_LIBRARY_PATH
16745
  shlibpath_overrides_runpath=no
16746
  hardcode_into_libs=yes
16747
  dynamic_linker='GNU ld.so'
15364
  ;;
16748
  ;;
15365
16749
15366
netbsd*)
16750
netbsd*)
Lines 15372-15378 Link Here
15372
    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16756
    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15373
    dynamic_linker='NetBSD (a.out) ld.so'
16757
    dynamic_linker='NetBSD (a.out) ld.so'
15374
  else
16758
  else
15375
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
16759
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15376
    soname_spec='${libname}${release}${shared_ext}$major'
16760
    soname_spec='${libname}${release}${shared_ext}$major'
15377
    dynamic_linker='NetBSD ld.elf_so'
16761
    dynamic_linker='NetBSD ld.elf_so'
15378
  fi
16762
  fi
Lines 15388-15394 Link Here
15388
  shlibpath_overrides_runpath=yes
16772
  shlibpath_overrides_runpath=yes
15389
  ;;
16773
  ;;
15390
16774
15391
nto-qnx)
16775
nto-qnx*)
15392
  version_type=linux
16776
  version_type=linux
15393
  need_lib_prefix=no
16777
  need_lib_prefix=no
15394
  need_version=no
16778
  need_version=no
Lines 15401-15407 Link Here
15401
openbsd*)
16785
openbsd*)
15402
  version_type=sunos
16786
  version_type=sunos
15403
  need_lib_prefix=no
16787
  need_lib_prefix=no
15404
  need_version=no
16788
  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
16789
  case $host_os in
16790
    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
16791
    *)                         need_version=no  ;;
16792
  esac
15405
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16793
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15406
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16794
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15407
  shlibpath_var=LD_LIBRARY_PATH
16795
  shlibpath_var=LD_LIBRARY_PATH
Lines 15421-15427 Link Here
15421
16809
15422
os2*)
16810
os2*)
15423
  libname_spec='$name'
16811
  libname_spec='$name'
15424
  shrext=".dll"
16812
  shrext_cmds=".dll"
15425
  need_lib_prefix=no
16813
  need_lib_prefix=no
15426
  library_names_spec='$libname${shared_ext} $libname.a'
16814
  library_names_spec='$libname${shared_ext} $libname.a'
15427
  dynamic_linker='OS/2 ld.exe'
16815
  dynamic_linker='OS/2 ld.exe'
Lines 15504-15523 Link Here
15504
  fi
16892
  fi
15505
  ;;
16893
  ;;
15506
16894
15507
uts4*)
16895
uts4*)
15508
  version_type=linux
16896
  version_type=linux
15509
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16897
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15510
  soname_spec='${libname}${release}${shared_ext}$major'
16898
  soname_spec='${libname}${release}${shared_ext}$major'
15511
  shlibpath_var=LD_LIBRARY_PATH
16899
  shlibpath_var=LD_LIBRARY_PATH
15512
  ;;
16900
  ;;
16901
16902
*)
16903
  dynamic_linker=no
16904
  ;;
16905
esac
16906
echo "$as_me:$LINENO: result: $dynamic_linker" >&5
16907
echo "${ECHO_T}$dynamic_linker" >&6
16908
test "$dynamic_linker" = no && can_build_shared=no
16909
16910
echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
16911
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
16912
hardcode_action_F77=
16913
if test -n "$hardcode_libdir_flag_spec_F77" || \
16914
   test -n "$runpath_var_F77" || \
16915
   test "X$hardcode_automatic_F77" = "Xyes" ; then
16916
16917
  # We can hardcode non-existant directories.
16918
  if test "$hardcode_direct_F77" != no &&
16919
     # If the only mechanism to avoid hardcoding is shlibpath_var, we
16920
     # have to relink, otherwise we might link with an installed library
16921
     # when we should be linking with a yet-to-be-installed one
16922
     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
16923
     test "$hardcode_minus_L_F77" != no; then
16924
    # Linking always hardcodes the temporary library directory.
16925
    hardcode_action_F77=relink
16926
  else
16927
    # We can link without hardcoding, and we can hardcode nonexisting dirs.
16928
    hardcode_action_F77=immediate
16929
  fi
16930
else
16931
  # We cannot hardcode anything, or else we can only hardcode existing
16932
  # directories.
16933
  hardcode_action_F77=unsupported
16934
fi
16935
echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
16936
echo "${ECHO_T}$hardcode_action_F77" >&6
16937
16938
if test "$hardcode_action_F77" = relink; then
16939
  # Fast installation is not supported
16940
  enable_fast_install=no
16941
elif test "$shlibpath_overrides_runpath" = yes ||
16942
     test "$enable_shared" = no; then
16943
  # Fast installation is not necessary
16944
  enable_fast_install=needless
16945
fi
16946
16947
striplib=
16948
old_striplib=
16949
echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
16950
echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
16951
if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
16952
  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
16953
  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
16954
  echo "$as_me:$LINENO: result: yes" >&5
16955
echo "${ECHO_T}yes" >&6
16956
else
16957
# FIXME - insert some real tests, host_os isn't really good enough
16958
  case $host_os in
16959
   darwin*)
16960
       if test -n "$STRIP" ; then
16961
         striplib="$STRIP -x"
16962
         echo "$as_me:$LINENO: result: yes" >&5
16963
echo "${ECHO_T}yes" >&6
16964
       else
16965
  echo "$as_me:$LINENO: result: no" >&5
16966
echo "${ECHO_T}no" >&6
16967
fi
16968
       ;;
16969
   *)
16970
  echo "$as_me:$LINENO: result: no" >&5
16971
echo "${ECHO_T}no" >&6
16972
    ;;
16973
  esac
16974
fi
15513
16975
15514
*)
15515
  dynamic_linker=no
15516
  ;;
15517
esac
15518
echo "$as_me:$LINENO: result: $dynamic_linker" >&5
15519
echo "${ECHO_T}$dynamic_linker" >&6
15520
test "$dynamic_linker" = no && can_build_shared=no
15521
16976
15522
16977
15523
# The else clause should only fire when bootstrapping the
16978
# The else clause should only fire when bootstrapping the
Lines 15533-15539 Link Here
15533
  # Now quote all the things that may contain metacharacters while being
16988
  # Now quote all the things that may contain metacharacters while being
15534
  # careful not to overquote the AC_SUBSTed values.  We take copies of the
16989
  # careful not to overquote the AC_SUBSTed values.  We take copies of the
15535
  # variables and quote the copies for generation of the libtool script.
16990
  # variables and quote the copies for generation of the libtool script.
15536
  for var in echo old_CC old_CFLAGS AR AR_FLAGS AS EGREP RANLIB LN_S LTCC NM SED SHELL \
16991
  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
16992
    SED SHELL STRIP \
15537
    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
16993
    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
15538
    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
16994
    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
15539
    deplibs_check_method reload_flag reload_cmds need_locks \
16995
    deplibs_check_method reload_flag reload_cmds need_locks \
Lines 15633-15638 Link Here
15633
# The host system.
17089
# The host system.
15634
host_alias=$host_alias
17090
host_alias=$host_alias
15635
host=$host
17091
host=$host
17092
host_os=$host_os
17093
17094
# The build system.
17095
build_alias=$build_alias
17096
build=$build
17097
build_os=$build_os
15636
17098
15637
# An echo program that does not interpret backslashes.
17099
# An echo program that does not interpret backslashes.
15638
echo=$lt_echo
17100
echo=$lt_echo
Lines 15663-15669 Link Here
15663
NM=$lt_NM
17125
NM=$lt_NM
15664
17126
15665
# A symbol stripping program
17127
# A symbol stripping program
15666
STRIP=$STRIP
17128
STRIP=$lt_STRIP
15667
17129
15668
# Used to examine libraries when file_magic_cmd begins "file"
17130
# Used to examine libraries when file_magic_cmd begins "file"
15669
MAGIC_CMD=$MAGIC_CMD
17131
MAGIC_CMD=$MAGIC_CMD
Lines 15675-15681 Link Here
15675
OBJDUMP="$OBJDUMP"
17137
OBJDUMP="$OBJDUMP"
15676
17138
15677
# Used on cygwin: assembler.
17139
# Used on cygwin: assembler.
15678
AS=$lt_AS
17140
AS="$AS"
15679
17141
15680
# The name of the directory that contains temporary libtool files.
17142
# The name of the directory that contains temporary libtool files.
15681
objdir=$objdir
17143
objdir=$objdir
Lines 15694-15700 Link Here
15694
libext="$libext"
17156
libext="$libext"
15695
17157
15696
# Shared library suffix (normally ".so").
17158
# Shared library suffix (normally ".so").
15697
shrext='$shrext'
17159
shrext_cmds='$shrext_cmds'
15698
17160
15699
# Executable file suffix (normally "").
17161
# Executable file suffix (normally "").
15700
exeext="$exeext"
17162
exeext="$exeext"
Lines 15709-15715 Link Here
15709
# Does compiler simultaneously support -c and -o options?
17171
# Does compiler simultaneously support -c and -o options?
15710
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
17172
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
15711
17173
15712
# Must we lock files when doing compilation ?
17174
# Must we lock files when doing compilation?
15713
need_locks=$lt_need_locks
17175
need_locks=$lt_need_locks
15714
17176
15715
# Do we need the lib prefix for modules?
17177
# Do we need the lib prefix for modules?
Lines 15911-15917 Link Here
15911
  # If there is no Makefile yet, we rely on a make rule to execute
17373
  # If there is no Makefile yet, we rely on a make rule to execute
15912
  # `config.status --recheck' to rerun these tests and create the
17374
  # `config.status --recheck' to rerun these tests and create the
15913
  # libtool script then.
17375
  # libtool script then.
15914
  test -f Makefile && make "$ltmain"
17376
  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
17377
  if test -f "$ltmain_in"; then
17378
    test -f Makefile && make "$ltmain"
17379
  fi
15915
fi
17380
fi
15916
17381
15917
17382
Lines 15944-15950 Link Here
15944
lt_simple_compile_test_code="class foo {}\n"
17409
lt_simple_compile_test_code="class foo {}\n"
15945
17410
15946
# Code to be used in simple link tests
17411
# Code to be used in simple link tests
15947
lt_simple_link_test_code='public class conftest { public static void main(String argv) {}; }\n'
17412
lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
15948
17413
15949
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
17414
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
15950
17415
Lines 15955-15976 Link Here
15955
compiler=$CC
17420
compiler=$CC
15956
17421
15957
17422
17423
# save warnings/boilerplate of simple test code
17424
ac_outfile=conftest.$ac_objext
17425
printf "$lt_simple_compile_test_code" >conftest.$ac_ext
17426
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
17427
_lt_compiler_boilerplate=`cat conftest.err`
17428
$rm conftest*
17429
17430
ac_outfile=conftest.$ac_objext
17431
printf "$lt_simple_link_test_code" >conftest.$ac_ext
17432
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
17433
_lt_linker_boilerplate=`cat conftest.err`
17434
$rm conftest*
17435
17436
15958
# Allow CC to be a program name with arguments.
17437
# Allow CC to be a program name with arguments.
15959
lt_save_CC="$CC"
17438
lt_save_CC="$CC"
15960
CC=${GCJ-"gcj"}
17439
CC=${GCJ-"gcj"}
15961
compiler=$CC
17440
compiler=$CC
15962
compiler_GCJ=$CC
17441
compiler_GCJ=$CC
17442
for cc_temp in $compiler""; do
17443
  case $cc_temp in
17444
    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
17445
    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
17446
    \-*) ;;
17447
    *) break;;
17448
  esac
17449
done
17450
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
17451
15963
17452
15964
# GCJ did not exist at the time GCC didn't implicitly link libc in.
17453
# GCJ did not exist at the time GCC didn't implicitly link libc in.
15965
archive_cmds_need_lc_GCJ=no
17454
archive_cmds_need_lc_GCJ=no
15966
17455
17456
old_archive_cmds_GCJ=$old_archive_cmds
17457
15967
17458
15968
lt_prog_compiler_no_builtin_flag_GCJ=
17459
lt_prog_compiler_no_builtin_flag_GCJ=
15969
17460
15970
if test "$GCC" = yes; then
17461
if test "$GCC" = yes; then
15971
  lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
17462
  lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
15972
17463
15973
  echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
17464
17465
echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
15974
echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
17466
echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
15975
if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
17467
if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
15976
  echo $ECHO_N "(cached) $ECHO_C" >&6
17468
  echo $ECHO_N "(cached) $ECHO_C" >&6
Lines 15988-16002 Link Here
15988
   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
17480
   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
15989
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17481
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15990
   -e 's:$: $lt_compiler_flag:'`
17482
   -e 's:$: $lt_compiler_flag:'`
15991
   (eval echo "\"\$as_me:15991: $lt_compile\"" >&5)
17483
   (eval echo "\"\$as_me:17483: $lt_compile\"" >&5)
15992
   (eval "$lt_compile" 2>conftest.err)
17484
   (eval "$lt_compile" 2>conftest.err)
15993
   ac_status=$?
17485
   ac_status=$?
15994
   cat conftest.err >&5
17486
   cat conftest.err >&5
15995
   echo "$as_me:15995: \$? = $ac_status" >&5
17487
   echo "$as_me:17487: \$? = $ac_status" >&5
15996
   if (exit $ac_status) && test -s "$ac_outfile"; then
17488
   if (exit $ac_status) && test -s "$ac_outfile"; then
15997
     # The compiler can only warn and ignore the option if not recognized
17489
     # The compiler can only warn and ignore the option if not recognized
15998
     # So say no if there are warnings
17490
     # So say no if there are warnings other than the usual output.
15999
     if test ! -s conftest.err; then
17491
     $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
17492
     $SED '/^$/d' conftest.err >conftest.er2
17493
     if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
16000
       lt_cv_prog_compiler_rtti_exceptions=yes
17494
       lt_cv_prog_compiler_rtti_exceptions=yes
16001
     fi
17495
     fi
16002
   fi
17496
   fi
Lines 16099-16104 Link Here
16099
	lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
17593
	lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
16100
      fi
17594
      fi
16101
      ;;
17595
      ;;
17596
      darwin*)
17597
        # PIC is the default on this platform
17598
        # Common symbols not allowed in MH_DYLIB files
17599
       case $cc_basename in
17600
         xlc*)
17601
         lt_prog_compiler_pic_GCJ='-qnocommon'
17602
         lt_prog_compiler_wl_GCJ='-Wl,'
17603
         ;;
17604
       esac
17605
       ;;
16102
17606
16103
    mingw* | pw32* | os2*)
17607
    mingw* | pw32* | os2*)
16104
      # This hack is so that the source file can tell whether it is being
17608
      # This hack is so that the source file can tell whether it is being
Lines 16134-16146 Link Here
16134
      ;;
17638
      ;;
16135
17639
16136
    linux*)
17640
    linux*)
16137
      case $CC in
17641
      case $cc_basename in
16138
      icc|ecc)
17642
      icc* | ecc*)
16139
	lt_prog_compiler_wl_GCJ='-Wl,'
17643
	lt_prog_compiler_wl_GCJ='-Wl,'
16140
	lt_prog_compiler_pic_GCJ='-KPIC'
17644
	lt_prog_compiler_pic_GCJ='-KPIC'
16141
	lt_prog_compiler_static_GCJ='-static'
17645
	lt_prog_compiler_static_GCJ='-static'
16142
        ;;
17646
        ;;
16143
      ccc)
17647
      pgcc* | pgf77* | pgf90*)
17648
        # Portland Group compilers (*not* the Pentium gcc compiler,
17649
	# which looks to be a dead project)
17650
	lt_prog_compiler_wl_GCJ='-Wl,'
17651
	lt_prog_compiler_pic_GCJ='-fpic'
17652
	lt_prog_compiler_static_GCJ='-static'
17653
        ;;
17654
      ccc*)
16144
        lt_prog_compiler_wl_GCJ='-Wl,'
17655
        lt_prog_compiler_wl_GCJ='-Wl,'
16145
        # All Alpha code is PIC.
17656
        # All Alpha code is PIC.
16146
        lt_prog_compiler_static_GCJ='-non_shared'
17657
        lt_prog_compiler_static_GCJ='-non_shared'
Lines 16160-16168 Link Here
16160
      ;;
17671
      ;;
16161
17672
16162
    solaris*)
17673
    solaris*)
16163
      lt_prog_compiler_wl_GCJ='-Wl,'
16164
      lt_prog_compiler_pic_GCJ='-KPIC'
17674
      lt_prog_compiler_pic_GCJ='-KPIC'
16165
      lt_prog_compiler_static_GCJ='-Bstatic'
17675
      lt_prog_compiler_static_GCJ='-Bstatic'
17676
      case $cc_basename in
17677
      f77* | f90* | f95*)
17678
	lt_prog_compiler_wl_GCJ='-Qoption ld ';;
17679
      *)
17680
	lt_prog_compiler_wl_GCJ='-Wl,';;
17681
      esac
16166
      ;;
17682
      ;;
16167
17683
16168
    sunos4*)
17684
    sunos4*)
Lines 16184-16189 Link Here
16184
      fi
17700
      fi
16185
      ;;
17701
      ;;
16186
17702
17703
    unicos*)
17704
      lt_prog_compiler_wl_GCJ='-Wl,'
17705
      lt_prog_compiler_can_build_shared_GCJ=no
17706
      ;;
17707
16187
    uts4*)
17708
    uts4*)
16188
      lt_prog_compiler_pic_GCJ='-pic'
17709
      lt_prog_compiler_pic_GCJ='-pic'
16189
      lt_prog_compiler_static_GCJ='-Bstatic'
17710
      lt_prog_compiler_static_GCJ='-Bstatic'
Lines 16202-16208 Link Here
16202
# Check to make sure the PIC flag actually works.
17723
# Check to make sure the PIC flag actually works.
16203
#
17724
#
16204
if test -n "$lt_prog_compiler_pic_GCJ"; then
17725
if test -n "$lt_prog_compiler_pic_GCJ"; then
16205
  echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
17726
17727
echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
16206
echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
17728
echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
16207
if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
17729
if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
16208
  echo $ECHO_N "(cached) $ECHO_C" >&6
17730
  echo $ECHO_N "(cached) $ECHO_C" >&6
Lines 16220-16234 Link Here
16220
   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
17742
   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
16221
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17743
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16222
   -e 's:$: $lt_compiler_flag:'`
17744
   -e 's:$: $lt_compiler_flag:'`
16223
   (eval echo "\"\$as_me:16223: $lt_compile\"" >&5)
17745
   (eval echo "\"\$as_me:17745: $lt_compile\"" >&5)
16224
   (eval "$lt_compile" 2>conftest.err)
17746
   (eval "$lt_compile" 2>conftest.err)
16225
   ac_status=$?
17747
   ac_status=$?
16226
   cat conftest.err >&5
17748
   cat conftest.err >&5
16227
   echo "$as_me:16227: \$? = $ac_status" >&5
17749
   echo "$as_me:17749: \$? = $ac_status" >&5
16228
   if (exit $ac_status) && test -s "$ac_outfile"; then
17750
   if (exit $ac_status) && test -s "$ac_outfile"; then
16229
     # The compiler can only warn and ignore the option if not recognized
17751
     # The compiler can only warn and ignore the option if not recognized
16230
     # So say no if there are warnings
17752
     # So say no if there are warnings other than the usual output.
16231
     if test ! -s conftest.err; then
17753
     $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
17754
     $SED '/^$/d' conftest.err >conftest.er2
17755
     if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
16232
       lt_prog_compiler_pic_works_GCJ=yes
17756
       lt_prog_compiler_pic_works_GCJ=yes
16233
     fi
17757
     fi
16234
   fi
17758
   fi
Lines 16271-16283 Link Here
16271
   mkdir out
17795
   mkdir out
16272
   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
17796
   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16273
17797
16274
   # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
16275
   # that will create temporary files in the current directory regardless of
16276
   # the output directory.  Thus, making CWD read-only will cause this test
16277
   # to fail, enabling locking or at least warning the user not to do parallel
16278
   # builds.
16279
   chmod -w .
16280
16281
   lt_compiler_flag="-o out/conftest2.$ac_objext"
17798
   lt_compiler_flag="-o out/conftest2.$ac_objext"
16282
   # Insert the option either (1) after the last *FLAGS variable, or
17799
   # Insert the option either (1) after the last *FLAGS variable, or
16283
   # (2) before a word containing "conftest.", or (3) at the end.
17800
   # (2) before a word containing "conftest.", or (3) at the end.
Lines 16287-16308 Link Here
16287
   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
17804
   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
16288
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17805
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16289
   -e 's:$: $lt_compiler_flag:'`
17806
   -e 's:$: $lt_compiler_flag:'`
16290
   (eval echo "\"\$as_me:16290: $lt_compile\"" >&5)
17807
   (eval echo "\"\$as_me:17807: $lt_compile\"" >&5)
16291
   (eval "$lt_compile" 2>out/conftest.err)
17808
   (eval "$lt_compile" 2>out/conftest.err)
16292
   ac_status=$?
17809
   ac_status=$?
16293
   cat out/conftest.err >&5
17810
   cat out/conftest.err >&5
16294
   echo "$as_me:16294: \$? = $ac_status" >&5
17811
   echo "$as_me:17811: \$? = $ac_status" >&5
16295
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
17812
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
16296
   then
17813
   then
16297
     # The compiler can only warn and ignore the option if not recognized
17814
     # The compiler can only warn and ignore the option if not recognized
16298
     # So say no if there are warnings
17815
     # So say no if there are warnings
16299
     if test ! -s out/conftest.err; then
17816
     $echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp
17817
     $SED '/^$/d' out/conftest.err >out/conftest.er2
17818
     if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 >/dev/null; then
16300
       lt_cv_prog_compiler_c_o_GCJ=yes
17819
       lt_cv_prog_compiler_c_o_GCJ=yes
16301
     fi
17820
     fi
16302
   fi
17821
   fi
16303
   chmod u+w .
17822
   chmod u+w .
16304
   $rm conftest* out/*
17823
   $rm conftest*
16305
   rmdir out
17824
   # SGI C++ compiler will create directory out/ii_files/ for
17825
   # template instantiation
17826
   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
17827
   $rm out/* && rmdir out
16306
   cd ..
17828
   cd ..
16307
   rmdir conftest
17829
   rmdir conftest
16308
   $rm conftest*
17830
   $rm conftest*
Lines 16373-16378 Link Here
16373
  # rely on this symbol name, it's probably fine to never include it in
17895
  # rely on this symbol name, it's probably fine to never include it in
16374
  # preloaded symbol tables.
17896
  # preloaded symbol tables.
16375
  extract_expsyms_cmds=
17897
  extract_expsyms_cmds=
17898
  # Just being paranoid about ensuring that cc_basename is set.
17899
  for cc_temp in $compiler""; do
17900
  case $cc_temp in
17901
    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
17902
    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
17903
    \-*) ;;
17904
    *) break;;
17905
  esac
17906
done
17907
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16376
17908
16377
  case $host_os in
17909
  case $host_os in
16378
  cygwin* | mingw* | pw32*)
17910
  cygwin* | mingw* | pw32*)
Lines 16393-16398 Link Here
16393
    # If archive_cmds runs LD, not CC, wlarc should be empty
17925
    # If archive_cmds runs LD, not CC, wlarc should be empty
16394
    wlarc='${wl}'
17926
    wlarc='${wl}'
16395
17927
17928
    # Set some defaults for GNU ld with shared library support. These
17929
    # are reset later if shared libraries are not supported. Putting them
17930
    # here allows them to be overridden if necessary.
17931
    runpath_var=LD_RUN_PATH
17932
    hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
17933
    export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
17934
    # ancient GNU ld didn't support --whole-archive et. al.
17935
    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
17936
	whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
17937
      else
17938
  	whole_archive_flag_spec_GCJ=
17939
    fi
17940
    supports_anon_versioning=no
17941
    case `$LD -v 2>/dev/null` in
17942
      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
17943
      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
17944
      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
17945
      *\ 2.11.*) ;; # other 2.11 versions
17946
      *) supports_anon_versioning=yes ;;
17947
    esac
17948
16396
    # See if GNU ld supports shared libraries.
17949
    # See if GNU ld supports shared libraries.
16397
    case $host_os in
17950
    case $host_os in
16398
    aix3* | aix4* | aix5*)
17951
    aix3* | aix4* | aix5*)
Lines 16443-16449 Link Here
16443
      allow_undefined_flag_GCJ=unsupported
17996
      allow_undefined_flag_GCJ=unsupported
16444
      always_export_symbols_GCJ=no
17997
      always_export_symbols_GCJ=no
16445
      enable_shared_with_static_runtimes_GCJ=yes
17998
      enable_shared_with_static_runtimes_GCJ=yes
16446
      export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
17999
      export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
16447
18000
16448
      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
18001
      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
16449
        archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
18002
        archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
Lines 16457-16463 Link Here
16457
	fi~
18010
	fi~
16458
	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
18011
	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
16459
      else
18012
      else
16460
	ld_shlibs=no
18013
	ld_shlibs_GCJ=no
18014
      fi
18015
      ;;
18016
18017
    linux*)
18018
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
18019
	tmp_addflag=
18020
	case $cc_basename,$host_cpu in
18021
	pgcc*)				# Portland Group C compiler
18022
	  whole_archive_flag_spec_GCJ='${wl}--whole-archive,`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
18023
	  tmp_addflag=' $pic_flag'
18024
	  ;;
18025
	pgf77* | pgf90* )			# Portland Group f77 and f90 compilers
18026
	  whole_archive_flag_spec_GCJ='${wl}--whole-archive,`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
18027
	  tmp_addflag=' $pic_flag -Mnomain' ;;
18028
	ecc*,ia64* | icc*,ia64*)		# Intel C compiler on ia64
18029
	  tmp_addflag=' -i_dynamic' ;;
18030
	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
18031
	  tmp_addflag=' -i_dynamic -nofor_main' ;;
18032
	ifc* | ifort*)			# Intel Fortran compiler
18033
	  tmp_addflag=' -nofor_main' ;;
18034
	esac
18035
	archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18036
18037
	if test $supports_anon_versioning = yes; then
18038
	  archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
18039
  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
18040
  $echo "local: *; };" >> $output_objdir/$libname.ver~
18041
	  $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
18042
	fi
18043
      else
18044
	ld_shlibs_GCJ=no
16461
      fi
18045
      fi
16462
      ;;
18046
      ;;
16463
18047
Lines 16509-16524 Link Here
16509
      ;;
18093
      ;;
16510
    esac
18094
    esac
16511
18095
16512
    if test "$ld_shlibs_GCJ" = yes; then
18096
    if test "$ld_shlibs_GCJ" = no; then
16513
      runpath_var=LD_RUN_PATH
18097
      runpath_var=
16514
      hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
18098
      hardcode_libdir_flag_spec_GCJ=
16515
      export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
18099
      export_dynamic_flag_spec_GCJ=
16516
      # ancient GNU ld didn't support --whole-archive et. al.
18100
      whole_archive_flag_spec_GCJ=
16517
      if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
16518
 	whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
16519
      else
16520
  	whole_archive_flag_spec_GCJ=
16521
      fi
16522
    fi
18101
    fi
16523
  else
18102
  else
16524
    # PORTME fill in a description of your system's linker (not GNU ld)
18103
    # PORTME fill in a description of your system's linker (not GNU ld)
Lines 16582-16588 Link Here
16582
      link_all_deplibs_GCJ=yes
18161
      link_all_deplibs_GCJ=yes
16583
18162
16584
      if test "$GCC" = yes; then
18163
      if test "$GCC" = yes; then
16585
	case $host_os in aix4.012|aix4.012.*)
18164
	case $host_os in aix4.[012]|aix4.[012].*)
16586
	# We only want to do this on AIX 4.2 and lower, the check
18165
	# We only want to do this on AIX 4.2 and lower, the check
16587
	# below for broken collect2 doesn't work under 4.3+
18166
	# below for broken collect2 doesn't work under 4.3+
16588
	  collect2name=`${CC} -print-prog-name=collect2`
18167
	  collect2name=`${CC} -print-prog-name=collect2`
Lines 16603-16608 Link Here
16603
	  fi
18182
	  fi
16604
	esac
18183
	esac
16605
	shared_flag='-shared'
18184
	shared_flag='-shared'
18185
	if test "$aix_use_runtimelinking" = yes; then
18186
	  shared_flag="$shared_flag "'${wl}-G'
18187
	fi
16606
      else
18188
      else
16607
	# not using gcc
18189
	# not using gcc
16608
	if test "$host_cpu" = ia64; then
18190
	if test "$host_cpu" = ia64; then
Lines 16627-16633 Link Here
16627
	allow_undefined_flag_GCJ='-berok'
18209
	allow_undefined_flag_GCJ='-berok'
16628
       # Determine the default libpath from the value encoded in an empty executable.
18210
       # Determine the default libpath from the value encoded in an empty executable.
16629
       cat >conftest.$ac_ext <<_ACEOF
18211
       cat >conftest.$ac_ext <<_ACEOF
16630
#line $LINENO "configure"
16631
/* confdefs.h.  */
18212
/* confdefs.h.  */
16632
_ACEOF
18213
_ACEOF
16633
cat confdefs.h >>conftest.$ac_ext
18214
cat confdefs.h >>conftest.$ac_ext
Lines 16644-16654 Link Here
16644
_ACEOF
18225
_ACEOF
16645
rm -f conftest.$ac_objext conftest$ac_exeext
18226
rm -f conftest.$ac_objext conftest$ac_exeext
16646
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18227
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16647
  (eval $ac_link) 2>&5
18228
  (eval $ac_link) 2>conftest.er1
16648
  ac_status=$?
18229
  ac_status=$?
18230
  grep -v '^ *+' conftest.er1 >conftest.err
18231
  rm -f conftest.er1
18232
  cat conftest.err >&5
16649
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18233
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16650
  (exit $ac_status); } &&
18234
  (exit $ac_status); } &&
16651
         { ac_try='test -s conftest$ac_exeext'
18235
	 { ac_try='test -z "$ac_c_werror_flag"
18236
			 || test ! -s conftest.err'
18237
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18238
  (eval $ac_try) 2>&5
18239
  ac_status=$?
18240
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18241
  (exit $ac_status); }; } &&
18242
	 { ac_try='test -s conftest$ac_exeext'
16652
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18243
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16653
  (eval $ac_try) 2>&5
18244
  (eval $ac_try) 2>&5
16654
  ac_status=$?
18245
  ac_status=$?
Lines 16665-16671 Link Here
16665
sed 's/^/| /' conftest.$ac_ext >&5
18256
sed 's/^/| /' conftest.$ac_ext >&5
16666
18257
16667
fi
18258
fi
16668
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18259
rm -f conftest.err conftest.$ac_objext \
18260
      conftest$ac_exeext conftest.$ac_ext
16669
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18261
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16670
18262
16671
       hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
18263
       hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
Lines 16678-16684 Link Here
16678
	else
18270
	else
16679
	 # Determine the default libpath from the value encoded in an empty executable.
18271
	 # Determine the default libpath from the value encoded in an empty executable.
16680
	 cat >conftest.$ac_ext <<_ACEOF
18272
	 cat >conftest.$ac_ext <<_ACEOF
16681
#line $LINENO "configure"
16682
/* confdefs.h.  */
18273
/* confdefs.h.  */
16683
_ACEOF
18274
_ACEOF
16684
cat confdefs.h >>conftest.$ac_ext
18275
cat confdefs.h >>conftest.$ac_ext
Lines 16695-16705 Link Here
16695
_ACEOF
18286
_ACEOF
16696
rm -f conftest.$ac_objext conftest$ac_exeext
18287
rm -f conftest.$ac_objext conftest$ac_exeext
16697
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18288
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16698
  (eval $ac_link) 2>&5
18289
  (eval $ac_link) 2>conftest.er1
16699
  ac_status=$?
18290
  ac_status=$?
18291
  grep -v '^ *+' conftest.er1 >conftest.err
18292
  rm -f conftest.er1
18293
  cat conftest.err >&5
16700
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18294
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16701
  (exit $ac_status); } &&
18295
  (exit $ac_status); } &&
16702
         { ac_try='test -s conftest$ac_exeext'
18296
	 { ac_try='test -z "$ac_c_werror_flag"
18297
			 || test ! -s conftest.err'
18298
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18299
  (eval $ac_try) 2>&5
18300
  ac_status=$?
18301
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18302
  (exit $ac_status); }; } &&
18303
	 { ac_try='test -s conftest$ac_exeext'
16703
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18304
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16704
  (eval $ac_try) 2>&5
18305
  (eval $ac_try) 2>&5
16705
  ac_status=$?
18306
  ac_status=$?
Lines 16716-16722 Link Here
16716
sed 's/^/| /' conftest.$ac_ext >&5
18317
sed 's/^/| /' conftest.$ac_ext >&5
16717
18318
16718
fi
18319
fi
16719
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18320
rm -f conftest.err conftest.$ac_objext \
18321
      conftest$ac_exeext conftest.$ac_ext
16720
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18322
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16721
18323
16722
	 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
18324
	 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
Lines 16743-16749 Link Here
16743
      ld_shlibs_GCJ=no
18345
      ld_shlibs_GCJ=no
16744
      ;;
18346
      ;;
16745
18347
16746
    bsdi4*)
18348
    bsdi[45]*)
16747
      export_dynamic_flag_spec_GCJ=-rdynamic
18349
      export_dynamic_flag_spec_GCJ=-rdynamic
16748
      ;;
18350
      ;;
16749
18351
Lines 16757-16811 Link Here
16757
      # Tell ltmain to make .lib files, not .a files.
18359
      # Tell ltmain to make .lib files, not .a files.
16758
      libext=lib
18360
      libext=lib
16759
      # Tell ltmain to make .dll files, not .so files.
18361
      # Tell ltmain to make .dll files, not .so files.
16760
      shrext=".dll"
18362
      shrext_cmds=".dll"
16761
      # FIXME: Setting linknames here is a bad hack.
18363
      # FIXME: Setting linknames here is a bad hack.
16762
      archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
18364
      archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
16763
      # The linker will automatically build a .lib file if we build a DLL.
18365
      # The linker will automatically build a .lib file if we build a DLL.
16764
      old_archive_From_new_cmds_GCJ='true'
18366
      old_archive_From_new_cmds_GCJ='true'
16765
      # FIXME: Should let the user specify the lib program.
18367
      # FIXME: Should let the user specify the lib program.
16766
      old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
18368
      old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
16767
      fix_srcfile_path='`cygpath -w "$srcfile"`'
18369
      fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
16768
      enable_shared_with_static_runtimes_GCJ=yes
18370
      enable_shared_with_static_runtimes_GCJ=yes
16769
      ;;
18371
      ;;
16770
18372
16771
    darwin* | rhapsody*)
18373
    darwin* | rhapsody*)
16772
    if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
16773
      archive_cmds_need_lc_GCJ=no
16774
      case "$host_os" in
18374
      case "$host_os" in
16775
      rhapsody* | darwin1.[012])
18375
        rhapsody* | darwin1.[012])
16776
	allow_undefined_flag_GCJ='-undefined suppress'
18376
         allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
16777
	;;
18377
         ;;
16778
      *) # Darwin 1.3 on
18378
       *) # Darwin 1.3 on
16779
	test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag_GCJ='-flat_namespace -undefined suppress'
18379
         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
16780
	;;
18380
           allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
18381
         else
18382
           case ${MACOSX_DEPLOYMENT_TARGET} in
18383
             10.[012])
18384
               allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
18385
               ;;
18386
             10.*)
18387
               allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
18388
               ;;
18389
           esac
18390
         fi
18391
         ;;
16781
      esac
18392
      esac
16782
      # FIXME: Relying on posixy $() will cause problems for
18393
      archive_cmds_need_lc_GCJ=no
16783
      #        cross-compilation, but unfortunately the echo tests do not
16784
      #        yet detect zsh echo's removal of \ escapes.  Also zsh mangles
16785
      #	       `"' quotes if we put them in here... so don't!
16786
    	lt_int_apple_cc_single_mod=no
16787
    	output_verbose_link_cmd='echo'
16788
    	if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
16789
    	  lt_int_apple_cc_single_mod=yes
16790
    	fi
16791
    	if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
16792
    	  archive_cmds_GCJ='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
16793
    	else
16794
        archive_cmds_GCJ='$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
16795
      fi
16796
      module_cmds_GCJ='$CC -bundle ${wl}-bind_at_load $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags'
16797
      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
16798
        if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
16799
          archive_expsym_cmds_GCJ='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}'
16800
        else
16801
          archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
16802
        fi
16803
          module_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -bundle $allow_undefined_flag  -o $lib $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
16804
      hardcode_direct_GCJ=no
18394
      hardcode_direct_GCJ=no
16805
      hardcode_automatic_GCJ=yes
18395
      hardcode_automatic_GCJ=yes
16806
      hardcode_shlibpath_var_GCJ=unsupported
18396
      hardcode_shlibpath_var_GCJ=unsupported
16807
      whole_archive_flag_spec_GCJ='-all_load $convenience'
18397
      whole_archive_flag_spec_GCJ=''
16808
      link_all_deplibs_GCJ=yes
18398
      link_all_deplibs_GCJ=yes
18399
    if test "$GCC" = yes ; then
18400
    	output_verbose_link_cmd='echo'
18401
        archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
18402
      module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
18403
      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
18404
      archive_expsym_cmds_GCJ='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}'
18405
      module_expsym_cmds_GCJ='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}'
18406
    else
18407
      case $cc_basename in
18408
        xlc*)
18409
         output_verbose_link_cmd='echo'
18410
         archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
18411
         module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
18412
          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
18413
         archive_expsym_cmds_GCJ='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}'
18414
          module_expsym_cmds_GCJ='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}'
18415
          ;;
18416
       *)
18417
         ld_shlibs_GCJ=no
18418
          ;;
18419
      esac
16809
    fi
18420
    fi
16810
      ;;
18421
      ;;
16811
18422
Lines 16839-16845 Link Here
16839
      ;;
18450
      ;;
16840
18451
16841
    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
18452
    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
16842
    freebsd*)
18453
    freebsd* | kfreebsd*-gnu | dragonfly*)
16843
      archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
18454
      archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
16844
      hardcode_libdir_flag_spec_GCJ='-R$libdir'
18455
      hardcode_libdir_flag_spec_GCJ='-R$libdir'
16845
      hardcode_direct_GCJ=yes
18456
      hardcode_direct_GCJ=yes
Lines 16950-16955 Link Here
16950
      hardcode_shlibpath_var_GCJ=no
18561
      hardcode_shlibpath_var_GCJ=no
16951
      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18562
      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16952
	archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
18563
	archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
18564
	archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
16953
	hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
18565
	hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16954
	export_dynamic_flag_spec_GCJ='${wl}-E'
18566
	export_dynamic_flag_spec_GCJ='${wl}-E'
16955
      else
18567
      else
Lines 16995-17001 Link Here
16995
	allow_undefined_flag_GCJ=' -expect_unresolved \*'
18607
	allow_undefined_flag_GCJ=' -expect_unresolved \*'
16996
	archive_cmds_GCJ='$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'
18608
	archive_cmds_GCJ='$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'
16997
	archive_expsym_cmds_GCJ='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
18609
	archive_expsym_cmds_GCJ='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
16998
	$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'
18610
	$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'
16999
18611
17000
	# Both c and cxx compiler support -rpath directly
18612
	# Both c and cxx compiler support -rpath directly
17001
	hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
18613
	hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
Lines 17014-17023 Link Here
17014
    solaris*)
18626
    solaris*)
17015
      no_undefined_flag_GCJ=' -z text'
18627
      no_undefined_flag_GCJ=' -z text'
17016
      if test "$GCC" = yes; then
18628
      if test "$GCC" = yes; then
18629
	wlarc='${wl}'
17017
	archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18630
	archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17018
	archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
18631
	archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17019
	  $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
18632
	  $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
17020
      else
18633
      else
18634
	wlarc=''
17021
	archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
18635
	archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
17022
	archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
18636
	archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17023
  	$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
18637
  	$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
Lines 17026-17033 Link Here
17026
      hardcode_shlibpath_var_GCJ=no
18640
      hardcode_shlibpath_var_GCJ=no
17027
      case $host_os in
18641
      case $host_os in
17028
      solaris2.[0-5] | solaris2.[0-5].*) ;;
18642
      solaris2.[0-5] | solaris2.[0-5].*) ;;
17029
      *) # Supported since Solaris 2.6 (maybe 2.5.1?)
18643
      *)
17030
	whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
18644
 	# The compiler driver will combine linker options so we
18645
 	# cannot just pass the convience library names through
18646
 	# without $wl, iff we do not link with $LD.
18647
 	# Luckily, gcc supports the same syntax we need for Sun Studio.
18648
 	# Supported since Solaris 2.6 (maybe 2.5.1?)
18649
 	case $wlarc in
18650
 	'')
18651
 	  whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
18652
 	*)
18653
 	  whole_archive_flag_spec_GCJ='${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' ;;
18654
 	esac ;;
17031
      esac
18655
      esac
17032
      link_all_deplibs_GCJ=yes
18656
      link_all_deplibs_GCJ=yes
17033
      ;;
18657
      ;;
Lines 17199-17276 Link Here
17199
  ;;
18823
  ;;
17200
esac
18824
esac
17201
18825
17202
echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
17203
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
17204
hardcode_action_GCJ=
17205
if test -n "$hardcode_libdir_flag_spec_GCJ" || \
17206
   test -n "$runpath_var GCJ" || \
17207
   test "X$hardcode_automatic_GCJ"="Xyes" ; then
17208
17209
  # We can hardcode non-existant directories.
17210
  if test "$hardcode_direct_GCJ" != no &&
17211
     # If the only mechanism to avoid hardcoding is shlibpath_var, we
17212
     # have to relink, otherwise we might link with an installed library
17213
     # when we should be linking with a yet-to-be-installed one
17214
     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
17215
     test "$hardcode_minus_L_GCJ" != no; then
17216
    # Linking always hardcodes the temporary library directory.
17217
    hardcode_action_GCJ=relink
17218
  else
17219
    # We can link without hardcoding, and we can hardcode nonexisting dirs.
17220
    hardcode_action_GCJ=immediate
17221
  fi
17222
else
17223
  # We cannot hardcode anything, or else we can only hardcode existing
17224
  # directories.
17225
  hardcode_action_GCJ=unsupported
17226
fi
17227
echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
17228
echo "${ECHO_T}$hardcode_action_GCJ" >&6
17229
17230
if test "$hardcode_action_GCJ" = relink; then
17231
  # Fast installation is not supported
17232
  enable_fast_install=no
17233
elif test "$shlibpath_overrides_runpath" = yes ||
17234
     test "$enable_shared" = no; then
17235
  # Fast installation is not necessary
17236
  enable_fast_install=needless
17237
fi
17238
17239
striplib=
17240
old_striplib=
17241
echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
17242
echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
17243
if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
17244
  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
17245
  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
17246
  echo "$as_me:$LINENO: result: yes" >&5
17247
echo "${ECHO_T}yes" >&6
17248
else
17249
# FIXME - insert some real tests, host_os isn't really good enough
17250
  case $host_os in
17251
   darwin*)
17252
       if test -n "$STRIP" ; then
17253
         striplib="$STRIP -x"
17254
         echo "$as_me:$LINENO: result: yes" >&5
17255
echo "${ECHO_T}yes" >&6
17256
       else
17257
  echo "$as_me:$LINENO: result: no" >&5
17258
echo "${ECHO_T}no" >&6
17259
fi
17260
       ;;
17261
   *)
17262
  echo "$as_me:$LINENO: result: no" >&5
17263
echo "${ECHO_T}no" >&6
17264
    ;;
17265
  esac
17266
fi
17267
17268
echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
18826
echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
17269
echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
18827
echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
17270
library_names_spec=
18828
library_names_spec=
17271
libname_spec='lib$name'
18829
libname_spec='lib$name'
17272
soname_spec=
18830
soname_spec=
17273
shrext=".so"
18831
shrext_cmds=".so"
17274
postinstall_cmds=
18832
postinstall_cmds=
17275
postuninstall_cmds=
18833
postuninstall_cmds=
17276
finish_cmds=
18834
finish_cmds=
Lines 17358-17364 Link Here
17358
amigaos*)
18916
amigaos*)
17359
  library_names_spec='$libname.ixlibrary $libname.a'
18917
  library_names_spec='$libname.ixlibrary $libname.a'
17360
  # Create ${libname}_ixlibrary.a entries in /sys/libs.
18918
  # Create ${libname}_ixlibrary.a entries in /sys/libs.
17361
  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'
18919
  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'
17362
  ;;
18920
  ;;
17363
18921
17364
beos*)
18922
beos*)
Lines 17367-17373 Link Here
17367
  shlibpath_var=LIBRARY_PATH
18925
  shlibpath_var=LIBRARY_PATH
17368
  ;;
18926
  ;;
17369
18927
17370
bsdi4*)
18928
bsdi[45]*)
17371
  version_type=linux
18929
  version_type=linux
17372
  need_version=no
18930
  need_version=no
17373
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18931
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
Lines 17383-17389 Link Here
17383
18941
17384
cygwin* | mingw* | pw32*)
18942
cygwin* | mingw* | pw32*)
17385
  version_type=windows
18943
  version_type=windows
17386
  shrext=".dll"
18944
  shrext_cmds=".dll"
17387
  need_version=no
18945
  need_version=no
17388
  need_lib_prefix=no
18946
  need_lib_prefix=no
17389
18947
Lines 17405-17411 Link Here
17405
    cygwin*)
18963
    cygwin*)
17406
      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
18964
      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
17407
      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18965
      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17408
      sys_lib_search_path_spec="/lib /lib/w32api /usr/lib /usr/local/lib"
18966
      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
17409
      ;;
18967
      ;;
17410
    mingw*)
18968
    mingw*)
17411
      # MinGW DLLs use traditional 'lib' prefix
18969
      # MinGW DLLs use traditional 'lib' prefix
Lines 17425-17435 Link Here
17425
      ;;
18983
      ;;
17426
    pw32*)
18984
    pw32*)
17427
      # pw32 DLLs use 'pw' prefix rather than 'lib'
18985
      # pw32 DLLs use 'pw' prefix rather than 'lib'
17428
      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
18986
      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17429
      ;;
18987
      ;;
17430
    esac
18988
    esac
17431
    ;;
18989
    ;;
17432
18990
18991
  linux*)
18992
    if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
18993
      archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18994
      supports_anon_versioning=no
18995
      case `$LD -v 2>/dev/null` in
18996
        *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
18997
        *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
18998
        *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
18999
        *\ 2.11.*) ;; # other 2.11 versions
19000
        *) supports_anon_versioning=yes ;;
19001
      esac
19002
      if test $supports_anon_versioning = yes; then
19003
        archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
19004
cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
19005
$echo "local: *; };" >> $output_objdir/$libname.ver~
19006
        $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
19007
      else
19008
        $archive_expsym_cmds="$archive_cmds"
19009
      fi
19010
    else
19011
      ld_shlibs=no
19012
    fi
19013
    ;;
19014
17433
  *)
19015
  *)
17434
    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
19016
    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
17435
    ;;
19017
    ;;
Lines 17444-17460 Link Here
17444
  version_type=darwin
19026
  version_type=darwin
17445
  need_lib_prefix=no
19027
  need_lib_prefix=no
17446
  need_version=no
19028
  need_version=no
17447
  # FIXME: Relying on posixy $() will cause problems for
17448
  #        cross-compilation, but unfortunately the echo tests do not
17449
  #        yet detect zsh echo's removal of \ escapes.
17450
  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
19029
  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
17451
  soname_spec='${libname}${release}${major}$shared_ext'
19030
  soname_spec='${libname}${release}${major}$shared_ext'
17452
  shlibpath_overrides_runpath=yes
19031
  shlibpath_overrides_runpath=yes
17453
  shlibpath_var=DYLD_LIBRARY_PATH
19032
  shlibpath_var=DYLD_LIBRARY_PATH
17454
  shrext='$(test .$module = .yes && echo .so || echo .dylib)'
19033
  shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
17455
  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
19034
  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
17456
  if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
19035
  if test "$GCC" = yes; then
17457
  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"`
19036
    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"`
19037
  else
19038
    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
17458
  fi
19039
  fi
17459
  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
19040
  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
17460
  ;;
19041
  ;;
Lines 17472-17478 Link Here
17472
  dynamic_linker=no
19053
  dynamic_linker=no
17473
  ;;
19054
  ;;
17474
19055
17475
freebsd*)
19056
kfreebsd*-gnu)
19057
  version_type=linux
19058
  need_lib_prefix=no
19059
  need_version=no
19060
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
19061
  soname_spec='${libname}${release}${shared_ext}$major'
19062
  shlibpath_var=LD_LIBRARY_PATH
19063
  shlibpath_overrides_runpath=no
19064
  hardcode_into_libs=yes
19065
  dynamic_linker='GNU ld.so'
19066
  ;;
19067
19068
freebsd* | dragonfly*)
19069
  # DragonFly does not have aout.  When/if they implement a new
19070
  # versioning mechanism, adjust this.
17476
  objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
19071
  objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
17477
  version_type=freebsd-$objformat
19072
  version_type=freebsd-$objformat
17478
  case $version_type in
19073
  case $version_type in
Lines 17491-17497 Link Here
17491
  freebsd2*)
19086
  freebsd2*)
17492
    shlibpath_overrides_runpath=yes
19087
    shlibpath_overrides_runpath=yes
17493
    ;;
19088
    ;;
17494
  freebsd3.01* | freebsdelf3.01*)
19089
  freebsd3.[01]* | freebsdelf3.[01]*)
17495
    shlibpath_overrides_runpath=yes
19090
    shlibpath_overrides_runpath=yes
17496
    hardcode_into_libs=yes
19091
    hardcode_into_libs=yes
17497
    ;;
19092
    ;;
Lines 17520-17526 Link Here
17520
  need_version=no
19115
  need_version=no
17521
  case "$host_cpu" in
19116
  case "$host_cpu" in
17522
  ia64*)
19117
  ia64*)
17523
    shrext='.so'
19118
    shrext_cmds='.so'
17524
    hardcode_into_libs=yes
19119
    hardcode_into_libs=yes
17525
    dynamic_linker="$host_os dld.so"
19120
    dynamic_linker="$host_os dld.so"
17526
    shlibpath_var=LD_LIBRARY_PATH
19121
    shlibpath_var=LD_LIBRARY_PATH
Lines 17535-17541 Link Here
17535
    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
19130
    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17536
    ;;
19131
    ;;
17537
   hppa*64*)
19132
   hppa*64*)
17538
     shrext='.sl'
19133
     shrext_cmds='.sl'
17539
     hardcode_into_libs=yes
19134
     hardcode_into_libs=yes
17540
     dynamic_linker="$host_os dld.sl"
19135
     dynamic_linker="$host_os dld.sl"
17541
     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
19136
     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
Lines 17546-17552 Link Here
17546
     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
19141
     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17547
     ;;
19142
     ;;
17548
   *)
19143
   *)
17549
    shrext='.sl'
19144
    shrext_cmds='.sl'
17550
    dynamic_linker="$host_os dld.sl"
19145
    dynamic_linker="$host_os dld.sl"
17551
    shlibpath_var=SHLIB_PATH
19146
    shlibpath_var=SHLIB_PATH
17552
    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
19147
    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
Lines 17610-17634 Link Here
17610
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
19205
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17611
  shlibpath_var=LD_LIBRARY_PATH
19206
  shlibpath_var=LD_LIBRARY_PATH
17612
  shlibpath_overrides_runpath=no
19207
  shlibpath_overrides_runpath=no
17613
  # This implies no fast_install, which is unacceptable.
19208
  # This implies no fast_install, which is unacceptable.
17614
  # Some rework will be needed to allow for fast_install
19209
  # Some rework will be needed to allow for fast_install
17615
  # before this can be enabled.
19210
  # before this can be enabled.
19211
  hardcode_into_libs=yes
19212
19213
  # Append ld.so.conf contents to the search path
19214
  if test -f /etc/ld.so.conf; then
19215
    lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:,	]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
19216
    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
19217
  fi
19218
19219
  case $host_cpu:$lt_cv_cc_64bit_output in
19220
  powerpc64:yes | s390x:yes | sparc64:yes | x86_64:yes)
19221
    sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /usr/X11R6/lib64"
19222
    sys_lib_search_path_spec="/lib64 /usr/lib64 /usr/local/lib64 /usr/X11R6/lib64"
19223
    ;;
19224
  esac
19225
19226
  # We used to test for /lib/ld.so.1 and disable shared libraries on
19227
  # powerpc, because MkLinux only supported shared libraries with the
19228
  # GNU dynamic linker.  Since this was broken with cross compilers,
19229
  # most powerpc-linux boxes support dynamic linking these days and
19230
  # people can always --disable-shared, the test was removed, and we
19231
  # assume the GNU/Linux dynamic linker is in use.
19232
  dynamic_linker='GNU/Linux ld.so'
19233
19234
  # Find out which ABI we are using (multilib Linux x86_64 hack).
19235
  libsuff=
19236
  case "$host_cpu" in
19237
  x86_64*)
19238
    echo '#line 19238 "configure"' > conftest.$ac_ext
19239
    if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19240
  (eval $ac_compile) 2>&5
19241
  ac_status=$?
19242
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19243
  (exit $ac_status); }; then
19244
      case `/usr/bin/file conftest.$ac_objext` in
19245
      *64-bit*)
19246
        libsuff=64
19247
        ;;
19248
      esac
19249
    fi
19250
    rm -rf conftest*
19251
    ;;
19252
  *)
19253
    ;;
19254
  esac
19255
  sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff}"
19256
  sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
19257
  ;;
19258
19259
knetbsd*-gnu)
19260
  version_type=linux
19261
  need_lib_prefix=no
19262
  need_version=no
19263
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
19264
  soname_spec='${libname}${release}${shared_ext}$major'
19265
  shlibpath_var=LD_LIBRARY_PATH
19266
  shlibpath_overrides_runpath=no
17616
  hardcode_into_libs=yes
19267
  hardcode_into_libs=yes
17617
19268
  dynamic_linker='GNU ld.so'
17618
  case $LD in # libtool.m4 will add one of these switches to LD
17619
  *"-m elf_x86_64"*|*"-m elf64ppc"*|*"-m elf64_s390"*|*"-m elf64_sparc"*)
17620
    sys_lib_dlsearch_path_spec="/lib64 /usr/lib64"
17621
    sys_lib_search_path_spec="/lib64 /usr/lib64 /usr/local/lib64"
17622
    ;;
17623
  esac
17624
17625
  # We used to test for /lib/ld.so.1 and disable shared libraries on
17626
  # powerpc, because MkLinux only supported shared libraries with the
17627
  # GNU dynamic linker.  Since this was broken with cross compilers,
17628
  # most powerpc-linux boxes support dynamic linking these days and
17629
  # people can always --disable-shared, the test was removed, and we
17630
  # assume the GNU/Linux dynamic linker is in use.
17631
  dynamic_linker='GNU/Linux ld.so'
17632
  ;;
19269
  ;;
17633
19270
17634
netbsd*)
19271
netbsd*)
Lines 17640-17646 Link Here
17640
    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
19277
    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17641
    dynamic_linker='NetBSD (a.out) ld.so'
19278
    dynamic_linker='NetBSD (a.out) ld.so'
17642
  else
19279
  else
17643
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
19280
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17644
    soname_spec='${libname}${release}${shared_ext}$major'
19281
    soname_spec='${libname}${release}${shared_ext}$major'
17645
    dynamic_linker='NetBSD ld.elf_so'
19282
    dynamic_linker='NetBSD ld.elf_so'
17646
  fi
19283
  fi
Lines 17656-17662 Link Here
17656
  shlibpath_overrides_runpath=yes
19293
  shlibpath_overrides_runpath=yes
17657
  ;;
19294
  ;;
17658
19295
17659
nto-qnx)
19296
nto-qnx*)
17660
  version_type=linux
19297
  version_type=linux
17661
  need_lib_prefix=no
19298
  need_lib_prefix=no
17662
  need_version=no
19299
  need_version=no
Lines 17669-17675 Link Here
17669
openbsd*)
19306
openbsd*)
17670
  version_type=sunos
19307
  version_type=sunos
17671
  need_lib_prefix=no
19308
  need_lib_prefix=no
17672
  need_version=no
19309
  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
19310
  case $host_os in
19311
    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
19312
    *)                         need_version=no  ;;
19313
  esac
17673
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19314
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17674
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
19315
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17675
  shlibpath_var=LD_LIBRARY_PATH
19316
  shlibpath_var=LD_LIBRARY_PATH
Lines 17689-17695 Link Here
17689
19330
17690
os2*)
19331
os2*)
17691
  libname_spec='$name'
19332
  libname_spec='$name'
17692
  shrext=".dll"
19333
  shrext_cmds=".dll"
17693
  need_lib_prefix=no
19334
  need_lib_prefix=no
17694
  library_names_spec='$libname${shared_ext} $libname.a'
19335
  library_names_spec='$libname${shared_ext} $libname.a'
17695
  dynamic_linker='OS/2 ld.exe'
19336
  dynamic_linker='OS/2 ld.exe'
Lines 17787-17792 Link Here
17787
echo "${ECHO_T}$dynamic_linker" >&6
19428
echo "${ECHO_T}$dynamic_linker" >&6
17788
test "$dynamic_linker" = no && can_build_shared=no
19429
test "$dynamic_linker" = no && can_build_shared=no
17789
19430
19431
echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
19432
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
19433
hardcode_action_GCJ=
19434
if test -n "$hardcode_libdir_flag_spec_GCJ" || \
19435
   test -n "$runpath_var_GCJ" || \
19436
   test "X$hardcode_automatic_GCJ" = "Xyes" ; then
19437
19438
  # We can hardcode non-existant directories.
19439
  if test "$hardcode_direct_GCJ" != no &&
19440
     # If the only mechanism to avoid hardcoding is shlibpath_var, we
19441
     # have to relink, otherwise we might link with an installed library
19442
     # when we should be linking with a yet-to-be-installed one
19443
     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
19444
     test "$hardcode_minus_L_GCJ" != no; then
19445
    # Linking always hardcodes the temporary library directory.
19446
    hardcode_action_GCJ=relink
19447
  else
19448
    # We can link without hardcoding, and we can hardcode nonexisting dirs.
19449
    hardcode_action_GCJ=immediate
19450
  fi
19451
else
19452
  # We cannot hardcode anything, or else we can only hardcode existing
19453
  # directories.
19454
  hardcode_action_GCJ=unsupported
19455
fi
19456
echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
19457
echo "${ECHO_T}$hardcode_action_GCJ" >&6
19458
19459
if test "$hardcode_action_GCJ" = relink; then
19460
  # Fast installation is not supported
19461
  enable_fast_install=no
19462
elif test "$shlibpath_overrides_runpath" = yes ||
19463
     test "$enable_shared" = no; then
19464
  # Fast installation is not necessary
19465
  enable_fast_install=needless
19466
fi
19467
19468
striplib=
19469
old_striplib=
19470
echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
19471
echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
19472
if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
19473
  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
19474
  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
19475
  echo "$as_me:$LINENO: result: yes" >&5
19476
echo "${ECHO_T}yes" >&6
19477
else
19478
# FIXME - insert some real tests, host_os isn't really good enough
19479
  case $host_os in
19480
   darwin*)
19481
       if test -n "$STRIP" ; then
19482
         striplib="$STRIP -x"
19483
         echo "$as_me:$LINENO: result: yes" >&5
19484
echo "${ECHO_T}yes" >&6
19485
       else
19486
  echo "$as_me:$LINENO: result: no" >&5
19487
echo "${ECHO_T}no" >&6
19488
fi
19489
       ;;
19490
   *)
19491
  echo "$as_me:$LINENO: result: no" >&5
19492
echo "${ECHO_T}no" >&6
19493
    ;;
19494
  esac
19495
fi
19496
17790
if test "x$enable_dlopen" != xyes; then
19497
if test "x$enable_dlopen" != xyes; then
17791
  enable_dlopen=unknown
19498
  enable_dlopen=unknown
17792
  enable_dlopen_self=unknown
19499
  enable_dlopen_self=unknown
Lines 17822-17828 Link Here
17822
  ac_check_lib_save_LIBS=$LIBS
19529
  ac_check_lib_save_LIBS=$LIBS
17823
LIBS="-ldl  $LIBS"
19530
LIBS="-ldl  $LIBS"
17824
cat >conftest.$ac_ext <<_ACEOF
19531
cat >conftest.$ac_ext <<_ACEOF
17825
#line $LINENO "configure"
17826
/* confdefs.h.  */
19532
/* confdefs.h.  */
17827
_ACEOF
19533
_ACEOF
17828
cat confdefs.h >>conftest.$ac_ext
19534
cat confdefs.h >>conftest.$ac_ext
Lines 17846-17856 Link Here
17846
_ACEOF
19552
_ACEOF
17847
rm -f conftest.$ac_objext conftest$ac_exeext
19553
rm -f conftest.$ac_objext conftest$ac_exeext
17848
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19554
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17849
  (eval $ac_link) 2>&5
19555
  (eval $ac_link) 2>conftest.er1
17850
  ac_status=$?
19556
  ac_status=$?
19557
  grep -v '^ *+' conftest.er1 >conftest.err
19558
  rm -f conftest.er1
19559
  cat conftest.err >&5
17851
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19560
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17852
  (exit $ac_status); } &&
19561
  (exit $ac_status); } &&
17853
         { ac_try='test -s conftest$ac_exeext'
19562
	 { ac_try='test -z "$ac_c_werror_flag"
19563
			 || test ! -s conftest.err'
19564
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19565
  (eval $ac_try) 2>&5
19566
  ac_status=$?
19567
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19568
  (exit $ac_status); }; } &&
19569
	 { ac_try='test -s conftest$ac_exeext'
17854
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19570
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17855
  (eval $ac_try) 2>&5
19571
  (eval $ac_try) 2>&5
17856
  ac_status=$?
19572
  ac_status=$?
Lines 17863-17869 Link Here
17863
19579
17864
ac_cv_lib_dl_dlopen=no
19580
ac_cv_lib_dl_dlopen=no
17865
fi
19581
fi
17866
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
19582
rm -f conftest.err conftest.$ac_objext \
19583
      conftest$ac_exeext conftest.$ac_ext
17867
LIBS=$ac_check_lib_save_LIBS
19584
LIBS=$ac_check_lib_save_LIBS
17868
fi
19585
fi
17869
echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
19586
echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
Lines 17887-17907 Link Here
17887
  echo $ECHO_N "(cached) $ECHO_C" >&6
19604
  echo $ECHO_N "(cached) $ECHO_C" >&6
17888
else
19605
else
17889
  cat >conftest.$ac_ext <<_ACEOF
19606
  cat >conftest.$ac_ext <<_ACEOF
17890
#line $LINENO "configure"
17891
/* confdefs.h.  */
19607
/* confdefs.h.  */
17892
_ACEOF
19608
_ACEOF
17893
cat confdefs.h >>conftest.$ac_ext
19609
cat confdefs.h >>conftest.$ac_ext
17894
cat >>conftest.$ac_ext <<_ACEOF
19610
cat >>conftest.$ac_ext <<_ACEOF
17895
/* end confdefs.h.  */
19611
/* end confdefs.h.  */
19612
/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
19613
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
19614
#define shl_load innocuous_shl_load
19615
17896
/* System header to define __stub macros and hopefully few prototypes,
19616
/* System header to define __stub macros and hopefully few prototypes,
17897
    which can conflict with char shl_load (); below.
19617
    which can conflict with char shl_load (); below.
17898
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19618
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17899
    <limits.h> exists even on freestanding compilers.  */
19619
    <limits.h> exists even on freestanding compilers.  */
19620
17900
#ifdef __STDC__
19621
#ifdef __STDC__
17901
# include <limits.h>
19622
# include <limits.h>
17902
#else
19623
#else
17903
# include <assert.h>
19624
# include <assert.h>
17904
#endif
19625
#endif
19626
19627
#undef shl_load
19628
17905
/* Override any gcc2 internal prototype to avoid an error.  */
19629
/* Override any gcc2 internal prototype to avoid an error.  */
17906
#ifdef __cplusplus
19630
#ifdef __cplusplus
17907
extern "C"
19631
extern "C"
Lines 17932-17942 Link Here
17932
_ACEOF
19656
_ACEOF
17933
rm -f conftest.$ac_objext conftest$ac_exeext
19657
rm -f conftest.$ac_objext conftest$ac_exeext
17934
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19658
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17935
  (eval $ac_link) 2>&5
19659
  (eval $ac_link) 2>conftest.er1
17936
  ac_status=$?
19660
  ac_status=$?
19661
  grep -v '^ *+' conftest.er1 >conftest.err
19662
  rm -f conftest.er1
19663
  cat conftest.err >&5
17937
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19664
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17938
  (exit $ac_status); } &&
19665
  (exit $ac_status); } &&
17939
         { ac_try='test -s conftest$ac_exeext'
19666
	 { ac_try='test -z "$ac_c_werror_flag"
19667
			 || test ! -s conftest.err'
19668
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19669
  (eval $ac_try) 2>&5
19670
  ac_status=$?
19671
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19672
  (exit $ac_status); }; } &&
19673
	 { ac_try='test -s conftest$ac_exeext'
17940
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19674
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17941
  (eval $ac_try) 2>&5
19675
  (eval $ac_try) 2>&5
17942
  ac_status=$?
19676
  ac_status=$?
Lines 17949-17955 Link Here
17949
19683
17950
ac_cv_func_shl_load=no
19684
ac_cv_func_shl_load=no
17951
fi
19685
fi
17952
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
19686
rm -f conftest.err conftest.$ac_objext \
19687
      conftest$ac_exeext conftest.$ac_ext
17953
fi
19688
fi
17954
echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
19689
echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
17955
echo "${ECHO_T}$ac_cv_func_shl_load" >&6
19690
echo "${ECHO_T}$ac_cv_func_shl_load" >&6
Lines 17964-17970 Link Here
17964
  ac_check_lib_save_LIBS=$LIBS
19699
  ac_check_lib_save_LIBS=$LIBS
17965
LIBS="-ldld  $LIBS"
19700
LIBS="-ldld  $LIBS"
17966
cat >conftest.$ac_ext <<_ACEOF
19701
cat >conftest.$ac_ext <<_ACEOF
17967
#line $LINENO "configure"
17968
/* confdefs.h.  */
19702
/* confdefs.h.  */
17969
_ACEOF
19703
_ACEOF
17970
cat confdefs.h >>conftest.$ac_ext
19704
cat confdefs.h >>conftest.$ac_ext
Lines 17988-17998 Link Here
17988
_ACEOF
19722
_ACEOF
17989
rm -f conftest.$ac_objext conftest$ac_exeext
19723
rm -f conftest.$ac_objext conftest$ac_exeext
17990
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19724
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17991
  (eval $ac_link) 2>&5
19725
  (eval $ac_link) 2>conftest.er1
17992
  ac_status=$?
19726
  ac_status=$?
19727
  grep -v '^ *+' conftest.er1 >conftest.err
19728
  rm -f conftest.er1
19729
  cat conftest.err >&5
17993
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19730
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17994
  (exit $ac_status); } &&
19731
  (exit $ac_status); } &&
17995
         { ac_try='test -s conftest$ac_exeext'
19732
	 { ac_try='test -z "$ac_c_werror_flag"
19733
			 || test ! -s conftest.err'
19734
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19735
  (eval $ac_try) 2>&5
19736
  ac_status=$?
19737
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19738
  (exit $ac_status); }; } &&
19739
	 { ac_try='test -s conftest$ac_exeext'
17996
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19740
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17997
  (eval $ac_try) 2>&5
19741
  (eval $ac_try) 2>&5
17998
  ac_status=$?
19742
  ac_status=$?
Lines 18005-18011 Link Here
18005
19749
18006
ac_cv_lib_dld_shl_load=no
19750
ac_cv_lib_dld_shl_load=no
18007
fi
19751
fi
18008
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
19752
rm -f conftest.err conftest.$ac_objext \
19753
      conftest$ac_exeext conftest.$ac_ext
18009
LIBS=$ac_check_lib_save_LIBS
19754
LIBS=$ac_check_lib_save_LIBS
18010
fi
19755
fi
18011
echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
19756
echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
Lines 18019-18039 Link Here
18019
  echo $ECHO_N "(cached) $ECHO_C" >&6
19764
  echo $ECHO_N "(cached) $ECHO_C" >&6
18020
else
19765
else
18021
  cat >conftest.$ac_ext <<_ACEOF
19766
  cat >conftest.$ac_ext <<_ACEOF
18022
#line $LINENO "configure"
18023
/* confdefs.h.  */
19767
/* confdefs.h.  */
18024
_ACEOF
19768
_ACEOF
18025
cat confdefs.h >>conftest.$ac_ext
19769
cat confdefs.h >>conftest.$ac_ext
18026
cat >>conftest.$ac_ext <<_ACEOF
19770
cat >>conftest.$ac_ext <<_ACEOF
18027
/* end confdefs.h.  */
19771
/* end confdefs.h.  */
19772
/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
19773
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
19774
#define dlopen innocuous_dlopen
19775
18028
/* System header to define __stub macros and hopefully few prototypes,
19776
/* System header to define __stub macros and hopefully few prototypes,
18029
    which can conflict with char dlopen (); below.
19777
    which can conflict with char dlopen (); below.
18030
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19778
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18031
    <limits.h> exists even on freestanding compilers.  */
19779
    <limits.h> exists even on freestanding compilers.  */
19780
18032
#ifdef __STDC__
19781
#ifdef __STDC__
18033
# include <limits.h>
19782
# include <limits.h>
18034
#else
19783
#else
18035
# include <assert.h>
19784
# include <assert.h>
18036
#endif
19785
#endif
19786
19787
#undef dlopen
19788
18037
/* Override any gcc2 internal prototype to avoid an error.  */
19789
/* Override any gcc2 internal prototype to avoid an error.  */
18038
#ifdef __cplusplus
19790
#ifdef __cplusplus
18039
extern "C"
19791
extern "C"
Lines 18064-18074 Link Here
18064
_ACEOF
19816
_ACEOF
18065
rm -f conftest.$ac_objext conftest$ac_exeext
19817
rm -f conftest.$ac_objext conftest$ac_exeext
18066
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19818
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18067
  (eval $ac_link) 2>&5
19819
  (eval $ac_link) 2>conftest.er1
18068
  ac_status=$?
19820
  ac_status=$?
19821
  grep -v '^ *+' conftest.er1 >conftest.err
19822
  rm -f conftest.er1
19823
  cat conftest.err >&5
18069
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19824
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18070
  (exit $ac_status); } &&
19825
  (exit $ac_status); } &&
18071
         { ac_try='test -s conftest$ac_exeext'
19826
	 { ac_try='test -z "$ac_c_werror_flag"
19827
			 || test ! -s conftest.err'
19828
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19829
  (eval $ac_try) 2>&5
19830
  ac_status=$?
19831
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19832
  (exit $ac_status); }; } &&
19833
	 { ac_try='test -s conftest$ac_exeext'
18072
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19834
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18073
  (eval $ac_try) 2>&5
19835
  (eval $ac_try) 2>&5
18074
  ac_status=$?
19836
  ac_status=$?
Lines 18081-18087 Link Here
18081
19843
18082
ac_cv_func_dlopen=no
19844
ac_cv_func_dlopen=no
18083
fi
19845
fi
18084
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
19846
rm -f conftest.err conftest.$ac_objext \
19847
      conftest$ac_exeext conftest.$ac_ext
18085
fi
19848
fi
18086
echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
19849
echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
18087
echo "${ECHO_T}$ac_cv_func_dlopen" >&6
19850
echo "${ECHO_T}$ac_cv_func_dlopen" >&6
Lines 18096-18102 Link Here
18096
  ac_check_lib_save_LIBS=$LIBS
19859
  ac_check_lib_save_LIBS=$LIBS
18097
LIBS="-ldl  $LIBS"
19860
LIBS="-ldl  $LIBS"
18098
cat >conftest.$ac_ext <<_ACEOF
19861
cat >conftest.$ac_ext <<_ACEOF
18099
#line $LINENO "configure"
18100
/* confdefs.h.  */
19862
/* confdefs.h.  */
18101
_ACEOF
19863
_ACEOF
18102
cat confdefs.h >>conftest.$ac_ext
19864
cat confdefs.h >>conftest.$ac_ext
Lines 18120-18130 Link Here
18120
_ACEOF
19882
_ACEOF
18121
rm -f conftest.$ac_objext conftest$ac_exeext
19883
rm -f conftest.$ac_objext conftest$ac_exeext
18122
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19884
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18123
  (eval $ac_link) 2>&5
19885
  (eval $ac_link) 2>conftest.er1
18124
  ac_status=$?
19886
  ac_status=$?
19887
  grep -v '^ *+' conftest.er1 >conftest.err
19888
  rm -f conftest.er1
19889
  cat conftest.err >&5
18125
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19890
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18126
  (exit $ac_status); } &&
19891
  (exit $ac_status); } &&
18127
         { ac_try='test -s conftest$ac_exeext'
19892
	 { ac_try='test -z "$ac_c_werror_flag"
19893
			 || test ! -s conftest.err'
19894
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19895
  (eval $ac_try) 2>&5
19896
  ac_status=$?
19897
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19898
  (exit $ac_status); }; } &&
19899
	 { ac_try='test -s conftest$ac_exeext'
18128
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19900
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18129
  (eval $ac_try) 2>&5
19901
  (eval $ac_try) 2>&5
18130
  ac_status=$?
19902
  ac_status=$?
Lines 18137-18143 Link Here
18137
19909
18138
ac_cv_lib_dl_dlopen=no
19910
ac_cv_lib_dl_dlopen=no
18139
fi
19911
fi
18140
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
19912
rm -f conftest.err conftest.$ac_objext \
19913
      conftest$ac_exeext conftest.$ac_ext
18141
LIBS=$ac_check_lib_save_LIBS
19914
LIBS=$ac_check_lib_save_LIBS
18142
fi
19915
fi
18143
echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
19916
echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
Lines 18153-18159 Link Here
18153
  ac_check_lib_save_LIBS=$LIBS
19926
  ac_check_lib_save_LIBS=$LIBS
18154
LIBS="-lsvld  $LIBS"
19927
LIBS="-lsvld  $LIBS"
18155
cat >conftest.$ac_ext <<_ACEOF
19928
cat >conftest.$ac_ext <<_ACEOF
18156
#line $LINENO "configure"
18157
/* confdefs.h.  */
19929
/* confdefs.h.  */
18158
_ACEOF
19930
_ACEOF
18159
cat confdefs.h >>conftest.$ac_ext
19931
cat confdefs.h >>conftest.$ac_ext
Lines 18177-18187 Link Here
18177
_ACEOF
19949
_ACEOF
18178
rm -f conftest.$ac_objext conftest$ac_exeext
19950
rm -f conftest.$ac_objext conftest$ac_exeext
18179
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19951
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18180
  (eval $ac_link) 2>&5
19952
  (eval $ac_link) 2>conftest.er1
18181
  ac_status=$?
19953
  ac_status=$?
19954
  grep -v '^ *+' conftest.er1 >conftest.err
19955
  rm -f conftest.er1
19956
  cat conftest.err >&5
18182
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19957
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18183
  (exit $ac_status); } &&
19958
  (exit $ac_status); } &&
18184
         { ac_try='test -s conftest$ac_exeext'
19959
	 { ac_try='test -z "$ac_c_werror_flag"
19960
			 || test ! -s conftest.err'
19961
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19962
  (eval $ac_try) 2>&5
19963
  ac_status=$?
19964
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19965
  (exit $ac_status); }; } &&
19966
	 { ac_try='test -s conftest$ac_exeext'
18185
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19967
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18186
  (eval $ac_try) 2>&5
19968
  (eval $ac_try) 2>&5
18187
  ac_status=$?
19969
  ac_status=$?
Lines 18194-18200 Link Here
18194
19976
18195
ac_cv_lib_svld_dlopen=no
19977
ac_cv_lib_svld_dlopen=no
18196
fi
19978
fi
18197
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
19979
rm -f conftest.err conftest.$ac_objext \
19980
      conftest$ac_exeext conftest.$ac_ext
18198
LIBS=$ac_check_lib_save_LIBS
19981
LIBS=$ac_check_lib_save_LIBS
18199
fi
19982
fi
18200
echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
19983
echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
Lines 18210-18216 Link Here
18210
  ac_check_lib_save_LIBS=$LIBS
19993
  ac_check_lib_save_LIBS=$LIBS
18211
LIBS="-ldld  $LIBS"
19994
LIBS="-ldld  $LIBS"
18212
cat >conftest.$ac_ext <<_ACEOF
19995
cat >conftest.$ac_ext <<_ACEOF
18213
#line $LINENO "configure"
18214
/* confdefs.h.  */
19996
/* confdefs.h.  */
18215
_ACEOF
19997
_ACEOF
18216
cat confdefs.h >>conftest.$ac_ext
19998
cat confdefs.h >>conftest.$ac_ext
Lines 18234-18244 Link Here
18234
_ACEOF
20016
_ACEOF
18235
rm -f conftest.$ac_objext conftest$ac_exeext
20017
rm -f conftest.$ac_objext conftest$ac_exeext
18236
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20018
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18237
  (eval $ac_link) 2>&5
20019
  (eval $ac_link) 2>conftest.er1
18238
  ac_status=$?
20020
  ac_status=$?
20021
  grep -v '^ *+' conftest.er1 >conftest.err
20022
  rm -f conftest.er1
20023
  cat conftest.err >&5
18239
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20024
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18240
  (exit $ac_status); } &&
20025
  (exit $ac_status); } &&
18241
         { ac_try='test -s conftest$ac_exeext'
20026
	 { ac_try='test -z "$ac_c_werror_flag"
20027
			 || test ! -s conftest.err'
20028
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20029
  (eval $ac_try) 2>&5
20030
  ac_status=$?
20031
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20032
  (exit $ac_status); }; } &&
20033
	 { ac_try='test -s conftest$ac_exeext'
18242
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20034
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18243
  (eval $ac_try) 2>&5
20035
  (eval $ac_try) 2>&5
18244
  ac_status=$?
20036
  ac_status=$?
Lines 18251-18257 Link Here
18251
20043
18252
ac_cv_lib_dld_dld_link=no
20044
ac_cv_lib_dld_dld_link=no
18253
fi
20045
fi
18254
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
20046
rm -f conftest.err conftest.$ac_objext \
20047
      conftest$ac_exeext conftest.$ac_ext
18255
LIBS=$ac_check_lib_save_LIBS
20048
LIBS=$ac_check_lib_save_LIBS
18256
fi
20049
fi
18257
echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
20050
echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
Lines 18306-18312 Link Here
18306
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
20099
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
18307
  lt_status=$lt_dlunknown
20100
  lt_status=$lt_dlunknown
18308
  cat > conftest.$ac_ext <<EOF
20101
  cat > conftest.$ac_ext <<EOF
18309
#line 18309 "configure"
20102
#line 20102 "configure"
18310
#include "confdefs.h"
20103
#include "confdefs.h"
18311
20104
18312
#if HAVE_DLFCN_H
20105
#if HAVE_DLFCN_H
Lines 18404-18410 Link Here
18404
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
20197
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
18405
  lt_status=$lt_dlunknown
20198
  lt_status=$lt_dlunknown
18406
  cat > conftest.$ac_ext <<EOF
20199
  cat > conftest.$ac_ext <<EOF
18407
#line 18407 "configure"
20200
#line 20200 "configure"
18408
#include "confdefs.h"
20201
#include "confdefs.h"
18409
20202
18410
#if HAVE_DLFCN_H
20203
#if HAVE_DLFCN_H
Lines 18521-18527 Link Here
18521
  # Now quote all the things that may contain metacharacters while being
20314
  # Now quote all the things that may contain metacharacters while being
18522
  # careful not to overquote the AC_SUBSTed values.  We take copies of the
20315
  # careful not to overquote the AC_SUBSTed values.  We take copies of the
18523
  # variables and quote the copies for generation of the libtool script.
20316
  # variables and quote the copies for generation of the libtool script.
18524
  for var in echo old_CC old_CFLAGS AR AR_FLAGS AS EGREP RANLIB LN_S LTCC NM SED SHELL \
20317
  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
20318
    SED SHELL STRIP \
18525
    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
20319
    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18526
    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
20320
    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18527
    deplibs_check_method reload_flag reload_cmds need_locks \
20321
    deplibs_check_method reload_flag reload_cmds need_locks \
Lines 18621-18626 Link Here
18621
# The host system.
20415
# The host system.
18622
host_alias=$host_alias
20416
host_alias=$host_alias
18623
host=$host
20417
host=$host
20418
host_os=$host_os
20419
20420
# The build system.
20421
build_alias=$build_alias
20422
build=$build
20423
build_os=$build_os
18624
20424
18625
# An echo program that does not interpret backslashes.
20425
# An echo program that does not interpret backslashes.
18626
echo=$lt_echo
20426
echo=$lt_echo
Lines 18651-18657 Link Here
18651
NM=$lt_NM
20451
NM=$lt_NM
18652
20452
18653
# A symbol stripping program
20453
# A symbol stripping program
18654
STRIP=$STRIP
20454
STRIP=$lt_STRIP
18655
20455
18656
# Used to examine libraries when file_magic_cmd begins "file"
20456
# Used to examine libraries when file_magic_cmd begins "file"
18657
MAGIC_CMD=$MAGIC_CMD
20457
MAGIC_CMD=$MAGIC_CMD
Lines 18663-18669 Link Here
18663
OBJDUMP="$OBJDUMP"
20463
OBJDUMP="$OBJDUMP"
18664
20464
18665
# Used on cygwin: assembler.
20465
# Used on cygwin: assembler.
18666
AS=$lt_AS
20466
AS="$AS"
18667
20467
18668
# The name of the directory that contains temporary libtool files.
20468
# The name of the directory that contains temporary libtool files.
18669
objdir=$objdir
20469
objdir=$objdir
Lines 18682-18688 Link Here
18682
libext="$libext"
20482
libext="$libext"
18683
20483
18684
# Shared library suffix (normally ".so").
20484
# Shared library suffix (normally ".so").
18685
shrext='$shrext'
20485
shrext_cmds='$shrext_cmds'
18686
20486
18687
# Executable file suffix (normally "").
20487
# Executable file suffix (normally "").
18688
exeext="$exeext"
20488
exeext="$exeext"
Lines 18697-18703 Link Here
18697
# Does compiler simultaneously support -c and -o options?
20497
# Does compiler simultaneously support -c and -o options?
18698
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
20498
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
18699
20499
18700
# Must we lock files when doing compilation ?
20500
# Must we lock files when doing compilation?
18701
need_locks=$lt_need_locks
20501
need_locks=$lt_need_locks
18702
20502
18703
# Do we need the lib prefix for modules?
20503
# Do we need the lib prefix for modules?
Lines 18899-18905 Link Here
18899
  # If there is no Makefile yet, we rely on a make rule to execute
20699
  # If there is no Makefile yet, we rely on a make rule to execute
18900
  # `config.status --recheck' to rerun these tests and create the
20700
  # `config.status --recheck' to rerun these tests and create the
18901
  # libtool script then.
20701
  # libtool script then.
18902
  test -f Makefile && make "$ltmain"
20702
  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
20703
  if test -f "$ltmain_in"; then
20704
    test -f Makefile && make "$ltmain"
20705
  fi
18903
fi
20706
fi
18904
20707
18905
20708
Lines 18942-18952 Link Here
18942
compiler=$CC
20745
compiler=$CC
18943
20746
18944
20747
20748
# save warnings/boilerplate of simple test code
20749
ac_outfile=conftest.$ac_objext
20750
printf "$lt_simple_compile_test_code" >conftest.$ac_ext
20751
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
20752
_lt_compiler_boilerplate=`cat conftest.err`
20753
$rm conftest*
20754
20755
ac_outfile=conftest.$ac_objext
20756
printf "$lt_simple_link_test_code" >conftest.$ac_ext
20757
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
20758
_lt_linker_boilerplate=`cat conftest.err`
20759
$rm conftest*
20760
20761
18945
# Allow CC to be a program name with arguments.
20762
# Allow CC to be a program name with arguments.
18946
lt_save_CC="$CC"
20763
lt_save_CC="$CC"
18947
CC=${RC-"windres"}
20764
CC=${RC-"windres"}
18948
compiler=$CC
20765
compiler=$CC
18949
compiler_RC=$CC
20766
compiler_RC=$CC
20767
for cc_temp in $compiler""; do
20768
  case $cc_temp in
20769
    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
20770
    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
20771
    \-*) ;;
20772
    *) break;;
20773
  esac
20774
done
20775
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
20776
18950
lt_cv_prog_compiler_c_o_RC=yes
20777
lt_cv_prog_compiler_c_o_RC=yes
18951
20778
18952
# The else clause should only fire when bootstrapping the
20779
# The else clause should only fire when bootstrapping the
Lines 18962-18968 Link Here
18962
  # Now quote all the things that may contain metacharacters while being
20789
  # Now quote all the things that may contain metacharacters while being
18963
  # careful not to overquote the AC_SUBSTed values.  We take copies of the
20790
  # careful not to overquote the AC_SUBSTed values.  We take copies of the
18964
  # variables and quote the copies for generation of the libtool script.
20791
  # variables and quote the copies for generation of the libtool script.
18965
  for var in echo old_CC old_CFLAGS AR AR_FLAGS AS EGREP RANLIB LN_S LTCC NM SED SHELL \
20792
  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
20793
    SED SHELL STRIP \
18966
    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
20794
    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18967
    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
20795
    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18968
    deplibs_check_method reload_flag reload_cmds need_locks \
20796
    deplibs_check_method reload_flag reload_cmds need_locks \
Lines 19062-19067 Link Here
19062
# The host system.
20890
# The host system.
19063
host_alias=$host_alias
20891
host_alias=$host_alias
19064
host=$host
20892
host=$host
20893
host_os=$host_os
20894
20895
# The build system.
20896
build_alias=$build_alias
20897
build=$build
20898
build_os=$build_os
19065
20899
19066
# An echo program that does not interpret backslashes.
20900
# An echo program that does not interpret backslashes.
19067
echo=$lt_echo
20901
echo=$lt_echo
Lines 19092-19098 Link Here
19092
NM=$lt_NM
20926
NM=$lt_NM
19093
20927
19094
# A symbol stripping program
20928
# A symbol stripping program
19095
STRIP=$STRIP
20929
STRIP=$lt_STRIP
19096
20930
19097
# Used to examine libraries when file_magic_cmd begins "file"
20931
# Used to examine libraries when file_magic_cmd begins "file"
19098
MAGIC_CMD=$MAGIC_CMD
20932
MAGIC_CMD=$MAGIC_CMD
Lines 19104-19110 Link Here
19104
OBJDUMP="$OBJDUMP"
20938
OBJDUMP="$OBJDUMP"
19105
20939
19106
# Used on cygwin: assembler.
20940
# Used on cygwin: assembler.
19107
AS=$lt_AS
20941
AS="$AS"
19108
20942
19109
# The name of the directory that contains temporary libtool files.
20943
# The name of the directory that contains temporary libtool files.
19110
objdir=$objdir
20944
objdir=$objdir
Lines 19123-19129 Link Here
19123
libext="$libext"
20957
libext="$libext"
19124
20958
19125
# Shared library suffix (normally ".so").
20959
# Shared library suffix (normally ".so").
19126
shrext='$shrext'
20960
shrext_cmds='$shrext_cmds'
19127
20961
19128
# Executable file suffix (normally "").
20962
# Executable file suffix (normally "").
19129
exeext="$exeext"
20963
exeext="$exeext"
Lines 19138-19144 Link Here
19138
# Does compiler simultaneously support -c and -o options?
20972
# Does compiler simultaneously support -c and -o options?
19139
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
20973
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
19140
20974
19141
# Must we lock files when doing compilation ?
20975
# Must we lock files when doing compilation?
19142
need_locks=$lt_need_locks
20976
need_locks=$lt_need_locks
19143
20977
19144
# Do we need the lib prefix for modules?
20978
# Do we need the lib prefix for modules?
Lines 19340-19346 Link Here
19340
  # If there is no Makefile yet, we rely on a make rule to execute
21174
  # If there is no Makefile yet, we rely on a make rule to execute
19341
  # `config.status --recheck' to rerun these tests and create the
21175
  # `config.status --recheck' to rerun these tests and create the
19342
  # libtool script then.
21176
  # libtool script then.
19343
  test -f Makefile && make "$ltmain"
21177
  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
21178
  if test -f "$ltmain_in"; then
21179
    test -f Makefile && make "$ltmain"
21180
  fi
19344
fi
21181
fi
19345
21182
19346
21183
Lines 19418-19424 Link Here
19418
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21255
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19419
21256
19420
21257
19421
PKG_CHECK_MODULES(PKG, sigc++-2.0 >= 2.0 gtkmm-2.4 >= 2.6.0 gnome-vfsmm-2.6 >= 2.5.0)
21258
21259
  succeeded=no
21260
21261
  if test -z "$PKG_CONFIG"; then
21262
    # Extract the first word of "pkg-config", so it can be a program name with args.
21263
set dummy pkg-config; ac_word=$2
21264
echo "$as_me:$LINENO: checking for $ac_word" >&5
21265
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
21266
if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
21267
  echo $ECHO_N "(cached) $ECHO_C" >&6
21268
else
21269
  case $PKG_CONFIG in
21270
  [\\/]* | ?:[\\/]*)
21271
  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
21272
  ;;
21273
  *)
21274
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21275
for as_dir in $PATH
21276
do
21277
  IFS=$as_save_IFS
21278
  test -z "$as_dir" && as_dir=.
21279
  for ac_exec_ext in '' $ac_executable_extensions; do
21280
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21281
    ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
21282
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
21283
    break 2
21284
  fi
21285
done
21286
done
21287
21288
  test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
21289
  ;;
21290
esac
21291
fi
21292
PKG_CONFIG=$ac_cv_path_PKG_CONFIG
21293
21294
if test -n "$PKG_CONFIG"; then
21295
  echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
21296
echo "${ECHO_T}$PKG_CONFIG" >&6
21297
else
21298
  echo "$as_me:$LINENO: result: no" >&5
21299
echo "${ECHO_T}no" >&6
21300
fi
21301
21302
  fi
21303
21304
  if test "$PKG_CONFIG" = "no" ; then
21305
     echo "*** The pkg-config script could not be found. Make sure it is"
21306
     echo "*** in your path, or set the PKG_CONFIG environment variable"
21307
     echo "*** to the full path to pkg-config."
21308
     echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
21309
  else
21310
     PKG_CONFIG_MIN_VERSION=0.9.0
21311
     if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
21312
        echo "$as_me:$LINENO: checking for sigc++-2.0 >= 2.0 gtkmm-2.4 >= 2.6.0 gnome-vfsmm-2.6 >= 2.5.0" >&5
21313
echo $ECHO_N "checking for sigc++-2.0 >= 2.0 gtkmm-2.4 >= 2.6.0 gnome-vfsmm-2.6 >= 2.5.0... $ECHO_C" >&6
21314
21315
        if $PKG_CONFIG --exists "sigc++-2.0 >= 2.0 gtkmm-2.4 >= 2.6.0 gnome-vfsmm-2.6 >= 2.5.0" ; then
21316
            echo "$as_me:$LINENO: result: yes" >&5
21317
echo "${ECHO_T}yes" >&6
21318
            succeeded=yes
21319
21320
            echo "$as_me:$LINENO: checking PKG_CFLAGS" >&5
21321
echo $ECHO_N "checking PKG_CFLAGS... $ECHO_C" >&6
21322
            PKG_CFLAGS=`$PKG_CONFIG --cflags "sigc++-2.0 >= 2.0 gtkmm-2.4 >= 2.6.0 gnome-vfsmm-2.6 >= 2.5.0"`
21323
            echo "$as_me:$LINENO: result: $PKG_CFLAGS" >&5
21324
echo "${ECHO_T}$PKG_CFLAGS" >&6
21325
21326
            echo "$as_me:$LINENO: checking PKG_LIBS" >&5
21327
echo $ECHO_N "checking PKG_LIBS... $ECHO_C" >&6
21328
            PKG_LIBS=`$PKG_CONFIG --libs "sigc++-2.0 >= 2.0 gtkmm-2.4 >= 2.6.0 gnome-vfsmm-2.6 >= 2.5.0"`
21329
            echo "$as_me:$LINENO: result: $PKG_LIBS" >&5
21330
echo "${ECHO_T}$PKG_LIBS" >&6
21331
        else
21332
            PKG_CFLAGS=""
21333
            PKG_LIBS=""
21334
            ## If we have a custom action on failure, don't print errors, but
21335
            ## do set a variable so people can do so.
21336
            PKG_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "sigc++-2.0 >= 2.0 gtkmm-2.4 >= 2.6.0 gnome-vfsmm-2.6 >= 2.5.0"`
21337
            echo $PKG_PKG_ERRORS
21338
        fi
21339
21340
21341
21342
     else
21343
        echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
21344
        echo "*** See http://www.freedesktop.org/software/pkgconfig"
21345
     fi
21346
  fi
21347
21348
  if test $succeeded = yes; then
21349
     :
21350
  else
21351
     { { echo "$as_me:$LINENO: error: Library requirements (sigc++-2.0 >= 2.0 gtkmm-2.4 >= 2.6.0 gnome-vfsmm-2.6 >= 2.5.0) not met; consider adjusting the PKG_CONFIG_PATH environment variable if your libraries are in a nonstandard prefix so pkg-config can find them." >&5
21352
echo "$as_me: error: Library requirements (sigc++-2.0 >= 2.0 gtkmm-2.4 >= 2.6.0 gnome-vfsmm-2.6 >= 2.5.0) not met; consider adjusting the PKG_CONFIG_PATH environment variable if your libraries are in a nonstandard prefix so pkg-config can find them." >&2;}
21353
   { (exit 1); exit 1; }; }
21354
  fi
21355
19422
21356
19423
21357
19424
21358
Lines 19453-19465 Link Here
19453
      # `set' does not quote correctly, so add quotes (double-quote
21387
      # `set' does not quote correctly, so add quotes (double-quote
19454
      # substitution turns \\\\ into \\, and sed turns \\ into \).
21388
      # substitution turns \\\\ into \\, and sed turns \\ into \).
19455
      sed -n \
21389
      sed -n \
19456
        "s/'/'\\\\''/g;
21390
	"s/'/'\\\\''/g;
19457
    	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
21391
	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
19458
      ;;
21392
      ;;
19459
    *)
21393
    *)
19460
      # `set' quotes correctly as required by POSIX, so do not add quotes.
21394
      # `set' quotes correctly as required by POSIX, so do not add quotes.
19461
      sed -n \
21395
      sed -n \
19462
        "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
21396
	"s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
19463
      ;;
21397
      ;;
19464
    esac;
21398
    esac;
19465
} |
21399
} |
Lines 19489-19501 Link Here
19489
# trailing colons and then remove the whole line if VPATH becomes empty
21423
# trailing colons and then remove the whole line if VPATH becomes empty
19490
# (actually we leave an empty line to preserve line numbers).
21424
# (actually we leave an empty line to preserve line numbers).
19491
if test "x$srcdir" = x.; then
21425
if test "x$srcdir" = x.; then
19492
  ac_vpsub='/^[ 	]*VPATH[ 	]*=/{
21426
  ac_vpsub='/^[	 ]*VPATH[	 ]*=/{
19493
s/:*\$(srcdir):*/:/;
21427
s/:*\$(srcdir):*/:/;
19494
s/:*\${srcdir}:*/:/;
21428
s/:*\${srcdir}:*/:/;
19495
s/:*@srcdir@:*/:/;
21429
s/:*@srcdir@:*/:/;
19496
s/^\([^=]*=[ 	]*\):*/\1/;
21430
s/^\([^=]*=[	 ]*\):*/\1/;
19497
s/:*$//;
21431
s/:*$//;
19498
s/^[^=]*=[ 	]*$//;
21432
s/^[^=]*=[	 ]*$//;
19499
}'
21433
}'
19500
fi
21434
fi
19501
21435
Lines 19506-19512 Link Here
19506
for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
21440
for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
19507
  # 1. Remove the extension, and $U if already installed.
21441
  # 1. Remove the extension, and $U if already installed.
19508
  ac_i=`echo "$ac_i" |
21442
  ac_i=`echo "$ac_i" |
19509
         sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
21443
	 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
19510
  # 2. Add them.
21444
  # 2. Add them.
19511
  ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
21445
  ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
19512
  ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
21446
  ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
Lines 19578-19586 Link Here
19578
elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
21512
elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
19579
  set -o posix
21513
  set -o posix
19580
fi
21514
fi
21515
DUALCASE=1; export DUALCASE # for MKS sh
19581
21516
19582
# Support unset when possible.
21517
# Support unset when possible.
19583
if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
21518
if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
19584
  as_unset=unset
21519
  as_unset=unset
19585
else
21520
else
19586
  as_unset=false
21521
  as_unset=false
Lines 19599-19605 Link Here
19599
  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
21534
  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
19600
  LC_TELEPHONE LC_TIME
21535
  LC_TELEPHONE LC_TIME
19601
do
21536
do
19602
  if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
21537
  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
19603
    eval $as_var=C; export $as_var
21538
    eval $as_var=C; export $as_var
19604
  else
21539
  else
19605
    $as_unset $as_var
21540
    $as_unset $as_var
Lines 19778-19793 Link Here
19778
if mkdir -p . 2>/dev/null; then
21713
if mkdir -p . 2>/dev/null; then
19779
  as_mkdir_p=:
21714
  as_mkdir_p=:
19780
else
21715
else
21716
  test -d ./-p && rmdir ./-p
19781
  as_mkdir_p=false
21717
  as_mkdir_p=false
19782
fi
21718
fi
19783
21719
19784
as_executable_p="test -f"
21720
as_executable_p="test -f"
19785
21721
19786
# Sed expression to map a string onto a valid CPP name.
21722
# Sed expression to map a string onto a valid CPP name.
19787
as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
21723
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
19788
21724
19789
# Sed expression to map a string onto a valid variable name.
21725
# Sed expression to map a string onto a valid variable name.
19790
as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
21726
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
19791
21727
19792
21728
19793
# IFS
21729
# IFS
Lines 19814-19820 Link Here
19814
cat >&5 <<_CSEOF
21750
cat >&5 <<_CSEOF
19815
21751
19816
This file was extended by $as_me, which was
21752
This file was extended by $as_me, which was
19817
generated by GNU Autoconf 2.57.  Invocation command line was
21753
generated by GNU Autoconf 2.59.  Invocation command line was
19818
21754
19819
  CONFIG_FILES    = $CONFIG_FILES
21755
  CONFIG_FILES    = $CONFIG_FILES
19820
  CONFIG_HEADERS  = $CONFIG_HEADERS
21756
  CONFIG_HEADERS  = $CONFIG_HEADERS
Lines 19858-19866 Link Here
19858
  -d, --debug      don't remove temporary files
21794
  -d, --debug      don't remove temporary files
19859
      --recheck    update $as_me by reconfiguring in the same conditions
21795
      --recheck    update $as_me by reconfiguring in the same conditions
19860
  --file=FILE[:TEMPLATE]
21796
  --file=FILE[:TEMPLATE]
19861
                   instantiate the configuration file FILE
21797
		   instantiate the configuration file FILE
19862
  --header=FILE[:TEMPLATE]
21798
  --header=FILE[:TEMPLATE]
19863
                   instantiate the configuration header FILE
21799
		   instantiate the configuration header FILE
19864
21800
19865
Configuration files:
21801
Configuration files:
19866
$config_files
21802
$config_files
Lines 19877-19887 Link Here
19877
cat >>$CONFIG_STATUS <<_ACEOF
21813
cat >>$CONFIG_STATUS <<_ACEOF
19878
ac_cs_version="\\
21814
ac_cs_version="\\
19879
config.status
21815
config.status
19880
configured by $0, generated by GNU Autoconf 2.57,
21816
configured by $0, generated by GNU Autoconf 2.59,
19881
  with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
21817
  with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
19882
21818
19883
Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
21819
Copyright (C) 2003 Free Software Foundation, Inc.
19884
Free Software Foundation, Inc.
19885
This config.status script is free software; the Free Software Foundation
21820
This config.status script is free software; the Free Software Foundation
19886
gives unlimited permission to copy, distribute and modify it."
21821
gives unlimited permission to copy, distribute and modify it."
19887
srcdir=$srcdir
21822
srcdir=$srcdir
Lines 20142-20147 Link Here
20142
s,@FFLAGS@,$FFLAGS,;t t
22077
s,@FFLAGS@,$FFLAGS,;t t
20143
s,@ac_ct_F77@,$ac_ct_F77,;t t
22078
s,@ac_ct_F77@,$ac_ct_F77,;t t
20144
s,@LIBTOOL@,$LIBTOOL,;t t
22079
s,@LIBTOOL@,$LIBTOOL,;t t
22080
s,@PKG_CONFIG@,$PKG_CONFIG,;t t
20145
s,@PKG_CFLAGS@,$PKG_CFLAGS,;t t
22081
s,@PKG_CFLAGS@,$PKG_CFLAGS,;t t
20146
s,@PKG_LIBS@,$PKG_LIBS,;t t
22082
s,@PKG_LIBS@,$PKG_LIBS,;t t
20147
s,@LIBOBJS@,$LIBOBJS,;t t
22083
s,@LIBOBJS@,$LIBOBJS,;t t
Lines 20175-20183 Link Here
20175
      (echo ':t
22111
      (echo ':t
20176
  /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
22112
  /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
20177
      if test -z "$ac_sed_cmds"; then
22113
      if test -z "$ac_sed_cmds"; then
20178
  	ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
22114
	ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
20179
      else
22115
      else
20180
  	ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
22116
	ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
20181
      fi
22117
      fi
20182
      ac_sed_frag=`expr $ac_sed_frag + 1`
22118
      ac_sed_frag=`expr $ac_sed_frag + 1`
20183
      ac_beg=$ac_end
22119
      ac_beg=$ac_end
Lines 20195-20215 Link Here
20195
  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
22131
  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
20196
  case $ac_file in
22132
  case $ac_file in
20197
  - | *:- | *:-:* ) # input from stdin
22133
  - | *:- | *:-:* ) # input from stdin
20198
        cat >$tmp/stdin
22134
	cat >$tmp/stdin
20199
        ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
22135
	ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
20200
        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
22136
	ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
20201
  *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
22137
  *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
20202
        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
22138
	ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
20203
  * )   ac_file_in=$ac_file.in ;;
22139
  * )   ac_file_in=$ac_file.in ;;
20204
  esac
22140
  esac
20205
22141
20206
  # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
22142
  # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
20207
  ac_dir=`(dirname "$ac_file") 2>/dev/null ||
22143
  ac_dir=`(dirname "$ac_file") 2>/dev/null ||
20208
$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22144
$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20209
         X"$ac_file" : 'X\(//\)[^/]' \| \
22145
	 X"$ac_file" : 'X\(//\)[^/]' \| \
20210
         X"$ac_file" : 'X\(//\)$' \| \
22146
	 X"$ac_file" : 'X\(//\)$' \| \
20211
         X"$ac_file" : 'X\(/\)' \| \
22147
	 X"$ac_file" : 'X\(/\)' \| \
20212
         .     : '\(.\)' 2>/dev/null ||
22148
	 .     : '\(.\)' 2>/dev/null ||
20213
echo X"$ac_file" |
22149
echo X"$ac_file" |
20214
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22150
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20215
  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22151
  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
Lines 20225-20234 Link Here
20225
      as_dirs="$as_dir $as_dirs"
22161
      as_dirs="$as_dir $as_dirs"
20226
      as_dir=`(dirname "$as_dir") 2>/dev/null ||
22162
      as_dir=`(dirname "$as_dir") 2>/dev/null ||
20227
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22163
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20228
         X"$as_dir" : 'X\(//\)[^/]' \| \
22164
	 X"$as_dir" : 'X\(//\)[^/]' \| \
20229
         X"$as_dir" : 'X\(//\)$' \| \
22165
	 X"$as_dir" : 'X\(//\)$' \| \
20230
         X"$as_dir" : 'X\(/\)' \| \
22166
	 X"$as_dir" : 'X\(/\)' \| \
20231
         .     : '\(.\)' 2>/dev/null ||
22167
	 .     : '\(.\)' 2>/dev/null ||
20232
echo X"$as_dir" |
22168
echo X"$as_dir" |
20233
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22169
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20234
  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22170
  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
Lines 20266-20277 Link Here
20266
    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
22202
    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
20267
    ac_top_srcdir=$ac_top_builddir$srcdir ;;
22203
    ac_top_srcdir=$ac_top_builddir$srcdir ;;
20268
esac
22204
esac
20269
# Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
22205
20270
# absolute.
22206
# Do not use `cd foo && pwd` to compute absolute paths, because
20271
ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
22207
# the directories may not exist.
20272
ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
22208
case `pwd` in
20273
ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
22209
.) ac_abs_builddir="$ac_dir";;
20274
ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
22210
*)
22211
  case "$ac_dir" in
22212
  .) ac_abs_builddir=`pwd`;;
22213
  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
22214
  *) ac_abs_builddir=`pwd`/"$ac_dir";;
22215
  esac;;
22216
esac
22217
case $ac_abs_builddir in
22218
.) ac_abs_top_builddir=${ac_top_builddir}.;;
22219
*)
22220
  case ${ac_top_builddir}. in
22221
  .) ac_abs_top_builddir=$ac_abs_builddir;;
22222
  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
22223
  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
22224
  esac;;
22225
esac
22226
case $ac_abs_builddir in
22227
.) ac_abs_srcdir=$ac_srcdir;;
22228
*)
22229
  case $ac_srcdir in
22230
  .) ac_abs_srcdir=$ac_abs_builddir;;
22231
  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
22232
  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
22233
  esac;;
22234
esac
22235
case $ac_abs_builddir in
22236
.) ac_abs_top_srcdir=$ac_top_srcdir;;
22237
*)
22238
  case $ac_top_srcdir in
22239
  .) ac_abs_top_srcdir=$ac_abs_builddir;;
22240
  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
22241
  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
22242
  esac;;
22243
esac
20275
22244
20276
22245
20277
  case $INSTALL in
22246
  case $INSTALL in
Lines 20293-20299 Link Here
20293
    configure_input="$ac_file.  "
22262
    configure_input="$ac_file.  "
20294
  fi
22263
  fi
20295
  configure_input=$configure_input"Generated from `echo $ac_file_in |
22264
  configure_input=$configure_input"Generated from `echo $ac_file_in |
20296
                                     sed 's,.*/,,'` by configure."
22265
				     sed 's,.*/,,'` by configure."
20297
22266
20298
  # First look for the input files in the build tree, otherwise in the
22267
  # First look for the input files in the build tree, otherwise in the
20299
  # src tree.
22268
  # src tree.
Lines 20302-20325 Link Here
20302
      case $f in
22271
      case $f in
20303
      -) echo $tmp/stdin ;;
22272
      -) echo $tmp/stdin ;;
20304
      [\\/$]*)
22273
      [\\/$]*)
20305
         # Absolute (can't be DOS-style, as IFS=:)
22274
	 # Absolute (can't be DOS-style, as IFS=:)
20306
         test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
22275
	 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
20307
echo "$as_me: error: cannot find input file: $f" >&2;}
22276
echo "$as_me: error: cannot find input file: $f" >&2;}
20308
   { (exit 1); exit 1; }; }
22277
   { (exit 1); exit 1; }; }
20309
         echo $f;;
22278
	 echo "$f";;
20310
      *) # Relative
22279
      *) # Relative
20311
         if test -f "$f"; then
22280
	 if test -f "$f"; then
20312
           # Build tree
22281
	   # Build tree
20313
           echo $f
22282
	   echo "$f"
20314
         elif test -f "$srcdir/$f"; then
22283
	 elif test -f "$srcdir/$f"; then
20315
           # Source tree
22284
	   # Source tree
20316
           echo $srcdir/$f
22285
	   echo "$srcdir/$f"
20317
         else
22286
	 else
20318
           # /dev/null tree
22287
	   # /dev/null tree
20319
           { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
22288
	   { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
20320
echo "$as_me: error: cannot find input file: $f" >&2;}
22289
echo "$as_me: error: cannot find input file: $f" >&2;}
20321
   { (exit 1); exit 1; }; }
22290
   { (exit 1); exit 1; }; }
20322
         fi;;
22291
	 fi;;
20323
      esac
22292
      esac
20324
    done` || { (exit 1); exit 1; }
22293
    done` || { (exit 1); exit 1; }
20325
_ACEOF
22294
_ACEOF
Lines 20361-20372 Link Here
20361
# NAME is the cpp macro being defined and VALUE is the value it is being given.
22330
# NAME is the cpp macro being defined and VALUE is the value it is being given.
20362
#
22331
#
20363
# ac_d sets the value in "#define NAME VALUE" lines.
22332
# ac_d sets the value in "#define NAME VALUE" lines.
20364
ac_dA='s,^\([ 	]*\)#\([ 	]*define[ 	][ 	]*\)'
22333
ac_dA='s,^\([	 ]*\)#\([	 ]*define[	 ][	 ]*\)'
20365
ac_dB='[ 	].*$,\1#\2'
22334
ac_dB='[	 ].*$,\1#\2'
20366
ac_dC=' '
22335
ac_dC=' '
20367
ac_dD=',;t'
22336
ac_dD=',;t'
20368
# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
22337
# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
20369
ac_uA='s,^\([ 	]*\)#\([ 	]*\)undef\([ 	][ 	]*\)'
22338
ac_uA='s,^\([	 ]*\)#\([	 ]*\)undef\([	 ][	 ]*\)'
20370
ac_uB='$,\1#\2define\3'
22339
ac_uB='$,\1#\2define\3'
20371
ac_uC=' '
22340
ac_uC=' '
20372
ac_uD=',;t'
22341
ac_uD=',;t'
Lines 20375-20385 Link Here
20375
  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
22344
  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
20376
  case $ac_file in
22345
  case $ac_file in
20377
  - | *:- | *:-:* ) # input from stdin
22346
  - | *:- | *:-:* ) # input from stdin
20378
        cat >$tmp/stdin
22347
	cat >$tmp/stdin
20379
        ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
22348
	ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
20380
        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
22349
	ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
20381
  *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
22350
  *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
20382
        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
22351
	ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
20383
  * )   ac_file_in=$ac_file.in ;;
22352
  * )   ac_file_in=$ac_file.in ;;
20384
  esac
22353
  esac
20385
22354
Lines 20393-20420 Link Here
20393
      case $f in
22362
      case $f in
20394
      -) echo $tmp/stdin ;;
22363
      -) echo $tmp/stdin ;;
20395
      [\\/$]*)
22364
      [\\/$]*)
20396
         # Absolute (can't be DOS-style, as IFS=:)
22365
	 # Absolute (can't be DOS-style, as IFS=:)
20397
         test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
22366
	 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
20398
echo "$as_me: error: cannot find input file: $f" >&2;}
22367
echo "$as_me: error: cannot find input file: $f" >&2;}
20399
   { (exit 1); exit 1; }; }
22368
   { (exit 1); exit 1; }; }
20400
         echo $f;;
22369
	 # Do quote $f, to prevent DOS paths from being IFS'd.
22370
	 echo "$f";;
20401
      *) # Relative
22371
      *) # Relative
20402
         if test -f "$f"; then
22372
	 if test -f "$f"; then
20403
           # Build tree
22373
	   # Build tree
20404
           echo $f
22374
	   echo "$f"
20405
         elif test -f "$srcdir/$f"; then
22375
	 elif test -f "$srcdir/$f"; then
20406
           # Source tree
22376
	   # Source tree
20407
           echo $srcdir/$f
22377
	   echo "$srcdir/$f"
20408
         else
22378
	 else
20409
           # /dev/null tree
22379
	   # /dev/null tree
20410
           { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
22380
	   { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
20411
echo "$as_me: error: cannot find input file: $f" >&2;}
22381
echo "$as_me: error: cannot find input file: $f" >&2;}
20412
   { (exit 1); exit 1; }; }
22382
   { (exit 1); exit 1; }; }
20413
         fi;;
22383
	 fi;;
20414
      esac
22384
      esac
20415
    done` || { (exit 1); exit 1; }
22385
    done` || { (exit 1); exit 1; }
20416
  # Remove the trailing spaces.
22386
  # Remove the trailing spaces.
20417
  sed 's/[ 	]*$//' $ac_file_inputs >$tmp/in
22387
  sed 's/[	 ]*$//' $ac_file_inputs >$tmp/in
20418
22388
20419
_ACEOF
22389
_ACEOF
20420
22390
Lines 20437-20445 Link Here
20437
s,[\\$`],\\&,g
22407
s,[\\$`],\\&,g
20438
t clear
22408
t clear
20439
: clear
22409
: clear
20440
s,^[ 	]*#[ 	]*define[ 	][ 	]*\([^ 	(][^ 	(]*\)\(([^)]*)\)[ 	]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
22410
s,^[	 ]*#[	 ]*define[	 ][	 ]*\([^	 (][^	 (]*\)\(([^)]*)\)[	 ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
20441
t end
22411
t end
20442
s,^[ 	]*#[ 	]*define[ 	][ 	]*\([^ 	][^ 	]*\)[ 	]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
22412
s,^[	 ]*#[	 ]*define[	 ][	 ]*\([^	 ][^	 ]*\)[	 ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
20443
: end
22413
: end
20444
_ACEOF
22414
_ACEOF
20445
# If some macros were called several times there might be several times
22415
# If some macros were called several times there might be several times
Lines 20453-20465 Link Here
20453
# example, in the case of _POSIX_SOURCE, which is predefined and required
22423
# example, in the case of _POSIX_SOURCE, which is predefined and required
20454
# on some systems where configure will not decide to define it.
22424
# on some systems where configure will not decide to define it.
20455
cat >>conftest.undefs <<\_ACEOF
22425
cat >>conftest.undefs <<\_ACEOF
20456
s,^[ 	]*#[ 	]*undef[ 	][ 	]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
22426
s,^[	 ]*#[	 ]*undef[	 ][	 ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
20457
_ACEOF
22427
_ACEOF
20458
22428
20459
# Break up conftest.defines because some shells have a limit on the size
22429
# Break up conftest.defines because some shells have a limit on the size
20460
# of here documents, and old seds have small limits too (100 cmds).
22430
# of here documents, and old seds have small limits too (100 cmds).
20461
echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
22431
echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
20462
echo '  if grep "^[ 	]*#[ 	]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
22432
echo '  if grep "^[	 ]*#[	 ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
20463
echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
22433
echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
20464
echo '  :' >>$CONFIG_STATUS
22434
echo '  :' >>$CONFIG_STATUS
20465
rm -f conftest.tail
22435
rm -f conftest.tail
Lines 20468-20474 Link Here
20468
  # Write a limited-size here document to $tmp/defines.sed.
22438
  # Write a limited-size here document to $tmp/defines.sed.
20469
  echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
22439
  echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
20470
  # Speed up: don't consider the non `#define' lines.
22440
  # Speed up: don't consider the non `#define' lines.
20471
  echo '/^[ 	]*#[ 	]*define/!b' >>$CONFIG_STATUS
22441
  echo '/^[	 ]*#[	 ]*define/!b' >>$CONFIG_STATUS
20472
  # Work around the forget-to-reset-the-flag bug.
22442
  # Work around the forget-to-reset-the-flag bug.
20473
  echo 't clr' >>$CONFIG_STATUS
22443
  echo 't clr' >>$CONFIG_STATUS
20474
  echo ': clr' >>$CONFIG_STATUS
22444
  echo ': clr' >>$CONFIG_STATUS
Lines 20495-20501 Link Here
20495
  # Write a limited-size here document to $tmp/undefs.sed.
22465
  # Write a limited-size here document to $tmp/undefs.sed.
20496
  echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
22466
  echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
20497
  # Speed up: don't consider the non `#undef'
22467
  # Speed up: don't consider the non `#undef'
20498
  echo '/^[ 	]*#[ 	]*undef/!b' >>$CONFIG_STATUS
22468
  echo '/^[	 ]*#[	 ]*undef/!b' >>$CONFIG_STATUS
20499
  # Work around the forget-to-reset-the-flag bug.
22469
  # Work around the forget-to-reset-the-flag bug.
20500
  echo 't clr' >>$CONFIG_STATUS
22470
  echo 't clr' >>$CONFIG_STATUS
20501
  echo ': clr' >>$CONFIG_STATUS
22471
  echo ': clr' >>$CONFIG_STATUS
Lines 20529-20538 Link Here
20529
    else
22499
    else
20530
      ac_dir=`(dirname "$ac_file") 2>/dev/null ||
22500
      ac_dir=`(dirname "$ac_file") 2>/dev/null ||
20531
$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22501
$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20532
         X"$ac_file" : 'X\(//\)[^/]' \| \
22502
	 X"$ac_file" : 'X\(//\)[^/]' \| \
20533
         X"$ac_file" : 'X\(//\)$' \| \
22503
	 X"$ac_file" : 'X\(//\)$' \| \
20534
         X"$ac_file" : 'X\(/\)' \| \
22504
	 X"$ac_file" : 'X\(/\)' \| \
20535
         .     : '\(.\)' 2>/dev/null ||
22505
	 .     : '\(.\)' 2>/dev/null ||
20536
echo X"$ac_file" |
22506
echo X"$ac_file" |
20537
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22507
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20538
  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22508
  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
Lines 20548-20557 Link Here
20548
      as_dirs="$as_dir $as_dirs"
22518
      as_dirs="$as_dir $as_dirs"
20549
      as_dir=`(dirname "$as_dir") 2>/dev/null ||
22519
      as_dir=`(dirname "$as_dir") 2>/dev/null ||
20550
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22520
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20551
         X"$as_dir" : 'X\(//\)[^/]' \| \
22521
	 X"$as_dir" : 'X\(//\)[^/]' \| \
20552
         X"$as_dir" : 'X\(//\)$' \| \
22522
	 X"$as_dir" : 'X\(//\)$' \| \
20553
         X"$as_dir" : 'X\(/\)' \| \
22523
	 X"$as_dir" : 'X\(/\)' \| \
20554
         .     : '\(.\)' 2>/dev/null ||
22524
	 .     : '\(.\)' 2>/dev/null ||
20555
echo X"$as_dir" |
22525
echo X"$as_dir" |
20556
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22526
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20557
  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22527
  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
Lines 20583-20592 Link Here
20583
done
22553
done
20584
echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
22554
echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
20585
$as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22555
$as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20586
         X$ac_file : 'X\(//\)[^/]' \| \
22556
	 X$ac_file : 'X\(//\)[^/]' \| \
20587
         X$ac_file : 'X\(//\)$' \| \
22557
	 X$ac_file : 'X\(//\)$' \| \
20588
         X$ac_file : 'X\(/\)' \| \
22558
	 X$ac_file : 'X\(/\)' \| \
20589
         .     : '\(.\)' 2>/dev/null ||
22559
	 .     : '\(.\)' 2>/dev/null ||
20590
echo X$ac_file |
22560
echo X$ac_file |
20591
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22561
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20592
  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22562
  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
Lines 20605-20620 Link Here
20605
  ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
22575
  ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
20606
  ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
22576
  ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
20607
$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22577
$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20608
         X"$ac_dest" : 'X\(//\)[^/]' \| \
22578
	 X"$ac_dest" : 'X\(//\)[^/]' \| \
20609
         X"$ac_dest" : 'X\(//\)$' \| \
22579
	 X"$ac_dest" : 'X\(//\)$' \| \
20610
         X"$ac_dest" : 'X\(/\)' \| \
22580
	 X"$ac_dest" : 'X\(/\)' \| \
20611
         .     : '\(.\)' 2>/dev/null ||
22581
	 .     : '\(.\)' 2>/dev/null ||
20612
echo X"$ac_dest" |
22582
echo X"$ac_dest" |
20613
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22583
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20614
  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22584
  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20615
  	  /^X\(\/\/\)$/{ s//\1/; q; }
22585
  	  /^X\(\/\/\)$/{ s//\1/; q; }
20616
  	  /^X\(\/\).*/{ s//\1/; q; }
22586
  	  /^X\(\/\).*/{ s//\1/; q; }
20617
  	  s/.*/./; q'`
22587
  	  s/.*/./; q'`
22588
  { if $as_mkdir_p; then
22589
    mkdir -p "$ac_dir"
22590
  else
22591
    as_dir="$ac_dir"
22592
    as_dirs=
22593
    while test ! -d "$as_dir"; do
22594
      as_dirs="$as_dir $as_dirs"
22595
      as_dir=`(dirname "$as_dir") 2>/dev/null ||
22596
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22597
	 X"$as_dir" : 'X\(//\)[^/]' \| \
22598
	 X"$as_dir" : 'X\(//\)$' \| \
22599
	 X"$as_dir" : 'X\(/\)' \| \
22600
	 .     : '\(.\)' 2>/dev/null ||
22601
echo X"$as_dir" |
22602
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22603
  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22604
  	  /^X\(\/\/\)$/{ s//\1/; q; }
22605
  	  /^X\(\/\).*/{ s//\1/; q; }
22606
  	  s/.*/./; q'`
22607
    done
22608
    test ! -n "$as_dirs" || mkdir $as_dirs
22609
  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
22610
echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
22611
   { (exit 1); exit 1; }; }; }
22612
20618
  ac_builddir=.
22613
  ac_builddir=.
20619
22614
20620
if test "$ac_dir" != .; then
22615
if test "$ac_dir" != .; then
Lines 20640-20651 Link Here
20640
    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
22635
    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
20641
    ac_top_srcdir=$ac_top_builddir$srcdir ;;
22636
    ac_top_srcdir=$ac_top_builddir$srcdir ;;
20642
esac
22637
esac
20643
# Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
22638
20644
# absolute.
22639
# Do not use `cd foo && pwd` to compute absolute paths, because
20645
ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
22640
# the directories may not exist.
20646
ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
22641
case `pwd` in
20647
ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
22642
.) ac_abs_builddir="$ac_dir";;
20648
ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
22643
*)
22644
  case "$ac_dir" in
22645
  .) ac_abs_builddir=`pwd`;;
22646
  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
22647
  *) ac_abs_builddir=`pwd`/"$ac_dir";;
22648
  esac;;
22649
esac
22650
case $ac_abs_builddir in
22651
.) ac_abs_top_builddir=${ac_top_builddir}.;;
22652
*)
22653
  case ${ac_top_builddir}. in
22654
  .) ac_abs_top_builddir=$ac_abs_builddir;;
22655
  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
22656
  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
22657
  esac;;
22658
esac
22659
case $ac_abs_builddir in
22660
.) ac_abs_srcdir=$ac_srcdir;;
22661
*)
22662
  case $ac_srcdir in
22663
  .) ac_abs_srcdir=$ac_abs_builddir;;
22664
  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
22665
  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
22666
  esac;;
22667
esac
22668
case $ac_abs_builddir in
22669
.) ac_abs_top_srcdir=$ac_top_srcdir;;
22670
*)
22671
  case $ac_top_srcdir in
22672
  .) ac_abs_top_srcdir=$ac_abs_builddir;;
22673
  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
22674
  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
22675
  esac;;
22676
esac
20649
22677
20650
22678
20651
  { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
22679
  { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
Lines 20663-20672 Link Here
20663
  if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
22691
  if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
20664
    dirpart=`(dirname "$mf") 2>/dev/null ||
22692
    dirpart=`(dirname "$mf") 2>/dev/null ||
20665
$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22693
$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20666
         X"$mf" : 'X\(//\)[^/]' \| \
22694
	 X"$mf" : 'X\(//\)[^/]' \| \
20667
         X"$mf" : 'X\(//\)$' \| \
22695
	 X"$mf" : 'X\(//\)$' \| \
20668
         X"$mf" : 'X\(/\)' \| \
22696
	 X"$mf" : 'X\(/\)' \| \
20669
         .     : '\(.\)' 2>/dev/null ||
22697
	 .     : '\(.\)' 2>/dev/null ||
20670
echo X"$mf" |
22698
echo X"$mf" |
20671
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22699
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20672
  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22700
  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
Lines 20702-20711 Link Here
20702
    test -f "$dirpart/$file" && continue
22730
    test -f "$dirpart/$file" && continue
20703
    fdir=`(dirname "$file") 2>/dev/null ||
22731
    fdir=`(dirname "$file") 2>/dev/null ||
20704
$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22732
$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20705
         X"$file" : 'X\(//\)[^/]' \| \
22733
	 X"$file" : 'X\(//\)[^/]' \| \
20706
         X"$file" : 'X\(//\)$' \| \
22734
	 X"$file" : 'X\(//\)$' \| \
20707
         X"$file" : 'X\(/\)' \| \
22735
	 X"$file" : 'X\(/\)' \| \
20708
         .     : '\(.\)' 2>/dev/null ||
22736
	 .     : '\(.\)' 2>/dev/null ||
20709
echo X"$file" |
22737
echo X"$file" |
20710
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22738
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20711
  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22739
  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
Lines 20721-20730 Link Here
20721
      as_dirs="$as_dir $as_dirs"
22749
      as_dirs="$as_dir $as_dirs"
20722
      as_dir=`(dirname "$as_dir") 2>/dev/null ||
22750
      as_dir=`(dirname "$as_dir") 2>/dev/null ||
20723
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22751
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20724
         X"$as_dir" : 'X\(//\)[^/]' \| \
22752
	 X"$as_dir" : 'X\(//\)[^/]' \| \
20725
         X"$as_dir" : 'X\(//\)$' \| \
22753
	 X"$as_dir" : 'X\(//\)$' \| \
20726
         X"$as_dir" : 'X\(/\)' \| \
22754
	 X"$as_dir" : 'X\(/\)' \| \
20727
         .     : '\(.\)' 2>/dev/null ||
22755
	 .     : '\(.\)' 2>/dev/null ||
20728
echo X"$as_dir" |
22756
echo X"$as_dir" |
20729
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22757
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20730
  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22758
  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
(-)darimasen-0.0.8/ltmain.sh (-553 / +866 lines)
Lines 1-7 Link Here
1
# ltmain.sh - Provide generalized library-building support services.
1
# ltmain.sh - Provide generalized library-building support services.
2
# NOTE: Changing this file will not affect anything until you rerun configure.
2
# NOTE: Changing this file will not affect anything until you rerun configure.
3
#
3
#
4
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003
4
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005
5
# Free Software Foundation, Inc.
5
# Free Software Foundation, Inc.
6
# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
6
# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
7
#
7
#
Lines 17-29 Link Here
17
#
17
#
18
# You should have received a copy of the GNU General Public License
18
# You should have received a copy of the GNU General Public License
19
# along with this program; if not, write to the Free Software
19
# along with this program; if not, write to the Free Software
20
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
20
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
21
#
21
#
22
# As a special exception to the GNU General Public License, if you
22
# As a special exception to the GNU General Public License, if you
23
# distribute this file as part of a program that contains a
23
# distribute this file as part of a program that contains a
24
# configuration script generated by Autoconf, you may include it under
24
# configuration script generated by Autoconf, you may include it under
25
# the same distribution terms that you use for the rest of that program.
25
# the same distribution terms that you use for the rest of that program.
26
26
27
basename="s,^.*/,,g"
28
29
# Work around backward compatibility issue on IRIX 6.5. On IRIX 6.4+, sh
30
# is ksh but when the shell is invoked as "sh" and the current value of
31
# the _XPG environment variable is not equal to 1 (one), the special
32
# positional parameter $0, within a function call, is the name of the
33
# function.
34
progpath="$0"
35
36
# define SED for historic ltconfig's generated by Libtool 1.3
37
test -z "$SED" && SED=sed
38
39
# The name of this program:
40
progname=`echo "$progpath" | $SED $basename`
41
modename="$progname"
42
43
# Global variables:
44
EXIT_SUCCESS=0
45
EXIT_FAILURE=1
46
47
PROGRAM=ltmain.sh
48
PACKAGE=libtool
49
VERSION=1.5.18
50
TIMESTAMP=" (1.1220.2.246 2005/05/16 10:00:18)"
51
52
# See if we are running on zsh, and set the options which allow our
53
# commands through without removal of \ escapes.
54
if test -n "${ZSH_VERSION+set}" ; then
55
  setopt NO_GLOB_SUBST
56
fi
57
# Same for EGREP, and just to be sure, do LTCC as well
58
if test "X$EGREP" = X ; then
59
    EGREP=egrep
60
fi
61
if test "X$LTCC" = X ; then
62
    LTCC=${CC-gcc}
63
fi
64
27
# Check that we have a working $echo.
65
# Check that we have a working $echo.
28
if test "X$1" = X--no-reexec; then
66
if test "X$1" = X--no-reexec; then
29
  # Discard the --no-reexec flag, and continue.
67
  # Discard the --no-reexec flag, and continue.
Lines 36-42 Link Here
36
  :
74
  :
37
else
75
else
38
  # Restart under the correct shell, and then maybe $echo will work.
76
  # Restart under the correct shell, and then maybe $echo will work.
39
  exec $SHELL "$0" --no-reexec ${1+"$@"}
77
  exec $SHELL "$progpath" --no-reexec ${1+"$@"}
40
fi
78
fi
41
79
42
if test "X$1" = X--fallback-echo; then
80
if test "X$1" = X--fallback-echo; then
Lines 45-63 Link Here
45
  cat <<EOF
83
  cat <<EOF
46
$*
84
$*
47
EOF
85
EOF
48
  exit 0
86
  exit $EXIT_SUCCESS
49
fi
87
fi
50
88
51
# The name of this program.
52
progname=`$echo "$0" | ${SED} 's%^.*/%%'`
53
modename="$progname"
54
55
# Constants.
56
PROGRAM=ltmain.sh
57
PACKAGE=libtool
58
VERSION=1.5
59
TIMESTAMP=" (1.1220.2.1 2003/04/14 22:48:00)"
60
61
default_mode=
89
default_mode=
62
help="Try \`$progname --help' for more information."
90
help="Try \`$progname --help' for more information."
63
magic="%%%MAGIC variable%%%"
91
magic="%%%MAGIC variable%%%"
Lines 70-77 Link Here
70
Xsed="${SED}"' -e 1s/^X//'
98
Xsed="${SED}"' -e 1s/^X//'
71
sed_quote_subst='s/\([\\`\\"$\\\\]\)/\\\1/g'
99
sed_quote_subst='s/\([\\`\\"$\\\\]\)/\\\1/g'
72
# test EBCDIC or ASCII
100
# test EBCDIC or ASCII
73
case `echo A|od -x` in
101
case `echo A|tr A '\301'` in
74
 *[Cc]1*) # EBCDIC based system
102
 A) # EBCDIC based system
75
  SP2NL="tr '\100' '\n'"
103
  SP2NL="tr '\100' '\n'"
76
  NL2SP="tr '\r\n' '\100\100'"
104
  NL2SP="tr '\r\n' '\100\100'"
77
  ;;
105
  ;;
Lines 94-105 Link Here
94
fi
122
fi
95
123
96
# Make sure IFS has a sensible default
124
# Make sure IFS has a sensible default
97
: ${IFS=" 	"}
125
lt_nl='
126
'
127
IFS=" 	$lt_nl"
98
128
99
if test "$build_libtool_libs" != yes && test "$build_old_libs" != yes; then
129
if test "$build_libtool_libs" != yes && test "$build_old_libs" != yes; then
100
  $echo "$modename: not configured to build any kind of library" 1>&2
130
  $echo "$modename: not configured to build any kind of library" 1>&2
101
  $echo "Fatal configuration error.  See the $PACKAGE docs for more information." 1>&2
131
  $echo "Fatal configuration error.  See the $PACKAGE docs for more information." 1>&2
102
  exit 1
132
  exit $EXIT_FAILURE
103
fi
133
fi
104
134
105
# Global variables.
135
# Global variables.
Lines 113-127 Link Here
113
execute_dlfiles=
143
execute_dlfiles=
114
lo2o="s/\\.lo\$/.${objext}/"
144
lo2o="s/\\.lo\$/.${objext}/"
115
o2lo="s/\\.${objext}\$/.lo/"
145
o2lo="s/\\.${objext}\$/.lo/"
146
quote_scanset='[[~#^*{};<>?'"'"' 	]'
147
148
if test -z "$max_cmd_len"; then
149
  i=0
150
  testring="ABCD"
151
  new_result=
152
  
153
  # If test is not a shell built-in, we'll probably end up computing a
154
  # maximum length that is only half of the actual maximum length, but
155
  # we can't tell.
156
  while (test "X"`$SHELL $0 --fallback-echo "X$testring" 2>/dev/null` \
157
             = "XX$testring") >/dev/null 2>&1 &&
158
          new_result=`expr "X$testring" : ".*" 2>&1` &&
159
          max_cmd_len="$new_result" &&
160
          test "$i" != 17 # 1/2 MB should be enough
161
  do
162
    i=`expr $i + 1`
163
    testring="$testring$testring"
164
  done
165
  testring=
166
  # Add a significant safety factor because C++ compilers can tack on massive
167
  # amounts of additional arguments before passing them to the linker.
168
  # It appears as though 1/2 is a usable value.
169
  max_cmd_len=`expr $max_cmd_len \/ 2`
170
fi
116
171
117
#####################################
172
#####################################
118
# Shell function definitions:
173
# Shell function definitions:
119
# This seems to be the best place for them
174
# This seems to be the best place for them
120
175
176
# func_win32_libid arg
177
# return the library type of file 'arg'
178
#
121
# Need a lot of goo to handle *both* DLLs and import libs
179
# Need a lot of goo to handle *both* DLLs and import libs
122
# Has to be a shell function in order to 'eat' the argument
180
# Has to be a shell function in order to 'eat' the argument
123
# that is supplied when $file_magic_command is called.
181
# that is supplied when $file_magic_command is called.
124
win32_libid () {
182
func_win32_libid ()
183
{
125
  win32_libid_type="unknown"
184
  win32_libid_type="unknown"
126
  win32_fileres=`file -L $1 2>/dev/null`
185
  win32_fileres=`file -L $1 2>/dev/null`
127
  case $win32_fileres in
186
  case $win32_fileres in
Lines 130-136 Link Here
130
    ;;
189
    ;;
131
  *ar\ archive*) # could be an import, or static
190
  *ar\ archive*) # could be an import, or static
132
    if eval $OBJDUMP -f $1 | $SED -e '10q' 2>/dev/null | \
191
    if eval $OBJDUMP -f $1 | $SED -e '10q' 2>/dev/null | \
133
      grep -E 'file format pe-i386(.*architecture: i386)?' >/dev/null ; then
192
      $EGREP -e 'file format pe-i386(.*architecture: i386)?' >/dev/null ; then
134
      win32_nmres=`eval $NM -f posix -A $1 | \
193
      win32_nmres=`eval $NM -f posix -A $1 | \
135
	sed -n -e '1,100{/ I /{x;/import/!{s/^/import/;h;p;};x;};}'`
194
	sed -n -e '1,100{/ I /{x;/import/!{s/^/import/;h;p;};x;};}'`
136
      if test "X$win32_nmres" = "Ximport" ; then
195
      if test "X$win32_nmres" = "Ximport" ; then
Lines 140-146 Link Here
140
      fi
199
      fi
141
    fi
200
    fi
142
    ;;
201
    ;;
143
  *DLL*) 
202
  *DLL*)
144
    win32_libid_type="x86 DLL"
203
    win32_libid_type="x86 DLL"
145
    ;;
204
    ;;
146
  *executable*) # but shell scripts are "executable" too...
205
  *executable*) # but shell scripts are "executable" too...
Lines 154-162 Link Here
154
  $echo $win32_libid_type
213
  $echo $win32_libid_type
155
}
214
}
156
215
216
217
# func_infer_tag arg
218
# Infer tagged configuration to use if any are available and
219
# if one wasn't chosen via the "--tag" command line option.
220
# Only attempt this if the compiler in the base compile
221
# command doesn't match the default compiler.
222
# arg is usually of the form 'gcc ...'
223
func_infer_tag ()
224
{
225
    if test -n "$available_tags" && test -z "$tagname"; then
226
      CC_quoted=
227
      for arg in $CC; do
228
	case $arg in
229
	  *$quote_scanset* | *]* | *\|* | *\&* | *\(* | *\)* | "")
230
	  arg="\"$arg\""
231
	  ;;
232
	esac
233
	CC_quoted="$CC_quoted $arg"
234
      done
235
      case $@ in
236
      # Blanks in the command may have been stripped by the calling shell,
237
      # but not from the CC environment variable when configure was run.
238
      " $CC "* | "$CC "* | " `$echo $CC` "* | "`$echo $CC` "* | " $CC_quoted"* | "$CC_quoted "* | " `$echo $CC_quoted` "* | "`$echo $CC_quoted` "*) ;;
239
      # Blanks at the start of $base_compile will cause this to fail
240
      # if we don't check for them as well.
241
      *)
242
	for z in $available_tags; do
243
	  if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $z$" < "$progpath" > /dev/null; then
244
	    # Evaluate the configuration.
245
	    eval "`${SED} -n -e '/^# ### BEGIN LIBTOOL TAG CONFIG: '$z'$/,/^# ### END LIBTOOL TAG CONFIG: '$z'$/p' < $progpath`"
246
	    CC_quoted=
247
	    for arg in $CC; do
248
	    # Double-quote args containing other shell metacharacters.
249
	    case $arg in
250
	      *$quote_scanset* | *]* | *\|* | *\&* | *\(* | *\)* | "")
251
	      arg="\"$arg\""
252
	      ;;
253
	    esac
254
	    CC_quoted="$CC_quoted $arg"
255
	  done
256
	    # user sometimes does CC=<HOST>-gcc so we need to match that to 'gcc'
257
	    trimedcc=`echo ${CC} | $SED -e "s/${host}-//g"`
258
	    # and sometimes libtool has CC=<HOST>-gcc but user does CC=gcc
259
	    extendcc=${host}-${CC}
260
	    case "$@ " in
261
	      "cc "* | " cc "* | "${host}-cc "* | " ${host}-cc "*|\
262
	      "gcc "* | " gcc "* | "${host}-gcc "* | " ${host}-gcc "*)
263
	      tagname=CC
264
	      break ;;
265
	      "$trimedcc "* | " $trimedcc "* | "`$echo $trimedcc` "* | " `$echo $trimedcc` "*|\
266
	      "$extendcc "* | " $extendcc "* | "`$echo $extendcc` "* | " `$echo $extendcc` "*|\
267
	      " $CC "* | "$CC "* | " `$echo $CC` "* | "`$echo $CC` "* | " $CC_quoted"* | "$CC_quoted "* | " `$echo $CC_quoted` "* | "`$echo $CC_quoted` "*)
268
	      # The compiler in the base compile command matches
269
	      # the one in the tagged configuration.
270
	      # Assume this is the tagged configuration we want.
271
	      tagname=$z
272
	      break
273
	      ;;
274
	    esac
275
	  fi
276
	done
277
	# If $tagname still isn't set, then no tagged configuration
278
	# was found and let the user know that the "--tag" command
279
	# line option must be used.
280
	if test -z "$tagname"; then
281
	  $echo "$modename: unable to infer tagged configuration"
282
	  $echo "$modename: specify a tag with \`--tag'" 1>&2
283
	  exit $EXIT_FAILURE
284
#        else
285
#          $echo "$modename: using $tagname tagged configuration"
286
	fi
287
	;;
288
      esac
289
    fi
290
}
291
292
293
# func_extract_an_archive dir oldlib
294
func_extract_an_archive ()
295
{
296
    f_ex_an_ar_dir="$1"; shift
297
    f_ex_an_ar_oldlib="$1"
298
299
    $show "(cd $f_ex_an_ar_dir && $AR x $f_ex_an_ar_oldlib)"
300
    $run eval "(cd \$f_ex_an_ar_dir && $AR x \$f_ex_an_ar_oldlib)" || exit $?
301
    if ($AR t "$f_ex_an_ar_oldlib" | sort | sort -uc >/dev/null 2>&1); then
302
     :
303
    else
304
      $echo "$modename: ERROR: object name conflicts: $f_ex_an_ar_dir/$f_ex_an_ar_oldlib" 1>&2
305
      exit $EXIT_FAILURE
306
    fi
307
}
308
309
# func_extract_archives gentop oldlib ...
310
func_extract_archives ()
311
{
312
    my_gentop="$1"; shift
313
    my_oldlibs=${1+"$@"}
314
    my_oldobjs=""
315
    my_xlib=""
316
    my_xabs=""
317
    my_xdir=""
318
    my_status=""
319
320
    $show "${rm}r $my_gentop"
321
    $run ${rm}r "$my_gentop"
322
    $show "$mkdir $my_gentop"
323
    $run $mkdir "$my_gentop"
324
    my_status=$?
325
    if test "$my_status" -ne 0 && test ! -d "$my_gentop"; then
326
      exit $my_status
327
    fi
328
329
    for my_xlib in $my_oldlibs; do
330
      # Extract the objects.
331
      case $my_xlib in
332
	[\\/]* | [A-Za-z]:[\\/]*) my_xabs="$my_xlib" ;;
333
	*) my_xabs=`pwd`"/$my_xlib" ;;
334
      esac
335
      my_xlib=`$echo "X$my_xlib" | $Xsed -e 's%^.*/%%'`
336
      my_xdir="$my_gentop/$my_xlib"
337
338
      $show "${rm}r $my_xdir"
339
      $run ${rm}r "$my_xdir"
340
      $show "$mkdir $my_xdir"
341
      $run $mkdir "$my_xdir"
342
      status=$?
343
      if test "$status" -ne 0 && test ! -d "$my_xdir"; then
344
	exit $status
345
      fi
346
      case $host in
347
      *-darwin*)
348
	$show "Extracting $my_xabs"
349
	# Do not bother doing anything if just a dry run
350
	if test -z "$run"; then
351
	  darwin_orig_dir=`pwd`
352
	  cd $my_xdir || exit $?
353
	  darwin_archive=$my_xabs
354
	  darwin_curdir=`pwd`
355
	  darwin_base_archive=`$echo "X$darwin_archive" | $Xsed -e 's%^.*/%%'`
356
	  darwin_arches=`lipo -info "$darwin_archive" 2>/dev/null | $EGREP Architectures 2>/dev/null`
357
	  if test -n "$darwin_arches"; then 
358
	    darwin_arches=`echo "$darwin_arches" | $SED -e 's/.*are://'`
359
	    darwin_arch=
360
	    $show "$darwin_base_archive has multiple architectures $darwin_arches"
361
	    for darwin_arch in  $darwin_arches ; do
362
	      mkdir -p "unfat-$$/${darwin_base_archive}-${darwin_arch}"
363
	      lipo -thin $darwin_arch -output "unfat-$$/${darwin_base_archive}-${darwin_arch}/${darwin_base_archive}" "${darwin_archive}"
364
	      cd "unfat-$$/${darwin_base_archive}-${darwin_arch}"
365
	      func_extract_an_archive "`pwd`" "${darwin_base_archive}"
366
	      cd "$darwin_curdir"
367
	      $rm "unfat-$$/${darwin_base_archive}-${darwin_arch}/${darwin_base_archive}"
368
	    done # $darwin_arches
369
      ## Okay now we have a bunch of thin objects, gotta fatten them up :)
370
	    darwin_filelist=`find unfat-$$ -type f -name \*.o -print -o -name \*.lo -print| xargs basename | sort -u | $NL2SP`
371
	    darwin_file=
372
	    darwin_files=
373
	    for darwin_file in $darwin_filelist; do
374
	      darwin_files=`find unfat-$$ -name $darwin_file -print | $NL2SP`
375
	      lipo -create -output "$darwin_file" $darwin_files
376
	    done # $darwin_filelist
377
	    ${rm}r unfat-$$
378
	    cd "$darwin_orig_dir"
379
	  else
380
	    cd "$darwin_orig_dir"
381
 	    func_extract_an_archive "$my_xdir" "$my_xabs"
382
	  fi # $darwin_arches
383
	fi # $run
384
      ;;
385
      *)
386
        func_extract_an_archive "$my_xdir" "$my_xabs"
387
        ;;
388
      esac
389
      my_oldobjs="$my_oldobjs "`find $my_xdir -name \*.$objext -print -o -name \*.lo -print | $NL2SP`
390
    done
391
    func_extract_archives_result="$my_oldobjs"
392
}
157
# End of Shell function definitions
393
# End of Shell function definitions
158
#####################################
394
#####################################
159
395
396
# Darwin sucks
397
eval std_shrext=\"$shrext_cmds\"
398
160
# Parse our command line options once, thoroughly.
399
# Parse our command line options once, thoroughly.
161
while test "$#" -gt 0
400
while test "$#" -gt 0
162
do
401
do
Lines 176-187 Link Here
176
      ;;
415
      ;;
177
    tag)
416
    tag)
178
      tagname="$arg"
417
      tagname="$arg"
418
      preserve_args="${preserve_args}=$arg"
179
419
180
      # Check whether tagname contains only valid characters
420
      # Check whether tagname contains only valid characters
181
      case $tagname in
421
      case $tagname in
182
      *[!-_A-Za-z0-9,/]*)
422
      *[!-_A-Za-z0-9,/]*)
183
	$echo "$progname: invalid tag name: $tagname" 1>&2
423
	$echo "$progname: invalid tag name: $tagname" 1>&2
184
	exit 1
424
	exit $EXIT_FAILURE
185
	;;
425
	;;
186
      esac
426
      esac
187
427
Lines 191-200 Link Here
191
	# not specially marked.
431
	# not specially marked.
192
	;;
432
	;;
193
      *)
433
      *)
194
	if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "$0" > /dev/null; then
434
	if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "$progpath" > /dev/null; then
195
	  taglist="$taglist $tagname"
435
	  taglist="$taglist $tagname"
196
	  # Evaluate the configuration.
436
	  # Evaluate the configuration.
197
	  eval "`${SED} -n -e '/^# ### BEGIN LIBTOOL TAG CONFIG: '$tagname'$/,/^# ### END LIBTOOL TAG CONFIG: '$tagname'$/p' < $0`"
437
	  eval "`${SED} -n -e '/^# ### BEGIN LIBTOOL TAG CONFIG: '$tagname'$/,/^# ### END LIBTOOL TAG CONFIG: '$tagname'$/p' < $progpath`"
198
	else
438
	else
199
	  $echo "$progname: ignoring unknown tag $tagname" 1>&2
439
	  $echo "$progname: ignoring unknown tag $tagname" 1>&2
200
	fi
440
	fi
Lines 220-243 Link Here
220
  --version)
460
  --version)
221
    $echo "$PROGRAM (GNU $PACKAGE) $VERSION$TIMESTAMP"
461
    $echo "$PROGRAM (GNU $PACKAGE) $VERSION$TIMESTAMP"
222
    $echo
462
    $echo
223
    $echo "Copyright (C) 2003  Free Software Foundation, Inc."
463
    $echo "Copyright (C) 2005  Free Software Foundation, Inc."
224
    $echo "This is free software; see the source for copying conditions.  There is NO"
464
    $echo "This is free software; see the source for copying conditions.  There is NO"
225
    $echo "warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE."
465
    $echo "warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE."
226
    exit 0
466
    exit $?
227
    ;;
467
    ;;
228
468
229
  --config)
469
  --config)
230
    ${SED} -e '1,/^# ### BEGIN LIBTOOL CONFIG/d' -e '/^# ### END LIBTOOL CONFIG/,$d' $0
470
    ${SED} -e '1,/^# ### BEGIN LIBTOOL CONFIG/d' -e '/^# ### END LIBTOOL CONFIG/,$d' $progpath
231
    # Now print the configurations for the tags.
471
    # Now print the configurations for the tags.
232
    for tagname in $taglist; do
472
    for tagname in $taglist; do
233
      ${SED} -n -e "/^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$/,/^# ### END LIBTOOL TAG CONFIG: $tagname$/p" < "$0"
473
      ${SED} -n -e "/^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$/,/^# ### END LIBTOOL TAG CONFIG: $tagname$/p" < "$progpath"
234
    done
474
    done
235
    exit 0
475
    exit $?
236
    ;;
476
    ;;
237
477
238
  --debug)
478
  --debug)
239
    $echo "$progname: enabling shell trace mode"
479
    $echo "$progname: enabling shell trace mode"
240
    set -x
480
    set -x
481
    preserve_args="$preserve_args $arg"
241
    ;;
482
    ;;
242
483
243
  --dry-run | -n)
484
  --dry-run | -n)
Lines 256-262 Link Here
256
    else
497
    else
257
      $echo "disable static libraries"
498
      $echo "disable static libraries"
258
    fi
499
    fi
259
    exit 0
500
    exit $?
260
    ;;
501
    ;;
261
502
262
  --finish) mode="finish" ;;
503
  --finish) mode="finish" ;;
Lines 268-273 Link Here
268
509
269
  --quiet | --silent)
510
  --quiet | --silent)
270
    show=:
511
    show=:
512
    preserve_args="$preserve_args $arg"
271
    ;;
513
    ;;
272
514
273
  --tag) prevopt="--tag" prev=tag ;;
515
  --tag) prevopt="--tag" prev=tag ;;
Lines 275-280 Link Here
275
    set tag "$optarg" ${1+"$@"}
517
    set tag "$optarg" ${1+"$@"}
276
    shift
518
    shift
277
    prev=tag
519
    prev=tag
520
    preserve_args="$preserve_args --tag"
278
    ;;
521
    ;;
279
522
280
  -dlopen)
523
  -dlopen)
Lines 285-291 Link Here
285
  -*)
528
  -*)
286
    $echo "$modename: unrecognized option \`$arg'" 1>&2
529
    $echo "$modename: unrecognized option \`$arg'" 1>&2
287
    $echo "$help" 1>&2
530
    $echo "$help" 1>&2
288
    exit 1
531
    exit $EXIT_FAILURE
289
    ;;
532
    ;;
290
533
291
  *)
534
  *)
Lines 298-304 Link Here
298
if test -n "$prevopt"; then
541
if test -n "$prevopt"; then
299
  $echo "$modename: option \`$prevopt' requires an argument" 1>&2
542
  $echo "$modename: option \`$prevopt' requires an argument" 1>&2
300
  $echo "$help" 1>&2
543
  $echo "$help" 1>&2
301
  exit 1
544
  exit $EXIT_FAILURE
302
fi
545
fi
303
546
304
# If this variable is set in any of the actions, the command in it
547
# If this variable is set in any of the actions, the command in it
Lines 311-317 Link Here
311
  # Infer the operation mode.
554
  # Infer the operation mode.
312
  if test -z "$mode"; then
555
  if test -z "$mode"; then
313
    $echo "*** Warning: inferring the mode of operation is deprecated." 1>&2
556
    $echo "*** Warning: inferring the mode of operation is deprecated." 1>&2
314
    $echo "*** Future versions of Libtool will require -mode=MODE be specified." 1>&2
557
    $echo "*** Future versions of Libtool will require --mode=MODE be specified." 1>&2
315
    case $nonopt in
558
    case $nonopt in
316
    *cc | cc* | *++ | gcc* | *-gcc* | g++* | xlc*)
559
    *cc | cc* | *++ | gcc* | *-gcc* | g++* | xlc*)
317
      mode=link
560
      mode=link
Lines 354-360 Link Here
354
  if test -n "$execute_dlfiles" && test "$mode" != execute; then
597
  if test -n "$execute_dlfiles" && test "$mode" != execute; then
355
    $echo "$modename: unrecognized option \`-dlopen'" 1>&2
598
    $echo "$modename: unrecognized option \`-dlopen'" 1>&2
356
    $echo "$help" 1>&2
599
    $echo "$help" 1>&2
357
    exit 1
600
    exit $EXIT_FAILURE
358
  fi
601
  fi
359
602
360
  # Change the help message to a mode-specific one.
603
  # Change the help message to a mode-specific one.
Lines 369-377 Link Here
369
    # Get the compilation command and the source file.
612
    # Get the compilation command and the source file.
370
    base_compile=
613
    base_compile=
371
    srcfile="$nonopt"  #  always keep a non-empty value in "srcfile"
614
    srcfile="$nonopt"  #  always keep a non-empty value in "srcfile"
615
    suppress_opt=yes
372
    suppress_output=
616
    suppress_output=
373
    arg_mode=normal
617
    arg_mode=normal
374
    libobj=
618
    libobj=
619
    later=
375
620
376
    for arg
621
    for arg
377
    do
622
    do
Lines 394-417 Link Here
394
	-o)
639
	-o)
395
	  if test -n "$libobj" ; then
640
	  if test -n "$libobj" ; then
396
	    $echo "$modename: you cannot specify \`-o' more than once" 1>&2
641
	    $echo "$modename: you cannot specify \`-o' more than once" 1>&2
397
	    exit 1
642
	    exit $EXIT_FAILURE
398
	  fi
643
	  fi
399
	  arg_mode=target
644
	  arg_mode=target
400
	  continue
645
	  continue
401
	  ;;
646
	  ;;
402
647
403
	-static)
648
	-static | -prefer-pic | -prefer-non-pic)
404
	  build_old_libs=yes
649
	  later="$later $arg"
405
	  continue
406
	  ;;
407
408
	-prefer-pic)
409
	  pic_mode=yes
410
	  continue
650
	  continue
411
	  ;;
651
	  ;;
412
652
413
	-prefer-non-pic)
653
	-no-suppress)
414
	  pic_mode=no
654
	  suppress_opt=no
415
	  continue
655
	  continue
416
	  ;;
656
	  ;;
417
657
Lines 424-437 Link Here
424
	  args=`$echo "X$arg" | $Xsed -e "s/^-Wc,//"`
664
	  args=`$echo "X$arg" | $Xsed -e "s/^-Wc,//"`
425
	  lastarg=
665
	  lastarg=
426
	  save_ifs="$IFS"; IFS=','
666
	  save_ifs="$IFS"; IFS=','
427
	  for arg in $args; do
667
 	  for arg in $args; do
428
	    IFS="$save_ifs"
668
	    IFS="$save_ifs"
429
669
430
	    # Double-quote args containing other shell metacharacters.
670
	    # Double-quote args containing other shell metacharacters.
431
	    # Many Bourne shells cannot handle close brackets correctly
671
	    # Many Bourne shells cannot handle close brackets correctly
432
	    # in scan sets, so we specify it separately.
672
	    # in scan sets, so we specify it separately.
433
	    case $arg in
673
	    case $arg in
434
	      *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \	]*|*]*|"")
674
	      *$quote_scanset* | *]* | *\|* | *\&* | *\(* | *\)* | "")
435
	      arg="\"$arg\""
675
	      arg="\"$arg\""
436
	      ;;
676
	      ;;
437
	    esac
677
	    esac
Lines 462-469 Link Here
462
      case $lastarg in
702
      case $lastarg in
463
      # Double-quote args containing other shell metacharacters.
703
      # Double-quote args containing other shell metacharacters.
464
      # Many Bourne shells cannot handle close brackets correctly
704
      # Many Bourne shells cannot handle close brackets correctly
465
      # in scan sets, so we specify it separately.
705
      # in scan sets, and some SunOS ksh mistreat backslash-escaping
466
      *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \	]*|*]*|"")
706
      # in scan sets (worked around with variable expansion),
707
      # and furthermore cannot handle '|' '&' '(' ')' in scan sets 
708
      # at all, so we specify them separately.
709
      *$quote_scanset* | *]* | *\|* | *\&* | *\(* | *\)* | "")
467
	lastarg="\"$lastarg\""
710
	lastarg="\"$lastarg\""
468
	;;
711
	;;
469
      esac
712
      esac
Lines 474-484 Link Here
474
    case $arg_mode in
717
    case $arg_mode in
475
    arg)
718
    arg)
476
      $echo "$modename: you must specify an argument for -Xcompile"
719
      $echo "$modename: you must specify an argument for -Xcompile"
477
      exit 1
720
      exit $EXIT_FAILURE
478
      ;;
721
      ;;
479
    target)
722
    target)
480
      $echo "$modename: you must specify a target with \`-o'" 1>&2
723
      $echo "$modename: you must specify a target with \`-o'" 1>&2
481
      exit 1
724
      exit $EXIT_FAILURE
482
      ;;
725
      ;;
483
    *)
726
    *)
484
      # Get the name of the library object.
727
      # Get the name of the library object.
Lines 511-561 Link Here
511
    *.lo) obj=`$echo "X$libobj" | $Xsed -e "$lo2o"` ;;
754
    *.lo) obj=`$echo "X$libobj" | $Xsed -e "$lo2o"` ;;
512
    *)
755
    *)
513
      $echo "$modename: cannot determine name of library object from \`$libobj'" 1>&2
756
      $echo "$modename: cannot determine name of library object from \`$libobj'" 1>&2
514
      exit 1
757
      exit $EXIT_FAILURE
515
      ;;
758
      ;;
516
    esac
759
    esac
517
760
518
    # Infer tagged configuration to use if any are available and
761
    func_infer_tag $base_compile
519
    # if one wasn't chosen via the "--tag" command line option.
762
520
    # Only attempt this if the compiler in the base compile
763
    for arg in $later; do
521
    # command doesn't match the default compiler.
764
      case $arg in
522
    if test -n "$available_tags" && test -z "$tagname"; then
765
      -static)
523
      case $base_compile in
766
	build_old_libs=yes
524
      # Blanks in the command may have been stripped by the calling shell,
767
	continue
525
      # but not from the CC environment variable when configure was run.
768
	;;
526
      " $CC "* | "$CC "* | " `$echo $CC` "* | "`$echo $CC` "*) ;;
769
527
      # Blanks at the start of $base_compile will cause this to fail
770
      -prefer-pic)
528
      # if we don't check for them as well.
771
	pic_mode=yes
529
      *)
772
	continue
530
	for z in $available_tags; do
773
	;;
531
	  if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $z$" < "$0" > /dev/null; then
774
532
	    # Evaluate the configuration.
775
      -prefer-non-pic)
533
	    eval "`${SED} -n -e '/^# ### BEGIN LIBTOOL TAG CONFIG: '$z'$/,/^# ### END LIBTOOL TAG CONFIG: '$z'$/p' < $0`"
776
	pic_mode=no
534
	    case "$base_compile " in
777
	continue
535
	    "$CC "* | " $CC "* | "`$echo $CC` "* | " `$echo $CC` "*)
536
	      # The compiler in the base compile command matches
537
	      # the one in the tagged configuration.
538
	      # Assume this is the tagged configuration we want.
539
	      tagname=$z
540
	      break
541
	      ;;
542
	    esac
543
	  fi
544
	done
545
	# If $tagname still isn't set, then no tagged configuration
546
	# was found and let the user know that the "--tag" command
547
	# line option must be used.
548
	if test -z "$tagname"; then
549
	  $echo "$modename: unable to infer tagged configuration"
550
	  $echo "$modename: specify a tag with \`--tag'" 1>&2
551
	  exit 1
552
#        else
553
#          $echo "$modename: using $tagname tagged configuration"
554
	fi
555
	;;
778
	;;
556
      esac
779
      esac
557
    fi
780
    done
558
781
782
    qlibobj=`$echo "X$libobj" | $Xsed -e "$sed_quote_subst"`
783
    case $qlibobj in
784
      *$quote_scanset* | *]* | *\|* | *\&* | *\(* | *\)* | "")
785
	qlibobj="\"$qlibobj\"" ;;
786
    esac
787
    if test "X$libobj" != "X$qlibobj"; then
788
	$echo "$modename: libobj name \`$libobj' may not contain shell special characters."
789
	exit $EXIT_FAILURE
790
    fi
559
    objname=`$echo "X$obj" | $Xsed -e 's%^.*/%%'`
791
    objname=`$echo "X$obj" | $Xsed -e 's%^.*/%%'`
560
    xdir=`$echo "X$obj" | $Xsed -e 's%/[^/]*$%%'`
792
    xdir=`$echo "X$obj" | $Xsed -e 's%/[^/]*$%%'`
561
    if test "X$xdir" = "X$obj"; then
793
    if test "X$xdir" = "X$obj"; then
Lines 568-574 Link Here
568
    if test -z "$base_compile"; then
800
    if test -z "$base_compile"; then
569
      $echo "$modename: you must specify a compilation command" 1>&2
801
      $echo "$modename: you must specify a compilation command" 1>&2
570
      $echo "$help" 1>&2
802
      $echo "$help" 1>&2
571
      exit 1
803
      exit $EXIT_FAILURE
572
    fi
804
    fi
573
805
574
    # Delete any leftover library objects.
806
    # Delete any leftover library objects.
Lines 579-585 Link Here
579
    fi
811
    fi
580
812
581
    $run $rm $removelist
813
    $run $rm $removelist
582
    trap "$run $rm $removelist; exit 1" 1 2 15
814
    trap "$run $rm $removelist; exit $EXIT_FAILURE" 1 2 15
583
815
584
    # On Cygwin there's no "real" PIC flag so we must build both object types
816
    # On Cygwin there's no "real" PIC flag so we must build both object types
585
    case $host_os in
817
    case $host_os in
Lines 598-604 Link Here
598
      output_obj=`$echo "X$srcfile" | $Xsed -e 's%^.*/%%' -e 's%\.[^.]*$%%'`.${objext}
830
      output_obj=`$echo "X$srcfile" | $Xsed -e 's%^.*/%%' -e 's%\.[^.]*$%%'`.${objext}
599
      lockfile="$output_obj.lock"
831
      lockfile="$output_obj.lock"
600
      removelist="$removelist $output_obj $lockfile"
832
      removelist="$removelist $output_obj $lockfile"
601
      trap "$run $rm $removelist; exit 1" 1 2 15
833
      trap "$run $rm $removelist; exit $EXIT_FAILURE" 1 2 15
602
    else
834
    else
603
      output_obj=
835
      output_obj=
604
      need_locks=no
836
      need_locks=no
Lines 608-614 Link Here
608
    # Lock this critical section if it is needed
840
    # Lock this critical section if it is needed
609
    # We use this script file to make the link, it avoids creating a new file
841
    # We use this script file to make the link, it avoids creating a new file
610
    if test "$need_locks" = yes; then
842
    if test "$need_locks" = yes; then
611
      until $run ln "$0" "$lockfile" 2>/dev/null; do
843
      until $run ln "$srcfile" "$lockfile" 2>/dev/null; do
612
	$show "Waiting for $lockfile to be removed"
844
	$show "Waiting for $lockfile to be removed"
613
	sleep 2
845
	sleep 2
614
      done
846
      done
Lines 626-639 Link Here
626
compiler."
858
compiler."
627
859
628
	$run $rm $removelist
860
	$run $rm $removelist
629
	exit 1
861
	exit $EXIT_FAILURE
630
      fi
862
      fi
631
      $echo $srcfile > "$lockfile"
863
      $echo "$srcfile" > "$lockfile"
632
    fi
864
    fi
633
865
634
    if test -n "$fix_srcfile_path"; then
866
    if test -n "$fix_srcfile_path"; then
635
      eval srcfile=\"$fix_srcfile_path\"
867
      eval srcfile=\"$fix_srcfile_path\"
636
    fi
868
    fi
869
    qsrcfile=`$echo "X$srcfile" | $Xsed -e "$sed_quote_subst"`
870
    case $qsrcfile in
871
      *$quote_scanset* | *]* | *\|* | *\&* | *\(* | *\)* | "")
872
      qsrcfile="\"$qsrcfile\"" ;;
873
    esac
637
874
638
    $run $rm "$libobj" "${libobj}T"
875
    $run $rm "$libobj" "${libobj}T"
639
876
Lines 655-664 Link Here
655
      fbsd_hideous_sh_bug=$base_compile
892
      fbsd_hideous_sh_bug=$base_compile
656
893
657
      if test "$pic_mode" != no; then
894
      if test "$pic_mode" != no; then
658
	command="$base_compile $srcfile $pic_flag"
895
	command="$base_compile $qsrcfile $pic_flag"
659
      else
896
      else
660
	# Don't build PIC code
897
	# Don't build PIC code
661
	command="$base_compile $srcfile"
898
	command="$base_compile $qsrcfile"
662
      fi
899
      fi
663
900
664
      if test ! -d "${xdir}$objdir"; then
901
      if test ! -d "${xdir}$objdir"; then
Lines 681-687 Link Here
681
      if $run eval "$command"; then :
918
      if $run eval "$command"; then :
682
      else
919
      else
683
	test -n "$output_obj" && $run $rm $removelist
920
	test -n "$output_obj" && $run $rm $removelist
684
	exit 1
921
	exit $EXIT_FAILURE
685
      fi
922
      fi
686
923
687
      if test "$need_locks" = warn &&
924
      if test "$need_locks" = warn &&
Lines 701-707 Link Here
701
compiler."
938
compiler."
702
939
703
	$run $rm $removelist
940
	$run $rm $removelist
704
	exit 1
941
	exit $EXIT_FAILURE
705
      fi
942
      fi
706
943
707
      # Just move the object if needed, then go on to compile the next one
944
      # Just move the object if needed, then go on to compile the next one
Lines 722-728 Link Here
722
EOF
959
EOF
723
960
724
      # Allow error messages only from the first compilation.
961
      # Allow error messages only from the first compilation.
725
      suppress_output=' >/dev/null 2>&1'
962
      if test "$suppress_opt" = yes; then
963
        suppress_output=' >/dev/null 2>&1'
964
      fi
726
    else
965
    else
727
      # No PIC object so indicate it doesn't exist in the libtool
966
      # No PIC object so indicate it doesn't exist in the libtool
728
      # object file.
967
      # object file.
Lines 736-744 Link Here
736
    if test "$build_old_libs" = yes; then
975
    if test "$build_old_libs" = yes; then
737
      if test "$pic_mode" != yes; then
976
      if test "$pic_mode" != yes; then
738
	# Don't build PIC code
977
	# Don't build PIC code
739
	command="$base_compile $srcfile"
978
	command="$base_compile $qsrcfile"
740
      else
979
      else
741
	command="$base_compile $srcfile $pic_flag"
980
	command="$base_compile $qsrcfile $pic_flag"
742
      fi
981
      fi
743
      if test "$compiler_c_o" = yes; then
982
      if test "$compiler_c_o" = yes; then
744
	command="$command -o $obj"
983
	command="$command -o $obj"
Lines 751-757 Link Here
751
      if $run eval "$command"; then :
990
      if $run eval "$command"; then :
752
      else
991
      else
753
	$run $rm $removelist
992
	$run $rm $removelist
754
	exit 1
993
	exit $EXIT_FAILURE
755
      fi
994
      fi
756
995
757
      if test "$need_locks" = warn &&
996
      if test "$need_locks" = warn &&
Lines 771-777 Link Here
771
compiler."
1010
compiler."
772
1011
773
	$run $rm $removelist
1012
	$run $rm $removelist
774
	exit 1
1013
	exit $EXIT_FAILURE
775
      fi
1014
      fi
776
1015
777
      # Just move the object if needed
1016
      # Just move the object if needed
Lines 809-815 Link Here
809
      $run $rm "$lockfile"
1048
      $run $rm "$lockfile"
810
    fi
1049
    fi
811
1050
812
    exit 0
1051
    exit $EXIT_SUCCESS
813
    ;;
1052
    ;;
814
1053
815
  # libtool link mode
1054
  # libtool link mode
Lines 835-841 Link Here
835
      ;;
1074
      ;;
836
    esac
1075
    esac
837
    libtool_args="$nonopt"
1076
    libtool_args="$nonopt"
838
    base_compile="$nonopt"
1077
    base_compile="$nonopt $@"
839
    compile_command="$nonopt"
1078
    compile_command="$nonopt"
840
    finalize_command="$nonopt"
1079
    finalize_command="$nonopt"
841
1080
Lines 867-872 Link Here
867
    no_install=no
1106
    no_install=no
868
    objs=
1107
    objs=
869
    non_pic_objects=
1108
    non_pic_objects=
1109
    precious_files_regex=
870
    prefer_static_libs=no
1110
    prefer_static_libs=no
871
    preload=no
1111
    preload=no
872
    prev=
1112
    prev=
Lines 880-885 Link Here
880
    vinfo=
1120
    vinfo=
881
    vinfo_number=no
1121
    vinfo_number=no
882
1122
1123
    func_infer_tag $base_compile
1124
883
    # We need to know -static, to get the right output filenames.
1125
    # We need to know -static, to get the right output filenames.
884
    for arg
1126
    for arg
885
    do
1127
    do
Lines 911-920 Link Here
911
    # Go through the arguments, transforming them on the way.
1153
    # Go through the arguments, transforming them on the way.
912
    while test "$#" -gt 0; do
1154
    while test "$#" -gt 0; do
913
      arg="$1"
1155
      arg="$1"
914
      base_compile="$base_compile $arg"
915
      shift
1156
      shift
916
      case $arg in
1157
      case $arg in
917
      *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \	]*|*]*|"")
1158
      *$quote_scanset* | *]* | *\|* | *\&* | *\(* | *\)* | "")
918
	qarg=\"`$echo "X$arg" | $Xsed -e "$sed_quote_subst"`\" ### testsuite: skip nested quoting test
1159
	qarg=\"`$echo "X$arg" | $Xsed -e "$sed_quote_subst"`\" ### testsuite: skip nested quoting test
919
	;;
1160
	;;
920
      *) qarg=$arg ;;
1161
      *) qarg=$arg ;;
Lines 975-981 Link Here
975
	  export_symbols="$arg"
1216
	  export_symbols="$arg"
976
	  if test ! -f "$arg"; then
1217
	  if test ! -f "$arg"; then
977
	    $echo "$modename: symbol file \`$arg' does not exist"
1218
	    $echo "$modename: symbol file \`$arg' does not exist"
978
	    exit 1
1219
	    exit $EXIT_FAILURE
979
	  fi
1220
	  fi
980
	  prev=
1221
	  prev=
981
	  continue
1222
	  continue
Lines 990-995 Link Here
990
	  prev=
1231
	  prev=
991
	  continue
1232
	  continue
992
	  ;;
1233
	  ;;
1234
	precious_regex)
1235
	  precious_files_regex="$arg"
1236
	  prev=
1237
	  continue
1238
	  ;;
993
	release)
1239
	release)
994
	  release="-$arg"
1240
	  release="-$arg"
995
	  prev=
1241
	  prev=
Lines 1022-1028 Link Here
1022
		   test "$pic_object" = none && \
1268
		   test "$pic_object" = none && \
1023
		   test "$non_pic_object" = none; then
1269
		   test "$non_pic_object" = none; then
1024
		  $echo "$modename: cannot find name of object for \`$arg'" 1>&2
1270
		  $echo "$modename: cannot find name of object for \`$arg'" 1>&2
1025
		  exit 1
1271
		  exit $EXIT_FAILURE
1026
		fi
1272
		fi
1027
1273
1028
		# Extract subdirectory from the argument.
1274
		# Extract subdirectory from the argument.
Lines 1075-1081 Link Here
1075
		# Only an error if not doing a dry-run.
1321
		# Only an error if not doing a dry-run.
1076
		if test -z "$run"; then
1322
		if test -z "$run"; then
1077
		  $echo "$modename: \`$arg' is not a valid libtool object" 1>&2
1323
		  $echo "$modename: \`$arg' is not a valid libtool object" 1>&2
1078
		  exit 1
1324
		  exit $EXIT_FAILURE
1079
		else
1325
		else
1080
		  # Dry-run case.
1326
		  # Dry-run case.
1081
1327
Lines 1096-1102 Link Here
1096
	    done
1342
	    done
1097
	  else
1343
	  else
1098
	    $echo "$modename: link input file \`$save_arg' does not exist"
1344
	    $echo "$modename: link input file \`$save_arg' does not exist"
1099
	    exit 1
1345
	    exit $EXIT_FAILURE
1100
	  fi
1346
	  fi
1101
	  arg=$save_arg
1347
	  arg=$save_arg
1102
	  prev=
1348
	  prev=
Lines 1108-1114 Link Here
1108
	  [\\/]* | [A-Za-z]:[\\/]*) ;;
1354
	  [\\/]* | [A-Za-z]:[\\/]*) ;;
1109
	  *)
1355
	  *)
1110
	    $echo "$modename: only absolute run-paths are allowed" 1>&2
1356
	    $echo "$modename: only absolute run-paths are allowed" 1>&2
1111
	    exit 1
1357
	    exit $EXIT_FAILURE
1112
	    ;;
1358
	    ;;
1113
	  esac
1359
	  esac
1114
	  if test "$prev" = rpath; then
1360
	  if test "$prev" = rpath; then
Lines 1148-1153 Link Here
1148
	  finalize_command="$finalize_command $qarg"
1394
	  finalize_command="$finalize_command $qarg"
1149
	  continue
1395
	  continue
1150
	  ;;
1396
	  ;;
1397
	shrext)
1398
  	  shrext_cmds="$arg"
1399
	  prev=
1400
	  continue
1401
	  ;;
1402
        darwin_framework)
1403
	  compiler_flags="$compiler_flags $arg"
1404
	  compile_command="$compile_command $arg"
1405
	  finalize_command="$finalize_command $arg"
1406
	  prev=
1407
	  continue
1408
	  ;;
1151
	*)
1409
	*)
1152
	  eval "$prev=\"\$arg\""
1410
	  eval "$prev=\"\$arg\""
1153
	  prev=
1411
	  prev=
Lines 1196-1202 Link Here
1196
      -export-symbols | -export-symbols-regex)
1454
      -export-symbols | -export-symbols-regex)
1197
	if test -n "$export_symbols" || test -n "$export_symbols_regex"; then
1455
	if test -n "$export_symbols" || test -n "$export_symbols_regex"; then
1198
	  $echo "$modename: more than one -exported-symbols argument is not allowed"
1456
	  $echo "$modename: more than one -exported-symbols argument is not allowed"
1199
	  exit 1
1457
	  exit $EXIT_FAILURE
1200
	fi
1458
	fi
1201
	if test "X$arg" = "X-export-symbols"; then
1459
	if test "X$arg" = "X-export-symbols"; then
1202
	  prev=expsyms
1460
	  prev=expsyms
Lines 1206-1211 Link Here
1206
	continue
1464
	continue
1207
	;;
1465
	;;
1208
1466
1467
      -framework)
1468
        prev=darwin_framework
1469
        compiler_flags="$compiler_flags $arg"
1470
	compile_command="$compile_command $arg"
1471
	finalize_command="$finalize_command $arg"
1472
        continue
1473
        ;;
1474
1209
      -inst-prefix-dir)
1475
      -inst-prefix-dir)
1210
	prev=inst_prefix
1476
	prev=inst_prefix
1211
	continue
1477
	continue
Lines 1232-1238 Link Here
1232
	  absdir=`cd "$dir" && pwd`
1498
	  absdir=`cd "$dir" && pwd`
1233
	  if test -z "$absdir"; then
1499
	  if test -z "$absdir"; then
1234
	    $echo "$modename: cannot determine absolute directory name of \`$dir'" 1>&2
1500
	    $echo "$modename: cannot determine absolute directory name of \`$dir'" 1>&2
1235
	    exit 1
1501
	    exit $EXIT_FAILURE
1236
	  fi
1502
	  fi
1237
	  dir="$absdir"
1503
	  dir="$absdir"
1238
	  ;;
1504
	  ;;
Lines 1266-1272 Link Here
1266
	    # These systems don't actually have a C library (as such)
1532
	    # These systems don't actually have a C library (as such)
1267
	    test "X$arg" = "X-lc" && continue
1533
	    test "X$arg" = "X-lc" && continue
1268
	    ;;
1534
	    ;;
1269
	  *-*-openbsd* | *-*-freebsd*)
1535
	  *-*-openbsd* | *-*-freebsd* | *-*-dragonfly*)
1270
	    # Do not include libc due to us having libc/libc_r.
1536
	    # Do not include libc due to us having libc/libc_r.
1271
	    test "X$arg" = "X-lc" && continue
1537
	    test "X$arg" = "X-lc" && continue
1272
	    ;;
1538
	    ;;
Lines 1277-1283 Link Here
1277
	  esac
1543
	  esac
1278
	elif test "X$arg" = "X-lc_r"; then
1544
	elif test "X$arg" = "X-lc_r"; then
1279
	 case $host in
1545
	 case $host in
1280
	 *-*-openbsd* | *-*-freebsd*)
1546
	 *-*-openbsd* | *-*-freebsd* | *-*-dragonfly*)
1281
	   # Do not include libc_r directly, use -pthread flag.
1547
	   # Do not include libc_r directly, use -pthread flag.
1282
	   continue
1548
	   continue
1283
	   ;;
1549
	   ;;
Lines 1287-1309 Link Here
1287
	continue
1553
	continue
1288
	;;
1554
	;;
1289
1555
1556
      # Tru64 UNIX uses -model [arg] to determine the layout of C++
1557
      # classes, name mangling, and exception handling.
1558
      -model)
1559
	compile_command="$compile_command $arg"
1560
	compiler_flags="$compiler_flags $arg"
1561
	finalize_command="$finalize_command $arg"
1562
	prev=xcompiler
1563
	continue
1564
	;;
1565
1566
     -mt|-mthreads|-kthread|-Kthread|-pthread|-pthreads|--thread-safe)
1567
	compiler_flags="$compiler_flags $arg"
1568
	compile_command="$compile_command $arg"
1569
	finalize_command="$finalize_command $arg"
1570
	continue
1571
	;;
1572
1290
      -module)
1573
      -module)
1291
	module=yes
1574
	module=yes
1292
	continue
1575
	continue
1293
	;;
1576
	;;
1294
1577
1295
      # gcc -m* arguments should be passed to the linker via $compiler_flags
1578
      # -64, -mips[0-9] enable 64-bit mode on the SGI compiler
1296
      # in order to pass architecture information to the linker
1579
      # -r[0-9][0-9]* specifies the processor on the SGI compiler
1297
      # (e.g. 32 vs 64-bit).  This may also be accomplished via -Wl,-mfoo
1580
      # -xarch=*, -xtarget=* enable 64-bit mode on the Sun compiler
1298
      # but this is not reliable with gcc because gcc may use -mfoo to
1581
      # +DA*, +DD* enable 64-bit mode on the HP compiler
1299
      # select a different linker, different libraries, etc, while
1582
      # -q* pass through compiler args for the IBM compiler
1300
      # -Wl,-mfoo simply passes -mfoo to the linker.
1583
      # -m* pass through architecture-specific compiler args for GCC
1301
      -m*)
1584
      -64|-mips[0-9]|-r[0-9][0-9]*|-xarch=*|-xtarget=*|+DA*|+DD*|-q*|-m*)
1585
1302
	# Unknown arguments in both finalize_command and compile_command need
1586
	# Unknown arguments in both finalize_command and compile_command need
1303
	# to be aesthetically quoted because they are evaled later.
1587
	# to be aesthetically quoted because they are evaled later.
1304
	arg=`$echo "X$arg" | $Xsed -e "$sed_quote_subst"`
1588
	arg=`$echo "X$arg" | $Xsed -e "$sed_quote_subst"`
1305
	case $arg in
1589
	case $arg in
1306
	*[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \	]*|*]*|"")
1590
	*$quote_scanset* | *]* | *\|* | *\&* | *\(* | *\)* | "")
1307
	  arg="\"$arg\""
1591
	  arg="\"$arg\""
1308
	  ;;
1592
	  ;;
1309
	esac
1593
	esac
Lines 1351-1356 Link Here
1351
1635
1352
      -o) prev=output ;;
1636
      -o) prev=output ;;
1353
1637
1638
      -precious-files-regex)
1639
	prev=precious_regex
1640
	continue
1641
	;;
1642
1354
      -release)
1643
      -release)
1355
	prev=release
1644
	prev=release
1356
	continue
1645
	continue
Lines 1373-1379 Link Here
1373
	[\\/]* | [A-Za-z]:[\\/]*) ;;
1662
	[\\/]* | [A-Za-z]:[\\/]*) ;;
1374
	*)
1663
	*)
1375
	  $echo "$modename: only absolute run-paths are allowed" 1>&2
1664
	  $echo "$modename: only absolute run-paths are allowed" 1>&2
1376
	  exit 1
1665
	  exit $EXIT_FAILURE
1377
	  ;;
1666
	  ;;
1378
	esac
1667
	esac
1379
	case "$xrpath " in
1668
	case "$xrpath " in
Lines 1414-1420 Link Here
1414
	for flag in $args; do
1703
	for flag in $args; do
1415
	  IFS="$save_ifs"
1704
	  IFS="$save_ifs"
1416
	  case $flag in
1705
	  case $flag in
1417
	    *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \	]*|*]*|"")
1706
	    *$quote_scanset* | *]* | *\|* | *\&* | *\(* | *\)* | "")
1418
	    flag="\"$flag\""
1707
	    flag="\"$flag\""
1419
	    ;;
1708
	    ;;
1420
	  esac
1709
	  esac
Lines 1432-1438 Link Here
1432
	for flag in $args; do
1721
	for flag in $args; do
1433
	  IFS="$save_ifs"
1722
	  IFS="$save_ifs"
1434
	  case $flag in
1723
	  case $flag in
1435
	    *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \	]*|*]*|"")
1724
	    *$quote_scanset* | *]* | *\|* | *\&* | *\(* | *\)* | "")
1436
	    flag="\"$flag\""
1725
	    flag="\"$flag\""
1437
	    ;;
1726
	    ;;
1438
	  esac
1727
	  esac
Lines 1459-1471 Link Here
1459
	continue
1748
	continue
1460
	;;
1749
	;;
1461
1750
1751
      -Kthread | -mthreads | -mt | -pthread | -pthreads | -threads | -qthreaded | -kthread )
1752
        compiler_flags="$compiler_flags $arg"
1753
        continue
1754
        ;;
1755
1462
      # Some other compiler flag.
1756
      # Some other compiler flag.
1463
      -* | +*)
1757
      -* | +*)
1464
	# Unknown arguments in both finalize_command and compile_command need
1758
	# Unknown arguments in both finalize_command and compile_command need
1465
	# to be aesthetically quoted because they are evaled later.
1759
	# to be aesthetically quoted because they are evaled later.
1466
	arg=`$echo "X$arg" | $Xsed -e "$sed_quote_subst"`
1760
	arg=`$echo "X$arg" | $Xsed -e "$sed_quote_subst"`
1467
	case $arg in
1761
	case $arg in
1468
	*[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \	]*|*]*|"")
1762
	*$quote_scanset* | *]* | *\|* | *\&* | *\(* | *\)* | "")
1469
	  arg="\"$arg\""
1763
	  arg="\"$arg\""
1470
	  ;;
1764
	  ;;
1471
	esac
1765
	esac
Lines 1496-1502 Link Here
1496
	     test "$pic_object" = none && \
1790
	     test "$pic_object" = none && \
1497
	     test "$non_pic_object" = none; then
1791
	     test "$non_pic_object" = none; then
1498
	    $echo "$modename: cannot find name of object for \`$arg'" 1>&2
1792
	    $echo "$modename: cannot find name of object for \`$arg'" 1>&2
1499
	    exit 1
1793
	    exit $EXIT_FAILURE
1500
	  fi
1794
	  fi
1501
1795
1502
	  # Extract subdirectory from the argument.
1796
	  # Extract subdirectory from the argument.
Lines 1549-1555 Link Here
1549
	  # Only an error if not doing a dry-run.
1843
	  # Only an error if not doing a dry-run.
1550
	  if test -z "$run"; then
1844
	  if test -z "$run"; then
1551
	    $echo "$modename: \`$arg' is not a valid libtool object" 1>&2
1845
	    $echo "$modename: \`$arg' is not a valid libtool object" 1>&2
1552
	    exit 1
1846
	    exit $EXIT_FAILURE
1553
	  else
1847
	  else
1554
	    # Dry-run case.
1848
	    # Dry-run case.
1555
1849
Lines 1599-1605 Link Here
1599
	# to be aesthetically quoted because they are evaled later.
1893
	# to be aesthetically quoted because they are evaled later.
1600
	arg=`$echo "X$arg" | $Xsed -e "$sed_quote_subst"`
1894
	arg=`$echo "X$arg" | $Xsed -e "$sed_quote_subst"`
1601
	case $arg in
1895
	case $arg in
1602
	*[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \	]*|*]*|"")
1896
	*$quote_scanset* | *]* | *\|* | *\&* | *\(* | *\)* | "")
1603
	  arg="\"$arg\""
1897
	  arg="\"$arg\""
1604
	  ;;
1898
	  ;;
1605
	esac
1899
	esac
Lines 1616-1663 Link Here
1616
    if test -n "$prev"; then
1910
    if test -n "$prev"; then
1617
      $echo "$modename: the \`$prevarg' option requires an argument" 1>&2
1911
      $echo "$modename: the \`$prevarg' option requires an argument" 1>&2
1618
      $echo "$help" 1>&2
1912
      $echo "$help" 1>&2
1619
      exit 1
1913
      exit $EXIT_FAILURE
1620
    fi
1621
1622
    # Infer tagged configuration to use if any are available and
1623
    # if one wasn't chosen via the "--tag" command line option.
1624
    # Only attempt this if the compiler in the base link
1625
    # command doesn't match the default compiler.
1626
    if test -n "$available_tags" && test -z "$tagname"; then
1627
      case $base_compile in
1628
      # Blanks in the command may have been stripped by the calling shell,
1629
      # but not from the CC environment variable when configure was run.
1630
      "$CC "* | " $CC "* | "`$echo $CC` "* | " `$echo $CC` "*) ;;
1631
      # Blanks at the start of $base_compile will cause this to fail
1632
      # if we don't check for them as well.
1633
      *)
1634
	for z in $available_tags; do
1635
	  if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $z$" < "$0" > /dev/null; then
1636
	    # Evaluate the configuration.
1637
	    eval "`${SED} -n -e '/^# ### BEGIN LIBTOOL TAG CONFIG: '$z'$/,/^# ### END LIBTOOL TAG CONFIG: '$z'$/p' < $0`"
1638
	    case $base_compile in
1639
	    "$CC "* | " $CC "* | "`$echo $CC` "* | " `$echo $CC` "*)
1640
	      # The compiler in $compile_command matches
1641
	      # the one in the tagged configuration.
1642
	      # Assume this is the tagged configuration we want.
1643
	      tagname=$z
1644
	      break
1645
	      ;;
1646
	    esac
1647
	  fi
1648
	done
1649
	# If $tagname still isn't set, then no tagged configuration
1650
	# was found and let the user know that the "--tag" command
1651
	# line option must be used.
1652
	if test -z "$tagname"; then
1653
	  $echo "$modename: unable to infer tagged configuration"
1654
	  $echo "$modename: specify a tag with \`--tag'" 1>&2
1655
	  exit 1
1656
#       else
1657
#         $echo "$modename: using $tagname tagged configuration"
1658
	fi
1659
	;;
1660
      esac
1661
    fi
1914
    fi
1662
1915
1663
    if test "$export_dynamic" = yes && test -n "$export_dynamic_flag_spec"; then
1916
    if test "$export_dynamic" = yes && test -n "$export_dynamic_flag_spec"; then
Lines 1701-1707 Link Here
1701
    "")
1954
    "")
1702
      $echo "$modename: you must specify an output file" 1>&2
1955
      $echo "$modename: you must specify an output file" 1>&2
1703
      $echo "$help" 1>&2
1956
      $echo "$help" 1>&2
1704
      exit 1
1957
      exit $EXIT_FAILURE
1705
      ;;
1958
      ;;
1706
    *.$libext) linkmode=oldlib ;;
1959
    *.$libext) linkmode=oldlib ;;
1707
    *.lo | *.$objext) linkmode=obj ;;
1960
    *.lo | *.$objext) linkmode=obj ;;
Lines 1711-1717 Link Here
1711
1964
1712
    case $host in
1965
    case $host in
1713
    *cygwin* | *mingw* | *pw32*)
1966
    *cygwin* | *mingw* | *pw32*)
1714
      # don't eliminate duplcations in $postdeps and $predeps
1967
      # don't eliminate duplications in $postdeps and $predeps
1715
      duplicate_compiler_generated_deps=yes
1968
      duplicate_compiler_generated_deps=yes
1716
      ;;
1969
      ;;
1717
    *)
1970
    *)
Lines 1764-1770 Link Here
1764
	  *.la) ;;
2017
	  *.la) ;;
1765
	  *)
2018
	  *)
1766
	    $echo "$modename: libraries can \`-dlopen' only libtool libraries: $file" 1>&2
2019
	    $echo "$modename: libraries can \`-dlopen' only libtool libraries: $file" 1>&2
1767
	    exit 1
2020
	    exit $EXIT_FAILURE
1768
	    ;;
2021
	    ;;
1769
	  esac
2022
	  esac
1770
	done
2023
	done
Lines 1802-1824 Link Here
1802
	lib=
2055
	lib=
1803
	found=no
2056
	found=no
1804
	case $deplib in
2057
	case $deplib in
2058
	-mt|-mthreads|-kthread|-Kthread|-pthread|-pthreads|--thread-safe)
2059
	  if test "$linkmode,$pass" = "prog,link"; then
2060
	    compile_deplibs="$deplib $compile_deplibs"
2061
	    finalize_deplibs="$deplib $finalize_deplibs"
2062
	  else
2063
	    compiler_flags="$compiler_flags $deplib"
2064
	  fi
2065
	  continue
2066
	  ;;
1805
	-l*)
2067
	-l*)
1806
	  if test "$linkmode" != lib && test "$linkmode" != prog; then
2068
	  if test "$linkmode" != lib && test "$linkmode" != prog; then
1807
	    $echo "$modename: warning: \`-l' is ignored for archives/objects" 1>&2
2069
	    $echo "$modename: warning: \`-l' is ignored for archives/objects" 1>&2
1808
	    continue
2070
	    continue
1809
	  fi
2071
	  fi
1810
	  if test "$pass" = conv; then
1811
	    deplibs="$deplib $deplibs"
1812
	    continue
1813
	  fi
1814
	  name=`$echo "X$deplib" | $Xsed -e 's/^-l//'`
2072
	  name=`$echo "X$deplib" | $Xsed -e 's/^-l//'`
1815
	  for searchdir in $newlib_search_path $lib_search_path $sys_lib_search_path $shlib_search_path; do
2073
	  for searchdir in $newlib_search_path $lib_search_path $sys_lib_search_path $shlib_search_path; do
1816
	    # Search the libtool library
2074
	    for search_ext in .la $std_shrext .so .a; do
1817
	    lib="$searchdir/lib${name}.la"
2075
	      # Search the libtool library
1818
	    if test -f "$lib"; then
2076
	      lib="$searchdir/lib${name}${search_ext}"
1819
	      found=yes
2077
	      if test -f "$lib"; then
1820
	      break
2078
		if test "$search_ext" = ".la"; then
1821
	    fi
2079
		  found=yes
2080
		else
2081
		  found=no
2082
		fi
2083
		break 2
2084
	      fi
2085
	    done
1822
	  done
2086
	  done
1823
	  if test "$found" != yes; then
2087
	  if test "$found" != yes; then
1824
	    # deplib doesn't seem to be a libtool library
2088
	    # deplib doesn't seem to be a libtool library
Lines 1883-1893 Link Here
1883
	    fi
2147
	    fi
1884
	    if test "$pass" = scan; then
2148
	    if test "$pass" = scan; then
1885
	      deplibs="$deplib $deplibs"
2149
	      deplibs="$deplib $deplibs"
1886
	      newlib_search_path="$newlib_search_path "`$echo "X$deplib" | $Xsed -e 's/^-L//'`
1887
	    else
2150
	    else
1888
	      compile_deplibs="$deplib $compile_deplibs"
2151
	      compile_deplibs="$deplib $compile_deplibs"
1889
	      finalize_deplibs="$deplib $finalize_deplibs"
2152
	      finalize_deplibs="$deplib $finalize_deplibs"
1890
	    fi
2153
	    fi
2154
	    newlib_search_path="$newlib_search_path "`$echo "X$deplib" | $Xsed -e 's/^-L//'`
1891
	    ;;
2155
	    ;;
1892
	  *)
2156
	  *)
1893
	    $echo "$modename: warning: \`-L' is ignored for archives/objects" 1>&2
2157
	    $echo "$modename: warning: \`-L' is ignored for archives/objects" 1>&2
Lines 1915-1921 Link Here
1915
	  fi
2179
	  fi
1916
	  case $linkmode in
2180
	  case $linkmode in
1917
	  lib)
2181
	  lib)
1918
	    if test "$deplibs_check_method" != pass_all; then
2182
	    valid_a_lib=no
2183
	    case $deplibs_check_method in
2184
	      match_pattern*)
2185
		set dummy $deplibs_check_method
2186
	        match_pattern_regex=`expr "$deplibs_check_method" : "$2 \(.*\)"`
2187
		if eval $echo \"$deplib\" 2>/dev/null \
2188
		    | $SED 10q \
2189
		    | $EGREP "$match_pattern_regex" > /dev/null; then
2190
		  valid_a_lib=yes
2191
		fi
2192
		;;
2193
	      pass_all)
2194
		valid_a_lib=yes
2195
		;;
2196
            esac
2197
	    if test "$valid_a_lib" != yes; then
1919
	      $echo
2198
	      $echo
1920
	      $echo "*** Warning: Trying to link with static lib archive $deplib."
2199
	      $echo "*** Warning: Trying to link with static lib archive $deplib."
1921
	      $echo "*** I have the capability to make that library automatically link in when"
2200
	      $echo "*** I have the capability to make that library automatically link in when"
Lines 1966-1979 Link Here
1966
	if test "$found" = yes || test -f "$lib"; then :
2245
	if test "$found" = yes || test -f "$lib"; then :
1967
	else
2246
	else
1968
	  $echo "$modename: cannot find the library \`$lib'" 1>&2
2247
	  $echo "$modename: cannot find the library \`$lib'" 1>&2
1969
	  exit 1
2248
	  exit $EXIT_FAILURE
1970
	fi
2249
	fi
1971
2250
1972
	# Check to see that this really is a libtool archive.
2251
	# Check to see that this really is a libtool archive.
1973
	if (${SED} -e '2q' $lib | grep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then :
2252
	if (${SED} -e '2q' $lib | grep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then :
1974
	else
2253
	else
1975
	  $echo "$modename: \`$lib' is not a valid libtool archive" 1>&2
2254
	  $echo "$modename: \`$lib' is not a valid libtool archive" 1>&2
1976
	  exit 1
2255
	  exit $EXIT_FAILURE
1977
	fi
2256
	fi
1978
2257
1979
	ladir=`$echo "X$lib" | $Xsed -e 's%/[^/]*$%%'`
2258
	ladir=`$echo "X$lib" | $Xsed -e 's%/[^/]*$%%'`
Lines 1989-1994 Link Here
1989
	# it will not redefine variables installed, or shouldnotlink
2268
	# it will not redefine variables installed, or shouldnotlink
1990
	installed=yes
2269
	installed=yes
1991
	shouldnotlink=no
2270
	shouldnotlink=no
2271
	avoidtemprpath=
2272
1992
2273
1993
	# Read the .la file
2274
	# Read the .la file
1994
	case $lib in
2275
	case $lib in
Lines 2009-2015 Link Here
2009
	  if test -z "$libdir"; then
2290
	  if test -z "$libdir"; then
2010
	    if test -z "$old_library"; then
2291
	    if test -z "$old_library"; then
2011
	      $echo "$modename: cannot find name of link library for \`$lib'" 1>&2
2292
	      $echo "$modename: cannot find name of link library for \`$lib'" 1>&2
2012
	      exit 1
2293
	      exit $EXIT_FAILURE
2013
	    fi
2294
	    fi
2014
	    # It is a libtool convenience library, so add in its objects.
2295
	    # It is a libtool convenience library, so add in its objects.
2015
	    convenience="$convenience $ladir/$objdir/$old_library"
2296
	    convenience="$convenience $ladir/$objdir/$old_library"
Lines 2026-2037 Link Here
2026
	    done
2307
	    done
2027
	  elif test "$linkmode" != prog && test "$linkmode" != lib; then
2308
	  elif test "$linkmode" != prog && test "$linkmode" != lib; then
2028
	    $echo "$modename: \`$lib' is not a convenience library" 1>&2
2309
	    $echo "$modename: \`$lib' is not a convenience library" 1>&2
2029
	    exit 1
2310
	    exit $EXIT_FAILURE
2030
	  fi
2311
	  fi
2031
	  continue
2312
	  continue
2032
	fi # $pass = conv
2313
	fi # $pass = conv
2033
2314
2034
    
2315
2035
	# Get the name of the library we link against.
2316
	# Get the name of the library we link against.
2036
	linklib=
2317
	linklib=
2037
	for l in $old_library $library_names; do
2318
	for l in $old_library $library_names; do
Lines 2039-2054 Link Here
2039
	done
2320
	done
2040
	if test -z "$linklib"; then
2321
	if test -z "$linklib"; then
2041
	  $echo "$modename: cannot find name of link library for \`$lib'" 1>&2
2322
	  $echo "$modename: cannot find name of link library for \`$lib'" 1>&2
2042
	  exit 1
2323
	  exit $EXIT_FAILURE
2043
	fi
2324
	fi
2044
2325
2045
	# This library was specified with -dlopen.
2326
	# This library was specified with -dlopen.
2046
	if test "$pass" = dlopen; then
2327
	if test "$pass" = dlopen; then
2047
	  if test -z "$libdir"; then
2328
	  if test -z "$libdir"; then
2048
	    $echo "$modename: cannot -dlopen a convenience library: \`$lib'" 1>&2
2329
	    $echo "$modename: cannot -dlopen a convenience library: \`$lib'" 1>&2
2049
	    exit 1
2330
	    exit $EXIT_FAILURE
2050
	  fi
2331
	  fi
2051
	  if test -z "$dlname" || test "$dlopen_support" != yes || test "$build_libtool_libs" = no; then
2332
	  if test -z "$dlname" ||
2333
	     test "$dlopen_support" != yes ||
2334
	     test "$build_libtool_libs" = no; then
2052
	    # If there is no dlname, no dlopen support or we're linking
2335
	    # If there is no dlname, no dlopen support or we're linking
2053
	    # statically, we need to preload.  We also need to preload any
2336
	    # statically, we need to preload.  We also need to preload any
2054
	    # dependent libraries so libltdl's deplib preloader doesn't
2337
	    # dependent libraries so libltdl's deplib preloader doesn't
Lines 2085-2095 Link Here
2085
	    dir="$libdir"
2368
	    dir="$libdir"
2086
	    absdir="$libdir"
2369
	    absdir="$libdir"
2087
	  fi
2370
	  fi
2371
	  test "X$hardcode_automatic" = Xyes && avoidtemprpath=yes
2088
	else
2372
	else
2089
	  dir="$ladir/$objdir"
2373
	  if test ! -f "$ladir/$objdir/$linklib" && test -f "$abs_ladir/$linklib"; then
2090
	  absdir="$abs_ladir/$objdir"
2374
	    dir="$ladir"
2091
	  # Remove this search path later
2375
	    absdir="$abs_ladir"
2092
	  notinst_path="$notinst_path $abs_ladir"
2376
	    # Remove this search path later
2377
	    notinst_path="$notinst_path $abs_ladir"
2378
	  else
2379
	    dir="$ladir/$objdir"
2380
	    absdir="$abs_ladir/$objdir"
2381
	    # Remove this search path later
2382
	    notinst_path="$notinst_path $abs_ladir"
2383
	  fi
2093
	fi # $installed = yes
2384
	fi # $installed = yes
2094
	name=`$echo "X$laname" | $Xsed -e 's/\.la$//' -e 's/^lib//'`
2385
	name=`$echo "X$laname" | $Xsed -e 's/\.la$//' -e 's/^lib//'`
2095
2386
Lines 2097-2103 Link Here
2097
	if test "$pass" = dlpreopen; then
2388
	if test "$pass" = dlpreopen; then
2098
	  if test -z "$libdir"; then
2389
	  if test -z "$libdir"; then
2099
	    $echo "$modename: cannot -dlpreopen a convenience library: \`$lib'" 1>&2
2390
	    $echo "$modename: cannot -dlpreopen a convenience library: \`$lib'" 1>&2
2100
	    exit 1
2391
	    exit $EXIT_FAILURE
2101
	  fi
2392
	  fi
2102
	  # Prefer using a static library (so that no silly _DYNAMIC symbols
2393
	  # Prefer using a static library (so that no silly _DYNAMIC symbols
2103
	  # are required to link).
2394
	  # are required to link).
Lines 2124-2130 Link Here
2124
	  continue
2415
	  continue
2125
	fi
2416
	fi
2126
2417
2127
    
2418
2128
	if test "$linkmode" = prog && test "$pass" != link; then
2419
	if test "$linkmode" = prog && test "$pass" != link; then
2129
	  newlib_search_path="$newlib_search_path $ladir"
2420
	  newlib_search_path="$newlib_search_path $ladir"
2130
	  deplibs="$lib $deplibs"
2421
	  deplibs="$lib $deplibs"
Lines 2162-2168 Link Here
2162
	  if test -n "$library_names" &&
2453
	  if test -n "$library_names" &&
2163
	     { test "$prefer_static_libs" = no || test -z "$old_library"; }; then
2454
	     { test "$prefer_static_libs" = no || test -z "$old_library"; }; then
2164
	    # We need to hardcode the library path
2455
	    # We need to hardcode the library path
2165
	    if test -n "$shlibpath_var"; then
2456
	    if test -n "$shlibpath_var" && test -z "$avoidtemprpath" ; then
2166
	      # Make sure the rpath contains only unique directories.
2457
	      # Make sure the rpath contains only unique directories.
2167
	      case "$temp_rpath " in
2458
	      case "$temp_rpath " in
2168
	      *" $dir "*) ;;
2459
	      *" $dir "*) ;;
Lines 2211-2227 Link Here
2211
	    need_relink=yes
2502
	    need_relink=yes
2212
	  fi
2503
	  fi
2213
	  # This is a shared library
2504
	  # This is a shared library
2214
	
2505
2215
      # Warn about portability, can't link against -module's on some systems (darwin)
2506
	  # Warn about portability, can't link against -module's on
2216
      if test "$shouldnotlink" = yes && test "$pass" = link ; then
2507
	  # some systems (darwin)
2508
	  if test "$shouldnotlink" = yes && test "$pass" = link ; then
2217
	    $echo
2509
	    $echo
2218
	    if test "$linkmode" = prog; then
2510
	    if test "$linkmode" = prog; then
2219
	      $echo "*** Warning: Linking the executable $output against the loadable module"
2511
	      $echo "*** Warning: Linking the executable $output against the loadable module"
2220
	    else
2512
	    else
2221
	      $echo "*** Warning: Linking the shared library $output against the loadable module"
2513
	      $echo "*** Warning: Linking the shared library $output against the loadable module"
2222
	    fi
2514
	    fi
2223
	    $echo "*** $linklib is not portable!"    
2515
	    $echo "*** $linklib is not portable!"
2224
      fi	  
2516
	  fi
2225
	  if test "$linkmode" = lib &&
2517
	  if test "$linkmode" = lib &&
2226
	     test "$hardcode_into_libs" = yes; then
2518
	     test "$hardcode_into_libs" = yes; then
2227
	    # Hardcode the library path.
2519
	    # Hardcode the library path.
Lines 2279-2287 Link Here
2279
	    else
2571
	    else
2280
	      $show "extracting exported symbol list from \`$soname'"
2572
	      $show "extracting exported symbol list from \`$soname'"
2281
	      save_ifs="$IFS"; IFS='~'
2573
	      save_ifs="$IFS"; IFS='~'
2282
	      eval cmds=\"$extract_expsyms_cmds\"
2574
	      cmds=$extract_expsyms_cmds
2283
	      for cmd in $cmds; do
2575
	      for cmd in $cmds; do
2284
		IFS="$save_ifs"
2576
		IFS="$save_ifs"
2577
		eval cmd=\"$cmd\"
2285
		$show "$cmd"
2578
		$show "$cmd"
2286
		$run eval "$cmd" || exit $?
2579
		$run eval "$cmd" || exit $?
2287
	      done
2580
	      done
Lines 2292-2300 Link Here
2292
	    if test -f "$output_objdir/$newlib"; then :; else
2585
	    if test -f "$output_objdir/$newlib"; then :; else
2293
	      $show "generating import library for \`$soname'"
2586
	      $show "generating import library for \`$soname'"
2294
	      save_ifs="$IFS"; IFS='~'
2587
	      save_ifs="$IFS"; IFS='~'
2295
	      eval cmds=\"$old_archive_from_expsyms_cmds\"
2588
	      cmds=$old_archive_from_expsyms_cmds
2296
	      for cmd in $cmds; do
2589
	      for cmd in $cmds; do
2297
		IFS="$save_ifs"
2590
		IFS="$save_ifs"
2591
		eval cmd=\"$cmd\"
2298
		$show "$cmd"
2592
		$show "$cmd"
2299
		$run eval "$cmd" || exit $?
2593
		$run eval "$cmd" || exit $?
2300
	      done
2594
	      done
Lines 2317-2325 Link Here
2317
		case $host in
2611
		case $host in
2318
		  *-*-sco3.2v5* ) add_dir="-L$dir" ;;
2612
		  *-*-sco3.2v5* ) add_dir="-L$dir" ;;
2319
		  *-*-darwin* )
2613
		  *-*-darwin* )
2320
		    # if the lib is a module then we can not link against it, someone
2614
		    # if the lib is a module then we can not link against
2321
		    # is ignoring the new warnings I added
2615
		    # it, someone is ignoring the new warnings I added
2322
		    if /usr/bin/file -L $add 2> /dev/null | grep "bundle" >/dev/null ; then
2616
		    if /usr/bin/file -L $add 2> /dev/null | $EGREP "bundle" >/dev/null ; then
2323
		      $echo "** Warning, lib $linklib is a module, not a shared library"
2617
		      $echo "** Warning, lib $linklib is a module, not a shared library"
2324
		      if test -z "$old_library" ; then
2618
		      if test -z "$old_library" ; then
2325
		        $echo
2619
		        $echo
Lines 2327-2333 Link Here
2327
		        $echo "** The link will probably fail, sorry"
2621
		        $echo "** The link will probably fail, sorry"
2328
		      else
2622
		      else
2329
		        add="$dir/$old_library"
2623
		        add="$dir/$old_library"
2330
		      fi 
2624
		      fi
2331
		    fi
2625
		    fi
2332
		esac
2626
		esac
2333
	      elif test "$hardcode_minus_L" = no; then
2627
	      elif test "$hardcode_minus_L" = no; then
Lines 2352-2358 Link Here
2352
		if test -n "$inst_prefix_dir"; then
2646
		if test -n "$inst_prefix_dir"; then
2353
		  case "$libdir" in
2647
		  case "$libdir" in
2354
		    [\\/]*)
2648
		    [\\/]*)
2355
		      add_dir="-L$inst_prefix_dir$libdir $add_dir"
2649
		      add_dir="$add_dir -L$inst_prefix_dir$libdir"
2356
		      ;;
2650
		      ;;
2357
		  esac
2651
		  esac
2358
		fi
2652
		fi
Lines 2369-2375 Link Here
2369
2663
2370
	    if test "$lib_linked" != yes; then
2664
	    if test "$lib_linked" != yes; then
2371
	      $echo "$modename: configuration error: unsupported hardcode properties"
2665
	      $echo "$modename: configuration error: unsupported hardcode properties"
2372
	      exit 1
2666
	      exit $EXIT_FAILURE
2373
	    fi
2667
	    fi
2374
2668
2375
	    if test -n "$add_shlibpath"; then
2669
	    if test -n "$add_shlibpath"; then
Lines 2412-2418 Link Here
2412
	      esac
2706
	      esac
2413
	      add="-l$name"
2707
	      add="-l$name"
2414
	    elif test "$hardcode_automatic" = yes; then
2708
	    elif test "$hardcode_automatic" = yes; then
2415
	      if test -n "$inst_prefix_dir" && test -f "$inst_prefix_dir$libdir/$linklib" ; then
2709
	      if test -n "$inst_prefix_dir" &&
2710
		 test -f "$inst_prefix_dir$libdir/$linklib" ; then
2416
	        add="$inst_prefix_dir$libdir/$linklib"
2711
	        add="$inst_prefix_dir$libdir/$linklib"
2417
	      else
2712
	      else
2418
	        add="$libdir/$linklib"
2713
	        add="$libdir/$linklib"
Lines 2424-2430 Link Here
2424
	      if test -n "$inst_prefix_dir"; then
2719
	      if test -n "$inst_prefix_dir"; then
2425
		case "$libdir" in
2720
		case "$libdir" in
2426
		  [\\/]*)
2721
		  [\\/]*)
2427
		    add_dir="-L$inst_prefix_dir$libdir $add_dir"
2722
		    add_dir="$add_dir -L$inst_prefix_dir$libdir"
2428
		    ;;
2723
		    ;;
2429
		esac
2724
		esac
2430
	      fi
2725
	      fi
Lines 2492-2498 Link Here
2492
2787
2493
	if test "$linkmode" = lib; then
2788
	if test "$linkmode" = lib; then
2494
	  if test -n "$dependency_libs" &&
2789
	  if test -n "$dependency_libs" &&
2495
	     { test "$hardcode_into_libs" != yes || test "$build_old_libs" = yes ||
2790
	     { test "$hardcode_into_libs" != yes ||
2791
	       test "$build_old_libs" = yes ||
2496
	       test "$link_static" = yes; }; then
2792
	       test "$link_static" = yes; }; then
2497
	    # Extract -R from dependency_libs
2793
	    # Extract -R from dependency_libs
2498
	    temp_deplibs=
2794
	    temp_deplibs=
Lines 2549-2555 Link Here
2549
		  eval libdir=`${SED} -n -e 's/^libdir=\(.*\)$/\1/p' $deplib`
2845
		  eval libdir=`${SED} -n -e 's/^libdir=\(.*\)$/\1/p' $deplib`
2550
		  if test -z "$libdir"; then
2846
		  if test -z "$libdir"; then
2551
		    $echo "$modename: \`$deplib' is not a valid libtool archive" 1>&2
2847
		    $echo "$modename: \`$deplib' is not a valid libtool archive" 1>&2
2552
		    exit 1
2848
		    exit $EXIT_FAILURE
2553
		  fi
2849
		  fi
2554
		  if test "$absdir" != "$libdir"; then
2850
		  if test "$absdir" != "$libdir"; then
2555
		    $echo "$modename: warning: \`$deplib' seems to be moved" 1>&2
2851
		    $echo "$modename: warning: \`$deplib' seems to be moved" 1>&2
Lines 2559-2565 Link Here
2559
		depdepl=
2855
		depdepl=
2560
		case $host in
2856
		case $host in
2561
		*-*-darwin*)
2857
		*-*-darwin*)
2562
		  # we do not want to link against static libs, but need to link against shared
2858
		  # we do not want to link against static libs,
2859
		  # but need to link against shared
2563
		  eval deplibrary_names=`${SED} -n -e 's/^library_names=\(.*\)$/\1/p' $deplib`
2860
		  eval deplibrary_names=`${SED} -n -e 's/^library_names=\(.*\)$/\1/p' $deplib`
2564
		  if test -n "$deplibrary_names" ; then
2861
		  if test -n "$deplibrary_names" ; then
2565
		    for tmp in $deplibrary_names ; do
2862
		    for tmp in $deplibrary_names ; do
Lines 2567-2608 Link Here
2567
		    done
2864
		    done
2568
		    if test -f "$path/$depdepl" ; then
2865
		    if test -f "$path/$depdepl" ; then
2569
		      depdepl="$path/$depdepl"
2866
		      depdepl="$path/$depdepl"
2570
		   fi
2867
		    fi
2571
		    newlib_search_path="$newlib_search_path $path"
2868
		    # do not add paths which are already there
2572
		    path=""
2869
		    case " $newlib_search_path " in
2870
		    *" $path "*) ;;
2871
		    *) newlib_search_path="$newlib_search_path $path";;
2872
		    esac
2573
		  fi
2873
		  fi
2874
		  path=""
2574
		  ;;
2875
		  ;;
2575
		*)
2876
		*)
2576
		path="-L$path"
2877
		  path="-L$path"
2577
		;;
2878
		  ;;
2578
		esac 
2879
		esac
2579
		
2580
		;;
2880
		;;
2581
		  -l*)
2881
	      -l*)
2582
		case $host in
2882
		case $host in
2583
		*-*-darwin*)
2883
		*-*-darwin*)
2584
		 # Again, we only want to link against shared libraries
2884
		  # Again, we only want to link against shared libraries
2585
		 eval tmp_libs=`$echo "X$deplib" | $Xsed -e "s,^\-l,,"`
2885
		  eval tmp_libs=`$echo "X$deplib" | $Xsed -e "s,^\-l,,"`
2586
		 for tmp in $newlib_search_path ; do
2886
		  for tmp in $newlib_search_path ; do
2587
		     if test -f "$tmp/lib$tmp_libs.dylib" ; then
2887
		    if test -f "$tmp/lib$tmp_libs.dylib" ; then
2588
		       eval depdepl="$tmp/lib$tmp_libs.dylib"
2888
		      eval depdepl="$tmp/lib$tmp_libs.dylib"
2589
		       break
2889
		      break
2590
		     fi  
2890
		    fi
2591
         done
2891
		  done
2592
         path=""
2892
		  path=""
2593
		  ;;
2893
		  ;;
2594
		*) continue ;;
2894
		*) continue ;;
2595
		esac  		  
2895
		esac
2596
		;;
2896
		;;
2597
	      *) continue ;;
2897
	      *) continue ;;
2598
	      esac
2898
	      esac
2599
	      case " $deplibs " in
2899
	      case " $deplibs " in
2600
	      *" $depdepl "*) ;;
2601
	      *) deplibs="$deplibs $depdepl" ;;
2602
	      esac	      
2603
	      case " $deplibs " in
2604
	      *" $path "*) ;;
2900
	      *" $path "*) ;;
2605
	      *) deplibs="$deplibs $path" ;;
2901
	      *) deplibs="$path $deplibs" ;;
2902
	      esac
2903
	      case " $deplibs " in
2904
	      *" $depdepl "*) ;;
2905
	      *) deplibs="$depdepl $deplibs" ;;
2606
	      esac
2906
	      esac
2607
	    done
2907
	    done
2608
	  fi # link_all_deplibs != no
2908
	  fi # link_all_deplibs != no
Lines 2689-2695 Link Here
2689
	  eval $var=\"$tmp_libs\"
2989
	  eval $var=\"$tmp_libs\"
2690
	done # for var
2990
	done # for var
2691
      fi
2991
      fi
2692
      # Last step: remove runtime libs from dependency_libs (they stay in deplibs)
2992
      # Last step: remove runtime libs from dependency_libs
2993
      # (they stay in deplibs)
2693
      tmp_libs=
2994
      tmp_libs=
2694
      for i in $dependency_libs ; do
2995
      for i in $dependency_libs ; do
2695
	case " $predeps $postdeps $compiler_lib_search_path " in
2996
	case " $predeps $postdeps $compiler_lib_search_path " in
Lines 2749-2767 Link Here
2749
      case $outputname in
3050
      case $outputname in
2750
      lib*)
3051
      lib*)
2751
	name=`$echo "X$outputname" | $Xsed -e 's/\.la$//' -e 's/^lib//'`
3052
	name=`$echo "X$outputname" | $Xsed -e 's/\.la$//' -e 's/^lib//'`
2752
	eval shared_ext=\"$shrext\"
3053
	eval shared_ext=\"$shrext_cmds\"
2753
	eval libname=\"$libname_spec\"
3054
	eval libname=\"$libname_spec\"
2754
	;;
3055
	;;
2755
      *)
3056
      *)
2756
	if test "$module" = no; then
3057
	if test "$module" = no; then
2757
	  $echo "$modename: libtool library \`$output' must begin with \`lib'" 1>&2
3058
	  $echo "$modename: libtool library \`$output' must begin with \`lib'" 1>&2
2758
	  $echo "$help" 1>&2
3059
	  $echo "$help" 1>&2
2759
	  exit 1
3060
	  exit $EXIT_FAILURE
2760
	fi
3061
	fi
2761
	if test "$need_lib_prefix" != no; then
3062
	if test "$need_lib_prefix" != no; then
2762
	  # Add the "lib" prefix for modules if required
3063
	  # Add the "lib" prefix for modules if required
2763
	  name=`$echo "X$outputname" | $Xsed -e 's/\.la$//'`
3064
	  name=`$echo "X$outputname" | $Xsed -e 's/\.la$//'`
2764
	  eval shared_ext=\"$shrext\"
3065
	  eval shared_ext=\"$shrext_cmds\"
2765
	  eval libname=\"$libname_spec\"
3066
	  eval libname=\"$libname_spec\"
2766
	else
3067
	else
2767
	  libname=`$echo "X$outputname" | $Xsed -e 's/\.la$//'`
3068
	  libname=`$echo "X$outputname" | $Xsed -e 's/\.la$//'`
Lines 2772-2778 Link Here
2772
      if test -n "$objs"; then
3073
      if test -n "$objs"; then
2773
	if test "$deplibs_check_method" != pass_all; then
3074
	if test "$deplibs_check_method" != pass_all; then
2774
	  $echo "$modename: cannot build libtool library \`$output' from non-libtool objects on this host:$objs" 2>&1
3075
	  $echo "$modename: cannot build libtool library \`$output' from non-libtool objects on this host:$objs" 2>&1
2775
	  exit 1
3076
	  exit $EXIT_FAILURE
2776
	else
3077
	else
2777
	  $echo
3078
	  $echo
2778
	  $echo "*** Warning: Linking the shared library $output against the non-libtool"
3079
	  $echo "*** Warning: Linking the shared library $output against the non-libtool"
Lines 2820-2832 Link Here
2820
	if test -n "$8"; then
3121
	if test -n "$8"; then
2821
	  $echo "$modename: too many parameters to \`-version-info'" 1>&2
3122
	  $echo "$modename: too many parameters to \`-version-info'" 1>&2
2822
	  $echo "$help" 1>&2
3123
	  $echo "$help" 1>&2
2823
	  exit 1
3124
	  exit $EXIT_FAILURE
2824
	fi
3125
	fi
2825
3126
2826
	# convert absolute version numbers to libtool ages
3127
	# convert absolute version numbers to libtool ages
2827
	# this retains compatibility with .la files and attempts
3128
	# this retains compatibility with .la files and attempts
2828
	# to make the code below a bit more comprehensible
3129
	# to make the code below a bit more comprehensible
2829
	
3130
2830
	case $vinfo_number in
3131
	case $vinfo_number in
2831
	yes)
3132
	yes)
2832
	  number_major="$2"
3133
	  number_major="$2"
Lines 2866-2901 Link Here
2866
3167
2867
	# Check that each of the things are valid numbers.
3168
	# Check that each of the things are valid numbers.
2868
	case $current in
3169
	case $current in
2869
	0 | [1-9] | [1-9][0-9] | [1-9][0-9][0-9]) ;;
3170
	0|[1-9]|[1-9][0-9]|[1-9][0-9][0-9]|[1-9][0-9][0-9][0-9]|[1-9][0-9][0-9][0-9][0-9]) ;;
2870
	*)
3171
	*)
2871
	  $echo "$modename: CURRENT \`$current' is not a nonnegative integer" 1>&2
3172
	  $echo "$modename: CURRENT \`$current' must be a nonnegative integer" 1>&2
2872
	  $echo "$modename: \`$vinfo' is not valid version information" 1>&2
3173
	  $echo "$modename: \`$vinfo' is not valid version information" 1>&2
2873
	  exit 1
3174
	  exit $EXIT_FAILURE
2874
	  ;;
3175
	  ;;
2875
	esac
3176
	esac
2876
3177
2877
	case $revision in
3178
	case $revision in
2878
	0 | [1-9] | [1-9][0-9] | [1-9][0-9][0-9]) ;;
3179
	0|[1-9]|[1-9][0-9]|[1-9][0-9][0-9]|[1-9][0-9][0-9][0-9]|[1-9][0-9][0-9][0-9][0-9]) ;;
2879
	*)
3180
	*)
2880
	  $echo "$modename: REVISION \`$revision' is not a nonnegative integer" 1>&2
3181
	  $echo "$modename: REVISION \`$revision' must be a nonnegative integer" 1>&2
2881
	  $echo "$modename: \`$vinfo' is not valid version information" 1>&2
3182
	  $echo "$modename: \`$vinfo' is not valid version information" 1>&2
2882
	  exit 1
3183
	  exit $EXIT_FAILURE
2883
	  ;;
3184
	  ;;
2884
	esac
3185
	esac
2885
3186
2886
	case $age in
3187
	case $age in
2887
	0 | [1-9] | [1-9][0-9] | [1-9][0-9][0-9]) ;;
3188
	0|[1-9]|[1-9][0-9]|[1-9][0-9][0-9]|[1-9][0-9][0-9][0-9]|[1-9][0-9][0-9][0-9][0-9]) ;;
2888
	*)
3189
	*)
2889
	  $echo "$modename: AGE \`$age' is not a nonnegative integer" 1>&2
3190
	  $echo "$modename: AGE \`$age' must be a nonnegative integer" 1>&2
2890
	  $echo "$modename: \`$vinfo' is not valid version information" 1>&2
3191
	  $echo "$modename: \`$vinfo' is not valid version information" 1>&2
2891
	  exit 1
3192
	  exit $EXIT_FAILURE
2892
	  ;;
3193
	  ;;
2893
	esac
3194
	esac
2894
3195
2895
	if test "$age" -gt "$current"; then
3196
	if test "$age" -gt "$current"; then
2896
	  $echo "$modename: AGE \`$age' is greater than the current interface number \`$current'" 1>&2
3197
	  $echo "$modename: AGE \`$age' is greater than the current interface number \`$current'" 1>&2
2897
	  $echo "$modename: \`$vinfo' is not valid version information" 1>&2
3198
	  $echo "$modename: \`$vinfo' is not valid version information" 1>&2
2898
	  exit 1
3199
	  exit $EXIT_FAILURE
2899
	fi
3200
	fi
2900
3201
2901
	# Calculate the version variables.
3202
	# Calculate the version variables.
Lines 2912-2918 Link Here
2912
	  versuffix="$major.$age.$revision"
3213
	  versuffix="$major.$age.$revision"
2913
	  # Darwin ld doesn't like 0 for these options...
3214
	  # Darwin ld doesn't like 0 for these options...
2914
	  minor_current=`expr $current + 1`
3215
	  minor_current=`expr $current + 1`
2915
	  verstring="-compatibility_version $minor_current -current_version $minor_current.$revision"
3216
	  verstring="${wl}-compatibility_version ${wl}$minor_current ${wl}-current_version ${wl}$minor_current.$revision"
2916
	  ;;
3217
	  ;;
2917
3218
2918
	freebsd-aout)
3219
	freebsd-aout)
Lines 2984-2990 Link Here
2984
	*)
3285
	*)
2985
	  $echo "$modename: unknown library version type \`$version_type'" 1>&2
3286
	  $echo "$modename: unknown library version type \`$version_type'" 1>&2
2986
	  $echo "Fatal configuration error.  See the $PACKAGE docs for more information." 1>&2
3287
	  $echo "Fatal configuration error.  See the $PACKAGE docs for more information." 1>&2
2987
	  exit 1
3288
	  exit $EXIT_FAILURE
2988
	  ;;
3289
	  ;;
2989
	esac
3290
	esac
2990
3291
Lines 3038-3043 Link Here
3038
	    *.$objext)
3339
	    *.$objext)
3039
	       ;;
3340
	       ;;
3040
	    $output_objdir/$outputname | $output_objdir/$libname.* | $output_objdir/${libname}${release}.*)
3341
	    $output_objdir/$outputname | $output_objdir/$libname.* | $output_objdir/${libname}${release}.*)
3342
	       if test "X$precious_files_regex" != "X"; then
3343
	         if echo $p | $EGREP -e "$precious_files_regex" >/dev/null 2>&1
3344
	         then
3345
		   continue
3346
		 fi
3347
	       fi
3041
	       removelist="$removelist $p"
3348
	       removelist="$removelist $p"
3042
	       ;;
3349
	       ;;
3043
	    *) ;;
3350
	    *) ;;
Lines 3112-3118 Link Here
3112
	  *-*-netbsd*)
3419
	  *-*-netbsd*)
3113
	    # Don't link with libc until the a.out ld.so is fixed.
3420
	    # Don't link with libc until the a.out ld.so is fixed.
3114
	    ;;
3421
	    ;;
3115
	  *-*-openbsd* | *-*-freebsd*)
3422
	  *-*-openbsd* | *-*-freebsd* | *-*-dragonfly*)
3116
	    # Do not include libc due to us having libc/libc_r.
3423
	    # Do not include libc due to us having libc/libc_r.
3117
	    test "X$arg" = "X-lc" && continue
3424
	    test "X$arg" = "X-lc" && continue
3118
	    ;;
3425
	    ;;
Lines 3285-3290 Link Here
3285
			*) potlib=`$echo "X$potlib" | $Xsed -e 's,[^/]*$,,'`"$potliblink";;
3592
			*) potlib=`$echo "X$potlib" | $Xsed -e 's,[^/]*$,,'`"$potliblink";;
3286
			esac
3593
			esac
3287
		      done
3594
		      done
3595
		      # It is ok to link against an archive when
3596
		      # building a shared library.
3597
		      if $AR -t $potlib > /dev/null 2>&1; then
3598
		        newdeplibs="$newdeplibs $a_deplib"
3599
		        a_deplib=""
3600
		        break 2
3601
		      fi
3288
		      if eval $file_magic_cmd \"\$potlib\" 2>/dev/null \
3602
		      if eval $file_magic_cmd \"\$potlib\" 2>/dev/null \
3289
			 | ${SED} 10q \
3603
			 | ${SED} 10q \
3290
			 | $EGREP "$file_magic_regex" > /dev/null; then
3604
			 | $EGREP "$file_magic_regex" > /dev/null; then
Lines 3517-3523 Link Here
3517
	fi
3831
	fi
3518
3832
3519
	# Get the real and link names of the library.
3833
	# Get the real and link names of the library.
3520
	eval shared_ext=\"$shrext\"
3834
	eval shared_ext=\"$shrext_cmds\"
3521
	eval library_names=\"$library_names_spec\"
3835
	eval library_names=\"$library_names_spec\"
3522
	set dummy $library_names
3836
	set dummy $library_names
3523
	realname="$2"
3837
	realname="$2"
Lines 3547-3556 Link Here
3547
	    $show "generating symbol list for \`$libname.la'"
3861
	    $show "generating symbol list for \`$libname.la'"
3548
	    export_symbols="$output_objdir/$libname.exp"
3862
	    export_symbols="$output_objdir/$libname.exp"
3549
	    $run $rm $export_symbols
3863
	    $run $rm $export_symbols
3550
	    eval cmds=\"$export_symbols_cmds\"
3864
	    cmds=$export_symbols_cmds
3551
	    save_ifs="$IFS"; IFS='~'
3865
	    save_ifs="$IFS"; IFS='~'
3552
	    for cmd in $cmds; do
3866
	    for cmd in $cmds; do
3553
	      IFS="$save_ifs"
3867
	      IFS="$save_ifs"
3868
	      eval cmd=\"$cmd\"
3554
	      if len=`expr "X$cmd" : ".*"` &&
3869
	      if len=`expr "X$cmd" : ".*"` &&
3555
	       test "$len" -le "$max_cmd_len" || test "$max_cmd_len" -le -1; then
3870
	       test "$len" -le "$max_cmd_len" || test "$max_cmd_len" -le -1; then
3556
	        $show "$cmd"
3871
	        $show "$cmd"
Lines 3580-3591 Link Here
3580
	for test_deplib in $deplibs; do
3895
	for test_deplib in $deplibs; do
3581
		case " $convenience " in
3896
		case " $convenience " in
3582
		*" $test_deplib "*) ;;
3897
		*" $test_deplib "*) ;;
3583
		*) 
3898
		*)
3584
			tmp_deplibs="$tmp_deplibs $test_deplib"
3899
			tmp_deplibs="$tmp_deplibs $test_deplib"
3585
			;;
3900
			;;
3586
		esac
3901
		esac
3587
	done
3902
	done
3588
	deplibs="$tmp_deplibs" 
3903
	deplibs="$tmp_deplibs"
3589
3904
3590
	if test -n "$convenience"; then
3905
	if test -n "$convenience"; then
3591
	  if test -n "$whole_archive_flag_spec"; then
3906
	  if test -n "$whole_archive_flag_spec"; then
Lines 3593-3659 Link Here
3593
	    eval libobjs=\"\$libobjs $whole_archive_flag_spec\"
3908
	    eval libobjs=\"\$libobjs $whole_archive_flag_spec\"
3594
	  else
3909
	  else
3595
	    gentop="$output_objdir/${outputname}x"
3910
	    gentop="$output_objdir/${outputname}x"
3596
	    $show "${rm}r $gentop"
3597
	    $run ${rm}r "$gentop"
3598
	    $show "$mkdir $gentop"
3599
	    $run $mkdir "$gentop"
3600
	    status=$?
3601
	    if test "$status" -ne 0 && test ! -d "$gentop"; then
3602
	      exit $status
3603
	    fi
3604
	    generated="$generated $gentop"
3911
	    generated="$generated $gentop"
3605
3912
3606
	    for xlib in $convenience; do
3913
	    func_extract_archives $gentop $convenience
3607
	      # Extract the objects.
3914
	    libobjs="$libobjs $func_extract_archives_result"
3608
	      case $xlib in
3609
	      [\\/]* | [A-Za-z]:[\\/]*) xabs="$xlib" ;;
3610
	      *) xabs=`pwd`"/$xlib" ;;
3611
	      esac
3612
	      xlib=`$echo "X$xlib" | $Xsed -e 's%^.*/%%'`
3613
	      xdir="$gentop/$xlib"
3614
3615
	      $show "${rm}r $xdir"
3616
	      $run ${rm}r "$xdir"
3617
	      $show "$mkdir $xdir"
3618
	      $run $mkdir "$xdir"
3619
	      status=$?
3620
	      if test "$status" -ne 0 && test ! -d "$xdir"; then
3621
		exit $status
3622
	      fi
3623
	      # We will extract separately just the conflicting names and we will no
3624
	      # longer touch any unique names. It is faster to leave these extract
3625
	      # automatically by $AR in one run.
3626
	      $show "(cd $xdir && $AR x $xabs)"
3627
	      $run eval "(cd \$xdir && $AR x \$xabs)" || exit $?
3628
	      if ($AR t "$xabs" | sort | sort -uc >/dev/null 2>&1); then
3629
		:
3630
	      else
3631
		$echo "$modename: warning: object name conflicts; renaming object files" 1>&2
3632
		$echo "$modename: warning: to ensure that they will not overwrite" 1>&2
3633
		$AR t "$xabs" | sort | uniq -cd | while read -r count name
3634
		do
3635
		  i=1
3636
		  while test "$i" -le "$count"
3637
		  do
3638
		   # Put our $i before any first dot (extension)
3639
		   # Never overwrite any file
3640
		   name_to="$name"
3641
		   while test "X$name_to" = "X$name" || test -f "$xdir/$name_to"
3642
		   do
3643
		     name_to=`$echo "X$name_to" | $Xsed -e "s/\([^.]*\)/\1-$i/"`
3644
		   done
3645
		   $show "(cd $xdir && $AR xN $i $xabs '$name' && $mv '$name' '$name_to')"
3646
		   $run eval "(cd \$xdir && $AR xN $i \$xabs '$name' && $mv '$name' '$name_to')" || exit $?
3647
		   i=`expr $i + 1`
3648
		  done
3649
		done
3650
	      fi
3651
3652
	      libobjs="$libobjs "`find $xdir -name \*.$objext -print -o -name \*.lo -print | $NL2SP`
3653
	    done
3654
	  fi
3915
	  fi
3655
	fi
3916
	fi
3656
3917
	
3657
	if test "$thread_safe" = yes && test -n "$thread_safe_flag_spec"; then
3918
	if test "$thread_safe" = yes && test -n "$thread_safe_flag_spec"; then
3658
	  eval flag=\"$thread_safe_flag_spec\"
3919
	  eval flag=\"$thread_safe_flag_spec\"
3659
	  linker_flags="$linker_flags $flag"
3920
	  linker_flags="$linker_flags $flag"
Lines 3667-3685 Link Here
3667
	# Do each of the archive commands.
3928
	# Do each of the archive commands.
3668
	if test "$module" = yes && test -n "$module_cmds" ; then
3929
	if test "$module" = yes && test -n "$module_cmds" ; then
3669
	  if test -n "$export_symbols" && test -n "$module_expsym_cmds"; then
3930
	  if test -n "$export_symbols" && test -n "$module_expsym_cmds"; then
3670
	    eval cmds=\"$module_expsym_cmds\"
3931
	    eval test_cmds=\"$module_expsym_cmds\"
3932
	    cmds=$module_expsym_cmds
3671
	  else
3933
	  else
3672
	    eval cmds=\"$module_cmds\"
3934
	    eval test_cmds=\"$module_cmds\"
3935
	    cmds=$module_cmds
3673
	  fi
3936
	  fi
3674
	else
3937
	else
3675
	if test -n "$export_symbols" && test -n "$archive_expsym_cmds"; then
3938
	if test -n "$export_symbols" && test -n "$archive_expsym_cmds"; then
3676
	  eval cmds=\"$archive_expsym_cmds\"
3939
	  eval test_cmds=\"$archive_expsym_cmds\"
3940
	  cmds=$archive_expsym_cmds
3677
	else
3941
	else
3678
	  eval cmds=\"$archive_cmds\"
3942
	  eval test_cmds=\"$archive_cmds\"
3943
	  cmds=$archive_cmds
3679
	  fi
3944
	  fi
3680
	fi
3945
	fi
3681
3946
3682
	if test "X$skipped_export" != "X:" && len=`expr "X$cmds" : ".*"` &&
3947
	if test "X$skipped_export" != "X:" && len=`expr "X$test_cmds" : ".*"` &&
3683
	   test "$len" -le "$max_cmd_len" || test "$max_cmd_len" -le -1; then
3948
	   test "$len" -le "$max_cmd_len" || test "$max_cmd_len" -le -1; then
3684
	  :
3949
	  :
3685
	else
3950
	else
Lines 3698-3703 Link Here
3698
	    save_libobjs=$libobjs
3963
	    save_libobjs=$libobjs
3699
	  fi
3964
	  fi
3700
	  save_output=$output
3965
	  save_output=$output
3966
	  output_la=`$echo "X$output" | $Xsed -e "$basename"`
3701
3967
3702
	  # Clear the reloadable object creation command queue and
3968
	  # Clear the reloadable object creation command queue and
3703
	  # initialize k to one.
3969
	  # initialize k to one.
Lines 3707-3713 Link Here
3707
	  delfiles=
3973
	  delfiles=
3708
	  last_robj=
3974
	  last_robj=
3709
	  k=1
3975
	  k=1
3710
	  output=$output_objdir/$save_output-${k}.$objext
3976
	  output=$output_objdir/$output_la-${k}.$objext
3711
	  # Loop over the list of objects to be linked.
3977
	  # Loop over the list of objects to be linked.
3712
	  for obj in $save_libobjs
3978
	  for obj in $save_libobjs
3713
	  do
3979
	  do
Lines 3727-3735 Link Here
3727
		# the last one created.
3993
		# the last one created.
3728
		eval concat_cmds=\"\$concat_cmds~$reload_cmds $objlist $last_robj\"
3994
		eval concat_cmds=\"\$concat_cmds~$reload_cmds $objlist $last_robj\"
3729
	      fi
3995
	      fi
3730
	      last_robj=$output_objdir/$save_output-${k}.$objext
3996
	      last_robj=$output_objdir/$output_la-${k}.$objext
3731
	      k=`expr $k + 1`
3997
	      k=`expr $k + 1`
3732
	      output=$output_objdir/$save_output-${k}.$objext
3998
	      output=$output_objdir/$output_la-${k}.$objext
3733
	      objlist=$obj
3999
	      objlist=$obj
3734
	      len=1
4000
	      len=1
3735
	    fi
4001
	    fi
Lines 3749-3761 Link Here
3749
	    eval concat_cmds=\"\$concat_cmds~$export_symbols_cmds\"
4015
	    eval concat_cmds=\"\$concat_cmds~$export_symbols_cmds\"
3750
          fi
4016
          fi
3751
4017
3752
	  # Set up a command to remove the reloadale object files
4018
	  # Set up a command to remove the reloadable object files
3753
	  # after they are used.
4019
	  # after they are used.
3754
	  i=0
4020
	  i=0
3755
	  while test "$i" -lt "$k"
4021
	  while test "$i" -lt "$k"
3756
	  do
4022
	  do
3757
	    i=`expr $i + 1`
4023
	    i=`expr $i + 1`
3758
	    delfiles="$delfiles $output_objdir/$save_output-${i}.$objext"
4024
	    delfiles="$delfiles $output_objdir/$output_la-${i}.$objext"
3759
	  done
4025
	  done
3760
4026
3761
	  $echo "creating a temporary reloadable object file: $output"
4027
	  $echo "creating a temporary reloadable object file: $output"
Lines 3780-3798 Link Here
3780
	  # value of $libobjs for piecewise linking.
4046
	  # value of $libobjs for piecewise linking.
3781
4047
3782
	  # Do each of the archive commands.
4048
	  # Do each of the archive commands.
4049
	  if test "$module" = yes && test -n "$module_cmds" ; then
4050
	    if test -n "$export_symbols" && test -n "$module_expsym_cmds"; then
4051
	      cmds=$module_expsym_cmds
4052
	    else
4053
	      cmds=$module_cmds
4054
	    fi
4055
	  else
3783
	  if test -n "$export_symbols" && test -n "$archive_expsym_cmds"; then
4056
	  if test -n "$export_symbols" && test -n "$archive_expsym_cmds"; then
3784
	    eval cmds=\"$archive_expsym_cmds\"
4057
	    cmds=$archive_expsym_cmds
3785
	  else
4058
	  else
3786
	    eval cmds=\"$archive_cmds\"
4059
	    cmds=$archive_cmds
4060
	    fi
3787
	  fi
4061
	  fi
3788
4062
3789
	  # Append the command to remove the reloadable object files
4063
	  # Append the command to remove the reloadable object files
3790
	  # to the just-reset $cmds.
4064
	  # to the just-reset $cmds.
3791
	  eval cmds=\"\$cmds~$rm $delfiles\"
4065
	  eval cmds=\"\$cmds~\$rm $delfiles\"
3792
	fi
4066
	fi
3793
	save_ifs="$IFS"; IFS='~'
4067
	save_ifs="$IFS"; IFS='~'
3794
	for cmd in $cmds; do
4068
	for cmd in $cmds; do
3795
	  IFS="$save_ifs"
4069
	  IFS="$save_ifs"
4070
	  eval cmd=\"$cmd\"
3796
	  $show "$cmd"
4071
	  $show "$cmd"
3797
	  $run eval "$cmd" || exit $?
4072
	  $run eval "$cmd" || exit $?
3798
	done
4073
	done
Lines 3801-3807 Link Here
3801
	# Restore the uninstalled library and exit
4076
	# Restore the uninstalled library and exit
3802
	if test "$mode" = relink; then
4077
	if test "$mode" = relink; then
3803
	  $run eval '(cd $output_objdir && $rm ${realname}T && $mv $realname ${realname}T && $mv "$realname"U $realname)' || exit $?
4078
	  $run eval '(cd $output_objdir && $rm ${realname}T && $mv $realname ${realname}T && $mv "$realname"U $realname)' || exit $?
3804
	  exit 0
4079
	  exit $EXIT_SUCCESS
3805
	fi
4080
	fi
3806
4081
3807
	# Create links to the real library.
4082
	# Create links to the real library.
Lines 3849-3855 Link Here
3849
      *.lo)
4124
      *.lo)
3850
	if test -n "$objs$old_deplibs"; then
4125
	if test -n "$objs$old_deplibs"; then
3851
	  $echo "$modename: cannot build library object \`$output' from non-libtool objects" 1>&2
4126
	  $echo "$modename: cannot build library object \`$output' from non-libtool objects" 1>&2
3852
	  exit 1
4127
	  exit $EXIT_FAILURE
3853
	fi
4128
	fi
3854
	libobj="$output"
4129
	libobj="$output"
3855
	obj=`$echo "X$output" | $Xsed -e "$lo2o"`
4130
	obj=`$echo "X$output" | $Xsed -e "$lo2o"`
Lines 3878-3941 Link Here
3878
	  eval reload_conv_objs=\"\$reload_objs $whole_archive_flag_spec\"
4153
	  eval reload_conv_objs=\"\$reload_objs $whole_archive_flag_spec\"
3879
	else
4154
	else
3880
	  gentop="$output_objdir/${obj}x"
4155
	  gentop="$output_objdir/${obj}x"
3881
	  $show "${rm}r $gentop"
3882
	  $run ${rm}r "$gentop"
3883
	  $show "$mkdir $gentop"
3884
	  $run $mkdir "$gentop"
3885
	  status=$?
3886
	  if test "$status" -ne 0 && test ! -d "$gentop"; then
3887
	    exit $status
3888
	  fi
3889
	  generated="$generated $gentop"
4156
	  generated="$generated $gentop"
3890
4157
3891
	  for xlib in $convenience; do
4158
	  func_extract_archives $gentop $convenience
3892
	    # Extract the objects.
4159
	  reload_conv_objs="$reload_objs $func_extract_archives_result"
3893
	    case $xlib in
3894
	    [\\/]* | [A-Za-z]:[\\/]*) xabs="$xlib" ;;
3895
	    *) xabs=`pwd`"/$xlib" ;;
3896
	    esac
3897
	    xlib=`$echo "X$xlib" | $Xsed -e 's%^.*/%%'`
3898
	    xdir="$gentop/$xlib"
3899
3900
	    $show "${rm}r $xdir"
3901
	    $run ${rm}r "$xdir"
3902
	    $show "$mkdir $xdir"
3903
	    $run $mkdir "$xdir"
3904
	    status=$?
3905
	    if test "$status" -ne 0 && test ! -d "$xdir"; then
3906
	      exit $status
3907
	    fi
3908
	    # We will extract separately just the conflicting names and we will no
3909
	    # longer touch any unique names. It is faster to leave these extract
3910
	    # automatically by $AR in one run.
3911
	    $show "(cd $xdir && $AR x $xabs)"
3912
	    $run eval "(cd \$xdir && $AR x \$xabs)" || exit $?
3913
	    if ($AR t "$xabs" | sort | sort -uc >/dev/null 2>&1); then
3914
	      :
3915
	    else
3916
	      $echo "$modename: warning: object name conflicts; renaming object files" 1>&2
3917
	      $echo "$modename: warning: to ensure that they will not overwrite" 1>&2
3918
	      $AR t "$xabs" | sort | uniq -cd | while read -r count name
3919
	      do
3920
		i=1
3921
		while test "$i" -le "$count"
3922
		do
3923
		 # Put our $i before any first dot (extension)
3924
		 # Never overwrite any file
3925
		 name_to="$name"
3926
		 while test "X$name_to" = "X$name" || test -f "$xdir/$name_to"
3927
		 do
3928
		   name_to=`$echo "X$name_to" | $Xsed -e "s/\([^.]*\)/\1-$i/"`
3929
		 done
3930
		 $show "(cd $xdir && $AR xN $i $xabs '$name' && $mv '$name' '$name_to')"
3931
		 $run eval "(cd \$xdir && $AR xN $i \$xabs '$name' && $mv '$name' '$name_to')" || exit $?
3932
		 i=`expr $i + 1`
3933
		done
3934
	      done
3935
	    fi
3936
3937
	    reload_conv_objs="$reload_objs "`find $xdir -name \*.$objext -print -o -name \*.lo -print | $NL2SP`
3938
	  done
3939
	fi
4160
	fi
3940
      fi
4161
      fi
3941
4162
Lines 3943-3952 Link Here
3943
      reload_objs="$objs$old_deplibs "`$echo "X$libobjs" | $SP2NL | $Xsed -e '/\.'${libext}$'/d' -e '/\.lib$/d' -e "$lo2o" | $NL2SP`" $reload_conv_objs" ### testsuite: skip nested quoting test
4164
      reload_objs="$objs$old_deplibs "`$echo "X$libobjs" | $SP2NL | $Xsed -e '/\.'${libext}$'/d' -e '/\.lib$/d' -e "$lo2o" | $NL2SP`" $reload_conv_objs" ### testsuite: skip nested quoting test
3944
4165
3945
      output="$obj"
4166
      output="$obj"
3946
      eval cmds=\"$reload_cmds\"
4167
      cmds=$reload_cmds
3947
      save_ifs="$IFS"; IFS='~'
4168
      save_ifs="$IFS"; IFS='~'
3948
      for cmd in $cmds; do
4169
      for cmd in $cmds; do
3949
	IFS="$save_ifs"
4170
	IFS="$save_ifs"
4171
	eval cmd=\"$cmd\"
3950
	$show "$cmd"
4172
	$show "$cmd"
3951
	$run eval "$cmd" || exit $?
4173
	$run eval "$cmd" || exit $?
3952
      done
4174
      done
Lines 3959-3965 Link Here
3959
	  $run ${rm}r $gentop
4181
	  $run ${rm}r $gentop
3960
	fi
4182
	fi
3961
4183
3962
	exit 0
4184
	exit $EXIT_SUCCESS
3963
      fi
4185
      fi
3964
4186
3965
      if test "$build_libtool_libs" != yes; then
4187
      if test "$build_libtool_libs" != yes; then
Lines 3972-3988 Link Here
3972
	# accidentally link it into a program.
4194
	# accidentally link it into a program.
3973
	# $show "echo timestamp > $libobj"
4195
	# $show "echo timestamp > $libobj"
3974
	# $run eval "echo timestamp > $libobj" || exit $?
4196
	# $run eval "echo timestamp > $libobj" || exit $?
3975
	exit 0
4197
	exit $EXIT_SUCCESS
3976
      fi
4198
      fi
3977
4199
3978
      if test -n "$pic_flag" || test "$pic_mode" != default; then
4200
      if test -n "$pic_flag" || test "$pic_mode" != default; then
3979
	# Only do commands if we really have different PIC objects.
4201
	# Only do commands if we really have different PIC objects.
3980
	reload_objs="$libobjs $reload_conv_objs"
4202
	reload_objs="$libobjs $reload_conv_objs"
3981
	output="$libobj"
4203
	output="$libobj"
3982
	eval cmds=\"$reload_cmds\"
4204
	cmds=$reload_cmds
3983
	save_ifs="$IFS"; IFS='~'
4205
	save_ifs="$IFS"; IFS='~'
3984
	for cmd in $cmds; do
4206
	for cmd in $cmds; do
3985
	  IFS="$save_ifs"
4207
	  IFS="$save_ifs"
4208
	  eval cmd=\"$cmd\"
3986
	  $show "$cmd"
4209
	  $show "$cmd"
3987
	  $run eval "$cmd" || exit $?
4210
	  $run eval "$cmd" || exit $?
3988
	done
4211
	done
Lines 3994-4000 Link Here
3994
	$run ${rm}r $gentop
4217
	$run ${rm}r $gentop
3995
      fi
4218
      fi
3996
4219
3997
      exit 0
4220
      exit $EXIT_SUCCESS
3998
      ;;
4221
      ;;
3999
4222
4000
    prog)
4223
    prog)
Lines 4195-4206 Link Here
4195
4418
4196
	    # Prepare the list of exported symbols
4419
	    # Prepare the list of exported symbols
4197
	    if test -z "$export_symbols"; then
4420
	    if test -z "$export_symbols"; then
4198
	      export_symbols="$output_objdir/$output.exp"
4421
	      export_symbols="$output_objdir/$outputname.exp"
4199
	      $run $rm $export_symbols
4422
	      $run $rm $export_symbols
4200
	      $run eval "${SED} -n -e '/^: @PROGRAM@$/d' -e 's/^.* \(.*\)$/\1/p' "'< "$nlist" > "$export_symbols"'
4423
	      $run eval "${SED} -n -e '/^: @PROGRAM@$/d' -e 's/^.* \(.*\)$/\1/p' "'< "$nlist" > "$export_symbols"'
4201
	    else
4424
	    else
4202
	      $run eval "${SED} -e 's/\([][.*^$]\)/\\\1/g' -e 's/^/ /' -e 's/$/$/'"' < "$export_symbols" > "$output_objdir/$output.exp"'
4425
	      $run eval "${SED} -e 's/\([ ][.*^$]\)/\\\1/g' -e 's/^/ /' -e 's/$/$/'"' < "$export_symbols" > "$output_objdir/$outputname.exp"'
4203
	      $run eval 'grep -f "$output_objdir/$output.exp" < "$nlist" > "$nlist"T'
4426
	      $run eval 'grep -f "$output_objdir/$outputname.exp" < "$nlist" > "$nlist"T'
4204
	      $run eval 'mv "$nlist"T "$nlist"'
4427
	      $run eval 'mv "$nlist"T "$nlist"'
4205
	    fi
4428
	    fi
4206
	  fi
4429
	  fi
Lines 4252-4258 Link Here
4252
#endif
4475
#endif
4253
4476
4254
/* The mapping between symbol names and symbols. */
4477
/* The mapping between symbol names and symbols. */
4478
"
4479
4480
	    case $host in
4481
	    *cygwin* | *mingw* )
4482
	  $echo >> "$output_objdir/$dlsyms" "\
4483
/* DATA imports from DLLs on WIN32 can't be const, because
4484
   runtime relocations are performed -- see ld's documentation
4485
   on pseudo-relocs */
4486
struct {
4487
"
4488
	      ;;
4489
	    * )
4490
	  $echo >> "$output_objdir/$dlsyms" "\
4255
const struct {
4491
const struct {
4492
"
4493
	      ;;
4494
	    esac
4495
4496
4497
	  $echo >> "$output_objdir/$dlsyms" "\
4256
  const char *name;
4498
  const char *name;
4257
  lt_ptr address;
4499
  lt_ptr address;
4258
}
4500
}
Lines 4312-4318 Link Here
4312
	  ;;
4554
	  ;;
4313
	*)
4555
	*)
4314
	  $echo "$modename: unknown suffix for \`$dlsyms'" 1>&2
4556
	  $echo "$modename: unknown suffix for \`$dlsyms'" 1>&2
4315
	  exit 1
4557
	  exit $EXIT_FAILURE
4316
	  ;;
4558
	  ;;
4317
	esac
4559
	esac
4318
      else
4560
      else
Lines 4400-4406 Link Here
4400
	# Link the executable and exit
4642
	# Link the executable and exit
4401
	$show "$link_command"
4643
	$show "$link_command"
4402
	$run eval "$link_command" || exit $?
4644
	$run eval "$link_command" || exit $?
4403
	exit 0
4645
	exit $EXIT_SUCCESS
4404
      fi
4646
      fi
4405
4647
4406
      if test "$hardcode_action" = relink; then
4648
      if test "$hardcode_action" = relink; then
Lines 4455-4464 Link Here
4455
      fi
4697
      fi
4456
4698
4457
      # Quote $echo for shipping.
4699
      # Quote $echo for shipping.
4458
      if test "X$echo" = "X$SHELL $0 --fallback-echo"; then
4700
      if test "X$echo" = "X$SHELL $progpath --fallback-echo"; then
4459
	case $0 in
4701
	case $progpath in
4460
	[\\/]* | [A-Za-z]:[\\/]*) qecho="$SHELL $0 --fallback-echo";;
4702
	[\\/]* | [A-Za-z]:[\\/]*) qecho="$SHELL $progpath --fallback-echo";;
4461
	*) qecho="$SHELL `pwd`/$0 --fallback-echo";;
4703
	*) qecho="$SHELL `pwd`/$progpath --fallback-echo";;
4462
	esac
4704
	esac
4463
	qecho=`$echo "X$qecho" | $Xsed -e "$sed_quote_subst"`
4705
	qecho=`$echo "X$qecho" | $Xsed -e "$sed_quote_subst"`
4464
      else
4706
      else
Lines 4481-4490 Link Here
4481
	esac
4723
	esac
4482
	case $host in
4724
	case $host in
4483
	  *cygwin* | *mingw* )
4725
	  *cygwin* | *mingw* )
4484
	    cwrappersource=`$echo ${objdir}/lt-${output}.c`
4726
	    cwrappersource=`$echo ${objdir}/lt-${outputname}.c`
4485
	    cwrapper=`$echo ${output}.exe`
4727
	    cwrapper=`$echo ${output}.exe`
4486
	    $rm $cwrappersource $cwrapper
4728
	    $rm $cwrappersource $cwrapper
4487
	    trap "$rm $cwrappersource $cwrapper; exit 1" 1 2 15
4729
	    trap "$rm $cwrappersource $cwrapper; exit $EXIT_FAILURE" 1 2 15
4488
4730
4489
	    cat > $cwrappersource <<EOF
4731
	    cat > $cwrappersource <<EOF
4490
4732
Lines 4493-4499 Link Here
4493
4735
4494
   The $output program cannot be directly executed until all the libtool
4736
   The $output program cannot be directly executed until all the libtool
4495
   libraries that it depends on are installed.
4737
   libraries that it depends on are installed.
4496
   
4738
4497
   This wrapper executable should never be moved out of the build directory.
4739
   This wrapper executable should never be moved out of the build directory.
4498
   If it is, it will not operate correctly.
4740
   If it is, it will not operate correctly.
4499
4741
Lines 4525-4531 Link Here
4525
#if defined (_WIN32) || defined (__MSDOS__) || defined (__DJGPP__) || \
4767
#if defined (_WIN32) || defined (__MSDOS__) || defined (__DJGPP__) || \
4526
  defined (__OS2__)
4768
  defined (__OS2__)
4527
#define HAVE_DOS_BASED_FILE_SYSTEM
4769
#define HAVE_DOS_BASED_FILE_SYSTEM
4528
#ifndef DIR_SEPARATOR_2 
4770
#ifndef DIR_SEPARATOR_2
4529
#define DIR_SEPARATOR_2 '\\'
4771
#define DIR_SEPARATOR_2 '\\'
4530
#endif
4772
#endif
4531
#endif
4773
#endif
Lines 4556-4562 Link Here
4556
{
4798
{
4557
  char **newargz;
4799
  char **newargz;
4558
  int i;
4800
  int i;
4559
  
4801
4560
  program_name = (char *) xstrdup ((char *) basename (argv[0]));
4802
  program_name = (char *) xstrdup ((char *) basename (argv[0]));
4561
  newargz = XMALLOC(char *, argc+2);
4803
  newargz = XMALLOC(char *, argc+2);
4562
EOF
4804
EOF
Lines 4569-4575 Link Here
4569
  newargz[1] = fnqualify(argv[0]);
4811
  newargz[1] = fnqualify(argv[0]);
4570
  /* we know the script has the same name, without the .exe */
4812
  /* we know the script has the same name, without the .exe */
4571
  /* so make sure newargz[1] doesn't end in .exe */
4813
  /* so make sure newargz[1] doesn't end in .exe */
4572
  strendzap(newargz[1],".exe"); 
4814
  strendzap(newargz[1],".exe");
4573
  for (i = 1; i < argc; i++)
4815
  for (i = 1; i < argc; i++)
4574
    newargz[i+1] = xstrdup(argv[i]);
4816
    newargz[i+1] = xstrdup(argv[i]);
4575
  newargz[argc+1] = NULL;
4817
  newargz[argc+1] = NULL;
Lines 4592-4598 Link Here
4592
  return p;
4834
  return p;
4593
}
4835
}
4594
4836
4595
char * 
4837
char *
4596
xstrdup (const char *string)
4838
xstrdup (const char *string)
4597
{
4839
{
4598
  return string ? strcpy ((char *) xmalloc (strlen (string) + 1), string) : NULL
4840
  return string ? strcpy ((char *) xmalloc (strlen (string) + 1), string) : NULL
Lines 4606-4612 Link Here
4606
4848
4607
#if defined (HAVE_DOS_BASED_FILE_SYSTEM)
4849
#if defined (HAVE_DOS_BASED_FILE_SYSTEM)
4608
  /* Skip over the disk name in MSDOS pathnames. */
4850
  /* Skip over the disk name in MSDOS pathnames. */
4609
  if (isalpha (name[0]) && name[1] == ':') 
4851
  if (isalpha (name[0]) && name[1] == ':')
4610
    name += 2;
4852
    name += 2;
4611
#endif
4853
#endif
4612
4854
Lines 4616-4622 Link Here
4616
  return (char *) base;
4858
  return (char *) base;
4617
}
4859
}
4618
4860
4619
char * 
4861
char *
4620
fnqualify(const char *path)
4862
fnqualify(const char *path)
4621
{
4863
{
4622
  size_t size;
4864
  size_t size;
Lines 4644-4650 Link Here
4644
}
4886
}
4645
4887
4646
char *
4888
char *
4647
strendzap(char *str, const char *pat) 
4889
strendzap(char *str, const char *pat)
4648
{
4890
{
4649
  size_t len, patlen;
4891
  size_t len, patlen;
4650
4892
Lines 4664-4670 Link Here
4664
}
4906
}
4665
4907
4666
static void
4908
static void
4667
lt_error_core (int exit_status, const char * mode, 
4909
lt_error_core (int exit_status, const char * mode,
4668
          const char * message, va_list ap)
4910
          const char * message, va_list ap)
4669
{
4911
{
4670
  fprintf (stderr, "%s: %s: ", program_name, mode);
4912
  fprintf (stderr, "%s: %s: ", program_name, mode);
Lines 4693-4699 Link Here
4693
	  ;;
4935
	  ;;
4694
	esac
4936
	esac
4695
	$rm $output
4937
	$rm $output
4696
	trap "$rm $output; exit 1" 1 2 15
4938
	trap "$rm $output; exit $EXIT_FAILURE" 1 2 15
4697
4939
4698
	$echo > $output "\
4940
	$echo > $output "\
4699
#! $SHELL
4941
#! $SHELL
Lines 4714-4720 Link Here
4714
4956
4715
# The HP-UX ksh and POSIX shell print the target directory to stdout
4957
# The HP-UX ksh and POSIX shell print the target directory to stdout
4716
# if CDPATH is set.
4958
# if CDPATH is set.
4717
if test \"\${CDPATH+set}\" = set; then CDPATH=:; export CDPATH; fi
4959
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
4718
4960
4719
relink_command=\"$relink_command\"
4961
relink_command=\"$relink_command\"
4720
4962
Lines 4793-4799 Link Here
4793
      else
5035
      else
4794
	$echo \"\$relink_command_output\" >&2
5036
	$echo \"\$relink_command_output\" >&2
4795
	$rm \"\$progdir/\$file\"
5037
	$rm \"\$progdir/\$file\"
4796
	exit 1
5038
	exit $EXIT_FAILURE
4797
      fi
5039
      fi
4798
    fi
5040
    fi
4799
5041
Lines 4855-4874 Link Here
4855
	esac
5097
	esac
4856
	$echo >> $output "\
5098
	$echo >> $output "\
4857
      \$echo \"\$0: cannot exec \$program \${1+\"\$@\"}\"
5099
      \$echo \"\$0: cannot exec \$program \${1+\"\$@\"}\"
4858
      exit 1
5100
      exit $EXIT_FAILURE
4859
    fi
5101
    fi
4860
  else
5102
  else
4861
    # The program doesn't exist.
5103
    # The program doesn't exist.
4862
    \$echo \"\$0: error: \$progdir/\$program does not exist\" 1>&2
5104
    \$echo \"\$0: error: \$progdir/\$program does not exist\" 1>&2
4863
    \$echo \"This script is just a wrapper for \$program.\" 1>&2
5105
    \$echo \"This script is just a wrapper for \$program.\" 1>&2
4864
    $echo \"See the $PACKAGE documentation for more information.\" 1>&2
5106
    $echo \"See the $PACKAGE documentation for more information.\" 1>&2
4865
    exit 1
5107
    exit $EXIT_FAILURE
4866
  fi
5108
  fi
4867
fi\
5109
fi\
4868
"
5110
"
4869
	chmod +x $output
5111
	chmod +x $output
4870
      fi
5112
      fi
4871
      exit 0
5113
      exit $EXIT_SUCCESS
4872
      ;;
5114
      ;;
4873
    esac
5115
    esac
4874
5116
Lines 4891-4966 Link Here
4891
5133
4892
      if test -n "$addlibs"; then
5134
      if test -n "$addlibs"; then
4893
	gentop="$output_objdir/${outputname}x"
5135
	gentop="$output_objdir/${outputname}x"
4894
	$show "${rm}r $gentop"
4895
	$run ${rm}r "$gentop"
4896
	$show "$mkdir $gentop"
4897
	$run $mkdir "$gentop"
4898
	status=$?
4899
	if test "$status" -ne 0 && test ! -d "$gentop"; then
4900
	  exit $status
4901
	fi
4902
	generated="$generated $gentop"
5136
	generated="$generated $gentop"
4903
5137
4904
	# Add in members from convenience archives.
5138
	func_extract_archives $gentop $addlibs
4905
	for xlib in $addlibs; do
5139
	oldobjs="$oldobjs $func_extract_archives_result"
4906
	  # Extract the objects.
4907
	  case $xlib in
4908
	  [\\/]* | [A-Za-z]:[\\/]*) xabs="$xlib" ;;
4909
	  *) xabs=`pwd`"/$xlib" ;;
4910
	  esac
4911
	  xlib=`$echo "X$xlib" | $Xsed -e 's%^.*/%%'`
4912
	  xdir="$gentop/$xlib"
4913
4914
	  $show "${rm}r $xdir"
4915
	  $run ${rm}r "$xdir"
4916
	  $show "$mkdir $xdir"
4917
	  $run $mkdir "$xdir"
4918
	  status=$?
4919
	  if test "$status" -ne 0 && test ! -d "$xdir"; then
4920
	    exit $status
4921
	  fi
4922
	  # We will extract separately just the conflicting names and we will no
4923
	  # longer touch any unique names. It is faster to leave these extract
4924
	  # automatically by $AR in one run.
4925
	  $show "(cd $xdir && $AR x $xabs)"
4926
	  $run eval "(cd \$xdir && $AR x \$xabs)" || exit $?
4927
	  if ($AR t "$xabs" | sort | sort -uc >/dev/null 2>&1); then
4928
	    :
4929
	  else
4930
	    $echo "$modename: warning: object name conflicts; renaming object files" 1>&2
4931
	    $echo "$modename: warning: to ensure that they will not overwrite" 1>&2
4932
	    $AR t "$xabs" | sort | uniq -cd | while read -r count name
4933
	    do
4934
	      i=1
4935
	      while test "$i" -le "$count"
4936
	      do
4937
	       # Put our $i before any first dot (extension)
4938
	       # Never overwrite any file
4939
	       name_to="$name"
4940
	       while test "X$name_to" = "X$name" || test -f "$xdir/$name_to"
4941
	       do
4942
		 name_to=`$echo "X$name_to" | $Xsed -e "s/\([^.]*\)/\1-$i/"`
4943
	       done
4944
	       $show "(cd $xdir && $AR xN $i $xabs '$name' && $mv '$name' '$name_to')"
4945
	       $run eval "(cd \$xdir && $AR xN $i \$xabs '$name' && $mv '$name' '$name_to')" || exit $?
4946
	       i=`expr $i + 1`
4947
	      done
4948
	    done
4949
	  fi
4950
4951
	  oldobjs="$oldobjs "`find $xdir -name \*.${objext} -print -o -name \*.lo -print | $NL2SP`
4952
	done
4953
      fi
5140
      fi
4954
5141
4955
      # Do each command in the archive commands.
5142
      # Do each command in the archive commands.
4956
      if test -n "$old_archive_from_new_cmds" && test "$build_libtool_libs" = yes; then
5143
      if test -n "$old_archive_from_new_cmds" && test "$build_libtool_libs" = yes; then
4957
	eval cmds=\"$old_archive_from_new_cmds\"
5144
       cmds=$old_archive_from_new_cmds
4958
      else
5145
      else
5146
	# POSIX demands no paths to be encoded in archives.  We have
5147
	# to avoid creating archives with duplicate basenames if we
5148
	# might have to extract them afterwards, e.g., when creating a
5149
	# static archive out of a convenience library, or when linking
5150
	# the entirety of a libtool archive into another (currently
5151
	# not supported by libtool).
5152
	if (for obj in $oldobjs
5153
	    do
5154
	      $echo "X$obj" | $Xsed -e 's%^.*/%%'
5155
	    done | sort | sort -uc >/dev/null 2>&1); then
5156
	  :
5157
	else
5158
	  $echo "copying selected object files to avoid basename conflicts..."
5159
5160
	  if test -z "$gentop"; then
5161
	    gentop="$output_objdir/${outputname}x"
5162
	    generated="$generated $gentop"
5163
5164
	    $show "${rm}r $gentop"
5165
	    $run ${rm}r "$gentop"
5166
	    $show "$mkdir $gentop"
5167
	    $run $mkdir "$gentop"
5168
	    status=$?
5169
	    if test "$status" -ne 0 && test ! -d "$gentop"; then
5170
	      exit $status
5171
	    fi
5172
	  fi
5173
5174
	  save_oldobjs=$oldobjs
5175
	  oldobjs=
5176
	  counter=1
5177
	  for obj in $save_oldobjs
5178
	  do
5179
	    objbase=`$echo "X$obj" | $Xsed -e 's%^.*/%%'`
5180
	    case " $oldobjs " in
5181
	    " ") oldobjs=$obj ;;
5182
	    *[\ /]"$objbase "*)
5183
	      while :; do
5184
		# Make sure we don't pick an alternate name that also
5185
		# overlaps.
5186
		newobj=lt$counter-$objbase
5187
		counter=`expr $counter + 1`
5188
		case " $oldobjs " in
5189
		*[\ /]"$newobj "*) ;;
5190
		*) if test ! -f "$gentop/$newobj"; then break; fi ;;
5191
		esac
5192
	      done
5193
	      $show "ln $obj $gentop/$newobj || cp $obj $gentop/$newobj"
5194
	      $run ln "$obj" "$gentop/$newobj" ||
5195
	      $run cp "$obj" "$gentop/$newobj"
5196
	      oldobjs="$oldobjs $gentop/$newobj"
5197
	      ;;
5198
	    *) oldobjs="$oldobjs $obj" ;;
5199
	    esac
5200
	  done
5201
	fi
5202
4959
	eval cmds=\"$old_archive_cmds\"
5203
	eval cmds=\"$old_archive_cmds\"
4960
5204
4961
	if len=`expr "X$cmds" : ".*"` &&
5205
	if len=`expr "X$cmds" : ".*"` &&
4962
	     test "$len" -le "$max_cmd_len" || test "$max_cmd_len" -le -1; then
5206
	     test "$len" -le "$max_cmd_len" || test "$max_cmd_len" -le -1; then
4963
	  :
5207
	  cmds=$old_archive_cmds
4964
	else
5208
	else
4965
	  # the command line is too long to link in one step, link in parts
5209
	  # the command line is too long to link in one step, link in parts
4966
	  $echo "using piecewise archive linking..."
5210
	  $echo "using piecewise archive linking..."
Lines 4969-4993 Link Here
4969
	  objlist=
5213
	  objlist=
4970
	  concat_cmds=
5214
	  concat_cmds=
4971
	  save_oldobjs=$oldobjs
5215
	  save_oldobjs=$oldobjs
4972
	  # GNU ar 2.10+ was changed to match POSIX; thus no paths are
5216
4973
	  # encoded into archives.  This makes 'ar r' malfunction in
4974
	  # this piecewise linking case whenever conflicting object
4975
	  # names appear in distinct ar calls; check, warn and compensate.
4976
	    if (for obj in $save_oldobjs
4977
	    do
4978
	      $echo "X$obj" | $Xsed -e 's%^.*/%%'
4979
	    done | sort | sort -uc >/dev/null 2>&1); then
4980
	    :
4981
	  else
4982
	    $echo "$modename: warning: object name conflicts; overriding AR_FLAGS to 'cq'" 1>&2
4983
	    $echo "$modename: warning: to ensure that POSIX-compatible ar will work" 1>&2
4984
	    AR_FLAGS=cq
4985
	  fi
4986
	  # Is there a better way of finding the last object in the list?
5217
	  # Is there a better way of finding the last object in the list?
4987
	  for obj in $save_oldobjs
5218
	  for obj in $save_oldobjs
4988
	  do
5219
	  do
4989
	    last_oldobj=$obj
5220
	    last_oldobj=$obj
4990
	  done  
5221
	  done
4991
	  for obj in $save_oldobjs
5222
	  for obj in $save_oldobjs
4992
	  do
5223
	  do
4993
	    oldobjs="$objlist $obj"
5224
	    oldobjs="$objlist $obj"
Lines 5001-5007 Link Here
5001
	      oldobjs=$objlist
5232
	      oldobjs=$objlist
5002
	      if test "$obj" = "$last_oldobj" ; then
5233
	      if test "$obj" = "$last_oldobj" ; then
5003
	        RANLIB=$save_RANLIB
5234
	        RANLIB=$save_RANLIB
5004
	      fi  
5235
	      fi
5005
	      test -z "$concat_cmds" || concat_cmds=$concat_cmds~
5236
	      test -z "$concat_cmds" || concat_cmds=$concat_cmds~
5006
	      eval concat_cmds=\"\${concat_cmds}$old_archive_cmds\"
5237
	      eval concat_cmds=\"\${concat_cmds}$old_archive_cmds\"
5007
	      objlist=
5238
	      objlist=
Lines 5012-5023 Link Here
5012
	  if test "X$oldobjs" = "X" ; then
5243
	  if test "X$oldobjs" = "X" ; then
5013
	    eval cmds=\"\$concat_cmds\"
5244
	    eval cmds=\"\$concat_cmds\"
5014
	  else
5245
	  else
5015
	    eval cmds=\"\$concat_cmds~$old_archive_cmds\"
5246
	    eval cmds=\"\$concat_cmds~\$old_archive_cmds\"
5016
	  fi
5247
	  fi
5017
	fi
5248
	fi
5018
      fi
5249
      fi
5019
      save_ifs="$IFS"; IFS='~'
5250
      save_ifs="$IFS"; IFS='~'
5020
      for cmd in $cmds; do
5251
      for cmd in $cmds; do
5252
        eval cmd=\"$cmd\"
5021
	IFS="$save_ifs"
5253
	IFS="$save_ifs"
5022
	$show "$cmd"
5254
	$show "$cmd"
5023
	$run eval "$cmd" || exit $?
5255
	$run eval "$cmd" || exit $?
Lines 5049-5056 Link Here
5049
	fi
5281
	fi
5050
      done
5282
      done
5051
      # Quote the link command for shipping.
5283
      # Quote the link command for shipping.
5052
      relink_command="(cd `pwd`; $SHELL $0 --mode=relink $libtool_args @inst_prefix_dir@)"
5284
      relink_command="(cd `pwd`; $SHELL $progpath $preserve_args --mode=relink $libtool_args @inst_prefix_dir@)"
5053
      relink_command=`$echo "X$relink_command" | $Xsed -e "$sed_quote_subst"`
5285
      relink_command=`$echo "X$relink_command" | $Xsed -e "$sed_quote_subst"`
5286
      if test "$hardcode_automatic" = yes ; then
5287
	relink_command=
5288
      fi
5289
5054
5290
5055
      # Only create the output if not a dry run.
5291
      # Only create the output if not a dry run.
5056
      if test -z "$run"; then
5292
      if test -z "$run"; then
Lines 5069-5079 Link Here
5069
		eval libdir=`${SED} -n -e 's/^libdir=\(.*\)$/\1/p' $deplib`
5305
		eval libdir=`${SED} -n -e 's/^libdir=\(.*\)$/\1/p' $deplib`
5070
		if test -z "$libdir"; then
5306
		if test -z "$libdir"; then
5071
		  $echo "$modename: \`$deplib' is not a valid libtool archive" 1>&2
5307
		  $echo "$modename: \`$deplib' is not a valid libtool archive" 1>&2
5072
		  exit 1
5308
		  exit $EXIT_FAILURE
5309
		fi
5310
		if test "X$EGREP" = X ; then
5311
			EGREP=egrep
5312
		fi
5313
		# We do not want portage's install root ($D) present.  Check only for
5314
		# this if the .la is being installed.
5315
		if test "$installed" = yes && test "$D"; then
5316
		  eval mynewdependency_lib=`echo "$libdir/$name" |sed -e "s:$D:/:g" -e 's:/\+:/:g'`
5317
		else
5318
		  mynewdependency_lib="$libdir/$name"
5319
		fi
5320
		# Do not add duplicates
5321
		if test "$mynewdependency_lib"; then
5322
		  my_little_ninja_foo_1=`echo $newdependency_libs |$EGREP -e "$mynewdependency_lib"`
5323
		  if test -z "$my_little_ninja_foo_1"; then
5324
		    newdependency_libs="$newdependency_libs $mynewdependency_lib"
5325
		  fi
5326
		fi
5327
		;;
5328
		  *)
5329
		if test "$installed" = yes; then
5330
		  # Rather use S=WORKDIR if our version of portage supports it.
5331
		  # This is because some ebuild (gcc) do not use $S as buildroot.
5332
		  if test "$PWORKDIR"; then
5333
		    S="$PWORKDIR"
5334
		  fi
5335
		  # We do not want portage's build root ($S) present.
5336
		  my_little_ninja_foo_2=`echo $deplib |$EGREP -e "$S"`
5337
		  if test -n "$my_little_ninja_foo_2" && test "$S"; then
5338
		    mynewdependency_lib=""
5339
		  # We do not want portage's install root ($D) present.
5340
		  my_little_ninja_foo_3=`echo $deplib |$EGREP -e "$D"`
5341
		  elif test -n "$my_little_ninja_foo_3" && test "$D"; then
5342
		    eval mynewdependency_lib=`echo "$deplib" |sed -e "s:$D:/:g" -e 's:/\+:/:g'`
5343
		  else
5344
		    mynewdependency_lib="$deplib"
5345
		  fi
5346
		else
5347
		  mynewdependency_lib="$deplib"
5348
		fi
5349
		# Do not add duplicates
5350
		if test "$mynewdependency_lib"; then
5351
		  my_little_ninja_foo_4=`echo $newdependency_libs |$EGREP -e "$mynewdependency_lib"`
5352
		  if test -z "$my_little_ninja_foo_4"; then
5353
			newdependency_libs="$newdependency_libs $mynewdependency_lib"
5354
		  fi
5073
		fi
5355
		fi
5074
		newdependency_libs="$newdependency_libs $libdir/$name"
5075
		;;
5356
		;;
5076
	      *) newdependency_libs="$newdependency_libs $deplib" ;;
5077
	      esac
5357
	      esac
5078
	    done
5358
	    done
5079
	    dependency_libs="$newdependency_libs"
5359
	    dependency_libs="$newdependency_libs"
Lines 5083-5089 Link Here
5083
	      eval libdir=`${SED} -n -e 's/^libdir=\(.*\)$/\1/p' $lib`
5363
	      eval libdir=`${SED} -n -e 's/^libdir=\(.*\)$/\1/p' $lib`
5084
	      if test -z "$libdir"; then
5364
	      if test -z "$libdir"; then
5085
		$echo "$modename: \`$lib' is not a valid libtool archive" 1>&2
5365
		$echo "$modename: \`$lib' is not a valid libtool archive" 1>&2
5086
		exit 1
5366
		exit $EXIT_FAILURE
5087
	      fi
5367
	      fi
5088
	      newdlfiles="$newdlfiles $libdir/$name"
5368
	      newdlfiles="$newdlfiles $libdir/$name"
5089
	    done
5369
	    done
Lines 5094-5104 Link Here
5094
	      eval libdir=`${SED} -n -e 's/^libdir=\(.*\)$/\1/p' $lib`
5374
	      eval libdir=`${SED} -n -e 's/^libdir=\(.*\)$/\1/p' $lib`
5095
	      if test -z "$libdir"; then
5375
	      if test -z "$libdir"; then
5096
		$echo "$modename: \`$lib' is not a valid libtool archive" 1>&2
5376
		$echo "$modename: \`$lib' is not a valid libtool archive" 1>&2
5097
		exit 1
5377
		exit $EXIT_FAILURE
5098
	      fi
5378
	      fi
5099
	      newdlprefiles="$newdlprefiles $libdir/$name"
5379
	      newdlprefiles="$newdlprefiles $libdir/$name"
5100
	    done
5380
	    done
5101
	    dlprefiles="$newdlprefiles"
5381
	    dlprefiles="$newdlprefiles"
5382
	  else
5383
	    newdlfiles=
5384
	    for lib in $dlfiles; do
5385
	      case $lib in
5386
		[\\/]* | [A-Za-z]:[\\/]*) abs="$lib" ;;
5387
		*) abs=`pwd`"/$lib" ;;
5388
	      esac
5389
	      newdlfiles="$newdlfiles $abs"
5390
	    done
5391
	    dlfiles="$newdlfiles"
5392
	    newdlprefiles=
5393
	    for lib in $dlprefiles; do
5394
	      case $lib in
5395
		[\\/]* | [A-Za-z]:[\\/]*) abs="$lib" ;;
5396
		*) abs=`pwd`"/$lib" ;;
5397
	      esac
5398
	      newdlprefiles="$newdlprefiles $abs"
5399
	    done
5400
	    dlprefiles="$newdlprefiles"
5102
	  fi
5401
	  fi
5103
	  $rm $output
5402
	  $rm $output
5104
	  # place dlname in correct position for cygwin
5403
	  # place dlname in correct position for cygwin
Lines 5106-5111 Link Here
5106
	  case $host,$output,$installed,$module,$dlname in
5405
	  case $host,$output,$installed,$module,$dlname in
5107
	    *cygwin*,*lai,yes,no,*.dll | *mingw*,*lai,yes,no,*.dll) tdlname=../bin/$dlname ;;
5406
	    *cygwin*,*lai,yes,no,*.dll | *mingw*,*lai,yes,no,*.dll) tdlname=../bin/$dlname ;;
5108
	  esac
5407
	  esac
5408
	  # Do not add duplicates
5409
	  if test "$installed" = yes && test "$D"; then
5410
	    install_libdir=`echo "$install_libdir" |sed -e "s:$D:/:g" -e 's:/\+:/:g'`
5411
	  fi
5109
	  $echo > $output "\
5412
	  $echo > $output "\
5110
# $outputname - a libtool library file
5413
# $outputname - a libtool library file
5111
# Generated by $PROGRAM - GNU $PACKAGE $VERSION$TIMESTAMP
5414
# Generated by $PROGRAM - GNU $PACKAGE $VERSION$TIMESTAMP
Lines 5155-5161 Link Here
5155
      $run eval '(cd $output_objdir && $rm $outputname && $LN_S ../$outputname $outputname)' || exit $?
5458
      $run eval '(cd $output_objdir && $rm $outputname && $LN_S ../$outputname $outputname)' || exit $?
5156
      ;;
5459
      ;;
5157
    esac
5460
    esac
5158
    exit 0
5461
    exit $EXIT_SUCCESS
5159
    ;;
5462
    ;;
5160
5463
5161
  # libtool install mode
5464
  # libtool install mode
Lines 5170-5176 Link Here
5170
      # Aesthetically quote it.
5473
      # Aesthetically quote it.
5171
      arg=`$echo "X$nonopt" | $Xsed -e "$sed_quote_subst"`
5474
      arg=`$echo "X$nonopt" | $Xsed -e "$sed_quote_subst"`
5172
      case $arg in
5475
      case $arg in
5173
      *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \	]*|*]*)
5476
      *$quote_scanset* | *]* | *\|* | *\&* | *\(* | *\)* | "")
5174
	arg="\"$arg\""
5477
	arg="\"$arg\""
5175
	;;
5478
	;;
5176
      esac
5479
      esac
Lines 5186-5192 Link Here
5186
    # Aesthetically quote it.
5489
    # Aesthetically quote it.
5187
    arg=`$echo "X$arg" | $Xsed -e "$sed_quote_subst"`
5490
    arg=`$echo "X$arg" | $Xsed -e "$sed_quote_subst"`
5188
    case $arg in
5491
    case $arg in
5189
    *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \	]*|*]*)
5492
    *$quote_scanset* | *]* | *\|* | *\&* | *\(* | *\)* | "")
5190
      arg="\"$arg\""
5493
      arg="\"$arg\""
5191
      ;;
5494
      ;;
5192
    esac
5495
    esac
Lines 5234-5240 Link Here
5234
      # Aesthetically quote the argument.
5537
      # Aesthetically quote the argument.
5235
      arg=`$echo "X$arg" | $Xsed -e "$sed_quote_subst"`
5538
      arg=`$echo "X$arg" | $Xsed -e "$sed_quote_subst"`
5236
      case $arg in
5539
      case $arg in
5237
      *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \	]*|*]*)
5540
      *$quote_scanset* | *]* | *\|* | *\&* | *\(* | *\)* | "")
5238
	arg="\"$arg\""
5541
	arg="\"$arg\""
5239
	;;
5542
	;;
5240
      esac
5543
      esac
Lines 5244-5256 Link Here
5244
    if test -z "$install_prog"; then
5547
    if test -z "$install_prog"; then
5245
      $echo "$modename: you must specify an install program" 1>&2
5548
      $echo "$modename: you must specify an install program" 1>&2
5246
      $echo "$help" 1>&2
5549
      $echo "$help" 1>&2
5247
      exit 1
5550
      exit $EXIT_FAILURE
5248
    fi
5551
    fi
5249
5552
5250
    if test -n "$prev"; then
5553
    if test -n "$prev"; then
5251
      $echo "$modename: the \`$prev' option requires an argument" 1>&2
5554
      $echo "$modename: the \`$prev' option requires an argument" 1>&2
5252
      $echo "$help" 1>&2
5555
      $echo "$help" 1>&2
5253
      exit 1
5556
      exit $EXIT_FAILURE
5254
    fi
5557
    fi
5255
5558
5256
    if test -z "$files"; then
5559
    if test -z "$files"; then
Lines 5260-5266 Link Here
5260
	$echo "$modename: you must specify a destination" 1>&2
5563
	$echo "$modename: you must specify a destination" 1>&2
5261
      fi
5564
      fi
5262
      $echo "$help" 1>&2
5565
      $echo "$help" 1>&2
5263
      exit 1
5566
      exit $EXIT_FAILURE
5264
    fi
5567
    fi
5265
5568
5266
    # Strip any trailing slash from the destination.
5569
    # Strip any trailing slash from the destination.
Lines 5281-5287 Link Here
5281
      if test "$#" -gt 2; then
5584
      if test "$#" -gt 2; then
5282
	$echo "$modename: \`$dest' is not a directory" 1>&2
5585
	$echo "$modename: \`$dest' is not a directory" 1>&2
5283
	$echo "$help" 1>&2
5586
	$echo "$help" 1>&2
5284
	exit 1
5587
	exit $EXIT_FAILURE
5285
      fi
5588
      fi
5286
    fi
5589
    fi
5287
    case $destdir in
5590
    case $destdir in
Lines 5293-5299 Link Here
5293
	*)
5596
	*)
5294
	  $echo "$modename: \`$destdir' must be an absolute directory name" 1>&2
5597
	  $echo "$modename: \`$destdir' must be an absolute directory name" 1>&2
5295
	  $echo "$help" 1>&2
5598
	  $echo "$help" 1>&2
5296
	  exit 1
5599
	  exit $EXIT_FAILURE
5297
	  ;;
5600
	  ;;
5298
	esac
5601
	esac
5299
      done
5602
      done
Lines 5322-5328 Link Here
5322
	else
5625
	else
5323
	  $echo "$modename: \`$file' is not a valid libtool archive" 1>&2
5626
	  $echo "$modename: \`$file' is not a valid libtool archive" 1>&2
5324
	  $echo "$help" 1>&2
5627
	  $echo "$help" 1>&2
5325
	  exit 1
5628
	  exit $EXIT_FAILURE
5326
	fi
5629
	fi
5327
5630
5328
	library_names=
5631
	library_names=
Lines 5364-5370 Link Here
5364
	  # but it's something to keep an eye on.
5667
	  # but it's something to keep an eye on.
5365
	  if test "$inst_prefix_dir" = "$destdir"; then
5668
	  if test "$inst_prefix_dir" = "$destdir"; then
5366
	    $echo "$modename: error: cannot install \`$file' to a directory not ending in $libdir" 1>&2
5669
	    $echo "$modename: error: cannot install \`$file' to a directory not ending in $libdir" 1>&2
5367
	    exit 1
5670
	    exit $EXIT_FAILURE
5368
	  fi
5671
	  fi
5369
5672
5370
	  if test -n "$inst_prefix_dir"; then
5673
	  if test -n "$inst_prefix_dir"; then
Lines 5379-5385 Link Here
5379
	  if $run eval "$relink_command"; then :
5682
	  if $run eval "$relink_command"; then :
5380
	  else
5683
	  else
5381
	    $echo "$modename: error: relink \`$file' with the above command before installing it" 1>&2
5684
	    $echo "$modename: error: relink \`$file' with the above command before installing it" 1>&2
5382
	    exit 1
5685
	    exit $EXIT_FAILURE
5383
	  fi
5686
	  fi
5384
	fi
5687
	fi
5385
5688
Lines 5414-5423 Link Here
5414
5717
5415
	  # Do each command in the postinstall commands.
5718
	  # Do each command in the postinstall commands.
5416
	  lib="$destdir/$realname"
5719
	  lib="$destdir/$realname"
5417
	  eval cmds=\"$postinstall_cmds\"
5720
	  cmds=$postinstall_cmds
5418
	  save_ifs="$IFS"; IFS='~'
5721
	  save_ifs="$IFS"; IFS='~'
5419
	  for cmd in $cmds; do
5722
	  for cmd in $cmds; do
5420
	    IFS="$save_ifs"
5723
	    IFS="$save_ifs"
5724
	    eval cmd=\"$cmd\"
5421
	    $show "$cmd"
5725
	    $show "$cmd"
5422
	    $run eval "$cmd" || exit $?
5726
	    $run eval "$cmd" || exit $?
5423
	  done
5727
	  done
Lines 5457-5463 Link Here
5457
	*)
5761
	*)
5458
	  $echo "$modename: cannot copy a libtool object to \`$destfile'" 1>&2
5762
	  $echo "$modename: cannot copy a libtool object to \`$destfile'" 1>&2
5459
	  $echo "$help" 1>&2
5763
	  $echo "$help" 1>&2
5460
	  exit 1
5764
	  exit $EXIT_FAILURE
5461
	  ;;
5765
	  ;;
5462
	esac
5766
	esac
5463
5767
Lines 5475-5481 Link Here
5475
	  $show "$install_prog $staticobj $staticdest"
5779
	  $show "$install_prog $staticobj $staticdest"
5476
	  $run eval "$install_prog \$staticobj \$staticdest" || exit $?
5780
	  $run eval "$install_prog \$staticobj \$staticdest" || exit $?
5477
	fi
5781
	fi
5478
	exit 0
5782
	exit $EXIT_SUCCESS
5479
	;;
5783
	;;
5480
5784
5481
      *)
5785
      *)
Lines 5529-5535 Link Here
5529
	  # Check the variables that should have been set.
5833
	  # Check the variables that should have been set.
5530
	  if test -z "$notinst_deplibs"; then
5834
	  if test -z "$notinst_deplibs"; then
5531
	    $echo "$modename: invalid libtool wrapper script \`$wrapper'" 1>&2
5835
	    $echo "$modename: invalid libtool wrapper script \`$wrapper'" 1>&2
5532
	    exit 1
5836
	    exit $EXIT_FAILURE
5533
	  fi
5837
	  fi
5534
5838
5535
	  finalize=yes
5839
	  finalize=yes
Lines 5569-5578 Link Here
5569
	    if test "$finalize" = yes && test -z "$run"; then
5873
	    if test "$finalize" = yes && test -z "$run"; then
5570
	      tmpdir="/tmp"
5874
	      tmpdir="/tmp"
5571
	      test -n "$TMPDIR" && tmpdir="$TMPDIR"
5875
	      test -n "$TMPDIR" && tmpdir="$TMPDIR"
5572
              tmpdir=`mktemp -d $tmpdir/libtool-XXXXXX 2> /dev/null` ||
5876
	      tmpdir="$tmpdir/libtool-$$"
5573
                tmpdir="$tmpdir/libtool-$$"
5877
	      save_umask=`umask`
5574
	      if $mkdir -p "$tmpdir" && chmod 700 "$tmpdir"; then :
5878
	      umask 0077
5879
	      if $mkdir "$tmpdir"; then
5880
	        umask $save_umask
5575
	      else
5881
	      else
5882
	        umask $save_umask
5576
		$echo "$modename: error: cannot create temporary directory \`$tmpdir'" 1>&2
5883
		$echo "$modename: error: cannot create temporary directory \`$tmpdir'" 1>&2
5577
		continue
5884
		continue
5578
	      fi
5885
	      fi
Lines 5631-5646 Link Here
5631
      $show "$install_prog $file $oldlib"
5938
      $show "$install_prog $file $oldlib"
5632
      $run eval "$install_prog \$file \$oldlib" || exit $?
5939
      $run eval "$install_prog \$file \$oldlib" || exit $?
5633
5940
5634
      if test -n "$stripme" && test -n "$striplib"; then
5941
      if test -n "$stripme" && test -n "$old_striplib"; then
5635
	$show "$old_striplib $oldlib"
5942
	$show "$old_striplib $oldlib"
5636
	$run eval "$old_striplib $oldlib" || exit $?
5943
	$run eval "$old_striplib $oldlib" || exit $?
5637
      fi
5944
      fi
5638
5945
5639
      # Do each command in the postinstall commands.
5946
      # Do each command in the postinstall commands.
5640
      eval cmds=\"$old_postinstall_cmds\"
5947
      cmds=$old_postinstall_cmds
5641
      save_ifs="$IFS"; IFS='~'
5948
      save_ifs="$IFS"; IFS='~'
5642
      for cmd in $cmds; do
5949
      for cmd in $cmds; do
5643
	IFS="$save_ifs"
5950
	IFS="$save_ifs"
5951
	eval cmd=\"$cmd\"
5644
	$show "$cmd"
5952
	$show "$cmd"
5645
	$run eval "$cmd" || exit $?
5953
	$run eval "$cmd" || exit $?
5646
      done
5954
      done
Lines 5654-5662 Link Here
5654
    if test -n "$current_libdirs"; then
5962
    if test -n "$current_libdirs"; then
5655
      # Maybe just do a dry run.
5963
      # Maybe just do a dry run.
5656
      test -n "$run" && current_libdirs=" -n$current_libdirs"
5964
      test -n "$run" && current_libdirs=" -n$current_libdirs"
5657
      exec_cmd='$SHELL $0 --finish$current_libdirs'
5965
      exec_cmd='$SHELL $progpath $preserve_args --finish$current_libdirs'
5658
    else
5966
    else
5659
      exit 0
5967
      exit $EXIT_SUCCESS
5660
    fi
5968
    fi
5661
    ;;
5969
    ;;
5662
5970
Lines 5675-5684 Link Here
5675
      for libdir in $libdirs; do
5983
      for libdir in $libdirs; do
5676
	if test -n "$finish_cmds"; then
5984
	if test -n "$finish_cmds"; then
5677
	  # Do each command in the finish commands.
5985
	  # Do each command in the finish commands.
5678
	  eval cmds=\"$finish_cmds\"
5986
	  cmds=$finish_cmds
5679
	  save_ifs="$IFS"; IFS='~'
5987
	  save_ifs="$IFS"; IFS='~'
5680
	  for cmd in $cmds; do
5988
	  for cmd in $cmds; do
5681
	    IFS="$save_ifs"
5989
	    IFS="$save_ifs"
5990
	    eval cmd=\"$cmd\"
5682
	    $show "$cmd"
5991
	    $show "$cmd"
5683
	    $run eval "$cmd" || admincmds="$admincmds
5992
	    $run eval "$cmd" || admincmds="$admincmds
5684
       $cmd"
5993
       $cmd"
Lines 5695-5701 Link Here
5695
    fi
6004
    fi
5696
6005
5697
    # Exit here if they wanted silent mode.
6006
    # Exit here if they wanted silent mode.
5698
    test "$show" = : && exit 0
6007
    test "$show" = : && exit $EXIT_SUCCESS
5699
6008
5700
    $echo "----------------------------------------------------------------------"
6009
    $echo "----------------------------------------------------------------------"
5701
    $echo "Libraries have been installed in:"
6010
    $echo "Libraries have been installed in:"
Lines 5731-5737 Link Here
5731
    $echo "See any operating system documentation about shared libraries for"
6040
    $echo "See any operating system documentation about shared libraries for"
5732
    $echo "more information, such as the ld(1) and ld.so(8) manual pages."
6041
    $echo "more information, such as the ld(1) and ld.so(8) manual pages."
5733
    $echo "----------------------------------------------------------------------"
6042
    $echo "----------------------------------------------------------------------"
5734
    exit 0
6043
    exit $EXIT_SUCCESS
5735
    ;;
6044
    ;;
5736
6045
5737
  # libtool execute mode
6046
  # libtool execute mode
Lines 5743-5749 Link Here
5743
    if test -z "$cmd"; then
6052
    if test -z "$cmd"; then
5744
      $echo "$modename: you must specify a COMMAND" 1>&2
6053
      $echo "$modename: you must specify a COMMAND" 1>&2
5745
      $echo "$help"
6054
      $echo "$help"
5746
      exit 1
6055
      exit $EXIT_FAILURE
5747
    fi
6056
    fi
5748
6057
5749
    # Handle -dlopen flags immediately.
6058
    # Handle -dlopen flags immediately.
Lines 5751-5757 Link Here
5751
      if test ! -f "$file"; then
6060
      if test ! -f "$file"; then
5752
	$echo "$modename: \`$file' is not a file" 1>&2
6061
	$echo "$modename: \`$file' is not a file" 1>&2
5753
	$echo "$help" 1>&2
6062
	$echo "$help" 1>&2
5754
	exit 1
6063
	exit $EXIT_FAILURE
5755
      fi
6064
      fi
5756
6065
5757
      dir=
6066
      dir=
Lines 5762-5768 Link Here
5762
	else
6071
	else
5763
	  $echo "$modename: \`$lib' is not a valid libtool archive" 1>&2
6072
	  $echo "$modename: \`$lib' is not a valid libtool archive" 1>&2
5764
	  $echo "$help" 1>&2
6073
	  $echo "$help" 1>&2
5765
	  exit 1
6074
	  exit $EXIT_FAILURE
5766
	fi
6075
	fi
5767
6076
5768
	# Read the libtool library.
6077
	# Read the libtool library.
Lines 5789-5795 Link Here
5789
	  dir="$dir/$objdir"
6098
	  dir="$dir/$objdir"
5790
	else
6099
	else
5791
	  $echo "$modename: cannot find \`$dlname' in \`$dir' or \`$dir/$objdir'" 1>&2
6100
	  $echo "$modename: cannot find \`$dlname' in \`$dir' or \`$dir/$objdir'" 1>&2
5792
	  exit 1
6101
	  exit $EXIT_FAILURE
5793
	fi
6102
	fi
5794
	;;
6103
	;;
5795
6104
Lines 5861-5875 Link Here
5861
      fi
6170
      fi
5862
6171
5863
      # Now prepare to actually exec the command.
6172
      # Now prepare to actually exec the command.
5864
      exec_cmd="\"\$cmd\"$args"
6173
      exec_cmd="\$cmd$args"
5865
    else
6174
    else
5866
      # Display what would be done.
6175
      # Display what would be done.
5867
      if test -n "$shlibpath_var"; then
6176
      if test -n "$shlibpath_var"; then
5868
	eval "\$echo \"\$shlibpath_var=\$$shlibpath_var\""
6177
	eval "\$echo \"\$shlibpath_var=\$$shlibpath_var\""
5869
	$echo "export $shlibpath_var"
6178
	$echo "export $shlibpath_var"
5870
      fi
6179
      fi
5871
      eval \$echo \"\$cmd\"$args
6180
      $echo "$cmd$args"
5872
      exit 0
6181
      exit $EXIT_SUCCESS
5873
    fi
6182
    fi
5874
    ;;
6183
    ;;
5875
6184
Lines 5897-5903 Link Here
5897
    if test -z "$rm"; then
6206
    if test -z "$rm"; then
5898
      $echo "$modename: you must specify an RM program" 1>&2
6207
      $echo "$modename: you must specify an RM program" 1>&2
5899
      $echo "$help" 1>&2
6208
      $echo "$help" 1>&2
5900
      exit 1
6209
      exit $EXIT_FAILURE
5901
    fi
6210
    fi
5902
6211
5903
    rmdirs=
6212
    rmdirs=
Lines 5952-5961 Link Here
5952
	  if test "$mode" = uninstall; then
6261
	  if test "$mode" = uninstall; then
5953
	    if test -n "$library_names"; then
6262
	    if test -n "$library_names"; then
5954
	      # Do each command in the postuninstall commands.
6263
	      # Do each command in the postuninstall commands.
5955
	      eval cmds=\"$postuninstall_cmds\"
6264
	      cmds=$postuninstall_cmds
5956
	      save_ifs="$IFS"; IFS='~'
6265
	      save_ifs="$IFS"; IFS='~'
5957
	      for cmd in $cmds; do
6266
	      for cmd in $cmds; do
5958
		IFS="$save_ifs"
6267
		IFS="$save_ifs"
6268
		eval cmd=\"$cmd\"
5959
		$show "$cmd"
6269
		$show "$cmd"
5960
		$run eval "$cmd"
6270
		$run eval "$cmd"
5961
		if test "$?" -ne 0 && test "$rmforce" != yes; then
6271
		if test "$?" -ne 0 && test "$rmforce" != yes; then
Lines 5967-5976 Link Here
5967
6277
5968
	    if test -n "$old_library"; then
6278
	    if test -n "$old_library"; then
5969
	      # Do each command in the old_postuninstall commands.
6279
	      # Do each command in the old_postuninstall commands.
5970
	      eval cmds=\"$old_postuninstall_cmds\"
6280
	      cmds=$old_postuninstall_cmds
5971
	      save_ifs="$IFS"; IFS='~'
6281
	      save_ifs="$IFS"; IFS='~'
5972
	      for cmd in $cmds; do
6282
	      for cmd in $cmds; do
5973
		IFS="$save_ifs"
6283
		IFS="$save_ifs"
6284
		eval cmd=\"$cmd\"
5974
		$show "$cmd"
6285
		$show "$cmd"
5975
		$run eval "$cmd"
6286
		$run eval "$cmd"
5976
		if test "$?" -ne 0 && test "$rmforce" != yes; then
6287
		if test "$?" -ne 0 && test "$rmforce" != yes; then
Lines 6009-6015 Link Here
6009
	if test "$mode" = clean ; then
6320
	if test "$mode" = clean ; then
6010
	  noexename=$name
6321
	  noexename=$name
6011
	  case $file in
6322
	  case $file in
6012
	  *.exe) 
6323
	  *.exe)
6013
	    file=`$echo $file|${SED} 's,.exe$,,'`
6324
	    file=`$echo $file|${SED} 's,.exe$,,'`
6014
	    noexename=`$echo $name|${SED} 's,.exe$,,'`
6325
	    noexename=`$echo $name|${SED} 's,.exe$,,'`
6015
	    # $file with .exe has already been added to rmfiles,
6326
	    # $file with .exe has already been added to rmfiles,
Lines 6054-6073 Link Here
6054
  "")
6365
  "")
6055
    $echo "$modename: you must specify a MODE" 1>&2
6366
    $echo "$modename: you must specify a MODE" 1>&2
6056
    $echo "$generic_help" 1>&2
6367
    $echo "$generic_help" 1>&2
6057
    exit 1
6368
    exit $EXIT_FAILURE
6058
    ;;
6369
    ;;
6059
  esac
6370
  esac
6060
6371
6061
  if test -z "$exec_cmd"; then
6372
  if test -z "$exec_cmd"; then
6062
    $echo "$modename: invalid operation mode \`$mode'" 1>&2
6373
    $echo "$modename: invalid operation mode \`$mode'" 1>&2
6063
    $echo "$generic_help" 1>&2
6374
    $echo "$generic_help" 1>&2
6064
    exit 1
6375
    exit $EXIT_FAILURE
6065
  fi
6376
  fi
6066
fi # test -z "$show_help"
6377
fi # test -z "$show_help"
6067
6378
6068
if test -n "$exec_cmd"; then
6379
if test -n "$exec_cmd"; then
6069
  eval exec $exec_cmd
6380
  eval exec $exec_cmd
6070
  exit 1
6381
  exit $EXIT_FAILURE
6071
fi
6382
fi
6072
6383
6073
# We need to display help for each of the modes.
6384
# We need to display help for each of the modes.
Lines 6103-6109 Link Here
6103
a more detailed description of MODE.
6414
a more detailed description of MODE.
6104
6415
6105
Report bugs to <bug-libtool@gnu.org>."
6416
Report bugs to <bug-libtool@gnu.org>."
6106
  exit 0
6417
  exit $EXIT_SUCCESS
6107
  ;;
6418
  ;;
6108
6419
6109
clean)
6420
clean)
Lines 6215-6220 Link Here
6215
  -no-undefined     declare that a library does not refer to external symbols
6526
  -no-undefined     declare that a library does not refer to external symbols
6216
  -o OUTPUT-FILE    create OUTPUT-FILE from the specified objects
6527
  -o OUTPUT-FILE    create OUTPUT-FILE from the specified objects
6217
  -objectlist FILE  Use a list of object files found in FILE to specify objects
6528
  -objectlist FILE  Use a list of object files found in FILE to specify objects
6529
  -precious-files-regex REGEX
6530
                    don't remove output files matching REGEX
6218
  -release RELEASE  specify package release information
6531
  -release RELEASE  specify package release information
6219
  -rpath LIBDIR     the created library will eventually be installed in LIBDIR
6532
  -rpath LIBDIR     the created library will eventually be installed in LIBDIR
6220
  -R[ ]LIBDIR       add LIBDIR to the runtime path of programs and libraries
6533
  -R[ ]LIBDIR       add LIBDIR to the runtime path of programs and libraries
Lines 6256-6269 Link Here
6256
*)
6569
*)
6257
  $echo "$modename: invalid operation mode \`$mode'" 1>&2
6570
  $echo "$modename: invalid operation mode \`$mode'" 1>&2
6258
  $echo "$help" 1>&2
6571
  $echo "$help" 1>&2
6259
  exit 1
6572
  exit $EXIT_FAILURE
6260
  ;;
6573
  ;;
6261
esac
6574
esac
6262
6575
6263
$echo
6576
$echo
6264
$echo "Try \`$modename --help' for more information about other modes."
6577
$echo "Try \`$modename --help' for more information about other modes."
6265
6578
6266
exit 0
6579
exit $?
6267
6580
6268
# The TAGs below are defined such that we never get into a situation
6581
# The TAGs below are defined such that we never get into a situation
6269
# in which we disable both kinds of libraries.  Given conflicting
6582
# in which we disable both kinds of libraries.  Given conflicting

Return to bug 99428