nProbe 4.1 package
[openwrt/svn-archive/archive.git] / net / nprobe / patches / 000-autogen_fixup.patch
1 diff -ruN nProbe/acinclude.m4 nProbe.new/acinclude.m4
2 --- nProbe/acinclude.m4 1969-12-31 18:00:00.000000000 -0600
3 +++ nProbe.new/acinclude.m4 2007-05-07 16:33:32.388408000 -0500
4 @@ -0,0 +1,6621 @@
5 +#
6 +# -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
7 +# local automake definitions for ntop
8 +## (this file is processed with 'automake' to produce Makefile.in)
9 +# -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
10 +#
11 +# Copyright (c) 1998, 2000 Luca Deri <deri@ntop.org>
12 +# Updated 1Q 2000 Rocco Carbone <rocco@ntop.org>
13 +#
14 +# -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
15 +#
16 +# This program is free software; you can redistribute it and/or modify
17 +# it under the terms of the GNU General Public License as published by
18 +# the Free Software Foundation; either version 2 of the License, or
19 +# (at your option) any later version.
20 +#
21 +# This program is distributed in the hope that it will be useful,
22 +# but WITHOUT ANY WARRANTY; without even the implied warranty of
23 +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
24 +# GNU General Public License for more details.
25 +#
26 +# You should have received a copy of the GNU General Public License
27 +# along with this program; if not, write to the Free Software
28 +# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
29 +#
30 +
31 +dnl>
32 +dnl> Check for an ANSI C typedef in a header
33 +dnl>
34 +dnl> configure.in:
35 +dnl> AC_CHECK_TYPEDEF(<typedef>, <header>)
36 +dnl> acconfig.h:
37 +dnl> #undef HAVE_<typedef>
38 +dnl>
39 +
40 +AC_DEFUN(AC_CHECK_TYPEDEF,[dnl
41 +AC_REQUIRE([AC_HEADER_STDC])dnl
42 +AC_MSG_CHECKING(for typedef $1)
43 +AC_CACHE_VAL(ac_cv_typedef_$1,
44 +[AC_EGREP_CPP(dnl
45 +changequote(<<,>>)dnl
46 +<<(^|[^a-zA-Z_0-9])$1[^a-zA-Z_0-9]>>dnl
47 +changequote([,]), [
48 +#include <$2>
49 +], ac_cv_typedef_$1=yes, ac_cv_typedef_$1=no)])dnl
50 +AC_MSG_RESULT($ac_cv_typedef_$1)
51 +if test $ac_cv_typedef_$1 = yes; then
52 + AC_DEFINE(HAVE_[]translit($1, [a-z], [A-Z]))
53 +fi
54 +])
55 +
56 +
57 +dnl>
58 +dnl> Check whether compiler option works
59 +dnl>
60 +dnl> configure.in:
61 +dnl> AC_COMPILER_OPTION(<name>, <display>, <option>,
62 +dnl> <action-success>, <action-failure>)
63 +dnl>
64 +
65 +AC_DEFUN(AC_COMPILER_OPTION,[dnl
66 +AC_MSG_CHECKING(for compiler option $2)
67 +AC_CACHE_VAL(ac_cv_compiler_option_$1,[
68 +cat >conftest.$ac_ext <<EOF
69 +int main() { return 0; }
70 +EOF
71 +${CC-cc} -c $CFLAGS $CPPFLAGS $3 conftest.$ac_ext 1>conftest.out 2>conftest.err
72 +if test $? -ne 0 -o -s conftest.err; then
73 + ac_cv_compiler_option_$1=no
74 +else
75 + ac_cv_compiler_option_$1=yes
76 +fi
77 +rm -f conftest.$ac_ext conftest.out conftest.err
78 +])dnl
79 +if test ".$ac_cv_compiler_option_$1" = .yes; then
80 + ifelse([$4], , :, [$4])
81 +else
82 + ifelse([$5], , :, [$5])
83 +fi
84 +AC_MSG_RESULT([$ac_cv_compiler_option_$1])
85 +])dnl
86 +
87 +
88 +dnl>
89 +dnl> Debugging Support
90 +dnl>
91 +dnl> configure.in:
92 +dnl> AC_CHECK_DEBUGGING
93 +dnl>
94 +
95 +AC_DEFUN(AC_CHECK_DEBUGGING,[dnl
96 +AC_ARG_ENABLE(debug,dnl
97 +[ --enable-debug build for debugging (default=no)],
98 +[dnl
99 +if test ".$ac_cv_prog_gcc" = ".yes"; then
100 + case "$CFLAGS" in
101 + *-O* ) ;;
102 + * ) CFLAGS="$CFLAGS -O2" ;;
103 + esac
104 + case "$CFLAGS" in
105 + *-g* ) ;;
106 + * ) CFLAGS="$CFLAGS -g" ;;
107 + esac
108 + case "$CFLAGS" in
109 + *-pipe* ) ;;
110 + * ) AC_COMPILER_OPTION(pipe, -pipe, -pipe, CFLAGS="$CFLAGS -pipe") ;;
111 + esac
112 + AC_COMPILER_OPTION(ggdb3, -ggdb3, -ggdb3, CFLAGS="$CFLAGS -ggdb3")
113 + case $PLATFORM in
114 + *-*-freebsd*|*-*-solaris* ) CFLAGS="$CFLAGS -pedantic" ;;
115 + esac
116 + CFLAGS="$CFLAGS -Wall"
117 + WMORE="-Wshadow -Wpointer-arith -Wcast-align -Winline"
118 + WMORE="$WMORE -Wmissing-prototypes -Wmissing-declarations -Wnested-externs"
119 + AC_COMPILER_OPTION(wmore, -W<xxx>, $WMORE, CFLAGS="$CFLAGS $WMORE")
120 +else
121 + case "$CFLAGS" in
122 + *-g* ) ;;
123 + * ) CFLAGS="$CFLAGS -g" ;;
124 + esac
125 +fi
126 +msg="enabled"
127 +AC_DEFINE(DEBUG)
128 +],[
129 +if test ".$ac_cv_prog_gcc" = ".yes"; then
130 +case "$CFLAGS" in
131 + *-pipe* ) ;;
132 + * ) AC_COMPILER_OPTION(pipe, -pipe, -pipe, CFLAGS="$CFLAGS -pipe") ;;
133 +esac
134 +fi
135 +case "$CFLAGS" in
136 + *-g* ) CFLAGS=`echo "$CFLAGS" |\
137 + sed -e 's/ -g / /g' -e 's/ -g$//' -e 's/^-g //g' -e 's/^-g$//'` ;;
138 +esac
139 +case "$CXXFLAGS" in
140 + *-g* ) CXXFLAGS=`echo "$CXXFLAGS" |\
141 + sed -e 's/ -g / /g' -e 's/ -g$//' -e 's/^-g //g' -e 's/^-g$//'` ;;
142 +esac
143 +msg="disabled"
144 +])dnl
145 +AC_MSG_CHECKING(for compilation debug mode)
146 +AC_MSG_RESULT([$msg])
147 +if test ".$msg" = .enabled; then
148 + enable_shared=no
149 +fi
150 +])
151 +
152 +dnl>
153 +dnl> Optimization Support
154 +dnl>
155 +dnl> configure.in:
156 +dnl> AC_CHECK_OPTIMIZE
157 +dnl>
158 +
159 +AC_DEFUN(AC_CHECK_OPTIMIZE,[dnl
160 +AC_ARG_ENABLE(optimize,dnl
161 +[ --enable-optimize build with optimization (default=no)],
162 +[dnl
163 +if test ".$ac_cv_prog_gcc" = ".yes"; then
164 + # compiler is gcc
165 + case "$CFLAGS" in
166 + *-O* ) ;;
167 + * ) CFLAGS="$CFLAGS -O2" ;;
168 + esac
169 + case "$CFLAGS" in
170 + *-pipe* ) ;;
171 + * ) AC_COMPILER_OPTION(pipe, -pipe, -pipe, CFLAGS="$CFLAGS -pipe") ;;
172 + esac
173 + OPT_CFLAGS='-funroll-loops -fstrength-reduce -fomit-frame-pointer -ffast-math'
174 + AC_COMPILER_OPTION(optimize_std, [-f<xxx> for optimizations], $OPT_CFLAGS, CFLAGS="$CFLAGS $OPT_CFLAGS")
175 + case $PLATFORM in
176 + i?86*-*-*|?86*-*-* )
177 + OPT_CFLAGS='-malign-functions=4 -malign-jumps=4 -malign-loops=4'
178 + AC_COMPILER_OPTION(optimize_x86, [-f<xxx> for Intel x86 CPU], $OPT_CFLAGS, CFLAGS="$CFLAGS $OPT_CFLAGS")
179 + ;;
180 + esac
181 +else
182 + # compiler is NOT gcc
183 + case "$CFLAGS" in
184 + *-O* ) ;;
185 + * ) CFLAGS="$CFLAGS -O" ;;
186 + esac
187 + case $PLATFORM in
188 + *-*-solaris* )
189 + AC_COMPILER_OPTION(fast, -fast, -fast, CFLAGS="$CFLAGS -fast")
190 + ;;
191 + esac
192 +fi
193 +msg="enabled"
194 +],[
195 +msg="disabled"
196 +])dnl
197 +AC_MSG_CHECKING(for compilation optimization mode)
198 +AC_MSG_RESULT([$msg])
199 +])
200 +
201 +# NPROBE_APPENDS(Ivalue, Lvalue, lvalue)
202 +# ----------------------------------------------
203 +AC_DEFUN([NPROBE_APPENDS],
204 +[dnl
205 +# Expansion of NPROBE_APPENDS($1, $2, $3)
206 + if test ".$1" != "."; then
207 + rc=`(echo $CPPFLAGS | grep '$1 ' > /dev/null 2> /dev/null; echo $?)`
208 + if [[ $rc -eq 1 ]]; then
209 + CPPFLAGS="$CPPFLAGS -I$1"
210 + fi
211 + rc=`(echo $INCS | grep '$1' > /dev/null 2> /dev/null; echo $?)`
212 + if [[ $rc -eq 1 ]]; then
213 + INCS="$INCS -I$1"
214 + fi
215 + fi
216 + if test ".$2" != "."; then
217 + rc=`(echo $LDFLAGS | grep '$2 ' > /dev/null 2> /dev/null; echo $?)`
218 + if [[ $rc -eq 1 ]]; then
219 + case "${DEFINEOS}" in
220 + DARWIN )
221 + LDFLAGS="$LDFLAGS -L$2 -L$2/lib"
222 + ;;
223 + * )
224 + LDFLAGS="$LDFLAGS -L$2"
225 + ;;
226 + esac
227 + fi
228 + fi
229 + if test ".$3" != "."; then
230 + rc=`(echo $LIBS | grep '\-l$3 ' > /dev/null 2> /dev/null; echo $?)`
231 + if [[ $rc -eq 1 ]]; then
232 + LIBS="$LIBS -l$3"
233 + fi
234 + fi
235 +# Finished expansion of NPROBE_APPENDS()
236 +])
237 +# libtool.m4 - Configure libtool for the host system. -*-Autoconf-*-
238 +## Copyright 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005
239 +## Free Software Foundation, Inc.
240 +## Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
241 +##
242 +## This file is free software; the Free Software Foundation gives
243 +## unlimited permission to copy and/or distribute it, with or without
244 +## modifications, as long as this notice is preserved.
245 +
246 +# serial 48 Debian 1.5.22-4 AC_PROG_LIBTOOL
247 +
248 +
249 +# AC_PROVIDE_IFELSE(MACRO-NAME, IF-PROVIDED, IF-NOT-PROVIDED)
250 +# -----------------------------------------------------------
251 +# If this macro is not defined by Autoconf, define it here.
252 +m4_ifdef([AC_PROVIDE_IFELSE],
253 + [],
254 + [m4_define([AC_PROVIDE_IFELSE],
255 + [m4_ifdef([AC_PROVIDE_$1],
256 + [$2], [$3])])])
257 +
258 +
259 +# AC_PROG_LIBTOOL
260 +# ---------------
261 +AC_DEFUN([AC_PROG_LIBTOOL],
262 +[AC_REQUIRE([_AC_PROG_LIBTOOL])dnl
263 +dnl If AC_PROG_CXX has already been expanded, run AC_LIBTOOL_CXX
264 +dnl immediately, otherwise, hook it in at the end of AC_PROG_CXX.
265 + AC_PROVIDE_IFELSE([AC_PROG_CXX],
266 + [AC_LIBTOOL_CXX],
267 + [define([AC_PROG_CXX], defn([AC_PROG_CXX])[AC_LIBTOOL_CXX
268 + ])])
269 +dnl And a similar setup for Fortran 77 support
270 + AC_PROVIDE_IFELSE([AC_PROG_F77],
271 + [AC_LIBTOOL_F77],
272 + [define([AC_PROG_F77], defn([AC_PROG_F77])[AC_LIBTOOL_F77
273 +])])
274 +
275 +dnl Quote A][M_PROG_GCJ so that aclocal doesn't bring it in needlessly.
276 +dnl If either AC_PROG_GCJ or A][M_PROG_GCJ have already been expanded, run
277 +dnl AC_LIBTOOL_GCJ immediately, otherwise, hook it in at the end of both.
278 + AC_PROVIDE_IFELSE([AC_PROG_GCJ],
279 + [AC_LIBTOOL_GCJ],
280 + [AC_PROVIDE_IFELSE([A][M_PROG_GCJ],
281 + [AC_LIBTOOL_GCJ],
282 + [AC_PROVIDE_IFELSE([LT_AC_PROG_GCJ],
283 + [AC_LIBTOOL_GCJ],
284 + [ifdef([AC_PROG_GCJ],
285 + [define([AC_PROG_GCJ], defn([AC_PROG_GCJ])[AC_LIBTOOL_GCJ])])
286 + ifdef([A][M_PROG_GCJ],
287 + [define([A][M_PROG_GCJ], defn([A][M_PROG_GCJ])[AC_LIBTOOL_GCJ])])
288 + ifdef([LT_AC_PROG_GCJ],
289 + [define([LT_AC_PROG_GCJ],
290 + defn([LT_AC_PROG_GCJ])[AC_LIBTOOL_GCJ])])])])
291 +])])# AC_PROG_LIBTOOL
292 +
293 +
294 +# _AC_PROG_LIBTOOL
295 +# ----------------
296 +AC_DEFUN([_AC_PROG_LIBTOOL],
297 +[AC_REQUIRE([AC_LIBTOOL_SETUP])dnl
298 +AC_BEFORE([$0],[AC_LIBTOOL_CXX])dnl
299 +AC_BEFORE([$0],[AC_LIBTOOL_F77])dnl
300 +AC_BEFORE([$0],[AC_LIBTOOL_GCJ])dnl
301 +
302 +# This can be used to rebuild libtool when needed
303 +LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
304 +
305 +# Always use our own libtool.
306 +LIBTOOL='$(SHELL) $(top_builddir)/libtool'
307 +AC_SUBST(LIBTOOL)dnl
308 +
309 +# Prevent multiple expansion
310 +define([AC_PROG_LIBTOOL], [])
311 +])# _AC_PROG_LIBTOOL
312 +
313 +
314 +# AC_LIBTOOL_SETUP
315 +# ----------------
316 +AC_DEFUN([AC_LIBTOOL_SETUP],
317 +[AC_PREREQ(2.50)dnl
318 +AC_REQUIRE([AC_ENABLE_SHARED])dnl
319 +AC_REQUIRE([AC_ENABLE_STATIC])dnl
320 +AC_REQUIRE([AC_ENABLE_FAST_INSTALL])dnl
321 +AC_REQUIRE([AC_CANONICAL_HOST])dnl
322 +AC_REQUIRE([AC_CANONICAL_BUILD])dnl
323 +AC_REQUIRE([AC_PROG_CC])dnl
324 +AC_REQUIRE([AC_PROG_LD])dnl
325 +AC_REQUIRE([AC_PROG_LD_RELOAD_FLAG])dnl
326 +AC_REQUIRE([AC_PROG_NM])dnl
327 +
328 +AC_REQUIRE([AC_PROG_LN_S])dnl
329 +AC_REQUIRE([AC_DEPLIBS_CHECK_METHOD])dnl
330 +# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
331 +AC_REQUIRE([AC_OBJEXT])dnl
332 +AC_REQUIRE([AC_EXEEXT])dnl
333 +dnl
334 +
335 +AC_LIBTOOL_SYS_MAX_CMD_LEN
336 +AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE
337 +AC_LIBTOOL_OBJDIR
338 +
339 +AC_REQUIRE([_LT_AC_SYS_COMPILER])dnl
340 +_LT_AC_PROG_ECHO_BACKSLASH
341 +
342 +case $host_os in
343 +aix3*)
344 + # AIX sometimes has problems with the GCC collect2 program. For some
345 + # reason, if we set the COLLECT_NAMES environment variable, the problems
346 + # vanish in a puff of smoke.
347 + if test "X${COLLECT_NAMES+set}" != Xset; then
348 + COLLECT_NAMES=
349 + export COLLECT_NAMES
350 + fi
351 + ;;
352 +esac
353 +
354 +# Sed substitution that helps us do robust quoting. It backslashifies
355 +# metacharacters that are still active within double-quoted strings.
356 +Xsed='sed -e 1s/^X//'
357 +[sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g']
358 +
359 +# Same as above, but do not quote variable references.
360 +[double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g']
361 +
362 +# Sed substitution to delay expansion of an escaped shell variable in a
363 +# double_quote_subst'ed string.
364 +delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
365 +
366 +# Sed substitution to avoid accidental globbing in evaled expressions
367 +no_glob_subst='s/\*/\\\*/g'
368 +
369 +# Constants:
370 +rm="rm -f"
371 +
372 +# Global variables:
373 +default_ofile=libtool
374 +can_build_shared=yes
375 +
376 +# All known linkers require a `.a' archive for static linking (except MSVC,
377 +# which needs '.lib').
378 +libext=a
379 +ltmain="$ac_aux_dir/ltmain.sh"
380 +ofile="$default_ofile"
381 +with_gnu_ld="$lt_cv_prog_gnu_ld"
382 +
383 +AC_CHECK_TOOL(AR, ar, false)
384 +AC_CHECK_TOOL(RANLIB, ranlib, :)
385 +AC_CHECK_TOOL(STRIP, strip, :)
386 +
387 +old_CC="$CC"
388 +old_CFLAGS="$CFLAGS"
389 +
390 +# Set sane defaults for various variables
391 +test -z "$AR" && AR=ar
392 +test -z "$AR_FLAGS" && AR_FLAGS=cru
393 +test -z "$AS" && AS=as
394 +test -z "$CC" && CC=cc
395 +test -z "$LTCC" && LTCC=$CC
396 +test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
397 +test -z "$DLLTOOL" && DLLTOOL=dlltool
398 +test -z "$LD" && LD=ld
399 +test -z "$LN_S" && LN_S="ln -s"
400 +test -z "$MAGIC_CMD" && MAGIC_CMD=file
401 +test -z "$NM" && NM=nm
402 +test -z "$SED" && SED=sed
403 +test -z "$OBJDUMP" && OBJDUMP=objdump
404 +test -z "$RANLIB" && RANLIB=:
405 +test -z "$STRIP" && STRIP=:
406 +test -z "$ac_objext" && ac_objext=o
407 +
408 +# Determine commands to create old-style static archives.
409 +old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
410 +old_postinstall_cmds='chmod 644 $oldlib'
411 +old_postuninstall_cmds=
412 +
413 +if test -n "$RANLIB"; then
414 + case $host_os in
415 + openbsd*)
416 + old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
417 + ;;
418 + *)
419 + old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
420 + ;;
421 + esac
422 + old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
423 +fi
424 +
425 +_LT_CC_BASENAME([$compiler])
426 +
427 +# Only perform the check for file, if the check method requires it
428 +case $deplibs_check_method in
429 +file_magic*)
430 + if test "$file_magic_cmd" = '$MAGIC_CMD'; then
431 + AC_PATH_MAGIC
432 + fi
433 + ;;
434 +esac
435 +
436 +AC_PROVIDE_IFELSE([AC_LIBTOOL_DLOPEN], enable_dlopen=yes, enable_dlopen=no)
437 +AC_PROVIDE_IFELSE([AC_LIBTOOL_WIN32_DLL],
438 +enable_win32_dll=yes, enable_win32_dll=no)
439 +
440 +AC_ARG_ENABLE([libtool-lock],
441 + [AC_HELP_STRING([--disable-libtool-lock],
442 + [avoid locking (might break parallel builds)])])
443 +test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
444 +
445 +AC_ARG_WITH([pic],
446 + [AC_HELP_STRING([--with-pic],
447 + [try to use only PIC/non-PIC objects @<:@default=use both@:>@])],
448 + [pic_mode="$withval"],
449 + [pic_mode=default])
450 +test -z "$pic_mode" && pic_mode=default
451 +
452 +# Use C for the default configuration in the libtool script
453 +tagname=
454 +AC_LIBTOOL_LANG_C_CONFIG
455 +_LT_AC_TAGCONFIG
456 +])# AC_LIBTOOL_SETUP
457 +
458 +
459 +# _LT_AC_SYS_COMPILER
460 +# -------------------
461 +AC_DEFUN([_LT_AC_SYS_COMPILER],
462 +[AC_REQUIRE([AC_PROG_CC])dnl
463 +
464 +# If no C compiler was specified, use CC.
465 +LTCC=${LTCC-"$CC"}
466 +
467 +# If no C compiler flags were specified, use CFLAGS.
468 +LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
469 +
470 +# Allow CC to be a program name with arguments.
471 +compiler=$CC
472 +])# _LT_AC_SYS_COMPILER
473 +
474 +
475 +# _LT_CC_BASENAME(CC)
476 +# -------------------
477 +# Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
478 +AC_DEFUN([_LT_CC_BASENAME],
479 +[for cc_temp in $1""; do
480 + case $cc_temp in
481 + compile | *[[\\/]]compile | ccache | *[[\\/]]ccache ) ;;
482 + distcc | *[[\\/]]distcc | purify | *[[\\/]]purify ) ;;
483 + \-*) ;;
484 + *) break;;
485 + esac
486 +done
487 +cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
488 +])
489 +
490 +
491 +# _LT_COMPILER_BOILERPLATE
492 +# ------------------------
493 +# Check for compiler boilerplate output or warnings with
494 +# the simple compiler test code.
495 +AC_DEFUN([_LT_COMPILER_BOILERPLATE],
496 +[ac_outfile=conftest.$ac_objext
497 +printf "$lt_simple_compile_test_code" >conftest.$ac_ext
498 +eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
499 +_lt_compiler_boilerplate=`cat conftest.err`
500 +$rm conftest*
501 +])# _LT_COMPILER_BOILERPLATE
502 +
503 +
504 +# _LT_LINKER_BOILERPLATE
505 +# ----------------------
506 +# Check for linker boilerplate output or warnings with
507 +# the simple link test code.
508 +AC_DEFUN([_LT_LINKER_BOILERPLATE],
509 +[ac_outfile=conftest.$ac_objext
510 +printf "$lt_simple_link_test_code" >conftest.$ac_ext
511 +eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
512 +_lt_linker_boilerplate=`cat conftest.err`
513 +$rm conftest*
514 +])# _LT_LINKER_BOILERPLATE
515 +
516 +
517 +# _LT_AC_SYS_LIBPATH_AIX
518 +# ----------------------
519 +# Links a minimal program and checks the executable
520 +# for the system default hardcoded library path. In most cases,
521 +# this is /usr/lib:/lib, but when the MPI compilers are used
522 +# the location of the communication and MPI libs are included too.
523 +# If we don't find anything, use the default library path according
524 +# to the aix ld manual.
525 +AC_DEFUN([_LT_AC_SYS_LIBPATH_AIX],
526 +[AC_LINK_IFELSE(AC_LANG_PROGRAM,[
527 +aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
528 +}'`
529 +# Check for a 64-bit object if we didn't find anything.
530 +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; }
531 +}'`; fi],[])
532 +if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
533 +])# _LT_AC_SYS_LIBPATH_AIX
534 +
535 +
536 +# _LT_AC_SHELL_INIT(ARG)
537 +# ----------------------
538 +AC_DEFUN([_LT_AC_SHELL_INIT],
539 +[ifdef([AC_DIVERSION_NOTICE],
540 + [AC_DIVERT_PUSH(AC_DIVERSION_NOTICE)],
541 + [AC_DIVERT_PUSH(NOTICE)])
542 +$1
543 +AC_DIVERT_POP
544 +])# _LT_AC_SHELL_INIT
545 +
546 +
547 +# _LT_AC_PROG_ECHO_BACKSLASH
548 +# --------------------------
549 +# Add some code to the start of the generated configure script which
550 +# will find an echo command which doesn't interpret backslashes.
551 +AC_DEFUN([_LT_AC_PROG_ECHO_BACKSLASH],
552 +[_LT_AC_SHELL_INIT([
553 +# Check that we are running under the correct shell.
554 +SHELL=${CONFIG_SHELL-/bin/sh}
555 +
556 +case X$ECHO in
557 +X*--fallback-echo)
558 + # Remove one level of quotation (which was required for Make).
559 + ECHO=`echo "$ECHO" | sed 's,\\\\\[$]\\[$]0,'[$]0','`
560 + ;;
561 +esac
562 +
563 +echo=${ECHO-echo}
564 +if test "X[$]1" = X--no-reexec; then
565 + # Discard the --no-reexec flag, and continue.
566 + shift
567 +elif test "X[$]1" = X--fallback-echo; then
568 + # Avoid inline document here, it may be left over
569 + :
570 +elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
571 + # Yippee, $echo works!
572 + :
573 +else
574 + # Restart under the correct shell.
575 + exec $SHELL "[$]0" --no-reexec ${1+"[$]@"}
576 +fi
577 +
578 +if test "X[$]1" = X--fallback-echo; then
579 + # used as fallback echo
580 + shift
581 + cat <<EOF
582 +[$]*
583 +EOF
584 + exit 0
585 +fi
586 +
587 +# The HP-UX ksh and POSIX shell print the target directory to stdout
588 +# if CDPATH is set.
589 +(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
590 +
591 +if test -z "$ECHO"; then
592 +if test "X${echo_test_string+set}" != Xset; then
593 +# find a string as large as possible, as long as the shell can cope with it
594 + for cmd in 'sed 50q "[$]0"' 'sed 20q "[$]0"' 'sed 10q "[$]0"' 'sed 2q "[$]0"' 'echo test'; do
595 + # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
596 + if (echo_test_string=`eval $cmd`) 2>/dev/null &&
597 + echo_test_string=`eval $cmd` &&
598 + (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
599 + then
600 + break
601 + fi
602 + done
603 +fi
604 +
605 +if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
606 + echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
607 + test "X$echo_testing_string" = "X$echo_test_string"; then
608 + :
609 +else
610 + # The Solaris, AIX, and Digital Unix default echo programs unquote
611 + # backslashes. This makes it impossible to quote backslashes using
612 + # echo "$something" | sed 's/\\/\\\\/g'
613 + #
614 + # So, first we look for a working echo in the user's PATH.
615 +
616 + lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
617 + for dir in $PATH /usr/ucb; do
618 + IFS="$lt_save_ifs"
619 + if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
620 + test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
621 + echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
622 + test "X$echo_testing_string" = "X$echo_test_string"; then
623 + echo="$dir/echo"
624 + break
625 + fi
626 + done
627 + IFS="$lt_save_ifs"
628 +
629 + if test "X$echo" = Xecho; then
630 + # We didn't find a better echo, so look for alternatives.
631 + if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
632 + echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
633 + test "X$echo_testing_string" = "X$echo_test_string"; then
634 + # This shell has a builtin print -r that does the trick.
635 + echo='print -r'
636 + elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
637 + test "X$CONFIG_SHELL" != X/bin/ksh; then
638 + # If we have ksh, try running configure again with it.
639 + ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
640 + export ORIGINAL_CONFIG_SHELL
641 + CONFIG_SHELL=/bin/ksh
642 + export CONFIG_SHELL
643 + exec $CONFIG_SHELL "[$]0" --no-reexec ${1+"[$]@"}
644 + else
645 + # Try using printf.
646 + echo='printf %s\n'
647 + if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
648 + echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
649 + test "X$echo_testing_string" = "X$echo_test_string"; then
650 + # Cool, printf works
651 + :
652 + elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "[$]0" --fallback-echo '\t') 2>/dev/null` &&
653 + test "X$echo_testing_string" = 'X\t' &&
654 + echo_testing_string=`($ORIGINAL_CONFIG_SHELL "[$]0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
655 + test "X$echo_testing_string" = "X$echo_test_string"; then
656 + CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
657 + export CONFIG_SHELL
658 + SHELL="$CONFIG_SHELL"
659 + export SHELL
660 + echo="$CONFIG_SHELL [$]0 --fallback-echo"
661 + elif echo_testing_string=`($CONFIG_SHELL "[$]0" --fallback-echo '\t') 2>/dev/null` &&
662 + test "X$echo_testing_string" = 'X\t' &&
663 + echo_testing_string=`($CONFIG_SHELL "[$]0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
664 + test "X$echo_testing_string" = "X$echo_test_string"; then
665 + echo="$CONFIG_SHELL [$]0 --fallback-echo"
666 + else
667 + # maybe with a smaller string...
668 + prev=:
669 +
670 + for cmd in 'echo test' 'sed 2q "[$]0"' 'sed 10q "[$]0"' 'sed 20q "[$]0"' 'sed 50q "[$]0"'; do
671 + if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
672 + then
673 + break
674 + fi
675 + prev="$cmd"
676 + done
677 +
678 + if test "$prev" != 'sed 50q "[$]0"'; then
679 + echo_test_string=`eval $prev`
680 + export echo_test_string
681 + exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "[$]0" ${1+"[$]@"}
682 + else
683 + # Oops. We lost completely, so just stick with echo.
684 + echo=echo
685 + fi
686 + fi
687 + fi
688 + fi
689 +fi
690 +fi
691 +
692 +# Copy echo and quote the copy suitably for passing to libtool from
693 +# the Makefile, instead of quoting the original, which is used later.
694 +ECHO=$echo
695 +if test "X$ECHO" = "X$CONFIG_SHELL [$]0 --fallback-echo"; then
696 + ECHO="$CONFIG_SHELL \\\$\[$]0 --fallback-echo"
697 +fi
698 +
699 +AC_SUBST(ECHO)
700 +])])# _LT_AC_PROG_ECHO_BACKSLASH
701 +
702 +
703 +# _LT_AC_LOCK
704 +# -----------
705 +AC_DEFUN([_LT_AC_LOCK],
706 +[AC_ARG_ENABLE([libtool-lock],
707 + [AC_HELP_STRING([--disable-libtool-lock],
708 + [avoid locking (might break parallel builds)])])
709 +test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
710 +
711 +# Some flags need to be propagated to the compiler or linker for good
712 +# libtool support.
713 +case $host in
714 +ia64-*-hpux*)
715 + # Find out which ABI we are using.
716 + echo 'int i;' > conftest.$ac_ext
717 + if AC_TRY_EVAL(ac_compile); then
718 + case `/usr/bin/file conftest.$ac_objext` in
719 + *ELF-32*)
720 + HPUX_IA64_MODE="32"
721 + ;;
722 + *ELF-64*)
723 + HPUX_IA64_MODE="64"
724 + ;;
725 + esac
726 + fi
727 + rm -rf conftest*
728 + ;;
729 +*-*-irix6*)
730 + # Find out which ABI we are using.
731 + echo '[#]line __oline__ "configure"' > conftest.$ac_ext
732 + if AC_TRY_EVAL(ac_compile); then
733 + if test "$lt_cv_prog_gnu_ld" = yes; then
734 + case `/usr/bin/file conftest.$ac_objext` in
735 + *32-bit*)
736 + LD="${LD-ld} -melf32bsmip"
737 + ;;
738 + *N32*)
739 + LD="${LD-ld} -melf32bmipn32"
740 + ;;
741 + *64-bit*)
742 + LD="${LD-ld} -melf64bmip"
743 + ;;
744 + esac
745 + else
746 + case `/usr/bin/file conftest.$ac_objext` in
747 + *32-bit*)
748 + LD="${LD-ld} -32"
749 + ;;
750 + *N32*)
751 + LD="${LD-ld} -n32"
752 + ;;
753 + *64-bit*)
754 + LD="${LD-ld} -64"
755 + ;;
756 + esac
757 + fi
758 + fi
759 + rm -rf conftest*
760 + ;;
761 +
762 +x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
763 + # Find out which ABI we are using.
764 + echo 'int i;' > conftest.$ac_ext
765 + if AC_TRY_EVAL(ac_compile); then
766 + case `/usr/bin/file conftest.o` in
767 + *32-bit*)
768 + case $host in
769 + x86_64-*linux*)
770 + LD="${LD-ld} -m elf_i386"
771 + ;;
772 + ppc64-*linux*|powerpc64-*linux*)
773 + LD="${LD-ld} -m elf32ppclinux"
774 + ;;
775 + s390x-*linux*)
776 + LD="${LD-ld} -m elf_s390"
777 + ;;
778 + sparc64-*linux*)
779 + LD="${LD-ld} -m elf32_sparc"
780 + ;;
781 + esac
782 + ;;
783 + *64-bit*)
784 + case $host in
785 + x86_64-*linux*)
786 + LD="${LD-ld} -m elf_x86_64"
787 + ;;
788 + ppc*-*linux*|powerpc*-*linux*)
789 + LD="${LD-ld} -m elf64ppc"
790 + ;;
791 + s390*-*linux*)
792 + LD="${LD-ld} -m elf64_s390"
793 + ;;
794 + sparc*-*linux*)
795 + LD="${LD-ld} -m elf64_sparc"
796 + ;;
797 + esac
798 + ;;
799 + esac
800 + fi
801 + rm -rf conftest*
802 + ;;
803 +
804 +*-*-sco3.2v5*)
805 + # On SCO OpenServer 5, we need -belf to get full-featured binaries.
806 + SAVE_CFLAGS="$CFLAGS"
807 + CFLAGS="$CFLAGS -belf"
808 + AC_CACHE_CHECK([whether the C compiler needs -belf], lt_cv_cc_needs_belf,
809 + [AC_LANG_PUSH(C)
810 + AC_TRY_LINK([],[],[lt_cv_cc_needs_belf=yes],[lt_cv_cc_needs_belf=no])
811 + AC_LANG_POP])
812 + if test x"$lt_cv_cc_needs_belf" != x"yes"; then
813 + # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
814 + CFLAGS="$SAVE_CFLAGS"
815 + fi
816 + ;;
817 +sparc*-*solaris*)
818 + # Find out which ABI we are using.
819 + echo 'int i;' > conftest.$ac_ext
820 + if AC_TRY_EVAL(ac_compile); then
821 + case `/usr/bin/file conftest.o` in
822 + *64-bit*)
823 + case $lt_cv_prog_gnu_ld in
824 + yes*) LD="${LD-ld} -m elf64_sparc" ;;
825 + *) LD="${LD-ld} -64" ;;
826 + esac
827 + ;;
828 + esac
829 + fi
830 + rm -rf conftest*
831 + ;;
832 +
833 +AC_PROVIDE_IFELSE([AC_LIBTOOL_WIN32_DLL],
834 +[*-*-cygwin* | *-*-mingw* | *-*-pw32*)
835 + AC_CHECK_TOOL(DLLTOOL, dlltool, false)
836 + AC_CHECK_TOOL(AS, as, false)
837 + AC_CHECK_TOOL(OBJDUMP, objdump, false)
838 + ;;
839 + ])
840 +esac
841 +
842 +need_locks="$enable_libtool_lock"
843 +
844 +])# _LT_AC_LOCK
845 +
846 +
847 +# AC_LIBTOOL_COMPILER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS,
848 +# [OUTPUT-FILE], [ACTION-SUCCESS], [ACTION-FAILURE])
849 +# ----------------------------------------------------------------
850 +# Check whether the given compiler option works
851 +AC_DEFUN([AC_LIBTOOL_COMPILER_OPTION],
852 +[AC_REQUIRE([LT_AC_PROG_SED])
853 +AC_CACHE_CHECK([$1], [$2],
854 + [$2=no
855 + ifelse([$4], , [ac_outfile=conftest.$ac_objext], [ac_outfile=$4])
856 + printf "$lt_simple_compile_test_code" > conftest.$ac_ext
857 + lt_compiler_flag="$3"
858 + # Insert the option either (1) after the last *FLAGS variable, or
859 + # (2) before a word containing "conftest.", or (3) at the end.
860 + # Note that $ac_compile itself does not contain backslashes and begins
861 + # with a dollar sign (not a hyphen), so the echo should work correctly.
862 + # The option is referenced via a variable to avoid confusing sed.
863 + lt_compile=`echo "$ac_compile" | $SED \
864 + -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
865 + -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \
866 + -e 's:$: $lt_compiler_flag:'`
867 + (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&AS_MESSAGE_LOG_FD)
868 + (eval "$lt_compile" 2>conftest.err)
869 + ac_status=$?
870 + cat conftest.err >&AS_MESSAGE_LOG_FD
871 + echo "$as_me:__oline__: \$? = $ac_status" >&AS_MESSAGE_LOG_FD
872 + if (exit $ac_status) && test -s "$ac_outfile"; then
873 + # The compiler can only warn and ignore the option if not recognized
874 + # So say no if there are warnings other than the usual output.
875 + $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
876 + $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
877 + if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
878 + $2=yes
879 + fi
880 + fi
881 + $rm conftest*
882 +])
883 +
884 +if test x"[$]$2" = xyes; then
885 + ifelse([$5], , :, [$5])
886 +else
887 + ifelse([$6], , :, [$6])
888 +fi
889 +])# AC_LIBTOOL_COMPILER_OPTION
890 +
891 +
892 +# AC_LIBTOOL_LINKER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS,
893 +# [ACTION-SUCCESS], [ACTION-FAILURE])
894 +# ------------------------------------------------------------
895 +# Check whether the given compiler option works
896 +AC_DEFUN([AC_LIBTOOL_LINKER_OPTION],
897 +[AC_CACHE_CHECK([$1], [$2],
898 + [$2=no
899 + save_LDFLAGS="$LDFLAGS"
900 + LDFLAGS="$LDFLAGS $3"
901 + printf "$lt_simple_link_test_code" > conftest.$ac_ext
902 + if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
903 + # The linker can only warn and ignore the option if not recognized
904 + # So say no if there are warnings
905 + if test -s conftest.err; then
906 + # Append any errors to the config.log.
907 + cat conftest.err 1>&AS_MESSAGE_LOG_FD
908 + $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
909 + $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
910 + if diff conftest.exp conftest.er2 >/dev/null; then
911 + $2=yes
912 + fi
913 + else
914 + $2=yes
915 + fi
916 + fi
917 + $rm conftest*
918 + LDFLAGS="$save_LDFLAGS"
919 +])
920 +
921 +if test x"[$]$2" = xyes; then
922 + ifelse([$4], , :, [$4])
923 +else
924 + ifelse([$5], , :, [$5])
925 +fi
926 +])# AC_LIBTOOL_LINKER_OPTION
927 +
928 +
929 +# AC_LIBTOOL_SYS_MAX_CMD_LEN
930 +# --------------------------
931 +AC_DEFUN([AC_LIBTOOL_SYS_MAX_CMD_LEN],
932 +[# find the maximum length of command line arguments
933 +AC_MSG_CHECKING([the maximum length of command line arguments])
934 +AC_CACHE_VAL([lt_cv_sys_max_cmd_len], [dnl
935 + i=0
936 + teststring="ABCD"
937 +
938 + case $build_os in
939 + msdosdjgpp*)
940 + # On DJGPP, this test can blow up pretty badly due to problems in libc
941 + # (any single argument exceeding 2000 bytes causes a buffer overrun
942 + # during glob expansion). Even if it were fixed, the result of this
943 + # check would be larger than it should be.
944 + lt_cv_sys_max_cmd_len=12288; # 12K is about right
945 + ;;
946 +
947 + gnu*)
948 + # Under GNU Hurd, this test is not required because there is
949 + # no limit to the length of command line arguments.
950 + # Libtool will interpret -1 as no limit whatsoever
951 + lt_cv_sys_max_cmd_len=-1;
952 + ;;
953 +
954 + cygwin* | mingw*)
955 + # On Win9x/ME, this test blows up -- it succeeds, but takes
956 + # about 5 minutes as the teststring grows exponentially.
957 + # Worse, since 9x/ME are not pre-emptively multitasking,
958 + # you end up with a "frozen" computer, even though with patience
959 + # the test eventually succeeds (with a max line length of 256k).
960 + # Instead, let's just punt: use the minimum linelength reported by
961 + # all of the supported platforms: 8192 (on NT/2K/XP).
962 + lt_cv_sys_max_cmd_len=8192;
963 + ;;
964 +
965 + amigaos*)
966 + # On AmigaOS with pdksh, this test takes hours, literally.
967 + # So we just punt and use a minimum line length of 8192.
968 + lt_cv_sys_max_cmd_len=8192;
969 + ;;
970 +
971 + netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
972 + # This has been around since 386BSD, at least. Likely further.
973 + if test -x /sbin/sysctl; then
974 + lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
975 + elif test -x /usr/sbin/sysctl; then
976 + lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
977 + else
978 + lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
979 + fi
980 + # And add a safety zone
981 + lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
982 + lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
983 + ;;
984 +
985 + interix*)
986 + # We know the value 262144 and hardcode it with a safety zone (like BSD)
987 + lt_cv_sys_max_cmd_len=196608
988 + ;;
989 +
990 + osf*)
991 + # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
992 + # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
993 + # nice to cause kernel panics so lets avoid the loop below.
994 + # First set a reasonable default.
995 + lt_cv_sys_max_cmd_len=16384
996 + #
997 + if test -x /sbin/sysconfig; then
998 + case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
999 + *1*) lt_cv_sys_max_cmd_len=-1 ;;
1000 + esac
1001 + fi
1002 + ;;
1003 + sco3.2v5*)
1004 + lt_cv_sys_max_cmd_len=102400
1005 + ;;
1006 + sysv5* | sco5v6* | sysv4.2uw2*)
1007 + kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
1008 + if test -n "$kargmax"; then
1009 + lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[[ ]]//'`
1010 + else
1011 + lt_cv_sys_max_cmd_len=32768
1012 + fi
1013 + ;;
1014 + *)
1015 + # If test is not a shell built-in, we'll probably end up computing a
1016 + # maximum length that is only half of the actual maximum length, but
1017 + # we can't tell.
1018 + SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
1019 + while (test "X"`$SHELL [$]0 --fallback-echo "X$teststring" 2>/dev/null` \
1020 + = "XX$teststring") >/dev/null 2>&1 &&
1021 + new_result=`expr "X$teststring" : ".*" 2>&1` &&
1022 + lt_cv_sys_max_cmd_len=$new_result &&
1023 + test $i != 17 # 1/2 MB should be enough
1024 + do
1025 + i=`expr $i + 1`
1026 + teststring=$teststring$teststring
1027 + done
1028 + teststring=
1029 + # Add a significant safety factor because C++ compilers can tack on massive
1030 + # amounts of additional arguments before passing them to the linker.
1031 + # It appears as though 1/2 is a usable value.
1032 + lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
1033 + ;;
1034 + esac
1035 +])
1036 +if test -n $lt_cv_sys_max_cmd_len ; then
1037 + AC_MSG_RESULT($lt_cv_sys_max_cmd_len)
1038 +else
1039 + AC_MSG_RESULT(none)
1040 +fi
1041 +])# AC_LIBTOOL_SYS_MAX_CMD_LEN
1042 +
1043 +
1044 +# _LT_AC_CHECK_DLFCN
1045 +# ------------------
1046 +AC_DEFUN([_LT_AC_CHECK_DLFCN],
1047 +[AC_CHECK_HEADERS(dlfcn.h)dnl
1048 +])# _LT_AC_CHECK_DLFCN
1049 +
1050 +
1051 +# _LT_AC_TRY_DLOPEN_SELF (ACTION-IF-TRUE, ACTION-IF-TRUE-W-USCORE,
1052 +# ACTION-IF-FALSE, ACTION-IF-CROSS-COMPILING)
1053 +# ---------------------------------------------------------------------
1054 +AC_DEFUN([_LT_AC_TRY_DLOPEN_SELF],
1055 +[AC_REQUIRE([_LT_AC_CHECK_DLFCN])dnl
1056 +if test "$cross_compiling" = yes; then :
1057 + [$4]
1058 +else
1059 + lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
1060 + lt_status=$lt_dlunknown
1061 + cat > conftest.$ac_ext <<EOF
1062 +[#line __oline__ "configure"
1063 +#include "confdefs.h"
1064 +
1065 +#if HAVE_DLFCN_H
1066 +#include <dlfcn.h>
1067 +#endif
1068 +
1069 +#include <stdio.h>
1070 +
1071 +#ifdef RTLD_GLOBAL
1072 +# define LT_DLGLOBAL RTLD_GLOBAL
1073 +#else
1074 +# ifdef DL_GLOBAL
1075 +# define LT_DLGLOBAL DL_GLOBAL
1076 +# else
1077 +# define LT_DLGLOBAL 0
1078 +# endif
1079 +#endif
1080 +
1081 +/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
1082 + find out it does not work in some platform. */
1083 +#ifndef LT_DLLAZY_OR_NOW
1084 +# ifdef RTLD_LAZY
1085 +# define LT_DLLAZY_OR_NOW RTLD_LAZY
1086 +# else
1087 +# ifdef DL_LAZY
1088 +# define LT_DLLAZY_OR_NOW DL_LAZY
1089 +# else
1090 +# ifdef RTLD_NOW
1091 +# define LT_DLLAZY_OR_NOW RTLD_NOW
1092 +# else
1093 +# ifdef DL_NOW
1094 +# define LT_DLLAZY_OR_NOW DL_NOW
1095 +# else
1096 +# define LT_DLLAZY_OR_NOW 0
1097 +# endif
1098 +# endif
1099 +# endif
1100 +# endif
1101 +#endif
1102 +
1103 +#ifdef __cplusplus
1104 +extern "C" void exit (int);
1105 +#endif
1106 +
1107 +void fnord() { int i=42;}
1108 +int main ()
1109 +{
1110 + void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
1111 + int status = $lt_dlunknown;
1112 +
1113 + if (self)
1114 + {
1115 + if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
1116 + else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
1117 + /* dlclose (self); */
1118 + }
1119 + else
1120 + puts (dlerror ());
1121 +
1122 + exit (status);
1123 +}]
1124 +EOF
1125 + if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext} 2>/dev/null; then
1126 + (./conftest; exit; ) >&AS_MESSAGE_LOG_FD 2>/dev/null
1127 + lt_status=$?
1128 + case x$lt_status in
1129 + x$lt_dlno_uscore) $1 ;;
1130 + x$lt_dlneed_uscore) $2 ;;
1131 + x$lt_dlunknown|x*) $3 ;;
1132 + esac
1133 + else :
1134 + # compilation failed
1135 + $3
1136 + fi
1137 +fi
1138 +rm -fr conftest*
1139 +])# _LT_AC_TRY_DLOPEN_SELF
1140 +
1141 +
1142 +# AC_LIBTOOL_DLOPEN_SELF
1143 +# ----------------------
1144 +AC_DEFUN([AC_LIBTOOL_DLOPEN_SELF],
1145 +[AC_REQUIRE([_LT_AC_CHECK_DLFCN])dnl
1146 +if test "x$enable_dlopen" != xyes; then
1147 + enable_dlopen=unknown
1148 + enable_dlopen_self=unknown
1149 + enable_dlopen_self_static=unknown
1150 +else
1151 + lt_cv_dlopen=no
1152 + lt_cv_dlopen_libs=
1153 +
1154 + case $host_os in
1155 + beos*)
1156 + lt_cv_dlopen="load_add_on"
1157 + lt_cv_dlopen_libs=
1158 + lt_cv_dlopen_self=yes
1159 + ;;
1160 +
1161 + mingw* | pw32*)
1162 + lt_cv_dlopen="LoadLibrary"
1163 + lt_cv_dlopen_libs=
1164 + ;;
1165 +
1166 + cygwin*)
1167 + lt_cv_dlopen="dlopen"
1168 + lt_cv_dlopen_libs=
1169 + ;;
1170 +
1171 + darwin*)
1172 + # if libdl is installed we need to link against it
1173 + AC_CHECK_LIB([dl], [dlopen],
1174 + [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"],[
1175 + lt_cv_dlopen="dyld"
1176 + lt_cv_dlopen_libs=
1177 + lt_cv_dlopen_self=yes
1178 + ])
1179 + ;;
1180 +
1181 + *)
1182 + AC_CHECK_FUNC([shl_load],
1183 + [lt_cv_dlopen="shl_load"],
1184 + [AC_CHECK_LIB([dld], [shl_load],
1185 + [lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"],
1186 + [AC_CHECK_FUNC([dlopen],
1187 + [lt_cv_dlopen="dlopen"],
1188 + [AC_CHECK_LIB([dl], [dlopen],
1189 + [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"],
1190 + [AC_CHECK_LIB([svld], [dlopen],
1191 + [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"],
1192 + [AC_CHECK_LIB([dld], [dld_link],
1193 + [lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"])
1194 + ])
1195 + ])
1196 + ])
1197 + ])
1198 + ])
1199 + ;;
1200 + esac
1201 +
1202 + if test "x$lt_cv_dlopen" != xno; then
1203 + enable_dlopen=yes
1204 + else
1205 + enable_dlopen=no
1206 + fi
1207 +
1208 + case $lt_cv_dlopen in
1209 + dlopen)
1210 + save_CPPFLAGS="$CPPFLAGS"
1211 + test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
1212 +
1213 + save_LDFLAGS="$LDFLAGS"
1214 + wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
1215 +
1216 + save_LIBS="$LIBS"
1217 + LIBS="$lt_cv_dlopen_libs $LIBS"
1218 +
1219 + AC_CACHE_CHECK([whether a program can dlopen itself],
1220 + lt_cv_dlopen_self, [dnl
1221 + _LT_AC_TRY_DLOPEN_SELF(
1222 + lt_cv_dlopen_self=yes, lt_cv_dlopen_self=yes,
1223 + lt_cv_dlopen_self=no, lt_cv_dlopen_self=cross)
1224 + ])
1225 +
1226 + if test "x$lt_cv_dlopen_self" = xyes; then
1227 + wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
1228 + AC_CACHE_CHECK([whether a statically linked program can dlopen itself],
1229 + lt_cv_dlopen_self_static, [dnl
1230 + _LT_AC_TRY_DLOPEN_SELF(
1231 + lt_cv_dlopen_self_static=yes, lt_cv_dlopen_self_static=yes,
1232 + lt_cv_dlopen_self_static=no, lt_cv_dlopen_self_static=cross)
1233 + ])
1234 + fi
1235 +
1236 + CPPFLAGS="$save_CPPFLAGS"
1237 + LDFLAGS="$save_LDFLAGS"
1238 + LIBS="$save_LIBS"
1239 + ;;
1240 + esac
1241 +
1242 + case $lt_cv_dlopen_self in
1243 + yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
1244 + *) enable_dlopen_self=unknown ;;
1245 + esac
1246 +
1247 + case $lt_cv_dlopen_self_static in
1248 + yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
1249 + *) enable_dlopen_self_static=unknown ;;
1250 + esac
1251 +fi
1252 +])# AC_LIBTOOL_DLOPEN_SELF
1253 +
1254 +
1255 +# AC_LIBTOOL_PROG_CC_C_O([TAGNAME])
1256 +# ---------------------------------
1257 +# Check to see if options -c and -o are simultaneously supported by compiler
1258 +AC_DEFUN([AC_LIBTOOL_PROG_CC_C_O],
1259 +[AC_REQUIRE([_LT_AC_SYS_COMPILER])dnl
1260 +AC_CACHE_CHECK([if $compiler supports -c -o file.$ac_objext],
1261 + [_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)],
1262 + [_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)=no
1263 + $rm -r conftest 2>/dev/null
1264 + mkdir conftest
1265 + cd conftest
1266 + mkdir out
1267 + printf "$lt_simple_compile_test_code" > conftest.$ac_ext
1268 +
1269 + lt_compiler_flag="-o out/conftest2.$ac_objext"
1270 + # Insert the option either (1) after the last *FLAGS variable, or
1271 + # (2) before a word containing "conftest.", or (3) at the end.
1272 + # Note that $ac_compile itself does not contain backslashes and begins
1273 + # with a dollar sign (not a hyphen), so the echo should work correctly.
1274 + lt_compile=`echo "$ac_compile" | $SED \
1275 + -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
1276 + -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \
1277 + -e 's:$: $lt_compiler_flag:'`
1278 + (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&AS_MESSAGE_LOG_FD)
1279 + (eval "$lt_compile" 2>out/conftest.err)
1280 + ac_status=$?
1281 + cat out/conftest.err >&AS_MESSAGE_LOG_FD
1282 + echo "$as_me:__oline__: \$? = $ac_status" >&AS_MESSAGE_LOG_FD
1283 + if (exit $ac_status) && test -s out/conftest2.$ac_objext
1284 + then
1285 + # The compiler can only warn and ignore the option if not recognized
1286 + # So say no if there are warnings
1287 + $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
1288 + $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
1289 + if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
1290 + _LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes
1291 + fi
1292 + fi
1293 + chmod u+w . 2>&AS_MESSAGE_LOG_FD
1294 + $rm conftest*
1295 + # SGI C++ compiler will create directory out/ii_files/ for
1296 + # template instantiation
1297 + test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
1298 + $rm out/* && rmdir out
1299 + cd ..
1300 + rmdir conftest
1301 + $rm conftest*
1302 +])
1303 +])# AC_LIBTOOL_PROG_CC_C_O
1304 +
1305 +
1306 +# AC_LIBTOOL_SYS_HARD_LINK_LOCKS([TAGNAME])
1307 +# -----------------------------------------
1308 +# Check to see if we can do hard links to lock some files if needed
1309 +AC_DEFUN([AC_LIBTOOL_SYS_HARD_LINK_LOCKS],
1310 +[AC_REQUIRE([_LT_AC_LOCK])dnl
1311 +
1312 +hard_links="nottested"
1313 +if test "$_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)" = no && test "$need_locks" != no; then
1314 + # do not overwrite the value of need_locks provided by the user
1315 + AC_MSG_CHECKING([if we can lock with hard links])
1316 + hard_links=yes
1317 + $rm conftest*
1318 + ln conftest.a conftest.b 2>/dev/null && hard_links=no
1319 + touch conftest.a
1320 + ln conftest.a conftest.b 2>&5 || hard_links=no
1321 + ln conftest.a conftest.b 2>/dev/null && hard_links=no
1322 + AC_MSG_RESULT([$hard_links])
1323 + if test "$hard_links" = no; then
1324 + AC_MSG_WARN([`$CC' does not support `-c -o', so `make -j' may be unsafe])
1325 + need_locks=warn
1326 + fi
1327 +else
1328 + need_locks=no
1329 +fi
1330 +])# AC_LIBTOOL_SYS_HARD_LINK_LOCKS
1331 +
1332 +
1333 +# AC_LIBTOOL_OBJDIR
1334 +# -----------------
1335 +AC_DEFUN([AC_LIBTOOL_OBJDIR],
1336 +[AC_CACHE_CHECK([for objdir], [lt_cv_objdir],
1337 +[rm -f .libs 2>/dev/null
1338 +mkdir .libs 2>/dev/null
1339 +if test -d .libs; then
1340 + lt_cv_objdir=.libs
1341 +else
1342 + # MS-DOS does not allow filenames that begin with a dot.
1343 + lt_cv_objdir=_libs
1344 +fi
1345 +rmdir .libs 2>/dev/null])
1346 +objdir=$lt_cv_objdir
1347 +])# AC_LIBTOOL_OBJDIR
1348 +
1349 +
1350 +# AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH([TAGNAME])
1351 +# ----------------------------------------------
1352 +# Check hardcoding attributes.
1353 +AC_DEFUN([AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH],
1354 +[AC_MSG_CHECKING([how to hardcode library paths into programs])
1355 +_LT_AC_TAGVAR(hardcode_action, $1)=
1356 +if test -n "$_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)" || \
1357 + test -n "$_LT_AC_TAGVAR(runpath_var, $1)" || \
1358 + test "X$_LT_AC_TAGVAR(hardcode_automatic, $1)" = "Xyes" ; then
1359 +
1360 + # We can hardcode non-existant directories.
1361 + if test "$_LT_AC_TAGVAR(hardcode_direct, $1)" != no &&
1362 + # If the only mechanism to avoid hardcoding is shlibpath_var, we
1363 + # have to relink, otherwise we might link with an installed library
1364 + # when we should be linking with a yet-to-be-installed one
1365 + ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)" != no &&
1366 + test "$_LT_AC_TAGVAR(hardcode_minus_L, $1)" != no; then
1367 + # Linking always hardcodes the temporary library directory.
1368 + _LT_AC_TAGVAR(hardcode_action, $1)=relink
1369 + else
1370 + # We can link without hardcoding, and we can hardcode nonexisting dirs.
1371 + _LT_AC_TAGVAR(hardcode_action, $1)=immediate
1372 + fi
1373 +else
1374 + # We cannot hardcode anything, or else we can only hardcode existing
1375 + # directories.
1376 + _LT_AC_TAGVAR(hardcode_action, $1)=unsupported
1377 +fi
1378 +AC_MSG_RESULT([$_LT_AC_TAGVAR(hardcode_action, $1)])
1379 +
1380 +if test "$_LT_AC_TAGVAR(hardcode_action, $1)" = relink; then
1381 + # Fast installation is not supported
1382 + enable_fast_install=no
1383 +elif test "$shlibpath_overrides_runpath" = yes ||
1384 + test "$enable_shared" = no; then
1385 + # Fast installation is not necessary
1386 + enable_fast_install=needless
1387 +fi
1388 +])# AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH
1389 +
1390 +
1391 +# AC_LIBTOOL_SYS_LIB_STRIP
1392 +# ------------------------
1393 +AC_DEFUN([AC_LIBTOOL_SYS_LIB_STRIP],
1394 +[striplib=
1395 +old_striplib=
1396 +AC_MSG_CHECKING([whether stripping libraries is possible])
1397 +if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
1398 + test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
1399 + test -z "$striplib" && striplib="$STRIP --strip-unneeded"
1400 + AC_MSG_RESULT([yes])
1401 +else
1402 +# FIXME - insert some real tests, host_os isn't really good enough
1403 + case $host_os in
1404 + darwin*)
1405 + if test -n "$STRIP" ; then
1406 + striplib="$STRIP -x"
1407 + AC_MSG_RESULT([yes])
1408 + else
1409 + AC_MSG_RESULT([no])
1410 +fi
1411 + ;;
1412 + *)
1413 + AC_MSG_RESULT([no])
1414 + ;;
1415 + esac
1416 +fi
1417 +])# AC_LIBTOOL_SYS_LIB_STRIP
1418 +
1419 +
1420 +# AC_LIBTOOL_SYS_DYNAMIC_LINKER
1421 +# -----------------------------
1422 +# PORTME Fill in your ld.so characteristics
1423 +AC_DEFUN([AC_LIBTOOL_SYS_DYNAMIC_LINKER],
1424 +[AC_MSG_CHECKING([dynamic linker characteristics])
1425 +library_names_spec=
1426 +libname_spec='lib$name'
1427 +soname_spec=
1428 +shrext_cmds=".so"
1429 +postinstall_cmds=
1430 +postuninstall_cmds=
1431 +finish_cmds=
1432 +finish_eval=
1433 +shlibpath_var=
1434 +shlibpath_overrides_runpath=unknown
1435 +version_type=none
1436 +dynamic_linker="$host_os ld.so"
1437 +sys_lib_dlsearch_path_spec="/lib /usr/lib"
1438 +if test "$GCC" = yes; then
1439 + sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
1440 + if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
1441 + # if the path contains ";" then we assume it to be the separator
1442 + # otherwise default to the standard path separator (i.e. ":") - it is
1443 + # assumed that no part of a normal pathname contains ";" but that should
1444 + # okay in the real world where ";" in dirpaths is itself problematic.
1445 + sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
1446 + else
1447 + sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
1448 + fi
1449 +else
1450 + sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
1451 +fi
1452 +need_lib_prefix=unknown
1453 +hardcode_into_libs=no
1454 +
1455 +# when you set need_version to no, make sure it does not cause -set_version
1456 +# flags to be left without arguments
1457 +need_version=unknown
1458 +
1459 +case $host_os in
1460 +aix3*)
1461 + version_type=linux
1462 + library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
1463 + shlibpath_var=LIBPATH
1464 +
1465 + # AIX 3 has no versioning support, so we append a major version to the name.
1466 + soname_spec='${libname}${release}${shared_ext}$major'
1467 + ;;
1468 +
1469 +aix4* | aix5*)
1470 + version_type=linux
1471 + need_lib_prefix=no
1472 + need_version=no
1473 + hardcode_into_libs=yes
1474 + if test "$host_cpu" = ia64; then
1475 + # AIX 5 supports IA64
1476 + library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
1477 + shlibpath_var=LD_LIBRARY_PATH
1478 + else
1479 + # With GCC up to 2.95.x, collect2 would create an import file
1480 + # for dependence libraries. The import file would start with
1481 + # the line `#! .'. This would cause the generated library to
1482 + # depend on `.', always an invalid library. This was fixed in
1483 + # development snapshots of GCC prior to 3.0.
1484 + case $host_os in
1485 + aix4 | aix4.[[01]] | aix4.[[01]].*)
1486 + if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
1487 + echo ' yes '
1488 + echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
1489 + :
1490 + else
1491 + can_build_shared=no
1492 + fi
1493 + ;;
1494 + esac
1495 + # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
1496 + # soname into executable. Probably we can add versioning support to
1497 + # collect2, so additional links can be useful in future.
1498 + if test "$aix_use_runtimelinking" = yes; then
1499 + # If using run time linking (on AIX 4.2 or later) use lib<name>.so
1500 + # instead of lib<name>.a to let people know that these are not
1501 + # typical AIX shared libraries.
1502 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
1503 + else
1504 + # We preserve .a as extension for shared libraries through AIX4.2
1505 + # and later when we are not doing run time linking.
1506 + library_names_spec='${libname}${release}.a $libname.a'
1507 + soname_spec='${libname}${release}${shared_ext}$major'
1508 + fi
1509 + shlibpath_var=LIBPATH
1510 + fi
1511 + ;;
1512 +
1513 +amigaos*)
1514 + library_names_spec='$libname.ixlibrary $libname.a'
1515 + # Create ${libname}_ixlibrary.a entries in /sys/libs.
1516 + 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'
1517 + ;;
1518 +
1519 +beos*)
1520 + library_names_spec='${libname}${shared_ext}'
1521 + dynamic_linker="$host_os ld.so"
1522 + shlibpath_var=LIBRARY_PATH
1523 + ;;
1524 +
1525 +bsdi[[45]]*)
1526 + version_type=linux
1527 + need_version=no
1528 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
1529 + soname_spec='${libname}${release}${shared_ext}$major'
1530 + finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
1531 + shlibpath_var=LD_LIBRARY_PATH
1532 + sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
1533 + sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
1534 + # the default ld.so.conf also contains /usr/contrib/lib and
1535 + # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
1536 + # libtool to hard-code these into programs
1537 + ;;
1538 +
1539 +cygwin* | mingw* | pw32*)
1540 + version_type=windows
1541 + shrext_cmds=".dll"
1542 + need_version=no
1543 + need_lib_prefix=no
1544 +
1545 + case $GCC,$host_os in
1546 + yes,cygwin* | yes,mingw* | yes,pw32*)
1547 + library_names_spec='$libname.dll.a'
1548 + # DLL is installed to $(libdir)/../bin by postinstall_cmds
1549 + postinstall_cmds='base_file=`basename \${file}`~
1550 + dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
1551 + dldir=$destdir/`dirname \$dlpath`~
1552 + test -d \$dldir || mkdir -p \$dldir~
1553 + $install_prog $dir/$dlname \$dldir/$dlname~
1554 + chmod a+x \$dldir/$dlname'
1555 + postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
1556 + dlpath=$dir/\$dldll~
1557 + $rm \$dlpath'
1558 + shlibpath_overrides_runpath=yes
1559 +
1560 + case $host_os in
1561 + cygwin*)
1562 + # Cygwin DLLs use 'cyg' prefix rather than 'lib'
1563 + soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
1564 + sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
1565 + ;;
1566 + mingw*)
1567 + # MinGW DLLs use traditional 'lib' prefix
1568 + soname_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
1569 + sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
1570 + if echo "$sys_lib_search_path_spec" | [grep ';[c-zC-Z]:/' >/dev/null]; then
1571 + # It is most probably a Windows format PATH printed by
1572 + # mingw gcc, but we are running on Cygwin. Gcc prints its search
1573 + # path with ; separators, and with drive letters. We can handle the
1574 + # drive letters (cygwin fileutils understands them), so leave them,
1575 + # especially as we might pass files found there to a mingw objdump,
1576 + # which wouldn't understand a cygwinified path. Ahh.
1577 + sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
1578 + else
1579 + sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
1580 + fi
1581 + ;;
1582 + pw32*)
1583 + # pw32 DLLs use 'pw' prefix rather than 'lib'
1584 + library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
1585 + ;;
1586 + esac
1587 + ;;
1588 +
1589 + *)
1590 + library_names_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext} $libname.lib'
1591 + ;;
1592 + esac
1593 + dynamic_linker='Win32 ld.exe'
1594 + # FIXME: first we should search . and the directory the executable is in
1595 + shlibpath_var=PATH
1596 + ;;
1597 +
1598 +darwin* | rhapsody*)
1599 + dynamic_linker="$host_os dyld"
1600 + version_type=darwin
1601 + need_lib_prefix=no
1602 + need_version=no
1603 + library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
1604 + soname_spec='${libname}${release}${major}$shared_ext'
1605 + shlibpath_overrides_runpath=yes
1606 + shlibpath_var=DYLD_LIBRARY_PATH
1607 + shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
1608 + # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
1609 + if test "$GCC" = yes; then
1610 + 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"`
1611 + else
1612 + sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
1613 + fi
1614 + sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
1615 + ;;
1616 +
1617 +dgux*)
1618 + version_type=linux
1619 + need_lib_prefix=no
1620 + need_version=no
1621 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
1622 + soname_spec='${libname}${release}${shared_ext}$major'
1623 + shlibpath_var=LD_LIBRARY_PATH
1624 + ;;
1625 +
1626 +freebsd1*)
1627 + dynamic_linker=no
1628 + ;;
1629 +
1630 +freebsd* | dragonfly*)
1631 + # DragonFly does not have aout. When/if they implement a new
1632 + # versioning mechanism, adjust this.
1633 + if test -x /usr/bin/objformat; then
1634 + objformat=`/usr/bin/objformat`
1635 + else
1636 + case $host_os in
1637 + freebsd[[123]]*) objformat=aout ;;
1638 + *) objformat=elf ;;
1639 + esac
1640 + fi
1641 + version_type=freebsd-$objformat
1642 + case $version_type in
1643 + freebsd-elf*)
1644 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
1645 + need_version=no
1646 + need_lib_prefix=no
1647 + ;;
1648 + freebsd-*)
1649 + library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
1650 + need_version=yes
1651 + ;;
1652 + esac
1653 + shlibpath_var=LD_LIBRARY_PATH
1654 + case $host_os in
1655 + freebsd2*)
1656 + shlibpath_overrides_runpath=yes
1657 + ;;
1658 + freebsd3.[[01]]* | freebsdelf3.[[01]]*)
1659 + shlibpath_overrides_runpath=yes
1660 + hardcode_into_libs=yes
1661 + ;;
1662 + freebsd3.[[2-9]]* | freebsdelf3.[[2-9]]* | \
1663 + freebsd4.[[0-5]] | freebsdelf4.[[0-5]] | freebsd4.1.1 | freebsdelf4.1.1)
1664 + shlibpath_overrides_runpath=no
1665 + hardcode_into_libs=yes
1666 + ;;
1667 + freebsd*) # from 4.6 on
1668 + shlibpath_overrides_runpath=yes
1669 + hardcode_into_libs=yes
1670 + ;;
1671 + esac
1672 + ;;
1673 +
1674 +gnu*)
1675 + version_type=linux
1676 + need_lib_prefix=no
1677 + need_version=no
1678 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
1679 + soname_spec='${libname}${release}${shared_ext}$major'
1680 + shlibpath_var=LD_LIBRARY_PATH
1681 + hardcode_into_libs=yes
1682 + ;;
1683 +
1684 +hpux9* | hpux10* | hpux11*)
1685 + # Give a soname corresponding to the major version so that dld.sl refuses to
1686 + # link against other versions.
1687 + version_type=sunos
1688 + need_lib_prefix=no
1689 + need_version=no
1690 + case $host_cpu in
1691 + ia64*)
1692 + shrext_cmds='.so'
1693 + hardcode_into_libs=yes
1694 + dynamic_linker="$host_os dld.so"
1695 + shlibpath_var=LD_LIBRARY_PATH
1696 + shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
1697 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
1698 + soname_spec='${libname}${release}${shared_ext}$major'
1699 + if test "X$HPUX_IA64_MODE" = X32; then
1700 + sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
1701 + else
1702 + sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
1703 + fi
1704 + sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
1705 + ;;
1706 + hppa*64*)
1707 + shrext_cmds='.sl'
1708 + hardcode_into_libs=yes
1709 + dynamic_linker="$host_os dld.sl"
1710 + shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
1711 + shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
1712 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
1713 + soname_spec='${libname}${release}${shared_ext}$major'
1714 + sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
1715 + sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
1716 + ;;
1717 + *)
1718 + shrext_cmds='.sl'
1719 + dynamic_linker="$host_os dld.sl"
1720 + shlibpath_var=SHLIB_PATH
1721 + shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
1722 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
1723 + soname_spec='${libname}${release}${shared_ext}$major'
1724 + ;;
1725 + esac
1726 + # HP-UX runs *really* slowly unless shared libraries are mode 555.
1727 + postinstall_cmds='chmod 555 $lib'
1728 + ;;
1729 +
1730 +interix3*)
1731 + version_type=linux
1732 + need_lib_prefix=no
1733 + need_version=no
1734 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
1735 + soname_spec='${libname}${release}${shared_ext}$major'
1736 + dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
1737 + shlibpath_var=LD_LIBRARY_PATH
1738 + shlibpath_overrides_runpath=no
1739 + hardcode_into_libs=yes
1740 + ;;
1741 +
1742 +irix5* | irix6* | nonstopux*)
1743 + case $host_os in
1744 + nonstopux*) version_type=nonstopux ;;
1745 + *)
1746 + if test "$lt_cv_prog_gnu_ld" = yes; then
1747 + version_type=linux
1748 + else
1749 + version_type=irix
1750 + fi ;;
1751 + esac
1752 + need_lib_prefix=no
1753 + need_version=no
1754 + soname_spec='${libname}${release}${shared_ext}$major'
1755 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
1756 + case $host_os in
1757 + irix5* | nonstopux*)
1758 + libsuff= shlibsuff=
1759 + ;;
1760 + *)
1761 + case $LD in # libtool.m4 will add one of these switches to LD
1762 + *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
1763 + libsuff= shlibsuff= libmagic=32-bit;;
1764 + *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
1765 + libsuff=32 shlibsuff=N32 libmagic=N32;;
1766 + *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
1767 + libsuff=64 shlibsuff=64 libmagic=64-bit;;
1768 + *) libsuff= shlibsuff= libmagic=never-match;;
1769 + esac
1770 + ;;
1771 + esac
1772 + shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
1773 + shlibpath_overrides_runpath=no
1774 + sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
1775 + sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
1776 + hardcode_into_libs=yes
1777 + ;;
1778 +
1779 +# No shared lib support for Linux oldld, aout, or coff.
1780 +linux*oldld* | linux*aout* | linux*coff*)
1781 + dynamic_linker=no
1782 + ;;
1783 +
1784 +# This must be Linux ELF.
1785 +linux* | k*bsd*-gnu)
1786 + version_type=linux
1787 + need_lib_prefix=no
1788 + need_version=no
1789 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
1790 + soname_spec='${libname}${release}${shared_ext}$major'
1791 + finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
1792 + shlibpath_var=LD_LIBRARY_PATH
1793 + shlibpath_overrides_runpath=no
1794 + # This implies no fast_install, which is unacceptable.
1795 + # Some rework will be needed to allow for fast_install
1796 + # before this can be enabled.
1797 + hardcode_into_libs=yes
1798 +
1799 + # Append ld.so.conf contents to the search path
1800 + if test -f /etc/ld.so.conf; then
1801 + 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' ' '`
1802 + sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
1803 + fi
1804 +
1805 + # We used to test for /lib/ld.so.1 and disable shared libraries on
1806 + # powerpc, because MkLinux only supported shared libraries with the
1807 + # GNU dynamic linker. Since this was broken with cross compilers,
1808 + # most powerpc-linux boxes support dynamic linking these days and
1809 + # people can always --disable-shared, the test was removed, and we
1810 + # assume the GNU/Linux dynamic linker is in use.
1811 + dynamic_linker='GNU/Linux ld.so'
1812 + ;;
1813 +
1814 +netbsdelf*-gnu)
1815 + version_type=linux
1816 + need_lib_prefix=no
1817 + need_version=no
1818 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
1819 + soname_spec='${libname}${release}${shared_ext}$major'
1820 + shlibpath_var=LD_LIBRARY_PATH
1821 + shlibpath_overrides_runpath=no
1822 + hardcode_into_libs=yes
1823 + dynamic_linker='NetBSD ld.elf_so'
1824 + ;;
1825 +
1826 +netbsd*)
1827 + version_type=sunos
1828 + need_lib_prefix=no
1829 + need_version=no
1830 + if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
1831 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
1832 + finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
1833 + dynamic_linker='NetBSD (a.out) ld.so'
1834 + else
1835 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
1836 + soname_spec='${libname}${release}${shared_ext}$major'
1837 + dynamic_linker='NetBSD ld.elf_so'
1838 + fi
1839 + shlibpath_var=LD_LIBRARY_PATH
1840 + shlibpath_overrides_runpath=yes
1841 + hardcode_into_libs=yes
1842 + ;;
1843 +
1844 +newsos6)
1845 + version_type=linux
1846 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
1847 + shlibpath_var=LD_LIBRARY_PATH
1848 + shlibpath_overrides_runpath=yes
1849 + ;;
1850 +
1851 +nto-qnx*)
1852 + version_type=linux
1853 + need_lib_prefix=no
1854 + need_version=no
1855 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
1856 + soname_spec='${libname}${release}${shared_ext}$major'
1857 + shlibpath_var=LD_LIBRARY_PATH
1858 + shlibpath_overrides_runpath=yes
1859 + ;;
1860 +
1861 +openbsd*)
1862 + version_type=sunos
1863 + sys_lib_dlsearch_path_spec="/usr/lib"
1864 + need_lib_prefix=no
1865 + # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
1866 + case $host_os in
1867 + openbsd3.3 | openbsd3.3.*) need_version=yes ;;
1868 + *) need_version=no ;;
1869 + esac
1870 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
1871 + finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
1872 + shlibpath_var=LD_LIBRARY_PATH
1873 + if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
1874 + case $host_os in
1875 + openbsd2.[[89]] | openbsd2.[[89]].*)
1876 + shlibpath_overrides_runpath=no
1877 + ;;
1878 + *)
1879 + shlibpath_overrides_runpath=yes
1880 + ;;
1881 + esac
1882 + else
1883 + shlibpath_overrides_runpath=yes
1884 + fi
1885 + ;;
1886 +
1887 +os2*)
1888 + libname_spec='$name'
1889 + shrext_cmds=".dll"
1890 + need_lib_prefix=no
1891 + library_names_spec='$libname${shared_ext} $libname.a'
1892 + dynamic_linker='OS/2 ld.exe'
1893 + shlibpath_var=LIBPATH
1894 + ;;
1895 +
1896 +osf3* | osf4* | osf5*)
1897 + version_type=osf
1898 + need_lib_prefix=no
1899 + need_version=no
1900 + soname_spec='${libname}${release}${shared_ext}$major'
1901 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
1902 + shlibpath_var=LD_LIBRARY_PATH
1903 + sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
1904 + sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
1905 + ;;
1906 +
1907 +solaris*)
1908 + version_type=linux
1909 + need_lib_prefix=no
1910 + need_version=no
1911 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
1912 + soname_spec='${libname}${release}${shared_ext}$major'
1913 + shlibpath_var=LD_LIBRARY_PATH
1914 + shlibpath_overrides_runpath=yes
1915 + hardcode_into_libs=yes
1916 + # ldd complains unless libraries are executable
1917 + postinstall_cmds='chmod +x $lib'
1918 + ;;
1919 +
1920 +sunos4*)
1921 + version_type=sunos
1922 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
1923 + finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
1924 + shlibpath_var=LD_LIBRARY_PATH
1925 + shlibpath_overrides_runpath=yes
1926 + if test "$with_gnu_ld" = yes; then
1927 + need_lib_prefix=no
1928 + fi
1929 + need_version=yes
1930 + ;;
1931 +
1932 +sysv4 | sysv4.3*)
1933 + version_type=linux
1934 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
1935 + soname_spec='${libname}${release}${shared_ext}$major'
1936 + shlibpath_var=LD_LIBRARY_PATH
1937 + case $host_vendor in
1938 + sni)
1939 + shlibpath_overrides_runpath=no
1940 + need_lib_prefix=no
1941 + export_dynamic_flag_spec='${wl}-Blargedynsym'
1942 + runpath_var=LD_RUN_PATH
1943 + ;;
1944 + siemens)
1945 + need_lib_prefix=no
1946 + ;;
1947 + motorola)
1948 + need_lib_prefix=no
1949 + need_version=no
1950 + shlibpath_overrides_runpath=no
1951 + sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
1952 + ;;
1953 + esac
1954 + ;;
1955 +
1956 +sysv4*MP*)
1957 + if test -d /usr/nec ;then
1958 + version_type=linux
1959 + library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
1960 + soname_spec='$libname${shared_ext}.$major'
1961 + shlibpath_var=LD_LIBRARY_PATH
1962 + fi
1963 + ;;
1964 +
1965 +sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
1966 + version_type=freebsd-elf
1967 + need_lib_prefix=no
1968 + need_version=no
1969 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
1970 + soname_spec='${libname}${release}${shared_ext}$major'
1971 + shlibpath_var=LD_LIBRARY_PATH
1972 + hardcode_into_libs=yes
1973 + if test "$with_gnu_ld" = yes; then
1974 + sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
1975 + shlibpath_overrides_runpath=no
1976 + else
1977 + sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
1978 + shlibpath_overrides_runpath=yes
1979 + case $host_os in
1980 + sco3.2v5*)
1981 + sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
1982 + ;;
1983 + esac
1984 + fi
1985 + sys_lib_dlsearch_path_spec='/usr/lib'
1986 + ;;
1987 +
1988 +uts4*)
1989 + version_type=linux
1990 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
1991 + soname_spec='${libname}${release}${shared_ext}$major'
1992 + shlibpath_var=LD_LIBRARY_PATH
1993 + ;;
1994 +
1995 +*)
1996 + dynamic_linker=no
1997 + ;;
1998 +esac
1999 +AC_MSG_RESULT([$dynamic_linker])
2000 +test "$dynamic_linker" = no && can_build_shared=no
2001 +
2002 +variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
2003 +if test "$GCC" = yes; then
2004 + variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
2005 +fi
2006 +])# AC_LIBTOOL_SYS_DYNAMIC_LINKER
2007 +
2008 +
2009 +# _LT_AC_TAGCONFIG
2010 +# ----------------
2011 +AC_DEFUN([_LT_AC_TAGCONFIG],
2012 +[AC_ARG_WITH([tags],
2013 + [AC_HELP_STRING([--with-tags@<:@=TAGS@:>@],
2014 + [include additional configurations @<:@automatic@:>@])],
2015 + [tagnames="$withval"])
2016 +
2017 +if test -f "$ltmain" && test -n "$tagnames"; then
2018 + if test ! -f "${ofile}"; then
2019 + AC_MSG_WARN([output file `$ofile' does not exist])
2020 + fi
2021 +
2022 + if test -z "$LTCC"; then
2023 + eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
2024 + if test -z "$LTCC"; then
2025 + AC_MSG_WARN([output file `$ofile' does not look like a libtool script])
2026 + else
2027 + AC_MSG_WARN([using `LTCC=$LTCC', extracted from `$ofile'])
2028 + fi
2029 + fi
2030 + if test -z "$LTCFLAGS"; then
2031 + eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
2032 + fi
2033 +
2034 + # Extract list of available tagged configurations in $ofile.
2035 + # Note that this assumes the entire list is on one line.
2036 + available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
2037 +
2038 + lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2039 + for tagname in $tagnames; do
2040 + IFS="$lt_save_ifs"
2041 + # Check whether tagname contains only valid characters
2042 + case `$echo "X$tagname" | $Xsed -e 's:[[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]]::g'` in
2043 + "") ;;
2044 + *) AC_MSG_ERROR([invalid tag name: $tagname])
2045 + ;;
2046 + esac
2047 +
2048 + if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
2049 + then
2050 + AC_MSG_ERROR([tag name \"$tagname\" already exists])
2051 + fi
2052 +
2053 + # Update the list of available tags.
2054 + if test -n "$tagname"; then
2055 + echo appending configuration tag \"$tagname\" to $ofile
2056 +
2057 + case $tagname in
2058 + CXX)
2059 + if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
2060 + ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
2061 + (test "X$CXX" != "Xg++"))) ; then
2062 + AC_LIBTOOL_LANG_CXX_CONFIG
2063 + else
2064 + tagname=""
2065 + fi
2066 + ;;
2067 +
2068 + F77)
2069 + if test -n "$F77" && test "X$F77" != "Xno"; then
2070 + AC_LIBTOOL_LANG_F77_CONFIG
2071 + else
2072 + tagname=""
2073 + fi
2074 + ;;
2075 +
2076 + GCJ)
2077 + if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
2078 + AC_LIBTOOL_LANG_GCJ_CONFIG
2079 + else
2080 + tagname=""
2081 + fi
2082 + ;;
2083 +
2084 + RC)
2085 + AC_LIBTOOL_LANG_RC_CONFIG
2086 + ;;
2087 +
2088 + *)
2089 + AC_MSG_ERROR([Unsupported tag name: $tagname])
2090 + ;;
2091 + esac
2092 +
2093 + # Append the new tag name to the list of available tags.
2094 + if test -n "$tagname" ; then
2095 + available_tags="$available_tags $tagname"
2096 + fi
2097 + fi
2098 + done
2099 + IFS="$lt_save_ifs"
2100 +
2101 + # Now substitute the updated list of available tags.
2102 + if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
2103 + mv "${ofile}T" "$ofile"
2104 + chmod +x "$ofile"
2105 + else
2106 + rm -f "${ofile}T"
2107 + AC_MSG_ERROR([unable to update list of available tagged configurations.])
2108 + fi
2109 +fi
2110 +])# _LT_AC_TAGCONFIG
2111 +
2112 +
2113 +# AC_LIBTOOL_DLOPEN
2114 +# -----------------
2115 +# enable checks for dlopen support
2116 +AC_DEFUN([AC_LIBTOOL_DLOPEN],
2117 + [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])
2118 +])# AC_LIBTOOL_DLOPEN
2119 +
2120 +
2121 +# AC_LIBTOOL_WIN32_DLL
2122 +# --------------------
2123 +# declare package support for building win32 DLLs
2124 +AC_DEFUN([AC_LIBTOOL_WIN32_DLL],
2125 +[AC_BEFORE([$0], [AC_LIBTOOL_SETUP])
2126 +])# AC_LIBTOOL_WIN32_DLL
2127 +
2128 +
2129 +# AC_ENABLE_SHARED([DEFAULT])
2130 +# ---------------------------
2131 +# implement the --enable-shared flag
2132 +# DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'.
2133 +AC_DEFUN([AC_ENABLE_SHARED],
2134 +[define([AC_ENABLE_SHARED_DEFAULT], ifelse($1, no, no, yes))dnl
2135 +AC_ARG_ENABLE([shared],
2136 + [AC_HELP_STRING([--enable-shared@<:@=PKGS@:>@],
2137 + [build shared libraries @<:@default=]AC_ENABLE_SHARED_DEFAULT[@:>@])],
2138 + [p=${PACKAGE-default}
2139 + case $enableval in
2140 + yes) enable_shared=yes ;;
2141 + no) enable_shared=no ;;
2142 + *)
2143 + enable_shared=no
2144 + # Look at the argument we got. We use all the common list separators.
2145 + lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2146 + for pkg in $enableval; do
2147 + IFS="$lt_save_ifs"
2148 + if test "X$pkg" = "X$p"; then
2149 + enable_shared=yes
2150 + fi
2151 + done
2152 + IFS="$lt_save_ifs"
2153 + ;;
2154 + esac],
2155 + [enable_shared=]AC_ENABLE_SHARED_DEFAULT)
2156 +])# AC_ENABLE_SHARED
2157 +
2158 +
2159 +# AC_DISABLE_SHARED
2160 +# -----------------
2161 +# set the default shared flag to --disable-shared
2162 +AC_DEFUN([AC_DISABLE_SHARED],
2163 +[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
2164 +AC_ENABLE_SHARED(no)
2165 +])# AC_DISABLE_SHARED
2166 +
2167 +
2168 +# AC_ENABLE_STATIC([DEFAULT])
2169 +# ---------------------------
2170 +# implement the --enable-static flag
2171 +# DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'.
2172 +AC_DEFUN([AC_ENABLE_STATIC],
2173 +[define([AC_ENABLE_STATIC_DEFAULT], ifelse($1, no, no, yes))dnl
2174 +AC_ARG_ENABLE([static],
2175 + [AC_HELP_STRING([--enable-static@<:@=PKGS@:>@],
2176 + [build static libraries @<:@default=]AC_ENABLE_STATIC_DEFAULT[@:>@])],
2177 + [p=${PACKAGE-default}
2178 + case $enableval in
2179 + yes) enable_static=yes ;;
2180 + no) enable_static=no ;;
2181 + *)
2182 + enable_static=no
2183 + # Look at the argument we got. We use all the common list separators.
2184 + lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2185 + for pkg in $enableval; do
2186 + IFS="$lt_save_ifs"
2187 + if test "X$pkg" = "X$p"; then
2188 + enable_static=yes
2189 + fi
2190 + done
2191 + IFS="$lt_save_ifs"
2192 + ;;
2193 + esac],
2194 + [enable_static=]AC_ENABLE_STATIC_DEFAULT)
2195 +])# AC_ENABLE_STATIC
2196 +
2197 +
2198 +# AC_DISABLE_STATIC
2199 +# -----------------
2200 +# set the default static flag to --disable-static
2201 +AC_DEFUN([AC_DISABLE_STATIC],
2202 +[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
2203 +AC_ENABLE_STATIC(no)
2204 +])# AC_DISABLE_STATIC
2205 +
2206 +
2207 +# AC_ENABLE_FAST_INSTALL([DEFAULT])
2208 +# ---------------------------------
2209 +# implement the --enable-fast-install flag
2210 +# DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'.
2211 +AC_DEFUN([AC_ENABLE_FAST_INSTALL],
2212 +[define([AC_ENABLE_FAST_INSTALL_DEFAULT], ifelse($1, no, no, yes))dnl
2213 +AC_ARG_ENABLE([fast-install],
2214 + [AC_HELP_STRING([--enable-fast-install@<:@=PKGS@:>@],
2215 + [optimize for fast installation @<:@default=]AC_ENABLE_FAST_INSTALL_DEFAULT[@:>@])],
2216 + [p=${PACKAGE-default}
2217 + case $enableval in
2218 + yes) enable_fast_install=yes ;;
2219 + no) enable_fast_install=no ;;
2220 + *)
2221 + enable_fast_install=no
2222 + # Look at the argument we got. We use all the common list separators.
2223 + lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2224 + for pkg in $enableval; do
2225 + IFS="$lt_save_ifs"
2226 + if test "X$pkg" = "X$p"; then
2227 + enable_fast_install=yes
2228 + fi
2229 + done
2230 + IFS="$lt_save_ifs"
2231 + ;;
2232 + esac],
2233 + [enable_fast_install=]AC_ENABLE_FAST_INSTALL_DEFAULT)
2234 +])# AC_ENABLE_FAST_INSTALL
2235 +
2236 +
2237 +# AC_DISABLE_FAST_INSTALL
2238 +# -----------------------
2239 +# set the default to --disable-fast-install
2240 +AC_DEFUN([AC_DISABLE_FAST_INSTALL],
2241 +[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
2242 +AC_ENABLE_FAST_INSTALL(no)
2243 +])# AC_DISABLE_FAST_INSTALL
2244 +
2245 +
2246 +# AC_LIBTOOL_PICMODE([MODE])
2247 +# --------------------------
2248 +# implement the --with-pic flag
2249 +# MODE is either `yes' or `no'. If omitted, it defaults to `both'.
2250 +AC_DEFUN([AC_LIBTOOL_PICMODE],
2251 +[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
2252 +pic_mode=ifelse($#,1,$1,default)
2253 +])# AC_LIBTOOL_PICMODE
2254 +
2255 +
2256 +# AC_PROG_EGREP
2257 +# -------------
2258 +# This is predefined starting with Autoconf 2.54, so this conditional
2259 +# definition can be removed once we require Autoconf 2.54 or later.
2260 +m4_ifndef([AC_PROG_EGREP], [AC_DEFUN([AC_PROG_EGREP],
2261 +[AC_CACHE_CHECK([for egrep], [ac_cv_prog_egrep],
2262 + [if echo a | (grep -E '(a|b)') >/dev/null 2>&1
2263 + then ac_cv_prog_egrep='grep -E'
2264 + else ac_cv_prog_egrep='egrep'
2265 + fi])
2266 + EGREP=$ac_cv_prog_egrep
2267 + AC_SUBST([EGREP])
2268 +])])
2269 +
2270 +
2271 +# AC_PATH_TOOL_PREFIX
2272 +# -------------------
2273 +# find a file program which can recognise shared library
2274 +AC_DEFUN([AC_PATH_TOOL_PREFIX],
2275 +[AC_REQUIRE([AC_PROG_EGREP])dnl
2276 +AC_MSG_CHECKING([for $1])
2277 +AC_CACHE_VAL(lt_cv_path_MAGIC_CMD,
2278 +[case $MAGIC_CMD in
2279 +[[\\/*] | ?:[\\/]*])
2280 + lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
2281 + ;;
2282 +*)
2283 + lt_save_MAGIC_CMD="$MAGIC_CMD"
2284 + lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
2285 +dnl $ac_dummy forces splitting on constant user-supplied paths.
2286 +dnl POSIX.2 word splitting is done only on the output of word expansions,
2287 +dnl not every word. This closes a longstanding sh security hole.
2288 + ac_dummy="ifelse([$2], , $PATH, [$2])"
2289 + for ac_dir in $ac_dummy; do
2290 + IFS="$lt_save_ifs"
2291 + test -z "$ac_dir" && ac_dir=.
2292 + if test -f $ac_dir/$1; then
2293 + lt_cv_path_MAGIC_CMD="$ac_dir/$1"
2294 + if test -n "$file_magic_test_file"; then
2295 + case $deplibs_check_method in
2296 + "file_magic "*)
2297 + file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
2298 + MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
2299 + if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
2300 + $EGREP "$file_magic_regex" > /dev/null; then
2301 + :
2302 + else
2303 + cat <<EOF 1>&2
2304 +
2305 +*** Warning: the command libtool uses to detect shared libraries,
2306 +*** $file_magic_cmd, produces output that libtool cannot recognize.
2307 +*** The result is that libtool may fail to recognize shared libraries
2308 +*** as such. This will affect the creation of libtool libraries that
2309 +*** depend on shared libraries, but programs linked with such libtool
2310 +*** libraries will work regardless of this problem. Nevertheless, you
2311 +*** may want to report the problem to your system manager and/or to
2312 +*** bug-libtool@gnu.org
2313 +
2314 +EOF
2315 + fi ;;
2316 + esac
2317 + fi
2318 + break
2319 + fi
2320 + done
2321 + IFS="$lt_save_ifs"
2322 + MAGIC_CMD="$lt_save_MAGIC_CMD"
2323 + ;;
2324 +esac])
2325 +MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
2326 +if test -n "$MAGIC_CMD"; then
2327 + AC_MSG_RESULT($MAGIC_CMD)
2328 +else
2329 + AC_MSG_RESULT(no)
2330 +fi
2331 +])# AC_PATH_TOOL_PREFIX
2332 +
2333 +
2334 +# AC_PATH_MAGIC
2335 +# -------------
2336 +# find a file program which can recognise a shared library
2337 +AC_DEFUN([AC_PATH_MAGIC],
2338 +[AC_PATH_TOOL_PREFIX(${ac_tool_prefix}file, /usr/bin$PATH_SEPARATOR$PATH)
2339 +if test -z "$lt_cv_path_MAGIC_CMD"; then
2340 + if test -n "$ac_tool_prefix"; then
2341 + AC_PATH_TOOL_PREFIX(file, /usr/bin$PATH_SEPARATOR$PATH)
2342 + else
2343 + MAGIC_CMD=:
2344 + fi
2345 +fi
2346 +])# AC_PATH_MAGIC
2347 +
2348 +
2349 +# AC_PROG_LD
2350 +# ----------
2351 +# find the pathname to the GNU or non-GNU linker
2352 +AC_DEFUN([AC_PROG_LD],
2353 +[AC_ARG_WITH([gnu-ld],
2354 + [AC_HELP_STRING([--with-gnu-ld],
2355 + [assume the C compiler uses GNU ld @<:@default=no@:>@])],
2356 + [test "$withval" = no || with_gnu_ld=yes],
2357 + [with_gnu_ld=no])
2358 +AC_REQUIRE([LT_AC_PROG_SED])dnl
2359 +AC_REQUIRE([AC_PROG_CC])dnl
2360 +AC_REQUIRE([AC_CANONICAL_HOST])dnl
2361 +AC_REQUIRE([AC_CANONICAL_BUILD])dnl
2362 +ac_prog=ld
2363 +if test "$GCC" = yes; then
2364 + # Check if gcc -print-prog-name=ld gives a path.
2365 + AC_MSG_CHECKING([for ld used by $CC])
2366 + case $host in
2367 + *-*-mingw*)
2368 + # gcc leaves a trailing carriage return which upsets mingw
2369 + ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
2370 + *)
2371 + ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
2372 + esac
2373 + case $ac_prog in
2374 + # Accept absolute paths.
2375 + [[\\/]]* | ?:[[\\/]]*)
2376 + re_direlt='/[[^/]][[^/]]*/\.\./'
2377 + # Canonicalize the pathname of ld
2378 + ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
2379 + while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
2380 + ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
2381 + done
2382 + test -z "$LD" && LD="$ac_prog"
2383 + ;;
2384 + "")
2385 + # If it fails, then pretend we aren't using GCC.
2386 + ac_prog=ld
2387 + ;;
2388 + *)
2389 + # If it is relative, then search for the first ld in PATH.
2390 + with_gnu_ld=unknown
2391 + ;;
2392 + esac
2393 +elif test "$with_gnu_ld" = yes; then
2394 + AC_MSG_CHECKING([for GNU ld])
2395 +else
2396 + AC_MSG_CHECKING([for non-GNU ld])
2397 +fi
2398 +AC_CACHE_VAL(lt_cv_path_LD,
2399 +[if test -z "$LD"; then
2400 + lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
2401 + for ac_dir in $PATH; do
2402 + IFS="$lt_save_ifs"
2403 + test -z "$ac_dir" && ac_dir=.
2404 + if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
2405 + lt_cv_path_LD="$ac_dir/$ac_prog"
2406 + # Check to see if the program is GNU ld. I'd rather use --version,
2407 + # but apparently some variants of GNU ld only accept -v.
2408 + # Break only if it was the GNU/non-GNU ld that we prefer.
2409 + case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
2410 + *GNU* | *'with BFD'*)
2411 + test "$with_gnu_ld" != no && break
2412 + ;;
2413 + *)
2414 + test "$with_gnu_ld" != yes && break
2415 + ;;
2416 + esac
2417 + fi
2418 + done
2419 + IFS="$lt_save_ifs"
2420 +else
2421 + lt_cv_path_LD="$LD" # Let the user override the test with a path.
2422 +fi])
2423 +LD="$lt_cv_path_LD"
2424 +if test -n "$LD"; then
2425 + AC_MSG_RESULT($LD)
2426 +else
2427 + AC_MSG_RESULT(no)
2428 +fi
2429 +test -z "$LD" && AC_MSG_ERROR([no acceptable ld found in \$PATH])
2430 +AC_PROG_LD_GNU
2431 +])# AC_PROG_LD
2432 +
2433 +
2434 +# AC_PROG_LD_GNU
2435 +# --------------
2436 +AC_DEFUN([AC_PROG_LD_GNU],
2437 +[AC_REQUIRE([AC_PROG_EGREP])dnl
2438 +AC_CACHE_CHECK([if the linker ($LD) is GNU ld], lt_cv_prog_gnu_ld,
2439 +[# I'd rather use --version here, but apparently some GNU lds only accept -v.
2440 +case `$LD -v 2>&1 </dev/null` in
2441 +*GNU* | *'with BFD'*)
2442 + lt_cv_prog_gnu_ld=yes
2443 + ;;
2444 +*)
2445 + lt_cv_prog_gnu_ld=no
2446 + ;;
2447 +esac])
2448 +with_gnu_ld=$lt_cv_prog_gnu_ld
2449 +])# AC_PROG_LD_GNU
2450 +
2451 +
2452 +# AC_PROG_LD_RELOAD_FLAG
2453 +# ----------------------
2454 +# find reload flag for linker
2455 +# -- PORTME Some linkers may need a different reload flag.
2456 +AC_DEFUN([AC_PROG_LD_RELOAD_FLAG],
2457 +[AC_CACHE_CHECK([for $LD option to reload object files],
2458 + lt_cv_ld_reload_flag,
2459 + [lt_cv_ld_reload_flag='-r'])
2460 +reload_flag=$lt_cv_ld_reload_flag
2461 +case $reload_flag in
2462 +"" | " "*) ;;
2463 +*) reload_flag=" $reload_flag" ;;
2464 +esac
2465 +reload_cmds='$LD$reload_flag -o $output$reload_objs'
2466 +case $host_os in
2467 + darwin*)
2468 + if test "$GCC" = yes; then
2469 + reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
2470 + else
2471 + reload_cmds='$LD$reload_flag -o $output$reload_objs'
2472 + fi
2473 + ;;
2474 +esac
2475 +])# AC_PROG_LD_RELOAD_FLAG
2476 +
2477 +
2478 +# AC_DEPLIBS_CHECK_METHOD
2479 +# -----------------------
2480 +# how to check for library dependencies
2481 +# -- PORTME fill in with the dynamic library characteristics
2482 +AC_DEFUN([AC_DEPLIBS_CHECK_METHOD],
2483 +[AC_CACHE_CHECK([how to recognise dependent libraries],
2484 +lt_cv_deplibs_check_method,
2485 +[lt_cv_file_magic_cmd='$MAGIC_CMD'
2486 +lt_cv_file_magic_test_file=
2487 +lt_cv_deplibs_check_method='unknown'
2488 +# Need to set the preceding variable on all platforms that support
2489 +# interlibrary dependencies.
2490 +# 'none' -- dependencies not supported.
2491 +# `unknown' -- same as none, but documents that we really don't know.
2492 +# 'pass_all' -- all dependencies passed with no checks.
2493 +# 'test_compile' -- check by making test program.
2494 +# 'file_magic [[regex]]' -- check by looking for files in library path
2495 +# which responds to the $file_magic_cmd with a given extended regex.
2496 +# If you have `file' or equivalent on your system and you're not sure
2497 +# whether `pass_all' will *always* work, you probably want this one.
2498 +
2499 +case $host_os in
2500 +aix4* | aix5*)
2501 + lt_cv_deplibs_check_method=pass_all
2502 + ;;
2503 +
2504 +beos*)
2505 + lt_cv_deplibs_check_method=pass_all
2506 + ;;
2507 +
2508 +bsdi[[45]]*)
2509 + lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (shared object|dynamic lib)'
2510 + lt_cv_file_magic_cmd='/usr/bin/file -L'
2511 + lt_cv_file_magic_test_file=/shlib/libc.so
2512 + ;;
2513 +
2514 +cygwin*)
2515 + # func_win32_libid is a shell function defined in ltmain.sh
2516 + lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
2517 + lt_cv_file_magic_cmd='func_win32_libid'
2518 + ;;
2519 +
2520 +mingw* | pw32*)
2521 + # Base MSYS/MinGW do not provide the 'file' command needed by
2522 + # func_win32_libid shell function, so use a weaker test based on 'objdump'.
2523 + lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
2524 + lt_cv_file_magic_cmd='$OBJDUMP -f'
2525 + ;;
2526 +
2527 +darwin* | rhapsody*)
2528 + lt_cv_deplibs_check_method=pass_all
2529 + ;;
2530 +
2531 +freebsd* | dragonfly*)
2532 + if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
2533 + case $host_cpu in
2534 + i*86 )
2535 + # Not sure whether the presence of OpenBSD here was a mistake.
2536 + # Let's accept both of them until this is cleared up.
2537 + lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[[3-9]]86 (compact )?demand paged shared library'
2538 + lt_cv_file_magic_cmd=/usr/bin/file
2539 + lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
2540 + ;;
2541 + esac
2542 + else
2543 + lt_cv_deplibs_check_method=pass_all
2544 + fi
2545 + ;;
2546 +
2547 +gnu*)
2548 + lt_cv_deplibs_check_method=pass_all
2549 + ;;
2550 +
2551 +hpux10.20* | hpux11*)
2552 + lt_cv_file_magic_cmd=/usr/bin/file
2553 + case $host_cpu in
2554 + ia64*)
2555 + lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|ELF-[[0-9]][[0-9]]) shared object file - IA64'
2556 + lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
2557 + ;;
2558 + hppa*64*)
2559 + [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]']
2560 + lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
2561 + ;;
2562 + *)
2563 + lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|PA-RISC[[0-9]].[[0-9]]) shared library'
2564 + lt_cv_file_magic_test_file=/usr/lib/libc.sl
2565 + ;;
2566 + esac
2567 + ;;
2568 +
2569 +interix3*)
2570 + # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
2571 + lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so|\.a)$'
2572 + ;;
2573 +
2574 +irix5* | irix6* | nonstopux*)
2575 + case $LD in
2576 + *-32|*"-32 ") libmagic=32-bit;;
2577 + *-n32|*"-n32 ") libmagic=N32;;
2578 + *-64|*"-64 ") libmagic=64-bit;;
2579 + *) libmagic=never-match;;
2580 + esac
2581 + lt_cv_deplibs_check_method=pass_all
2582 + ;;
2583 +
2584 +# This must be Linux ELF.
2585 +linux* | k*bsd*-gnu)
2586 + lt_cv_deplibs_check_method=pass_all
2587 + ;;
2588 +
2589 +netbsd* | netbsdelf*-gnu)
2590 + if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
2591 + lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$'
2592 + else
2593 + lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so|_pic\.a)$'
2594 + fi
2595 + ;;
2596 +
2597 +newos6*)
2598 + lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (executable|dynamic lib)'
2599 + lt_cv_file_magic_cmd=/usr/bin/file
2600 + lt_cv_file_magic_test_file=/usr/lib/libnls.so
2601 + ;;
2602 +
2603 +nto-qnx*)
2604 + lt_cv_deplibs_check_method=unknown
2605 + ;;
2606 +
2607 +openbsd*)
2608 + if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
2609 + lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|\.so|_pic\.a)$'
2610 + else
2611 + lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$'
2612 + fi
2613 + ;;
2614 +
2615 +osf3* | osf4* | osf5*)
2616 + lt_cv_deplibs_check_method=pass_all
2617 + ;;
2618 +
2619 +solaris*)
2620 + lt_cv_deplibs_check_method=pass_all
2621 + ;;
2622 +
2623 +sysv4 | sysv4.3*)
2624 + case $host_vendor in
2625 + motorola)
2626 + 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]]'
2627 + lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
2628 + ;;
2629 + ncr)
2630 + lt_cv_deplibs_check_method=pass_all
2631 + ;;
2632 + sequent)
2633 + lt_cv_file_magic_cmd='/bin/file'
2634 + lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB (shared object|dynamic lib )'
2635 + ;;
2636 + sni)
2637 + lt_cv_file_magic_cmd='/bin/file'
2638 + lt_cv_deplibs_check_method="file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB dynamic lib"
2639 + lt_cv_file_magic_test_file=/lib/libc.so
2640 + ;;
2641 + siemens)
2642 + lt_cv_deplibs_check_method=pass_all
2643 + ;;
2644 + pc)
2645 + lt_cv_deplibs_check_method=pass_all
2646 + ;;
2647 + esac
2648 + ;;
2649 +
2650 +sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
2651 + lt_cv_deplibs_check_method=pass_all
2652 + ;;
2653 +esac
2654 +])
2655 +file_magic_cmd=$lt_cv_file_magic_cmd
2656 +deplibs_check_method=$lt_cv_deplibs_check_method
2657 +test -z "$deplibs_check_method" && deplibs_check_method=unknown
2658 +])# AC_DEPLIBS_CHECK_METHOD
2659 +
2660 +
2661 +# AC_PROG_NM
2662 +# ----------
2663 +# find the pathname to a BSD-compatible name lister
2664 +AC_DEFUN([AC_PROG_NM],
2665 +[AC_CACHE_CHECK([for BSD-compatible nm], lt_cv_path_NM,
2666 +[if test -n "$NM"; then
2667 + # Let the user override the test.
2668 + lt_cv_path_NM="$NM"
2669 +else
2670 + lt_nm_to_check="${ac_tool_prefix}nm"
2671 + if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
2672 + lt_nm_to_check="$lt_nm_to_check nm"
2673 + fi
2674 + for lt_tmp_nm in $lt_nm_to_check; do
2675 + lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
2676 + for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
2677 + IFS="$lt_save_ifs"
2678 + test -z "$ac_dir" && ac_dir=.
2679 + tmp_nm="$ac_dir/$lt_tmp_nm"
2680 + if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
2681 + # Check to see if the nm accepts a BSD-compat flag.
2682 + # Adding the `sed 1q' prevents false positives on HP-UX, which says:
2683 + # nm: unknown option "B" ignored
2684 + # Tru64's nm complains that /dev/null is an invalid object file
2685 + case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
2686 + */dev/null* | *'Invalid file or object type'*)
2687 + lt_cv_path_NM="$tmp_nm -B"
2688 + break
2689 + ;;
2690 + *)
2691 + case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
2692 + */dev/null*)
2693 + lt_cv_path_NM="$tmp_nm -p"
2694 + break
2695 + ;;
2696 + *)
2697 + lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
2698 + continue # so that we can try to find one that supports BSD flags
2699 + ;;
2700 + esac
2701 + ;;
2702 + esac
2703 + fi
2704 + done
2705 + IFS="$lt_save_ifs"
2706 + done
2707 + test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
2708 +fi])
2709 +NM="$lt_cv_path_NM"
2710 +])# AC_PROG_NM
2711 +
2712 +
2713 +# AC_CHECK_LIBM
2714 +# -------------
2715 +# check for math library
2716 +AC_DEFUN([AC_CHECK_LIBM],
2717 +[AC_REQUIRE([AC_CANONICAL_HOST])dnl
2718 +LIBM=
2719 +case $host in
2720 +*-*-beos* | *-*-cygwin* | *-*-pw32* | *-*-darwin*)
2721 + # These system don't have libm, or don't need it
2722 + ;;
2723 +*-ncr-sysv4.3*)
2724 + AC_CHECK_LIB(mw, _mwvalidcheckl, LIBM="-lmw")
2725 + AC_CHECK_LIB(m, cos, LIBM="$LIBM -lm")
2726 + ;;
2727 +*)
2728 + AC_CHECK_LIB(m, cos, LIBM="-lm")
2729 + ;;
2730 +esac
2731 +])# AC_CHECK_LIBM
2732 +
2733 +
2734 +# AC_LIBLTDL_CONVENIENCE([DIRECTORY])
2735 +# -----------------------------------
2736 +# sets LIBLTDL to the link flags for the libltdl convenience library and
2737 +# LTDLINCL to the include flags for the libltdl header and adds
2738 +# --enable-ltdl-convenience to the configure arguments. Note that
2739 +# AC_CONFIG_SUBDIRS is not called here. If DIRECTORY is not provided,
2740 +# it is assumed to be `libltdl'. LIBLTDL will be prefixed with
2741 +# '${top_builddir}/' and LTDLINCL will be prefixed with '${top_srcdir}/'
2742 +# (note the single quotes!). If your package is not flat and you're not
2743 +# using automake, define top_builddir and top_srcdir appropriately in
2744 +# the Makefiles.
2745 +AC_DEFUN([AC_LIBLTDL_CONVENIENCE],
2746 +[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
2747 + case $enable_ltdl_convenience in
2748 + no) AC_MSG_ERROR([this package needs a convenience libltdl]) ;;
2749 + "") enable_ltdl_convenience=yes
2750 + ac_configure_args="$ac_configure_args --enable-ltdl-convenience" ;;
2751 + esac
2752 + LIBLTDL='${top_builddir}/'ifelse($#,1,[$1],['libltdl'])/libltdlc.la
2753 + LTDLINCL='-I${top_srcdir}/'ifelse($#,1,[$1],['libltdl'])
2754 + # For backwards non-gettext consistent compatibility...
2755 + INCLTDL="$LTDLINCL"
2756 +])# AC_LIBLTDL_CONVENIENCE
2757 +
2758 +
2759 +# AC_LIBLTDL_INSTALLABLE([DIRECTORY])
2760 +# -----------------------------------
2761 +# sets LIBLTDL to the link flags for the libltdl installable library and
2762 +# LTDLINCL to the include flags for the libltdl header and adds
2763 +# --enable-ltdl-install to the configure arguments. Note that
2764 +# AC_CONFIG_SUBDIRS is not called here. If DIRECTORY is not provided,
2765 +# and an installed libltdl is not found, it is assumed to be `libltdl'.
2766 +# LIBLTDL will be prefixed with '${top_builddir}/'# and LTDLINCL with
2767 +# '${top_srcdir}/' (note the single quotes!). If your package is not
2768 +# flat and you're not using automake, define top_builddir and top_srcdir
2769 +# appropriately in the Makefiles.
2770 +# In the future, this macro may have to be called after AC_PROG_LIBTOOL.
2771 +AC_DEFUN([AC_LIBLTDL_INSTALLABLE],
2772 +[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
2773 + AC_CHECK_LIB(ltdl, lt_dlinit,
2774 + [test x"$enable_ltdl_install" != xyes && enable_ltdl_install=no],
2775 + [if test x"$enable_ltdl_install" = xno; then
2776 + AC_MSG_WARN([libltdl not installed, but installation disabled])
2777 + else
2778 + enable_ltdl_install=yes
2779 + fi
2780 + ])
2781 + if test x"$enable_ltdl_install" = x"yes"; then
2782 + ac_configure_args="$ac_configure_args --enable-ltdl-install"
2783 + LIBLTDL='${top_builddir}/'ifelse($#,1,[$1],['libltdl'])/libltdl.la
2784 + LTDLINCL='-I${top_srcdir}/'ifelse($#,1,[$1],['libltdl'])
2785 + else
2786 + ac_configure_args="$ac_configure_args --enable-ltdl-install=no"
2787 + LIBLTDL="-lltdl"
2788 + LTDLINCL=
2789 + fi
2790 + # For backwards non-gettext consistent compatibility...
2791 + INCLTDL="$LTDLINCL"
2792 +])# AC_LIBLTDL_INSTALLABLE
2793 +
2794 +
2795 +# AC_LIBTOOL_CXX
2796 +# --------------
2797 +# enable support for C++ libraries
2798 +AC_DEFUN([AC_LIBTOOL_CXX],
2799 +[AC_REQUIRE([_LT_AC_LANG_CXX])
2800 +])# AC_LIBTOOL_CXX
2801 +
2802 +
2803 +# _LT_AC_LANG_CXX
2804 +# ---------------
2805 +AC_DEFUN([_LT_AC_LANG_CXX],
2806 +[AC_REQUIRE([AC_PROG_CXX])
2807 +AC_REQUIRE([_LT_AC_PROG_CXXCPP])
2808 +_LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}CXX])
2809 +])# _LT_AC_LANG_CXX
2810 +
2811 +# _LT_AC_PROG_CXXCPP
2812 +# ------------------
2813 +AC_DEFUN([_LT_AC_PROG_CXXCPP],
2814 +[
2815 +AC_REQUIRE([AC_PROG_CXX])
2816 +if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
2817 + ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
2818 + (test "X$CXX" != "Xg++"))) ; then
2819 + AC_PROG_CXXCPP
2820 +fi
2821 +])# _LT_AC_PROG_CXXCPP
2822 +
2823 +# AC_LIBTOOL_F77
2824 +# --------------
2825 +# enable support for Fortran 77 libraries
2826 +AC_DEFUN([AC_LIBTOOL_F77],
2827 +[AC_REQUIRE([_LT_AC_LANG_F77])
2828 +])# AC_LIBTOOL_F77
2829 +
2830 +
2831 +# _LT_AC_LANG_F77
2832 +# ---------------
2833 +AC_DEFUN([_LT_AC_LANG_F77],
2834 +[AC_REQUIRE([AC_PROG_F77])
2835 +_LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}F77])
2836 +])# _LT_AC_LANG_F77
2837 +
2838 +
2839 +# AC_LIBTOOL_GCJ
2840 +# --------------
2841 +# enable support for GCJ libraries
2842 +AC_DEFUN([AC_LIBTOOL_GCJ],
2843 +[AC_REQUIRE([_LT_AC_LANG_GCJ])
2844 +])# AC_LIBTOOL_GCJ
2845 +
2846 +
2847 +# _LT_AC_LANG_GCJ
2848 +# ---------------
2849 +AC_DEFUN([_LT_AC_LANG_GCJ],
2850 +[AC_PROVIDE_IFELSE([AC_PROG_GCJ],[],
2851 + [AC_PROVIDE_IFELSE([A][M_PROG_GCJ],[],
2852 + [AC_PROVIDE_IFELSE([LT_AC_PROG_GCJ],[],
2853 + [ifdef([AC_PROG_GCJ],[AC_REQUIRE([AC_PROG_GCJ])],
2854 + [ifdef([A][M_PROG_GCJ],[AC_REQUIRE([A][M_PROG_GCJ])],
2855 + [AC_REQUIRE([A][C_PROG_GCJ_OR_A][M_PROG_GCJ])])])])])])
2856 +_LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}GCJ])
2857 +])# _LT_AC_LANG_GCJ
2858 +
2859 +
2860 +# AC_LIBTOOL_RC
2861 +# -------------
2862 +# enable support for Windows resource files
2863 +AC_DEFUN([AC_LIBTOOL_RC],
2864 +[AC_REQUIRE([LT_AC_PROG_RC])
2865 +_LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}RC])
2866 +])# AC_LIBTOOL_RC
2867 +
2868 +
2869 +# AC_LIBTOOL_LANG_C_CONFIG
2870 +# ------------------------
2871 +# Ensure that the configuration vars for the C compiler are
2872 +# suitably defined. Those variables are subsequently used by
2873 +# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
2874 +AC_DEFUN([AC_LIBTOOL_LANG_C_CONFIG], [_LT_AC_LANG_C_CONFIG])
2875 +AC_DEFUN([_LT_AC_LANG_C_CONFIG],
2876 +[lt_save_CC="$CC"
2877 +AC_LANG_PUSH(C)
2878 +
2879 +# Source file extension for C test sources.
2880 +ac_ext=c
2881 +
2882 +# Object file extension for compiled C test sources.
2883 +objext=o
2884 +_LT_AC_TAGVAR(objext, $1)=$objext
2885 +
2886 +# Code to be used in simple compile tests
2887 +lt_simple_compile_test_code="int some_variable = 0;\n"
2888 +
2889 +# Code to be used in simple link tests
2890 +lt_simple_link_test_code='int main(){return(0);}\n'
2891 +
2892 +_LT_AC_SYS_COMPILER
2893 +
2894 +# save warnings/boilerplate of simple test code
2895 +_LT_COMPILER_BOILERPLATE
2896 +_LT_LINKER_BOILERPLATE
2897 +
2898 +## CAVEAT EMPTOR:
2899 +## There is no encapsulation within the following macros, do not change
2900 +## the running order or otherwise move them around unless you know exactly
2901 +## what you are doing...
2902 +AC_LIBTOOL_PROG_COMPILER_NO_RTTI($1)
2903 +AC_LIBTOOL_PROG_COMPILER_PIC($1)
2904 +AC_LIBTOOL_PROG_CC_C_O($1)
2905 +AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1)
2906 +AC_LIBTOOL_PROG_LD_SHLIBS($1)
2907 +AC_LIBTOOL_SYS_DYNAMIC_LINKER($1)
2908 +AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1)
2909 +AC_LIBTOOL_SYS_LIB_STRIP
2910 +AC_LIBTOOL_DLOPEN_SELF
2911 +
2912 +# Report which library types will actually be built
2913 +AC_MSG_CHECKING([if libtool supports shared libraries])
2914 +AC_MSG_RESULT([$can_build_shared])
2915 +
2916 +AC_MSG_CHECKING([whether to build shared libraries])
2917 +test "$can_build_shared" = "no" && enable_shared=no
2918 +
2919 +# On AIX, shared libraries and static libraries use the same namespace, and
2920 +# are all built from PIC.
2921 +case $host_os in
2922 +aix3*)
2923 + test "$enable_shared" = yes && enable_static=no
2924 + if test -n "$RANLIB"; then
2925 + archive_cmds="$archive_cmds~\$RANLIB \$lib"
2926 + postinstall_cmds='$RANLIB $lib'
2927 + fi
2928 + ;;
2929 +
2930 +aix4* | aix5*)
2931 + if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
2932 + test "$enable_shared" = yes && enable_static=no
2933 + fi
2934 + ;;
2935 +esac
2936 +AC_MSG_RESULT([$enable_shared])
2937 +
2938 +AC_MSG_CHECKING([whether to build static libraries])
2939 +# Make sure either enable_shared or enable_static is yes.
2940 +test "$enable_shared" = yes || enable_static=yes
2941 +AC_MSG_RESULT([$enable_static])
2942 +
2943 +AC_LIBTOOL_CONFIG($1)
2944 +
2945 +AC_LANG_POP
2946 +CC="$lt_save_CC"
2947 +])# AC_LIBTOOL_LANG_C_CONFIG
2948 +
2949 +
2950 +# AC_LIBTOOL_LANG_CXX_CONFIG
2951 +# --------------------------
2952 +# Ensure that the configuration vars for the C compiler are
2953 +# suitably defined. Those variables are subsequently used by
2954 +# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
2955 +AC_DEFUN([AC_LIBTOOL_LANG_CXX_CONFIG], [_LT_AC_LANG_CXX_CONFIG(CXX)])
2956 +AC_DEFUN([_LT_AC_LANG_CXX_CONFIG],
2957 +[AC_LANG_PUSH(C++)
2958 +AC_REQUIRE([AC_PROG_CXX])
2959 +AC_REQUIRE([_LT_AC_PROG_CXXCPP])
2960 +
2961 +_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
2962 +_LT_AC_TAGVAR(allow_undefined_flag, $1)=
2963 +_LT_AC_TAGVAR(always_export_symbols, $1)=no
2964 +_LT_AC_TAGVAR(archive_expsym_cmds, $1)=
2965 +_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)=
2966 +_LT_AC_TAGVAR(hardcode_direct, $1)=no
2967 +_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=
2968 +_LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
2969 +_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
2970 +_LT_AC_TAGVAR(hardcode_minus_L, $1)=no
2971 +_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
2972 +_LT_AC_TAGVAR(hardcode_automatic, $1)=no
2973 +_LT_AC_TAGVAR(module_cmds, $1)=
2974 +_LT_AC_TAGVAR(module_expsym_cmds, $1)=
2975 +_LT_AC_TAGVAR(link_all_deplibs, $1)=unknown
2976 +_LT_AC_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
2977 +_LT_AC_TAGVAR(no_undefined_flag, $1)=
2978 +_LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
2979 +_LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=no
2980 +
2981 +# Dependencies to place before and after the object being linked:
2982 +_LT_AC_TAGVAR(predep_objects, $1)=
2983 +_LT_AC_TAGVAR(postdep_objects, $1)=
2984 +_LT_AC_TAGVAR(predeps, $1)=
2985 +_LT_AC_TAGVAR(postdeps, $1)=
2986 +_LT_AC_TAGVAR(compiler_lib_search_path, $1)=
2987 +
2988 +# Source file extension for C++ test sources.
2989 +ac_ext=cpp
2990 +
2991 +# Object file extension for compiled C++ test sources.
2992 +objext=o
2993 +_LT_AC_TAGVAR(objext, $1)=$objext
2994 +
2995 +# Code to be used in simple compile tests
2996 +lt_simple_compile_test_code="int some_variable = 0;\n"
2997 +
2998 +# Code to be used in simple link tests
2999 +lt_simple_link_test_code='int main(int, char *[[]]) { return(0); }\n'
3000 +
3001 +# ltmain only uses $CC for tagged configurations so make sure $CC is set.
3002 +_LT_AC_SYS_COMPILER
3003 +
3004 +# save warnings/boilerplate of simple test code
3005 +_LT_COMPILER_BOILERPLATE
3006 +_LT_LINKER_BOILERPLATE
3007 +
3008 +# Allow CC to be a program name with arguments.
3009 +lt_save_CC=$CC
3010 +lt_save_LD=$LD
3011 +lt_save_GCC=$GCC
3012 +GCC=$GXX
3013 +lt_save_with_gnu_ld=$with_gnu_ld
3014 +lt_save_path_LD=$lt_cv_path_LD
3015 +if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
3016 + lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
3017 +else
3018 + $as_unset lt_cv_prog_gnu_ld
3019 +fi
3020 +if test -n "${lt_cv_path_LDCXX+set}"; then
3021 + lt_cv_path_LD=$lt_cv_path_LDCXX
3022 +else
3023 + $as_unset lt_cv_path_LD
3024 +fi
3025 +test -z "${LDCXX+set}" || LD=$LDCXX
3026 +CC=${CXX-"c++"}
3027 +compiler=$CC
3028 +_LT_AC_TAGVAR(compiler, $1)=$CC
3029 +_LT_CC_BASENAME([$compiler])
3030 +
3031 +# We don't want -fno-exception wen compiling C++ code, so set the
3032 +# no_builtin_flag separately
3033 +if test "$GXX" = yes; then
3034 + _LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin'
3035 +else
3036 + _LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=
3037 +fi
3038 +
3039 +if test "$GXX" = yes; then
3040 + # Set up default GNU C++ configuration
3041 +
3042 + AC_PROG_LD
3043 +
3044 + # Check if GNU C++ uses GNU ld as the underlying linker, since the
3045 + # archiving commands below assume that GNU ld is being used.
3046 + if test "$with_gnu_ld" = yes; then
3047 + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
3048 + _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'
3049 +
3050 + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir'
3051 + _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
3052 +
3053 + # If archive_cmds runs LD, not CC, wlarc should be empty
3054 + # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
3055 + # investigate it a little bit more. (MM)
3056 + wlarc='${wl}'
3057 +
3058 + # ancient GNU ld didn't support --whole-archive et. al.
3059 + if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
3060 + grep 'no-whole-archive' > /dev/null; then
3061 + _LT_AC_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
3062 + else
3063 + _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
3064 + fi
3065 + else
3066 + with_gnu_ld=no
3067 + wlarc=
3068 +
3069 + # A generic and very simple default shared library creation
3070 + # command for GNU C++ for the case where it uses the native
3071 + # linker, instead of GNU ld. If possible, this setting should
3072 + # overridden to take advantage of the native linker features on
3073 + # the platform it is being used on.
3074 + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
3075 + fi
3076 +
3077 + # Commands to make compiler produce verbose output that lists
3078 + # what "hidden" libraries, object files and flags are used when
3079 + # linking a shared library.
3080 + output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
3081 +
3082 +else
3083 + GXX=no
3084 + with_gnu_ld=no
3085 + wlarc=
3086 +fi
3087 +
3088 +# PORTME: fill in a description of your system's C++ link characteristics
3089 +AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries])
3090 +_LT_AC_TAGVAR(ld_shlibs, $1)=yes
3091 +case $host_os in
3092 + aix3*)
3093 + # FIXME: insert proper C++ library support
3094 + _LT_AC_TAGVAR(ld_shlibs, $1)=no
3095 + ;;
3096 + aix4* | aix5*)
3097 + if test "$host_cpu" = ia64; then
3098 + # On IA64, the linker does run time linking by default, so we don't
3099 + # have to do anything special.
3100 + aix_use_runtimelinking=no
3101 + exp_sym_flag='-Bexport'
3102 + no_entry_flag=""
3103 + else
3104 + aix_use_runtimelinking=no
3105 +
3106 + # Test if we are trying to use run time linking or normal
3107 + # AIX style linking. If -brtl is somewhere in LDFLAGS, we
3108 + # need to do runtime linking.
3109 + case $host_os in aix4.[[23]]|aix4.[[23]].*|aix5*)
3110 + for ld_flag in $LDFLAGS; do
3111 + case $ld_flag in
3112 + *-brtl*)
3113 + aix_use_runtimelinking=yes
3114 + break
3115 + ;;
3116 + esac
3117 + done
3118 + ;;
3119 + esac
3120 +
3121 + exp_sym_flag='-bexport'
3122 + no_entry_flag='-bnoentry'
3123 + fi
3124 +
3125 + # When large executables or shared objects are built, AIX ld can
3126 + # have problems creating the table of contents. If linking a library
3127 + # or program results in "error TOC overflow" add -mminimal-toc to
3128 + # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
3129 + # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
3130 +
3131 + _LT_AC_TAGVAR(archive_cmds, $1)=''
3132 + _LT_AC_TAGVAR(hardcode_direct, $1)=yes
3133 + _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=':'
3134 + _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
3135 +
3136 + if test "$GXX" = yes; then
3137 + case $host_os in aix4.[[012]]|aix4.[[012]].*)
3138 + # We only want to do this on AIX 4.2 and lower, the check
3139 + # below for broken collect2 doesn't work under 4.3+
3140 + collect2name=`${CC} -print-prog-name=collect2`
3141 + if test -f "$collect2name" && \
3142 + strings "$collect2name" | grep resolve_lib_name >/dev/null
3143 + then
3144 + # We have reworked collect2
3145 + _LT_AC_TAGVAR(hardcode_direct, $1)=yes
3146 + else
3147 + # We have old collect2
3148 + _LT_AC_TAGVAR(hardcode_direct, $1)=unsupported
3149 + # It fails to find uninstalled libraries when the uninstalled
3150 + # path is not listed in the libpath. Setting hardcode_minus_L
3151 + # to unsupported forces relinking
3152 + _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
3153 + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
3154 + _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
3155 + fi
3156 + ;;
3157 + esac
3158 + shared_flag='-shared'
3159 + if test "$aix_use_runtimelinking" = yes; then
3160 + shared_flag="$shared_flag "'${wl}-G'
3161 + fi
3162 + else
3163 + # not using gcc
3164 + if test "$host_cpu" = ia64; then
3165 + # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
3166 + # chokes on -Wl,-G. The following line is correct:
3167 + shared_flag='-G'
3168 + else
3169 + if test "$aix_use_runtimelinking" = yes; then
3170 + shared_flag='${wl}-G'
3171 + else
3172 + shared_flag='${wl}-bM:SRE'
3173 + fi
3174 + fi
3175 + fi
3176 +
3177 + # It seems that -bexpall does not export symbols beginning with
3178 + # underscore (_), so it is better to generate a list of symbols to export.
3179 + _LT_AC_TAGVAR(always_export_symbols, $1)=yes
3180 + if test "$aix_use_runtimelinking" = yes; then
3181 + # Warning - without using the other runtime loading flags (-brtl),
3182 + # -berok will link without error, but may produce a broken library.
3183 + _LT_AC_TAGVAR(allow_undefined_flag, $1)='-berok'
3184 + # Determine the default libpath from the value encoded in an empty executable.
3185 + _LT_AC_SYS_LIBPATH_AIX
3186 + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
3187 +
3188 + _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"
3189 + else
3190 + if test "$host_cpu" = ia64; then
3191 + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib'
3192 + _LT_AC_TAGVAR(allow_undefined_flag, $1)="-z nodefs"
3193 + _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"
3194 + else
3195 + # Determine the default libpath from the value encoded in an empty executable.
3196 + _LT_AC_SYS_LIBPATH_AIX
3197 + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
3198 + # Warning - without using the other run time loading flags,
3199 + # -berok will link without error, but may produce a broken library.
3200 + _LT_AC_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok'
3201 + _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok'
3202 + # Exported symbols can be pulled into shared objects from archives
3203 + _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='$convenience'
3204 + _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes
3205 + # This is similar to how AIX traditionally builds its shared libraries.
3206 + _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'
3207 + fi
3208 + fi
3209 + ;;
3210 +
3211 + beos*)
3212 + if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
3213 + _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
3214 + # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
3215 + # support --undefined. This deserves some investigation. FIXME
3216 + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
3217 + else
3218 + _LT_AC_TAGVAR(ld_shlibs, $1)=no
3219 + fi
3220 + ;;
3221 +
3222 + chorus*)
3223 + case $cc_basename in
3224 + *)
3225 + # FIXME: insert proper C++ library support
3226 + _LT_AC_TAGVAR(ld_shlibs, $1)=no
3227 + ;;
3228 + esac
3229 + ;;
3230 +
3231 + cygwin* | mingw* | pw32*)
3232 + # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless,
3233 + # as there is no search path for DLLs.
3234 + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
3235 + _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
3236 + _LT_AC_TAGVAR(always_export_symbols, $1)=no
3237 + _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
3238 +
3239 + if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
3240 + _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'
3241 + # If the export-symbols file already is a .def file (1st line
3242 + # is EXPORTS), use it as is; otherwise, prepend...
3243 + _LT_AC_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
3244 + cp $export_symbols $output_objdir/$soname.def;
3245 + else
3246 + echo EXPORTS > $output_objdir/$soname.def;
3247 + cat $export_symbols >> $output_objdir/$soname.def;
3248 + fi~
3249 + $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'
3250 + else
3251 + _LT_AC_TAGVAR(ld_shlibs, $1)=no
3252 + fi
3253 + ;;
3254 + darwin* | rhapsody*)
3255 + case $host_os in
3256 + rhapsody* | darwin1.[[012]])
3257 + _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-undefined ${wl}suppress'
3258 + ;;
3259 + *) # Darwin 1.3 on
3260 + if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
3261 + _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
3262 + else
3263 + case ${MACOSX_DEPLOYMENT_TARGET} in
3264 + 10.[[012]])
3265 + _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
3266 + ;;
3267 + 10.*)
3268 + _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-undefined ${wl}dynamic_lookup'
3269 + ;;
3270 + esac
3271 + fi
3272 + ;;
3273 + esac
3274 + _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
3275 + _LT_AC_TAGVAR(hardcode_direct, $1)=no
3276 + _LT_AC_TAGVAR(hardcode_automatic, $1)=yes
3277 + _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
3278 + _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=''
3279 + _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
3280 +
3281 + if test "$GXX" = yes ; then
3282 + lt_int_apple_cc_single_mod=no
3283 + output_verbose_link_cmd='echo'
3284 + if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
3285 + lt_int_apple_cc_single_mod=yes
3286 + fi
3287 + if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
3288 + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
3289 + else
3290 + _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'
3291 + fi
3292 + _LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
3293 + # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
3294 + if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
3295 + _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}'
3296 + else
3297 + _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}'
3298 + fi
3299 + _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}'
3300 + else
3301 + case $cc_basename in
3302 + xlc*)
3303 + output_verbose_link_cmd='echo'
3304 + _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'
3305 + _LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
3306 + # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
3307 + _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}'
3308 + _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}'
3309 + ;;
3310 + *)
3311 + _LT_AC_TAGVAR(ld_shlibs, $1)=no
3312 + ;;
3313 + esac
3314 + fi
3315 + ;;
3316 +
3317 + dgux*)
3318 + case $cc_basename in
3319 + ec++*)
3320 + # FIXME: insert proper C++ library support
3321 + _LT_AC_TAGVAR(ld_shlibs, $1)=no
3322 + ;;
3323 + ghcx*)
3324 + # Green Hills C++ Compiler
3325 + # FIXME: insert proper C++ library support
3326 + _LT_AC_TAGVAR(ld_shlibs, $1)=no
3327 + ;;
3328 + *)
3329 + # FIXME: insert proper C++ library support
3330 + _LT_AC_TAGVAR(ld_shlibs, $1)=no
3331 + ;;
3332 + esac
3333 + ;;
3334 + freebsd[[12]]*)
3335 + # C++ shared libraries reported to be fairly broken before switch to ELF
3336 + _LT_AC_TAGVAR(ld_shlibs, $1)=no
3337 + ;;
3338 + freebsd-elf*)
3339 + _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
3340 + ;;
3341 + freebsd* | dragonfly*)
3342 + # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
3343 + # conventions
3344 + _LT_AC_TAGVAR(ld_shlibs, $1)=yes
3345 + ;;
3346 + gnu*)
3347 + ;;
3348 + hpux9*)
3349 + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
3350 + _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
3351 + _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
3352 + _LT_AC_TAGVAR(hardcode_direct, $1)=yes
3353 + _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH,
3354 + # but as the default
3355 + # location of the library.
3356 +
3357 + case $cc_basename in
3358 + CC*)
3359 + # FIXME: insert proper C++ library support
3360 + _LT_AC_TAGVAR(ld_shlibs, $1)=no
3361 + ;;
3362 + aCC*)
3363 + _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'
3364 + # Commands to make compiler produce verbose output that lists
3365 + # what "hidden" libraries, object files and flags are used when
3366 + # linking a shared library.
3367 + #
3368 + # There doesn't appear to be a way to prevent this compiler from
3369 + # explicitly linking system object files so we need to strip them
3370 + # from the output so that they don't get included in the library
3371 + # dependencies.
3372 + 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'
3373 + ;;
3374 + *)
3375 + if test "$GXX" = yes; then
3376 + _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'
3377 + else
3378 + # FIXME: insert proper C++ library support
3379 + _LT_AC_TAGVAR(ld_shlibs, $1)=no
3380 + fi
3381 + ;;
3382 + esac
3383 + ;;
3384 + hpux10*|hpux11*)
3385 + if test $with_gnu_ld = no; then
3386 + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
3387 + _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
3388 +
3389 + case $host_cpu in
3390 + hppa*64*|ia64*)
3391 + _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='+b $libdir'
3392 + ;;
3393 + *)
3394 + _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
3395 + ;;
3396 + esac
3397 + fi
3398 + case $host_cpu in
3399 + hppa*64*|ia64*)
3400 + _LT_AC_TAGVAR(hardcode_direct, $1)=no
3401 + _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
3402 + ;;
3403 + *)
3404 + _LT_AC_TAGVAR(hardcode_direct, $1)=yes
3405 + _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH,
3406 + # but as the default
3407 + # location of the library.
3408 + ;;
3409 + esac
3410 +
3411 + case $cc_basename in
3412 + CC*)
3413 + # FIXME: insert proper C++ library support
3414 + _LT_AC_TAGVAR(ld_shlibs, $1)=no
3415 + ;;
3416 + aCC*)
3417 + case $host_cpu in
3418 + hppa*64*)
3419 + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
3420 + ;;
3421 + ia64*)
3422 + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
3423 + ;;
3424 + *)
3425 + _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'
3426 + ;;
3427 + esac
3428 + # Commands to make compiler produce verbose output that lists
3429 + # what "hidden" libraries, object files and flags are used when
3430 + # linking a shared library.
3431 + #
3432 + # There doesn't appear to be a way to prevent this compiler from
3433 + # explicitly linking system object files so we need to strip them
3434 + # from the output so that they don't get included in the library
3435 + # dependencies.
3436 + 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'
3437 + ;;
3438 + *)
3439 + if test "$GXX" = yes; then
3440 + if test $with_gnu_ld = no; then
3441 + case $host_cpu in
3442 + hppa*64*)
3443 + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
3444 + ;;
3445 + ia64*)
3446 + _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'
3447 + ;;
3448 + *)
3449 + _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'
3450 + ;;
3451 + esac
3452 + fi
3453 + else
3454 + # FIXME: insert proper C++ library support
3455 + _LT_AC_TAGVAR(ld_shlibs, $1)=no
3456 + fi
3457 + ;;
3458 + esac
3459 + ;;
3460 + interix3*)
3461 + _LT_AC_TAGVAR(hardcode_direct, $1)=no
3462 + _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
3463 + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
3464 + _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
3465 + # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
3466 + # Instead, shared libraries are loaded at an image base (0x10000000 by
3467 + # default) and relocated if they conflict, which is a slow very memory
3468 + # consuming and fragmenting process. To avoid this, we pick a random,
3469 + # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
3470 + # time. Moving up from 0x10000000 also allows more sbrk(2) space.
3471 + _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'
3472 + _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'
3473 + ;;
3474 + irix5* | irix6*)
3475 + case $cc_basename in
3476 + CC*)
3477 + # SGI C++
3478 + _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'
3479 +
3480 + # Archives containing C++ object files must be created using
3481 + # "CC -ar", where "CC" is the IRIX C++ compiler. This is
3482 + # necessary to make sure instantiated templates are included
3483 + # in the archive.
3484 + _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -ar -WR,-u -o $oldlib $oldobjs'
3485 + ;;
3486 + *)
3487 + if test "$GXX" = yes; then
3488 + if test "$with_gnu_ld" = no; then
3489 + _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'
3490 + else
3491 + _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'
3492 + fi
3493 + fi
3494 + _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
3495 + ;;
3496 + esac
3497 + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
3498 + _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
3499 + ;;
3500 + linux* | k*bsd*-gnu)
3501 + case $cc_basename in
3502 + KCC*)
3503 + # Kuck and Associates, Inc. (KAI) C++ Compiler
3504 +
3505 + # KCC will only create a shared library if the output file
3506 + # ends with ".so" (or ".sl" for HP-UX), so rename the library
3507 + # to its proper name (with version) after linking.
3508 + _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'
3509 + _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'
3510 + # Commands to make compiler produce verbose output that lists
3511 + # what "hidden" libraries, object files and flags are used when
3512 + # linking a shared library.
3513 + #
3514 + # There doesn't appear to be a way to prevent this compiler from
3515 + # explicitly linking system object files so we need to strip them
3516 + # from the output so that they don't get included in the library
3517 + # dependencies.
3518 + 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'
3519 +
3520 + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath,$libdir'
3521 + _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
3522 +
3523 + # Archives containing C++ object files must be created using
3524 + # "CC -Bstatic", where "CC" is the KAI C++ compiler.
3525 + _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs'
3526 + ;;
3527 + icpc*)
3528 + # Intel C++
3529 + with_gnu_ld=yes
3530 + # version 8.0 and above of icpc choke on multiply defined symbols
3531 + # if we add $predep_objects and $postdep_objects, however 7.1 and
3532 + # earlier do not add the objects themselves.
3533 + case `$CC -V 2>&1` in
3534 + *"Version 7."*)
3535 + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
3536 + _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'
3537 + ;;
3538 + *) # Version 8.0 or newer
3539 + tmp_idyn=
3540 + case $host_cpu in
3541 + ia64*) tmp_idyn=' -i_dynamic';;
3542 + esac
3543 + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
3544 + _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'
3545 + ;;
3546 + esac
3547 + _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
3548 + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
3549 + _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
3550 + _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
3551 + ;;
3552 + pgCC*)
3553 + # Portland Group C++ compiler
3554 + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
3555 + _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'
3556 +
3557 + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir'
3558 + _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
3559 + _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'
3560 + ;;
3561 + cxx*)
3562 + # Compaq C++
3563 + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
3564 + _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'
3565 +
3566 + runpath_var=LD_RUN_PATH
3567 + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
3568 + _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
3569 +
3570 + # Commands to make compiler produce verbose output that lists
3571 + # what "hidden" libraries, object files and flags are used when
3572 + # linking a shared library.
3573 + #
3574 + # There doesn't appear to be a way to prevent this compiler from
3575 + # explicitly linking system object files so we need to strip them
3576 + # from the output so that they don't get included in the library
3577 + # dependencies.
3578 + 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'
3579 + ;;
3580 + esac
3581 + ;;
3582 + lynxos*)
3583 + # FIXME: insert proper C++ library support
3584 + _LT_AC_TAGVAR(ld_shlibs, $1)=no
3585 + ;;
3586 + m88k*)
3587 + # FIXME: insert proper C++ library support
3588 + _LT_AC_TAGVAR(ld_shlibs, $1)=no
3589 + ;;
3590 + mvs*)
3591 + case $cc_basename in
3592 + cxx*)
3593 + # FIXME: insert proper C++ library support
3594 + _LT_AC_TAGVAR(ld_shlibs, $1)=no
3595 + ;;
3596 + *)
3597 + # FIXME: insert proper C++ library support
3598 + _LT_AC_TAGVAR(ld_shlibs, $1)=no
3599 + ;;
3600 + esac
3601 + ;;
3602 + netbsd* | netbsdelf*-gnu)
3603 + if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
3604 + _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
3605 + wlarc=
3606 + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
3607 + _LT_AC_TAGVAR(hardcode_direct, $1)=yes
3608 + _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
3609 + fi
3610 + # Workaround some broken pre-1.5 toolchains
3611 + output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
3612 + ;;
3613 + openbsd2*)
3614 + # C++ shared libraries are fairly broken
3615 + _LT_AC_TAGVAR(ld_shlibs, $1)=no
3616 + ;;
3617 + openbsd*)
3618 + _LT_AC_TAGVAR(hardcode_direct, $1)=yes
3619 + _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
3620 + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
3621 + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
3622 + if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
3623 + _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'
3624 + _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
3625 + _LT_AC_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
3626 + fi
3627 + output_verbose_link_cmd='echo'
3628 + ;;
3629 + osf3*)
3630 + case $cc_basename in
3631 + KCC*)
3632 + # Kuck and Associates, Inc. (KAI) C++ Compiler
3633 +
3634 + # KCC will only create a shared library if the output file
3635 + # ends with ".so" (or ".sl" for HP-UX), so rename the library
3636 + # to its proper name (with version) after linking.
3637 + _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'
3638 +
3639 + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
3640 + _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: