/[pkg-kde]/tags/packages/wv2/wv2-0.2.2-6/debian/patches/50_autogen.dpatch
ViewVC logotype

Contents of /tags/packages/wv2/wv2-0.2.2-6/debian/patches/50_autogen.dpatch

Parent Directory Parent Directory | Revision Log Revision Log


Revision 3967 - (show annotations) (download)
Sat Jun 17 23:30:39 2006 UTC (7 years ago) by chrsmrtn
File size: 1671759 byte(s)
Tagging wv2.
1 #! /bin/sh /usr/share/dpatch/dpatch-run
2 ##
3 ## All lines beginning with `## DP:' are a description of the patch.
4 ## DP: No description.
5
6 @DPATCH@
7 diff -Nru wv2-0.2.2.orig/aclocal.m4 wv2-0.2.2/aclocal.m4
8 --- wv2-0.2.2.orig/aclocal.m4 2004-05-09 16:23:23.000000000 -0400
9 +++ wv2-0.2.2/aclocal.m4 2006-06-17 18:27:15.000000000 -0400
10 @@ -1,7 +1,7 @@
11 -# generated automatically by aclocal 1.7.2 -*- Autoconf -*-
12 +# generated automatically by aclocal 1.9.6 -*- Autoconf -*-
13
14 -# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002
15 -# Free Software Foundation, Inc.
16 +# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004,
17 +# 2005 Free Software Foundation, Inc.
18 # This file is free software; the Free Software Foundation
19 # gives unlimited permission to copy and/or distribute it,
20 # with or without modifications, as long as this notice is preserved.
21 @@ -11,4874 +11,7222 @@
22 # even the implied warranty of MERCHANTABILITY or FITNESS FOR A
23 # PARTICULAR PURPOSE.
24
25 +# libtool.m4 - Configure libtool for the host system. -*-Autoconf-*-
26
27 -dnl This file is part of the KDE libraries/packages
28 -dnl Copyright (C) 1997 Janos Farkas (chexum@shadow.banki.hu)
29 -dnl (C) 1997,98,99 Stephan Kulow (coolo@kde.org)
30 -
31 -dnl This file is free software; you can redistribute it and/or
32 -dnl modify it under the terms of the GNU Library General Public
33 -dnl License as published by the Free Software Foundation; either
34 -dnl version 2 of the License, or (at your option) any later version.
35 -
36 -dnl This library is distributed in the hope that it will be useful,
37 -dnl but WITHOUT ANY WARRANTY; without even the implied warranty of
38 -dnl MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
39 -dnl Library General Public License for more details.
40 -
41 -dnl You should have received a copy of the GNU Library General Public License
42 -dnl along with this library; see the file COPYING.LIB. If not, write to
43 -dnl the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
44 -dnl Boston, MA 02111-1307, USA.
45 +# serial 48 Debian 1.5.22-4 AC_PROG_LIBTOOL
46
47 -AC_DEFUN(KDE_CHECK_COMPILER_FLAG,
48 -[
49 -AC_MSG_CHECKING(whether $CXX supports -$1)
50 -kde_cache=`echo $1 | sed 'y% .=/+-%____p_%'`
51 -AC_CACHE_VAL(kde_cv_prog_cxx_$kde_cache,
52 -[
53 - AC_LANG_SAVE
54 - AC_LANG_CPLUSPLUS
55 - save_CXXFLAGS="$CXXFLAGS"
56 - CXXFLAGS="$CXXFLAGS -$1"
57 - AC_TRY_LINK([],[ return 0; ], [eval "kde_cv_prog_cxx_$kde_cache=yes"], [])
58 - CXXFLAGS="$save_CXXFLAGS"
59 - AC_LANG_RESTORE
60 -])
61 -if eval "test \"`echo '$kde_cv_prog_cxx_'$kde_cache`\" = yes"; then
62 - AC_MSG_RESULT(yes)
63 - :
64 - $2
65 -else
66 - AC_MSG_RESULT(no)
67 - :
68 - $3
69 -fi
70 -])
71
72 -dnl AC_REMOVE_FORBIDDEN removes forbidden arguments from variables
73 -dnl use: AC_REMOVE_FORBIDDEN(CC, [-forbid -bad-option whatever])
74 -dnl it's all white-space separated
75 -AC_DEFUN(AC_REMOVE_FORBIDDEN,
76 -[ __val=$$1
77 - __forbid=" $2 "
78 - if test -n "$__val"; then
79 - __new=""
80 - ac_save_IFS=$IFS
81 - IFS=" "
82 - for i in $__val; do
83 - case "$__forbid" in
84 - *" $i "*) AC_MSG_WARN([found forbidden $i in $1, removing it]) ;;
85 - *) # Careful to not add spaces, where there were none, because otherwise
86 - # libtool gets confused, if we change e.g. CXX
87 - if test -z "$__new" ; then __new=$i ; else __new="$__new $i" ; fi ;;
88 - esac
89 - done
90 - IFS=$ac_save_IFS
91 - $1=$__new
92 - fi
93 -])
94 +# AC_PROVIDE_IFELSE(MACRO-NAME, IF-PROVIDED, IF-NOT-PROVIDED)
95 +# -----------------------------------------------------------
96 +# If this macro is not defined by Autoconf, define it here.
97 +m4_ifdef([AC_PROVIDE_IFELSE],
98 + [],
99 + [m4_define([AC_PROVIDE_IFELSE],
100 + [m4_ifdef([AC_PROVIDE_$1],
101 + [$2], [$3])])])
102
103 -dnl AC_VALIDIFY_CXXFLAGS checks for forbidden flags the user may have given
104 -AC_DEFUN(AC_VALIDIFY_CXXFLAGS,
105 -[dnl
106 -if test "x$kde_use_qt_emb" != "xyes"; then
107 - AC_REMOVE_FORBIDDEN(CXX, [-fno-rtti -rpath])
108 - AC_REMOVE_FORBIDDEN(CXXFLAGS, [-fno-rtti -rpath])
109 -else
110 - AC_REMOVE_FORBIDDEN(CXX, [-rpath])
111 - AC_REMOVE_FORBIDDEN(CXXFLAGS, [-rpath])
112 -fi
113 -])
114
115 -AC_DEFUN(AC_CHECK_COMPILERS,
116 -[
117 - AC_ARG_ENABLE(debug,[ --enable-debug[=ARG] enables debug symbols (yes|no|full) [default=no]],
118 - [
119 - case $enableval in
120 - yes)
121 - kde_use_debug_code="yes"
122 - kde_use_debug_define=no
123 - ;;
124 - full)
125 - kde_use_debug_code="full"
126 - kde_use_debug_define=no
127 - ;;
128 - *)
129 - kde_use_debug_code="no"
130 - kde_use_debug_define=yes
131 - ;;
132 - esac
133 - ],
134 - [kde_use_debug_code="no"
135 - kde_use_debug_define=no
136 - ])
137 +# AC_PROG_LIBTOOL
138 +# ---------------
139 +AC_DEFUN([AC_PROG_LIBTOOL],
140 +[AC_REQUIRE([_AC_PROG_LIBTOOL])dnl
141 +dnl If AC_PROG_CXX has already been expanded, run AC_LIBTOOL_CXX
142 +dnl immediately, otherwise, hook it in at the end of AC_PROG_CXX.
143 + AC_PROVIDE_IFELSE([AC_PROG_CXX],
144 + [AC_LIBTOOL_CXX],
145 + [define([AC_PROG_CXX], defn([AC_PROG_CXX])[AC_LIBTOOL_CXX
146 + ])])
147 +dnl And a similar setup for Fortran 77 support
148 + AC_PROVIDE_IFELSE([AC_PROG_F77],
149 + [AC_LIBTOOL_F77],
150 + [define([AC_PROG_F77], defn([AC_PROG_F77])[AC_LIBTOOL_F77
151 +])])
152 +
153 +dnl Quote A][M_PROG_GCJ so that aclocal doesn't bring it in needlessly.
154 +dnl If either AC_PROG_GCJ or A][M_PROG_GCJ have already been expanded, run
155 +dnl AC_LIBTOOL_GCJ immediately, otherwise, hook it in at the end of both.
156 + AC_PROVIDE_IFELSE([AC_PROG_GCJ],
157 + [AC_LIBTOOL_GCJ],
158 + [AC_PROVIDE_IFELSE([A][M_PROG_GCJ],
159 + [AC_LIBTOOL_GCJ],
160 + [AC_PROVIDE_IFELSE([LT_AC_PROG_GCJ],
161 + [AC_LIBTOOL_GCJ],
162 + [ifdef([AC_PROG_GCJ],
163 + [define([AC_PROG_GCJ], defn([AC_PROG_GCJ])[AC_LIBTOOL_GCJ])])
164 + ifdef([A][M_PROG_GCJ],
165 + [define([A][M_PROG_GCJ], defn([A][M_PROG_GCJ])[AC_LIBTOOL_GCJ])])
166 + ifdef([LT_AC_PROG_GCJ],
167 + [define([LT_AC_PROG_GCJ],
168 + defn([LT_AC_PROG_GCJ])[AC_LIBTOOL_GCJ])])])])
169 +])])# AC_PROG_LIBTOOL
170 +
171 +
172 +# _AC_PROG_LIBTOOL
173 +# ----------------
174 +AC_DEFUN([_AC_PROG_LIBTOOL],
175 +[AC_REQUIRE([AC_LIBTOOL_SETUP])dnl
176 +AC_BEFORE([$0],[AC_LIBTOOL_CXX])dnl
177 +AC_BEFORE([$0],[AC_LIBTOOL_F77])dnl
178 +AC_BEFORE([$0],[AC_LIBTOOL_GCJ])dnl
179
180 - dnl Just for configure --help
181 - AC_ARG_ENABLE(dummyoption,[ --disable-debug disables debug output and debug symbols [default=no]],[],[])
182 +# This can be used to rebuild libtool when needed
183 +LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
184
185 - AC_ARG_ENABLE(strict,[ --enable-strict compiles with strict compiler options (may not work!)],
186 - [
187 - if test $enableval = "no"; then
188 - kde_use_strict_options="no"
189 - else
190 - kde_use_strict_options="yes"
191 - fi
192 - ], [kde_use_strict_options="no"])
193 +# Always use our own libtool.
194 +LIBTOOL='$(SHELL) $(top_builddir)/libtool'
195 +AC_SUBST(LIBTOOL)dnl
196
197 - AC_ARG_ENABLE(warnings,[ --disable-warnings disables compilation with -Wall and similiar],
198 - [
199 - if test $enableval = "no"; then
200 - kde_use_warnings="no"
201 - else
202 - kde_use_warnings="yes"
203 - fi
204 - ], [kde_use_warnings="yes"])
205 +# Prevent multiple expansion
206 +define([AC_PROG_LIBTOOL], [])
207 +])# _AC_PROG_LIBTOOL
208
209 - dnl enable warnings for debug build
210 - if test "$kde_use_debug_code" != "no"; then
211 - kde_use_warnings="yes"
212 - fi
213
214 - AC_ARG_ENABLE(profile,[ --enable-profile creates profiling infos [default=no]],
215 - [kde_use_profiling=$enableval],
216 - [kde_use_profiling="no"]
217 - )
218 +# AC_LIBTOOL_SETUP
219 +# ----------------
220 +AC_DEFUN([AC_LIBTOOL_SETUP],
221 +[AC_PREREQ(2.50)dnl
222 +AC_REQUIRE([AC_ENABLE_SHARED])dnl
223 +AC_REQUIRE([AC_ENABLE_STATIC])dnl
224 +AC_REQUIRE([AC_ENABLE_FAST_INSTALL])dnl
225 +AC_REQUIRE([AC_CANONICAL_HOST])dnl
226 +AC_REQUIRE([AC_CANONICAL_BUILD])dnl
227 +AC_REQUIRE([AC_PROG_CC])dnl
228 +AC_REQUIRE([AC_PROG_LD])dnl
229 +AC_REQUIRE([AC_PROG_LD_RELOAD_FLAG])dnl
230 +AC_REQUIRE([AC_PROG_NM])dnl
231
232 - dnl this prevents stupid AC_PROG_CC to add "-g" to the default CFLAGS
233 - CFLAGS=" $CFLAGS"
234 +AC_REQUIRE([AC_PROG_LN_S])dnl
235 +AC_REQUIRE([AC_DEPLIBS_CHECK_METHOD])dnl
236 +# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
237 +AC_REQUIRE([AC_OBJEXT])dnl
238 +AC_REQUIRE([AC_EXEEXT])dnl
239 +dnl
240
241 - AC_PROG_CC
242 +AC_LIBTOOL_SYS_MAX_CMD_LEN
243 +AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE
244 +AC_LIBTOOL_OBJDIR
245
246 - AC_PROG_CPP
247 +AC_REQUIRE([_LT_AC_SYS_COMPILER])dnl
248 +_LT_AC_PROG_ECHO_BACKSLASH
249
250 - if test "$GCC" = "yes"; then
251 - if test "$kde_use_debug_code" != "no"; then
252 - if test $kde_use_debug_code = "full"; then
253 - CFLAGS="-g3 $CFLAGS"
254 - else
255 - CFLAGS="-g -O1 $CFLAGS"
256 - fi
257 - else
258 - CFLAGS="-O2 $CFLAGS"
259 - fi
260 +case $host_os in
261 +aix3*)
262 + # AIX sometimes has problems with the GCC collect2 program. For some
263 + # reason, if we set the COLLECT_NAMES environment variable, the problems
264 + # vanish in a puff of smoke.
265 + if test "X${COLLECT_NAMES+set}" != Xset; then
266 + COLLECT_NAMES=
267 + export COLLECT_NAMES
268 fi
269 + ;;
270 +esac
271
272 - if test "$kde_use_debug_define" = "yes"; then
273 - CFLAGS="-DNDEBUG $CFLAGS"
274 - fi
275 +# Sed substitution that helps us do robust quoting. It backslashifies
276 +# metacharacters that are still active within double-quoted strings.
277 +Xsed='sed -e 1s/^X//'
278 +[sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g']
279
280 +# Same as above, but do not quote variable references.
281 +[double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g']
282
283 - case "$host" in
284 - *-*-sysv4.2uw*) CFLAGS="-D_UNIXWARE $CFLAGS";;
285 - *-*-sysv5uw7*) CFLAGS="-D_UNIXWARE7 $CFLAGS";;
286 - esac
287 +# Sed substitution to delay expansion of an escaped shell variable in a
288 +# double_quote_subst'ed string.
289 +delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
290
291 - if test -z "$LDFLAGS" && test "$kde_use_debug_code" = "no" && test "$GCC" = "yes"; then
292 - LDFLAGS=""
293 - fi
294 +# Sed substitution to avoid accidental globbing in evaled expressions
295 +no_glob_subst='s/\*/\\\*/g'
296
297 - CXXFLAGS=" $CXXFLAGS"
298 +# Constants:
299 +rm="rm -f"
300
301 - AC_PROG_CXX
302 +# Global variables:
303 +default_ofile=libtool
304 +can_build_shared=yes
305
306 - if test "$GXX" = "yes" || test "$CXX" = "KCC"; then
307 - if test "$kde_use_debug_code" != "no"; then
308 - if test "$CXX" = "KCC"; then
309 - CXXFLAGS="+K0 -Wall -pedantic -W -Wpointer-arith -Wmissing-prototypes -Wwrite-strings $CXXFLAGS"
310 - else
311 - if test "$kde_use_debug_code" = "full"; then
312 - CXXFLAGS="-g3 $CXXFLAGS"
313 - else
314 - CXXFLAGS="-g -O1 $CXXFLAGS"
315 - fi
316 - fi
317 - KDE_CHECK_COMPILER_FLAG(fno-builtin,[CXXFLAGS="-fno-builtin $CXXFLAGS"])
318 - KDE_CHECK_COMPILER_FLAG(fno-nonansi-builtins,[CXXFLAGS="-fno-nonansi-builtins $CXXFLAGS"])
319 +# All known linkers require a `.a' archive for static linking (except MSVC,
320 +# which needs '.lib').
321 +libext=a
322 +ltmain="$ac_aux_dir/ltmain.sh"
323 +ofile="$default_ofile"
324 +with_gnu_ld="$lt_cv_prog_gnu_ld"
325
326 - dnl convenience compiler flags
327 - KDE_CHECK_COMPILER_FLAG(Woverloaded-virtual, [WOVERLOADED_VIRTUAL="-Woverloaded-virtual"], [WOVERLOADED_VRITUAL=""])
328 - AC_SUBST(WOVERLOADED_VIRTUAL)
329 - else
330 - if test "$CXX" = "KCC"; then
331 - CXXFLAGS="+K3 $CXXFLAGS"
332 - else
333 - CXXFLAGS="-O2 $CXXFLAGS"
334 - fi
335 - fi
336 - fi
337 +AC_CHECK_TOOL(AR, ar, false)
338 +AC_CHECK_TOOL(RANLIB, ranlib, :)
339 +AC_CHECK_TOOL(STRIP, strip, :)
340
341 - if test "$kde_use_debug_define" = "yes"; then
342 - CXXFLAGS="-DNDEBUG -DNO_DEBUG $CXXFLAGS"
343 - fi
344 -
345 - if test "$kde_use_profiling" = "yes"; then
346 - KDE_CHECK_COMPILER_FLAG(pg,
347 - [
348 - CFLAGS="-pg $CFLAGS"
349 - CXXFLAGS="-pg $CXXFLAGS"
350 - ])
351 - fi
352 +old_CC="$CC"
353 +old_CFLAGS="$CFLAGS"
354
355 - if test "$kde_use_warnings" = "yes"; then
356 - if test "$GCC" = "yes"; then
357 - case $host in
358 - *-*-linux-gnu)
359 - CFLAGS="-ansi -W -Wall -pedantic -Wchar-subscripts -Wshadow -Wpointer-arith -Wmissing-prototypes -Wwrite-strings -D_XOPEN_SOURCE=500 -D_BSD_SOURCE $CFLAGS"
360 - CXXFLAGS="-ansi -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -Wcast-align -Wconversion -Wchar-subscripts $CXXFLAGS"
361 - KDE_CHECK_COMPILER_FLAG(Wmissing-format-attribute, [CXXFLAGS="$CXXFLAGS -Wformat-security -Wmissing-format-attribute"; CFLAGS="$CFLAGS -Wformat-security -Wmissing-format-attribute"])
362 - ;;
363 - esac
364 - CXXFLAGS="-Wall -pedantic -W -Wpointer-arith -Wwrite-strings $CXXFLAGS"
365 - KDE_CHECK_COMPILER_FLAG(Wundef,[CXXFLAGS="-Wundef $CXXFLAGS"])
366 - KDE_CHECK_COMPILER_FLAG(Wnon-virtual-dtor,[CXXFLAGS="-Wnon-virtual-dtor $CXXFLAGS"])
367 - KDE_CHECK_COMPILER_FLAG(Wold-style-cast,[CXXFLAGS="-Wold-style-cast $CXXFLAGS"])
368 - fi
369 - fi
370 +# Set sane defaults for various variables
371 +test -z "$AR" && AR=ar
372 +test -z "$AR_FLAGS" && AR_FLAGS=cru
373 +test -z "$AS" && AS=as
374 +test -z "$CC" && CC=cc
375 +test -z "$LTCC" && LTCC=$CC
376 +test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
377 +test -z "$DLLTOOL" && DLLTOOL=dlltool
378 +test -z "$LD" && LD=ld
379 +test -z "$LN_S" && LN_S="ln -s"
380 +test -z "$MAGIC_CMD" && MAGIC_CMD=file
381 +test -z "$NM" && NM=nm
382 +test -z "$SED" && SED=sed
383 +test -z "$OBJDUMP" && OBJDUMP=objdump
384 +test -z "$RANLIB" && RANLIB=:
385 +test -z "$STRIP" && STRIP=:
386 +test -z "$ac_objext" && ac_objext=o
387
388 - if test "$GCC" = "yes" && test "$kde_use_strict_options" = "yes"; then
389 - CXXFLAGS="-Wcast-qual -Wshadow -Wcast-align $CXXFLAGS"
390 - KDE_CHECK_COMPILER_FLAG(Weffc++,[CXXFLAGS="-Weffc++ $CXXFLAGS"])
391 - fi
392 -
393 - if test "$GXX" = "yes"; then
394 - KDE_CHECK_COMPILER_FLAG(fno-exceptions,[CXXFLAGS="$CXXFLAGS -fno-exceptions"])
395 - KDE_CHECK_COMPILER_FLAG(fno-check-new, [CXXFLAGS="$CXXFLAGS -fno-check-new"])
396 - KDE_CHECK_COMPILER_FLAG(fexceptions, [USE_EXCEPTIONS="-fexceptions"], USE_EXCEPTIONS= )
397 - fi
398 - if test "$CXX" = "KCC"; then
399 - dnl unfortunately we currently cannot disable exception support in KCC
400 - dnl because doing so is binary incompatible and Qt by default links with exceptions :-(
401 - dnl KDE_CHECK_COMPILER_FLAG(-no_exceptions,[CXXFLAGS="$CXXFLAGS --no_exceptions"])
402 - dnl KDE_CHECK_COMPILER_FLAG(-exceptions, [USE_EXCEPTIONS="--exceptions"], USE_EXCEPTIONS= )
403 -
404 - AC_ARG_ENABLE(pch,[ --enable-pch enables precompiled header support (currently only KCC) [default=no]],
405 - [
406 - kde_use_pch=$enableval
407 - ],[kde_use_pch=no])
408 -
409 - if test "$kde_use_pch" = "yes"; then
410 - dnl TODO: support --pch-dir!
411 - KDE_CHECK_COMPILER_FLAG(-pch,[CXXFLAGS="$CXXFLAGS --pch"])
412 - dnl the below works (but the dir must exist), but it's
413 - dnl useless for a whole package.
414 - dnl The are precompiled headers for each source file, so when compiling
415 - dnl from scratch, it doesn't make a difference, and they take up
416 - dnl around ~5Mb _per_ sourcefile.
417 - dnl KDE_CHECK_COMPILER_FLAG(-pch_dir /tmp,
418 - dnl [CXXFLAGS="$CXXFLAGS --pch_dir `pwd`/pcheaders"])
419 - fi
420 - dnl this flag controls inlining. by default KCC inlines in optimisation mode
421 - dnl all implementations that are defined inside the class {} declaration.
422 - dnl because of templates-compatibility with broken gcc compilers, this
423 - dnl can cause excessive inlining. This flag limits it to a sane level
424 - KDE_CHECK_COMPILER_FLAG(-inline_keyword_space_time=6,[CXXFLAGS="$CXXFLAGS --inline_keyword_space_time=6"])
425 - KDE_CHECK_COMPILER_FLAG(-inline_auto_space_time=2,[CXXFLAGS="$CXXFLAGS --inline_auto_space_time=2"])
426 - KDE_CHECK_COMPILER_FLAG(-inline_implicit_space_time=2.0,[CXXFLAGS="$CXXFLAGS --inline_implicit_space_time=2.0"])
427 - KDE_CHECK_COMPILER_FLAG(-inline_generated_space_time=2.0,[CXXFLAGS="$CXXFLAGS --inline_generated_space_time=2.0"])
428 - dnl Some source files are shared between multiple executables
429 - dnl (or libraries) and some of those need template instantiations.
430 - dnl In that case KCC needs to compile those sources with
431 - dnl --one_instantiation_per_object. To make it easy for us we compile
432 - dnl _all_ objects with that flag (--one_per is a shorthand).
433 - KDE_CHECK_COMPILER_FLAG(-one_per, [CXXFLAGS="$CXXFLAGS --one_per"])
434 - fi
435 - AC_SUBST(USE_EXCEPTIONS)
436 - dnl obsolete macro - provided to keep things going
437 - USE_RTTI=
438 - AC_SUBST(USE_RTTI)
439 -
440 - case "$host" in
441 - *-*-irix*) test "$GXX" = yes && CXXFLAGS="-D_LANGUAGE_C_PLUS_PLUS -D__LANGUAGE_C_PLUS_PLUS $CXXFLAGS" ;;
442 - *-*-sysv4.2uw*) CXXFLAGS="-D_UNIXWARE $CXXFLAGS";;
443 - *-*-sysv5uw7*) CXXFLAGS="-D_UNIXWARE7 $CXXFLAGS";;
444 - *-*-solaris*)
445 - if test "$GXX" = yes; then
446 - libstdcpp=`$CXX -print-file-name=libstdc++.so`
447 - if test ! -f $libstdcpp; then
448 - AC_MSG_WARN([You've compiled gcc without --enable-shared. This might not work with wv2.])
449 - fi
450 - fi
451 - ;;
452 - esac
453 +# Determine commands to create old-style static archives.
454 +old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
455 +old_postinstall_cmds='chmod 644 $oldlib'
456 +old_postuninstall_cmds=
457
458 - AC_VALIDIFY_CXXFLAGS
459 +if test -n "$RANLIB"; then
460 + case $host_os in
461 + openbsd*)
462 + old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
463 + ;;
464 + *)
465 + old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
466 + ;;
467 + esac
468 + old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
469 +fi
470
471 - AC_PROG_CXXCPP
472 +_LT_CC_BASENAME([$compiler])
473
474 - if test "$GCC" = yes; then
475 - NOOPT_CXXFLAGS=-O0
476 - NOOPT_CFLAGS=-O0
477 +# Only perform the check for file, if the check method requires it
478 +case $deplibs_check_method in
479 +file_magic*)
480 + if test "$file_magic_cmd" = '$MAGIC_CMD'; then
481 + AC_PATH_MAGIC
482 fi
483 + ;;
484 +esac
485
486 - AC_SUBST(NOOPT_CXXFLAGS)
487 - AC_SUBST(NOOPT_CFLAGS)
488 +AC_PROVIDE_IFELSE([AC_LIBTOOL_DLOPEN], enable_dlopen=yes, enable_dlopen=no)
489 +AC_PROVIDE_IFELSE([AC_LIBTOOL_WIN32_DLL],
490 +enable_win32_dll=yes, enable_win32_dll=no)
491
492 - ifdef([AM_DEPENDENCIES], AC_REQUIRE([KDE_ADD_DEPENDENCIES]), [])
493 -])
494 +AC_ARG_ENABLE([libtool-lock],
495 + [AC_HELP_STRING([--disable-libtool-lock],
496 + [avoid locking (might break parallel builds)])])
497 +test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
498
499 -AC_DEFUN(KDE_ADD_DEPENDENCIES,
500 -[
501 - [A]M_DEPENDENCIES(CC)
502 - [A]M_DEPENDENCIES(CXX)
503 -])
504 +AC_ARG_WITH([pic],
505 + [AC_HELP_STRING([--with-pic],
506 + [try to use only PIC/non-PIC objects @<:@default=use both@:>@])],
507 + [pic_mode="$withval"],
508 + [pic_mode=default])
509 +test -z "$pic_mode" && pic_mode=default
510
511 -pushdef([AC_PROG_INSTALL],
512 -[
513 - dnl our own version, testing for a -p flag
514 - popdef([AC_PROG_INSTALL])
515 - dnl as AC_PROG_INSTALL works as it works we first have
516 - dnl to save if the user didn't specify INSTALL, as the
517 - dnl autoconf one overwrites INSTALL and we have no chance to find
518 - dnl out afterwards
519 - test -n "$INSTALL" && kde_save_INSTALL_given=$INSTALL
520 - test -n "$INSTALL_PROGRAM" && kde_save_INSTALL_PROGRAM_given=$INSTALL_PROGRAM
521 - test -n "$INSTALL_SCRIPT" && kde_save_INSTALL_SCRIPT_given=$INSTALL_SCRIPT
522 - AC_PROG_INSTALL
523 -
524 - if test -z "$kde_save_INSTALL_given" ; then
525 - # OK, user hasn't given any INSTALL, autoconf found one for us
526 - # now we test, if it supports the -p flag
527 - AC_MSG_CHECKING(for -p flag to install)
528 - rm -f confinst.$$.* > /dev/null 2>&1
529 - echo "Testtest" > confinst.$$.orig
530 - ac_res=no
531 - if ${INSTALL} -p confinst.$$.orig confinst.$$.new > /dev/null 2>&1 ; then
532 - if test -f confinst.$$.new ; then
533 - # OK, -p seems to do no harm to install
534 - INSTALL="${INSTALL} -p"
535 - ac_res=yes
536 - fi
537 - fi
538 - rm -f confinst.$$.*
539 - AC_MSG_RESULT($ac_res)
540 - fi
541 - dnl the following tries to resolve some signs and wonders coming up
542 - dnl with different autoconf/automake versions
543 - dnl e.g.:
544 - dnl *automake 1.4 install-strip sets A_M_INSTALL_PROGRAM_FLAGS to -s
545 - dnl and has INSTALL_PROGRAM = @INSTALL_PROGRAM@ $(A_M_INSTALL_PROGRAM_FLAGS)
546 - dnl it header-vars.am, so there the actual INSTALL_PROGRAM gets the -s
547 - dnl *automake 1.4a (and above) use INSTALL_STRIP_FLAG and only has
548 - dnl INSTALL_PROGRAM = @INSTALL_PROGRAM@ there, but changes the
549 - dnl install-@DIR@PROGRAMS targets to explicitly use that flag
550 - dnl *autoconf 2.13 is dumb, and thinks it can use INSTALL_PROGRAM as
551 - dnl INSTALL_SCRIPT, which breaks with automake <= 1.4
552 - dnl *autoconf >2.13 (since 10.Apr 1999) has not that failure
553 - dnl *sometimes KDE does not use the install-@DIR@PROGRAM targets from
554 - dnl automake (due to broken Makefile.am or whatever) to install programs,
555 - dnl and so does not see the -s flag in automake > 1.4
556 - dnl to clean up that mess we:
557 - dnl +set INSTALL_PROGRAM to use INSTALL_STRIP_FLAG
558 - dnl which cleans KDE's program with automake > 1.4;
559 - dnl +set INSTALL_SCRIPT to only use INSTALL, to clean up autoconf's problems
560 - dnl with automake<=1.4
561 - dnl note that dues to this sometimes two '-s' flags are used (if KDE
562 - dnl properly uses install-@DIR@PROGRAMS, but I don't care
563 - dnl
564 - dnl And to all this comes, that I even can't write in comments variable
565 - dnl names used by automake, because it is so stupid to think I wanted to
566 - dnl _use_ them, therefor I have written A_M_... instead of AM_
567 - dnl hmm, I wanted to say something ... ahh yes: Arghhh.
568 +# Use C for the default configuration in the libtool script
569 +tagname=
570 +AC_LIBTOOL_LANG_C_CONFIG
571 +_LT_AC_TAGCONFIG
572 +])# AC_LIBTOOL_SETUP
573
574 - if test -z "$kde_save_INSTALL_PROGRAM_given" ; then
575 - INSTALL_PROGRAM='${INSTALL} $(INSTALL_STRIP_FLAG)'
576 - fi
577 - if test -z "$kde_save_INSTALL_SCRIPT_given" ; then
578 - INSTALL_SCRIPT='${INSTALL}'
579 - fi
580 -])
581
582 +# _LT_AC_SYS_COMPILER
583 +# -------------------
584 +AC_DEFUN([_LT_AC_SYS_COMPILER],
585 +[AC_REQUIRE([AC_PROG_CC])dnl
586
587 -dnl ##########################################################################
588 -dnl This last check is copied from kdenonbeta/gsf/configure.in.in
589 -dnl ##########################################################################
590 -dnl KDE_PKG_CHECK_MODULES(GSTUFF, gtk+-2.0 >= 1.3 glib = 1.3.4, action-if, action-not)
591 -dnl defines GSTUFF_LIBS, GSTUFF_CFLAGS, see pkg-config man page
592 -dnl also defines GSTUFF_PKG_ERRORS on error
593 -AC_DEFUN(KDE_PKG_CHECK_MODULES, [
594 - succeeded=no
595 -
596 - if test -z "$PKG_CONFIG"; then
597 - AC_PATH_PROG(PKG_CONFIG, pkg-config, no)
598 - fi
599 -
600 - if test "$PKG_CONFIG" = "no" ; then
601 - echo "*** The pkg-config script could not be found. Make sure it is"
602 - echo "*** in your path, or set the PKG_CONFIG environment variable"
603 - echo "*** to the full path to pkg-config."
604 - echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
605 - else
606 - PKG_CONFIG_MIN_VERSION=0.9.0
607 - if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
608 - AC_MSG_CHECKING(for $2)
609 -
610 - if $PKG_CONFIG --exists "$2" ; then
611 - AC_MSG_RESULT(yes)
612 - succeeded=yes
613 -
614 - AC_MSG_CHECKING($1_CFLAGS)
615 - $1_CFLAGS=`$PKG_CONFIG --cflags "$2"`
616 - AC_MSG_RESULT($$1_CFLAGS)
617 -
618 - AC_MSG_CHECKING($1_LIBS)
619 - $1_LIBS=`$PKG_CONFIG --libs "$2"`
620 - AC_MSG_RESULT($$1_LIBS)
621 - else
622 - $1_CFLAGS=""
623 - $1_LIBS=""
624 - ## If we have a custom action on failure, don't print errors, but
625 - ## do set a variable so people can do so.
626 - $1_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$2"`
627 - ifelse([$4], ,echo $$1_PKG_ERRORS,)
628 - fi
629 +# If no C compiler was specified, use CC.
630 +LTCC=${LTCC-"$CC"}
631
632 - AC_SUBST($1_CFLAGS)
633 - AC_SUBST($1_LIBS)
634 - else
635 - echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
636 - echo "*** See http://www.freedesktop.org/software/pkgconfig"
637 - fi
638 - fi
639 +# If no C compiler flags were specified, use CFLAGS.
640 +LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
641
642 - if test $succeeded = yes; then
643 - ifelse([$3], , :, [$3])
644 - else
645 - 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])
646 - fi
647 +# Allow CC to be a program name with arguments.
648 +compiler=$CC
649 +])# _LT_AC_SYS_COMPILER
650 +
651 +
652 +# _LT_CC_BASENAME(CC)
653 +# -------------------
654 +# Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
655 +AC_DEFUN([_LT_CC_BASENAME],
656 +[for cc_temp in $1""; do
657 + case $cc_temp in
658 + compile | *[[\\/]]compile | ccache | *[[\\/]]ccache ) ;;
659 + distcc | *[[\\/]]distcc | purify | *[[\\/]]purify ) ;;
660 + \-*) ;;
661 + *) break;;
662 + esac
663 +done
664 +cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
665 ])
666
667 -# Do all the work for Automake. -*- Autoconf -*-
668
669 -# This macro actually does too much some checks are only needed if
670 -# your package does certain things. But this isn't really a big deal.
671 +# _LT_COMPILER_BOILERPLATE
672 +# ------------------------
673 +# Check for compiler boilerplate output or warnings with
674 +# the simple compiler test code.
675 +AC_DEFUN([_LT_COMPILER_BOILERPLATE],
676 +[ac_outfile=conftest.$ac_objext
677 +printf "$lt_simple_compile_test_code" >conftest.$ac_ext
678 +eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
679 +_lt_compiler_boilerplate=`cat conftest.err`
680 +$rm conftest*
681 +])# _LT_COMPILER_BOILERPLATE
682
683 -# Copyright 1996, 1997, 1998, 1999, 2000, 2001, 2002
684 -# Free Software Foundation, Inc.
685
686 -# This program is free software; you can redistribute it and/or modify
687 -# it under the terms of the GNU General Public License as published by
688 -# the Free Software Foundation; either version 2, or (at your option)
689 -# any later version.
690 +# _LT_LINKER_BOILERPLATE
691 +# ----------------------
692 +# Check for linker boilerplate output or warnings with
693 +# the simple link test code.
694 +AC_DEFUN([_LT_LINKER_BOILERPLATE],
695 +[ac_outfile=conftest.$ac_objext
696 +printf "$lt_simple_link_test_code" >conftest.$ac_ext
697 +eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
698 +_lt_linker_boilerplate=`cat conftest.err`
699 +$rm conftest*
700 +])# _LT_LINKER_BOILERPLATE
701
702 -# This program is distributed in the hope that it will be useful,
703 -# but WITHOUT ANY WARRANTY; without even the implied warranty of
704 -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
705 -# GNU General Public License for more details.
706
707 -# You should have received a copy of the GNU General Public License
708 -# along with this program; if not, write to the Free Software
709 -# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
710 -# 02111-1307, USA.
711 +# _LT_AC_SYS_LIBPATH_AIX
712 +# ----------------------
713 +# Links a minimal program and checks the executable
714 +# for the system default hardcoded library path. In most cases,
715 +# this is /usr/lib:/lib, but when the MPI compilers are used
716 +# the location of the communication and MPI libs are included too.
717 +# If we don't find anything, use the default library path according
718 +# to the aix ld manual.
719 +AC_DEFUN([_LT_AC_SYS_LIBPATH_AIX],
720 +[AC_LINK_IFELSE(AC_LANG_PROGRAM,[
721 +aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
722 +}'`
723 +# Check for a 64-bit object if we didn't find anything.
724 +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; }
725 +}'`; fi],[])
726 +if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
727 +])# _LT_AC_SYS_LIBPATH_AIX
728
729 -# serial 8
730
731 -# There are a few dirty hacks below to avoid letting `AC_PROG_CC' be
732 -# written in clear, in which case automake, when reading aclocal.m4,
733 -# will think it sees a *use*, and therefore will trigger all it's
734 -# C support machinery. Also note that it means that autoscan, seeing
735 -# CC etc. in the Makefile, will ask for an AC_PROG_CC use...
736 +# _LT_AC_SHELL_INIT(ARG)
737 +# ----------------------
738 +AC_DEFUN([_LT_AC_SHELL_INIT],
739 +[ifdef([AC_DIVERSION_NOTICE],
740 + [AC_DIVERT_PUSH(AC_DIVERSION_NOTICE)],
741 + [AC_DIVERT_PUSH(NOTICE)])
742 +$1
743 +AC_DIVERT_POP
744 +])# _LT_AC_SHELL_INIT
745
746
747 -AC_PREREQ([2.54])
748 +# _LT_AC_PROG_ECHO_BACKSLASH
749 +# --------------------------
750 +# Add some code to the start of the generated configure script which
751 +# will find an echo command which doesn't interpret backslashes.
752 +AC_DEFUN([_LT_AC_PROG_ECHO_BACKSLASH],
753 +[_LT_AC_SHELL_INIT([
754 +# Check that we are running under the correct shell.
755 +SHELL=${CONFIG_SHELL-/bin/sh}
756
757 -# Autoconf 2.50 wants to disallow AM_ names. We explicitly allow
758 -# the ones we care about.
759 -m4_pattern_allow([^AM_[A-Z]+FLAGS$])dnl
760 +case X$ECHO in
761 +X*--fallback-echo)
762 + # Remove one level of quotation (which was required for Make).
763 + ECHO=`echo "$ECHO" | sed 's,\\\\\[$]\\[$]0,'[$]0','`
764 + ;;
765 +esac
766
767 -# AM_INIT_AUTOMAKE(PACKAGE, VERSION, [NO-DEFINE])
768 -# AM_INIT_AUTOMAKE([OPTIONS])
769 -# -----------------------------------------------
770 -# The call with PACKAGE and VERSION arguments is the old style
771 -# call (pre autoconf-2.50), which is being phased out. PACKAGE
772 -# and VERSION should now be passed to AC_INIT and removed from
773 -# the call to AM_INIT_AUTOMAKE.
774 -# We support both call styles for the transition. After
775 -# the next Automake release, Autoconf can make the AC_INIT
776 -# arguments mandatory, and then we can depend on a new Autoconf
777 -# release and drop the old call support.
778 -AC_DEFUN([AM_INIT_AUTOMAKE],
779 -[AC_REQUIRE([AM_SET_CURRENT_AUTOMAKE_VERSION])dnl
780 - AC_REQUIRE([AC_PROG_INSTALL])dnl
781 -# test to see if srcdir already configured
782 -if test "`cd $srcdir && pwd`" != "`pwd`" &&
783 - test -f $srcdir/config.status; then
784 - AC_MSG_ERROR([source directory already configured; run "make distclean" there first])
785 +echo=${ECHO-echo}
786 +if test "X[$]1" = X--no-reexec; then
787 + # Discard the --no-reexec flag, and continue.
788 + shift
789 +elif test "X[$]1" = X--fallback-echo; then
790 + # Avoid inline document here, it may be left over
791 + :
792 +elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
793 + # Yippee, $echo works!
794 + :
795 +else
796 + # Restart under the correct shell.
797 + exec $SHELL "[$]0" --no-reexec ${1+"[$]@"}
798 fi
799
800 -# test whether we have cygpath
801 -if test -z "$CYGPATH_W"; then
802 - if (cygpath --version) >/dev/null 2>/dev/null; then
803 - CYGPATH_W='cygpath -w'
804 - else
805 - CYGPATH_W=echo
806 - fi
807 +if test "X[$]1" = X--fallback-echo; then
808 + # used as fallback echo
809 + shift
810 + cat <<EOF
811 +[$]*
812 +EOF
813 + exit 0
814 fi
815 -AC_SUBST([CYGPATH_W])
816
817 -# Define the identity of the package.
818 -dnl Distinguish between old-style and new-style calls.
819 -m4_ifval([$2],
820 -[m4_ifval([$3], [_AM_SET_OPTION([no-define])])dnl
821 - AC_SUBST([PACKAGE], [$1])dnl
822 - AC_SUBST([VERSION], [$2])],
823 -[_AM_SET_OPTIONS([$1])dnl
824 - AC_SUBST([PACKAGE], [AC_PACKAGE_TARNAME])dnl
825 - AC_SUBST([VERSION], [AC_PACKAGE_VERSION])])dnl
826 +# The HP-UX ksh and POSIX shell print the target directory to stdout
827 +# if CDPATH is set.
828 +(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
829
830 -_AM_IF_OPTION([no-define],,
831 -[AC_DEFINE_UNQUOTED(PACKAGE, "$PACKAGE", [Name of package])
832 - AC_DEFINE_UNQUOTED(VERSION, "$VERSION", [Version number of package])])dnl
833 +if test -z "$ECHO"; then
834 +if test "X${echo_test_string+set}" != Xset; then
835 +# find a string as large as possible, as long as the shell can cope with it
836 + for cmd in 'sed 50q "[$]0"' 'sed 20q "[$]0"' 'sed 10q "[$]0"' 'sed 2q "[$]0"' 'echo test'; do
837 + # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
838 + if (echo_test_string=`eval $cmd`) 2>/dev/null &&
839 + echo_test_string=`eval $cmd` &&
840 + (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
841 + then
842 + break
843 + fi
844 + done
845 +fi
846
847 -# Some tools Automake needs.
848 -AC_REQUIRE([AM_SANITY_CHECK])dnl
849 -AC_REQUIRE([AC_ARG_PROGRAM])dnl
850 -AM_MISSING_PROG(ACLOCAL, aclocal-${am__api_version})
851 -AM_MISSING_PROG(AUTOCONF, autoconf)
852 -AM_MISSING_PROG(AUTOMAKE, automake-${am__api_version})
853 -AM_MISSING_PROG(AUTOHEADER, autoheader)
854 -AM_MISSING_PROG(MAKEINFO, makeinfo)
855 -AM_MISSING_PROG(AMTAR, tar)
856 -AM_PROG_INSTALL_SH
857 -AM_PROG_INSTALL_STRIP
858 -# We need awk for the "check" target. The system "awk" is bad on
859 -# some platforms.
860 -AC_REQUIRE([AC_PROG_AWK])dnl
861 -AC_REQUIRE([AC_PROG_MAKE_SET])dnl
862 +if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
863 + echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
864 + test "X$echo_testing_string" = "X$echo_test_string"; then
865 + :
866 +else
867 + # The Solaris, AIX, and Digital Unix default echo programs unquote
868 + # backslashes. This makes it impossible to quote backslashes using
869 + # echo "$something" | sed 's/\\/\\\\/g'
870 + #
871 + # So, first we look for a working echo in the user's PATH.
872
873 -_AM_IF_OPTION([no-dependencies],,
874 -[AC_PROVIDE_IFELSE([AC_PROG_CC],
875 - [_AM_DEPENDENCIES(CC)],
876 - [define([AC_PROG_CC],
877 - defn([AC_PROG_CC])[_AM_DEPENDENCIES(CC)])])dnl
878 -AC_PROVIDE_IFELSE([AC_PROG_CXX],
879 - [_AM_DEPENDENCIES(CXX)],
880 - [define([AC_PROG_CXX],
881 - defn([AC_PROG_CXX])[_AM_DEPENDENCIES(CXX)])])dnl
882 -])
883 -])
884 + lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
885 + for dir in $PATH /usr/ucb; do
886 + IFS="$lt_save_ifs"
887 + if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
888 + test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
889 + echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
890 + test "X$echo_testing_string" = "X$echo_test_string"; then
891 + echo="$dir/echo"
892 + break
893 + fi
894 + done
895 + IFS="$lt_save_ifs"
896
897 + if test "X$echo" = Xecho; then
898 + # We didn't find a better echo, so look for alternatives.
899 + if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
900 + echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
901 + test "X$echo_testing_string" = "X$echo_test_string"; then
902 + # This shell has a builtin print -r that does the trick.
903 + echo='print -r'
904 + elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
905 + test "X$CONFIG_SHELL" != X/bin/ksh; then
906 + # If we have ksh, try running configure again with it.
907 + ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
908 + export ORIGINAL_CONFIG_SHELL
909 + CONFIG_SHELL=/bin/ksh
910 + export CONFIG_SHELL
911 + exec $CONFIG_SHELL "[$]0" --no-reexec ${1+"[$]@"}
912 + else
913 + # Try using printf.
914 + echo='printf %s\n'
915 + if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
916 + echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
917 + test "X$echo_testing_string" = "X$echo_test_string"; then
918 + # Cool, printf works
919 + :
920 + elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "[$]0" --fallback-echo '\t') 2>/dev/null` &&
921 + test "X$echo_testing_string" = 'X\t' &&
922 + echo_testing_string=`($ORIGINAL_CONFIG_SHELL "[$]0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
923 + test "X$echo_testing_string" = "X$echo_test_string"; then
924 + CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
925 + export CONFIG_SHELL
926 + SHELL="$CONFIG_SHELL"
927 + export SHELL
928 + echo="$CONFIG_SHELL [$]0 --fallback-echo"
929 + elif echo_testing_string=`($CONFIG_SHELL "[$]0" --fallback-echo '\t') 2>/dev/null` &&
930 + test "X$echo_testing_string" = 'X\t' &&
931 + echo_testing_string=`($CONFIG_SHELL "[$]0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
932 + test "X$echo_testing_string" = "X$echo_test_string"; then
933 + echo="$CONFIG_SHELL [$]0 --fallback-echo"
934 + else
935 + # maybe with a smaller string...
936 + prev=:
937
938 -# When config.status generates a header, we must update the stamp-h file.
939 -# This file resides in the same directory as the config header
940 -# that is generated. The stamp files are numbered to have different names.
941 + for cmd in 'echo test' 'sed 2q "[$]0"' 'sed 10q "[$]0"' 'sed 20q "[$]0"' 'sed 50q "[$]0"'; do
942 + if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
943 + then
944 + break
945 + fi
946 + prev="$cmd"
947 + done
948
949 -# Autoconf calls _AC_AM_CONFIG_HEADER_HOOK (when defined) in the
950 -# loop where config.status creates the headers, so we can generate
951 -# our stamp files there.
952 -AC_DEFUN([_AC_AM_CONFIG_HEADER_HOOK],
953 -[_am_stamp_count=`expr ${_am_stamp_count-0} + 1`
954 -echo "timestamp for $1" >`AS_DIRNAME([$1])`/stamp-h[]$_am_stamp_count])
955 + if test "$prev" != 'sed 50q "[$]0"'; then
956 + echo_test_string=`eval $prev`
957 + export echo_test_string
958 + exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "[$]0" ${1+"[$]@"}
959 + else
960 + # Oops. We lost completely, so just stick with echo.
961 + echo=echo
962 + fi
963 + fi
964 + fi
965 + fi
966 +fi
967 +fi
968
969 -# Copyright 2002 Free Software Foundation, Inc.
970 +# Copy echo and quote the copy suitably for passing to libtool from
971 +# the Makefile, instead of quoting the original, which is used later.
972 +ECHO=$echo
973 +if test "X$ECHO" = "X$CONFIG_SHELL [$]0 --fallback-echo"; then
974 + ECHO="$CONFIG_SHELL \\\$\[$]0 --fallback-echo"
975 +fi
976
977 -# This program is free software; you can redistribute it and/or modify
978 -# it under the terms of the GNU General Public License as published by
979 -# the Free Software Foundation; either version 2, or (at your option)
980 -# any later version.
981 +AC_SUBST(ECHO)
982 +])])# _LT_AC_PROG_ECHO_BACKSLASH
983
984 -# This program is distributed in the hope that it will be useful,
985 -# but WITHOUT ANY WARRANTY; without even the implied warranty of
986 -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
987 -# GNU General Public License for more details.
988
989 -# You should have received a copy of the GNU General Public License
990 -# along with this program; if not, write to the Free Software
991 -# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
992 +# _LT_AC_LOCK
993 +# -----------
994 +AC_DEFUN([_LT_AC_LOCK],
995 +[AC_ARG_ENABLE([libtool-lock],
996 + [AC_HELP_STRING([--disable-libtool-lock],
997 + [avoid locking (might break parallel builds)])])
998 +test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
999
1000 -# AM_AUTOMAKE_VERSION(VERSION)
1001 -# ----------------------------
1002 -# Automake X.Y traces this macro to ensure aclocal.m4 has been
1003 -# generated from the m4 files accompanying Automake X.Y.
1004 -AC_DEFUN([AM_AUTOMAKE_VERSION],[am__api_version="1.7"])
1005 +# Some flags need to be propagated to the compiler or linker for good
1006 +# libtool support.
1007 +case $host in
1008 +ia64-*-hpux*)
1009 + # Find out which ABI we are using.
1010 + echo 'int i;' > conftest.$ac_ext
1011 + if AC_TRY_EVAL(ac_compile); then
1012 + case `/usr/bin/file conftest.$ac_objext` in
1013 + *ELF-32*)
1014 + HPUX_IA64_MODE="32"
1015 + ;;
1016 + *ELF-64*)
1017 + HPUX_IA64_MODE="64"
1018 + ;;
1019 + esac
1020 + fi
1021 + rm -rf conftest*
1022 + ;;
1023 +*-*-irix6*)
1024 + # Find out which ABI we are using.
1025 + echo '[#]line __oline__ "configure"' > conftest.$ac_ext
1026 + if AC_TRY_EVAL(ac_compile); then
1027 + if test "$lt_cv_prog_gnu_ld" = yes; then
1028 + case `/usr/bin/file conftest.$ac_objext` in
1029 + *32-bit*)
1030 + LD="${LD-ld} -melf32bsmip"
1031 + ;;
1032 + *N32*)
1033 + LD="${LD-ld} -melf32bmipn32"
1034 + ;;
1035 + *64-bit*)
1036 + LD="${LD-ld} -melf64bmip"
1037 + ;;
1038 + esac
1039 + else
1040 + case `/usr/bin/file conftest.$ac_objext` in
1041 + *32-bit*)
1042 + LD="${LD-ld} -32"
1043 + ;;
1044 + *N32*)
1045 + LD="${LD-ld} -n32"
1046 + ;;
1047 + *64-bit*)
1048 + LD="${LD-ld} -64"
1049 + ;;
1050 + esac
1051 + fi
1052 + fi
1053 + rm -rf conftest*
1054 + ;;
1055
1056 -# AM_SET_CURRENT_AUTOMAKE_VERSION
1057 -# -------------------------------
1058 -# Call AM_AUTOMAKE_VERSION so it can be traced.
1059 -# This function is AC_REQUIREd by AC_INIT_AUTOMAKE.
1060 -AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION],
1061 - [AM_AUTOMAKE_VERSION([1.7.2])])
1062 +x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
1063 + # Find out which ABI we are using.
1064 + echo 'int i;' > conftest.$ac_ext
1065 + if AC_TRY_EVAL(ac_compile); then
1066 + case `/usr/bin/file conftest.o` in
1067 + *32-bit*)
1068 + case $host in
1069 + x86_64-*linux*)
1070 + LD="${LD-ld} -m elf_i386"
1071 + ;;
1072 + ppc64-*linux*|powerpc64-*linux*)
1073 + LD="${LD-ld} -m elf32ppclinux"
1074 + ;;
1075 + s390x-*linux*)
1076 + LD="${LD-ld} -m elf_s390"
1077 + ;;
1078 + sparc64-*linux*)
1079 + LD="${LD-ld} -m elf32_sparc"
1080 + ;;
1081 + esac
1082 + ;;
1083 + *64-bit*)
1084 + case $host in
1085 + x86_64-*linux*)
1086 + LD="${LD-ld} -m elf_x86_64"
1087 + ;;
1088 + ppc*-*linux*|powerpc*-*linux*)
1089 + LD="${LD-ld} -m elf64ppc"
1090 + ;;
1091 + s390*-*linux*)
1092 + LD="${LD-ld} -m elf64_s390"
1093 + ;;
1094 + sparc*-*linux*)
1095 + LD="${LD-ld} -m elf64_sparc"
1096 + ;;
1097 + esac
1098 + ;;
1099 + esac
1100 + fi
1101 + rm -rf conftest*
1102 + ;;
1103
1104 -# Helper functions for option handling. -*- Autoconf -*-
1105 +*-*-sco3.2v5*)
1106 + # On SCO OpenServer 5, we need -belf to get full-featured binaries.
1107 + SAVE_CFLAGS="$CFLAGS"
1108 + CFLAGS="$CFLAGS -belf"
1109 + AC_CACHE_CHECK([whether the C compiler needs -belf], lt_cv_cc_needs_belf,
1110 + [AC_LANG_PUSH(C)
1111 + AC_TRY_LINK([],[],[lt_cv_cc_needs_belf=yes],[lt_cv_cc_needs_belf=no])
1112 + AC_LANG_POP])
1113 + if test x"$lt_cv_cc_needs_belf" != x"yes"; then
1114 + # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
1115 + CFLAGS="$SAVE_CFLAGS"
1116 + fi
1117 + ;;
1118 +sparc*-*solaris*)
1119 + # Find out which ABI we are using.
1120 + echo 'int i;' > conftest.$ac_ext
1121 + if AC_TRY_EVAL(ac_compile); then
1122 + case `/usr/bin/file conftest.o` in
1123 + *64-bit*)
1124 + case $lt_cv_prog_gnu_ld in
1125 + yes*) LD="${LD-ld} -m elf64_sparc" ;;
1126 + *) LD="${LD-ld} -64" ;;
1127 + esac
1128 + ;;
1129 + esac
1130 + fi
1131 + rm -rf conftest*
1132 + ;;
1133
1134 -# Copyright 2001, 2002 Free Software Foundation, Inc.
1135 +AC_PROVIDE_IFELSE([AC_LIBTOOL_WIN32_DLL],
1136 +[*-*-cygwin* | *-*-mingw* | *-*-pw32*)
1137 + AC_CHECK_TOOL(DLLTOOL, dlltool, false)
1138 + AC_CHECK_TOOL(AS, as, false)
1139 + AC_CHECK_TOOL(OBJDUMP, objdump, false)
1140 + ;;
1141 + ])
1142 +esac
1143
1144 -# This program is free software; you can redistribute it and/or modify
1145 -# it under the terms of the GNU General Public License as published by
1146 -# the Free Software Foundation; either version 2, or (at your option)
1147 -# any later version.
1148 +need_locks="$enable_libtool_lock"
1149
1150 -# This program is distributed in the hope that it will be useful,
1151 -# but WITHOUT ANY WARRANTY; without even the implied warranty of
1152 -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
1153 -# GNU General Public License for more details.
1154 +])# _LT_AC_LOCK
1155
1156 -# You should have received a copy of the GNU General Public License
1157 -# along with this program; if not, write to the Free Software
1158 -# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
1159 -# 02111-1307, USA.
1160
1161 -# serial 2
1162 +# AC_LIBTOOL_COMPILER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS,
1163 +# [OUTPUT-FILE], [ACTION-SUCCESS], [ACTION-FAILURE])
1164 +# ----------------------------------------------------------------
1165 +# Check whether the given compiler option works
1166 +AC_DEFUN([AC_LIBTOOL_COMPILER_OPTION],
1167 +[AC_REQUIRE([LT_AC_PROG_SED])
1168 +AC_CACHE_CHECK([$1], [$2],
1169 + [$2=no
1170 + ifelse([$4], , [ac_outfile=conftest.$ac_objext], [ac_outfile=$4])
1171 + printf "$lt_simple_compile_test_code" > conftest.$ac_ext
1172 + lt_compiler_flag="$3"
1173 + # Insert the option either (1) after the last *FLAGS variable, or
1174 + # (2) before a word containing "conftest.", or (3) at the end.
1175 + # Note that $ac_compile itself does not contain backslashes and begins
1176 + # with a dollar sign (not a hyphen), so the echo should work correctly.
1177 + # The option is referenced via a variable to avoid confusing sed.
1178 + lt_compile=`echo "$ac_compile" | $SED \
1179 + -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
1180 + -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \
1181 + -e 's:$: $lt_compiler_flag:'`
1182 + (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&AS_MESSAGE_LOG_FD)
1183 + (eval "$lt_compile" 2>conftest.err)
1184 + ac_status=$?
1185 + cat conftest.err >&AS_MESSAGE_LOG_FD
1186 + echo "$as_me:__oline__: \$? = $ac_status" >&AS_MESSAGE_LOG_FD
1187 + if (exit $ac_status) && test -s "$ac_outfile"; then
1188 + # The compiler can only warn and ignore the option if not recognized
1189 + # So say no if there are warnings other than the usual output.
1190 + $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
1191 + $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
1192 + if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
1193 + $2=yes
1194 + fi
1195 + fi
1196 + $rm conftest*
1197 +])
1198
1199 -# _AM_MANGLE_OPTION(NAME)
1200 -# -----------------------
1201 -AC_DEFUN([_AM_MANGLE_OPTION],
1202 -[[_AM_OPTION_]m4_bpatsubst($1, [[^a-zA-Z0-9_]], [_])])
1203 +if test x"[$]$2" = xyes; then
1204 + ifelse([$5], , :, [$5])
1205 +else
1206 + ifelse([$6], , :, [$6])
1207 +fi
1208 +])# AC_LIBTOOL_COMPILER_OPTION
1209
1210 -# _AM_SET_OPTION(NAME)
1211 -# ------------------------------
1212 -# Set option NAME. Presently that only means defining a flag for this option.
1213 -AC_DEFUN([_AM_SET_OPTION],
1214 -[m4_define(_AM_MANGLE_OPTION([$1]), 1)])
1215 -
1216 -# _AM_SET_OPTIONS(OPTIONS)
1217 -# ----------------------------------
1218 -# OPTIONS is a space-separated list of Automake options.
1219 -AC_DEFUN([_AM_SET_OPTIONS],
1220 -[AC_FOREACH([_AM_Option], [$1], [_AM_SET_OPTION(_AM_Option)])])
1221
1222 -# _AM_IF_OPTION(OPTION, IF-SET, [IF-NOT-SET])
1223 -# -------------------------------------------
1224 -# Execute IF-SET if OPTION is set, IF-NOT-SET otherwise.
1225 -AC_DEFUN([_AM_IF_OPTION],
1226 -[m4_ifset(_AM_MANGLE_OPTION([$1]), [$2], [$3])])
1227 +# AC_LIBTOOL_LINKER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS,
1228 +# [ACTION-SUCCESS], [ACTION-FAILURE])
1229 +# ------------------------------------------------------------
1230 +# Check whether the given compiler option works
1231 +AC_DEFUN([AC_LIBTOOL_LINKER_OPTION],
1232 +[AC_CACHE_CHECK([$1], [$2],
1233 + [$2=no
1234 + save_LDFLAGS="$LDFLAGS"
1235 + LDFLAGS="$LDFLAGS $3"
1236 + printf "$lt_simple_link_test_code" > conftest.$ac_ext
1237 + if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
1238 + # The linker can only warn and ignore the option if not recognized
1239 + # So say no if there are warnings
1240 + if test -s conftest.err; then
1241 + # Append any errors to the config.log.
1242 + cat conftest.err 1>&AS_MESSAGE_LOG_FD
1243 + $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
1244 + $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
1245 + if diff conftest.exp conftest.er2 >/dev/null; then
1246 + $2=yes
1247 + fi
1248 + else
1249 + $2=yes
1250 + fi
1251 + fi
1252 + $rm conftest*
1253 + LDFLAGS="$save_LDFLAGS"
1254 +])
1255
1256 -#
1257 -# Check to make sure that the build environment is sane.
1258 -#
1259 +if test x"[$]$2" = xyes; then
1260 + ifelse([$4], , :, [$4])
1261 +else
1262 + ifelse([$5], , :, [$5])
1263 +fi
1264 +])# AC_LIBTOOL_LINKER_OPTION
1265
1266 -# Copyright 1996, 1997, 2000, 2001 Free Software Foundation, Inc.
1267
1268 -# This program is free software; you can redistribute it and/or modify
1269 -# it under the terms of the GNU General Public License as published by
1270 -# the Free Software Foundation; either version 2, or (at your option)
1271 -# any later version.
1272 +# AC_LIBTOOL_SYS_MAX_CMD_LEN
1273 +# --------------------------
1274 +AC_DEFUN([AC_LIBTOOL_SYS_MAX_CMD_LEN],
1275 +[# find the maximum length of command line arguments
1276 +AC_MSG_CHECKING([the maximum length of command line arguments])
1277 +AC_CACHE_VAL([lt_cv_sys_max_cmd_len], [dnl
1278 + i=0
1279 + teststring="ABCD"
1280 +
1281 + case $build_os in
1282 + msdosdjgpp*)
1283 + # On DJGPP, this test can blow up pretty badly due to problems in libc
1284 + # (any single argument exceeding 2000 bytes causes a buffer overrun
1285 + # during glob expansion). Even if it were fixed, the result of this
1286 + # check would be larger than it should be.
1287 + lt_cv_sys_max_cmd_len=12288; # 12K is about right
1288 + ;;
1289 +
1290 + gnu*)
1291 + # Under GNU Hurd, this test is not required because there is
1292 + # no limit to the length of command line arguments.
1293 + # Libtool will interpret -1 as no limit whatsoever
1294 + lt_cv_sys_max_cmd_len=-1;
1295 + ;;
1296 +
1297 + cygwin* | mingw*)
1298 + # On Win9x/ME, this test blows up -- it succeeds, but takes
1299 + # about 5 minutes as the teststring grows exponentially.
1300 + # Worse, since 9x/ME are not pre-emptively multitasking,
1301 + # you end up with a "frozen" computer, even though with patience
1302 + # the test eventually succeeds (with a max line length of 256k).
1303 + # Instead, let's just punt: use the minimum linelength reported by
1304 + # all of the supported platforms: 8192 (on NT/2K/XP).
1305 + lt_cv_sys_max_cmd_len=8192;
1306 + ;;
1307
1308 -# This program is distributed in the hope that it will be useful,
1309 -# but WITHOUT ANY WARRANTY; without even the implied warranty of
1310 -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
1311 -# GNU General Public License for more details.
1312 + amigaos*)
1313 + # On AmigaOS with pdksh, this test takes hours, literally.
1314 + # So we just punt and use a minimum line length of 8192.
1315 + lt_cv_sys_max_cmd_len=8192;
1316 + ;;
1317
1318 -# You should have received a copy of the GNU General Public License
1319 -# along with this program; if not, write to the Free Software
1320 -# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
1321 -# 02111-1307, USA.
1322 + netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
1323 + # This has been around since 386BSD, at least. Likely further.
1324 + if test -x /sbin/sysctl; then
1325 + lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
1326 + elif test -x /usr/sbin/sysctl; then
1327 + lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
1328 + else
1329 + lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
1330 + fi
1331 + # And add a safety zone
1332 + lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
1333 + lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
1334 + ;;
1335 +
1336 + interix*)
1337 + # We know the value 262144 and hardcode it with a safety zone (like BSD)
1338 + lt_cv_sys_max_cmd_len=196608
1339 + ;;
1340 +
1341 + osf*)
1342 + # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
1343 + # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
1344 + # nice to cause kernel panics so lets avoid the loop below.
1345 + # First set a reasonable default.
1346 + lt_cv_sys_max_cmd_len=16384
1347 + #
1348 + if test -x /sbin/sysconfig; then
1349 + case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
1350 + *1*) lt_cv_sys_max_cmd_len=-1 ;;
1351 + esac
1352 + fi
1353 + ;;
1354 + sco3.2v5*)
1355 + lt_cv_sys_max_cmd_len=102400
1356 + ;;
1357 + sysv5* | sco5v6* | sysv4.2uw2*)
1358 + kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
1359 + if test -n "$kargmax"; then
1360 + lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[[ ]]//'`
1361 + else
1362 + lt_cv_sys_max_cmd_len=32768
1363 + fi
1364 + ;;
1365 + *)
1366 + # If test is not a shell built-in, we'll probably end up computing a
1367 + # maximum length that is only half of the actual maximum length, but
1368 + # we can't tell.
1369 + SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
1370 + while (test "X"`$SHELL [$]0 --fallback-echo "X$teststring" 2>/dev/null` \
1371 + = "XX$teststring") >/dev/null 2>&1 &&
1372 + new_result=`expr "X$teststring" : ".*" 2>&1` &&
1373 + lt_cv_sys_max_cmd_len=$new_result &&
1374 + test $i != 17 # 1/2 MB should be enough
1375 + do
1376 + i=`expr $i + 1`
1377 + teststring=$teststring$teststring
1378 + done
1379 + teststring=
1380 + # Add a significant safety factor because C++ compilers can tack on massive
1381 + # amounts of additional arguments before passing them to the linker.
1382 + # It appears as though 1/2 is a usable value.
1383 + lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
1384 + ;;
1385 + esac
1386 +])
1387 +if test -n $lt_cv_sys_max_cmd_len ; then
1388 + AC_MSG_RESULT($lt_cv_sys_max_cmd_len)
1389 +else
1390 + AC_MSG_RESULT(none)
1391 +fi
1392 +])# AC_LIBTOOL_SYS_MAX_CMD_LEN
1393
1394 -# serial 3
1395
1396 -# AM_SANITY_CHECK
1397 -# ---------------
1398 -AC_DEFUN([AM_SANITY_CHECK],
1399 -[AC_MSG_CHECKING([whether build environment is sane])
1400 -# Just in case
1401 -sleep 1
1402 -echo timestamp > conftest.file
1403 -# Do `set' in a subshell so we don't clobber the current shell's
1404 -# arguments. Must try -L first in case configure is actually a
1405 -# symlink; some systems play weird games with the mod time of symlinks
1406 -# (eg FreeBSD returns the mod time of the symlink's containing
1407 -# directory).
1408 -if (
1409 - set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1410 - if test "$[*]" = "X"; then
1411 - # -L didn't work.
1412 - set X `ls -t $srcdir/configure conftest.file`
1413 - fi
1414 - rm -f conftest.file
1415 - if test "$[*]" != "X $srcdir/configure conftest.file" \
1416 - && test "$[*]" != "X conftest.file $srcdir/configure"; then
1417 +# _LT_AC_CHECK_DLFCN
1418 +# ------------------
1419 +AC_DEFUN([_LT_AC_CHECK_DLFCN],
1420 +[AC_CHECK_HEADERS(dlfcn.h)dnl
1421 +])# _LT_AC_CHECK_DLFCN
1422
1423 - # If neither matched, then we have a broken ls. This can happen
1424 - # if, for instance, CONFIG_SHELL is bash and it inherits a
1425 - # broken ls alias from the environment. This has actually
1426 - # happened. Such a system could not be considered "sane".
1427 - AC_MSG_ERROR([ls -t appears to fail. Make sure there is not a broken
1428 -alias in your environment])
1429 - fi
1430
1431 - test "$[2]" = conftest.file
1432 - )
1433 -then
1434 - # Ok.
1435 - :
1436 +# _LT_AC_TRY_DLOPEN_SELF (ACTION-IF-TRUE, ACTION-IF-TRUE-W-USCORE,
1437 +# ACTION-IF-FALSE, ACTION-IF-CROSS-COMPILING)
1438 +# ---------------------------------------------------------------------
1439 +AC_DEFUN([_LT_AC_TRY_DLOPEN_SELF],
1440 +[AC_REQUIRE([_LT_AC_CHECK_DLFCN])dnl
1441 +if test "$cross_compiling" = yes; then :
1442 + [$4]
1443 else
1444 - AC_MSG_ERROR([newly created file is older than distributed files!
1445 -Check your system clock])
1446 -fi
1447 -AC_MSG_RESULT(yes)])
1448 + lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
1449 + lt_status=$lt_dlunknown
1450 + cat > conftest.$ac_ext <<EOF
1451 +[#line __oline__ "configure"
1452 +#include "confdefs.h"
1453
1454 -# -*- Autoconf -*-
1455 +#if HAVE_DLFCN_H
1456 +#include <dlfcn.h>
1457 +#endif
1458
1459 +#include <stdio.h>
1460
1461 -# Copyright 1997, 1999, 2000, 2001 Free Software Foundation, Inc.
1462 +#ifdef RTLD_GLOBAL
1463 +# define LT_DLGLOBAL RTLD_GLOBAL
1464 +#else
1465 +# ifdef DL_GLOBAL
1466 +# define LT_DLGLOBAL DL_GLOBAL
1467 +# else
1468 +# define LT_DLGLOBAL 0
1469 +# endif
1470 +#endif
1471
1472 -# This program is free software; you can redistribute it and/or modify
1473 -# it under the terms of the GNU General Public License as published by
1474 -# the Free Software Foundation; either version 2, or (at your option)
1475 -# any later version.
1476 +/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
1477 + find out it does not work in some platform. */
1478 +#ifndef LT_DLLAZY_OR_NOW
1479 +# ifdef RTLD_LAZY
1480 +# define LT_DLLAZY_OR_NOW RTLD_LAZY
1481 +# else
1482 +# ifdef DL_LAZY
1483 +# define LT_DLLAZY_OR_NOW DL_LAZY
1484 +# else
1485 +# ifdef RTLD_NOW
1486 +# define LT_DLLAZY_OR_NOW RTLD_NOW
1487 +# else
1488 +# ifdef DL_NOW
1489 +# define LT_DLLAZY_OR_NOW DL_NOW
1490 +# else
1491 +# define LT_DLLAZY_OR_NOW 0
1492 +# endif
1493 +# endif
1494 +# endif
1495 +# endif
1496 +#endif
1497
1498 -# This program is distributed in the hope that it will be useful,
1499 -# but WITHOUT ANY WARRANTY; without even the implied warranty of
1500 -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
1501 -# GNU General Public License for more details.
1502 +#ifdef __cplusplus
1503 +extern "C" void exit (int);
1504 +#endif
1505
1506 -# You should have received a copy of the GNU General Public License
1507 -# along with this program; if not, write to the Free Software
1508 -# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
1509 -# 02111-1307, USA.
1510 +void fnord() { int i=42;}
1511 +int main ()
1512 +{
1513 + void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
1514 + int status = $lt_dlunknown;
1515
1516 -# serial 3
1517 + if (self)
1518 + {
1519 + if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
1520 + else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
1521 + /* dlclose (self); */
1522 + }
1523 + else
1524 + puts (dlerror ());
1525
1526 -# AM_MISSING_PROG(NAME, PROGRAM)
1527 -# ------------------------------
1528 -AC_DEFUN([AM_MISSING_PROG],
1529 -[AC_REQUIRE([AM_MISSING_HAS_RUN])
1530 -$1=${$1-"${am_missing_run}$2"}
1531 -AC_SUBST($1)])
1532 + exit (status);
1533 +}]
1534 +EOF
1535 + if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext} 2>/dev/null; then
1536 + (./conftest; exit; ) >&AS_MESSAGE_LOG_FD 2>/dev/null
1537 + lt_status=$?
1538 + case x$lt_status in
1539 + x$lt_dlno_uscore) $1 ;;
1540 + x$lt_dlneed_uscore) $2 ;;
1541 + x$lt_dlunknown|x*) $3 ;;
1542 + esac
1543 + else :
1544 + # compilation failed
1545 + $3
1546 + fi
1547 +fi
1548 +rm -fr conftest*
1549 +])# _LT_AC_TRY_DLOPEN_SELF
1550
1551
1552 -# AM_MISSING_HAS_RUN
1553 -# ------------------
1554 -# Define MISSING if not defined so far and test if it supports --run.
1555 -# If it does, set am_missing_run to use it, otherwise, to nothing.
1556 -AC_DEFUN([AM_MISSING_HAS_RUN],
1557 -[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
1558 -test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1559 -# Use eval to expand $SHELL
1560 -if eval "$MISSING --run true"; then
1561 - am_missing_run="$MISSING --run "
1562 +# AC_LIBTOOL_DLOPEN_SELF
1563 +# ----------------------
1564 +AC_DEFUN([AC_LIBTOOL_DLOPEN_SELF],
1565 +[AC_REQUIRE([_LT_AC_CHECK_DLFCN])dnl
1566 +if test "x$enable_dlopen" != xyes; then
1567 + enable_dlopen=unknown
1568 + enable_dlopen_self=unknown
1569 + enable_dlopen_self_static=unknown
1570 else
1571 - am_missing_run=
1572 - AC_MSG_WARN([`missing' script is too old or missing])
1573 -fi
1574 -])
1575 + lt_cv_dlopen=no
1576 + lt_cv_dlopen_libs=
1577
1578 -# AM_AUX_DIR_EXPAND
1579 + case $host_os in
1580 + beos*)
1581 + lt_cv_dlopen="load_add_on"
1582 + lt_cv_dlopen_libs=
1583 + lt_cv_dlopen_self=yes
1584 + ;;
1585
1586 -# Copyright 2001 Free Software Foundation, Inc.
1587 + mingw* | pw32*)
1588 + lt_cv_dlopen="LoadLibrary"
1589 + lt_cv_dlopen_libs=
1590 + ;;
1591
1592 -# This program is free software; you can redistribute it and/or modify
1593 -# it under the terms of the GNU General Public License as published by
1594 -# the Free Software Foundation; either version 2, or (at your option)
1595 -# any later version.
1596 + cygwin*)
1597 + lt_cv_dlopen="dlopen"
1598 + lt_cv_dlopen_libs=
1599 + ;;
1600
1601 -# This program is distributed in the hope that it will be useful,
1602 -# but WITHOUT ANY WARRANTY; without even the implied warranty of
1603 -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
1604 -# GNU General Public License for more details.
1605 + darwin*)
1606 + # if libdl is installed we need to link against it
1607 + AC_CHECK_LIB([dl], [dlopen],
1608 + [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"],[
1609 + lt_cv_dlopen="dyld"
1610 + lt_cv_dlopen_libs=
1611 + lt_cv_dlopen_self=yes
1612 + ])
1613 + ;;
1614
1615 -# You should have received a copy of the GNU General Public License
1616 -# along with this program; if not, write to the Free Software
1617 -# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
1618 -# 02111-1307, USA.
1619 + *)
1620 + AC_CHECK_FUNC([shl_load],
1621 + [lt_cv_dlopen="shl_load"],
1622 + [AC_CHECK_LIB([dld], [shl_load],
1623 + [lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"],
1624 + [AC_CHECK_FUNC([dlopen],
1625 + [lt_cv_dlopen="dlopen"],
1626 + [AC_CHECK_LIB([dl], [dlopen],
1627 + [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"],
1628 + [AC_CHECK_LIB([svld], [dlopen],
1629 + [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"],
1630 + [AC_CHECK_LIB([dld], [dld_link],
1631 + [lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"])
1632 + ])
1633 + ])
1634 + ])
1635 + ])
1636 + ])
1637 + ;;
1638 + esac
1639
1640 -# For projects using AC_CONFIG_AUX_DIR([foo]), Autoconf sets
1641 -# $ac_aux_dir to `$srcdir/foo'. In other projects, it is set to
1642 -# `$srcdir', `$srcdir/..', or `$srcdir/../..'.
1643 -#
1644 -# Of course, Automake must honor this variable whenever it calls a
1645 -# tool from the auxiliary directory. The problem is that $srcdir (and
1646 -# therefore $ac_aux_dir as well) can be either absolute or relative,
1647 -# depending on how configure is run. This is pretty annoying, since
1648 -# it makes $ac_aux_dir quite unusable in subdirectories: in the top
1649 -# source directory, any form will work fine, but in subdirectories a
1650 -# relative path needs to be adjusted first.
1651 -#
1652 -# $ac_aux_dir/missing
1653 -# fails when called from a subdirectory if $ac_aux_dir is relative
1654 -# $top_srcdir/$ac_aux_dir/missing
1655 -# fails if $ac_aux_dir is absolute,
1656 -# fails when called from a subdirectory in a VPATH build with
1657 -# a relative $ac_aux_dir
1658 -#
1659 -# The reason of the latter failure is that $top_srcdir and $ac_aux_dir
1660 -# are both prefixed by $srcdir. In an in-source build this is usually
1661 -# harmless because $srcdir is `.', but things will broke when you
1662 -# start a VPATH build or use an absolute $srcdir.
1663 -#
1664 -# So we could use something similar to $top_srcdir/$ac_aux_dir/missing,
1665 -# iff we strip the leading $srcdir from $ac_aux_dir. That would be:
1666 -# am_aux_dir='\$(top_srcdir)/'`expr "$ac_aux_dir" : "$srcdir//*\(.*\)"`
1667 -# and then we would define $MISSING as
1668 -# MISSING="\${SHELL} $am_aux_dir/missing"
1669 -# This will work as long as MISSING is not called from configure, because
1670 -# unfortunately $(top_srcdir) has no meaning in configure.
1671 -# However there are other variables, like CC, which are often used in
1672 -# configure, and could therefore not use this "fixed" $ac_aux_dir.
1673 -#
1674 -# Another solution, used here, is to always expand $ac_aux_dir to an
1675 -# absolute PATH. The drawback is that using absolute paths prevent a
1676 -# configured tree to be moved without reconfiguration.
1677 -
1678 -# Rely on autoconf to set up CDPATH properly.
1679 -AC_PREREQ([2.50])
1680 -
1681 -AC_DEFUN([AM_AUX_DIR_EXPAND], [
1682 -# expand $ac_aux_dir to an absolute path
1683 -am_aux_dir=`cd $ac_aux_dir && pwd`
1684 -])
1685 -
1686 -# AM_PROG_INSTALL_SH
1687 -# ------------------
1688 -# Define $install_sh.
1689 -
1690 -# Copyright 2001 Free Software Foundation, Inc.
1691 -
1692 -# This program is free software; you can redistribute it and/or modify
1693 -# it under the terms of the GNU General Public License as published by
1694 -# the Free Software Foundation; either version 2, or (at your option)
1695 -# any later version.
1696 -
1697 -# This program is distributed in the hope that it will be useful,
1698 -# but WITHOUT ANY WARRANTY; without even the implied warranty of
1699 -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
1700 -# GNU General Public License for more details.
1701 + if test "x$lt_cv_dlopen" != xno; then
1702 + enable_dlopen=yes
1703 + else
1704 + enable_dlopen=no
1705 + fi
1706
1707 -# You should have received a copy of the GNU General Public License
1708 -# along with this program; if not, write to the Free Software
1709 -# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
1710 -# 02111-1307, USA.
1711 + case $lt_cv_dlopen in
1712 + dlopen)
1713 + save_CPPFLAGS="$CPPFLAGS"
1714 + test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
1715
1716 -AC_DEFUN([AM_PROG_INSTALL_SH],
1717 -[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
1718 -install_sh=${install_sh-"$am_aux_dir/install-sh"}
1719 -AC_SUBST(install_sh)])
1720 + save_LDFLAGS="$LDFLAGS"
1721 + wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
1722
1723 -# AM_PROG_INSTALL_STRIP
1724 + save_LIBS="$LIBS"
1725 + LIBS="$lt_cv_dlopen_libs $LIBS"
1726
1727 -# Copyright 2001 Free Software Foundation, Inc.
1728 + AC_CACHE_CHECK([whether a program can dlopen itself],
1729 + lt_cv_dlopen_self, [dnl
1730 + _LT_AC_TRY_DLOPEN_SELF(
1731 + lt_cv_dlopen_self=yes, lt_cv_dlopen_self=yes,
1732 + lt_cv_dlopen_self=no, lt_cv_dlopen_self=cross)
1733 + ])
1734
1735 -# This program is free software; you can redistribute it and/or modify
1736 -# it under the terms of the GNU General Public License as published by
1737 -# the Free Software Foundation; either version 2, or (at your option)
1738 -# any later version.
1739 + if test "x$lt_cv_dlopen_self" = xyes; then
1740 + wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
1741 + AC_CACHE_CHECK([whether a statically linked program can dlopen itself],
1742 + lt_cv_dlopen_self_static, [dnl
1743 + _LT_AC_TRY_DLOPEN_SELF(
1744 + lt_cv_dlopen_self_static=yes, lt_cv_dlopen_self_static=yes,
1745 + lt_cv_dlopen_self_static=no, lt_cv_dlopen_self_static=cross)
1746 + ])
1747 + fi
1748
1749 -# This program is distributed in the hope that it will be useful,
1750 -# but WITHOUT ANY WARRANTY; without even the implied warranty of
1751 -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
1752 -# GNU General Public License for more details.
1753 + CPPFLAGS="$save_CPPFLAGS"
1754 + LDFLAGS="$save_LDFLAGS"
1755 + LIBS="$save_LIBS"
1756 + ;;
1757 + esac
1758
1759 -# You should have received a copy of the GNU General Public License
1760 -# along with this program; if not, write to the Free Software
1761 -# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
1762 -# 02111-1307, USA.
1763 + case $lt_cv_dlopen_self in
1764 + yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
1765 + *) enable_dlopen_self=unknown ;;
1766 + esac
1767
1768 -# One issue with vendor `install' (even GNU) is that you can't
1769 -# specify the program used to strip binaries. This is especially
1770 -# annoying in cross-compiling environments, where the build's strip
1771 -# is unlikely to handle the host's binaries.
1772 -# Fortunately install-sh will honor a STRIPPROG variable, so we
1773 -# always use install-sh in `make install-strip', and initialize
1774 -# STRIPPROG with the value of the STRIP variable (set by the user).
1775 -AC_DEFUN([AM_PROG_INSTALL_STRIP],
1776 -[AC_REQUIRE([AM_PROG_INSTALL_SH])dnl
1777 -# Installed binaries are usually stripped using `strip' when the user
1778 -# run `make install-strip'. However `strip' might not be the right
1779 -# tool to use in cross-compilation environments, therefore Automake
1780 -# will honor the `STRIP' environment variable to overrule this program.
1781 -dnl Don't test for $cross_compiling = yes, because it might be `maybe'.
1782 -if test "$cross_compiling" != no; then
1783 - AC_CHECK_TOOL([STRIP], [strip], :)
1784 + case $lt_cv_dlopen_self_static in
1785 + yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
1786 + *) enable_dlopen_self_static=unknown ;;
1787 + esac
1788 fi
1789 -INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
1790 -AC_SUBST([INSTALL_STRIP_PROGRAM])])
1791 -
1792 -# serial 4 -*- Autoconf -*-
1793 -
1794 -# Copyright 1999, 2000, 2001 Free Software Foundation, Inc.
1795 -
1796 -# This program is free software; you can redistribute it and/or modify
1797 -# it under the terms of the GNU General Public License as published by
1798 -# the Free Software Foundation; either version 2, or (at your option)
1799 -# any later version.
1800 -
1801 -# This program is distributed in the hope that it will be useful,
1802 -# but WITHOUT ANY WARRANTY; without even the implied warranty of
1803 -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
1804 -# GNU General Public License for more details.
1805 -
1806 -# You should have received a copy of the GNU General Public License
1807 -# along with this program; if not, write to the Free Software
1808 -# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
1809 -# 02111-1307, USA.
1810 -
1811 -
1812 -# There are a few dirty hacks below to avoid letting `AC_PROG_CC' be
1813 -# written in clear, in which case automake, when reading aclocal.m4,
1814 -# will think it sees a *use*, and therefore will trigger all it's
1815 -# C support machinery. Also note that it means that autoscan, seeing
1816 -# CC etc. in the Makefile, will ask for an AC_PROG_CC use...
1817 -
1818 +])# AC_LIBTOOL_DLOPEN_SELF
1819
1820
1821 -# _AM_DEPENDENCIES(NAME)
1822 -# ----------------------
1823 -# See how the compiler implements dependency checking.
1824 -# NAME is "CC", "CXX", "GCJ", or "OBJC".
1825 -# We try a few techniques and use that to set a single cache variable.
1826 -#
1827 -# We don't AC_REQUIRE the corresponding AC_PROG_CC since the latter was
1828 -# modified to invoke _AM_DEPENDENCIES(CC); we would have a circular
1829 -# dependency, and given that the user is not expected to run this macro,
1830 -# just rely on AC_PROG_CC.
1831 -AC_DEFUN([_AM_DEPENDENCIES],
1832 -[AC_REQUIRE([AM_SET_DEPDIR])dnl
1833 -AC_REQUIRE([AM_OUTPUT_DEPENDENCY_COMMANDS])dnl
1834 -AC_REQUIRE([AM_MAKE_INCLUDE])dnl
1835 -AC_REQUIRE([AM_DEP_TRACK])dnl
1836 +# AC_LIBTOOL_PROG_CC_C_O([TAGNAME])
1837 +# ---------------------------------
1838 +# Check to see if options -c and -o are simultaneously supported by compiler
1839 +AC_DEFUN([AC_LIBTOOL_PROG_CC_C_O],
1840 +[AC_REQUIRE([_LT_AC_SYS_COMPILER])dnl
1841 +AC_CACHE_CHECK([if $compiler supports -c -o file.$ac_objext],
1842 + [_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)],
1843 + [_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)=no
1844 + $rm -r conftest 2>/dev/null
1845 + mkdir conftest
1846 + cd conftest
1847 + mkdir out
1848 + printf "$lt_simple_compile_test_code" > conftest.$ac_ext
1849 +
1850 + lt_compiler_flag="-o out/conftest2.$ac_objext"
1851 + # Insert the option either (1) after the last *FLAGS variable, or
1852 + # (2) before a word containing "conftest.", or (3) at the end.
1853 + # Note that $ac_compile itself does not contain backslashes and begins
1854 + # with a dollar sign (not a hyphen), so the echo should work correctly.
1855 + lt_compile=`echo "$ac_compile" | $SED \
1856 + -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
1857 + -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \
1858 + -e 's:$: $lt_compiler_flag:'`
1859 + (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&AS_MESSAGE_LOG_FD)
1860 + (eval "$lt_compile" 2>out/conftest.err)
1861 + ac_status=$?
1862 + cat out/conftest.err >&AS_MESSAGE_LOG_FD
1863 + echo "$as_me:__oline__: \$? = $ac_status" >&AS_MESSAGE_LOG_FD
1864 + if (exit $ac_status) && test -s out/conftest2.$ac_objext
1865 + then
1866 + # The compiler can only warn and ignore the option if not recognized
1867 + # So say no if there are warnings
1868 + $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
1869 + $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
1870 + if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
1871 + _LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes
1872 + fi
1873 + fi
1874 + chmod u+w . 2>&AS_MESSAGE_LOG_FD
1875 + $rm conftest*
1876 + # SGI C++ compiler will create directory out/ii_files/ for
1877 + # template instantiation
1878 + test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
1879 + $rm out/* && rmdir out
1880 + cd ..
1881 + rmdir conftest
1882 + $rm conftest*
1883 +])
1884 +])# AC_LIBTOOL_PROG_CC_C_O
1885
1886 -ifelse([$1], CC, [depcc="$CC" am_compiler_list=],
1887 - [$1], CXX, [depcc="$CXX" am_compiler_list=],
1888 - [$1], OBJC, [depcc="$OBJC" am_compiler_list='gcc3 gcc'],
1889 - [$1], GCJ, [depcc="$GCJ" am_compiler_list='gcc3 gcc'],
1890 - [depcc="$$1" am_compiler_list=])
1891
1892 -AC_CACHE_CHECK([dependency style of $depcc],
1893 - [am_cv_$1_dependencies_compiler_type],
1894 -[if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
1895 - # We make a subdir and do the tests there. Otherwise we can end up
1896 - # making bogus files that we don't know about and never remove. For
1897 - # instance it was reported that on HP-UX the gcc test will end up
1898 - # making a dummy file named `D' -- because `-MD' means `put the output
1899 - # in D'.
1900 - mkdir conftest.dir
1901 - # Copy depcomp to subdir because otherwise we won't find it if we're
1902 - # using a relative directory.
1903 - cp "$am_depcomp" conftest.dir
1904 - cd conftest.dir
1905 +# AC_LIBTOOL_SYS_HARD_LINK_LOCKS([TAGNAME])
1906 +# -----------------------------------------
1907 +# Check to see if we can do hard links to lock some files if needed
1908 +AC_DEFUN([AC_LIBTOOL_SYS_HARD_LINK_LOCKS],
1909 +[AC_REQUIRE([_LT_AC_LOCK])dnl
1910
1911 - am_cv_$1_dependencies_compiler_type=none
1912 - if test "$am_compiler_list" = ""; then
1913 - am_compiler_list=`sed -n ['s/^#*\([a-zA-Z0-9]*\))$/\1/p'] < ./depcomp`
1914 +hard_links="nottested"
1915 +if test "$_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)" = no && test "$need_locks" != no; then
1916 + # do not overwrite the value of need_locks provided by the user
1917 + AC_MSG_CHECKING([if we can lock with hard links])
1918 + hard_links=yes
1919 + $rm conftest*
1920 + ln conftest.a conftest.b 2>/dev/null && hard_links=no
1921 + touch conftest.a
1922 + ln conftest.a conftest.b 2>&5 || hard_links=no
1923 + ln conftest.a conftest.b 2>/dev/null && hard_links=no
1924 + AC_MSG_RESULT([$hard_links])
1925 + if test "$hard_links" = no; then
1926 + AC_MSG_WARN([`$CC' does not support `-c -o', so `make -j' may be unsafe])
1927 + need_locks=warn
1928 fi
1929 - for depmode in $am_compiler_list; do
1930 - # We need to recreate these files for each test, as the compiler may
1931 - # overwrite some of them when testing with obscure command lines.
1932 - # This happens at least with the AIX C compiler.
1933 - echo '#include "conftest.h"' > conftest.c
1934 - echo 'int i;' > conftest.h
1935 - echo "${am__include} ${am__quote}conftest.Po${am__quote}" > confmf
1936 -
1937 - case $depmode in
1938 - nosideeffect)
1939 - # after this tag, mechanisms are not by side-effect, so they'll
1940 - # only be used when explicitly requested
1941 - if test "x$enable_dependency_tracking" = xyes; then
1942 - continue
1943 - else
1944 - break
1945 - fi
1946 - ;;
1947 - none) break ;;
1948 - esac
1949 - # We check with `-c' and `-o' for the sake of the "dashmstdout"
1950 - # mode. It turns out that the SunPro C++ compiler does not properly
1951 - # handle `-M -o', and we need to detect this.
1952 - if depmode=$depmode \
1953 - source=conftest.c object=conftest.o \
1954 - depfile=conftest.Po tmpdepfile=conftest.TPo \
1955 - $SHELL ./depcomp $depcc -c -o conftest.o conftest.c >/dev/null 2>&1 &&
1956 - grep conftest.h conftest.Po > /dev/null 2>&1 &&
1957 - ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
1958 - am_cv_$1_dependencies_compiler_type=$depmode
1959 - break
1960 - fi
1961 - done
1962 -
1963 - cd ..
1964 - rm -rf conftest.dir
1965 else
1966 - am_cv_$1_dependencies_compiler_type=none
1967 + need_locks=no
1968 fi
1969 -])
1970 -AC_SUBST([$1DEPMODE], [depmode=$am_cv_$1_dependencies_compiler_type])
1971 -AM_CONDITIONAL([am__fastdep$1], [
1972 - test "x$enable_dependency_tracking" != xno \
1973 - && test "$am_cv_$1_dependencies_compiler_type" = gcc3])
1974 -])
1975 +])# AC_LIBTOOL_SYS_HARD_LINK_LOCKS
1976
1977
1978 -# AM_SET_DEPDIR
1979 -# -------------
1980 -# Choose a directory name for dependency files.
1981 -# This macro is AC_REQUIREd in _AM_DEPENDENCIES
1982 -AC_DEFUN([AM_SET_DEPDIR],
1983 -[rm -f .deps 2>/dev/null
1984 -mkdir .deps 2>/dev/null
1985 -if test -d .deps; then
1986 - DEPDIR=.deps
1987 +# AC_LIBTOOL_OBJDIR
1988 +# -----------------
1989 +AC_DEFUN([AC_LIBTOOL_OBJDIR],
1990 +[AC_CACHE_CHECK([for objdir], [lt_cv_objdir],
1991 +[rm -f .libs 2>/dev/null
1992 +mkdir .libs 2>/dev/null
1993 +if test -d .libs; then
1994 + lt_cv_objdir=.libs
1995 else
1996 # MS-DOS does not allow filenames that begin with a dot.
1997 - DEPDIR=_deps
1998 -fi
1999 -rmdir .deps 2>/dev/null
2000 -AC_SUBST([DEPDIR])
2001 -])
2002 -
2003 -
2004 -# AM_DEP_TRACK
2005 -# ------------
2006 -AC_DEFUN([AM_DEP_TRACK],
2007 -[AC_ARG_ENABLE(dependency-tracking,
2008 -[ --disable-dependency-tracking Speeds up one-time builds
2009 - --enable-dependency-tracking Do not reject slow dependency extractors])
2010 -if test "x$enable_dependency_tracking" != xno; then
2011 - am_depcomp="$ac_aux_dir/depcomp"
2012 - AMDEPBACKSLASH='\'
2013 + lt_cv_objdir=_libs
2014 fi
2015 -AM_CONDITIONAL([AMDEP], [test "x$enable_dependency_tracking" != xno])
2016 -AC_SUBST([AMDEPBACKSLASH])
2017 -])
2018 +rmdir .libs 2>/dev/null])
2019 +objdir=$lt_cv_objdir
2020 +])# AC_LIBTOOL_OBJDIR
2021
2022 -# Generate code to set up dependency tracking. -*- Autoconf -*-
2023
2024 -# Copyright 1999, 2000, 2001, 2002 Free Software Foundation, Inc.
2025 -
2026 -# This program is free software; you can redistribute it and/or modify
2027 -# it under the terms of the GNU General Public License as published by
2028 -# the Free Software Foundation; either version 2, or (at your option)
2029 -# any later version.
2030 +# AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH([TAGNAME])
2031 +# ----------------------------------------------
2032 +# Check hardcoding attributes.
2033 +AC_DEFUN([AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH],
2034 +[AC_MSG_CHECKING([how to hardcode library paths into programs])
2035 +_LT_AC_TAGVAR(hardcode_action, $1)=
2036 +if test -n "$_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)" || \
2037 + test -n "$_LT_AC_TAGVAR(runpath_var, $1)" || \
2038 + test "X$_LT_AC_TAGVAR(hardcode_automatic, $1)" = "Xyes" ; then
2039
2040 -# This program is distributed in the hope that it will be useful,
2041 -# but WITHOUT ANY WARRANTY; without even the implied warranty of
2042 -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
2043 -# GNU General Public License for more details.
2044 + # We can hardcode non-existant directories.
2045 + if test "$_LT_AC_TAGVAR(hardcode_direct, $1)" != no &&
2046 + # If the only mechanism to avoid hardcoding is shlibpath_var, we
2047 + # have to relink, otherwise we might link with an installed library
2048 + # when we should be linking with a yet-to-be-installed one
2049 + ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)" != no &&
2050 + test "$_LT_AC_TAGVAR(hardcode_minus_L, $1)" != no; then
2051 + # Linking always hardcodes the temporary library directory.
2052 + _LT_AC_TAGVAR(hardcode_action, $1)=relink
2053 + else
2054 + # We can link without hardcoding, and we can hardcode nonexisting dirs.
2055 + _LT_AC_TAGVAR(hardcode_action, $1)=immediate
2056 + fi
2057 +else
2058 + # We cannot hardcode anything, or else we can only hardcode existing
2059 + # directories.
2060 + _LT_AC_TAGVAR(hardcode_action, $1)=unsupported
2061 +fi
2062 +AC_MSG_RESULT([$_LT_AC_TAGVAR(hardcode_action, $1)])
2063
2064 -# You should have received a copy of the GNU General Public License
2065 -# along with this program; if not, write to the Free Software
2066 -# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
2067 -# 02111-1307, USA.
2068 +if test "$_LT_AC_TAGVAR(hardcode_action, $1)" = relink; then
2069 + # Fast installation is not supported
2070 + enable_fast_install=no
2071 +elif test "$shlibpath_overrides_runpath" = yes ||
2072 + test "$enable_shared" = no; then
2073 + # Fast installation is not necessary
2074 + enable_fast_install=needless
2075 +fi
2076 +])# AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH
2077
2078 -#serial 2
2079
2080 -# _AM_OUTPUT_DEPENDENCY_COMMANDS
2081 -# ------------------------------
2082 -AC_DEFUN([_AM_OUTPUT_DEPENDENCY_COMMANDS],
2083 -[for mf in $CONFIG_FILES; do
2084 - # Strip MF so we end up with the name of the file.
2085 - mf=`echo "$mf" | sed -e 's/:.*$//'`
2086 - # Check whether this is an Automake generated Makefile or not.
2087 - # We used to match only the files named `Makefile.in', but
2088 - # some people rename them; so instead we look at the file content.
2089 - # Grep'ing the first line is not enough: some people post-process
2090 - # each Makefile.in and add a new line on top of each file to say so.
2091 - # So let's grep whole file.
2092 - if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
2093 - dirpart=`AS_DIRNAME("$mf")`
2094 - else
2095 - continue
2096 - fi
2097 - grep '^DEP_FILES *= *[[^ @%:@]]' < "$mf" > /dev/null || continue
2098 - # Extract the definition of DEP_FILES from the Makefile without
2099 - # running `make'.
2100 - DEPDIR=`sed -n -e '/^DEPDIR = / s///p' < "$mf"`
2101 - test -z "$DEPDIR" && continue
2102 - # When using ansi2knr, U may be empty or an underscore; expand it
2103 - U=`sed -n -e '/^U = / s///p' < "$mf"`
2104 - test -d "$dirpart/$DEPDIR" || mkdir "$dirpart/$DEPDIR"
2105 - # We invoke sed twice because it is the simplest approach to
2106 - # changing $(DEPDIR) to its actual value in the expansion.
2107 - for file in `sed -n -e '
2108 - /^DEP_FILES = .*\\\\$/ {
2109 - s/^DEP_FILES = //
2110 - :loop
2111 - s/\\\\$//
2112 - p
2113 - n
2114 - /\\\\$/ b loop
2115 - p
2116 - }
2117 - /^DEP_FILES = / s/^DEP_FILES = //p' < "$mf" | \
2118 - sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
2119 - # Make sure the directory exists.
2120 - test -f "$dirpart/$file" && continue
2121 - fdir=`AS_DIRNAME(["$file"])`
2122 - AS_MKDIR_P([$dirpart/$fdir])
2123 - # echo "creating $dirpart/$file"
2124 - echo '# dummy' > "$dirpart/$file"
2125 - done
2126 -done
2127 -])# _AM_OUTPUT_DEPENDENCY_COMMANDS
2128 -
2129 -
2130 -# AM_OUTPUT_DEPENDENCY_COMMANDS
2131 -# -----------------------------
2132 -# This macro should only be invoked once -- use via AC_REQUIRE.
2133 -#
2134 -# This code is only required when automatic dependency tracking
2135 -# is enabled. FIXME. This creates each `.P' file that we will
2136 -# need in order to bootstrap the dependency handling code.
2137 -AC_DEFUN([AM_OUTPUT_DEPENDENCY_COMMANDS],
2138 -[AC_CONFIG_COMMANDS([depfiles],
2139 - [test x"$AMDEP_TRUE" != x"" || _AM_OUTPUT_DEPENDENCY_COMMANDS],
2140 - [AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"])
2141 -])
2142 -
2143 -# Check to see how 'make' treats includes. -*- Autoconf -*-
2144 -
2145 -# Copyright (C) 2001, 2002 Free Software Foundation, Inc.
2146 -
2147 -# This program is free software; you can redistribute it and/or modify
2148 -# it under the terms of the GNU General Public License as published by
2149 -# the Free Software Foundation; either version 2, or (at your option)
2150 -# any later version.
2151 -
2152 -# This program is distributed in the hope that it will be useful,
2153 -# but WITHOUT ANY WARRANTY; without even the implied warranty of
2154 -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
2155 -# GNU General Public License for more details.
2156 -
2157 -# You should have received a copy of the GNU General Public License
2158 -# along with this program; if not, write to the Free Software
2159 -# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
2160 -# 02111-1307, USA.
2161 -
2162 -# serial 2
2163 -
2164 -# AM_MAKE_INCLUDE()
2165 -# -----------------
2166 -# Check to see how make treats includes.
2167 -AC_DEFUN([AM_MAKE_INCLUDE],
2168 -[am_make=${MAKE-make}
2169 -cat > confinc << 'END'
2170 -doit:
2171 - @echo done
2172 -END
2173 -# If we don't find an include directive, just comment out the code.
2174 -AC_MSG_CHECKING([for style of include used by $am_make])
2175 -am__include="#"
2176 -am__quote=
2177 -_am_result=none
2178 -# First try GNU make style include.
2179 -echo "include confinc" > confmf
2180 -# We grep out `Entering directory' and `Leaving directory'
2181 -# messages which can occur if `w' ends up in MAKEFLAGS.
2182 -# In particular we don't look at `^make:' because GNU make might
2183 -# be invoked under some other name (usually "gmake"), in which
2184 -# case it prints its new name instead of `make'.
2185 -if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2186 - am__include=include
2187 - am__quote=
2188 - _am_result=GNU
2189 +# AC_LIBTOOL_SYS_LIB_STRIP
2190 +# ------------------------
2191 +AC_DEFUN([AC_LIBTOOL_SYS_LIB_STRIP],
2192 +[striplib=
2193 +old_striplib=
2194 +AC_MSG_CHECKING([whether stripping libraries is possible])
2195 +if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
2196 + test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
2197 + test -z "$striplib" && striplib="$STRIP --strip-unneeded"
2198 + AC_MSG_RESULT([yes])
2199 +else
2200 +# FIXME - insert some real tests, host_os isn't really good enough
2201 + case $host_os in
2202 + darwin*)
2203 + if test -n "$STRIP" ; then
2204 + striplib="$STRIP -x"
2205 + AC_MSG_RESULT([yes])
2206 + else
2207 + AC_MSG_RESULT([no])
2208 fi
2209 -# Now try BSD make style include.
2210 -if test "$am__include" = "#"; then
2211 - echo '.include "confinc"' > confmf
2212 - if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2213 - am__include=.include
2214 - am__quote="\""
2215 - _am_result=BSD
2216 - fi
2217 + ;;
2218 + *)
2219 + AC_MSG_RESULT([no])
2220 + ;;
2221 + esac
2222 fi
2223 -AC_SUBST(am__include)
2224 -AC_SUBST(am__quote)
2225 -AC_MSG_RESULT($_am_result)
2226 -rm -f confinc confmf
2227 -])
2228 -
2229 -# AM_CONDITIONAL -*- Autoconf -*-
2230 -
2231 -# Copyright 1997, 2000, 2001 Free Software Foundation, Inc.
2232 -
2233 -# This program is free software; you can redistribute it and/or modify
2234 -# it under the terms of the GNU General Public License as published by
2235 -# the Free Software Foundation; either version 2, or (at your option)
2236 -# any later version.
2237 -
2238 -# This program is distributed in the hope that it will be useful,
2239 -# but WITHOUT ANY WARRANTY; without even the implied warranty of
2240 -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
2241 -# GNU General Public License for more details.
2242 -
2243 -# You should have received a copy of the GNU General Public License
2244 -# along with this program; if not, write to the Free Software
2245 -# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
2246 -# 02111-1307, USA.
2247 -
2248 -# serial 5
2249 +])# AC_LIBTOOL_SYS_LIB_STRIP
2250
2251 -AC_PREREQ(2.52)
2252
2253 -# AM_CONDITIONAL(NAME, SHELL-CONDITION)
2254 -# -------------------------------------
2255 -# Define a conditional.
2256 -AC_DEFUN([AM_CONDITIONAL],
2257 -[ifelse([$1], [TRUE], [AC_FATAL([$0: invalid condition: $1])],
2258 - [$1], [FALSE], [AC_FATAL([$0: invalid condition: $1])])dnl
2259 -AC_SUBST([$1_TRUE])
2260 -AC_SUBST([$1_FALSE])
2261 -if $2; then
2262 - $1_TRUE=
2263 - $1_FALSE='#'
2264 +# AC_LIBTOOL_SYS_DYNAMIC_LINKER
2265 +# -----------------------------
2266 +# PORTME Fill in your ld.so characteristics
2267 +AC_DEFUN([AC_LIBTOOL_SYS_DYNAMIC_LINKER],
2268 +[AC_MSG_CHECKING([dynamic linker characteristics])
2269 +library_names_spec=
2270 +libname_spec='lib$name'
2271 +soname_spec=
2272 +shrext_cmds=".so"
2273 +postinstall_cmds=
2274 +postuninstall_cmds=
2275 +finish_cmds=
2276 +finish_eval=
2277 +shlibpath_var=
2278 +shlibpath_overrides_runpath=unknown
2279 +version_type=none
2280 +dynamic_linker="$host_os ld.so"
2281 +sys_lib_dlsearch_path_spec="/lib /usr/lib"
2282 +if test "$GCC" = yes; then
2283 + sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
2284 + if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
2285 + # if the path contains ";" then we assume it to be the separator
2286 + # otherwise default to the standard path separator (i.e. ":") - it is
2287 + # assumed that no part of a normal pathname contains ";" but that should
2288 + # okay in the real world where ";" in dirpaths is itself problematic.
2289 + sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
2290 + else
2291 + sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
2292 + fi
2293 else
2294 - $1_TRUE='#'
2295 - $1_FALSE=
2296 + sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
2297 fi
2298 -AC_CONFIG_COMMANDS_PRE(
2299 -[if test -z "${$1_TRUE}" && test -z "${$1_FALSE}"; then
2300 - AC_MSG_ERROR([conditional "$1" was never defined.
2301 -Usually this means the macro was only invoked conditionally.])
2302 -fi])])
2303 +need_lib_prefix=unknown
2304 +hardcode_into_libs=no
2305
2306 -# Like AC_CONFIG_HEADER, but automatically create stamp file. -*- Autoconf -*-
2307 +# when you set need_version to no, make sure it does not cause -set_version
2308 +# flags to be left without arguments
2309 +need_version=unknown
2310
2311 -# Copyright 1996, 1997, 2000, 2001 Free Software Foundation, Inc.
2312 +case $host_os in
2313 +aix3*)
2314 + version_type=linux
2315 + library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
2316 + shlibpath_var=LIBPATH
2317
2318 -# This program is free software; you can redistribute it and/or modify
2319 -# it under the terms of the GNU General Public License as published by
2320 -# the Free Software Foundation; either version 2, or (at your option)
2321 -# any later version.
2322 + # AIX 3 has no versioning support, so we append a major version to the name.
2323 + soname_spec='${libname}${release}${shared_ext}$major'
2324 + ;;
2325
2326 -# This program is distributed in the hope that it will be useful,
2327 -# but WITHOUT ANY WARRANTY; without even the implied warranty of
2328 -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
2329 -# GNU General Public License for more details.
2330 +aix4* | aix5*)
2331 + version_type=linux
2332 + need_lib_prefix=no
2333 + need_version=no
2334 + hardcode_into_libs=yes
2335 + if test "$host_cpu" = ia64; then
2336 + # AIX 5 supports IA64
2337 + library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
2338 + shlibpath_var=LD_LIBRARY_PATH
2339 + else
2340 + # With GCC up to 2.95.x, collect2 would create an import file
2341 + # for dependence libraries. The import file would start with
2342 + # the line `#! .'. This would cause the generated library to
2343 + # depend on `.', always an invalid library. This was fixed in
2344 + # development snapshots of GCC prior to 3.0.
2345 + case $host_os in
2346 + aix4 | aix4.[[01]] | aix4.[[01]].*)
2347 + if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
2348 + echo ' yes '
2349 + echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
2350 + :
2351 + else
2352 + can_build_shared=no
2353 + fi
2354 + ;;
2355 + esac
2356 + # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
2357 + # soname into executable. Probably we can add versioning support to
2358 + # collect2, so additional links can be useful in future.
2359 + if test "$aix_use_runtimelinking" = yes; then
2360 + # If using run time linking (on AIX 4.2 or later) use lib<name>.so
2361 + # instead of lib<name>.a to let people know that these are not
2362 + # typical AIX shared libraries.
2363 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
2364 + else
2365 + # We preserve .a as extension for shared libraries through AIX4.2
2366 + # and later when we are not doing run time linking.
2367 + library_names_spec='${libname}${release}.a $libname.a'
2368 + soname_spec='${libname}${release}${shared_ext}$major'
2369 + fi
2370 + shlibpath_var=LIBPATH
2371 + fi
2372 + ;;
2373
2374 -# You should have received a copy of the GNU General Public License
2375 -# along with this program; if not, write to the Free Software
2376 -# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
2377 -# 02111-1307, USA.
2378 +amigaos*)
2379 + library_names_spec='$libname.ixlibrary $libname.a'
2380 + # Create ${libname}_ixlibrary.a entries in /sys/libs.
2381 + 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'
2382 + ;;
2383
2384 -AC_PREREQ([2.52])
2385 +beos*)
2386 + library_names_spec='${libname}${shared_ext}'
2387 + dynamic_linker="$host_os ld.so"
2388 + shlibpath_var=LIBRARY_PATH
2389 + ;;
2390
2391 -# serial 6
2392 +bsdi[[45]]*)
2393 + version_type=linux
2394 + need_version=no
2395 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
2396 + soname_spec='${libname}${release}${shared_ext}$major'
2397 + finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
2398 + shlibpath_var=LD_LIBRARY_PATH
2399 + sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
2400 + sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
2401 + # the default ld.so.conf also contains /usr/contrib/lib and
2402 + # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
2403 + # libtool to hard-code these into programs
2404 + ;;
2405
2406 -# AM_CONFIG_HEADER is obsolete. It has been replaced by AC_CONFIG_HEADERS.
2407 -AU_DEFUN([AM_CONFIG_HEADER], [AC_CONFIG_HEADERS($@)])
2408 +cygwin* | mingw* | pw32*)
2409 + version_type=windows
2410 + shrext_cmds=".dll"
2411 + need_version=no
2412 + need_lib_prefix=no
2413
2414 -# libtool.m4 - Configure libtool for the host system. -*-Shell-script-*-
2415 + case $GCC,$host_os in
2416 + yes,cygwin* | yes,mingw* | yes,pw32*)
2417 + library_names_spec='$libname.dll.a'
2418 + # DLL is installed to $(libdir)/../bin by postinstall_cmds
2419 + postinstall_cmds='base_file=`basename \${file}`~
2420 + dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
2421 + dldir=$destdir/`dirname \$dlpath`~
2422 + test -d \$dldir || mkdir -p \$dldir~
2423 + $install_prog $dir/$dlname \$dldir/$dlname~
2424 + chmod a+x \$dldir/$dlname'
2425 + postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
2426 + dlpath=$dir/\$dldll~
2427 + $rm \$dlpath'
2428 + shlibpath_overrides_runpath=yes
2429
2430 -# serial 46 AC_PROG_LIBTOOL
2431 + case $host_os in
2432 + cygwin*)
2433 + # Cygwin DLLs use 'cyg' prefix rather than 'lib'
2434 + soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
2435 + sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
2436 + ;;
2437 + mingw*)
2438 + # MinGW DLLs use traditional 'lib' prefix
2439 + soname_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
2440 + sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
2441 + if echo "$sys_lib_search_path_spec" | [grep ';[c-zC-Z]:/' >/dev/null]; then
2442 + # It is most probably a Windows format PATH printed by
2443 + # mingw gcc, but we are running on Cygwin. Gcc prints its search
2444 + # path with ; separators, and with drive letters. We can handle the
2445 + # drive letters (cygwin fileutils understands them), so leave them,
2446 + # especially as we might pass files found there to a mingw objdump,
2447 + # which wouldn't understand a cygwinified path. Ahh.
2448 + sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
2449 + else
2450 + sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
2451 + fi
2452 + ;;
2453 + pw32*)
2454 + # pw32 DLLs use 'pw' prefix rather than 'lib'
2455 + library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
2456 + ;;
2457 + esac
2458 + ;;
2459
2460 -AC_DEFUN([AC_PROG_LIBTOOL],
2461 -[AC_REQUIRE([AC_LIBTOOL_SETUP])dnl
2462 + *)
2463 + library_names_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext} $libname.lib'
2464 + ;;
2465 + esac
2466 + dynamic_linker='Win32 ld.exe'
2467 + # FIXME: first we should search . and the directory the executable is in
2468 + shlibpath_var=PATH
2469 + ;;
2470
2471 -# This can be used to rebuild libtool when needed
2472 -LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
2473 +darwin* | rhapsody*)
2474 + dynamic_linker="$host_os dyld"
2475 + version_type=darwin
2476 + need_lib_prefix=no
2477 + need_version=no
2478 + library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
2479 + soname_spec='${libname}${release}${major}$shared_ext'
2480 + shlibpath_overrides_runpath=yes
2481 + shlibpath_var=DYLD_LIBRARY_PATH
2482 + shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
2483 + # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
2484 + if test "$GCC" = yes; then
2485 + 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"`
2486 + else
2487 + sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
2488 + fi
2489 + sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
2490 + ;;
2491
2492 -# Always use our own libtool.
2493 -LIBTOOL='$(SHELL) $(top_builddir)/libtool'
2494 -AC_SUBST(LIBTOOL)dnl
2495 -
2496 -# Prevent multiple expansion
2497 -define([AC_PROG_LIBTOOL], [])
2498 -])
2499 -
2500 -AC_DEFUN([AC_LIBTOOL_SETUP],
2501 -[AC_PREREQ(2.13)dnl
2502 -AC_REQUIRE([AC_ENABLE_SHARED])dnl
2503 -AC_REQUIRE([AC_ENABLE_STATIC])dnl
2504 -AC_REQUIRE([AC_ENABLE_FAST_INSTALL])dnl
2505 -AC_REQUIRE([AC_CANONICAL_HOST])dnl
2506 -AC_REQUIRE([AC_CANONICAL_BUILD])dnl
2507 -AC_REQUIRE([AC_PROG_CC])dnl
2508 -AC_REQUIRE([AC_PROG_LD])dnl
2509 -AC_REQUIRE([AC_PROG_LD_RELOAD_FLAG])dnl
2510 -AC_REQUIRE([AC_PROG_NM])dnl
2511 -AC_REQUIRE([LT_AC_PROG_SED])dnl
2512 -
2513 -AC_REQUIRE([AC_PROG_LN_S])dnl
2514 -AC_REQUIRE([AC_DEPLIBS_CHECK_METHOD])dnl
2515 -AC_REQUIRE([AC_OBJEXT])dnl
2516 -AC_REQUIRE([AC_EXEEXT])dnl
2517 -dnl
2518 -
2519 -_LT_AC_PROG_ECHO_BACKSLASH
2520 -# Only perform the check for file, if the check method requires it
2521 -case $deplibs_check_method in
2522 -file_magic*)
2523 - if test "$file_magic_cmd" = '$MAGIC_CMD'; then
2524 - AC_PATH_MAGIC
2525 - fi
2526 +dgux*)
2527 + version_type=linux
2528 + need_lib_prefix=no
2529 + need_version=no
2530 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
2531 + soname_spec='${libname}${release}${shared_ext}$major'
2532 + shlibpath_var=LD_LIBRARY_PATH
2533 ;;
2534 -esac
2535 -
2536 -AC_CHECK_TOOL(RANLIB, ranlib, :)
2537 -AC_CHECK_TOOL(STRIP, strip, :)
2538 -
2539 -ifdef([AC_PROVIDE_AC_LIBTOOL_DLOPEN], enable_dlopen=yes, enable_dlopen=no)
2540 -ifdef([AC_PROVIDE_AC_LIBTOOL_WIN32_DLL],
2541 -enable_win32_dll=yes, enable_win32_dll=no)
2542 -
2543 -AC_ARG_ENABLE(libtool-lock,
2544 - [ --disable-libtool-lock avoid locking (might break parallel builds)])
2545 -test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
2546
2547 -# Some flags need to be propagated to the compiler or linker for good
2548 -# libtool support.
2549 -case $host in
2550 -*-*-irix6*)
2551 - # Find out which ABI we are using.
2552 - echo '[#]line __oline__ "configure"' > conftest.$ac_ext
2553 - if AC_TRY_EVAL(ac_compile); then
2554 - case `/usr/bin/file conftest.$ac_objext` in
2555 - *32-bit*)
2556 - LD="${LD-ld} -32"
2557 - ;;
2558 - *N32*)
2559 - LD="${LD-ld} -n32"
2560 - ;;
2561 - *64-bit*)
2562 - LD="${LD-ld} -64"
2563 - ;;
2564 - esac
2565 - fi
2566 - rm -rf conftest*
2567 +freebsd1*)
2568 + dynamic_linker=no
2569 ;;
2570
2571 -*-*-linux*)
2572 - # Test if the compiler is 64bit
2573 - echo 'int i;' > conftest.$ac_ext
2574 - lt_cv_cc_64bit_output=no
2575 - if AC_TRY_EVAL(ac_compile); then
2576 - case `/usr/bin/file conftest.$ac_objext` in
2577 - *"ELF 64"*)
2578 - lt_cv_cc_64bit_output=yes
2579 - ;;
2580 +freebsd* | dragonfly*)
2581 + # DragonFly does not have aout. When/if they implement a new
2582 + # versioning mechanism, adjust this.
2583 + if test -x /usr/bin/objformat; then
2584 + objformat=`/usr/bin/objformat`
2585 + else
2586 + case $host_os in
2587 + freebsd[[123]]*) objformat=aout ;;
2588 + *) objformat=elf ;;
2589 esac
2590 fi
2591 - rm -rf conftest*
2592 - ;;
2593 -
2594 -*-*-sco3.2v5*)
2595 - # On SCO OpenServer 5, we need -belf to get full-featured binaries.
2596 - SAVE_CFLAGS="$CFLAGS"
2597 - CFLAGS="$CFLAGS -belf"
2598 - AC_CACHE_CHECK([whether the C compiler needs -belf], lt_cv_cc_needs_belf,
2599 - [AC_LANG_SAVE
2600 - AC_LANG_C
2601 - AC_TRY_LINK([],[],[lt_cv_cc_needs_belf=yes],[lt_cv_cc_needs_belf=no])
2602 - AC_LANG_RESTORE])
2603 - if test x"$lt_cv_cc_needs_belf" != x"yes"; then
2604 - # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
2605 - CFLAGS="$SAVE_CFLAGS"
2606 - fi
2607 + version_type=freebsd-$objformat
2608 + case $version_type in
2609 + freebsd-elf*)
2610 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
2611 + need_version=no
2612 + need_lib_prefix=no
2613 + ;;
2614 + freebsd-*)
2615 + library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
2616 + need_version=yes
2617 + ;;
2618 + esac
2619 + shlibpath_var=LD_LIBRARY_PATH
2620 + case $host_os in
2621 + freebsd2*)
2622 + shlibpath_overrides_runpath=yes
2623 + ;;
2624 + freebsd3.[[01]]* | freebsdelf3.[[01]]*)
2625 + shlibpath_overrides_runpath=yes
2626 + hardcode_into_libs=yes
2627 + ;;
2628 + freebsd3.[[2-9]]* | freebsdelf3.[[2-9]]* | \
2629 + freebsd4.[[0-5]] | freebsdelf4.[[0-5]] | freebsd4.1.1 | freebsdelf4.1.1)
2630 + shlibpath_overrides_runpath=no
2631 + hardcode_into_libs=yes
2632 + ;;
2633 + freebsd*) # from 4.6 on
2634 + shlibpath_overrides_runpath=yes
2635 + hardcode_into_libs=yes
2636 + ;;
2637 + esac
2638 ;;
2639
2640 -ifdef([AC_PROVIDE_AC_LIBTOOL_WIN32_DLL],
2641 -[*-*-cygwin* | *-*-mingw* | *-*-pw32*)
2642 - AC_CHECK_TOOL(DLLTOOL, dlltool, false)
2643 - AC_CHECK_TOOL(AS, as, false)
2644 - AC_CHECK_TOOL(OBJDUMP, objdump, false)
2645 +gnu*)
2646 + version_type=linux
2647 + need_lib_prefix=no
2648 + need_version=no
2649 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
2650 + soname_spec='${libname}${release}${shared_ext}$major'
2651 + shlibpath_var=LD_LIBRARY_PATH
2652 + hardcode_into_libs=yes
2653 + ;;
2654
2655 - # recent cygwin and mingw systems supply a stub DllMain which the user
2656 - # can override, but on older systems we have to supply one
2657 - AC_CACHE_CHECK([if libtool should supply DllMain function], lt_cv_need_dllmain,
2658 - [AC_TRY_LINK([],
2659 - [extern int __attribute__((__stdcall__)) DllMain(void*, int, void*);
2660 - DllMain (0, 0, 0);],
2661 - [lt_cv_need_dllmain=no],[lt_cv_need_dllmain=yes])])
2662 -
2663 - case $host/$CC in
2664 - *-*-cygwin*/gcc*-mno-cygwin*|*-*-mingw*)
2665 - # old mingw systems require "-dll" to link a DLL, while more recent ones
2666 - # require "-mdll"
2667 - SAVE_CFLAGS="$CFLAGS"
2668 - CFLAGS="$CFLAGS -mdll"
2669 - AC_CACHE_CHECK([how to link DLLs], lt_cv_cc_dll_switch,
2670 - [AC_TRY_LINK([], [], [lt_cv_cc_dll_switch=-mdll],[lt_cv_cc_dll_switch=-dll])])
2671 - CFLAGS="$SAVE_CFLAGS" ;;
2672 - *-*-cygwin* | *-*-pw32*)
2673 - # cygwin systems need to pass --dll to the linker, and not link
2674 - # crt.o which will require a WinMain@16 definition.
2675 - lt_cv_cc_dll_switch="-Wl,--dll -nostartfiles" ;;
2676 +hpux9* | hpux10* | hpux11*)
2677 + # Give a soname corresponding to the major version so that dld.sl refuses to
2678 + # link against other versions.
2679 + version_type=sunos
2680 + need_lib_prefix=no
2681 + need_version=no
2682 + case $host_cpu in
2683 + ia64*)
2684 + shrext_cmds='.so'
2685 + hardcode_into_libs=yes
2686 + dynamic_linker="$host_os dld.so"
2687 + shlibpath_var=LD_LIBRARY_PATH
2688 + shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
2689 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
2690 + soname_spec='${libname}${release}${shared_ext}$major'
2691 + if test "X$HPUX_IA64_MODE" = X32; then
2692 + sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
2693 + else
2694 + sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
2695 + fi
2696 + sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
2697 + ;;
2698 + hppa*64*)
2699 + shrext_cmds='.sl'
2700 + hardcode_into_libs=yes
2701 + dynamic_linker="$host_os dld.sl"
2702 + shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
2703 + shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
2704 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
2705 + soname_spec='${libname}${release}${shared_ext}$major'
2706 + sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
2707 + sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
2708 + ;;
2709 + *)
2710 + shrext_cmds='.sl'
2711 + dynamic_linker="$host_os dld.sl"
2712 + shlibpath_var=SHLIB_PATH
2713 + shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
2714 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
2715 + soname_spec='${libname}${release}${shared_ext}$major'
2716 + ;;
2717 esac
2718 + # HP-UX runs *really* slowly unless shared libraries are mode 555.
2719 + postinstall_cmds='chmod 555 $lib'
2720 ;;
2721 - ])
2722 -esac
2723 -
2724 -_LT_AC_LTCONFIG_HACK
2725 -
2726 -])
2727 -
2728 -# AC_LIBTOOL_HEADER_ASSERT
2729 -# ------------------------
2730 -AC_DEFUN([AC_LIBTOOL_HEADER_ASSERT],
2731 -[AC_CACHE_CHECK([whether $CC supports assert without backlinking],
2732 - [lt_cv_func_assert_works],
2733 - [case $host in
2734 - *-*-solaris*)
2735 - if test "$GCC" = yes && test "$with_gnu_ld" != yes; then
2736 - case `$CC --version 2>/dev/null` in
2737 - [[12]].*) lt_cv_func_assert_works=no ;;
2738 - *) lt_cv_func_assert_works=yes ;;
2739 - esac
2740 - fi
2741 - ;;
2742 - esac])
2743
2744 -if test "x$lt_cv_func_assert_works" = xyes; then
2745 - AC_CHECK_HEADERS(assert.h)
2746 -fi
2747 -])# AC_LIBTOOL_HEADER_ASSERT
2748 +interix3*)
2749 + version_type=linux
2750 + need_lib_prefix=no
2751 + need_version=no
2752 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
2753 + soname_spec='${libname}${release}${shared_ext}$major'
2754 + dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
2755 + shlibpath_var=LD_LIBRARY_PATH
2756 + shlibpath_overrides_runpath=no
2757 + hardcode_into_libs=yes
2758 + ;;
2759
2760 -# _LT_AC_CHECK_DLFCN
2761 -# --------------------
2762 -AC_DEFUN([_LT_AC_CHECK_DLFCN],
2763 -[AC_CHECK_HEADERS(dlfcn.h)
2764 -])# _LT_AC_CHECK_DLFCN
2765 +irix5* | irix6* | nonstopux*)
2766 + case $host_os in
2767 + nonstopux*) version_type=nonstopux ;;
2768 + *)
2769 + if test "$lt_cv_prog_gnu_ld" = yes; then
2770 + version_type=linux
2771 + else
2772 + version_type=irix
2773 + fi ;;
2774 + esac
2775 + need_lib_prefix=no
2776 + need_version=no
2777 + soname_spec='${libname}${release}${shared_ext}$major'
2778 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
2779 + case $host_os in
2780 + irix5* | nonstopux*)
2781 + libsuff= shlibsuff=
2782 + ;;
2783 + *)
2784 + case $LD in # libtool.m4 will add one of these switches to LD
2785 + *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
2786 + libsuff= shlibsuff= libmagic=32-bit;;
2787 + *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
2788 + libsuff=32 shlibsuff=N32 libmagic=N32;;
2789 + *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
2790 + libsuff=64 shlibsuff=64 libmagic=64-bit;;
2791 + *) libsuff= shlibsuff= libmagic=never-match;;
2792 + esac
2793 + ;;
2794 + esac
2795 + shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
2796 + shlibpath_overrides_runpath=no
2797 + sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
2798 + sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
2799 + hardcode_into_libs=yes
2800 + ;;
2801
2802 -# AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE
2803 -# ---------------------------------
2804 -AC_DEFUN([AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE],
2805 -[AC_REQUIRE([AC_CANONICAL_HOST])
2806 -AC_REQUIRE([AC_PROG_NM])
2807 -AC_REQUIRE([AC_OBJEXT])
2808 -# Check for command to grab the raw symbol name followed by C symbol from nm.
2809 -AC_MSG_CHECKING([command to parse $NM output])
2810 -AC_CACHE_VAL([lt_cv_sys_global_symbol_pipe], [dnl
2811 +# No shared lib support for Linux oldld, aout, or coff.
2812 +linux*oldld* | linux*aout* | linux*coff*)
2813 + dynamic_linker=no
2814 + ;;
2815
2816 -# These are sane defaults that work on at least a few old systems.
2817 -# [They come from Ultrix. What could be older than Ultrix?!! ;)]
2818 +# This must be Linux ELF.
2819 +linux* | k*bsd*-gnu)
2820 + version_type=linux
2821 + need_lib_prefix=no
2822 + need_version=no
2823 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
2824 + soname_spec='${libname}${release}${shared_ext}$major'
2825 + finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
2826 + shlibpath_var=LD_LIBRARY_PATH
2827 + shlibpath_overrides_runpath=no
2828 + # This implies no fast_install, which is unacceptable.
2829 + # Some rework will be needed to allow for fast_install
2830 + # before this can be enabled.
2831 + hardcode_into_libs=yes
2832
2833 -# Character class describing NM global symbol codes.
2834 -symcode='[[BCDEGRST]]'
2835 + # Append ld.so.conf contents to the search path
2836 + if test -f /etc/ld.so.conf; then
2837 + 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' ' '`
2838 + sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
2839 + fi
2840
2841 -# Regexp to match symbols that can be accessed directly from C.
2842 -sympat='\([[_A-Za-z]][[_A-Za-z0-9]]*\)'
2843 + # We used to test for /lib/ld.so.1 and disable shared libraries on
2844 + # powerpc, because MkLinux only supported shared libraries with the
2845 + # GNU dynamic linker. Since this was broken with cross compilers,
2846 + # most powerpc-linux boxes support dynamic linking these days and
2847 + # people can always --disable-shared, the test was removed, and we
2848 + # assume the GNU/Linux dynamic linker is in use.
2849 + dynamic_linker='GNU/Linux ld.so'
2850 + ;;
2851
2852 -# Transform the above into a raw symbol and a C symbol.
2853 -symxfrm='\1 \2\3 \3'
2854 +netbsdelf*-gnu)
2855 + version_type=linux
2856 + need_lib_prefix=no
2857 + need_version=no
2858 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
2859 + soname_spec='${libname}${release}${shared_ext}$major'
2860 + shlibpath_var=LD_LIBRARY_PATH
2861 + shlibpath_overrides_runpath=no
2862 + hardcode_into_libs=yes
2863 + dynamic_linker='NetBSD ld.elf_so'
2864 + ;;
2865
2866 -# Transform an extracted symbol line into a proper C declaration
2867 -lt_cv_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern char \1;/p'"
2868 +netbsd*)
2869 + version_type=sunos
2870 + need_lib_prefix=no
2871 + need_version=no
2872 + if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
2873 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
2874 + finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
2875 + dynamic_linker='NetBSD (a.out) ld.so'
2876 + else
2877 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
2878 + soname_spec='${libname}${release}${shared_ext}$major'
2879 + dynamic_linker='NetBSD ld.elf_so'
2880 + fi
2881 + shlibpath_var=LD_LIBRARY_PATH
2882 + shlibpath_overrides_runpath=yes
2883 + hardcode_into_libs=yes
2884 + ;;
2885
2886 -# Transform an extracted symbol line into symbol name and symbol address
2887 -lt_cv_global_symbol_to_c_name_address="sed -n -e 's/^: \([[^ ]]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode \([[^ ]]*\) \([[^ ]]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
2888 +newsos6)
2889 + version_type=linux
2890 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
2891 + shlibpath_var=LD_LIBRARY_PATH
2892 + shlibpath_overrides_runpath=yes
2893 + ;;
2894
2895 -# Define system-specific variables.
2896 -case $host_os in
2897 -aix*)
2898 - symcode='[[BCDT]]'
2899 +nto-qnx*)
2900 + version_type=linux
2901 + need_lib_prefix=no
2902 + need_version=no
2903 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
2904 + soname_spec='${libname}${release}${shared_ext}$major'
2905 + shlibpath_var=LD_LIBRARY_PATH
2906 + shlibpath_overrides_runpath=yes
2907 ;;
2908 -cygwin* | mingw* | pw32*)
2909 - symcode='[[ABCDGISTW]]'
2910 +
2911 +openbsd*)
2912 + version_type=sunos
2913 + sys_lib_dlsearch_path_spec="/usr/lib"
2914 + need_lib_prefix=no
2915 + # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
2916 + case $host_os in
2917 + openbsd3.3 | openbsd3.3.*) need_version=yes ;;
2918 + *) need_version=no ;;
2919 + esac
2920 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
2921 + finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
2922 + shlibpath_var=LD_LIBRARY_PATH
2923 + if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
2924 + case $host_os in
2925 + openbsd2.[[89]] | openbsd2.[[89]].*)
2926 + shlibpath_overrides_runpath=no
2927 + ;;
2928 + *)
2929 + shlibpath_overrides_runpath=yes
2930 + ;;
2931 + esac
2932 + else
2933 + shlibpath_overrides_runpath=yes
2934 + fi
2935 ;;
2936 -hpux*) # Its linker distinguishes data from code symbols
2937 - lt_cv_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern char \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
2938 - lt_cv_global_symbol_to_c_name_address="sed -n -e 's/^: \([[^ ]]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([[^ ]]*\) \([[^ ]]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
2939 +
2940 +os2*)
2941 + libname_spec='$name'
2942 + shrext_cmds=".dll"
2943 + need_lib_prefix=no
2944 + library_names_spec='$libname${shared_ext} $libname.a'
2945 + dynamic_linker='OS/2 ld.exe'
2946 + shlibpath_var=LIBPATH
2947 ;;
2948 -irix* | nonstopux*)
2949 - symcode='[[BCDEGRST]]'
2950 +
2951 +osf3* | osf4* | osf5*)
2952 + version_type=osf
2953 + need_lib_prefix=no
2954 + need_version=no
2955 + soname_spec='${libname}${release}${shared_ext}$major'
2956 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
2957 + shlibpath_var=LD_LIBRARY_PATH
2958 + sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
2959 + sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
2960 ;;
2961 -osf*)
2962 - symcode='[[BCDEGQRST]]'
2963 +
2964 +solaris*)
2965 + version_type=linux
2966 + need_lib_prefix=no
2967 + need_version=no
2968 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
2969 + soname_spec='${libname}${release}${shared_ext}$major'
2970 + shlibpath_var=LD_LIBRARY_PATH
2971 + shlibpath_overrides_runpath=yes
2972 + hardcode_into_libs=yes
2973 + # ldd complains unless libraries are executable
2974 + postinstall_cmds='chmod +x $lib'
2975 ;;
2976 -solaris* | sysv5*)
2977 - symcode='[[BDT]]'
2978 +
2979 +sunos4*)
2980 + version_type=sunos
2981 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
2982 + finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
2983 + shlibpath_var=LD_LIBRARY_PATH
2984 + shlibpath_overrides_runpath=yes
2985 + if test "$with_gnu_ld" = yes; then
2986 + need_lib_prefix=no
2987 + fi
2988 + need_version=yes
2989 ;;
2990 -sysv4)
2991 - symcode='[[DFNSTU]]'
2992 +
2993 +sysv4 | sysv4.3*)
2994 + version_type=linux
2995 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
2996 + soname_spec='${libname}${release}${shared_ext}$major'
2997 + shlibpath_var=LD_LIBRARY_PATH
2998 + case $host_vendor in
2999 + sni)
3000 + shlibpath_overrides_runpath=no
3001 + need_lib_prefix=no
3002 + export_dynamic_flag_spec='${wl}-Blargedynsym'
3003 + runpath_var=LD_RUN_PATH
3004 + ;;
3005 + siemens)
3006 + need_lib_prefix=no
3007 + ;;
3008 + motorola)
3009 + need_lib_prefix=no
3010 + need_version=no
3011 + shlibpath_overrides_runpath=no
3012 + sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
3013 + ;;
3014 + esac
3015 ;;
3016 -esac
3017
3018 -# Handle CRLF in mingw tool chain
3019 -opt_cr=
3020 -case $host_os in
3021 -mingw*)
3022 - opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
3023 +sysv4*MP*)
3024 + if test -d /usr/nec ;then
3025 + version_type=linux
3026 + library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
3027 + soname_spec='$libname${shared_ext}.$major'
3028 + shlibpath_var=LD_LIBRARY_PATH
3029 + fi
3030 + ;;
3031 +
3032 +sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
3033 + version_type=freebsd-elf
3034 + need_lib_prefix=no
3035 + need_version=no
3036 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
3037 + soname_spec='${libname}${release}${shared_ext}$major'
3038 + shlibpath_var=LD_LIBRARY_PATH
3039 + hardcode_into_libs=yes
3040 + if test "$with_gnu_ld" = yes; then
3041 + sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
3042 + shlibpath_overrides_runpath=no
3043 + else
3044 + sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
3045 + shlibpath_overrides_runpath=yes
3046 + case $host_os in
3047 + sco3.2v5*)
3048 + sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
3049 + ;;
3050 + esac
3051 + fi
3052 + sys_lib_dlsearch_path_spec='/usr/lib'
3053 + ;;
3054 +
3055 +uts4*)
3056 + version_type=linux
3057 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
3058 + soname_spec='${libname}${release}${shared_ext}$major'
3059 + shlibpath_var=LD_LIBRARY_PATH
3060 + ;;
3061 +
3062 +*)
3063 + dynamic_linker=no
3064 ;;
3065 esac
3066 +AC_MSG_RESULT([$dynamic_linker])
3067 +test "$dynamic_linker" = no && can_build_shared=no
3068
3069 -# If we're using GNU nm, then use its standard symbol codes.
3070 -if $NM -V 2>&1 | egrep '(GNU|with BFD)' > /dev/null; then
3071 - symcode='[[ABCDGISTW]]'
3072 +variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
3073 +if test "$GCC" = yes; then
3074 + variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
3075 fi
3076 +])# AC_LIBTOOL_SYS_DYNAMIC_LINKER
3077
3078 -# Try without a prefix undercore, then with it.
3079 -for ac_symprfx in "" "_"; do
3080
3081 - # Write the raw and C identifiers.
3082 -lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[[ ]]\($symcode$symcode*\)[[ ]][[ ]]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
3083 +# _LT_AC_TAGCONFIG
3084 +# ----------------
3085 +AC_DEFUN([_LT_AC_TAGCONFIG],
3086 +[AC_ARG_WITH([tags],
3087 + [AC_HELP_STRING([--with-tags@<:@=TAGS@:>@],
3088 + [include additional configurations @<:@automatic@:>@])],
3089 + [tagnames="$withval"])
3090 +
3091 +if test -f "$ltmain" && test -n "$tagnames"; then
3092 + if test ! -f "${ofile}"; then
3093 + AC_MSG_WARN([output file `$ofile' does not exist])
3094 + fi
3095 +
3096 + if test -z "$LTCC"; then
3097 + eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
3098 + if test -z "$LTCC"; then
3099 + AC_MSG_WARN([output file `$ofile' does not look like a libtool script])
3100 + else
3101 + AC_MSG_WARN([using `LTCC=$LTCC', extracted from `$ofile'])
3102 + fi
3103 + fi
3104 + if test -z "$LTCFLAGS"; then
3105 + eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
3106 + fi
3107
3108 - # Check to see that the pipe works correctly.
3109 - pipe_works=no
3110 - rm -f conftest*
3111 - cat > conftest.$ac_ext <<EOF
3112 -#ifdef __cplusplus
3113 -extern "C" {
3114 -#endif
3115 -char nm_test_var;
3116 -void nm_test_func(){}
3117 -#ifdef __cplusplus
3118 -}
3119 -#endif
3120 -int main(){nm_test_var='a';nm_test_func();return(0);}
3121 -EOF
3122 + # Extract list of available tagged configurations in $ofile.
3123 + # Note that this assumes the entire list is on one line.
3124 + available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
3125 +
3126 + lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3127 + for tagname in $tagnames; do
3128 + IFS="$lt_save_ifs"
3129 + # Check whether tagname contains only valid characters
3130 + case `$echo "X$tagname" | $Xsed -e 's:[[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]]::g'` in
3131 + "") ;;
3132 + *) AC_MSG_ERROR([invalid tag name: $tagname])
3133 + ;;
3134 + esac
3135
3136 - if AC_TRY_EVAL(ac_compile); then
3137 - # Now try to grab the symbols.
3138 - nlist=conftest.nm
3139 - if AC_TRY_EVAL(NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) && test -s "$nlist"; then
3140 - # Try sorting and uniquifying the output.
3141 - if sort "$nlist" | uniq > "$nlist"T; then
3142 - mv -f "$nlist"T "$nlist"
3143 - else
3144 - rm -f "$nlist"T
3145 - fi
3146 + if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
3147 + then
3148 + AC_MSG_ERROR([tag name \"$tagname\" already exists])
3149 + fi
3150
3151 - # Make sure that we snagged all the symbols we need.
3152 - if egrep ' nm_test_var$' "$nlist" >/dev/null; then
3153 - if egrep ' nm_test_func$' "$nlist" >/dev/null; then
3154 - cat <<EOF > conftest.$ac_ext
3155 -#ifdef __cplusplus
3156 -extern "C" {
3157 -#endif
3158 + # Update the list of available tags.
3159 + if test -n "$tagname"; then
3160 + echo appending configuration tag \"$tagname\" to $ofile
3161 +
3162 + case $tagname in
3163 + CXX)
3164 + if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
3165 + ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
3166 + (test "X$CXX" != "Xg++"))) ; then
3167 + AC_LIBTOOL_LANG_CXX_CONFIG
3168 + else
3169 + tagname=""
3170 + fi
3171 + ;;
3172
3173 -EOF
3174 - # Now generate the symbol file.
3175 - eval "$lt_cv_global_symbol_to_cdecl"' < "$nlist" >> conftest.$ac_ext'
3176 + F77)
3177 + if test -n "$F77" && test "X$F77" != "Xno"; then
3178 + AC_LIBTOOL_LANG_F77_CONFIG
3179 + else
3180 + tagname=""
3181 + fi
3182 + ;;
3183
3184 - cat <<EOF >> conftest.$ac_ext
3185 -#if defined (__STDC__) && __STDC__
3186 -# define lt_ptr void *
3187 -#else
3188 -# define lt_ptr char *
3189 -# define const
3190 -#endif
3191 + GCJ)
3192 + if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
3193 + AC_LIBTOOL_LANG_GCJ_CONFIG
3194 + else
3195 + tagname=""
3196 + fi
3197 + ;;
3198
3199 -/* The mapping between symbol names and symbols. */
3200 -const struct {
3201 - const char *name;
3202 - lt_ptr address;
3203 -}
3204 -lt_preloaded_symbols[[]] =
3205 + RC)
3206 + AC_LIBTOOL_LANG_RC_CONFIG
3207 + ;;
3208 +
3209 + *)
3210 + AC_MSG_ERROR([Unsupported tag name: $tagname])
3211 + ;;
3212 + esac
3213 +
3214 + # Append the new tag name to the list of available tags.
3215 + if test -n "$tagname" ; then
3216 + available_tags="$available_tags $tagname"
3217 + fi
3218 + fi
3219 + done
3220 + IFS="$lt_save_ifs"
3221 +
3222 + # Now substitute the updated list of available tags.
3223 + if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
3224 + mv "${ofile}T" "$ofile"
3225 + chmod +x "$ofile"
3226 + else
3227 + rm -f "${ofile}T"
3228 + AC_MSG_ERROR([unable to update list of available tagged configurations.])
3229 + fi
3230 +fi
3231 +])# _LT_AC_TAGCONFIG
3232 +
3233 +
3234 +# AC_LIBTOOL_DLOPEN
3235 +# -----------------
3236 +# enable checks for dlopen support
3237 +AC_DEFUN([AC_LIBTOOL_DLOPEN],
3238 + [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])
3239 +])# AC_LIBTOOL_DLOPEN
3240 +
3241 +
3242 +# AC_LIBTOOL_WIN32_DLL
3243 +# --------------------
3244 +# declare package support for building win32 DLLs
3245 +AC_DEFUN([AC_LIBTOOL_WIN32_DLL],
3246 +[AC_BEFORE([$0], [AC_LIBTOOL_SETUP])
3247 +])# AC_LIBTOOL_WIN32_DLL
3248 +
3249 +
3250 +# AC_ENABLE_SHARED([DEFAULT])
3251 +# ---------------------------
3252 +# implement the --enable-shared flag
3253 +# DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'.
3254 +AC_DEFUN([AC_ENABLE_SHARED],
3255 +[define([AC_ENABLE_SHARED_DEFAULT], ifelse($1, no, no, yes))dnl
3256 +AC_ARG_ENABLE([shared],
3257 + [AC_HELP_STRING([--enable-shared@<:@=PKGS@:>@],
3258 + [build shared libraries @<:@default=]AC_ENABLE_SHARED_DEFAULT[@:>@])],
3259 + [p=${PACKAGE-default}
3260 + case $enableval in
3261 + yes) enable_shared=yes ;;
3262 + no) enable_shared=no ;;
3263 + *)
3264 + enable_shared=no
3265 + # Look at the argument we got. We use all the common list separators.
3266 + lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3267 + for pkg in $enableval; do
3268 + IFS="$lt_save_ifs"
3269 + if test "X$pkg" = "X$p"; then
3270 + enable_shared=yes
3271 + fi
3272 + done
3273 + IFS="$lt_save_ifs"
3274 + ;;
3275 + esac],
3276 + [enable_shared=]AC_ENABLE_SHARED_DEFAULT)
3277 +])# AC_ENABLE_SHARED
3278 +
3279 +
3280 +# AC_DISABLE_SHARED
3281 +# -----------------
3282 +# set the default shared flag to --disable-shared
3283 +AC_DEFUN([AC_DISABLE_SHARED],
3284 +[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
3285 +AC_ENABLE_SHARED(no)
3286 +])# AC_DISABLE_SHARED
3287 +
3288 +
3289 +# AC_ENABLE_STATIC([DEFAULT])
3290 +# ---------------------------
3291 +# implement the --enable-static flag
3292 +# DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'.
3293 +AC_DEFUN([AC_ENABLE_STATIC],
3294 +[define([AC_ENABLE_STATIC_DEFAULT], ifelse($1, no, no, yes))dnl
3295 +AC_ARG_ENABLE([static],
3296 + [AC_HELP_STRING([--enable-static@<:@=PKGS@:>@],
3297 + [build static libraries @<:@default=]AC_ENABLE_STATIC_DEFAULT[@:>@])],
3298 + [p=${PACKAGE-default}
3299 + case $enableval in
3300 + yes) enable_static=yes ;;
3301 + no) enable_static=no ;;
3302 + *)
3303 + enable_static=no
3304 + # Look at the argument we got. We use all the common list separators.
3305 + lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3306 + for pkg in $enableval; do
3307 + IFS="$lt_save_ifs"
3308 + if test "X$pkg" = "X$p"; then
3309 + enable_static=yes
3310 + fi
3311 + done
3312 + IFS="$lt_save_ifs"
3313 + ;;
3314 + esac],
3315 + [enable_static=]AC_ENABLE_STATIC_DEFAULT)
3316 +])# AC_ENABLE_STATIC
3317 +
3318 +
3319 +# AC_DISABLE_STATIC
3320 +# -----------------
3321 +# set the default static flag to --disable-static
3322 +AC_DEFUN([AC_DISABLE_STATIC],
3323 +[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
3324 +AC_ENABLE_STATIC(no)
3325 +])# AC_DISABLE_STATIC
3326 +
3327 +
3328 +# AC_ENABLE_FAST_INSTALL([DEFAULT])
3329 +# ---------------------------------
3330 +# implement the --enable-fast-install flag
3331 +# DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'.
3332 +AC_DEFUN([AC_ENABLE_FAST_INSTALL],
3333 +[define([AC_ENABLE_FAST_INSTALL_DEFAULT], ifelse($1, no, no, yes))dnl
3334 +AC_ARG_ENABLE([fast-install],
3335 + [AC_HELP_STRING([--enable-fast-install@<:@=PKGS@:>@],
3336 + [optimize for fast installation @<:@default=]AC_ENABLE_FAST_INSTALL_DEFAULT[@:>@])],
3337 + [p=${PACKAGE-default}
3338 + case $enableval in
3339 + yes) enable_fast_install=yes ;;
3340 + no) enable_fast_install=no ;;
3341 + *)
3342 + enable_fast_install=no
3343 + # Look at the argument we got. We use all the common list separators.
3344 + lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3345 + for pkg in $enableval; do
3346 + IFS="$lt_save_ifs"
3347 + if test "X$pkg" = "X$p"; then
3348 + enable_fast_install=yes
3349 + fi
3350 + done
3351 + IFS="$lt_save_ifs"
3352 + ;;
3353 + esac],
3354 + [enable_fast_install=]AC_ENABLE_FAST_INSTALL_DEFAULT)
3355 +])# AC_ENABLE_FAST_INSTALL
3356 +
3357 +
3358 +# AC_DISABLE_FAST_INSTALL
3359 +# -----------------------
3360 +# set the default to --disable-fast-install
3361 +AC_DEFUN([AC_DISABLE_FAST_INSTALL],
3362 +[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
3363 +AC_ENABLE_FAST_INSTALL(no)
3364 +])# AC_DISABLE_FAST_INSTALL
3365 +
3366 +
3367 +# AC_LIBTOOL_PICMODE([MODE])
3368 +# --------------------------
3369 +# implement the --with-pic flag
3370 +# MODE is either `yes' or `no'. If omitted, it defaults to `both'.
3371 +AC_DEFUN([AC_LIBTOOL_PICMODE],
3372 +[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
3373 +pic_mode=ifelse($#,1,$1,default)
3374 +])# AC_LIBTOOL_PICMODE
3375 +
3376 +
3377 +# AC_PROG_EGREP
3378 +# -------------
3379 +# This is predefined starting with Autoconf 2.54, so this conditional
3380 +# definition can be removed once we require Autoconf 2.54 or later.
3381 +m4_ifndef([AC_PROG_EGREP], [AC_DEFUN([AC_PROG_EGREP],
3382 +[AC_CACHE_CHECK([for egrep], [ac_cv_prog_egrep],
3383 + [if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3384 + then ac_cv_prog_egrep='grep -E'
3385 + else ac_cv_prog_egrep='egrep'
3386 + fi])
3387 + EGREP=$ac_cv_prog_egrep
3388 + AC_SUBST([EGREP])
3389 +])])
3390 +
3391 +
3392 +# AC_PATH_TOOL_PREFIX
3393 +# -------------------
3394 +# find a file program which can recognise shared library
3395 +AC_DEFUN([AC_PATH_TOOL_PREFIX],
3396 +[AC_REQUIRE([AC_PROG_EGREP])dnl
3397 +AC_MSG_CHECKING([for $1])
3398 +AC_CACHE_VAL(lt_cv_path_MAGIC_CMD,
3399 +[case $MAGIC_CMD in
3400 +[[\\/*] | ?:[\\/]*])
3401 + lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
3402 + ;;
3403 +*)
3404 + lt_save_MAGIC_CMD="$MAGIC_CMD"
3405 + lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3406 +dnl $ac_dummy forces splitting on constant user-supplied paths.
3407 +dnl POSIX.2 word splitting is done only on the output of word expansions,
3408 +dnl not every word. This closes a longstanding sh security hole.
3409 + ac_dummy="ifelse([$2], , $PATH, [$2])"
3410 + for ac_dir in $ac_dummy; do
3411 + IFS="$lt_save_ifs"
3412 + test -z "$ac_dir" && ac_dir=.
3413 + if test -f $ac_dir/$1; then
3414 + lt_cv_path_MAGIC_CMD="$ac_dir/$1"
3415 + if test -n "$file_magic_test_file"; then
3416 + case $deplibs_check_method in
3417 + "file_magic "*)
3418 + file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
3419 + MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
3420 + if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
3421 + $EGREP "$file_magic_regex" > /dev/null; then
3422 + :
3423 + else
3424 + cat <<EOF 1>&2
3425 +
3426 +*** Warning: the command libtool uses to detect shared libraries,
3427 +*** $file_magic_cmd, produces output that libtool cannot recognize.
3428 +*** The result is that libtool may fail to recognize shared libraries
3429 +*** as such. This will affect the creation of libtool libraries that
3430 +*** depend on shared libraries, but programs linked with such libtool
3431 +*** libraries will work regardless of this problem. Nevertheless, you
3432 +*** may want to report the problem to your system manager and/or to
3433 +*** bug-libtool@gnu.org
3434 +
3435 +EOF
3436 + fi ;;
3437 + esac
3438 + fi
3439 + break
3440 + fi
3441 + done
3442 + IFS="$lt_save_ifs"
3443 + MAGIC_CMD="$lt_save_MAGIC_CMD"
3444 + ;;
3445 +esac])
3446 +MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
3447 +if test -n "$MAGIC_CMD"; then
3448 + AC_MSG_RESULT($MAGIC_CMD)
3449 +else
3450 + AC_MSG_RESULT(no)
3451 +fi
3452 +])# AC_PATH_TOOL_PREFIX
3453 +
3454 +
3455 +# AC_PATH_MAGIC
3456 +# -------------
3457 +# find a file program which can recognise a shared library
3458 +AC_DEFUN([AC_PATH_MAGIC],
3459 +[AC_PATH_TOOL_PREFIX(${ac_tool_prefix}file, /usr/bin$PATH_SEPARATOR$PATH)
3460 +if test -z "$lt_cv_path_MAGIC_CMD"; then
3461 + if test -n "$ac_tool_prefix"; then
3462 + AC_PATH_TOOL_PREFIX(file, /usr/bin$PATH_SEPARATOR$PATH)
3463 + else
3464 + MAGIC_CMD=:
3465 + fi
3466 +fi
3467 +])# AC_PATH_MAGIC
3468 +
3469 +
3470 +# AC_PROG_LD
3471 +# ----------
3472 +# find the pathname to the GNU or non-GNU linker
3473 +AC_DEFUN([AC_PROG_LD],
3474 +[AC_ARG_WITH([gnu-ld],
3475 + [AC_HELP_STRING([--with-gnu-ld],
3476 + [assume the C compiler uses GNU ld @<:@default=no@:>@])],
3477 + [test "$withval" = no || with_gnu_ld=yes],
3478 + [with_gnu_ld=no])
3479 +AC_REQUIRE([LT_AC_PROG_SED])dnl
3480 +AC_REQUIRE([AC_PROG_CC])dnl
3481 +AC_REQUIRE([AC_CANONICAL_HOST])dnl
3482 +AC_REQUIRE([AC_CANONICAL_BUILD])dnl
3483 +ac_prog=ld
3484 +if test "$GCC" = yes; then
3485 + # Check if gcc -print-prog-name=ld gives a path.
3486 + AC_MSG_CHECKING([for ld used by $CC])
3487 + case $host in
3488 + *-*-mingw*)
3489 + # gcc leaves a trailing carriage return which upsets mingw
3490 + ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3491 + *)
3492 + ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3493 + esac
3494 + case $ac_prog in
3495 + # Accept absolute paths.
3496 + [[\\/]]* | ?:[[\\/]]*)
3497 + re_direlt='/[[^/]][[^/]]*/\.\./'
3498 + # Canonicalize the pathname of ld
3499 + ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
3500 + while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
3501 + ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
3502 + done
3503 + test -z "$LD" && LD="$ac_prog"
3504 + ;;
3505 + "")
3506 + # If it fails, then pretend we aren't using GCC.
3507 + ac_prog=ld
3508 + ;;
3509 + *)
3510 + # If it is relative, then search for the first ld in PATH.
3511 + with_gnu_ld=unknown
3512 + ;;
3513 + esac
3514 +elif test "$with_gnu_ld" = yes; then
3515 + AC_MSG_CHECKING([for GNU ld])
3516 +else
3517 + AC_MSG_CHECKING([for non-GNU ld])
3518 +fi
3519 +AC_CACHE_VAL(lt_cv_path_LD,
3520 +[if test -z "$LD"; then
3521 + lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3522 + for ac_dir in $PATH; do
3523 + IFS="$lt_save_ifs"
3524 + test -z "$ac_dir" && ac_dir=.
3525 + if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3526 + lt_cv_path_LD="$ac_dir/$ac_prog"
3527 + # Check to see if the program is GNU ld. I'd rather use --version,
3528 + # but apparently some variants of GNU ld only accept -v.
3529 + # Break only if it was the GNU/non-GNU ld that we prefer.
3530 + case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
3531 + *GNU* | *'with BFD'*)
3532 + test "$with_gnu_ld" != no && break
3533 + ;;
3534 + *)
3535 + test "$with_gnu_ld" != yes && break
3536 + ;;
3537 + esac
3538 + fi
3539 + done
3540 + IFS="$lt_save_ifs"
3541 +else
3542 + lt_cv_path_LD="$LD" # Let the user override the test with a path.
3543 +fi])
3544 +LD="$lt_cv_path_LD"
3545 +if test -n "$LD"; then
3546 + AC_MSG_RESULT($LD)
3547 +else
3548 + AC_MSG_RESULT(no)
3549 +fi
3550 +test -z "$LD" && AC_MSG_ERROR([no acceptable ld found in \$PATH])
3551 +AC_PROG_LD_GNU
3552 +])# AC_PROG_LD
3553 +
3554 +
3555 +# AC_PROG_LD_GNU
3556 +# --------------
3557 +AC_DEFUN([AC_PROG_LD_GNU],
3558 +[AC_REQUIRE([AC_PROG_EGREP])dnl
3559 +AC_CACHE_CHECK([if the linker ($LD) is GNU ld], lt_cv_prog_gnu_ld,
3560 +[# I'd rather use --version here, but apparently some GNU lds only accept -v.
3561 +case `$LD -v 2>&1 </dev/null` in
3562 +*GNU* | *'with BFD'*)
3563 + lt_cv_prog_gnu_ld=yes
3564 + ;;
3565 +*)
3566 + lt_cv_prog_gnu_ld=no
3567 + ;;
3568 +esac])
3569 +with_gnu_ld=$lt_cv_prog_gnu_ld
3570 +])# AC_PROG_LD_GNU
3571 +
3572 +
3573 +# AC_PROG_LD_RELOAD_FLAG
3574 +# ----------------------
3575 +# find reload flag for linker
3576 +# -- PORTME Some linkers may need a different reload flag.
3577 +AC_DEFUN([AC_PROG_LD_RELOAD_FLAG],
3578 +[AC_CACHE_CHECK([for $LD option to reload object files],
3579 + lt_cv_ld_reload_flag,
3580 + [lt_cv_ld_reload_flag='-r'])
3581 +reload_flag=$lt_cv_ld_reload_flag
3582 +case $reload_flag in
3583 +"" | " "*) ;;
3584 +*) reload_flag=" $reload_flag" ;;
3585 +esac
3586 +reload_cmds='$LD$reload_flag -o $output$reload_objs'
3587 +case $host_os in
3588 + darwin*)
3589 + if test "$GCC" = yes; then
3590 + reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
3591 + else
3592 + reload_cmds='$LD$reload_flag -o $output$reload_objs'
3593 + fi
3594 + ;;
3595 +esac
3596 +])# AC_PROG_LD_RELOAD_FLAG
3597 +
3598 +
3599 +# AC_DEPLIBS_CHECK_METHOD
3600 +# -----------------------
3601 +# how to check for library dependencies
3602 +# -- PORTME fill in with the dynamic library characteristics
3603 +AC_DEFUN([AC_DEPLIBS_CHECK_METHOD],
3604 +[AC_CACHE_CHECK([how to recognise dependent libraries],
3605 +lt_cv_deplibs_check_method,
3606 +[lt_cv_file_magic_cmd='$MAGIC_CMD'
3607 +lt_cv_file_magic_test_file=
3608 +lt_cv_deplibs_check_method='unknown'
3609 +# Need to set the preceding variable on all platforms that support
3610 +# interlibrary dependencies.
3611 +# 'none' -- dependencies not supported.
3612 +# `unknown' -- same as none, but documents that we really don't know.
3613 +# 'pass_all' -- all dependencies passed with no checks.
3614 +# 'test_compile' -- check by making test program.
3615 +# 'file_magic [[regex]]' -- check by looking for files in library path
3616 +# which responds to the $file_magic_cmd with a given extended regex.
3617 +# If you have `file' or equivalent on your system and you're not sure
3618 +# whether `pass_all' will *always* work, you probably want this one.
3619 +
3620 +case $host_os in
3621 +aix4* | aix5*)
3622 + lt_cv_deplibs_check_method=pass_all
3623 + ;;
3624 +
3625 +beos*)
3626 + lt_cv_deplibs_check_method=pass_all
3627 + ;;
3628 +
3629 +bsdi[[45]]*)
3630 + lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (shared object|dynamic lib)'
3631 + lt_cv_file_magic_cmd='/usr/bin/file -L'
3632 + lt_cv_file_magic_test_file=/shlib/libc.so
3633 + ;;
3634 +
3635 +cygwin*)
3636 + # func_win32_libid is a shell function defined in ltmain.sh
3637 + lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
3638 + lt_cv_file_magic_cmd='func_win32_libid'
3639 + ;;
3640 +
3641 +mingw* | pw32*)
3642 + # Base MSYS/MinGW do not provide the 'file' command needed by
3643 + # func_win32_libid shell function, so use a weaker test based on 'objdump'.
3644 + lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
3645 + lt_cv_file_magic_cmd='$OBJDUMP -f'
3646 + ;;
3647 +
3648 +darwin* | rhapsody*)
3649 + lt_cv_deplibs_check_method=pass_all
3650 + ;;
3651 +
3652 +freebsd* | dragonfly*)
3653 + if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3654 + case $host_cpu in
3655 + i*86 )
3656 + # Not sure whether the presence of OpenBSD here was a mistake.
3657 + # Let's accept both of them until this is cleared up.
3658 + lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[[3-9]]86 (compact )?demand paged shared library'
3659 + lt_cv_file_magic_cmd=/usr/bin/file
3660 + lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3661 + ;;
3662 + esac
3663 + else
3664 + lt_cv_deplibs_check_method=pass_all
3665 + fi
3666 + ;;
3667 +
3668 +gnu*)
3669 + lt_cv_deplibs_check_method=pass_all
3670 + ;;
3671 +
3672 +hpux10.20* | hpux11*)
3673 + lt_cv_file_magic_cmd=/usr/bin/file
3674 + case $host_cpu in
3675 + ia64*)
3676 + lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|ELF-[[0-9]][[0-9]]) shared object file - IA64'
3677 + lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
3678 + ;;
3679 + hppa*64*)
3680 + [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]']
3681 + lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
3682 + ;;
3683 + *)
3684 + lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|PA-RISC[[0-9]].[[0-9]]) shared library'
3685 + lt_cv_file_magic_test_file=/usr/lib/libc.sl
3686 + ;;
3687 + esac
3688 + ;;
3689 +
3690 +interix3*)
3691 + # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
3692 + lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so|\.a)$'
3693 + ;;
3694 +
3695 +irix5* | irix6* | nonstopux*)
3696 + case $LD in
3697 + *-32|*"-32 ") libmagic=32-bit;;
3698 + *-n32|*"-n32 ") libmagic=N32;;
3699 + *-64|*"-64 ") libmagic=64-bit;;
3700 + *) libmagic=never-match;;
3701 + esac
3702 + lt_cv_deplibs_check_method=pass_all
3703 + ;;
3704 +
3705 +# This must be Linux ELF.
3706 +linux* | k*bsd*-gnu)
3707 + lt_cv_deplibs_check_method=pass_all
3708 + ;;
3709 +
3710 +netbsd* | netbsdelf*-gnu)
3711 + if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3712 + lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$'
3713 + else
3714 + lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so|_pic\.a)$'
3715 + fi
3716 + ;;
3717 +
3718 +newos6*)
3719 + lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (executable|dynamic lib)'
3720 + lt_cv_file_magic_cmd=/usr/bin/file
3721 + lt_cv_file_magic_test_file=/usr/lib/libnls.so
3722 + ;;
3723 +
3724 +nto-qnx*)
3725 + lt_cv_deplibs_check_method=unknown
3726 + ;;
3727 +
3728 +openbsd*)
3729 + if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
3730 + lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|\.so|_pic\.a)$'
3731 + else
3732 + lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$'
3733 + fi
3734 + ;;
3735 +
3736 +osf3* | osf4* | osf5*)
3737 + lt_cv_deplibs_check_method=pass_all
3738 + ;;
3739 +
3740 +solaris*)
3741 + lt_cv_deplibs_check_method=pass_all
3742 + ;;
3743 +
3744 +sysv4 | sysv4.3*)
3745 + case $host_vendor in
3746 + motorola)
3747 + 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]]'
3748 + lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
3749 + ;;
3750 + ncr)
3751 + lt_cv_deplibs_check_method=pass_all
3752 + ;;
3753 + sequent)
3754 + lt_cv_file_magic_cmd='/bin/file'
3755 + lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB (shared object|dynamic lib )'
3756 + ;;
3757 + sni)
3758 + lt_cv_file_magic_cmd='/bin/file'
3759 + lt_cv_deplibs_check_method="file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB dynamic lib"
3760 + lt_cv_file_magic_test_file=/lib/libc.so
3761 + ;;
3762 + siemens)
3763 + lt_cv_deplibs_check_method=pass_all
3764 + ;;
3765 + pc)
3766 + lt_cv_deplibs_check_method=pass_all
3767 + ;;
3768 + esac
3769 + ;;
3770 +
3771 +sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
3772 + lt_cv_deplibs_check_method=pass_all
3773 + ;;
3774 +esac
3775 +])
3776 +file_magic_cmd=$lt_cv_file_magic_cmd
3777 +deplibs_check_method=$lt_cv_deplibs_check_method
3778 +test -z "$deplibs_check_method" && deplibs_check_method=unknown
3779 +])# AC_DEPLIBS_CHECK_METHOD
3780 +
3781 +
3782 +# AC_PROG_NM
3783 +# ----------
3784 +# find the pathname to a BSD-compatible name lister
3785 +AC_DEFUN([AC_PROG_NM],
3786 +[AC_CACHE_CHECK([for BSD-compatible nm], lt_cv_path_NM,
3787 +[if test -n "$NM"; then
3788 + # Let the user override the test.
3789 + lt_cv_path_NM="$NM"
3790 +else
3791 + lt_nm_to_check="${ac_tool_prefix}nm"
3792 + if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
3793 + lt_nm_to_check="$lt_nm_to_check nm"
3794 + fi
3795 + for lt_tmp_nm in $lt_nm_to_check; do
3796 + lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3797 + for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
3798 + IFS="$lt_save_ifs"
3799 + test -z "$ac_dir" && ac_dir=.
3800 + tmp_nm="$ac_dir/$lt_tmp_nm"
3801 + if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
3802 + # Check to see if the nm accepts a BSD-compat flag.
3803 + # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3804 + # nm: unknown option "B" ignored
3805 + # Tru64's nm complains that /dev/null is an invalid object file
3806 + case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
3807 + */dev/null* | *'Invalid file or object type'*)
3808 + lt_cv_path_NM="$tmp_nm -B"
3809 + break
3810 + ;;
3811 + *)
3812 + case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
3813 + */dev/null*)
3814 + lt_cv_path_NM="$tmp_nm -p"
3815 + break
3816 + ;;
3817 + *)
3818 + lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3819 + continue # so that we can try to find one that supports BSD flags
3820 + ;;
3821 + esac
3822 + ;;
3823 + esac
3824 + fi
3825 + done
3826 + IFS="$lt_save_ifs"
3827 + done
3828 + test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
3829 +fi])
3830 +NM="$lt_cv_path_NM"
3831 +])# AC_PROG_NM
3832 +
3833 +
3834 +# AC_CHECK_LIBM
3835 +# -------------
3836 +# check for math library
3837 +AC_DEFUN([AC_CHECK_LIBM],
3838 +[AC_REQUIRE([AC_CANONICAL_HOST])dnl
3839 +LIBM=
3840 +case $host in
3841 +*-*-beos* | *-*-cygwin* | *-*-pw32* | *-*-darwin*)
3842 + # These system don't have libm, or don't need it
3843 + ;;
3844 +*-ncr-sysv4.3*)
3845 + AC_CHECK_LIB(mw, _mwvalidcheckl, LIBM="-lmw")
3846 + AC_CHECK_LIB(m, cos, LIBM="$LIBM -lm")
3847 + ;;
3848 +*)
3849 + AC_CHECK_LIB(m, cos, LIBM="-lm")
3850 + ;;
3851 +esac
3852 +])# AC_CHECK_LIBM
3853 +
3854 +
3855 +# AC_LIBLTDL_CONVENIENCE([DIRECTORY])
3856 +# -----------------------------------
3857 +# sets LIBLTDL to the link flags for the libltdl convenience library and
3858 +# LTDLINCL to the include flags for the libltdl header and adds
3859 +# --enable-ltdl-convenience to the configure arguments. Note that
3860 +# AC_CONFIG_SUBDIRS is not called here. If DIRECTORY is not provided,
3861 +# it is assumed to be `libltdl'. LIBLTDL will be prefixed with
3862 +# '${top_builddir}/' and LTDLINCL will be prefixed with '${top_srcdir}/'
3863 +# (note the single quotes!). If your package is not flat and you're not
3864 +# using automake, define top_builddir and top_srcdir appropriately in
3865 +# the Makefiles.
3866 +AC_DEFUN([AC_LIBLTDL_CONVENIENCE],
3867 +[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
3868 + case $enable_ltdl_convenience in
3869 + no) AC_MSG_ERROR([this package needs a convenience libltdl]) ;;
3870 + "") enable_ltdl_convenience=yes
3871 + ac_configure_args="$ac_configure_args --enable-ltdl-convenience" ;;
3872 + esac
3873 + LIBLTDL='${top_builddir}/'ifelse($#,1,[$1],['libltdl'])/libltdlc.la
3874 + LTDLINCL='-I${top_srcdir}/'ifelse($#,1,[$1],['libltdl'])
3875 + # For backwards non-gettext consistent compatibility...
3876 + INCLTDL="$LTDLINCL"
3877 +])# AC_LIBLTDL_CONVENIENCE
3878 +
3879 +
3880 +# AC_LIBLTDL_INSTALLABLE([DIRECTORY])
3881 +# -----------------------------------
3882 +# sets LIBLTDL to the link flags for the libltdl installable library and
3883 +# LTDLINCL to the include flags for the libltdl header and adds
3884 +# --enable-ltdl-install to the configure arguments. Note that
3885 +# AC_CONFIG_SUBDIRS is not called here. If DIRECTORY is not provided,
3886 +# and an installed libltdl is not found, it is assumed to be `libltdl'.
3887 +# LIBLTDL will be prefixed with '${top_builddir}/'# and LTDLINCL with
3888 +# '${top_srcdir}/' (note the single quotes!). If your package is not
3889 +# flat and you're not using automake, define top_builddir and top_srcdir
3890 +# appropriately in the Makefiles.
3891 +# In the future, this macro may have to be called after AC_PROG_LIBTOOL.
3892 +AC_DEFUN([AC_LIBLTDL_INSTALLABLE],
3893 +[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
3894 + AC_CHECK_LIB(ltdl, lt_dlinit,
3895 + [test x"$enable_ltdl_install" != xyes && enable_ltdl_install=no],
3896 + [if test x"$enable_ltdl_install" = xno; then
3897 + AC_MSG_WARN([libltdl not installed, but installation disabled])
3898 + else
3899 + enable_ltdl_install=yes
3900 + fi
3901 + ])
3902 + if test x"$enable_ltdl_install" = x"yes"; then
3903 + ac_configure_args="$ac_configure_args --enable-ltdl-install"
3904 + LIBLTDL='${top_builddir}/'ifelse($#,1,[$1],['libltdl'])/libltdl.la
3905 + LTDLINCL='-I${top_srcdir}/'ifelse($#,1,[$1],['libltdl'])
3906 + else
3907 + ac_configure_args="$ac_configure_args --enable-ltdl-install=no"
3908 + LIBLTDL="-lltdl"
3909 + LTDLINCL=
3910 + fi
3911 + # For backwards non-gettext consistent compatibility...
3912 + INCLTDL="$LTDLINCL"
3913 +])# AC_LIBLTDL_INSTALLABLE
3914 +
3915 +
3916 +# AC_LIBTOOL_CXX
3917 +# --------------
3918 +# enable support for C++ libraries
3919 +AC_DEFUN([AC_LIBTOOL_CXX],
3920 +[AC_REQUIRE([_LT_AC_LANG_CXX])
3921 +])# AC_LIBTOOL_CXX
3922 +
3923 +
3924 +# _LT_AC_LANG_CXX
3925 +# ---------------
3926 +AC_DEFUN([_LT_AC_LANG_CXX],
3927 +[AC_REQUIRE([AC_PROG_CXX])
3928 +AC_REQUIRE([_LT_AC_PROG_CXXCPP])
3929 +_LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}CXX])
3930 +])# _LT_AC_LANG_CXX
3931 +
3932 +# _LT_AC_PROG_CXXCPP
3933 +# ------------------
3934 +AC_DEFUN([_LT_AC_PROG_CXXCPP],
3935 +[
3936 +AC_REQUIRE([AC_PROG_CXX])
3937 +if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
3938 + ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
3939 + (test "X$CXX" != "Xg++"))) ; then
3940 + AC_PROG_CXXCPP
3941 +fi
3942 +])# _LT_AC_PROG_CXXCPP
3943 +
3944 +# AC_LIBTOOL_F77
3945 +# --------------
3946 +# enable support for Fortran 77 libraries
3947 +AC_DEFUN([AC_LIBTOOL_F77],
3948 +[AC_REQUIRE([_LT_AC_LANG_F77])
3949 +])# AC_LIBTOOL_F77
3950 +
3951 +
3952 +# _LT_AC_LANG_F77
3953 +# ---------------
3954 +AC_DEFUN([_LT_AC_LANG_F77],
3955 +[AC_REQUIRE([AC_PROG_F77])
3956 +_LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}F77])
3957 +])# _LT_AC_LANG_F77
3958 +
3959 +
3960 +# AC_LIBTOOL_GCJ
3961 +# --------------
3962 +# enable support for GCJ libraries
3963 +AC_DEFUN([AC_LIBTOOL_GCJ],
3964 +[AC_REQUIRE([_LT_AC_LANG_GCJ])
3965 +])# AC_LIBTOOL_GCJ
3966 +
3967 +
3968 +# _LT_AC_LANG_GCJ
3969 +# ---------------
3970 +AC_DEFUN([_LT_AC_LANG_GCJ],
3971 +[AC_PROVIDE_IFELSE([AC_PROG_GCJ],[],
3972 + [AC_PROVIDE_IFELSE([A][M_PROG_GCJ],[],
3973 + [AC_PROVIDE_IFELSE([LT_AC_PROG_GCJ],[],
3974 + [ifdef([AC_PROG_GCJ],[AC_REQUIRE([AC_PROG_GCJ])],
3975 + [ifdef([A][M_PROG_GCJ],[AC_REQUIRE([A][M_PROG_GCJ])],
3976 + [AC_REQUIRE([A][C_PROG_GCJ_OR_A][M_PROG_GCJ])])])])])])
3977 +_LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}GCJ])
3978 +])# _LT_AC_LANG_GCJ
3979 +
3980 +
3981 +# AC_LIBTOOL_RC
3982 +# -------------
3983 +# enable support for Windows resource files
3984 +AC_DEFUN([AC_LIBTOOL_RC],
3985 +[AC_REQUIRE([LT_AC_PROG_RC])
3986 +_LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}RC])
3987 +])# AC_LIBTOOL_RC
3988 +
3989 +
3990 +# AC_LIBTOOL_LANG_C_CONFIG
3991 +# ------------------------
3992 +# Ensure that the configuration vars for the C compiler are
3993 +# suitably defined. Those variables are subsequently used by
3994 +# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
3995 +AC_DEFUN([AC_LIBTOOL_LANG_C_CONFIG], [_LT_AC_LANG_C_CONFIG])
3996 +AC_DEFUN([_LT_AC_LANG_C_CONFIG],
3997 +[lt_save_CC="$CC"
3998 +AC_LANG_PUSH(C)
3999 +
4000 +# Source file extension for C test sources.
4001 +ac_ext=c
4002 +
4003 +# Object file extension for compiled C test sources.
4004 +objext=o
4005 +_LT_AC_TAGVAR(objext, $1)=$objext
4006 +
4007 +# Code to be used in simple compile tests
4008 +lt_simple_compile_test_code="int some_variable = 0;\n"
4009 +
4010 +# Code to be used in simple link tests
4011 +lt_simple_link_test_code='int main(){return(0);}\n'
4012 +
4013 +_LT_AC_SYS_COMPILER
4014 +
4015 +# save warnings/boilerplate of simple test code
4016 +_LT_COMPILER_BOILERPLATE
4017 +_LT_LINKER_BOILERPLATE
4018 +
4019 +AC_LIBTOOL_PROG_COMPILER_NO_RTTI($1)
4020 +AC_LIBTOOL_PROG_COMPILER_PIC($1)
4021 +AC_LIBTOOL_PROG_CC_C_O($1)
4022 +AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1)
4023 +AC_LIBTOOL_PROG_LD_SHLIBS($1)
4024 +AC_LIBTOOL_SYS_DYNAMIC_LINKER($1)
4025 +AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1)
4026 +AC_LIBTOOL_SYS_LIB_STRIP
4027 +AC_LIBTOOL_DLOPEN_SELF
4028 +
4029 +# Report which library types will actually be built
4030 +AC_MSG_CHECKING([if libtool supports shared libraries])
4031 +AC_MSG_RESULT([$can_build_shared])
4032 +
4033 +AC_MSG_CHECKING([whether to build shared libraries])
4034 +test "$can_build_shared" = "no" && enable_shared=no
4035 +
4036 +# On AIX, shared libraries and static libraries use the same namespace, and
4037 +# are all built from PIC.
4038 +case $host_os in
4039 +aix3*)
4040 + test "$enable_shared" = yes && enable_static=no
4041 + if test -n "$RANLIB"; then
4042 + archive_cmds="$archive_cmds~\$RANLIB \$lib"
4043 + postinstall_cmds='$RANLIB $lib'
4044 + fi
4045 + ;;
4046 +
4047 +aix4* | aix5*)
4048 + if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
4049 + test "$enable_shared" = yes && enable_static=no
4050 + fi
4051 + ;;
4052 +esac
4053 +AC_MSG_RESULT([$enable_shared])
4054 +
4055 +AC_MSG_CHECKING([whether to build static libraries])
4056 +# Make sure either enable_shared or enable_static is yes.
4057 +test "$enable_shared" = yes || enable_static=yes
4058 +AC_MSG_RESULT([$enable_static])
4059 +
4060 +AC_LIBTOOL_CONFIG($1)
4061 +
4062 +AC_LANG_POP
4063 +CC="$lt_save_CC"
4064 +])# AC_LIBTOOL_LANG_C_CONFIG
4065 +
4066 +
4067 +# AC_LIBTOOL_LANG_CXX_CONFIG
4068 +# --------------------------
4069 +# Ensure that the configuration vars for the C compiler are
4070 +# suitably defined. Those variables are subsequently used by
4071 +# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
4072 +AC_DEFUN([AC_LIBTOOL_LANG_CXX_CONFIG], [_LT_AC_LANG_CXX_CONFIG(CXX)])
4073 +AC_DEFUN([_LT_AC_LANG_CXX_CONFIG],
4074 +[AC_LANG_PUSH(C++)
4075 +AC_REQUIRE([AC_PROG_CXX])
4076 +AC_REQUIRE([_LT_AC_PROG_CXXCPP])
4077 +
4078 +_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
4079 +_LT_AC_TAGVAR(allow_undefined_flag, $1)=
4080 +_LT_AC_TAGVAR(always_export_symbols, $1)=no
4081 +_LT_AC_TAGVAR(archive_expsym_cmds, $1)=
4082 +_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)=
4083 +_LT_AC_TAGVAR(hardcode_direct, $1)=no
4084 +_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=
4085 +_LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
4086 +_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
4087 +_LT_AC_TAGVAR(hardcode_minus_L, $1)=no
4088 +_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
4089 +_LT_AC_TAGVAR(hardcode_automatic, $1)=no
4090 +_LT_AC_TAGVAR(module_cmds, $1)=
4091 +_LT_AC_TAGVAR(module_expsym_cmds, $1)=
4092 +_LT_AC_TAGVAR(link_all_deplibs, $1)=unknown
4093 +_LT_AC_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
4094 +_LT_AC_TAGVAR(no_undefined_flag, $1)=
4095 +_LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
4096 +_LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=no
4097 +
4098 +# Dependencies to place before and after the object being linked:
4099 +_LT_AC_TAGVAR(predep_objects, $1)=
4100 +_LT_AC_TAGVAR(postdep_objects, $1)=
4101 +_LT_AC_TAGVAR(predeps, $1)=
4102 +_LT_AC_TAGVAR(postdeps, $1)=
4103 +_LT_AC_TAGVAR(compiler_lib_search_path, $1)=
4104 +
4105 +# Source file extension for C++ test sources.
4106 +ac_ext=cpp
4107 +
4108 +# Object file extension for compiled C++ test sources.
4109 +objext=o
4110 +_LT_AC_TAGVAR(objext, $1)=$objext
4111 +
4112 +# Code to be used in simple compile tests
4113 +lt_simple_compile_test_code="int some_variable = 0;\n"
4114 +
4115 +# Code to be used in simple link tests
4116 +lt_simple_link_test_code='int main(int, char *[[]]) { return(0); }\n'
4117 +
4118 +# ltmain only uses $CC for tagged configurations so make sure $CC is set.
4119 +_LT_AC_SYS_COMPILER
4120 +
4121 +# save warnings/boilerplate of simple test code
4122 +_LT_COMPILER_BOILERPLATE
4123 +_LT_LINKER_BOILERPLATE
4124 +
4125 +# Allow CC to be a program name with arguments.
4126 +lt_save_CC=$CC
4127 +lt_save_LD=$LD
4128 +lt_save_GCC=$GCC
4129 +GCC=$GXX
4130 +lt_save_with_gnu_ld=$with_gnu_ld
4131 +lt_save_path_LD=$lt_cv_path_LD
4132 +if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
4133 + lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
4134 +else
4135 + $as_unset lt_cv_prog_gnu_ld
4136 +fi
4137 +if test -n "${lt_cv_path_LDCXX+set}"; then
4138 + lt_cv_path_LD=$lt_cv_path_LDCXX
4139 +else
4140 + $as_unset lt_cv_path_LD
4141 +fi
4142 +test -z "${LDCXX+set}" || LD=$LDCXX
4143 +CC=${CXX-"c++"}
4144 +compiler=$CC
4145 +_LT_AC_TAGVAR(compiler, $1)=$CC
4146 +_LT_CC_BASENAME([$compiler])
4147 +
4148 +# We don't want -fno-exception wen compiling C++ code, so set the
4149 +# no_builtin_flag separately
4150 +if test "$GXX" = yes; then
4151 + _LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin'
4152 +else
4153 + _LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=
4154 +fi
4155 +
4156 +if test "$GXX" = yes; then
4157 + # Set up default GNU C++ configuration
4158 +
4159 + AC_PROG_LD
4160 +
4161 + # Check if GNU C++ uses GNU ld as the underlying linker, since the
4162 + # archiving commands below assume that GNU ld is being used.
4163 + if test "$with_gnu_ld" = yes; then
4164 + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
4165 + _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'
4166 +
4167 + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir'
4168 + _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
4169 +
4170 + # If archive_cmds runs LD, not CC, wlarc should be empty
4171 + # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
4172 + # investigate it a little bit more. (MM)
4173 + wlarc='${wl}'
4174 +
4175 + # ancient GNU ld didn't support --whole-archive et. al.
4176 + if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
4177 + grep 'no-whole-archive' > /dev/null; then
4178 + _LT_AC_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
4179 + else
4180 + _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
4181 + fi
4182 + else
4183 + with_gnu_ld=no
4184 + wlarc=
4185 +
4186 + # A generic and very simple default shared library creation
4187 + # command for GNU C++ for the case where it uses the native
4188 + # linker, instead of GNU ld. If possible, this setting should
4189 + # overridden to take advantage of the native linker features on
4190 + # the platform it is being used on.
4191 + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
4192 + fi
4193 +
4194 + # Commands to make compiler produce verbose output that lists
4195 + # what "hidden" libraries, object files and flags are used when
4196 + # linking a shared library.
4197 + output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
4198 +
4199 +else
4200 + GXX=no
4201 + with_gnu_ld=no
4202 + wlarc=
4203 +fi
4204 +
4205 +# PORTME: fill in a description of your system's C++ link characteristics
4206 +AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries])
4207 +_LT_AC_TAGVAR(ld_shlibs, $1)=yes
4208 +case $host_os in
4209 + aix3*)
4210 + # FIXME: insert proper C++ library support
4211 + _LT_AC_TAGVAR(ld_shlibs, $1)=no
4212 + ;;
4213 + aix4* | aix5*)
4214 + if test "$host_cpu" = ia64; then
4215 + # On IA64, the linker does run time linking by default, so we don't
4216 + # have to do anything special.
4217 + aix_use_runtimelinking=no
4218 + exp_sym_flag='-Bexport'
4219 + no_entry_flag=""
4220 + else
4221 + aix_use_runtimelinking=no
4222 +
4223 + # Test if we are trying to use run time linking or normal
4224 + # AIX style linking. If -brtl is somewhere in LDFLAGS, we
4225 + # need to do runtime linking.
4226 + case $host_os in aix4.[[23]]|aix4.[[23]].*|aix5*)
4227 + for ld_flag in $LDFLAGS; do
4228 + case $ld_flag in
4229 + *-brtl*)
4230 + aix_use_runtimelinking=yes
4231 + break
4232 + ;;
4233 + esac
4234 + done
4235 + ;;
4236 + esac
4237 +
4238 + exp_sym_flag='-bexport'
4239 + no_entry_flag='-bnoentry'
4240 + fi
4241 +
4242 + # When large executables or shared objects are built, AIX ld can
4243 + # have problems creating the table of contents. If linking a library
4244 + # or program results in "error TOC overflow" add -mminimal-toc to
4245 + # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
4246 + # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
4247 +
4248 + _LT_AC_TAGVAR(archive_cmds, $1)=''
4249 + _LT_AC_TAGVAR(hardcode_direct, $1)=yes
4250 + _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=':'
4251 + _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
4252 +
4253 + if test "$GXX" = yes; then
4254 + case $host_os in aix4.[[012]]|aix4.[[012]].*)
4255 + # We only want to do this on AIX 4.2 and lower, the check
4256 + # below for broken collect2 doesn't work under 4.3+
4257 + collect2name=`${CC} -print-prog-name=collect2`
4258 + if test -f "$collect2name" && \
4259 + strings "$collect2name" | grep resolve_lib_name >/dev/null
4260 + then
4261 + # We have reworked collect2
4262 + _LT_AC_TAGVAR(hardcode_direct, $1)=yes
4263 + else
4264 + # We have old collect2
4265 + _LT_AC_TAGVAR(hardcode_direct, $1)=unsupported
4266 + # It fails to find uninstalled libraries when the uninstalled
4267 + # path is not listed in the libpath. Setting hardcode_minus_L
4268 + # to unsupported forces relinking
4269 + _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
4270 + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
4271 + _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
4272 + fi
4273 + ;;
4274 + esac
4275 + shared_flag='-shared'
4276 + if test "$aix_use_runtimelinking" = yes; then
4277 + shared_flag="$shared_flag "'${wl}-G'
4278 + fi
4279 + else
4280 + # not using gcc
4281 + if test "$host_cpu" = ia64; then
4282 + # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
4283 + # chokes on -Wl,-G. The following line is correct:
4284 + shared_flag='-G'
4285 + else
4286 + if test "$aix_use_runtimelinking" = yes; then
4287 + shared_flag='${wl}-G'
4288 + else
4289 + shared_flag='${wl}-bM:SRE'
4290 + fi
4291 + fi
4292 + fi
4293 +
4294 + # It seems that -bexpall does not export symbols beginning with
4295 + # underscore (_), so it is better to generate a list of symbols to export.
4296 + _LT_AC_TAGVAR(always_export_symbols, $1)=yes
4297 + if test "$aix_use_runtimelinking" = yes; then
4298 + # Warning - without using the other runtime loading flags (-brtl),
4299 + # -berok will link without error, but may produce a broken library.
4300 + _LT_AC_TAGVAR(allow_undefined_flag, $1)='-berok'
4301 + # Determine the default libpath from the value encoded in an empty executable.
4302 + _LT_AC_SYS_LIBPATH_AIX
4303 + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
4304 +
4305 + _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
4306 + else
4307 + if test "$host_cpu" = ia64; then
4308 + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib'
4309 + _LT_AC_TAGVAR(allow_undefined_flag, $1)="-z nodefs"
4310 + _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
4311 + else
4312 + # Determine the default libpath from the value encoded in an empty executable.
4313 + _LT_AC_SYS_LIBPATH_AIX
4314 + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
4315 + # Warning - without using the other run time loading flags,
4316 + # -berok will link without error, but may produce a broken library.
4317 + _LT_AC_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok'
4318 + _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok'
4319 + # Exported symbols can be pulled into shared objects from archives
4320 + _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='$convenience'
4321 + _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes
4322 + # This is similar to how AIX traditionally builds its shared libraries.
4323 + _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
4324 + fi
4325 + fi
4326 + ;;
4327 +
4328 + beos*)
4329 + if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
4330 + _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
4331 + # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
4332 + # support --undefined. This deserves some investigation. FIXME
4333 + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
4334 + else
4335 + _LT_AC_TAGVAR(ld_shlibs, $1)=no
4336 + fi
4337 + ;;
4338 +
4339 + chorus*)
4340 + case $cc_basename in
4341 + *)
4342 + # FIXME: insert proper C++ library support
4343 + _LT_AC_TAGVAR(ld_shlibs, $1)=no
4344 + ;;
4345 + esac
4346 + ;;
4347 +
4348 + cygwin* | mingw* | pw32*)
4349 + # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless,
4350 + # as there is no search path for DLLs.
4351 + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
4352 + _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
4353 + _LT_AC_TAGVAR(always_export_symbols, $1)=no
4354 + _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
4355 +
4356 + if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
4357 + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
4358 + # If the export-symbols file already is a .def file (1st line
4359 + # is EXPORTS), use it as is; otherwise, prepend...
4360 + _LT_AC_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
4361 + cp $export_symbols $output_objdir/$soname.def;
4362 + else
4363 + echo EXPORTS > $output_objdir/$soname.def;
4364 + cat $export_symbols >> $output_objdir/$soname.def;
4365 + fi~
4366 + $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
4367 + else
4368 + _LT_AC_TAGVAR(ld_shlibs, $1)=no
4369 + fi
4370 + ;;
4371 + darwin* | rhapsody*)
4372 + case $host_os in
4373 + rhapsody* | darwin1.[[012]])
4374 + _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-undefined ${wl}suppress'
4375 + ;;
4376 + *) # Darwin 1.3 on
4377 + if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
4378 + _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
4379 + else
4380 + case ${MACOSX_DEPLOYMENT_TARGET} in
4381 + 10.[[012]])
4382 + _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
4383 + ;;
4384 + 10.*)
4385 + _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-undefined ${wl}dynamic_lookup'
4386 + ;;
4387 + esac
4388 + fi
4389 + ;;
4390 + esac
4391 + _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
4392 + _LT_AC_TAGVAR(hardcode_direct, $1)=no
4393 + _LT_AC_TAGVAR(hardcode_automatic, $1)=yes
4394 + _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
4395 + _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=''
4396 + _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
4397 +
4398 + if test "$GXX" = yes ; then
4399 + lt_int_apple_cc_single_mod=no
4400 + output_verbose_link_cmd='echo'
4401 + if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
4402 + lt_int_apple_cc_single_mod=yes
4403 + fi
4404 + if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
4405 + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
4406 + else
4407 + _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'
4408 + fi
4409 + _LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
4410 + # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
4411 + if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
4412 + _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}'
4413 + else
4414 + _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}'
4415 + fi
4416 + _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}'
4417 + else
4418 + case $cc_basename in
4419 + xlc*)
4420 + output_verbose_link_cmd='echo'
4421 + _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'
4422 + _LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
4423 + # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
4424 + _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}'
4425 + _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}'
4426 + ;;
4427 + *)
4428 + _LT_AC_TAGVAR(ld_shlibs, $1)=no
4429 + ;;
4430 + esac
4431 + fi
4432 + ;;
4433 +
4434 + dgux*)
4435 + case $cc_basename in
4436 + ec++*)
4437 + # FIXME: insert proper C++ library support
4438 + _LT_AC_TAGVAR(ld_shlibs, $1)=no
4439 + ;;
4440 + ghcx*)
4441 + # Green Hills C++ Compiler
4442 + # FIXME: insert proper C++ library support
4443 + _LT_AC_TAGVAR(ld_shlibs, $1)=no
4444 + ;;
4445 + *)
4446 + # FIXME: insert proper C++ library support
4447 + _LT_AC_TAGVAR(ld_shlibs, $1)=no
4448 + ;;
4449 + esac
4450 + ;;
4451 + freebsd[[12]]*)
4452 + # C++ shared libraries reported to be fairly broken before switch to ELF
4453 + _LT_AC_TAGVAR(ld_shlibs, $1)=no
4454 + ;;
4455 + freebsd-elf*)
4456 + _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
4457 + ;;
4458 + freebsd* | dragonfly*)
4459 + # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
4460 + # conventions
4461 + _LT_AC_TAGVAR(ld_shlibs, $1)=yes
4462 + ;;
4463 + gnu*)
4464 + ;;
4465 + hpux9*)
4466 + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
4467 + _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
4468 + _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
4469 + _LT_AC_TAGVAR(hardcode_direct, $1)=yes
4470 + _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH,
4471 + # but as the default
4472 + # location of the library.
4473 +
4474 + case $cc_basename in
4475 + CC*)
4476 + # FIXME: insert proper C++ library support
4477 + _LT_AC_TAGVAR(ld_shlibs, $1)=no
4478 + ;;
4479 + aCC*)
4480 + _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'
4481 + # Commands to make compiler produce verbose output that lists
4482 + # what "hidden" libraries, object files and flags are used when
4483 + # linking a shared library.
4484 + #
4485 + # There doesn't appear to be a way to prevent this compiler from
4486 + # explicitly linking system object files so we need to strip them
4487 + # from the output so that they don't get included in the library
4488 + # dependencies.
4489 + 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'
4490 + ;;
4491 + *)
4492 + if test "$GXX" = yes; then
4493 + _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'
4494 + else
4495 + # FIXME: insert proper C++ library support
4496 + _LT_AC_TAGVAR(ld_shlibs, $1)=no
4497 + fi
4498 + ;;
4499 + esac
4500 + ;;
4501 + hpux10*|hpux11*)
4502 + if test $with_gnu_ld = no; then
4503 + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
4504 + _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
4505 +
4506 + case $host_cpu in
4507 + hppa*64*|ia64*)
4508 + _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='+b $libdir'
4509 + ;;
4510 + *)
4511 + _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
4512 + ;;
4513 + esac
4514 + fi
4515 + case $host_cpu in
4516 + hppa*64*|ia64*)
4517 + _LT_AC_TAGVAR(hardcode_direct, $1)=no
4518 + _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
4519 + ;;
4520 + *)
4521 + _LT_AC_TAGVAR(hardcode_direct, $1)=yes
4522 + _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH,
4523 + # but as the default
4524 + # location of the library.
4525 + ;;
4526 + esac
4527 +
4528 + case $cc_basename in
4529 + CC*)
4530 + # FIXME: insert proper C++ library support
4531 + _LT_AC_TAGVAR(ld_shlibs, $1)=no
4532 + ;;
4533 + aCC*)
4534 + case $host_cpu in
4535 + hppa*64*)
4536 + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
4537 + ;;
4538 + ia64*)
4539 + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
4540 + ;;
4541 + *)
4542 + _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'
4543 + ;;
4544 + esac
4545 + # Commands to make compiler produce verbose output that lists
4546 + # what "hidden" libraries, object files and flags are used when
4547 + # linking a shared library.
4548 + #
4549 + # There doesn't appear to be a way to prevent this compiler from
4550 + # explicitly linking system object files so we need to strip them
4551 + # from the output so that they don't get included in the library
4552 + # dependencies.
4553 + 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'
4554 + ;;
4555 + *)
4556 + if test "$GXX" = yes; then
4557 + if test $with_gnu_ld = no; then
4558 + case $host_cpu in
4559 + hppa*64*)
4560 + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
4561 + ;;
4562 + ia64*)
4563 + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
4564 + ;;
4565 + *)
4566 + _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'
4567 + ;;
4568 + esac
4569 + fi
4570 + else
4571 + # FIXME: insert proper C++ library support
4572 + _LT_AC_TAGVAR(ld_shlibs, $1)=no
4573 + fi
4574 + ;;
4575 + esac
4576 + ;;
4577 + interix3*)
4578 + _LT_AC_TAGVAR(hardcode_direct, $1)=no
4579 + _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
4580 + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
4581 + _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
4582 + # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
4583 + # Instead, shared libraries are loaded at an image base (0x10000000 by
4584 + # default) and relocated if they conflict, which is a slow very memory
4585 + # consuming and fragmenting process. To avoid this, we pick a random,
4586 + # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
4587 + # time. Moving up from 0x10000000 also allows more sbrk(2) space.
4588 + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
4589 + _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
4590 + ;;
4591 + irix5* | irix6*)
4592 + case $cc_basename in
4593 + CC*)
4594 + # SGI C++
4595 + _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'
4596 +
4597 + # Archives containing C++ object files must be created using
4598 + # "CC -ar", where "CC" is the IRIX C++ compiler. This is
4599 + # necessary to make sure instantiated templates are included
4600 + # in the archive.
4601 + _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -ar -WR,-u -o $oldlib $oldobjs'
4602 + ;;
4603 + *)
4604 + if test "$GXX" = yes; then
4605 + if test "$with_gnu_ld" = no; then
4606 + _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'
4607 + else
4608 + _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'
4609 + fi
4610 + fi
4611 + _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
4612 + ;;
4613 + esac
4614 + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
4615 + _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
4616 + ;;
4617 + linux* | k*bsd*-gnu)
4618 + case $cc_basename in
4619 + KCC*)
4620 + # Kuck and Associates, Inc. (KAI) C++ Compiler
4621 +
4622 + # KCC will only create a shared library if the output file
4623 + # ends with ".so" (or ".sl" for HP-UX), so rename the library
4624 + # to its proper name (with version) after linking.
4625 + _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'
4626 + _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'
4627 + # Commands to make compiler produce verbose output that lists
4628 + # what "hidden" libraries, object files and flags are used when
4629 + # linking a shared library.
4630 + #
4631 + # There doesn't appear to be a way to prevent this compiler from
4632 + # explicitly linking system object files so we need to strip them
4633 + # from the output so that they don't get included in the library
4634 + # dependencies.
4635 + 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'
4636 +
4637 + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath,$libdir'
4638 + _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
4639 +
4640 + # Archives containing C++ object files must be created using
4641 + # "CC -Bstatic", where "CC" is the KAI C++ compiler.
4642 + _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs'
4643 + ;;
4644 + icpc*)
4645 + # Intel C++
4646 + with_gnu_ld=yes
4647 + # version 8.0 and above of icpc choke on multiply defined symbols
4648 + # if we add $predep_objects and $postdep_objects, however 7.1 and
4649 + # earlier do not add the objects themselves.
4650 + case `$CC -V 2>&1` in
4651 + *"Version 7."*)
4652 + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
4653 + _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'
4654 + ;;
4655 + *) # Version 8.0 or newer
4656 + tmp_idyn=
4657 + case $host_cpu in
4658 + ia64*) tmp_idyn=' -i_dynamic';;
4659 + esac
4660 + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
4661 + _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'
4662 + ;;
4663 + esac
4664 + _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
4665 + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
4666 + _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
4667 + _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
4668 + ;;
4669 + pgCC*)
4670 + # Portland Group C++ compiler
4671 + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
4672 + _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'
4673 +
4674 + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir'
4675 + _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
4676 + _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'
4677 + ;;
4678 + cxx*)
4679 + # Compaq C++
4680 + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
4681 + _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'
4682 +
4683 + runpath_var=LD_RUN_PATH
4684 + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
4685 + _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
4686 +
4687 + # Commands to make compiler produce verbose output that lists
4688 + # what "hidden" libraries, object files and flags are used when
4689 + # linking a shared library.
4690 + #
4691 + # There doesn't appear to be a way to prevent this compiler from
4692 + # explicitly linking system object files so we need to strip them
4693 + # from the output so that they don't get included in the library
4694 + # dependencies.
4695 + 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'
4696 + ;;
4697 + esac
4698 + ;;
4699 + lynxos*)
4700 + # FIXME: insert proper C++ library support
4701 + _LT_AC_TAGVAR(ld_shlibs, $1)=no
4702 + ;;
4703 + m88k*)
4704 + # FIXME: insert proper C++ library support
4705 + _LT_AC_TAGVAR(ld_shlibs, $1)=no
4706 + ;;
4707 + mvs*)
4708 + case $cc_basename in
4709 + cxx*)
4710 + # FIXME: insert proper C++ library support
4711 + _LT_AC_TAGVAR(ld_shlibs, $1)=no
4712 + ;;
4713 + *)
4714 + # FIXME: insert proper C++ library support
4715 + _LT_AC_TAGVAR(ld_shlibs, $1)=no
4716 + ;;
4717 + esac
4718 + ;;
4719 + netbsd* | netbsdelf*-gnu)
4720 + if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
4721 + _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
4722 + wlarc=
4723 + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
4724 + _LT_AC_TAGVAR(hardcode_direct, $1)=yes
4725 + _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
4726 + fi
4727 + # Workaround some broken pre-1.5 toolchains
4728 + output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
4729 + ;;
4730 + openbsd2*)
4731 + # C++ shared libraries are fairly broken
4732 + _LT_AC_TAGVAR(ld_shlibs, $1)=no
4733 + ;;
4734 + openbsd*)
4735 + _LT_AC_TAGVAR(hardcode_direct, $1)=yes
4736 + _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
4737 + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
4738 + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
4739 + if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4740 + _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'
4741 + _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
4742 + _LT_AC_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
4743 + fi
4744 + output_verbose_link_cmd='echo'
4745 + ;;
4746 + osf3*)
4747 + case $cc_basename in
4748 + KCC*)
4749 + # Kuck and Associates, Inc. (KAI) C++ Compiler
4750 +
4751 + # KCC will only create a shared library if the output file
4752 + # ends with ".so" (or ".sl" for HP-UX), so rename the library
4753 + # to its proper name (with version) after linking.
4754 + _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'
4755 +
4756 + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
4757 + _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
4758 +
4759 + # Archives containing C++ object files must be created using
4760 + # "CC -Bstatic", where "CC" is the KAI C++ compiler.
4761 + _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs'
4762 +
4763 + ;;
4764 + RCC*)
4765 + # Rational C++ 2.4.1
4766 + # FIXME: insert proper C++ library support
4767 + _LT_AC_TAGVAR(ld_shlibs, $1)=no
4768 + ;;
4769 + cxx*)
4770 + _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
4771 + _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'
4772 +
4773 + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
4774 + _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
4775 +
4776 + # Commands to make compiler produce verbose output that lists
4777 + # what "hidden" libraries, object files and flags are used when
4778 + # linking a shared library.
4779 + #
4780 + # There doesn't appear to be a way to prevent this compiler from
4781 + # explicitly linking system object files so we need to strip them
4782 + # from the output so that they don't get included in the library
4783 + # dependencies.
4784 + 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'
4785 + ;;
4786 + *)
4787 + if test "$GXX" = yes && test "$with_gnu_ld" = no; then
4788 + _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
4789 + _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'
4790 +
4791 + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
4792 + _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
4793 +
4794 + # Commands to make compiler produce verbose output that lists
4795 + # what "hidden" libraries, object files and flags are used when
4796 + # linking a shared library.
4797 + output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
4798 +
4799 + else
4800 + # FIXME: insert proper C++ library support
4801 + _LT_AC_TAGVAR(ld_shlibs, $1)=no
4802 + fi
4803 + ;;
4804 + esac
4805 + ;;
4806 + osf4* | osf5*)
4807 + case $cc_basename in
4808 + KCC*)
4809 + # Kuck and Associates, Inc. (KAI) C++ Compiler
4810 +
4811 + # KCC will only create a shared library if the output file
4812 + # ends with ".so" (or ".sl" for HP-UX), so rename the library
4813 + # to its proper name (with version) after linking.
4814 + _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'
4815 +
4816 + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
4817 + _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
4818 +
4819 + # Archives containing C++ object files must be created using
4820 + # the KAI C++ compiler.
4821 + _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -o $oldlib $oldobjs'
4822 + ;;
4823 + RCC*)
4824 + # Rational C++ 2.4.1
4825 + # FIXME: insert proper C++ library support
4826 + _LT_AC_TAGVAR(ld_shlibs, $1)=no
4827 + ;;
4828 + cxx*)
4829 + _LT_AC_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
4830 + _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'
4831 + _LT_AC_TAGVAR(archive_expsym_cmds, $1)='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
4832 + echo "-hidden">> $lib.exp~
4833 + $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~
4834 + $rm $lib.exp'
4835 +
4836 + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
4837 + _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
4838 +
4839 + # Commands to make compiler produce verbose output that lists
4840 + # what "hidden" libraries, object files and flags are used when
4841 + # linking a shared library.
4842 + #
4843 + # There doesn't appear to be a way to prevent this compiler from
4844 + # explicitly linking system object files so we need to strip them
4845 + # from the output so that they don't get included in the library
4846 + # dependencies.
4847 + 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'
4848 + ;;
4849 + *)
4850 + if test "$GXX" = yes && test "$with_gnu_ld" = no; then
4851 + _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
4852 + _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'
4853 +
4854 + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
4855 + _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
4856 +
4857 + # Commands to make compiler produce verbose output that lists
4858 + # what "hidden" libraries, object files and flags are used when
4859 + # linking a shared library.
4860 + output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
4861 +
4862 + else
4863 + # FIXME: insert proper C++ library support
4864 + _LT_AC_TAGVAR(ld_shlibs, $1)=no
4865 + fi
4866 + ;;
4867 + esac
4868 + ;;
4869 + psos*)
4870 + # FIXME: insert proper C++ library support
4871 + _LT_AC_TAGVAR(ld_shlibs, $1)=no
4872 + ;;
4873 + sunos4*)
4874 + case $cc_basename in
4875 + CC*)
4876 + # Sun C++ 4.x
4877 + # FIXME: insert proper C++ library support
4878 + _LT_AC_TAGVAR(ld_shlibs, $1)=no
4879 + ;;
4880 + lcc*)
4881 + # Lucid
4882 + # FIXME: insert proper C++ library support
4883 + _LT_AC_TAGVAR(ld_shlibs, $1)=no
4884 + ;;
4885 + *)
4886 + # FIXME: insert proper C++ library support
4887 + _LT_AC_TAGVAR(ld_shlibs, $1)=no
4888 + ;;
4889 + esac
4890 + ;;
4891 + solaris*)
4892 + case $cc_basename in
4893 + CC*)
4894 + # Sun C++ 4.2, 5.x and Centerline C++
4895 + _LT_AC_TAGVAR(archive_cmds_need_lc,$1)=yes
4896 + _LT_AC_TAGVAR(no_undefined_flag, $1)=' -zdefs'
4897 + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
4898 + _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
4899 + $CC -G${allow_undefined_flag} ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
4900 +
4901 + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
4902 + _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
4903 + case $host_os in
4904 + solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
4905 + *)
4906 + # The C++ compiler is used as linker so we must use $wl
4907 + # flag to pass the commands to the underlying system
4908 + # linker. We must also pass each convience library through
4909 + # to the system linker between allextract/defaultextract.
4910 + # The C++ compiler will combine linker options so we
4911 + # cannot just pass the convience library names through
4912 + # without $wl.
4913 + # Supported since Solaris 2.6 (maybe 2.5.1?)
4914 + _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'
4915 + ;;
4916 + esac
4917 + _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
4918 +
4919 + output_verbose_link_cmd='echo'
4920 +
4921 + # Archives containing C++ object files must be created using
4922 + # "CC -xar", where "CC" is the Sun C++ compiler. This is
4923 + # necessary to make sure instantiated templates are included
4924 + # in the archive.
4925 + _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs'
4926 + ;;
4927 + gcx*)
4928 + # Green Hills C++ Compiler
4929 + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
4930 +
4931 + # The C++ compiler must be used to create the archive.
4932 + _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
4933 + ;;
4934 + *)
4935 + # GNU C++ compiler with Solaris linker
4936 + if test "$GXX" = yes && test "$with_gnu_ld" = no; then
4937 + _LT_AC_TAGVAR(no_undefined_flag, $1)=' ${wl}-z ${wl}defs'
4938 + if $CC --version | grep -v '^2\.7' > /dev/null; then
4939 + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
4940 + _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
4941 + $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
4942 +
4943 + # Commands to make compiler produce verbose output that lists
4944 + # what "hidden" libraries, object files and flags are used when
4945 + # linking a shared library.
4946 + output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
4947 + else
4948 + # g++ 2.7 appears to require `-G' NOT `-shared' on this
4949 + # platform.
4950 + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
4951 + _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
4952 + $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
4953 +
4954 + # Commands to make compiler produce verbose output that lists
4955 + # what "hidden" libraries, object files and flags are used when
4956 + # linking a shared library.
4957 + output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
4958 + fi
4959 +
4960 + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $wl$libdir'
4961 + fi
4962 + ;;
4963 + esac
4964 + ;;
4965 + sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7* | sco3.2v5.0.[[024]]*)
4966 + _LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
4967 + _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
4968 + _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
4969 + runpath_var='LD_RUN_PATH'
4970 +
4971 + case $cc_basename in
4972 + CC*)
4973 + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
4974 + _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
4975 + ;;
4976 + *)
4977 + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
4978 + _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
4979 + ;;
4980 + esac
4981 + ;;
4982 + sysv5* | sco3.2v5* | sco5v6*)
4983 + # Note: We can NOT use -z defs as we might desire, because we do not
4984 + # link with -lc, and that would cause any symbols used from libc to
4985 + # always be unresolved, which means just about no library would
4986 + # ever link correctly. If we're not using GNU ld we use -z text
4987 + # though, which does catch some bad symbols but isn't as heavy-handed
4988 + # as -z defs.
4989 + # For security reasons, it is highly recommended that you always
4990 + # use absolute paths for naming shared libraries, and exclude the
4991 + # DT_RUNPATH tag from executables and libraries. But doing so
4992 + # requires that you compile everything twice, which is a pain.
4993 + # So that behaviour is only enabled if SCOABSPATH is set to a
4994 + # non-empty value in the environment. Most likely only useful for
4995 + # creating official distributions of packages.
4996 + # This is a hack until libtool officially supports absolute path
4997 + # names for shared libraries.
4998 + _LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
4999 + _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-z,nodefs'
5000 + _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
5001 + _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
5002 + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
5003 + _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=':'
5004 + _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
5005 + _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport'
5006 + runpath_var='LD_RUN_PATH'
5007 +
5008 + case $cc_basename in
5009 + CC*)
5010 + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
5011 + _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
5012 + ;;
5013 + *)
5014 + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
5015 + _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
5016 + ;;
5017 + esac
5018 + ;;
5019 + tandem*)
5020 + case $cc_basename in
5021 + NCC*)
5022 + # NonStop-UX NCC 3.20
5023 + # FIXME: insert proper C++ library support
5024 + _LT_AC_TAGVAR(ld_shlibs, $1)=no
5025 + ;;
5026 + *)
5027 + # FIXME: insert proper C++ library support
5028 + _LT_AC_TAGVAR(ld_shlibs, $1)=no
5029 + ;;
5030 + esac
5031 + ;;
5032 + vxworks*)
5033 + # FIXME: insert proper C++ library support
5034 + _LT_AC_TAGVAR(ld_shlibs, $1)=no
5035 + ;;
5036 + *)
5037 + # FIXME: insert proper C++ library support
5038 + _LT_AC_TAGVAR(ld_shlibs, $1)=no
5039 + ;;
5040 +esac
5041 +AC_MSG_RESULT([$_LT_AC_TAGVAR(ld_shlibs, $1)])
5042 +test "$_LT_AC_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no
5043 +
5044 +_LT_AC_TAGVAR(GCC, $1)="$GXX"
5045 +_LT_AC_TAGVAR(LD, $1)="$LD"
5046 +
5047 +AC_LIBTOOL_POSTDEP_PREDEP($1)
5048 +AC_LIBTOOL_PROG_COMPILER_PIC($1)
5049 +AC_LIBTOOL_PROG_CC_C_O($1)
5050 +AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1)
5051 +AC_LIBTOOL_PROG_LD_SHLIBS($1)
5052 +AC_LIBTOOL_SYS_DYNAMIC_LINKER($1)
5053 +AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1)
5054 +
5055 +AC_LIBTOOL_CONFIG($1)
5056 +
5057 +AC_LANG_POP
5058 +CC=$lt_save_CC
5059 +LDCXX=$LD
5060 +LD=$lt_save_LD
5061 +GCC=$lt_save_GCC
5062 +with_gnu_ldcxx=$with_gnu_ld
5063 +with_gnu_ld=$lt_save_with_gnu_ld
5064 +lt_cv_path_LDCXX=$lt_cv_path_LD
5065 +lt_cv_path_LD=$lt_save_path_LD
5066 +lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
5067 +lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
5068 +])# AC_LIBTOOL_LANG_CXX_CONFIG
5069 +
5070 +# AC_LIBTOOL_POSTDEP_PREDEP([TAGNAME])
5071 +# ------------------------------------
5072 +# Figure out "hidden" library dependencies from verbose
5073 +# compiler output when linking a shared library.
5074 +# Parse the compiler output and extract the necessary
5075 +# objects, libraries and library flags.
5076 +AC_DEFUN([AC_LIBTOOL_POSTDEP_PREDEP],[
5077 +dnl we can't use the lt_simple_compile_test_code here,
5078 +dnl because it contains code intended for an executable,
5079 +dnl not a library. It's possible we should let each
5080 +dnl tag define a new lt_????_link_test_code variable,
5081 +dnl but it's only used here...
5082 +ifelse([$1],[],[cat > conftest.$ac_ext <<EOF
5083 +int a;
5084 +void foo (void) { a = 0; }
5085 +EOF
5086 +],[$1],[CXX],[cat > conftest.$ac_ext <<EOF
5087 +class Foo
5088 {
5089 +public:
5090 + Foo (void) { a = 0; }
5091 +private:
5092 + int a;
5093 +};
5094 EOF
5095 - sed "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr) \&\2},/" < "$nlist" >> conftest.$ac_ext
5096 - cat <<\EOF >> conftest.$ac_ext
5097 - {0, (lt_ptr) 0}
5098 +],[$1],[F77],[cat > conftest.$ac_ext <<EOF
5099 + subroutine foo
5100 + implicit none
5101 + integer*4 a
5102 + a=0
5103 + return
5104 + end
5105 +EOF
5106 +],[$1],[GCJ],[cat > conftest.$ac_ext <<EOF
5107 +public class foo {
5108 + private int a;
5109 + public void bar (void) {
5110 + a = 0;
5111 + }
5112 };
5113 -
5114 -#ifdef __cplusplus
5115 -}
5116 -#endif
5117 EOF
5118 - # Now try linking the two files.
5119 - mv conftest.$ac_objext conftstm.$ac_objext
5120 - save_LIBS="$LIBS"
5121 - save_CFLAGS="$CFLAGS"
5122 - LIBS="conftstm.$ac_objext"
5123 - CFLAGS="$CFLAGS$no_builtin_flag"
5124 - if AC_TRY_EVAL(ac_link) && test -s conftest$ac_exeext; then
5125 - pipe_works=yes
5126 - fi
5127 - LIBS="$save_LIBS"
5128 - CFLAGS="$save_CFLAGS"
5129 - else
5130 - echo "cannot find nm_test_func in $nlist" >&AC_FD_CC
5131 - fi
5132 - else
5133 - echo "cannot find nm_test_var in $nlist" >&AC_FD_CC
5134 - fi
5135 - else
5136 - echo "cannot run $lt_cv_sys_global_symbol_pipe" >&AC_FD_CC
5137 - fi
5138 - else
5139 - echo "$progname: failed program was:" >&AC_FD_CC
5140 - cat conftest.$ac_ext >&5
5141 - fi
5142 - rm -f conftest* conftst*
5143 -
5144 - # Do not use the global_symbol_pipe unless it works.
5145 - if test "$pipe_works" = yes; then
5146 - break
5147 - else
5148 - lt_cv_sys_global_symbol_pipe=
5149 - fi
5150 -done
5151 ])
5152 -global_symbol_pipe="$lt_cv_sys_global_symbol_pipe"
5153 -if test -z "$lt_cv_sys_global_symbol_pipe"; then
5154 - global_symbol_to_cdecl=
5155 - global_symbol_to_c_name_address=
5156 -else
5157 - global_symbol_to_cdecl="$lt_cv_global_symbol_to_cdecl"
5158 - global_symbol_to_c_name_address="$lt_cv_global_symbol_to_c_name_address"
5159 -fi
5160 -if test -z "$global_symbol_pipe$global_symbol_to_cdec$global_symbol_to_c_name_address";
5161 -then
5162 - AC_MSG_RESULT(failed)
5163 +dnl Parse the compiler output and extract the necessary
5164 +dnl objects, libraries and library flags.
5165 +if AC_TRY_EVAL(ac_compile); then
5166 + # Parse the compiler output and extract the necessary
5167 + # objects, libraries and library flags.
5168 +
5169 + # Sentinel used to keep track of whether or not we are before
5170 + # the conftest object file.
5171 + pre_test_object_deps_done=no
5172 +
5173 + # The `*' in the case matches for architectures that use `case' in
5174 + # $output_verbose_cmd can trigger glob expansion during the loop
5175 + # eval without this substitution.
5176 + output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
5177 +
5178 + for p in `eval $output_verbose_link_cmd`; do
5179 + case $p in
5180 +
5181 + -L* | -R* | -l*)
5182 + # Some compilers place space between "-{L,R}" and the path.
5183 + # Remove the space.
5184 + if test $p = "-L" \
5185 + || test $p = "-R"; then
5186 + prev=$p
5187 + continue
5188 + else
5189 + prev=
5190 + fi
5191 +
5192 + if test "$pre_test_object_deps_done" = no; then
5193 + case $p in
5194 + -L* | -R*)
5195 + # Internal compiler library paths should come after those
5196 + # provided the user. The postdeps already come after the
5197 + # user supplied libs so there is no need to process them.
5198 + if test -z "$_LT_AC_TAGVAR(compiler_lib_search_path, $1)"; then
5199 + _LT_AC_TAGVAR(compiler_lib_search_path, $1)="${prev}${p}"
5200 + else
5201 + _LT_AC_TAGVAR(compiler_lib_search_path, $1)="${_LT_AC_TAGVAR(compiler_lib_search_path, $1)} ${prev}${p}"
5202 + fi
5203 + ;;
5204 + # The "-l" case would never come before the object being
5205 + # linked, so don't bother handling this case.
5206 + esac
5207 + else
5208 + if test -z "$_LT_AC_TAGVAR(postdeps, $1)"; then
5209 + _LT_AC_TAGVAR(postdeps, $1)="${prev}${p}"
5210 + else
5211 + _LT_AC_TAGVAR(postdeps, $1)="${_LT_AC_TAGVAR(postdeps, $1)} ${prev}${p}"
5212 + fi
5213 + fi
5214 + ;;
5215 +
5216 + *.$objext)
5217 + # This assumes that the test object file only shows up
5218 + # once in the compiler output.
5219 + if test "$p" = "conftest.$objext"; then
5220 + pre_test_object_deps_done=yes
5221 + continue
5222 + fi
5223 +
5224 + if test "$pre_test_object_deps_done" = no; then
5225 + if test -z "$_LT_AC_TAGVAR(predep_objects, $1)"; then
5226 + _LT_AC_TAGVAR(predep_objects, $1)="$p"
5227 + else
5228 + _LT_AC_TAGVAR(predep_objects, $1)="$_LT_AC_TAGVAR(predep_objects, $1) $p"
5229 + fi
5230 + else
5231 + if test -z "$_LT_AC_TAGVAR(postdep_objects, $1)"; then
5232 + _LT_AC_TAGVAR(postdep_objects, $1)="$p"
5233 + else
5234 + _LT_AC_TAGVAR(postdep_objects, $1)="$_LT_AC_TAGVAR(postdep_objects, $1) $p"
5235 + fi
5236 + fi
5237 + ;;
5238 +
5239 + *) ;; # Ignore the rest.
5240 +
5241 + esac
5242 + done
5243 +
5244 + # Clean up.
5245 + rm -f a.out a.exe
5246 else
5247 - AC_MSG_RESULT(ok)
5248 + echo "libtool.m4: error: problem compiling $1 test program"
5249 fi
5250 -]) # AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE
5251
5252 -# _LT_AC_LIBTOOL_SYS_PATH_SEPARATOR
5253 -# ---------------------------------
5254 -AC_DEFUN([_LT_AC_LIBTOOL_SYS_PATH_SEPARATOR],
5255 -[# Find the correct PATH separator. Usually this is `:', but
5256 -# DJGPP uses `;' like DOS.
5257 -if test "X${PATH_SEPARATOR+set}" != Xset; then
5258 - UNAME=${UNAME-`uname 2>/dev/null`}
5259 - case X$UNAME in
5260 - *-DOS) lt_cv_sys_path_separator=';' ;;
5261 - *) lt_cv_sys_path_separator=':' ;;
5262 +$rm -f confest.$objext
5263 +
5264 +# PORTME: override above test on systems where it is broken
5265 +ifelse([$1],[CXX],
5266 +[case $host_os in
5267 +interix3*)
5268 + # Interix 3.5 installs completely hosed .la files for C++, so rather than
5269 + # hack all around it, let's just trust "g++" to DTRT.
5270 + _LT_AC_TAGVAR(predep_objects,$1)=
5271 + _LT_AC_TAGVAR(postdep_objects,$1)=
5272 + _LT_AC_TAGVAR(postdeps,$1)=
5273 + ;;
5274 +
5275 +solaris*)
5276 + case $cc_basename in
5277 + CC*)
5278 + # Adding this requires a known-good setup of shared libraries for
5279 + # Sun compiler versions before 5.6, else PIC objects from an old
5280 + # archive will be linked into the output, leading to subtle bugs.
5281 + _LT_AC_TAGVAR(postdeps,$1)='-lCstd -lCrun'
5282 + ;;
5283 esac
5284 - PATH_SEPARATOR=$lt_cv_sys_path_separator
5285 -fi
5286 -])# _LT_AC_LIBTOOL_SYS_PATH_SEPARATOR
5287 + ;;
5288 +esac
5289 +])
5290
5291 -# _LT_AC_PROG_ECHO_BACKSLASH
5292 +case " $_LT_AC_TAGVAR(postdeps, $1) " in
5293 +*" -lc "*) _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no ;;
5294 +esac
5295 +])# AC_LIBTOOL_POSTDEP_PREDEP
5296 +
5297 +# AC_LIBTOOL_LANG_F77_CONFIG
5298 # --------------------------
5299 -# Add some code to the start of the generated configure script which
5300 -# will find an echo command which doesn't interpret backslashes.
5301 -AC_DEFUN([_LT_AC_PROG_ECHO_BACKSLASH],
5302 -[ifdef([AC_DIVERSION_NOTICE], [AC_DIVERT_PUSH(AC_DIVERSION_NOTICE)],
5303 - [AC_DIVERT_PUSH(NOTICE)])
5304 -_LT_AC_LIBTOOL_SYS_PATH_SEPARATOR
5305 +# Ensure that the configuration vars for the C compiler are
5306 +# suitably defined. Those variables are subsequently used by
5307 +# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
5308 +AC_DEFUN([AC_LIBTOOL_LANG_F77_CONFIG], [_LT_AC_LANG_F77_CONFIG(F77)])
5309 +AC_DEFUN([_LT_AC_LANG_F77_CONFIG],
5310 +[AC_REQUIRE([AC_PROG_F77])
5311 +AC_LANG_PUSH(Fortran 77)
5312 +
5313 +_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
5314 +_LT_AC_TAGVAR(allow_undefined_flag, $1)=
5315 +_LT_AC_TAGVAR(always_export_symbols, $1)=no
5316 +_LT_AC_TAGVAR(archive_expsym_cmds, $1)=
5317 +_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)=
5318 +_LT_AC_TAGVAR(hardcode_direct, $1)=no
5319 +_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=
5320 +_LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
5321 +_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
5322 +_LT_AC_TAGVAR(hardcode_minus_L, $1)=no
5323 +_LT_AC_TAGVAR(hardcode_automatic, $1)=no
5324