1 Index: linux-atm-2.4.1/aclocal.m4
2 ===================================================================
3 --- linux-atm-2.4.1.orig/aclocal.m4 2007-06-04 13:23:54.462454344 +0200
4 +++ linux-atm-2.4.1/aclocal.m4 2007-06-04 13:23:56.488146392 +0200
6 dnl even the implied warranty of MERCHANTABILITY or FITNESS FOR A
7 dnl PARTICULAR PURPOSE.
9 +# lib-prefix.m4 serial 4 (gettext-0.14.2)
10 +dnl Copyright (C) 2001-2005 Free Software Foundation, Inc.
11 +dnl This file is free software; the Free Software Foundation
12 +dnl gives unlimited permission to copy and/or distribute it,
13 +dnl with or without modifications, as long as this notice is preserved.
15 +dnl From Bruno Haible.
17 +dnl AC_LIB_ARG_WITH is synonymous to AC_ARG_WITH in autoconf-2.13, and
18 +dnl similar to AC_ARG_WITH in autoconf 2.52...2.57 except that is doesn't
19 +dnl require excessive bracketing.
20 +ifdef([AC_HELP_STRING],
21 +[AC_DEFUN([AC_LIB_ARG_WITH], [AC_ARG_WITH([$1],[[$2]],[$3],[$4])])],
22 +[AC_DEFUN([AC_][LIB_ARG_WITH], [AC_ARG_WITH([$1],[$2],[$3],[$4])])])
24 +dnl AC_LIB_PREFIX adds to the CPPFLAGS and LDFLAGS the flags that are needed
25 +dnl to access previously installed libraries. The basic assumption is that
26 +dnl a user will want packages to use other packages he previously installed
27 +dnl with the same --prefix option.
28 +dnl This macro is not needed if only AC_LIB_LINKFLAGS is used to locate
29 +dnl libraries, but is otherwise very convenient.
30 +AC_DEFUN([AC_LIB_PREFIX],
32 + AC_BEFORE([$0], [AC_LIB_LINKFLAGS])
33 + AC_REQUIRE([AC_PROG_CC])
34 + AC_REQUIRE([AC_CANONICAL_HOST])
35 + AC_REQUIRE([AC_LIB_PREPARE_PREFIX])
36 + dnl By default, look in $includedir and $libdir.
38 + AC_LIB_WITH_FINAL_PREFIX([
39 + eval additional_includedir=\"$includedir\"
40 + eval additional_libdir=\"$libdir\"
42 + AC_LIB_ARG_WITH([lib-prefix],
43 +[ --with-lib-prefix[=DIR] search for libraries in DIR/include and DIR/lib
44 + --without-lib-prefix don't search for libraries in includedir and libdir],
46 + if test "X$withval" = "Xno"; then
49 + if test "X$withval" = "X"; then
50 + AC_LIB_WITH_FINAL_PREFIX([
51 + eval additional_includedir=\"$includedir\"
52 + eval additional_libdir=\"$libdir\"
55 + additional_includedir="$withval/include"
56 + additional_libdir="$withval/lib"
60 + if test $use_additional = yes; then
61 + dnl Potentially add $additional_includedir to $CPPFLAGS.
62 + dnl But don't add it
63 + dnl 1. if it's the standard /usr/include,
64 + dnl 2. if it's already present in $CPPFLAGS,
65 + dnl 3. if it's /usr/local/include and we are using GCC on Linux,
66 + dnl 4. if it doesn't exist as a directory.
67 + if test "X$additional_includedir" != "X/usr/include"; then
69 + for x in $CPPFLAGS; do
70 + AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"])
71 + if test "X$x" = "X-I$additional_includedir"; then
76 + if test -z "$haveit"; then
77 + if test "X$additional_includedir" = "X/usr/local/include"; then
78 + if test -n "$GCC"; then
80 + linux* | gnu* | k*bsd*-gnu) haveit=yes;;
84 + if test -z "$haveit"; then
85 + if test -d "$additional_includedir"; then
86 + dnl Really add $additional_includedir to $CPPFLAGS.
87 + CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }-I$additional_includedir"
92 + dnl Potentially add $additional_libdir to $LDFLAGS.
93 + dnl But don't add it
94 + dnl 1. if it's the standard /usr/lib,
95 + dnl 2. if it's already present in $LDFLAGS,
96 + dnl 3. if it's /usr/local/lib and we are using GCC on Linux,
97 + dnl 4. if it doesn't exist as a directory.
98 + if test "X$additional_libdir" != "X/usr/lib"; then
100 + for x in $LDFLAGS; do
101 + AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"])
102 + if test "X$x" = "X-L$additional_libdir"; then
107 + if test -z "$haveit"; then
108 + if test "X$additional_libdir" = "X/usr/local/lib"; then
109 + if test -n "$GCC"; then
111 + linux*) haveit=yes;;
115 + if test -z "$haveit"; then
116 + if test -d "$additional_libdir"; then
117 + dnl Really add $additional_libdir to $LDFLAGS.
118 + LDFLAGS="${LDFLAGS}${LDFLAGS:+ }-L$additional_libdir"
126 +dnl AC_LIB_PREPARE_PREFIX creates variables acl_final_prefix,
127 +dnl acl_final_exec_prefix, containing the values to which $prefix and
128 +dnl $exec_prefix will expand at the end of the configure script.
129 +AC_DEFUN([AC_LIB_PREPARE_PREFIX],
131 + dnl Unfortunately, prefix and exec_prefix get only finally determined
132 + dnl at the end of configure.
133 + if test "X$prefix" = "XNONE"; then
134 + acl_final_prefix="$ac_default_prefix"
136 + acl_final_prefix="$prefix"
138 + if test "X$exec_prefix" = "XNONE"; then
139 + acl_final_exec_prefix='${prefix}'
141 + acl_final_exec_prefix="$exec_prefix"
143 + acl_save_prefix="$prefix"
144 + prefix="$acl_final_prefix"
145 + eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
146 + prefix="$acl_save_prefix"
149 +dnl AC_LIB_WITH_FINAL_PREFIX([statement]) evaluates statement, with the
150 +dnl variables prefix and exec_prefix bound to the values they will have
151 +dnl at the end of the configure script.
152 +AC_DEFUN([AC_LIB_WITH_FINAL_PREFIX],
154 + acl_save_prefix="$prefix"
155 + prefix="$acl_final_prefix"
156 + acl_save_exec_prefix="$exec_prefix"
157 + exec_prefix="$acl_final_exec_prefix"
159 + exec_prefix="$acl_save_exec_prefix"
160 + prefix="$acl_save_prefix"
163 +# lib-link.m4 serial 6 (gettext-0.14.3)
164 +dnl Copyright (C) 2001-2005 Free Software Foundation, Inc.
165 +dnl This file is free software; the Free Software Foundation
166 +dnl gives unlimited permission to copy and/or distribute it,
167 +dnl with or without modifications, as long as this notice is preserved.
169 +dnl From Bruno Haible.
173 +dnl AC_LIB_LINKFLAGS(name [, dependencies]) searches for libname and
174 +dnl the libraries corresponding to explicit and implicit dependencies.
175 +dnl Sets and AC_SUBSTs the LIB${NAME} and LTLIB${NAME} variables and
176 +dnl augments the CPPFLAGS variable.
177 +AC_DEFUN([AC_LIB_LINKFLAGS],
179 + AC_REQUIRE([AC_LIB_PREPARE_PREFIX])
180 + AC_REQUIRE([AC_LIB_RPATH])
181 + define([Name],[translit([$1],[./-], [___])])
182 + define([NAME],[translit([$1],[abcdefghijklmnopqrstuvwxyz./-],
183 + [ABCDEFGHIJKLMNOPQRSTUVWXYZ___])])
184 + AC_CACHE_CHECK([how to link with lib[]$1], [ac_cv_lib[]Name[]_libs], [
185 + AC_LIB_LINKFLAGS_BODY([$1], [$2])
186 + ac_cv_lib[]Name[]_libs="$LIB[]NAME"
187 + ac_cv_lib[]Name[]_ltlibs="$LTLIB[]NAME"
188 + ac_cv_lib[]Name[]_cppflags="$INC[]NAME"
190 + LIB[]NAME="$ac_cv_lib[]Name[]_libs"
191 + LTLIB[]NAME="$ac_cv_lib[]Name[]_ltlibs"
192 + INC[]NAME="$ac_cv_lib[]Name[]_cppflags"
193 + AC_LIB_APPENDTOVAR([CPPFLAGS], [$INC]NAME)
194 + AC_SUBST([LIB]NAME)
195 + AC_SUBST([LTLIB]NAME)
196 + dnl Also set HAVE_LIB[]NAME so that AC_LIB_HAVE_LINKFLAGS can reuse the
197 + dnl results of this search when this library appears as a dependency.
203 +dnl AC_LIB_HAVE_LINKFLAGS(name, dependencies, includes, testcode)
204 +dnl searches for libname and the libraries corresponding to explicit and
205 +dnl implicit dependencies, together with the specified include files and
206 +dnl the ability to compile and link the specified testcode. If found, it
207 +dnl sets and AC_SUBSTs HAVE_LIB${NAME}=yes and the LIB${NAME} and
208 +dnl LTLIB${NAME} variables and augments the CPPFLAGS variable, and
209 +dnl #defines HAVE_LIB${NAME} to 1. Otherwise, it sets and AC_SUBSTs
210 +dnl HAVE_LIB${NAME}=no and LIB${NAME} and LTLIB${NAME} to empty.
211 +AC_DEFUN([AC_LIB_HAVE_LINKFLAGS],
213 + AC_REQUIRE([AC_LIB_PREPARE_PREFIX])
214 + AC_REQUIRE([AC_LIB_RPATH])
215 + define([Name],[translit([$1],[./-], [___])])
216 + define([NAME],[translit([$1],[abcdefghijklmnopqrstuvwxyz./-],
217 + [ABCDEFGHIJKLMNOPQRSTUVWXYZ___])])
219 + dnl Search for lib[]Name and define LIB[]NAME, LTLIB[]NAME and INC[]NAME
221 + AC_LIB_LINKFLAGS_BODY([$1], [$2])
223 + dnl Add $INC[]NAME to CPPFLAGS before performing the following checks,
224 + dnl because if the user has installed lib[]Name and not disabled its use
225 + dnl via --without-lib[]Name-prefix, he wants to use it.
226 + ac_save_CPPFLAGS="$CPPFLAGS"
227 + AC_LIB_APPENDTOVAR([CPPFLAGS], [$INC]NAME)
229 + AC_CACHE_CHECK([for lib[]$1], [ac_cv_lib[]Name], [
230 + ac_save_LIBS="$LIBS"
231 + LIBS="$LIBS $LIB[]NAME"
232 + AC_TRY_LINK([$3], [$4], [ac_cv_lib[]Name=yes], [ac_cv_lib[]Name=no])
233 + LIBS="$ac_save_LIBS"
235 + if test "$ac_cv_lib[]Name" = yes; then
237 + AC_DEFINE([HAVE_LIB]NAME, 1, [Define if you have the $1 library.])
238 + AC_MSG_CHECKING([how to link with lib[]$1])
239 + AC_MSG_RESULT([$LIB[]NAME])
242 + dnl If $LIB[]NAME didn't lead to a usable library, we don't need
243 + dnl $INC[]NAME either.
244 + CPPFLAGS="$ac_save_CPPFLAGS"
248 + AC_SUBST([HAVE_LIB]NAME)
249 + AC_SUBST([LIB]NAME)
250 + AC_SUBST([LTLIB]NAME)
255 +dnl Determine the platform dependent parameters needed to use rpath:
256 +dnl libext, shlibext, hardcode_libdir_flag_spec, hardcode_libdir_separator,
257 +dnl hardcode_direct, hardcode_minus_L.
258 +AC_DEFUN([AC_LIB_RPATH],
260 + dnl Tell automake >= 1.10 to complain if config.rpath is missing.
261 + m4_ifdef([AC_REQUIRE_AUX_FILE], [AC_REQUIRE_AUX_FILE([config.rpath])])
262 + AC_REQUIRE([AC_PROG_CC]) dnl we use $CC, $GCC, $LDFLAGS
263 + AC_REQUIRE([AC_LIB_PROG_LD]) dnl we use $LD, $with_gnu_ld
264 + AC_REQUIRE([AC_CANONICAL_HOST]) dnl we use $host
265 + AC_REQUIRE([AC_CONFIG_AUX_DIR_DEFAULT]) dnl we use $ac_aux_dir
266 + AC_CACHE_CHECK([for shared library run path origin], acl_cv_rpath, [
267 + CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
268 + ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
270 + rm -f ./conftest.sh
274 + libext="$acl_cv_libext"
275 + shlibext="$acl_cv_shlibext"
276 + hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
277 + hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
278 + hardcode_direct="$acl_cv_hardcode_direct"
279 + hardcode_minus_L="$acl_cv_hardcode_minus_L"
280 + dnl Determine whether the user wants rpath handling at all.
281 + AC_ARG_ENABLE(rpath,
282 + [ --disable-rpath do not hardcode runtime library paths],
283 + :, enable_rpath=yes)
286 +dnl AC_LIB_LINKFLAGS_BODY(name [, dependencies]) searches for libname and
287 +dnl the libraries corresponding to explicit and implicit dependencies.
288 +dnl Sets the LIB${NAME}, LTLIB${NAME} and INC${NAME} variables.
289 +AC_DEFUN([AC_LIB_LINKFLAGS_BODY],
291 + define([NAME],[translit([$1],[abcdefghijklmnopqrstuvwxyz./-],
292 + [ABCDEFGHIJKLMNOPQRSTUVWXYZ___])])
293 + dnl By default, look in $includedir and $libdir.
295 + AC_LIB_WITH_FINAL_PREFIX([
296 + eval additional_includedir=\"$includedir\"
297 + eval additional_libdir=\"$libdir\"
299 + AC_LIB_ARG_WITH([lib$1-prefix],
300 +[ --with-lib$1-prefix[=DIR] search for lib$1 in DIR/include and DIR/lib
301 + --without-lib$1-prefix don't search for lib$1 in includedir and libdir],
303 + if test "X$withval" = "Xno"; then
306 + if test "X$withval" = "X"; then
307 + AC_LIB_WITH_FINAL_PREFIX([
308 + eval additional_includedir=\"$includedir\"
309 + eval additional_libdir=\"$libdir\"
312 + additional_includedir="$withval/include"
313 + additional_libdir="$withval/lib"
317 + dnl Search the library and its dependencies in $additional_libdir and
318 + dnl $LDFLAGS. Using breadth-first-seach.
324 + names_already_handled=
325 + names_next_round='$1 $2'
326 + while test -n "$names_next_round"; do
327 + names_this_round="$names_next_round"
329 + for name in $names_this_round; do
331 + for n in $names_already_handled; do
332 + if test "$n" = "$name"; then
333 + already_handled=yes
337 + if test -z "$already_handled"; then
338 + names_already_handled="$names_already_handled $name"
339 + dnl See if it was already located by an earlier AC_LIB_LINKFLAGS
340 + dnl or AC_LIB_HAVE_LINKFLAGS call.
341 + uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
342 + eval value=\"\$HAVE_LIB$uppername\"
343 + if test -n "$value"; then
344 + if test "$value" = yes; then
345 + eval value=\"\$LIB$uppername\"
346 + test -z "$value" || LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$value"
347 + eval value=\"\$LTLIB$uppername\"
348 + test -z "$value" || LTLIB[]NAME="${LTLIB[]NAME}${LTLIB[]NAME:+ }$value"
350 + dnl An earlier call to AC_LIB_HAVE_LINKFLAGS has determined
351 + dnl that this library doesn't exist. So just drop it.
355 + dnl Search the library lib$name in $additional_libdir and $LDFLAGS
356 + dnl and the already constructed $LIBNAME/$LTLIBNAME.
361 + if test $use_additional = yes; then
362 + if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
363 + found_dir="$additional_libdir"
364 + found_so="$additional_libdir/lib$name.$shlibext"
365 + if test -f "$additional_libdir/lib$name.la"; then
366 + found_la="$additional_libdir/lib$name.la"
369 + if test -f "$additional_libdir/lib$name.$libext"; then
370 + found_dir="$additional_libdir"
371 + found_a="$additional_libdir/lib$name.$libext"
372 + if test -f "$additional_libdir/lib$name.la"; then
373 + found_la="$additional_libdir/lib$name.la"
378 + if test "X$found_dir" = "X"; then
379 + for x in $LDFLAGS $LTLIB[]NAME; do
380 + AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"])
383 + dir=`echo "X$x" | sed -e 's/^X-L//'`
384 + if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
386 + found_so="$dir/lib$name.$shlibext"
387 + if test -f "$dir/lib$name.la"; then
388 + found_la="$dir/lib$name.la"
391 + if test -f "$dir/lib$name.$libext"; then
393 + found_a="$dir/lib$name.$libext"
394 + if test -f "$dir/lib$name.la"; then
395 + found_la="$dir/lib$name.la"
401 + if test "X$found_dir" != "X"; then
406 + if test "X$found_dir" != "X"; then
407 + dnl Found the library.
408 + LTLIB[]NAME="${LTLIB[]NAME}${LTLIB[]NAME:+ }-L$found_dir -l$name"
409 + if test "X$found_so" != "X"; then
410 + dnl Linking with a shared library. We attempt to hardcode its
411 + dnl directory into the executable's runpath, unless it's the
412 + dnl standard /usr/lib.
413 + if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
414 + dnl No hardcoding is needed.
415 + LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$found_so"
417 + dnl Use an explicit option to hardcode DIR into the resulting
419 + dnl Potentially add DIR to ltrpathdirs.
420 + dnl The ltrpathdirs will be appended to $LTLIBNAME at the end.
422 + for x in $ltrpathdirs; do
423 + if test "X$x" = "X$found_dir"; then
428 + if test -z "$haveit"; then
429 + ltrpathdirs="$ltrpathdirs $found_dir"
431 + dnl The hardcoding into $LIBNAME is system dependent.
432 + if test "$hardcode_direct" = yes; then
433 + dnl Using DIR/libNAME.so during linking hardcodes DIR into the
434 + dnl resulting binary.
435 + LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$found_so"
437 + if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
438 + dnl Use an explicit option to hardcode DIR into the resulting
440 + LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$found_so"
441 + dnl Potentially add DIR to rpathdirs.
442 + dnl The rpathdirs will be appended to $LIBNAME at the end.
444 + for x in $rpathdirs; do
445 + if test "X$x" = "X$found_dir"; then
450 + if test -z "$haveit"; then
451 + rpathdirs="$rpathdirs $found_dir"
454 + dnl Rely on "-L$found_dir".
455 + dnl But don't add it if it's already contained in the LDFLAGS
456 + dnl or the already constructed $LIBNAME
458 + for x in $LDFLAGS $LIB[]NAME; do
459 + AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"])
460 + if test "X$x" = "X-L$found_dir"; then
465 + if test -z "$haveit"; then
466 + LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }-L$found_dir"
468 + if test "$hardcode_minus_L" != no; then
469 + dnl FIXME: Not sure whether we should use
470 + dnl "-L$found_dir -l$name" or "-L$found_dir $found_so"
472 + LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$found_so"
474 + dnl We cannot use $hardcode_runpath_var and LD_RUN_PATH
475 + dnl here, because this doesn't fit in flags passed to the
476 + dnl compiler. So give up. No hardcoding. This affects only
477 + dnl very old systems.
478 + dnl FIXME: Not sure whether we should use
479 + dnl "-L$found_dir -l$name" or "-L$found_dir $found_so"
481 + LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }-l$name"
487 + if test "X$found_a" != "X"; then
488 + dnl Linking with a static library.
489 + LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$found_a"
491 + dnl We shouldn't come here, but anyway it's good to have a
493 + LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }-L$found_dir -l$name"
496 + dnl Assume the include files are nearby.
497 + additional_includedir=
498 + case "$found_dir" in
500 + basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
501 + additional_includedir="$basedir/include"
504 + if test "X$additional_includedir" != "X"; then
505 + dnl Potentially add $additional_includedir to $INCNAME.
506 + dnl But don't add it
507 + dnl 1. if it's the standard /usr/include,
508 + dnl 2. if it's /usr/local/include and we are using GCC on Linux,
509 + dnl 3. if it's already present in $CPPFLAGS or the already
510 + dnl constructed $INCNAME,
511 + dnl 4. if it doesn't exist as a directory.
512 + if test "X$additional_includedir" != "X/usr/include"; then
514 + if test "X$additional_includedir" = "X/usr/local/include"; then
515 + if test -n "$GCC"; then
517 + linux* | gnu* | k*bsd*-gnu) haveit=yes;;
521 + if test -z "$haveit"; then
522 + for x in $CPPFLAGS $INC[]NAME; do
523 + AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"])
524 + if test "X$x" = "X-I$additional_includedir"; then
529 + if test -z "$haveit"; then
530 + if test -d "$additional_includedir"; then
531 + dnl Really add $additional_includedir to $INCNAME.
532 + INC[]NAME="${INC[]NAME}${INC[]NAME:+ }-I$additional_includedir"
538 + dnl Look for dependencies.
539 + if test -n "$found_la"; then
540 + dnl Read the .la file. It defines the variables
541 + dnl dlname, library_names, old_library, dependency_libs, current,
542 + dnl age, revision, installed, dlopen, dlpreopen, libdir.
543 + save_libdir="$libdir"
544 + case "$found_la" in
545 + */* | *\\*) . "$found_la" ;;
546 + *) . "./$found_la" ;;
548 + libdir="$save_libdir"
549 + dnl We use only dependency_libs.
550 + for dep in $dependency_libs; do
553 + additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
554 + dnl Potentially add $additional_libdir to $LIBNAME and $LTLIBNAME.
555 + dnl But don't add it
556 + dnl 1. if it's the standard /usr/lib,
557 + dnl 2. if it's /usr/local/lib and we are using GCC on Linux,
558 + dnl 3. if it's already present in $LDFLAGS or the already
559 + dnl constructed $LIBNAME,
560 + dnl 4. if it doesn't exist as a directory.
561 + if test "X$additional_libdir" != "X/usr/lib"; then
563 + if test "X$additional_libdir" = "X/usr/local/lib"; then
564 + if test -n "$GCC"; then
566 + linux* | gnu* | k*bsd*-gnu) haveit=yes;;
570 + if test -z "$haveit"; then
572 + for x in $LDFLAGS $LIB[]NAME; do
573 + AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"])
574 + if test "X$x" = "X-L$additional_libdir"; then
579 + if test -z "$haveit"; then
580 + if test -d "$additional_libdir"; then
581 + dnl Really add $additional_libdir to $LIBNAME.
582 + LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }-L$additional_libdir"
586 + for x in $LDFLAGS $LTLIB[]NAME; do
587 + AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"])
588 + if test "X$x" = "X-L$additional_libdir"; then
593 + if test -z "$haveit"; then
594 + if test -d "$additional_libdir"; then
595 + dnl Really add $additional_libdir to $LTLIBNAME.
596 + LTLIB[]NAME="${LTLIB[]NAME}${LTLIB[]NAME:+ }-L$additional_libdir"
603 + dir=`echo "X$dep" | sed -e 's/^X-R//'`
604 + if test "$enable_rpath" != no; then
605 + dnl Potentially add DIR to rpathdirs.
606 + dnl The rpathdirs will be appended to $LIBNAME at the end.
608 + for x in $rpathdirs; do
609 + if test "X$x" = "X$dir"; then
614 + if test -z "$haveit"; then
615 + rpathdirs="$rpathdirs $dir"
617 + dnl Potentially add DIR to ltrpathdirs.
618 + dnl The ltrpathdirs will be appended to $LTLIBNAME at the end.
620 + for x in $ltrpathdirs; do
621 + if test "X$x" = "X$dir"; then
626 + if test -z "$haveit"; then
627 + ltrpathdirs="$ltrpathdirs $dir"
632 + dnl Handle this in the next round.
633 + names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
636 + dnl Handle this in the next round. Throw away the .la's
637 + dnl directory; it is already contained in a preceding -L
639 + names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
642 + dnl Most likely an immediate library name.
643 + LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$dep"
644 + LTLIB[]NAME="${LTLIB[]NAME}${LTLIB[]NAME:+ }$dep"
650 + dnl Didn't find the library; assume it is in the system directories
651 + dnl known to the linker and runtime loader. (All the system
652 + dnl directories known to the linker should also be known to the
653 + dnl runtime loader, otherwise the system is severely misconfigured.)
654 + LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }-l$name"
655 + LTLIB[]NAME="${LTLIB[]NAME}${LTLIB[]NAME:+ }-l$name"
661 + if test "X$rpathdirs" != "X"; then
662 + if test -n "$hardcode_libdir_separator"; then
663 + dnl Weird platform: only the last -rpath option counts, the user must
664 + dnl pass all path elements in one option. We can arrange that for a
665 + dnl single library, but not when more than one $LIBNAMEs are used.
667 + for found_dir in $rpathdirs; do
668 + alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
670 + dnl Note: hardcode_libdir_flag_spec uses $libdir and $wl.
671 + acl_save_libdir="$libdir"
673 + eval flag=\"$hardcode_libdir_flag_spec\"
674 + libdir="$acl_save_libdir"
675 + LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$flag"
677 + dnl The -rpath options are cumulative.
678 + for found_dir in $rpathdirs; do
679 + acl_save_libdir="$libdir"
680 + libdir="$found_dir"
681 + eval flag=\"$hardcode_libdir_flag_spec\"
682 + libdir="$acl_save_libdir"
683 + LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$flag"
687 + if test "X$ltrpathdirs" != "X"; then
688 + dnl When using libtool, the option that works for both libraries and
689 + dnl executables is -R. The -R options are cumulative.
690 + for found_dir in $ltrpathdirs; do
691 + LTLIB[]NAME="${LTLIB[]NAME}${LTLIB[]NAME:+ }-R$found_dir"
696 +dnl AC_LIB_APPENDTOVAR(VAR, CONTENTS) appends the elements of CONTENTS to VAR,
697 +dnl unless already present in VAR.
698 +dnl Works only for CPPFLAGS, not for LIB* variables because that sometimes
699 +dnl contains two or three consecutive elements that belong together.
700 +AC_DEFUN([AC_LIB_APPENDTOVAR],
702 + for element in [$2]; do
705 + AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"])
706 + if test "X$x" = "X$element"; then
711 + if test -z "$haveit"; then
712 + [$1]="${[$1]}${[$1]:+ }$element"
717 +# lib-ld.m4 serial 3 (gettext-0.13)
718 +dnl Copyright (C) 1996-2003 Free Software Foundation, Inc.
719 +dnl This file is free software; the Free Software Foundation
720 +dnl gives unlimited permission to copy and/or distribute it,
721 +dnl with or without modifications, as long as this notice is preserved.
723 +dnl Subroutines of libtool.m4,
724 +dnl with replacements s/AC_/AC_LIB/ and s/lt_cv/acl_cv/ to avoid collision
725 +dnl with libtool.m4.
727 +dnl From libtool-1.4. Sets the variable with_gnu_ld to yes or no.
728 +AC_DEFUN([AC_LIB_PROG_LD_GNU],
729 +[AC_CACHE_CHECK([if the linker ($LD) is GNU ld], acl_cv_prog_gnu_ld,
730 +[# I'd rather use --version here, but apparently some GNU ld's only accept -v.
731 +case `$LD -v 2>&1 </dev/null` in
732 +*GNU* | *'with BFD'*)
733 + acl_cv_prog_gnu_ld=yes ;;
735 + acl_cv_prog_gnu_ld=no ;;
737 +with_gnu_ld=$acl_cv_prog_gnu_ld
740 +dnl From libtool-1.4. Sets the variable LD.
741 +AC_DEFUN([AC_LIB_PROG_LD],
742 +[AC_ARG_WITH(gnu-ld,
743 +[ --with-gnu-ld assume the C compiler uses GNU ld [default=no]],
744 +test "$withval" = no || with_gnu_ld=yes, with_gnu_ld=no)
745 +AC_REQUIRE([AC_PROG_CC])dnl
746 +AC_REQUIRE([AC_CANONICAL_HOST])dnl
747 +# Prepare PATH_SEPARATOR.
748 +# The user is always right.
749 +if test "${PATH_SEPARATOR+set}" != set; then
750 + echo "#! /bin/sh" >conf$$.sh
751 + echo "exit 0" >>conf$$.sh
753 + if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
761 +if test "$GCC" = yes; then
762 + # Check if gcc -print-prog-name=ld gives a path.
763 + AC_MSG_CHECKING([for ld used by GCC])
766 + # gcc leaves a trailing carriage return which upsets mingw
767 + ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
769 + ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
772 + # Accept absolute paths.
773 + [[\\/]* | [A-Za-z]:[\\/]*)]
774 + [re_direlt='/[^/][^/]*/\.\./']
775 + # Canonicalize the path of ld
776 + ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
777 + while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
778 + ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
780 + test -z "$LD" && LD="$ac_prog"
783 + # If it fails, then pretend we aren't using GCC.
787 + # If it is relative, then search for the first ld in PATH.
788 + with_gnu_ld=unknown
791 +elif test "$with_gnu_ld" = yes; then
792 + AC_MSG_CHECKING([for GNU ld])
794 + AC_MSG_CHECKING([for non-GNU ld])
796 +AC_CACHE_VAL(acl_cv_path_LD,
797 +[if test -z "$LD"; then
798 + IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
799 + for ac_dir in $PATH; do
800 + test -z "$ac_dir" && ac_dir=.
801 + if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
802 + acl_cv_path_LD="$ac_dir/$ac_prog"
803 + # Check to see if the program is GNU ld. I'd rather use --version,
804 + # but apparently some GNU ld's only accept -v.
805 + # Break only if it was the GNU/non-GNU ld that we prefer.
806 + case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
807 + *GNU* | *'with BFD'*)
808 + test "$with_gnu_ld" != no && break ;;
810 + test "$with_gnu_ld" != yes && break ;;
816 + acl_cv_path_LD="$LD" # Let the user override the test with a path.
818 +LD="$acl_cv_path_LD"
819 +if test -n "$LD"; then
824 +test -z "$LD" && AC_MSG_ERROR([no acceptable ld found in \$PATH])
828 # Like AC_CONFIG_HEADER, but automatically create stamp file.
830 AC_DEFUN([AM_CONFIG_HEADER],
831 @@ -164,12 +983,64 @@
835 -# libtool.m4 - Configure libtool for the host system. -*-Shell-script-*-
836 +# libtool.m4 - Configure libtool for the host system. -*-Autoconf-*-
838 -# serial 46 AC_PROG_LIBTOOL
839 +# serial 47 AC_PROG_LIBTOOL
843 +# AC_PROVIDE_IFELSE(MACRO-NAME, IF-PROVIDED, IF-NOT-PROVIDED)
844 +# -----------------------------------------------------------
845 +# If this macro is not defined by Autoconf, define it here.
846 +m4_ifdef([AC_PROVIDE_IFELSE],
848 + [m4_define([AC_PROVIDE_IFELSE],
849 + [m4_ifdef([AC_PROVIDE_$1],
855 AC_DEFUN([AC_PROG_LIBTOOL],
856 +[AC_REQUIRE([_AC_PROG_LIBTOOL])dnl
857 +dnl If AC_PROG_CXX has already been expanded, run AC_LIBTOOL_CXX
858 +dnl immediately, otherwise, hook it in at the end of AC_PROG_CXX.
859 + AC_PROVIDE_IFELSE([AC_PROG_CXX],
861 + [define([AC_PROG_CXX], defn([AC_PROG_CXX])[AC_LIBTOOL_CXX
863 +dnl And a similar setup for Fortran 77 support
864 + AC_PROVIDE_IFELSE([AC_PROG_F77],
866 + [define([AC_PROG_F77], defn([AC_PROG_F77])[AC_LIBTOOL_F77
869 +dnl Quote A][M_PROG_GCJ so that aclocal doesn't bring it in needlessly.
870 +dnl If either AC_PROG_GCJ or A][M_PROG_GCJ have already been expanded, run
871 +dnl AC_LIBTOOL_GCJ immediately, otherwise, hook it in at the end of both.
872 + AC_PROVIDE_IFELSE([AC_PROG_GCJ],
874 + [AC_PROVIDE_IFELSE([A][M_PROG_GCJ],
876 + [AC_PROVIDE_IFELSE([LT_AC_PROG_GCJ],
878 + [ifdef([AC_PROG_GCJ],
879 + [define([AC_PROG_GCJ], defn([AC_PROG_GCJ])[AC_LIBTOOL_GCJ])])
880 + ifdef([A][M_PROG_GCJ],
881 + [define([A][M_PROG_GCJ], defn([A][M_PROG_GCJ])[AC_LIBTOOL_GCJ])])
882 + ifdef([LT_AC_PROG_GCJ],
883 + [define([LT_AC_PROG_GCJ],
884 + defn([LT_AC_PROG_GCJ])[AC_LIBTOOL_GCJ])])])])
885 +])])# AC_PROG_LIBTOOL
890 +AC_DEFUN([_AC_PROG_LIBTOOL],
891 [AC_REQUIRE([AC_LIBTOOL_SETUP])dnl
892 +AC_BEFORE([$0],[AC_LIBTOOL_CXX])dnl
893 +AC_BEFORE([$0],[AC_LIBTOOL_F77])dnl
894 +AC_BEFORE([$0],[AC_LIBTOOL_GCJ])dnl
896 # This can be used to rebuild libtool when needed
897 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
898 @@ -180,10 +1051,13 @@
900 # Prevent multiple expansion
901 define([AC_PROG_LIBTOOL], [])
903 +])# _AC_PROG_LIBTOOL
908 AC_DEFUN([AC_LIBTOOL_SETUP],
911 AC_REQUIRE([AC_ENABLE_SHARED])dnl
912 AC_REQUIRE([AC_ENABLE_STATIC])dnl
913 AC_REQUIRE([AC_ENABLE_FAST_INSTALL])dnl
914 @@ -193,15 +1067,103 @@
915 AC_REQUIRE([AC_PROG_LD])dnl
916 AC_REQUIRE([AC_PROG_LD_RELOAD_FLAG])dnl
917 AC_REQUIRE([AC_PROG_NM])dnl
918 -AC_REQUIRE([LT_AC_PROG_SED])dnl
920 AC_REQUIRE([AC_PROG_LN_S])dnl
921 AC_REQUIRE([AC_DEPLIBS_CHECK_METHOD])dnl
922 +# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
923 AC_REQUIRE([AC_OBJEXT])dnl
924 AC_REQUIRE([AC_EXEEXT])dnl
927 +AC_LIBTOOL_SYS_MAX_CMD_LEN
928 +AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE
931 +AC_REQUIRE([_LT_AC_SYS_COMPILER])dnl
932 _LT_AC_PROG_ECHO_BACKSLASH
936 + # AIX sometimes has problems with the GCC collect2 program. For some
937 + # reason, if we set the COLLECT_NAMES environment variable, the problems
938 + # vanish in a puff of smoke.
939 + if test "X${COLLECT_NAMES+set}" != Xset; then
941 + export COLLECT_NAMES
946 +# Sed substitution that helps us do robust quoting. It backslashifies
947 +# metacharacters that are still active within double-quoted strings.
948 +Xsed='sed -e s/^X//'
949 +[sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g']
951 +# Same as above, but do not quote variable references.
952 +[double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g']
954 +# Sed substitution to delay expansion of an escaped shell variable in a
955 +# double_quote_subst'ed string.
956 +delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
958 +# Sed substitution to avoid accidental globbing in evaled expressions
959 +no_glob_subst='s/\*/\\\*/g'
965 +default_ofile=libtool
966 +can_build_shared=yes
968 +# All known linkers require a `.a' archive for static linking (except M$VC,
969 +# which needs '.lib').
971 +ltmain="$ac_aux_dir/ltmain.sh"
972 +ofile="$default_ofile"
973 +with_gnu_ld="$lt_cv_prog_gnu_ld"
975 +AC_CHECK_TOOL(AR, ar, false)
976 +AC_CHECK_TOOL(RANLIB, ranlib, :)
977 +AC_CHECK_TOOL(STRIP, strip, :)
980 +old_CFLAGS="$CFLAGS"
982 +# Set sane defaults for various variables
983 +test -z "$AR" && AR=ar
984 +test -z "$AR_FLAGS" && AR_FLAGS=cru
985 +test -z "$AS" && AS=as
986 +test -z "$CC" && CC=cc
987 +test -z "$LTCC" && LTCC=$CC
988 +test -z "$DLLTOOL" && DLLTOOL=dlltool
989 +test -z "$LD" && LD=ld
990 +test -z "$LN_S" && LN_S="ln -s"
991 +test -z "$MAGIC_CMD" && MAGIC_CMD=file
992 +test -z "$NM" && NM=nm
993 +test -z "$SED" && SED=sed
994 +test -z "$OBJDUMP" && OBJDUMP=objdump
995 +test -z "$RANLIB" && RANLIB=:
996 +test -z "$STRIP" && STRIP=:
997 +test -z "$ac_objext" && ac_objext=o
999 +# Determine commands to create old-style static archives.
1000 +old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
1001 +old_postinstall_cmds='chmod 644 $oldlib'
1002 +old_postuninstall_cmds=
1004 +if test -n "$RANLIB"; then
1007 + old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
1010 + old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
1013 + old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
1016 # Only perform the check for file, if the check method requires it
1017 case $deplibs_check_method in
1019 @@ -211,327 +1173,78 @@
1023 -AC_CHECK_TOOL(RANLIB, ranlib, :)
1024 -AC_CHECK_TOOL(STRIP, strip, :)
1026 -ifdef([AC_PROVIDE_AC_LIBTOOL_DLOPEN], enable_dlopen=yes, enable_dlopen=no)
1027 -ifdef([AC_PROVIDE_AC_LIBTOOL_WIN32_DLL],
1028 +AC_PROVIDE_IFELSE([AC_LIBTOOL_DLOPEN], enable_dlopen=yes, enable_dlopen=no)
1029 +AC_PROVIDE_IFELSE([AC_LIBTOOL_WIN32_DLL],
1030 enable_win32_dll=yes, enable_win32_dll=no)
1032 -AC_ARG_ENABLE(libtool-lock,
1033 - [ --disable-libtool-lock avoid locking (might break parallel builds)])
1034 +AC_ARG_ENABLE([libtool-lock],
1035 + [AC_HELP_STRING([--disable-libtool-lock],
1036 + [avoid locking (might break parallel builds)])])
1037 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
1039 -# Some flags need to be propagated to the compiler or linker for good
1043 - # Find out which ABI we are using.
1044 - echo '[#]line __oline__ "configure"' > conftest.$ac_ext
1045 - if AC_TRY_EVAL(ac_compile); then
1046 - case `/usr/bin/file conftest.$ac_objext` in
1051 - LD="${LD-ld} -n32"
1061 + [AC_HELP_STRING([--with-pic],
1062 + [try to use only PIC/non-PIC objects @<:@default=use both@:>@])],
1063 + [pic_mode="$withval"],
1064 + [pic_mode=default])
1065 +test -z "$pic_mode" && pic_mode=default
1068 - # On SCO OpenServer 5, we need -belf to get full-featured binaries.
1069 - SAVE_CFLAGS="$CFLAGS"
1070 - CFLAGS="$CFLAGS -belf"
1071 - AC_CACHE_CHECK([whether the C compiler needs -belf], lt_cv_cc_needs_belf,
1074 - AC_TRY_LINK([],[],[lt_cv_cc_needs_belf=yes],[lt_cv_cc_needs_belf=no])
1076 - if test x"$lt_cv_cc_needs_belf" != x"yes"; then
1077 - # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
1078 - CFLAGS="$SAVE_CFLAGS"
1081 +# Use C for the default configuration in the libtool script
1083 +AC_LIBTOOL_LANG_C_CONFIG
1085 +])# AC_LIBTOOL_SETUP
1087 -ifdef([AC_PROVIDE_AC_LIBTOOL_WIN32_DLL],
1088 -[*-*-cygwin* | *-*-mingw* | *-*-pw32*)
1089 - AC_CHECK_TOOL(DLLTOOL, dlltool, false)
1090 - AC_CHECK_TOOL(AS, as, false)
1091 - AC_CHECK_TOOL(OBJDUMP, objdump, false)
1093 - # recent cygwin and mingw systems supply a stub DllMain which the user
1094 - # can override, but on older systems we have to supply one
1095 - AC_CACHE_CHECK([if libtool should supply DllMain function], lt_cv_need_dllmain,
1097 - [extern int __attribute__((__stdcall__)) DllMain(void*, int, void*);
1098 - DllMain (0, 0, 0);],
1099 - [lt_cv_need_dllmain=no],[lt_cv_need_dllmain=yes])])
1102 - *-*-cygwin*/gcc*-mno-cygwin*|*-*-mingw*)
1103 - # old mingw systems require "-dll" to link a DLL, while more recent ones
1105 - SAVE_CFLAGS="$CFLAGS"
1106 - CFLAGS="$CFLAGS -mdll"
1107 - AC_CACHE_CHECK([how to link DLLs], lt_cv_cc_dll_switch,
1108 - [AC_TRY_LINK([], [], [lt_cv_cc_dll_switch=-mdll],[lt_cv_cc_dll_switch=-dll])])
1109 - CFLAGS="$SAVE_CFLAGS" ;;
1110 - *-*-cygwin* | *-*-pw32*)
1111 - # cygwin systems need to pass --dll to the linker, and not link
1112 - # crt.o which will require a WinMain@16 definition.
1113 - lt_cv_cc_dll_switch="-Wl,--dll -nostartfiles" ;;
1118 +# _LT_AC_SYS_COMPILER
1119 +# -------------------
1120 +AC_DEFUN([_LT_AC_SYS_COMPILER],
1121 +[AC_REQUIRE([AC_PROG_CC])dnl
1123 -_LT_AC_LTCONFIG_HACK
1124 +# If no C compiler was specified, use CC.
1129 -# AC_LIBTOOL_HEADER_ASSERT
1130 -# ------------------------
1131 -AC_DEFUN([AC_LIBTOOL_HEADER_ASSERT],
1132 -[AC_CACHE_CHECK([whether $CC supports assert without backlinking],
1133 - [lt_cv_func_assert_works],
1136 - if test "$GCC" = yes && test "$with_gnu_ld" != yes; then
1137 - case `$CC --version 2>/dev/null` in
1138 - [[12]].*) lt_cv_func_assert_works=no ;;
1139 - *) lt_cv_func_assert_works=yes ;;
1145 -if test "x$lt_cv_func_assert_works" = xyes; then
1146 - AC_CHECK_HEADERS(assert.h)
1148 -])# AC_LIBTOOL_HEADER_ASSERT
1150 -# _LT_AC_CHECK_DLFCN
1151 -# --------------------
1152 -AC_DEFUN([_LT_AC_CHECK_DLFCN],
1153 -[AC_CHECK_HEADERS(dlfcn.h)
1154 -])# _LT_AC_CHECK_DLFCN
1156 -# AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE
1157 -# ---------------------------------
1158 -AC_DEFUN([AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE],
1159 -[AC_REQUIRE([AC_CANONICAL_HOST])
1160 -AC_REQUIRE([AC_PROG_NM])
1161 -AC_REQUIRE([AC_OBJEXT])
1162 -# Check for command to grab the raw symbol name followed by C symbol from nm.
1163 -AC_MSG_CHECKING([command to parse $NM output])
1164 -AC_CACHE_VAL([lt_cv_sys_global_symbol_pipe], [dnl
1166 -# These are sane defaults that work on at least a few old systems.
1167 -# [They come from Ultrix. What could be older than Ultrix?!! ;)]
1169 -# Character class describing NM global symbol codes.
1170 -symcode='[[BCDEGRST]]'
1172 -# Regexp to match symbols that can be accessed directly from C.
1173 -sympat='\([[_A-Za-z]][[_A-Za-z0-9]]*\)'
1175 -# Transform the above into a raw symbol and a C symbol.
1176 -symxfrm='\1 \2\3 \3'
1178 -# Transform an extracted symbol line into a proper C declaration
1179 -lt_cv_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern char \1;/p'"
1181 -# Transform an extracted symbol line into symbol name and symbol address
1182 -lt_cv_global_symbol_to_c_name_address="sed -n -e 's/^: \([[^ ]]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode \([[^ ]]*\) \([[^ ]]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
1184 -# Define system-specific variables.
1187 - symcode='[[BCDT]]'
1189 -cygwin* | mingw* | pw32*)
1190 - symcode='[[ABCDGISTW]]'
1192 -hpux*) # Its linker distinguishes data from code symbols
1193 - lt_cv_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern char \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
1194 - lt_cv_global_symbol_to_c_name_address="sed -n -e 's/^: \([[^ ]]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([[^ ]]*\) \([[^ ]]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
1196 -irix* | nonstopux*)
1197 - symcode='[[BCDEGRST]]'
1200 - symcode='[[BCDEGQRST]]'
1206 - symcode='[[DFNSTU]]'
1210 -# Handle CRLF in mingw tool chain
1214 - opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
1218 -# If we're using GNU nm, then use its standard symbol codes.
1219 -if $NM -V 2>&1 | egrep '(GNU|with BFD)' > /dev/null; then
1220 - symcode='[[ABCDGISTW]]'
1223 -# Try without a prefix undercore, then with it.
1224 -for ac_symprfx in "" "_"; do
1226 - # Write the raw and C identifiers.
1227 -lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[[ ]]\($symcode$symcode*\)[[ ]][[ ]]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
1229 - # Check to see that the pipe works correctly.
1232 - cat > conftest.$ac_ext <<EOF
1237 -void nm_test_func(){}
1241 -int main(){nm_test_var='a';nm_test_func();return(0);}
1244 - if AC_TRY_EVAL(ac_compile); then
1245 - # Now try to grab the symbols.
1247 - if AC_TRY_EVAL(NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) && test -s "$nlist"; then
1248 - # Try sorting and uniquifying the output.
1249 - if sort "$nlist" | uniq > "$nlist"T; then
1250 - mv -f "$nlist"T "$nlist"
1255 - # Make sure that we snagged all the symbols we need.
1256 - if egrep ' nm_test_var$' "$nlist" >/dev/null; then
1257 - if egrep ' nm_test_func$' "$nlist" >/dev/null; then
1258 - cat <<EOF > conftest.$ac_ext
1264 - # Now generate the symbol file.
1265 - eval "$lt_cv_global_symbol_to_cdecl"' < "$nlist" >> conftest.$ac_ext'
1267 - cat <<EOF >> conftest.$ac_ext
1268 -#if defined (__STDC__) && __STDC__
1269 -# define lt_ptr void *
1271 -# define lt_ptr char *
1275 -/* The mapping between symbol names and symbols. */
1280 -lt_preloaded_symbols[[]] =
1283 - sed "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr) \&\2},/" < "$nlist" >> conftest.$ac_ext
1284 - cat <<\EOF >> conftest.$ac_ext
1287 +# Allow CC to be a program name with arguments.
1289 +])# _LT_AC_SYS_COMPILER
1295 - # Now try linking the two files.
1296 - mv conftest.$ac_objext conftstm.$ac_objext
1298 - save_CFLAGS="$CFLAGS"
1299 - LIBS="conftstm.$ac_objext"
1300 - CFLAGS="$CFLAGS$no_builtin_flag"
1301 - if AC_TRY_EVAL(ac_link) && test -s conftest$ac_exeext; then
1305 - CFLAGS="$save_CFLAGS"
1307 - echo "cannot find nm_test_func in $nlist" >&AC_FD_CC
1310 - echo "cannot find nm_test_var in $nlist" >&AC_FD_CC
1313 - echo "cannot run $lt_cv_sys_global_symbol_pipe" >&AC_FD_CC
1316 - echo "$progname: failed program was:" >&AC_FD_CC
1317 - cat conftest.$ac_ext >&5
1319 - rm -f conftest* conftst*
1321 - # Do not use the global_symbol_pipe unless it works.
1322 - if test "$pipe_works" = yes; then
1325 - lt_cv_sys_global_symbol_pipe=
1329 -global_symbol_pipe="$lt_cv_sys_global_symbol_pipe"
1330 -if test -z "$lt_cv_sys_global_symbol_pipe"; then
1331 - global_symbol_to_cdecl=
1332 - global_symbol_to_c_name_address=
1334 - global_symbol_to_cdecl="$lt_cv_global_symbol_to_cdecl"
1335 - global_symbol_to_c_name_address="$lt_cv_global_symbol_to_c_name_address"
1337 -if test -z "$global_symbol_pipe$global_symbol_to_cdec$global_symbol_to_c_name_address";
1339 - AC_MSG_RESULT(failed)
1343 -]) # AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE
1344 +# _LT_AC_SYS_LIBPATH_AIX
1345 +# ----------------------
1346 +# Links a minimal program and checks the executable
1347 +# for the system default hardcoded library path. In most cases,
1348 +# this is /usr/lib:/lib, but when the MPI compilers are used
1349 +# the location of the communication and MPI libs are included too.
1350 +# If we don't find anything, use the default library path according
1351 +# to the aix ld manual.
1352 +AC_DEFUN([_LT_AC_SYS_LIBPATH_AIX],
1353 +[AC_LINK_IFELSE(AC_LANG_PROGRAM,[
1354 +aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
1356 +# Check for a 64-bit object if we didn't find anything.
1357 +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; }
1359 +if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
1360 +])# _LT_AC_SYS_LIBPATH_AIX
1363 +# _LT_AC_SHELL_INIT(ARG)
1364 +# ----------------------
1365 +AC_DEFUN([_LT_AC_SHELL_INIT],
1366 +[ifdef([AC_DIVERSION_NOTICE],
1367 + [AC_DIVERT_PUSH(AC_DIVERSION_NOTICE)],
1368 + [AC_DIVERT_PUSH(NOTICE)])
1371 +])# _LT_AC_SHELL_INIT
1373 -# _LT_AC_LIBTOOL_SYS_PATH_SEPARATOR
1374 -# ---------------------------------
1375 -AC_DEFUN([_LT_AC_LIBTOOL_SYS_PATH_SEPARATOR],
1376 -[# Find the correct PATH separator. Usually this is `:', but
1377 -# DJGPP uses `;' like DOS.
1378 -if test "X${PATH_SEPARATOR+set}" != Xset; then
1379 - UNAME=${UNAME-`uname 2>/dev/null`}
1381 - *-DOS) lt_cv_sys_path_separator=';' ;;
1382 - *) lt_cv_sys_path_separator=':' ;;
1384 - PATH_SEPARATOR=$lt_cv_sys_path_separator
1386 -])# _LT_AC_LIBTOOL_SYS_PATH_SEPARATOR
1388 # _LT_AC_PROG_ECHO_BACKSLASH
1389 # --------------------------
1390 # Add some code to the start of the generated configure script which
1391 # will find an echo command which doesn't interpret backslashes.
1392 AC_DEFUN([_LT_AC_PROG_ECHO_BACKSLASH],
1393 -[ifdef([AC_DIVERSION_NOTICE], [AC_DIVERT_PUSH(AC_DIVERSION_NOTICE)],
1394 - [AC_DIVERT_PUSH(NOTICE)])
1395 -_LT_AC_LIBTOOL_SYS_PATH_SEPARATOR
1397 +[_LT_AC_SHELL_INIT([
1398 # Check that we are running under the correct shell.
1399 SHELL=${CONFIG_SHELL-/bin/sh}
1401 @@ -549,7 +1262,7 @@
1402 elif test "X[$]1" = X--fallback-echo; then
1403 # Avoid inline document here, it may be left over
1405 -elif test "X`($echo '\t') 2>/dev/null`" = 'X\t'; then
1406 +elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
1407 # Yippee, $echo works!
1410 @@ -561,7 +1274,7 @@
1411 # used as fallback echo
1419 @@ -595,8 +1308,9 @@
1421 # So, first we look for a working echo in the user's PATH.
1423 - IFS="${IFS= }"; save_ifs="$IFS"; IFS=$PATH_SEPARATOR
1424 + lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
1425 for dir in $PATH /usr/ucb; do
1426 + IFS="$lt_save_ifs"
1427 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
1428 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
1429 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
1430 @@ -605,7 +1319,7 @@
1435 + IFS="$lt_save_ifs"
1437 if test "X$echo" = Xecho; then
1438 # We didn't find a better echo, so look for alternatives.
1439 @@ -678,47 +1392,328 @@
1444 -])# _LT_AC_PROG_ECHO_BACKSLASH
1445 +])])# _LT_AC_PROG_ECHO_BACKSLASH
1447 -# _LT_AC_TRY_DLOPEN_SELF (ACTION-IF-TRUE, ACTION-IF-TRUE-W-USCORE,
1448 -# ACTION-IF-FALSE, ACTION-IF-CROSS-COMPILING)
1449 -# ------------------------------------------------------------------
1450 -AC_DEFUN([_LT_AC_TRY_DLOPEN_SELF],
1451 -[if test "$cross_compiling" = yes; then :
1454 - AC_REQUIRE([_LT_AC_CHECK_DLFCN])dnl
1455 - lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
1456 - lt_status=$lt_dlunknown
1457 - cat > conftest.$ac_ext <<EOF
1458 -[#line __oline__ "configure"
1459 -#include "confdefs.h"
1466 +AC_DEFUN([_LT_AC_LOCK],
1467 +[AC_ARG_ENABLE([libtool-lock],
1468 + [AC_HELP_STRING([--disable-libtool-lock],
1469 + [avoid locking (might break parallel builds)])])
1470 +test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
1473 +# Some flags need to be propagated to the compiler or linker for good
1477 + # Find out which ABI we are using.
1478 + echo 'int i;' > conftest.$ac_ext
1479 + if AC_TRY_EVAL(ac_compile); then
1480 + case `/usr/bin/file conftest.$ac_objext` in
1482 + HPUX_IA64_MODE="32"
1485 + HPUX_IA64_MODE="64"
1492 + # Find out which ABI we are using.
1493 + echo '[#]line __oline__ "configure"' > conftest.$ac_ext
1494 + if AC_TRY_EVAL(ac_compile); then
1495 + if test "$lt_cv_prog_gnu_ld" = yes; then
1496 + case `/usr/bin/file conftest.$ac_objext` in
1498 + LD="${LD-ld} -melf32bsmip"
1501 + LD="${LD-ld} -melf32bmipn32"
1504 + LD="${LD-ld} -melf64bmip"
1508 + case `/usr/bin/file conftest.$ac_objext` in
1513 + LD="${LD-ld} -n32"
1525 -# define LT_DLGLOBAL RTLD_GLOBAL
1528 -# define LT_DLGLOBAL DL_GLOBAL
1530 -# define LT_DLGLOBAL 0
1533 +x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
1534 + # Find out which ABI we are using.
1535 + echo 'int i;' > conftest.$ac_ext
1536 + if AC_TRY_EVAL(ac_compile); then
1537 + case "`/usr/bin/file conftest.o`" in
1541 + LD="${LD-ld} -m elf_i386"
1543 + ppc64-*linux*|powerpc64-*linux*)
1544 + LD="${LD-ld} -m elf32ppclinux"
1547 + LD="${LD-ld} -m elf_s390"
1550 + LD="${LD-ld} -m elf32_sparc"
1557 + LD="${LD-ld} -m elf_x86_64"
1559 + ppc*-*linux*|powerpc*-*linux*)
1560 + LD="${LD-ld} -m elf64ppc"
1563 + LD="${LD-ld} -m elf64_s390"
1566 + LD="${LD-ld} -m elf64_sparc"
1575 -/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
1576 - find out it does not work in some platform. */
1577 -#ifndef LT_DLLAZY_OR_NOW
1579 -# define LT_DLLAZY_OR_NOW RTLD_LAZY
1582 -# define LT_DLLAZY_OR_NOW DL_LAZY
1584 + # On SCO OpenServer 5, we need -belf to get full-featured binaries.
1585 + SAVE_CFLAGS="$CFLAGS"
1586 + CFLAGS="$CFLAGS -belf"
1587 + AC_CACHE_CHECK([whether the C compiler needs -belf], lt_cv_cc_needs_belf,
1589 + AC_TRY_LINK([],[],[lt_cv_cc_needs_belf=yes],[lt_cv_cc_needs_belf=no])
1591 + if test x"$lt_cv_cc_needs_belf" != x"yes"; then
1592 + # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
1593 + CFLAGS="$SAVE_CFLAGS"
1596 +AC_PROVIDE_IFELSE([AC_LIBTOOL_WIN32_DLL],
1597 +[*-*-cygwin* | *-*-mingw* | *-*-pw32*)
1598 + AC_CHECK_TOOL(DLLTOOL, dlltool, false)
1599 + AC_CHECK_TOOL(AS, as, false)
1600 + AC_CHECK_TOOL(OBJDUMP, objdump, false)
1605 +need_locks="$enable_libtool_lock"
1610 +# AC_LIBTOOL_COMPILER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS,
1611 +# [OUTPUT-FILE], [ACTION-SUCCESS], [ACTION-FAILURE])
1612 +# ----------------------------------------------------------------
1613 +# Check whether the given compiler option works
1614 +AC_DEFUN([AC_LIBTOOL_COMPILER_OPTION],
1615 +[AC_REQUIRE([LT_AC_PROG_SED])
1616 +AC_CACHE_CHECK([$1], [$2],
1618 + ifelse([$4], , [ac_outfile=conftest.$ac_objext], [ac_outfile=$4])
1619 + printf "$lt_simple_compile_test_code" > conftest.$ac_ext
1620 + lt_compiler_flag="$3"
1621 + # Insert the option either (1) after the last *FLAGS variable, or
1622 + # (2) before a word containing "conftest.", or (3) at the end.
1623 + # Note that $ac_compile itself does not contain backslashes and begins
1624 + # with a dollar sign (not a hyphen), so the echo should work correctly.
1625 + # The option is referenced via a variable to avoid confusing sed.
1626 + lt_compile=`echo "$ac_compile" | $SED \
1627 + -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
1628 + -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \
1629 + -e 's:$: $lt_compiler_flag:'`
1630 + (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&AS_MESSAGE_LOG_FD)
1631 + (eval "$lt_compile" 2>conftest.err)
1633 + cat conftest.err >&AS_MESSAGE_LOG_FD
1634 + echo "$as_me:__oline__: \$? = $ac_status" >&AS_MESSAGE_LOG_FD
1635 + if (exit $ac_status) && test -s "$ac_outfile"; then
1636 + # The compiler can only warn and ignore the option if not recognized
1637 + # So say no if there are warnings
1638 + if test ! -s conftest.err; then
1645 +if test x"[$]$2" = xyes; then
1646 + ifelse([$5], , :, [$5])
1648 + ifelse([$6], , :, [$6])
1650 +])# AC_LIBTOOL_COMPILER_OPTION
1653 +# AC_LIBTOOL_LINKER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS,
1654 +# [ACTION-SUCCESS], [ACTION-FAILURE])
1655 +# ------------------------------------------------------------
1656 +# Check whether the given compiler option works
1657 +AC_DEFUN([AC_LIBTOOL_LINKER_OPTION],
1658 +[AC_CACHE_CHECK([$1], [$2],
1660 + save_LDFLAGS="$LDFLAGS"
1661 + LDFLAGS="$LDFLAGS $3"
1662 + printf "$lt_simple_link_test_code" > conftest.$ac_ext
1663 + if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
1664 + # The compiler can only warn and ignore the option if not recognized
1665 + # So say no if there are warnings
1666 + if test -s conftest.err; then
1667 + # Append any errors to the config.log.
1668 + cat conftest.err 1>&AS_MESSAGE_LOG_FD
1674 + LDFLAGS="$save_LDFLAGS"
1677 +if test x"[$]$2" = xyes; then
1678 + ifelse([$4], , :, [$4])
1680 + ifelse([$5], , :, [$5])
1682 +])# AC_LIBTOOL_LINKER_OPTION
1685 +# AC_LIBTOOL_SYS_MAX_CMD_LEN
1686 +# --------------------------
1687 +AC_DEFUN([AC_LIBTOOL_SYS_MAX_CMD_LEN],
1688 +[# find the maximum length of command line arguments
1689 +AC_MSG_CHECKING([the maximum length of command line arguments])
1690 +AC_CACHE_VAL([lt_cv_sys_max_cmd_len], [dnl
1696 + # On DJGPP, this test can blow up pretty badly due to problems in libc
1697 + # (any single argument exceeding 2000 bytes causes a buffer overrun
1698 + # during glob expansion). Even if it were fixed, the result of this
1699 + # check would be larger than it should be.
1700 + lt_cv_sys_max_cmd_len=12288; # 12K is about right
1704 + # Under GNU Hurd, this test is not required because there is
1705 + # no limit to the length of command line arguments.
1706 + # Libtool will interpret -1 as no limit whatsoever
1707 + lt_cv_sys_max_cmd_len=-1;
1711 + # On Win9x/ME, this test blows up -- it succeeds, but takes
1712 + # about 5 minutes as the teststring grows exponentially.
1713 + # Worse, since 9x/ME are not pre-emptively multitasking,
1714 + # you end up with a "frozen" computer, even though with patience
1715 + # the test eventually succeeds (with a max line length of 256k).
1716 + # Instead, let's just punt: use the minimum linelength reported by
1717 + # all of the supported platforms: 8192 (on NT/2K/XP).
1718 + lt_cv_sys_max_cmd_len=8192;
1722 + # On AmigaOS with pdksh, this test takes hours, literally.
1723 + # So we just punt and use a minimum line length of 8192.
1724 + lt_cv_sys_max_cmd_len=8192;
1728 + # If test is not a shell built-in, we'll probably end up computing a
1729 + # maximum length that is only half of the actual maximum length, but
1731 + while (test "X"`$CONFIG_SHELL [$]0 --fallback-echo "X$teststring" 2>/dev/null` \
1732 + = "XX$teststring") >/dev/null 2>&1 &&
1733 + new_result=`expr "X$teststring" : ".*" 2>&1` &&
1734 + lt_cv_sys_max_cmd_len=$new_result &&
1735 + test $i != 17 # 1/2 MB should be enough
1738 + teststring=$teststring$teststring
1741 + # Add a significant safety factor because C++ compilers can tack on massive
1742 + # amounts of additional arguments before passing them to the linker.
1743 + # It appears as though 1/2 is a usable value.
1744 + lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
1748 +if test -n $lt_cv_sys_max_cmd_len ; then
1749 + AC_MSG_RESULT($lt_cv_sys_max_cmd_len)
1751 + AC_MSG_RESULT(none)
1753 +])# AC_LIBTOOL_SYS_MAX_CMD_LEN
1756 +# _LT_AC_CHECK_DLFCN
1757 +# --------------------
1758 +AC_DEFUN([_LT_AC_CHECK_DLFCN],
1759 +[AC_CHECK_HEADERS(dlfcn.h)dnl
1760 +])# _LT_AC_CHECK_DLFCN
1763 +# _LT_AC_TRY_DLOPEN_SELF (ACTION-IF-TRUE, ACTION-IF-TRUE-W-USCORE,
1764 +# ACTION-IF-FALSE, ACTION-IF-CROSS-COMPILING)
1765 +# ------------------------------------------------------------------
1766 +AC_DEFUN([_LT_AC_TRY_DLOPEN_SELF],
1767 +[AC_REQUIRE([_LT_AC_CHECK_DLFCN])dnl
1768 +if test "$cross_compiling" = yes; then :
1771 + lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
1772 + lt_status=$lt_dlunknown
1773 + cat > conftest.$ac_ext <<EOF
1774 +[#line __oline__ "configure"
1775 +#include "confdefs.h"
1784 +# define LT_DLGLOBAL RTLD_GLOBAL
1787 +# define LT_DLGLOBAL DL_GLOBAL
1789 +# define LT_DLGLOBAL 0
1793 +/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
1794 + find out it does not work in some platform. */
1795 +#ifndef LT_DLLAZY_OR_NOW
1797 +# define LT_DLLAZY_OR_NOW RTLD_LAZY
1800 +# define LT_DLLAZY_OR_NOW DL_LAZY
1803 # define LT_DLLAZY_OR_NOW RTLD_NOW
1804 @@ -769,10 +1764,12 @@
1806 ])# _LT_AC_TRY_DLOPEN_SELF
1809 # AC_LIBTOOL_DLOPEN_SELF
1810 # -------------------
1811 AC_DEFUN([AC_LIBTOOL_DLOPEN_SELF],
1812 -[if test "x$enable_dlopen" != xyes; then
1813 +[AC_REQUIRE([_LT_AC_CHECK_DLFCN])dnl
1814 +if test "x$enable_dlopen" != xyes; then
1815 enable_dlopen=unknown
1816 enable_dlopen_self=unknown
1817 enable_dlopen_self_static=unknown
1818 @@ -787,24 +1784,39 @@
1819 lt_cv_dlopen_self=yes
1822 - cygwin* | mingw* | pw32*)
1824 lt_cv_dlopen="LoadLibrary"
1829 + lt_cv_dlopen="dlopen"
1830 + lt_cv_dlopen_libs=
1834 + # if libdl is installed we need to link against it
1835 + AC_CHECK_LIB([dl], [dlopen],
1836 + [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"],[
1837 + lt_cv_dlopen="dyld"
1838 + lt_cv_dlopen_libs=
1839 + lt_cv_dlopen_self=yes
1844 AC_CHECK_FUNC([shl_load],
1845 - [lt_cv_dlopen="shl_load"],
1846 + [lt_cv_dlopen="shl_load"],
1847 [AC_CHECK_LIB([dld], [shl_load],
1848 - [lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"],
1849 + [lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"],
1850 [AC_CHECK_FUNC([dlopen],
1851 [lt_cv_dlopen="dlopen"],
1852 [AC_CHECK_LIB([dl], [dlopen],
1853 - [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"],
1854 + [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"],
1855 [AC_CHECK_LIB([svld], [dlopen],
1856 - [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"],
1857 + [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"],
1858 [AC_CHECK_LIB([dld], [dld_link],
1859 - [lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"])
1860 + [lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"])
1864 @@ -822,7 +1834,6 @@
1865 case $lt_cv_dlopen in
1867 save_CPPFLAGS="$CPPFLAGS"
1868 - AC_REQUIRE([_LT_AC_CHECK_DLFCN])dnl
1869 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
1871 save_LDFLAGS="$LDFLAGS"
1872 @@ -866,707 +1877,1838 @@
1874 ])# AC_LIBTOOL_DLOPEN_SELF
1876 -AC_DEFUN([_LT_AC_LTCONFIG_HACK],
1877 -[AC_REQUIRE([AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE])dnl
1878 -# Sed substitution that helps us do robust quoting. It backslashifies
1879 -# metacharacters that are still active within double-quoted strings.
1880 -Xsed='sed -e s/^X//'
1881 -sed_quote_subst='s/\([[\\"\\`$\\\\]]\)/\\\1/g'
1883 -# Same as above, but do not quote variable references.
1884 -double_quote_subst='s/\([[\\"\\`\\\\]]\)/\\\1/g'
1886 -# Sed substitution to delay expansion of an escaped shell variable in a
1887 -# double_quote_subst'ed string.
1888 -delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
1892 +# AC_LIBTOOL_PROG_CC_C_O([TAGNAME])
1893 +# ---------------------------------
1894 +# Check to see if options -c and -o are simultaneously supported by compiler
1895 +AC_DEFUN([AC_LIBTOOL_PROG_CC_C_O],
1896 +[AC_REQUIRE([_LT_AC_SYS_COMPILER])dnl
1897 +AC_CACHE_CHECK([if $compiler supports -c -o file.$ac_objext],
1898 + [_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)],
1899 + [_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)=no
1900 + $rm -r conftest 2>/dev/null
1904 + printf "$lt_simple_compile_test_code" > conftest.$ac_ext
1906 + lt_compiler_flag="-o out/conftest2.$ac_objext"
1907 + # Insert the option either (1) after the last *FLAGS variable, or
1908 + # (2) before a word containing "conftest.", or (3) at the end.
1909 + # Note that $ac_compile itself does not contain backslashes and begins
1910 + # with a dollar sign (not a hyphen), so the echo should work correctly.
1911 + lt_compile=`echo "$ac_compile" | $SED \
1912 + -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
1913 + -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \
1914 + -e 's:$: $lt_compiler_flag:'`
1915 + (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&AS_MESSAGE_LOG_FD)
1916 + (eval "$lt_compile" 2>out/conftest.err)
1918 + cat out/conftest.err >&AS_MESSAGE_LOG_FD
1919 + echo "$as_me:__oline__: \$? = $ac_status" >&AS_MESSAGE_LOG_FD
1920 + if (exit $ac_status) && test -s out/conftest2.$ac_objext
1922 + # The compiler can only warn and ignore the option if not recognized
1923 + # So say no if there are warnings
1924 + if test ! -s out/conftest.err; then
1925 + _LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes
1930 + # SGI C++ compiler will create directory out/ii_files/ for
1931 + # template instantiation
1932 + test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
1933 + $rm out/* && rmdir out
1938 +])# AC_LIBTOOL_PROG_CC_C_O
1940 -# Global variables:
1941 -default_ofile=libtool
1942 -can_build_shared=yes
1944 -# All known linkers require a `.a' archive for static linking (except M$VC,
1945 -# which needs '.lib').
1947 -ltmain="$ac_aux_dir/ltmain.sh"
1948 -ofile="$default_ofile"
1949 -with_gnu_ld="$lt_cv_prog_gnu_ld"
1950 -need_locks="$enable_libtool_lock"
1951 +# AC_LIBTOOL_SYS_HARD_LINK_LOCKS([TAGNAME])
1952 +# -----------------------------------------
1953 +# Check to see if we can do hard links to lock some files if needed
1954 +AC_DEFUN([AC_LIBTOOL_SYS_HARD_LINK_LOCKS],
1955 +[AC_REQUIRE([_LT_AC_LOCK])dnl
1958 -old_CFLAGS="$CFLAGS"
1959 +hard_links="nottested"
1960 +if test "$_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)" = no && test "$need_locks" != no; then
1961 + # do not overwrite the value of need_locks provided by the user
1962 + AC_MSG_CHECKING([if we can lock with hard links])
1965 + ln conftest.a conftest.b 2>/dev/null && hard_links=no
1967 + ln conftest.a conftest.b 2>&5 || hard_links=no
1968 + ln conftest.a conftest.b 2>/dev/null && hard_links=no
1969 + AC_MSG_RESULT([$hard_links])
1970 + if test "$hard_links" = no; then
1971 + AC_MSG_WARN([`$CC' does not support `-c -o', so `make -j' may be unsafe])
1977 +])# AC_LIBTOOL_SYS_HARD_LINK_LOCKS
1979 -# Set sane defaults for various variables
1980 -test -z "$AR" && AR=ar
1981 -test -z "$AR_FLAGS" && AR_FLAGS=cru
1982 -test -z "$AS" && AS=as
1983 -test -z "$CC" && CC=cc
1984 -test -z "$DLLTOOL" && DLLTOOL=dlltool
1985 -test -z "$LD" && LD=ld
1986 -test -z "$LN_S" && LN_S="ln -s"
1987 -test -z "$MAGIC_CMD" && MAGIC_CMD=file
1988 -test -z "$NM" && NM=nm
1989 -test -z "$OBJDUMP" && OBJDUMP=objdump
1990 -test -z "$RANLIB" && RANLIB=:
1991 -test -z "$STRIP" && STRIP=:
1992 -test -z "$ac_objext" && ac_objext=o
1994 -if test x"$host" != x"$build"; then
1995 - ac_tool_prefix=${host_alias}-
1996 +# AC_LIBTOOL_OBJDIR
1997 +# -----------------
1998 +AC_DEFUN([AC_LIBTOOL_OBJDIR],
1999 +[AC_CACHE_CHECK([for objdir], [lt_cv_objdir],
2000 +[rm -f .libs 2>/dev/null
2001 +mkdir .libs 2>/dev/null
2002 +if test -d .libs; then
2003 + lt_cv_objdir=.libs
2006 + # MS-DOS does not allow filenames that begin with a dot.
2007 + lt_cv_objdir=_libs
2009 +rmdir .libs 2>/dev/null])
2010 +objdir=$lt_cv_objdir
2011 +])# AC_LIBTOOL_OBJDIR
2013 -# Transform linux* to *-*-linux-gnu*, to support old configure scripts.
2016 -linux*) host=`echo $host | sed 's/^\(.*-.*-linux\)\(.*\)$/\1-gnu\2/'`
2021 - # AIX sometimes has problems with the GCC collect2 program. For some
2022 - # reason, if we set the COLLECT_NAMES environment variable, the problems
2023 - # vanish in a puff of smoke.
2024 - if test "X${COLLECT_NAMES+set}" != Xset; then
2026 - export COLLECT_NAMES
2027 +# AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH([TAGNAME])
2028 +# ----------------------------------------------
2029 +# Check hardcoding attributes.
2030 +AC_DEFUN([AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH],
2031 +[AC_MSG_CHECKING([how to hardcode library paths into programs])
2032 +_LT_AC_TAGVAR(hardcode_action, $1)=
2033 +if test -n "$_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)" || \
2034 + test -n "$_LT_AC_TAGVAR(runpath_var $1)" || \
2035 + test "X$_LT_AC_TAGVAR(hardcode_automatic, $1)"="Xyes" ; then
2037 + # We can hardcode non-existant directories.
2038 + if test "$_LT_AC_TAGVAR(hardcode_direct, $1)" != no &&
2039 + # If the only mechanism to avoid hardcoding is shlibpath_var, we
2040 + # have to relink, otherwise we might link with an installed library
2041 + # when we should be linking with a yet-to-be-installed one
2042 + ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)" != no &&
2043 + test "$_LT_AC_TAGVAR(hardcode_minus_L, $1)" != no; then
2044 + # Linking always hardcodes the temporary library directory.
2045 + _LT_AC_TAGVAR(hardcode_action, $1)=relink
2047 + # We can link without hardcoding, and we can hardcode nonexisting dirs.
2048 + _LT_AC_TAGVAR(hardcode_action, $1)=immediate
2053 + # We cannot hardcode anything, or else we can only hardcode existing
2055 + _LT_AC_TAGVAR(hardcode_action, $1)=unsupported
2057 +AC_MSG_RESULT([$_LT_AC_TAGVAR(hardcode_action, $1)])
2059 -# Determine commands to create old-style static archives.
2060 -old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
2061 -old_postinstall_cmds='chmod 644 $oldlib'
2062 -old_postuninstall_cmds=
2063 +if test "$_LT_AC_TAGVAR(hardcode_action, $1)" = relink; then
2064 + # Fast installation is not supported
2065 + enable_fast_install=no
2066 +elif test "$shlibpath_overrides_runpath" = yes ||
2067 + test "$enable_shared" = no; then
2068 + # Fast installation is not necessary
2069 + enable_fast_install=needless
2071 +])# AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH
2073 -if test -n "$RANLIB"; then
2075 +# AC_LIBTOOL_SYS_LIB_STRIP
2076 +# ------------------------
2077 +AC_DEFUN([AC_LIBTOOL_SYS_LIB_STRIP],
2080 +AC_MSG_CHECKING([whether stripping libraries is possible])
2081 +if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
2082 + test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
2083 + test -z "$striplib" && striplib="$STRIP --strip-unneeded"
2084 + AC_MSG_RESULT([yes])
2086 +# FIXME - insert some real tests, host_os isn't really good enough
2089 - old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
2092 - old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
2094 + if test -n "$STRIP" ; then
2095 + striplib="$STRIP -x"
2096 + AC_MSG_RESULT([yes])
2098 + AC_MSG_RESULT([no])
2102 + AC_MSG_RESULT([no])
2105 - old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
2107 +])# AC_LIBTOOL_SYS_LIB_STRIP
2109 -# Allow CC to be a program name with arguments.
2113 -AC_MSG_CHECKING([for objdir])
2114 -rm -f .libs 2>/dev/null
2115 -mkdir .libs 2>/dev/null
2116 -if test -d .libs; then
2118 +# AC_LIBTOOL_SYS_DYNAMIC_LINKER
2119 +# -----------------------------
2120 +# PORTME Fill in your ld.so characteristics
2121 +AC_DEFUN([AC_LIBTOOL_SYS_DYNAMIC_LINKER],
2122 +[AC_MSG_CHECKING([dynamic linker characteristics])
2123 +library_names_spec=
2124 +libname_spec='lib$name'
2128 +postuninstall_cmds=
2132 +shlibpath_overrides_runpath=unknown
2134 +dynamic_linker="$host_os ld.so"
2135 +sys_lib_dlsearch_path_spec="/lib /usr/lib"
2136 +if test "$GCC" = yes; then
2137 + sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
2138 + if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
2139 + # if the path contains ";" then we assume it to be the separator
2140 + # otherwise default to the standard path separator (i.e. ":") - it is
2141 + # assumed that no part of a normal pathname contains ";" but that should
2142 + # okay in the real world where ";" in dirpaths is itself problematic.
2143 + sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
2145 + sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
2148 - # MS-DOS does not allow filenames that begin with a dot.
2150 + sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
2152 -rmdir .libs 2>/dev/null
2153 -AC_MSG_RESULT($objdir)
2155 +need_lib_prefix=unknown
2156 +hardcode_into_libs=no
2159 -[ --with-pic try to use only PIC/non-PIC objects [default=use both]],
2160 -pic_mode="$withval", pic_mode=default)
2161 -test -z "$pic_mode" && pic_mode=default
2162 +# when you set need_version to no, make sure it does not cause -set_version
2163 +# flags to be left without arguments
2164 +need_version=unknown
2166 -# We assume here that the value for lt_cv_prog_cc_pic will not be cached
2167 -# in isolation, and that seeing it set (from the cache) indicates that
2168 -# the associated values are set (in the cache) correctly too.
2169 -AC_MSG_CHECKING([for $compiler option to produce PIC])
2170 -AC_CACHE_VAL(lt_cv_prog_cc_pic,
2171 -[ lt_cv_prog_cc_pic=
2172 - lt_cv_prog_cc_shlib=
2174 - lt_cv_prog_cc_static=
2175 - lt_cv_prog_cc_no_builtin=
2176 - lt_cv_prog_cc_can_build_shared=$can_build_shared
2179 + version_type=linux
2180 + library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
2181 + shlibpath_var=LIBPATH
2183 - if test "$GCC" = yes; then
2184 - lt_cv_prog_cc_wl='-Wl,'
2185 - lt_cv_prog_cc_static='-static'
2186 + # AIX 3 has no versioning support, so we append a major version to the name.
2187 + soname_spec='${libname}${release}${shared_ext}$major'
2192 - # Below there is a dirty hack to force normal static linking with -ldl
2193 - # The problem is because libdl dynamically linked with both libc and
2194 - # libC (AIX C++ library), which obviously doesn't included in libraries
2195 - # list by gcc. This cause undefined symbols with -static flags.
2196 - # This hack allows C programs to be linked with "-static -ldl", but
2197 - # not sure about C++ programs.
2198 - lt_cv_prog_cc_static="$lt_cv_prog_cc_static ${lt_cv_prog_cc_wl}-lC"
2201 - # FIXME: we need at least 68020 code to build shared libraries, but
2202 - # adding the `-m68020' flag to GCC prevents building anything better,
2204 - lt_cv_prog_cc_pic='-m68020 -resident32 -malways-restore-a4'
2206 - beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
2207 - # PIC is the default for these OSes.
2209 - darwin* | rhapsody*)
2210 - # PIC is the default on this platform
2211 - # Common symbols not allowed in MH_DYLIB files
2212 - lt_cv_prog_cc_pic='-fno-common'
2214 - cygwin* | mingw* | pw32* | os2*)
2215 - # This hack is so that the source file can tell whether it is being
2216 - # built for inclusion in a dll (and should export symbols for example).
2217 - lt_cv_prog_cc_pic='-DDLL_EXPORT'
2220 - if test -d /usr/nec; then
2221 - lt_cv_prog_cc_pic=-Kconform_pic
2225 - lt_cv_prog_cc_pic='-fPIC'
2229 + version_type=linux
2230 + need_lib_prefix=no
2232 + hardcode_into_libs=yes
2233 + if test "$host_cpu" = ia64; then
2234 + # AIX 5 supports IA64
2235 + library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
2236 + shlibpath_var=LD_LIBRARY_PATH
2238 - # PORTME Check for PIC flags for the system compiler.
2239 + # With GCC up to 2.95.x, collect2 would create an import file
2240 + # for dependence libraries. The import file would start with
2241 + # the line `#! .'. This would cause the generated library to
2242 + # depend on `.', always an invalid library. This was fixed in
2243 + # development snapshots of GCC prior to 3.0.
2245 - aix3* | aix4* | aix5*)
2246 - lt_cv_prog_cc_wl='-Wl,'
2247 - # All AIX code is PIC.
2248 - if test "$host_cpu" = ia64; then
2249 - # AIX 5 now supports IA64 processor
2250 - lt_cv_prog_cc_static='-Bstatic'
2251 + aix4 | aix4.[[01]] | aix4.[[01]].*)
2252 + if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
2254 + echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
2257 - lt_cv_prog_cc_static='-bnso -bI:/lib/syscalls.exp'
2258 + can_build_shared=no
2262 + # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
2263 + # soname into executable. Probably we can add versioning support to
2264 + # collect2, so additional links can be useful in future.
2265 + if test "$aix_use_runtimelinking" = yes; then
2266 + # If using run time linking (on AIX 4.2 or later) use lib<name>.so
2267 + # instead of lib<name>.a to let people know that these are not
2268 + # typical AIX shared libraries.
2269 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
2271 + # We preserve .a as extension for shared libraries through AIX4.2
2272 + # and later when we are not doing run time linking.
2273 + library_names_spec='${libname}${release}.a $libname.a'
2274 + soname_spec='${libname}${release}${shared_ext}$major'
2276 + shlibpath_var=LIBPATH
2280 - hpux9* | hpux10* | hpux11*)
2281 - # Is there a better lt_cv_prog_cc_static that works with the bundled CC?
2282 - lt_cv_prog_cc_wl='-Wl,'
2283 - lt_cv_prog_cc_static="${lt_cv_prog_cc_wl}-a ${lt_cv_prog_cc_wl}archive"
2284 - lt_cv_prog_cc_pic='+Z'
2287 - irix5* | irix6* | nonstopux*)
2288 - lt_cv_prog_cc_wl='-Wl,'
2289 - lt_cv_prog_cc_static='-non_shared'
2290 - # PIC (with -KPIC) is the default.
2293 - cygwin* | mingw* | pw32* | os2*)
2294 - # This hack is so that the source file can tell whether it is being
2295 - # built for inclusion in a dll (and should export symbols for example).
2296 - lt_cv_prog_cc_pic='-DDLL_EXPORT'
2300 - lt_cv_prog_cc_pic='-KPIC'
2301 - lt_cv_prog_cc_static='-Bstatic'
2304 - osf3* | osf4* | osf5*)
2305 - # All OSF/1 code is PIC.
2306 - lt_cv_prog_cc_wl='-Wl,'
2307 - lt_cv_prog_cc_static='-non_shared'
2310 + library_names_spec='$libname.ixlibrary $libname.a'
2311 + # Create ${libname}_ixlibrary.a entries in /sys/libs.
2312 + 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'
2316 - lt_cv_prog_cc_pic='-Kpic'
2317 - lt_cv_prog_cc_static='-dn'
2318 - lt_cv_prog_cc_shlib='-belf'
2321 + library_names_spec='${libname}${shared_ext}'
2322 + dynamic_linker="$host_os ld.so"
2323 + shlibpath_var=LIBRARY_PATH
2327 - lt_cv_prog_cc_pic='-KPIC'
2328 - lt_cv_prog_cc_static='-Bstatic'
2329 - lt_cv_prog_cc_wl='-Wl,'
2332 + version_type=linux
2334 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
2335 + soname_spec='${libname}${release}${shared_ext}$major'
2336 + finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
2337 + shlibpath_var=LD_LIBRARY_PATH
2338 + sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
2339 + sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
2340 + # the default ld.so.conf also contains /usr/contrib/lib and
2341 + # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
2342 + # libtool to hard-code these into programs
2346 - lt_cv_prog_cc_pic='-PIC'
2347 - lt_cv_prog_cc_static='-Bstatic'
2348 - lt_cv_prog_cc_wl='-Qoption ld '
2350 +cygwin* | mingw* | pw32*)
2351 + version_type=windows
2352 + shrext_cmds=".dll"
2354 + need_lib_prefix=no
2356 - sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
2357 - lt_cv_prog_cc_pic='-KPIC'
2358 - lt_cv_prog_cc_static='-Bstatic'
2359 - lt_cv_prog_cc_wl='-Wl,'
2361 + case $GCC,$host_os in
2362 + yes,cygwin* | yes,mingw* | yes,pw32*)
2363 + library_names_spec='$libname.dll.a'
2364 + # DLL is installed to $(libdir)/../bin by postinstall_cmds
2365 + postinstall_cmds='base_file=`basename \${file}`~
2366 + dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
2367 + dldir=$destdir/`dirname \$dlpath`~
2368 + test -d \$dldir || mkdir -p \$dldir~
2369 + $install_prog $dir/$dlname \$dldir/$dlname'
2370 + postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
2371 + dlpath=$dir/\$dldll~
2373 + shlibpath_overrides_runpath=yes
2376 - lt_cv_prog_cc_pic='-pic'
2377 - lt_cv_prog_cc_static='-Bstatic'
2380 + # Cygwin DLLs use 'cyg' prefix rather than 'lib'
2381 + soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
2382 + sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
2386 - if test -d /usr/nec ;then
2387 - lt_cv_prog_cc_pic='-Kconform_pic'
2388 - lt_cv_prog_cc_static='-Bstatic'
2390 + # MinGW DLLs use traditional 'lib' prefix
2391 + soname_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
2392 + sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
2393 + if echo "$sys_lib_search_path_spec" | [grep ';[c-zC-Z]:/' >/dev/null]; then
2394 + # It is most probably a Windows format PATH printed by
2395 + # mingw gcc, but we are running on Cygwin. Gcc prints its search
2396 + # path with ; separators, and with drive letters. We can handle the
2397 + # drive letters (cygwin fileutils understands them), so leave them,
2398 + # especially as we might pass files found there to a mingw objdump,
2399 + # which wouldn't understand a cygwinified path. Ahh.
2400 + sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
2402 + sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
2407 - lt_cv_prog_cc_can_build_shared=no
2409 + # pw32 DLLs use 'pw' prefix rather than 'lib'
2410 + library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
2415 -if test -z "$lt_cv_prog_cc_pic"; then
2416 - AC_MSG_RESULT([none])
2418 - AC_MSG_RESULT([$lt_cv_prog_cc_pic])
2420 - # Check to make sure the pic_flag actually works.
2421 - AC_MSG_CHECKING([if $compiler PIC flag $lt_cv_prog_cc_pic works])
2422 - AC_CACHE_VAL(lt_cv_prog_cc_pic_works, [dnl
2423 - save_CFLAGS="$CFLAGS"
2424 - CFLAGS="$CFLAGS $lt_cv_prog_cc_pic -DPIC"
2425 - AC_TRY_COMPILE([], [], [dnl
2427 - hpux9* | hpux10* | hpux11*)
2428 - # On HP-UX, both CC and GCC only warn that PIC is supported... then
2429 - # they create non-PIC objects. So, if there were any warnings, we
2430 - # assume that PIC is not supported.
2431 - if test -s conftest.err; then
2432 - lt_cv_prog_cc_pic_works=no
2434 - lt_cv_prog_cc_pic_works=yes
2438 - lt_cv_prog_cc_pic_works=yes
2442 - lt_cv_prog_cc_pic_works=no
2444 - CFLAGS="$save_CFLAGS"
2447 - if test "X$lt_cv_prog_cc_pic_works" = Xno; then
2448 - lt_cv_prog_cc_pic=
2449 - lt_cv_prog_cc_can_build_shared=no
2451 - lt_cv_prog_cc_pic=" $lt_cv_prog_cc_pic"
2454 - AC_MSG_RESULT([$lt_cv_prog_cc_pic_works])
2457 -# Check for any special shared library compilation flags.
2458 -if test -n "$lt_cv_prog_cc_shlib"; then
2459 - AC_MSG_WARN([\`$CC' requires \`$lt_cv_prog_cc_shlib' to build shared libraries])
2460 - if echo "$old_CC $old_CFLAGS " | egrep -e "[[ ]]$lt_cv_prog_cc_shlib[[ ]]" >/dev/null; then :
2462 - AC_MSG_WARN([add \`$lt_cv_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure])
2463 - lt_cv_prog_cc_can_build_shared=no
2467 -AC_MSG_CHECKING([if $compiler static flag $lt_cv_prog_cc_static works])
2468 -AC_CACHE_VAL([lt_cv_prog_cc_static_works], [dnl
2469 - lt_cv_prog_cc_static_works=no
2470 - save_LDFLAGS="$LDFLAGS"
2471 - LDFLAGS="$LDFLAGS $lt_cv_prog_cc_static"
2472 - AC_TRY_LINK([], [], [lt_cv_prog_cc_static_works=yes])
2473 - LDFLAGS="$save_LDFLAGS"
2476 -# Belt *and* braces to stop my trousers falling down:
2477 -test "X$lt_cv_prog_cc_static_works" = Xno && lt_cv_prog_cc_static=
2478 -AC_MSG_RESULT([$lt_cv_prog_cc_static_works])
2480 -pic_flag="$lt_cv_prog_cc_pic"
2481 -special_shlib_compile_flags="$lt_cv_prog_cc_shlib"
2482 -wl="$lt_cv_prog_cc_wl"
2483 -link_static_flag="$lt_cv_prog_cc_static"
2484 -no_builtin_flag="$lt_cv_prog_cc_no_builtin"
2485 -can_build_shared="$lt_cv_prog_cc_can_build_shared"
2488 -# Check to see if options -o and -c are simultaneously supported by compiler
2489 -AC_MSG_CHECKING([if $compiler supports -c -o file.$ac_objext])
2490 -AC_CACHE_VAL([lt_cv_compiler_c_o], [
2491 -$rm -r conftest 2>/dev/null
2494 -echo "int some_variable = 0;" > conftest.$ac_ext
2496 -# According to Tom Tromey, Ian Lance Taylor reported there are C compilers
2497 -# that will create temporary files in the current directory regardless of
2498 -# the output directory. Thus, making CWD read-only will cause this test
2499 -# to fail, enabling locking or at least warning the user not to do parallel
2502 -save_CFLAGS="$CFLAGS"
2503 -CFLAGS="$CFLAGS -o out/conftest2.$ac_objext"
2505 -if { (eval echo configure:__oline__: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>out/conftest.err; } && test -s out/conftest2.$ac_objext; then
2506 - # The compiler can only warn and ignore the option if not recognized
2507 - # So say no if there are warnings
2508 - if test -s out/conftest.err; then
2509 - lt_cv_compiler_c_o=no
2511 - lt_cv_compiler_c_o=yes
2514 - # Append any errors to the config.log.
2515 - cat out/conftest.err 1>&AC_FD_CC
2516 - lt_cv_compiler_c_o=no
2518 -CFLAGS="$save_CFLAGS"
2520 -$rm conftest* out/*
2524 -$rm -r conftest 2>/dev/null
2526 -compiler_c_o=$lt_cv_compiler_c_o
2527 -AC_MSG_RESULT([$compiler_c_o])
2529 -if test x"$compiler_c_o" = x"yes"; then
2530 - # Check to see if we can write to a .lo
2531 - AC_MSG_CHECKING([if $compiler supports -c -o file.lo])
2532 - AC_CACHE_VAL([lt_cv_compiler_o_lo], [
2533 - lt_cv_compiler_o_lo=no
2534 - save_CFLAGS="$CFLAGS"
2535 - CFLAGS="$CFLAGS -c -o conftest.lo"
2536 - save_objext="$ac_objext"
2538 - AC_TRY_COMPILE([], [int some_variable = 0;], [dnl
2539 - # The compiler can only warn and ignore the option if not recognized
2540 - # So say no if there are warnings
2541 - if test -s conftest.err; then
2542 - lt_cv_compiler_o_lo=no
2544 - lt_cv_compiler_o_lo=yes
2547 - ac_objext="$save_objext"
2548 - CFLAGS="$save_CFLAGS"
2550 - compiler_o_lo=$lt_cv_compiler_o_lo
2551 - AC_MSG_RESULT([$compiler_o_lo])
2556 -# Check to see if we can do hard links to lock some files if needed
2557 -hard_links="nottested"
2558 -if test "$compiler_c_o" = no && test "$need_locks" != no; then
2559 - # do not overwrite the value of need_locks provided by the user
2560 - AC_MSG_CHECKING([if we can lock with hard links])
2563 - ln conftest.a conftest.b 2>/dev/null && hard_links=no
2565 - ln conftest.a conftest.b 2>&5 || hard_links=no
2566 - ln conftest.a conftest.b 2>/dev/null && hard_links=no
2567 - AC_MSG_RESULT([$hard_links])
2568 - if test "$hard_links" = no; then
2569 - AC_MSG_WARN([\`$CC' does not support \`-c -o', so \`make -j' may be unsafe])
2577 -if test "$GCC" = yes; then
2578 - # Check to see if options -fno-rtti -fno-exceptions are supported by compiler
2579 - AC_MSG_CHECKING([if $compiler supports -fno-rtti -fno-exceptions])
2580 - echo "int some_variable = 0;" > conftest.$ac_ext
2581 - save_CFLAGS="$CFLAGS"
2582 - CFLAGS="$CFLAGS -fno-rtti -fno-exceptions -c conftest.$ac_ext"
2583 - compiler_rtti_exceptions=no
2584 - AC_TRY_COMPILE([], [int some_variable = 0;], [dnl
2585 - # The compiler can only warn and ignore the option if not recognized
2586 - # So say no if there are warnings
2587 - if test -s conftest.err; then
2588 - compiler_rtti_exceptions=no
2590 - compiler_rtti_exceptions=yes
2593 - CFLAGS="$save_CFLAGS"
2594 - AC_MSG_RESULT([$compiler_rtti_exceptions])
2596 + library_names_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext} $libname.lib'
2599 + dynamic_linker='Win32 ld.exe'
2600 + # FIXME: first we should search . and the directory the executable is in
2601 + shlibpath_var=PATH
2604 - if test "$compiler_rtti_exceptions" = "yes"; then
2605 - no_builtin_flag=' -fno-builtin -fno-rtti -fno-exceptions'
2606 +darwin* | rhapsody*)
2607 + dynamic_linker="$host_os dyld"
2608 + version_type=darwin
2609 + need_lib_prefix=no
2611 + library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
2612 + soname_spec='${libname}${release}${major}$shared_ext'
2613 + shlibpath_overrides_runpath=yes
2614 + shlibpath_var=DYLD_LIBRARY_PATH
2615 + shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
2616 + # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
2617 + if test "$GCC" = yes; then
2618 + 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"`
2620 - no_builtin_flag=' -fno-builtin'
2621 + sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
2625 -# See if the linker supports building shared libraries.
2626 -AC_MSG_CHECKING([whether the linker ($LD) supports shared libraries])
2628 -allow_undefined_flag=
2630 -need_lib_prefix=unknown
2631 -need_version=unknown
2632 -# when you set need_version to no, make sure it does not cause -set_version
2633 -# flags to be left without arguments
2635 -archive_expsym_cmds=
2636 -old_archive_from_new_cmds=
2637 -old_archive_from_expsyms_cmds=
2638 -export_dynamic_flag_spec=
2639 -whole_archive_flag_spec=
2640 -thread_safe_flag_spec=
2641 -hardcode_into_libs=no
2642 -hardcode_libdir_flag_spec=
2643 -hardcode_libdir_separator=
2645 -hardcode_minus_L=no
2646 -hardcode_shlibpath_var=unsupported
2648 -link_all_deplibs=unknown
2649 -always_export_symbols=no
2650 -export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | sed '\''s/.* //'\'' | sort | uniq > $export_symbols'
2651 -# include_expsyms should be a list of space-separated symbols to be *always*
2652 -# included in the symbol list
2654 -# exclude_expsyms can be an egrep regular expression of symbols to exclude
2655 -# it will be wrapped by ` (' and `)$', so one must not match beginning or
2656 -# end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
2657 -# as well as any symbol that contains `d'.
2658 -exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
2659 -# Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
2660 -# platforms (ab)use it in PIC code, but their linkers get confused if
2661 -# the symbol is explicitly referenced. Since portable code cannot
2662 -# rely on this symbol name, it's probably fine to never include it in
2663 -# preloaded symbol tables.
2664 -extract_expsyms_cmds=
2665 + sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
2669 -cygwin* | mingw* | pw32*)
2670 - # FIXME: the MSVC++ port hasn't been tested in a loooong time
2671 - # When not using gcc, we currently assume that we are using
2672 - # Microsoft Visual C++.
2673 - if test "$GCC" != yes; then
2677 + version_type=linux
2678 + need_lib_prefix=no
2680 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
2681 + soname_spec='${libname}${release}${shared_ext}$major'
2682 + shlibpath_var=LD_LIBRARY_PATH
2693 -if test "$with_gnu_ld" = yes; then
2694 - # If archive_cmds runs LD, not CC, wlarc should be empty
2697 + version_type=linux
2698 + need_lib_prefix=no
2700 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
2701 + soname_spec='${libname}${release}${shared_ext}$major'
2702 + shlibpath_var=LD_LIBRARY_PATH
2703 + shlibpath_overrides_runpath=no
2704 + hardcode_into_libs=yes
2705 + dynamic_linker='GNU ld.so'
2708 - # See if GNU ld supports shared libraries.
2710 + objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
2711 + version_type=freebsd-$objformat
2712 + case $version_type in
2714 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
2716 + need_lib_prefix=no
2719 + library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
2723 + shlibpath_var=LD_LIBRARY_PATH
2725 - aix3* | aix4* | aix5*)
2726 - # On AIX, the GNU linker is very broken
2727 - # Note:Check GNU linker on AIX 5-IA64 when/if it becomes available.
2731 -*** Warning: the GNU linker, at least up to release 2.9.1, is reported
2732 -*** to be unable to reliably create shared libraries on AIX.
2733 -*** Therefore, libtool is disabling shared libraries support. If you
2734 -*** really care for shared libraries, you may want to modify your PATH
2735 -*** so that a non-GNU linker is found, and then restart.
2739 + shlibpath_overrides_runpath=yes
2743 - archive_cmds='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
2744 - hardcode_libdir_flag_spec='-L$libdir'
2745 - hardcode_minus_L=yes
2747 - # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
2748 - # that the semantics of dynamic libraries on AmigaOS, at least up
2749 - # to version 4, is to share data among multiple programs linked
2750 - # with the same dynamic library. Since this doesn't match the
2751 - # behavior of shared libraries on other platforms, we can use
2754 + freebsd3.[01]* | freebsdelf3.[01]*)
2755 + shlibpath_overrides_runpath=yes
2756 + hardcode_into_libs=yes
2760 - if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
2761 - allow_undefined_flag=unsupported
2762 - # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
2763 - # support --undefined. This deserves some investigation. FIXME
2764 - archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
2769 + shlibpath_overrides_runpath=no
2770 + hardcode_into_libs=yes
2775 - cygwin* | mingw* | pw32*)
2776 - # hardcode_libdir_flag_spec is actually meaningless, as there is
2777 - # no search path for DLLs.
2778 - hardcode_libdir_flag_spec='-L$libdir'
2779 - allow_undefined_flag=unsupported
2780 - always_export_symbols=yes
2782 - extract_expsyms_cmds='test -f $output_objdir/impgen.c || \
2783 - sed -e "/^# \/\* impgen\.c starts here \*\//,/^# \/\* impgen.c ends here \*\// { s/^# //;s/^# *$//; p; }" -e d < $''0 > $output_objdir/impgen.c~
2784 - test -f $output_objdir/impgen.exe || (cd $output_objdir && \
2785 - if test "x$HOST_CC" != "x" ; then $HOST_CC -o impgen impgen.c ; \
2786 - else $CC -o impgen impgen.c ; fi)~
2787 - $output_objdir/impgen $dir/$soroot > $output_objdir/$soname-def'
2789 - old_archive_from_expsyms_cmds='$DLLTOOL --as=$AS --dllname $soname --def $output_objdir/$soname-def --output-lib $output_objdir/$newlib'
2791 - # cygwin and mingw dlls have different entry points and sets of symbols
2793 - # FIXME: what about values for MSVC?
2794 - dll_entry=__cygwin_dll_entry@12
2795 - dll_exclude_symbols=DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12~
2799 - dll_entry=_DllMainCRTStartup@12
2800 - dll_exclude_symbols=DllMain@12,DllMainCRTStartup@12,DllEntryPoint@12~
2804 - # mingw and cygwin differ, and it's simplest to just exclude the union
2805 - # of the two symbol sets.
2806 - dll_exclude_symbols=DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12,DllMainCRTStartup@12,DllEntryPoint@12
2808 - # recent cygwin and mingw systems supply a stub DllMain which the user
2809 - # can override, but on older systems we have to supply one (in ltdll.c)
2810 - if test "x$lt_cv_need_dllmain" = "xyes"; then
2811 - ltdll_obj='$output_objdir/$soname-ltdll.'"$ac_objext "
2812 - ltdll_cmds='test -f $output_objdir/$soname-ltdll.c || sed -e "/^# \/\* ltdll\.c starts here \*\//,/^# \/\* ltdll.c ends here \*\// { s/^# //; p; }" -e d < $''0 > $output_objdir/$soname-ltdll.c~
2813 - test -f $output_objdir/$soname-ltdll.$ac_objext || (cd $output_objdir && $CC -c $soname-ltdll.c)~'
2819 - # Extract the symbol export list from an `--export-all' def file,
2820 - # then regenerate the def file from the symbol export list, so that
2821 - # the compiled dll only exports the symbol export list.
2822 - # Be careful not to strip the DATA tag left be newer dlltools.
2823 - export_symbols_cmds="$ltdll_cmds"'
2824 - $DLLTOOL --export-all --exclude-symbols '$dll_exclude_symbols' --output-def $output_objdir/$soname-def '$ltdll_obj'$libobjs $convenience~
2825 - sed -e "1,/EXPORTS/d" -e "s/ @ [[0-9]]*//" -e "s/ *;.*$//" < $output_objdir/$soname-def > $export_symbols'
2827 - # If the export-symbols file already is a .def file (1st line
2828 - # is EXPORTS), use it as is.
2829 - # If DATA tags from a recent dlltool are present, honour them!
2830 - archive_expsym_cmds='if test "x`sed 1q $export_symbols`" = xEXPORTS; then
2831 - cp $export_symbols $output_objdir/$soname-def;
2833 - echo EXPORTS > $output_objdir/$soname-def;
2835 - cat $export_symbols | while read symbol; do
2836 - set dummy \$symbol;
2838 - 2) echo " \[$]2 @ \$_lt_hint ; " >> $output_objdir/$soname-def;;
2839 - 4) echo " \[$]2 \[$]3 \[$]4 ; " >> $output_objdir/$soname-def; _lt_hint=`expr \$_lt_hint - 1`;;
2840 - *) echo " \[$]2 @ \$_lt_hint \[$]3 ; " >> $output_objdir/$soname-def;;
2842 - _lt_hint=`expr 1 + \$_lt_hint`;
2846 - $CC -Wl,--base-file,$output_objdir/$soname-base '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $output_objdir/$soname '$ltdll_obj'$libobjs $deplibs $compiler_flags~
2847 - $DLLTOOL --as=$AS --dllname $soname --exclude-symbols '$dll_exclude_symbols' --def $output_objdir/$soname-def --base-file $output_objdir/$soname-base --output-exp $output_objdir/$soname-exp~
2848 - $CC -Wl,--base-file,$output_objdir/$soname-base $output_objdir/$soname-exp '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $output_objdir/$soname '$ltdll_obj'$libobjs $deplibs $compiler_flags~
2849 - $DLLTOOL --as=$AS --dllname $soname --exclude-symbols '$dll_exclude_symbols' --def $output_objdir/$soname-def --base-file $output_objdir/$soname-base --output-exp $output_objdir/$soname-exp --output-lib $output_objdir/$libname.dll.a~
2850 - $CC $output_objdir/$soname-exp '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $output_objdir/$soname '$ltdll_obj'$libobjs $deplibs $compiler_flags'
2852 + version_type=linux
2853 + need_lib_prefix=no
2855 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
2856 + soname_spec='${libname}${release}${shared_ext}$major'
2857 + shlibpath_var=LD_LIBRARY_PATH
2858 + hardcode_into_libs=yes
2861 +hpux9* | hpux10* | hpux11*)
2862 + # Give a soname corresponding to the major version so that dld.sl refuses to
2863 + # link against other versions.
2864 + version_type=sunos
2865 + need_lib_prefix=no
2867 + case "$host_cpu" in
2870 + hardcode_into_libs=yes
2871 + dynamic_linker="$host_os dld.so"
2872 + shlibpath_var=LD_LIBRARY_PATH
2873 + shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
2874 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
2875 + soname_spec='${libname}${release}${shared_ext}$major'
2876 + if test "X$HPUX_IA64_MODE" = X32; then
2877 + sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
2879 + sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
2881 + sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
2885 + hardcode_into_libs=yes
2886 + dynamic_linker="$host_os dld.sl"
2887 + shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
2888 + shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
2889 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
2890 + soname_spec='${libname}${release}${shared_ext}$major'
2891 + sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
2892 + sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
2896 + dynamic_linker="$host_os dld.sl"
2897 + shlibpath_var=SHLIB_PATH
2898 + shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
2899 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
2900 + soname_spec='${libname}${release}${shared_ext}$major'
2903 + # HP-UX runs *really* slowly unless shared libraries are mode 555.
2904 + postinstall_cmds='chmod 555 $lib'
2907 +irix5* | irix6* | nonstopux*)
2909 + nonstopux*) version_type=nonstopux ;;
2911 + if test "$lt_cv_prog_gnu_ld" = yes; then
2912 + version_type=linux
2917 + need_lib_prefix=no
2919 + soname_spec='${libname}${release}${shared_ext}$major'
2920 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
2922 + irix5* | nonstopux*)
2923 + libsuff= shlibsuff=
2926 + case $LD in # libtool.m4 will add one of these switches to LD
2927 + *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
2928 + libsuff= shlibsuff= libmagic=32-bit;;
2929 + *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
2930 + libsuff=32 shlibsuff=N32 libmagic=N32;;
2931 + *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
2932 + libsuff=64 shlibsuff=64 libmagic=64-bit;;
2933 + *) libsuff= shlibsuff= libmagic=never-match;;
2937 + shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
2938 + shlibpath_overrides_runpath=no
2939 + sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
2940 + sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
2941 + hardcode_into_libs=yes
2944 +# No shared lib support for Linux oldld, aout, or coff.
2945 +linux*oldld* | linux*aout* | linux*coff*)
2949 +# This must be Linux ELF.
2951 + version_type=linux
2952 + need_lib_prefix=no
2954 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
2955 + soname_spec='${libname}${release}${shared_ext}$major'
2956 + finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
2957 + shlibpath_var=LD_LIBRARY_PATH
2958 + shlibpath_overrides_runpath=no
2959 + # This implies no fast_install, which is unacceptable.
2960 + # Some rework will be needed to allow for fast_install
2961 + # before this can be enabled.
2962 + hardcode_into_libs=yes
2964 + # Append ld.so.conf contents to the search path
2965 + if test -f /etc/ld.so.conf; then
2966 + lt_ld_extra=`$SED -e 's/[:,\t]/ /g;s/=[^=]*$//;s/=[^= ]* / /g' /etc/ld.so.conf | tr '\n' ' '`
2967 + sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
2970 + # We used to test for /lib/ld.so.1 and disable shared libraries on
2971 + # powerpc, because MkLinux only supported shared libraries with the
2972 + # GNU dynamic linker. Since this was broken with cross compilers,
2973 + # most powerpc-linux boxes support dynamic linking these days and
2974 + # people can always --disable-shared, the test was removed, and we
2975 + # assume the GNU/Linux dynamic linker is in use.
2976 + dynamic_linker='GNU/Linux ld.so'
2980 + version_type=linux
2981 + need_lib_prefix=no
2983 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
2984 + soname_spec='${libname}${release}${shared_ext}$major'
2985 + shlibpath_var=LD_LIBRARY_PATH
2986 + shlibpath_overrides_runpath=no
2987 + hardcode_into_libs=yes
2988 + dynamic_linker='NetBSD ld.elf_so'
2992 + version_type=linux
2993 + need_lib_prefix=no
2995 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
2996 + soname_spec='${libname}${release}${shared_ext}$major'
2997 + shlibpath_var=LD_LIBRARY_PATH
2998 + shlibpath_overrides_runpath=no
2999 + hardcode_into_libs=yes
3000 + dynamic_linker='GNU ld.so'
3004 + version_type=sunos
3005 + need_lib_prefix=no
3007 + if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
3008 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
3009 + finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
3010 + dynamic_linker='NetBSD (a.out) ld.so'
3012 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
3013 + soname_spec='${libname}${release}${shared_ext}$major'
3014 + dynamic_linker='NetBSD ld.elf_so'
3016 + shlibpath_var=LD_LIBRARY_PATH
3017 + shlibpath_overrides_runpath=yes
3018 + hardcode_into_libs=yes
3022 + version_type=linux
3023 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
3024 + shlibpath_var=LD_LIBRARY_PATH
3025 + shlibpath_overrides_runpath=yes
3029 + version_type=linux
3030 + need_lib_prefix=no
3032 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
3033 + soname_spec='${libname}${release}${shared_ext}$major'
3034 + shlibpath_var=LD_LIBRARY_PATH
3035 + shlibpath_overrides_runpath=yes
3039 + version_type=sunos
3040 + need_lib_prefix=no
3042 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
3043 + finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
3044 + shlibpath_var=LD_LIBRARY_PATH
3045 + if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
3047 + openbsd2.[[89]] | openbsd2.[[89]].*)
3048 + shlibpath_overrides_runpath=no
3051 + shlibpath_overrides_runpath=yes
3055 + shlibpath_overrides_runpath=yes
3060 + libname_spec='$name'
3061 + shrext_cmds=".dll"
3062 + need_lib_prefix=no
3063 + library_names_spec='$libname${shared_ext} $libname.a'
3064 + dynamic_linker='OS/2 ld.exe'
3065 + shlibpath_var=LIBPATH
3068 +osf3* | osf4* | osf5*)
3070 + need_lib_prefix=no
3072 + soname_spec='${libname}${release}${shared_ext}$major'
3073 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
3074 + shlibpath_var=LD_LIBRARY_PATH
3075 + sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
3076 + sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
3081 + soname_spec='${libname}${release}${shared_ext}$major'
3082 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
3083 + shlibpath_var=LD_LIBRARY_PATH
3087 + version_type=linux
3088 + need_lib_prefix=no
3090 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
3091 + soname_spec='${libname}${release}${shared_ext}$major'
3092 + shlibpath_var=LD_LIBRARY_PATH
3093 + shlibpath_overrides_runpath=yes
3094 + hardcode_into_libs=yes
3095 + # ldd complains unless libraries are executable
3096 + postinstall_cmds='chmod +x $lib'
3100 + version_type=sunos
3101 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
3102 + finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
3103 + shlibpath_var=LD_LIBRARY_PATH
3104 + shlibpath_overrides_runpath=yes
3105 + if test "$with_gnu_ld" = yes; then
3106 + need_lib_prefix=no
3111 +sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
3112 + version_type=linux
3113 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
3114 + soname_spec='${libname}${release}${shared_ext}$major'
3115 + shlibpath_var=LD_LIBRARY_PATH
3116 + case $host_vendor in
3118 + shlibpath_overrides_runpath=no
3119 + need_lib_prefix=no
3120 + export_dynamic_flag_spec='${wl}-Blargedynsym'
3121 + runpath_var=LD_RUN_PATH
3124 + need_lib_prefix=no
3127 + need_lib_prefix=no
3129 + shlibpath_overrides_runpath=no
3130 + sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
3136 + if test -d /usr/nec ;then
3137 + version_type=linux
3138 + library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
3139 + soname_spec='$libname${shared_ext}.$major'
3140 + shlibpath_var=LD_LIBRARY_PATH
3145 + version_type=linux
3146 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
3147 + soname_spec='${libname}${release}${shared_ext}$major'
3148 + shlibpath_var=LD_LIBRARY_PATH
3155 +AC_MSG_RESULT([$dynamic_linker])
3156 +test "$dynamic_linker" = no && can_build_shared=no
3157 +])# AC_LIBTOOL_SYS_DYNAMIC_LINKER
3162 +AC_DEFUN([_LT_AC_TAGCONFIG],
3163 +[AC_ARG_WITH([tags],
3164 + [AC_HELP_STRING([--with-tags@<:@=TAGS@:>@],
3165 + [include additional configurations @<:@automatic@:>@])],
3166 + [tagnames="$withval"])
3168 +if test -f "$ltmain" && test -n "$tagnames"; then
3169 + if test ! -f "${ofile}"; then
3170 + AC_MSG_WARN([output file `$ofile' does not exist])
3173 + if test -z "$LTCC"; then
3174 + eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
3175 + if test -z "$LTCC"; then
3176 + AC_MSG_WARN([output file `$ofile' does not look like a libtool script])
3178 + AC_MSG_WARN([using `LTCC=$LTCC', extracted from `$ofile'])
3182 + # Extract list of available tagged configurations in $ofile.
3183 + # Note that this assumes the entire list is on one line.
3184 + available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
3186 + lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3187 + for tagname in $tagnames; do
3188 + IFS="$lt_save_ifs"
3189 + # Check whether tagname contains only valid characters
3190 + case `$echo "X$tagname" | $Xsed -e 's:[[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]]::g'` in
3192 + *) AC_MSG_ERROR([invalid tag name: $tagname])
3196 + if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
3198 + AC_MSG_ERROR([tag name \"$tagname\" already exists])
3201 + # Update the list of available tags.
3202 + if test -n "$tagname"; then
3203 + echo appending configuration tag \"$tagname\" to $ofile
3207 + if test -n "$CXX" && test "X$CXX" != "Xno"; then
3208 + AC_LIBTOOL_LANG_CXX_CONFIG
3215 + if test -n "$F77" && test "X$F77" != "Xno"; then
3216 + AC_LIBTOOL_LANG_F77_CONFIG
3223 + if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
3224 + AC_LIBTOOL_LANG_GCJ_CONFIG
3231 + AC_LIBTOOL_LANG_RC_CONFIG
3235 + AC_MSG_ERROR([Unsupported tag name: $tagname])
3239 + # Append the new tag name to the list of available tags.
3240 + if test -n "$tagname" ; then
3241 + available_tags="$available_tags $tagname"
3245 + IFS="$lt_save_ifs"
3247 + # Now substitute the updated list of available tags.
3248 + if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
3249 + mv "${ofile}T" "$ofile"
3253 + AC_MSG_ERROR([unable to update list of available tagged configurations.])
3256 +])# _LT_AC_TAGCONFIG
3259 +# AC_LIBTOOL_DLOPEN
3260 +# -----------------
3261 +# enable checks for dlopen support
3262 +AC_DEFUN([AC_LIBTOOL_DLOPEN],
3263 + [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])
3264 +])# AC_LIBTOOL_DLOPEN
3267 +# AC_LIBTOOL_WIN32_DLL
3268 +# --------------------
3269 +# declare package support for building win32 dll's
3270 +AC_DEFUN([AC_LIBTOOL_WIN32_DLL],
3271 +[AC_BEFORE([$0], [AC_LIBTOOL_SETUP])
3272 +])# AC_LIBTOOL_WIN32_DLL
3275 +# AC_ENABLE_SHARED([DEFAULT])
3276 +# ---------------------------
3277 +# implement the --enable-shared flag
3278 +# DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'.
3279 +AC_DEFUN([AC_ENABLE_SHARED],
3280 +[define([AC_ENABLE_SHARED_DEFAULT], ifelse($1, no, no, yes))dnl
3281 +AC_ARG_ENABLE([shared],
3282 + [AC_HELP_STRING([--enable-shared@<:@=PKGS@:>@],
3283 + [build shared libraries @<:@default=]AC_ENABLE_SHARED_DEFAULT[@:>@])],
3284 + [p=${PACKAGE-default}
3285 + case $enableval in
3286 + yes) enable_shared=yes ;;
3287 + no) enable_shared=no ;;
3290 + # Look at the argument we got. We use all the common list separators.
3291 + lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3292 + for pkg in $enableval; do
3293 + IFS="$lt_save_ifs"
3294 + if test "X$pkg" = "X$p"; then
3298 + IFS="$lt_save_ifs"
3301 + [enable_shared=]AC_ENABLE_SHARED_DEFAULT)
3302 +])# AC_ENABLE_SHARED
3305 +# AC_DISABLE_SHARED
3306 +# -----------------
3307 +#- set the default shared flag to --disable-shared
3308 +AC_DEFUN([AC_DISABLE_SHARED],
3309 +[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
3310 +AC_ENABLE_SHARED(no)
3311 +])# AC_DISABLE_SHARED
3314 +# AC_ENABLE_STATIC([DEFAULT])
3315 +# ---------------------------
3316 +# implement the --enable-static flag
3317 +# DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'.
3318 +AC_DEFUN([AC_ENABLE_STATIC],
3319 +[define([AC_ENABLE_STATIC_DEFAULT], ifelse($1, no, no, yes))dnl
3320 +AC_ARG_ENABLE([static],
3321 + [AC_HELP_STRING([--enable-static@<:@=PKGS@:>@],
3322 + [build static libraries @<:@default=]AC_ENABLE_STATIC_DEFAULT[@:>@])],
3323 + [p=${PACKAGE-default}
3324 + case $enableval in
3325 + yes) enable_static=yes ;;
3326 + no) enable_static=no ;;
3329 + # Look at the argument we got. We use all the common list separators.
3330 + lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3331 + for pkg in $enableval; do
3332 + IFS="$lt_save_ifs"
3333 + if test "X$pkg" = "X$p"; then
3337 + IFS="$lt_save_ifs"
3340 + [enable_static=]AC_ENABLE_STATIC_DEFAULT)
3341 +])# AC_ENABLE_STATIC
3344 +# AC_DISABLE_STATIC
3345 +# -----------------
3346 +# set the default static flag to --disable-static
3347 +AC_DEFUN([AC_DISABLE_STATIC],
3348 +[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
3349 +AC_ENABLE_STATIC(no)
3350 +])# AC_DISABLE_STATIC
3353 +# AC_ENABLE_FAST_INSTALL([DEFAULT])
3354 +# ---------------------------------
3355 +# implement the --enable-fast-install flag
3356 +# DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'.
3357 +AC_DEFUN([AC_ENABLE_FAST_INSTALL],
3358 +[define([AC_ENABLE_FAST_INSTALL_DEFAULT], ifelse($1, no, no, yes))dnl
3359 +AC_ARG_ENABLE([fast-install],
3360 + [AC_HELP_STRING([--enable-fast-install@<:@=PKGS@:>@],
3361 + [optimize for fast installation @<:@default=]AC_ENABLE_FAST_INSTALL_DEFAULT[@:>@])],
3362 + [p=${PACKAGE-default}
3363 + case $enableval in
3364 + yes) enable_fast_install=yes ;;
3365 + no) enable_fast_install=no ;;
3367 + enable_fast_install=no
3368 + # Look at the argument we got. We use all the common list separators.
3369 + lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3370 + for pkg in $enableval; do
3371 + IFS="$lt_save_ifs"
3372 + if test "X$pkg" = "X$p"; then
3373 + enable_fast_install=yes
3376 + IFS="$lt_save_ifs"
3379 + [enable_fast_install=]AC_ENABLE_FAST_INSTALL_DEFAULT)
3380 +])# AC_ENABLE_FAST_INSTALL
3383 +# AC_DISABLE_FAST_INSTALL
3384 +# -----------------------
3385 +# set the default to --disable-fast-install
3386 +AC_DEFUN([AC_DISABLE_FAST_INSTALL],
3387 +[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
3388 +AC_ENABLE_FAST_INSTALL(no)
3389 +])# AC_DISABLE_FAST_INSTALL
3392 +# AC_LIBTOOL_PICMODE([MODE])
3393 +# --------------------------
3394 +# implement the --with-pic flag
3395 +# MODE is either `yes' or `no'. If omitted, it defaults to `both'.
3396 +AC_DEFUN([AC_LIBTOOL_PICMODE],
3397 +[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
3398 +pic_mode=ifelse($#,1,$1,default)
3399 +])# AC_LIBTOOL_PICMODE
3404 +# This is predefined starting with Autoconf 2.54, so this conditional
3405 +# definition can be removed once we require Autoconf 2.54 or later.
3406 +m4_ifndef([AC_PROG_EGREP], [AC_DEFUN([AC_PROG_EGREP],
3407 +[AC_CACHE_CHECK([for egrep], [ac_cv_prog_egrep],
3408 + [if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3409 + then ac_cv_prog_egrep='grep -E'
3410 + else ac_cv_prog_egrep='egrep'
3412 + EGREP=$ac_cv_prog_egrep
3417 +# AC_PATH_TOOL_PREFIX
3418 +# -------------------
3419 +# find a file program which can recognise shared library
3420 +AC_DEFUN([AC_PATH_TOOL_PREFIX],
3421 +[AC_REQUIRE([AC_PROG_EGREP])dnl
3422 +AC_MSG_CHECKING([for $1])
3423 +AC_CACHE_VAL(lt_cv_path_MAGIC_CMD,
3424 +[case $MAGIC_CMD in
3425 +[[\\/*] | ?:[\\/]*])
3426 + lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
3429 + lt_save_MAGIC_CMD="$MAGIC_CMD"
3430 + lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3431 +dnl $ac_dummy forces splitting on constant user-supplied paths.
3432 +dnl POSIX.2 word splitting is done only on the output of word expansions,
3433 +dnl not every word. This closes a longstanding sh security hole.
3434 + ac_dummy="ifelse([$2], , $PATH, [$2])"
3435 + for ac_dir in $ac_dummy; do
3436 + IFS="$lt_save_ifs"
3437 + test -z "$ac_dir" && ac_dir=.
3438 + if test -f $ac_dir/$1; then
3439 + lt_cv_path_MAGIC_CMD="$ac_dir/$1"
3440 + if test -n "$file_magic_test_file"; then
3441 + case $deplibs_check_method in
3443 + file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
3444 + MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
3445 + if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
3446 + $EGREP "$file_magic_regex" > /dev/null; then
3451 +*** Warning: the command libtool uses to detect shared libraries,
3452 +*** $file_magic_cmd, produces output that libtool cannot recognize.
3453 +*** The result is that libtool may fail to recognize shared libraries
3454 +*** as such. This will affect the creation of libtool libraries that
3455 +*** depend on shared libraries, but programs linked with such libtool
3456 +*** libraries will work regardless of this problem. Nevertheless, you
3457 +*** may want to report the problem to your system manager and/or to
3458 +*** bug-libtool@gnu.org
3467 + IFS="$lt_save_ifs"
3468 + MAGIC_CMD="$lt_save_MAGIC_CMD"
3471 +MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
3472 +if test -n "$MAGIC_CMD"; then
3473 + AC_MSG_RESULT($MAGIC_CMD)
3477 +])# AC_PATH_TOOL_PREFIX
3482 +# find a file program which can recognise a shared library
3483 +AC_DEFUN([AC_PATH_MAGIC],
3484 +[AC_PATH_TOOL_PREFIX(${ac_tool_prefix}file, /usr/bin$PATH_SEPARATOR$PATH)
3485 +if test -z "$lt_cv_path_MAGIC_CMD"; then
3486 + if test -n "$ac_tool_prefix"; then
3487 + AC_PATH_TOOL_PREFIX(file, /usr/bin$PATH_SEPARATOR$PATH)
3497 +# find the pathname to the GNU or non-GNU linker
3498 +AC_DEFUN([AC_PROG_LD],
3499 +[AC_ARG_WITH([gnu-ld],
3500 + [AC_HELP_STRING([--with-gnu-ld],
3501 + [assume the C compiler uses GNU ld @<:@default=no@:>@])],
3502 + [test "$withval" = no || with_gnu_ld=yes],
3504 +AC_REQUIRE([LT_AC_PROG_SED])dnl
3505 +AC_REQUIRE([AC_PROG_CC])dnl
3506 +AC_REQUIRE([AC_CANONICAL_HOST])dnl
3507 +AC_REQUIRE([AC_CANONICAL_BUILD])dnl
3509 +if test "$GCC" = yes; then
3510 + # Check if gcc -print-prog-name=ld gives a path.
3511 + AC_MSG_CHECKING([for ld used by $CC])
3514 + # gcc leaves a trailing carriage return which upsets mingw
3515 + ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3517 + ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3520 + # Accept absolute paths.
3521 + [[\\/]]* | ?:[[\\/]]*)
3522 + re_direlt='/[[^/]][[^/]]*/\.\./'
3523 + # Canonicalize the pathname of ld
3524 + ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
3525 + while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
3526 + ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
3528 + test -z "$LD" && LD="$ac_prog"
3531 + # If it fails, then pretend we aren't using GCC.
3535 + # If it is relative, then search for the first ld in PATH.
3536 + with_gnu_ld=unknown
3539 +elif test "$with_gnu_ld" = yes; then
3540 + AC_MSG_CHECKING([for GNU ld])
3542 + AC_MSG_CHECKING([for non-GNU ld])
3544 +AC_CACHE_VAL(lt_cv_path_LD,
3545 +[if test -z "$LD"; then
3546 + lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3547 + for ac_dir in $PATH; do
3548 + IFS="$lt_save_ifs"
3549 + test -z "$ac_dir" && ac_dir=.
3550 + if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3551 + lt_cv_path_LD="$ac_dir/$ac_prog"
3552 + # Check to see if the program is GNU ld. I'd rather use --version,
3553 + # but apparently some GNU ld's only accept -v.
3554 + # Break only if it was the GNU/non-GNU ld that we prefer.
3555 + case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
3556 + *GNU* | *'with BFD'*)
3557 + test "$with_gnu_ld" != no && break
3560 + test "$with_gnu_ld" != yes && break
3565 + IFS="$lt_save_ifs"
3567 + lt_cv_path_LD="$LD" # Let the user override the test with a path.
3569 +LD="$lt_cv_path_LD"
3570 +if test -n "$LD"; then
3571 + AC_MSG_RESULT($LD)
3575 +test -z "$LD" && AC_MSG_ERROR([no acceptable ld found in \$PATH])
3582 +AC_DEFUN([AC_PROG_LD_GNU],
3583 +[AC_REQUIRE([AC_PROG_EGREP])dnl
3584 +AC_CACHE_CHECK([if the linker ($LD) is GNU ld], lt_cv_prog_gnu_ld,
3585 +[# I'd rather use --version here, but apparently some GNU ld's only accept -v.
3586 +case `$LD -v 2>&1 </dev/null` in
3587 +*GNU* | *'with BFD'*)
3588 + lt_cv_prog_gnu_ld=yes
3591 + lt_cv_prog_gnu_ld=no
3594 +with_gnu_ld=$lt_cv_prog_gnu_ld
3598 +# AC_PROG_LD_RELOAD_FLAG
3599 +# ----------------------
3600 +# find reload flag for linker
3601 +# -- PORTME Some linkers may need a different reload flag.
3602 +AC_DEFUN([AC_PROG_LD_RELOAD_FLAG],
3603 +[AC_CACHE_CHECK([for $LD option to reload object files],
3604 + lt_cv_ld_reload_flag,
3605 + [lt_cv_ld_reload_flag='-r'])
3606 +reload_flag=$lt_cv_ld_reload_flag
3607 +case $reload_flag in
3609 +*) reload_flag=" $reload_flag" ;;
3611 +reload_cmds='$LD$reload_flag -o $output$reload_objs'
3612 +])# AC_PROG_LD_RELOAD_FLAG
3615 +# AC_DEPLIBS_CHECK_METHOD
3616 +# -----------------------
3617 +# how to check for library dependencies
3618 +# -- PORTME fill in with the dynamic library characteristics
3619 +AC_DEFUN([AC_DEPLIBS_CHECK_METHOD],
3620 +[AC_CACHE_CHECK([how to recognise dependent libraries],
3621 +lt_cv_deplibs_check_method,
3622 +[lt_cv_file_magic_cmd='$MAGIC_CMD'
3623 +lt_cv_file_magic_test_file=
3624 +lt_cv_deplibs_check_method='unknown'
3625 +# Need to set the preceding variable on all platforms that support
3626 +# interlibrary dependencies.
3627 +# 'none' -- dependencies not supported.
3628 +# `unknown' -- same as none, but documents that we really don't know.
3629 +# 'pass_all' -- all dependencies passed with no checks.
3630 +# 'test_compile' -- check by making test program.
3631 +# 'file_magic [[regex]]' -- check by looking for files in library path
3632 +# which responds to the $file_magic_cmd with a given extended regex.
3633 +# If you have `file' or equivalent on your system and you're not sure
3634 +# whether `pass_all' will *always* work, you probably want this one.
3638 + lt_cv_deplibs_check_method=pass_all
3642 + lt_cv_deplibs_check_method=pass_all
3646 + lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (shared object|dynamic lib)'
3647 + lt_cv_file_magic_cmd='/usr/bin/file -L'
3648 + lt_cv_file_magic_test_file=/shlib/libc.so
3652 + # func_win32_libid is a shell function defined in ltmain.sh
3653 + lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
3654 + lt_cv_file_magic_cmd='func_win32_libid'
3658 + # Base MSYS/MinGW do not provide the 'file' command needed by
3659 + # func_win32_libid shell function, so use a weaker test based on 'objdump'.
3660 + lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
3661 + lt_cv_file_magic_cmd='$OBJDUMP -f'
3664 +darwin* | rhapsody*)
3665 + lt_cv_deplibs_check_method=pass_all
3668 +freebsd* | kfreebsd*-gnu)
3669 + if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3672 + # Not sure whether the presence of OpenBSD here was a mistake.
3673 + # Let's accept both of them until this is cleared up.
3674 + lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[[3-9]]86 (compact )?demand paged shared library'
3675 + lt_cv_file_magic_cmd=/usr/bin/file
3676 + lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3680 + lt_cv_deplibs_check_method=pass_all
3685 + lt_cv_deplibs_check_method=pass_all
3688 +hpux10.20* | hpux11*)
3689 + lt_cv_file_magic_cmd=/usr/bin/file
3690 + case "$host_cpu" in
3692 + lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|ELF-[[0-9]][[0-9]]) shared object file - IA64'
3693 + lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
3696 + [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]']
3697 + lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
3700 + lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|PA-RISC[[0-9]].[[0-9]]) shared library'
3701 + lt_cv_file_magic_test_file=/usr/lib/libc.sl
3706 +irix5* | irix6* | nonstopux*)
3708 + *-32|*"-32 ") libmagic=32-bit;;
3709 + *-n32|*"-n32 ") libmagic=N32;;
3710 + *-64|*"-64 ") libmagic=64-bit;;
3711 + *) libmagic=never-match;;
3713 + lt_cv_deplibs_check_method=pass_all
3716 +# This must be Linux ELF.
3718 + lt_cv_deplibs_check_method=pass_all
3721 +netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
3722 + if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3723 + lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$'
3725 + lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so|_pic\.a)$'
3730 + lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (executable|dynamic lib)'
3731 + lt_cv_file_magic_cmd=/usr/bin/file
3732 + lt_cv_file_magic_test_file=/usr/lib/libnls.so
3736 + lt_cv_deplibs_check_method=unknown
3740 + lt_cv_file_magic_cmd=/usr/bin/file
3741 + lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3742 + if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
3743 + lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB shared object'
3745 + lt_cv_deplibs_check_method='file_magic OpenBSD.* shared library'
3749 +osf3* | osf4* | osf5*)
3750 + lt_cv_deplibs_check_method=pass_all
3754 + lt_cv_deplibs_check_method=pass_all
3758 + lt_cv_deplibs_check_method=pass_all
3761 +sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
3762 + case $host_vendor in
3764 + 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]]'
3765 + lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
3768 + lt_cv_deplibs_check_method=pass_all
3771 + lt_cv_file_magic_cmd='/bin/file'
3772 + lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB (shared object|dynamic lib )'
3775 + lt_cv_file_magic_cmd='/bin/file'
3776 + lt_cv_deplibs_check_method="file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB dynamic lib"
3777 + lt_cv_file_magic_test_file=/lib/libc.so
3780 + lt_cv_deplibs_check_method=pass_all
3785 +sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[[78]]* | unixware7* | sysv4*uw2*)
3786 + lt_cv_deplibs_check_method=pass_all
3790 +file_magic_cmd=$lt_cv_file_magic_cmd
3791 +deplibs_check_method=$lt_cv_deplibs_check_method
3792 +test -z "$deplibs_check_method" && deplibs_check_method=unknown
3793 +])# AC_DEPLIBS_CHECK_METHOD
3796 - if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
3797 - archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
3800 - archive_cmds='$CC -shared -nodefaultlibs $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
3801 - archive_expsym_cmds='$CC -shared -nodefaultlibs $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
3805 +# find the pathname to a BSD-compatible name lister
3806 +AC_DEFUN([AC_PROG_NM],
3807 +[AC_CACHE_CHECK([for BSD-compatible nm], lt_cv_path_NM,
3808 +[if test -n "$NM"; then
3809 + # Let the user override the test.
3810 + lt_cv_path_NM="$NM"
3812 + lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3813 + for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
3814 + IFS="$lt_save_ifs"
3815 + test -z "$ac_dir" && ac_dir=.
3816 + tmp_nm="$ac_dir/${ac_tool_prefix}nm"
3817 + if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
3818 + # Check to see if the nm accepts a BSD-compat flag.
3819 + # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3820 + # nm: unknown option "B" ignored
3821 + # Tru64's nm complains that /dev/null is an invalid object file
3822 + case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
3823 + */dev/null* | *'Invalid file or object type'*)
3824 + lt_cv_path_NM="$tmp_nm -B"
3828 + case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
3830 + lt_cv_path_NM="$tmp_nm -p"
3834 + lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3835 + continue # so that we can try to find one that supports BSD flags
3842 + IFS="$lt_save_ifs"
3843 + test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
3845 +NM="$lt_cv_path_NM"
3848 - solaris* | sysv5*)
3849 - if $LD -v 2>&1 | egrep 'BFD 2\.8' > /dev/null; then
3853 -*** Warning: The releases 2.8.* of the GNU linker cannot reliably
3854 -*** create shared libraries on Solaris systems. Therefore, libtool
3855 -*** is disabling shared libraries support. We urge you to upgrade GNU
3856 -*** binutils to release 2.9.1 or newer. Another option is to modify
3857 -*** your PATH or compiler configuration so that the native linker is
3858 -*** used, and then restart.
3861 +# check for math library
3862 +AC_DEFUN([AC_CHECK_LIBM],
3863 +[AC_REQUIRE([AC_CANONICAL_HOST])dnl
3866 +*-*-beos* | *-*-cygwin* | *-*-pw32* | *-*-darwin*)
3867 + # These system don't have libm, or don't need it
3870 + AC_CHECK_LIB(mw, _mwvalidcheckl, LIBM="-lmw")
3871 + AC_CHECK_LIB(m, cos, LIBM="$LIBM -lm")
3874 + AC_CHECK_LIB(m, cos, LIBM="-lm")
3880 - elif $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
3881 - archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
3882 - archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
3889 - archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
3891 - hardcode_direct=yes
3892 - hardcode_shlibpath_var=no
3894 +# AC_LIBLTDL_CONVENIENCE([DIRECTORY])
3895 +# -----------------------------------
3896 +# sets LIBLTDL to the link flags for the libltdl convenience library and
3897 +# LTDLINCL to the include flags for the libltdl header and adds
3898 +# --enable-ltdl-convenience to the configure arguments. Note that LIBLTDL
3899 +# and LTDLINCL are not AC_SUBSTed, nor is AC_CONFIG_SUBDIRS called. If
3900 +# DIRECTORY is not provided, it is assumed to be `libltdl'. LIBLTDL will
3901 +# be prefixed with '${top_builddir}/' and LTDLINCL will be prefixed with
3902 +# '${top_srcdir}/' (note the single quotes!). If your package is not
3903 +# flat and you're not using automake, define top_builddir and
3904 +# top_srcdir appropriately in the Makefiles.
3905 +AC_DEFUN([AC_LIBLTDL_CONVENIENCE],
3906 +[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
3907 + case $enable_ltdl_convenience in
3908 + no) AC_MSG_ERROR([this package needs a convenience libltdl]) ;;
3909 + "") enable_ltdl_convenience=yes
3910 + ac_configure_args="$ac_configure_args --enable-ltdl-convenience" ;;
3912 + LIBLTDL='${top_builddir}/'ifelse($#,1,[$1],['libltdl'])/libltdlc.la
3913 + LTDLINCL='-I${top_srcdir}/'ifelse($#,1,[$1],['libltdl'])
3914 + # For backwards non-gettext consistent compatibility...
3915 + INCLTDL="$LTDLINCL"
3916 +])# AC_LIBLTDL_CONVENIENCE
3919 - if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
3920 - archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
3921 - archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
3926 +# AC_LIBLTDL_INSTALLABLE([DIRECTORY])
3927 +# -----------------------------------
3928 +# sets LIBLTDL to the link flags for the libltdl installable library and
3929 +# LTDLINCL to the include flags for the libltdl header and adds
3930 +# --enable-ltdl-install to the configure arguments. Note that LIBLTDL
3931 +# and LTDLINCL are not AC_SUBSTed, nor is AC_CONFIG_SUBDIRS called. If
3932 +# DIRECTORY is not provided and an installed libltdl is not found, it is
3933 +# assumed to be `libltdl'. LIBLTDL will be prefixed with '${top_builddir}/'
3934 +# and LTDLINCL will be prefixed with '${top_srcdir}/' (note the single
3935 +# quotes!). If your package is not flat and you're not using automake,
3936 +# define top_builddir and top_srcdir appropriately in the Makefiles.
3937 +# In the future, this macro may have to be called after AC_PROG_LIBTOOL.
3938 +AC_DEFUN([AC_LIBLTDL_INSTALLABLE],
3939 +[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
3940 + AC_CHECK_LIB(ltdl, lt_dlinit,
3941 + [test x"$enable_ltdl_install" != xyes && enable_ltdl_install=no],
3942 + [if test x"$enable_ltdl_install" = xno; then
3943 + AC_MSG_WARN([libltdl not installed, but installation disabled])
3945 + enable_ltdl_install=yes
3948 + if test x"$enable_ltdl_install" = x"yes"; then
3949 + ac_configure_args="$ac_configure_args --enable-ltdl-install"
3950 + LIBLTDL='${top_builddir}/'ifelse($#,1,[$1],['libltdl'])/libltdl.la
3951 + LTDLINCL='-I${top_srcdir}/'ifelse($#,1,[$1],['libltdl'])
3953 + ac_configure_args="$ac_configure_args --enable-ltdl-install=no"
3957 + # For backwards non-gettext consistent compatibility...
3958 + INCLTDL="$LTDLINCL"
3959 +])# AC_LIBLTDL_INSTALLABLE
3964 +# enable support for C++ libraries
3965 +AC_DEFUN([AC_LIBTOOL_CXX],
3966 +[AC_REQUIRE([_LT_AC_LANG_CXX])
3972 +AC_DEFUN([_LT_AC_LANG_CXX],
3973 +[AC_REQUIRE([AC_PROG_CXX])
3974 +AC_REQUIRE([AC_PROG_CXXCPP])
3975 +_LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}CXX])
3976 +])# _LT_AC_LANG_CXX
3981 +# enable support for Fortran 77 libraries
3982 +AC_DEFUN([AC_LIBTOOL_F77],
3983 +[AC_REQUIRE([_LT_AC_LANG_F77])
3989 +AC_DEFUN([_LT_AC_LANG_F77],
3990 +[AC_REQUIRE([AC_PROG_F77])
3991 +_LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}F77])
3992 +])# _LT_AC_LANG_F77
3997 +# enable support for GCJ libraries
3998 +AC_DEFUN([AC_LIBTOOL_GCJ],
3999 +[AC_REQUIRE([_LT_AC_LANG_GCJ])
4005 +AC_DEFUN([_LT_AC_LANG_GCJ],
4006 +[AC_PROVIDE_IFELSE([AC_PROG_GCJ],[],
4007 + [AC_PROVIDE_IFELSE([A][M_PROG_GCJ],[],
4008 + [AC_PROVIDE_IFELSE([LT_AC_PROG_GCJ],[],
4009 + [ifdef([AC_PROG_GCJ],[AC_REQUIRE([AC_PROG_GCJ])],
4010 + [ifdef([A][M_PROG_GCJ],[AC_REQUIRE([A][M_PROG_GCJ])],
4011 + [AC_REQUIRE([A][C_PROG_GCJ_OR_A][M_PROG_GCJ])])])])])])
4012 +_LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}GCJ])
4013 +])# _LT_AC_LANG_GCJ
4018 +# enable support for Windows resource files
4019 +AC_DEFUN([AC_LIBTOOL_RC],
4020 +[AC_REQUIRE([LT_AC_PROG_RC])
4021 +_LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}RC])
4025 +# AC_LIBTOOL_LANG_C_CONFIG
4026 +# ------------------------
4027 +# Ensure that the configuration vars for the C compiler are
4028 +# suitably defined. Those variables are subsequently used by
4029 +# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
4030 +AC_DEFUN([AC_LIBTOOL_LANG_C_CONFIG], [_LT_AC_LANG_C_CONFIG])
4031 +AC_DEFUN([_LT_AC_LANG_C_CONFIG],
4035 +# Source file extension for C test sources.
4038 +# Object file extension for compiled C test sources.
4040 +_LT_AC_TAGVAR(objext, $1)=$objext
4042 +# Code to be used in simple compile tests
4043 +lt_simple_compile_test_code="int some_variable = 0;\n"
4045 +# Code to be used in simple link tests
4046 +lt_simple_link_test_code='int main(){return(0);}\n'
4048 +_LT_AC_SYS_COMPILER
4051 +# Check for any special shared library compilation flags.
4053 +_LT_AC_TAGVAR(lt_prog_cc_shlib, $1)=
4054 +if test "$GCC" = no; then
4057 + _LT_AC_TAGVAR(lt_prog_cc_shlib, $1)='-belf'
4061 +if test -n "$_LT_AC_TAGVAR(lt_prog_cc_shlib, $1)"; then
4062 + AC_MSG_WARN([`$CC' requires `$_LT_AC_TAGVAR(lt_prog_cc_shlib, $1)' to build shared libraries])
4063 + if echo "$old_CC $old_CFLAGS " | grep "[[ ]]$_LT_AC_TAGVAR(lt_prog_cc_shlib, $1)[[ ]]" >/dev/null; then :
4065 + AC_MSG_WARN([add `$_LT_AC_TAGVAR(lt_prog_cc_shlib, $1)' to the CC or CFLAGS env variable and reconfigure])
4066 + _LT_AC_TAGVAR(lt_cv_prog_cc_can_build_shared, $1)=no
4070 - if test "$ld_shlibs" = yes; then
4071 - runpath_var=LD_RUN_PATH
4072 - hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
4073 - export_dynamic_flag_spec='${wl}--export-dynamic'
4075 - cygwin* | mingw* | pw32*)
4076 - # dlltool doesn't understand --whole-archive et. al.
4077 - whole_archive_flag_spec=
4080 +# Check to make sure the static flag actually works.
4082 +AC_LIBTOOL_LINKER_OPTION([if $compiler static flag $_LT_AC_TAGVAR(lt_prog_compiler_static, $1) works],
4083 + _LT_AC_TAGVAR(lt_prog_compiler_static_works, $1),
4084 + $_LT_AC_TAGVAR(lt_prog_compiler_static, $1),
4086 + [_LT_AC_TAGVAR(lt_prog_compiler_static, $1)=])
4089 +AC_LIBTOOL_PROG_COMPILER_NO_RTTI($1)
4090 +AC_LIBTOOL_PROG_COMPILER_PIC($1)
4091 +AC_LIBTOOL_PROG_CC_C_O($1)
4092 +AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1)
4093 +AC_LIBTOOL_PROG_LD_SHLIBS($1)
4094 +AC_LIBTOOL_SYS_DYNAMIC_LINKER($1)
4095 +AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1)
4096 +AC_LIBTOOL_SYS_LIB_STRIP
4097 +AC_LIBTOOL_DLOPEN_SELF($1)
4099 +# Report which librarie types wil actually be built
4100 +AC_MSG_CHECKING([if libtool supports shared libraries])
4101 +AC_MSG_RESULT([$can_build_shared])
4103 +AC_MSG_CHECKING([whether to build shared libraries])
4104 +test "$can_build_shared" = "no" && enable_shared=no
4106 +# On AIX, shared libraries and static libraries use the same namespace, and
4107 +# are all built from PIC.
4110 + test "$enable_shared" = yes && enable_static=no
4111 + if test -n "$RANLIB"; then
4112 + archive_cmds="$archive_cmds~\$RANLIB \$lib"
4113 + postinstall_cmds='$RANLIB $lib'
4118 + if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
4119 + test "$enable_shared" = yes && enable_static=no
4122 + darwin* | rhapsody*)
4123 + if test "$GCC" = yes; then
4124 + _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
4125 + case "$host_os" in
4126 + rhapsody* | darwin1.[[012]])
4127 + _LT_AC_TAGVAR(allow_undefined_flag, $1)='-undefined suppress'
4130 - # ancient GNU ld didn't support --whole-archive et. al.
4131 - if $LD --help 2>&1 | egrep 'no-whole-archive' > /dev/null; then
4132 - whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
4133 + *) # Darwin 1.3 on
4134 + if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
4135 + _LT_AC_TAGVAR(allow_undefined_flag, $1)='-flat_namespace -undefined suppress'
4137 - whole_archive_flag_spec=
4138 + case ${MACOSX_DEPLOYMENT_TARGET} in
4140 + _LT_AC_TAGVAR(allow_undefined_flag, $1)='-flat_namespace -undefined suppress'
4143 + _LT_AC_TAGVAR(allow_undefined_flag, $1)='-undefined dynamic_lookup'
4149 + output_verbose_link_cmd='echo'
4150 + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags -install_name $rpath/$soname $verstring'
4151 + _LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
4152 + # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
4153 + _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
4154 + _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}'
4155 + _LT_AC_TAGVAR(hardcode_direct, $1)=no
4156 + _LT_AC_TAGVAR(hardcode_automatic, $1)=yes
4157 + _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
4158 + _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='-all_load $convenience'
4159 + _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
4161 + _LT_AC_TAGVAR(ld_shlibs, $1)=no
4165 +AC_MSG_RESULT([$enable_shared])
4167 +AC_MSG_CHECKING([whether to build static libraries])
4168 +# Make sure either enable_shared or enable_static is yes.
4169 +test "$enable_shared" = yes || enable_static=yes
4170 +AC_MSG_RESULT([$enable_static])
4172 +AC_LIBTOOL_CONFIG($1)
4176 +])# AC_LIBTOOL_LANG_C_CONFIG
4179 +# AC_LIBTOOL_LANG_CXX_CONFIG
4180 +# --------------------------
4181 +# Ensure that the configuration vars for the C compiler are
4182 +# suitably defined. Those variables are subsequently used by
4183 +# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
4184 +AC_DEFUN([AC_LIBTOOL_LANG_CXX_CONFIG], [_LT_AC_LANG_CXX_CONFIG(CXX)])
4185 +AC_DEFUN([_LT_AC_LANG_CXX_CONFIG],
4187 +AC_REQUIRE([AC_PROG_CXX])
4188 +AC_REQUIRE([AC_PROG_CXXCPP])
4190 +_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
4191 +_LT_AC_TAGVAR(allow_undefined_flag, $1)=
4192 +_LT_AC_TAGVAR(always_export_symbols, $1)=no
4193 +_LT_AC_TAGVAR(archive_expsym_cmds, $1)=
4194 +_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)=
4195 +_LT_AC_TAGVAR(hardcode_direct, $1)=no
4196 +_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=
4197 +_LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
4198 +_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
4199 +_LT_AC_TAGVAR(hardcode_minus_L, $1)=no
4200 +_LT_AC_TAGVAR(hardcode_automatic, $1)=no
4201 +_LT_AC_TAGVAR(module_cmds, $1)=
4202 +_LT_AC_TAGVAR(module_expsym_cmds, $1)=
4203 +_LT_AC_TAGVAR(link_all_deplibs, $1)=unknown
4204 +_LT_AC_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
4205 +_LT_AC_TAGVAR(no_undefined_flag, $1)=
4206 +_LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
4207 +_LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=no
4209 +# Dependencies to place before and after the object being linked:
4210 +_LT_AC_TAGVAR(predep_objects, $1)=
4211 +_LT_AC_TAGVAR(postdep_objects, $1)=
4212 +_LT_AC_TAGVAR(predeps, $1)=
4213 +_LT_AC_TAGVAR(postdeps, $1)=
4214 +_LT_AC_TAGVAR(compiler_lib_search_path, $1)=
4216 +# Source file extension for C++ test sources.
4219 +# Object file extension for compiled C++ test sources.
4221 +_LT_AC_TAGVAR(objext, $1)=$objext
4223 +# Code to be used in simple compile tests
4224 +lt_simple_compile_test_code="int some_variable = 0;\n"
4226 +# Code to be used in simple link tests
4227 +lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n'
4229 +# ltmain only uses $CC for tagged configurations so make sure $CC is set.
4230 +_LT_AC_SYS_COMPILER
4232 +# Allow CC to be a program name with arguments.
4237 +lt_save_with_gnu_ld=$with_gnu_ld
4238 +lt_save_path_LD=$lt_cv_path_LD
4239 +if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
4240 + lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
4242 - # PORTME fill in a description of your system's linker (not GNU ld)
4245 - allow_undefined_flag=unsupported
4246 - always_export_symbols=yes
4247 - archive_expsym_cmds='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
4248 - # Note: this linker hardcodes the directories in LIBPATH if there
4249 - # are no directories specified by -L.
4250 - hardcode_minus_L=yes
4251 - if test "$GCC" = yes && test -z "$link_static_flag"; then
4252 - # Neither direct hardcoding nor static linking is supported with a
4253 - # broken collect2.
4254 - hardcode_direct=unsupported
4255 + unset lt_cv_prog_gnu_ld
4257 +if test -n "${lt_cv_path_LDCXX+set}"; then
4258 + lt_cv_path_LD=$lt_cv_path_LDCXX
4260 + unset lt_cv_path_LD
4262 +test -z "${LDCXX+set}" || LD=$LDCXX
4265 +_LT_AC_TAGVAR(compiler, $1)=$CC
4266 +cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
4268 +# We don't want -fno-exception wen compiling C++ code, so set the
4269 +# no_builtin_flag separately
4270 +if test "$GXX" = yes; then
4271 + _LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin'
4273 + _LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=
4276 +if test "$GXX" = yes; then
4277 + # Set up default GNU C++ configuration
4281 + # Check if GNU C++ uses GNU ld as the underlying linker, since the
4282 + # archiving commands below assume that GNU ld is being used.
4283 + if test "$with_gnu_ld" = yes; then
4284 + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
4285 + _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'
4287 + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir'
4288 + _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
4290 + # If archive_cmds runs LD, not CC, wlarc should be empty
4291 + # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
4292 + # investigate it a little bit more. (MM)
4295 + # ancient GNU ld didn't support --whole-archive et. al.
4296 + if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
4297 + grep 'no-whole-archive' > /dev/null; then
4298 + _LT_AC_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
4300 + _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
4307 + # A generic and very simple default shared library creation
4308 + # command for GNU C++ for the case where it uses the native
4309 + # linker, instead of GNU ld. If possible, this setting should
4310 + # overridden to take advantage of the native linker features on
4311 + # the platform it is being used on.
4312 + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
4315 + # Commands to make compiler produce verbose output that lists
4316 + # what "hidden" libraries, object files and flags are used when
4317 + # linking a shared library.
4318 + output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
4326 +# PORTME: fill in a description of your system's C++ link characteristics
4327 +AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries])
4328 +_LT_AC_TAGVAR(ld_shlibs, $1)=yes
4331 + # FIXME: insert proper C++ library support
4332 + _LT_AC_TAGVAR(ld_shlibs, $1)=no
4335 if test "$host_cpu" = ia64; then
4336 # On IA64, the linker does run time linking by default, so we don't
4337 @@ -1586,7 +3728,7 @@
4339 aix_use_runtimelinking=yes
4346 @@ -1601,34 +3743,39 @@
4347 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
4348 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
4350 - hardcode_direct=yes
4352 - hardcode_libdir_separator=':'
4353 - if test "$GCC" = yes; then
4354 - case $host_os in aix4.[[012]]|aix4.[[012]].*)
4355 + _LT_AC_TAGVAR(archive_cmds, $1)=''
4356 + _LT_AC_TAGVAR(hardcode_direct, $1)=yes
4357 + _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=':'
4358 + _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
4360 + if test "$GXX" = yes; then
4361 + case $host_os in aix4.[012]|aix4.[012].*)
4362 + # We only want to do this on AIX 4.2 and lower, the check
4363 + # below for broken collect2 doesn't work under 4.3+
4364 collect2name=`${CC} -print-prog-name=collect2`
4365 if test -f "$collect2name" && \
4366 - strings "$collect2name" | grep resolve_lib_name >/dev/null
4367 + strings "$collect2name" | grep resolve_lib_name >/dev/null
4369 # We have reworked collect2
4370 - hardcode_direct=yes
4371 + _LT_AC_TAGVAR(hardcode_direct, $1)=yes
4373 # We have old collect2
4374 - hardcode_direct=unsupported
4375 + _LT_AC_TAGVAR(hardcode_direct, $1)=unsupported
4376 # It fails to find uninstalled libraries when the uninstalled
4377 # path is not listed in the libpath. Setting hardcode_minus_L
4378 # to unsupported forces relinking
4379 - hardcode_minus_L=yes
4380 - hardcode_libdir_flag_spec='-L$libdir'
4381 - hardcode_libdir_separator=
4382 + _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
4383 + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
4384 + _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
4388 shared_flag='-shared'
4391 if test "$host_cpu" = ia64; then
4392 - shared_flag='${wl}-G'
4393 + # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
4394 + # chokes on -Wl,-G. The following line is correct:
4397 if test "$aix_use_runtimelinking" = yes; then
4398 shared_flag='${wl}-G'
4399 @@ -1638,833 +3785,867 @@
4403 - # It seems that -bexpall can do strange things, so it is better to
4404 - # generate a list of symbols to export.
4405 - always_export_symbols=yes
4406 + # It seems that -bexpall does not export symbols beginning with
4407 + # underscore (_), so it is better to generate a list of symbols to export.
4408 + _LT_AC_TAGVAR(always_export_symbols, $1)=yes
4409 if test "$aix_use_runtimelinking" = yes; then
4410 # Warning - without using the other runtime loading flags (-brtl),
4411 # -berok will link without error, but may produce a broken library.
4412 - allow_undefined_flag='-berok'
4413 - hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:/usr/lib:/lib'
4414 - archive_expsym_cmds="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
4416 + _LT_AC_TAGVAR(allow_undefined_flag, $1)='-berok'
4417 + # Determine the default libpath from the value encoded in an empty executable.
4418 + _LT_AC_SYS_LIBPATH_AIX
4419 + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
4421 + _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
4423 if test "$host_cpu" = ia64; then
4424 - hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
4425 - allow_undefined_flag="-z nodefs"
4426 - archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname ${wl}-h$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
4427 + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib'
4428 + _LT_AC_TAGVAR(allow_undefined_flag, $1)="-z nodefs"
4429 + _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
4431 - hardcode_libdir_flag_spec='${wl}-bnolibpath ${wl}-blibpath:$libdir:/usr/lib:/lib'
4432 + # Determine the default libpath from the value encoded in an empty executable.
4433 + _LT_AC_SYS_LIBPATH_AIX
4434 + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
4435 # Warning - without using the other run time loading flags,
4436 # -berok will link without error, but may produce a broken library.
4437 - allow_undefined_flag='${wl}-berok'
4438 - # This is a bit strange, but is similar to how AIX traditionally builds
4439 - # it's shared libraries.
4440 - archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"' ~$AR -crlo $output_objdir/$libname$release.a $output_objdir/$soname'
4441 + _LT_AC_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok'
4442 + _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok'
4443 + # -bexpall does not export symbols beginning with underscore (_)
4444 + _LT_AC_TAGVAR(always_export_symbols, $1)=yes
4445 + # Exported symbols can be pulled into shared objects from archives
4446 + _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=' '
4447 + _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes
4448 + # This is similar to how AIX traditionally builds it's shared libraries.
4449 + _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
4455 - archive_cmds='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
4456 - hardcode_libdir_flag_spec='-L$libdir'
4457 - hardcode_minus_L=yes
4458 - # see comment about different semantics on the GNU ld section
4461 + case $cc_basename in
4463 + # FIXME: insert proper C++ library support
4464 + _LT_AC_TAGVAR(ld_shlibs, $1)=no
4469 cygwin* | mingw* | pw32*)
4470 - # When not using gcc, we currently assume that we are using
4471 - # Microsoft Visual C++.
4472 - # hardcode_libdir_flag_spec is actually meaningless, as there is
4473 - # no search path for DLLs.
4474 - hardcode_libdir_flag_spec=' '
4475 - allow_undefined_flag=unsupported
4476 - # Tell ltmain to make .lib files, not .a files.
4478 - # FIXME: Setting linknames here is a bad hack.
4479 - archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | sed -e '\''s/ -lc$//'\''` -link -dll~linknames='
4480 - # The linker will automatically build a .lib file if we build a DLL.
4481 - old_archive_from_new_cmds='true'
4482 - # FIXME: Should let the user specify the lib program.
4483 - old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
4484 - fix_srcfile_path='`cygpath -w "$srcfile"`'
4486 + # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless,
4487 + # as there is no search path for DLLs.
4488 + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
4489 + _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
4490 + _LT_AC_TAGVAR(always_export_symbols, $1)=no
4491 + _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
4493 + if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
4494 + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
4495 + # If the export-symbols file already is a .def file (1st line
4496 + # is EXPORTS), use it as is; otherwise, prepend...
4497 + _LT_AC_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
4498 + cp $export_symbols $output_objdir/$soname.def;
4500 + echo EXPORTS > $output_objdir/$soname.def;
4501 + cat $export_symbols >> $output_objdir/$soname.def;
4503 + $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
4505 + _LT_AC_TAGVAR(ld_shlibs, $1)=no
4509 darwin* | rhapsody*)
4510 + if test "$GXX" = yes; then
4511 + _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
4513 rhapsody* | darwin1.[[012]])
4514 - allow_undefined_flag='-undefined suppress'
4515 + _LT_AC_TAGVAR(allow_undefined_flag, $1)='-undefined suppress'
4518 - allow_undefined_flag='-flat_namespace -undefined suppress'
4521 - # FIXME: Relying on posixy $() will cause problems for
4522 - # cross-compilation, but unfortunately the echo tests do not
4523 - # yet detect zsh echo's removal of \ escapes. Also zsh mangles
4524 - # `"' quotes if we put them in here... so don't!
4525 - archive_cmds='$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs && $CC $(test .$module = .yes && echo -bundle || echo -dynamiclib) $allow_undefined_flag -o $lib ${lib}-master.o $deplibs$linker_flags $(test .$module != .yes && echo -install_name $rpath/$soname $verstring)'
4526 - # We need to add '_' to the symbols in $export_symbols first
4527 - #archive_expsym_cmds="$archive_cmds"' && strip -s $export_symbols'
4528 - hardcode_direct=yes
4529 - hardcode_shlibpath_var=no
4530 - whole_archive_flag_spec='-all_load $convenience'
4537 - # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
4538 - # support. Future versions do this automatically, but an explicit c++rt0.o
4539 - # does not break anything, and helps significantly (at the cost of a little
4542 - archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
4543 - hardcode_libdir_flag_spec='-R$libdir'
4544 - hardcode_direct=yes
4545 - hardcode_shlibpath_var=no
4548 - # Unfortunately, older versions of FreeBSD 2 do not have this feature.
4550 - archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
4551 - hardcode_direct=yes
4552 - hardcode_minus_L=yes
4553 - hardcode_shlibpath_var=no
4556 - # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
4558 - archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
4559 - hardcode_libdir_flag_spec='-R$libdir'
4560 - hardcode_direct=yes
4561 - hardcode_shlibpath_var=no
4564 - hpux9* | hpux10* | hpux11*)
4566 - hpux9*) archive_cmds='$rm $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' ;;
4567 - *) archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' ;;
4569 - hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
4570 - hardcode_libdir_separator=:
4571 - hardcode_direct=yes
4572 - hardcode_minus_L=yes # Not in the search PATH, but as the default
4573 - # location of the library.
4574 - export_dynamic_flag_spec='${wl}-E'
4577 - irix5* | irix6* | nonstopux*)
4578 - if test "$GCC" = yes; then
4579 - archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
4580 - hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
4582 - archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
4583 - hardcode_libdir_flag_spec='-rpath $libdir'
4585 - hardcode_libdir_separator=:
4586 - link_all_deplibs=yes
4590 - if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
4591 - archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
4593 - archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
4595 - hardcode_libdir_flag_spec='-R$libdir'
4596 - hardcode_direct=yes
4597 - hardcode_shlibpath_var=no
4601 - archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
4602 - hardcode_direct=yes
4603 - hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
4604 - hardcode_libdir_separator=:
4605 - hardcode_shlibpath_var=no
4609 - hardcode_direct=yes
4610 - hardcode_shlibpath_var=no
4611 - if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4612 - archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
4613 - hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
4614 - export_dynamic_flag_spec='${wl}-E'
4616 - case "$host_os" in
4617 - openbsd[[01]].* | openbsd2.[[0-7]] | openbsd2.[[0-7]].*)
4618 - archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
4619 - hardcode_libdir_flag_spec='-R$libdir'
4622 - archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
4623 - hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
4626 + if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
4627 + _LT_AC_TAGVAR(allow_undefined_flag, $1)='-flat_namespace -undefined suppress'
4629 + case ${MACOSX_DEPLOYMENT_TARGET} in
4631 + _LT_AC_TAGVAR(allow_undefined_flag, $1)='-flat_namespace -undefined suppress'
4634 + _LT_AC_TAGVAR(allow_undefined_flag, $1)='-undefined dynamic_lookup'
4640 + lt_int_apple_cc_single_mod=no
4641 + output_verbose_link_cmd='echo'
4642 + if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
4643 + lt_int_apple_cc_single_mod=yes
4648 - hardcode_libdir_flag_spec='-L$libdir'
4649 - hardcode_minus_L=yes
4650 - allow_undefined_flag=unsupported
4651 - archive_cmds='$echo "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$echo "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$echo DATA >> $output_objdir/$libname.def~$echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~$echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
4652 - old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
4656 - if test "$GCC" = yes; then
4657 - allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
4658 - archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
4659 + if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
4660 + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
4662 - allow_undefined_flag=' -expect_unresolved \*'
4663 - archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
4664 + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
4666 - hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
4667 - hardcode_libdir_separator=:
4669 + _LT_AC_TAGVAR(module_cmds, $1)='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
4671 - osf4* | osf5*) # as osf3* with the addition of -msym flag
4672 - if test "$GCC" = yes; then
4673 - allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
4674 - archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
4675 - hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
4676 + # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
4677 + if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
4678 + _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}'
4680 - allow_undefined_flag=' -expect_unresolved \*'
4681 - archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
4682 - archive_expsym_cmds='for i in `cat $export_symbols`; do printf "-exported_symbol " >> $lib.exp; echo "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
4683 - $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib~$rm $lib.exp'
4685 - #Both c and cxx compiler support -rpath directly
4686 - hardcode_libdir_flag_spec='-rpath $libdir'
4687 + _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
4689 - hardcode_libdir_separator=:
4693 - archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
4694 - hardcode_shlibpath_var=no
4695 - runpath_var=LD_RUN_PATH
4696 - hardcode_runpath_var=yes
4697 - export_dynamic_flag_spec='${wl}-Bexport'
4698 + _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}'
4699 + _LT_AC_TAGVAR(hardcode_direct, $1)=no
4700 + _LT_AC_TAGVAR(hardcode_automatic, $1)=yes
4701 + _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
4702 + _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='-all_load $convenience'
4703 + _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
4705 + _LT_AC_TAGVAR(ld_shlibs, $1)=no
4710 - # gcc --version < 3.0 without binutils cannot create self contained
4711 - # shared libraries reliably, requiring libgcc.a to resolve some of
4712 - # the object symbols generated in some cases. Libraries that use
4713 - # assert need libgcc.a to resolve __eprintf, for example. Linking
4714 - # a copy of libgcc.a into every shared library to guarantee resolving
4715 - # such symbols causes other problems: According to Tim Van Holder
4716 - # <tim.van.holder@pandora.be>, C++ libraries end up with a separate
4717 - # (to the application) exception stack for one thing.
4718 - no_undefined_flag=' -z defs'
4719 - if test "$GCC" = yes; then
4720 - case `$CC --version 2>/dev/null` in
4724 -*** Warning: Releases of GCC earlier than version 3.0 cannot reliably
4725 -*** create self contained shared libraries on Solaris systems, without
4726 -*** introducing a dependency on libgcc.a. Therefore, libtool is disabling
4727 -*** -no-undefined support, which will at least allow you to build shared
4728 -*** libraries. However, you may find that when you link such libraries
4729 -*** into an application without using GCC, you have to manually add
4730 -*** \`gcc --print-libgcc-file-name\` to the link command. We urge you to
4731 -*** upgrade to a newer version of GCC. Another option is to rebuild your
4732 -*** current GCC to use the GNU linker from GNU binutils 2.9.1 or newer.
4735 - no_undefined_flag=
4737 + case $cc_basename in
4739 + # FIXME: insert proper C++ library support
4740 + _LT_AC_TAGVAR(ld_shlibs, $1)=no
4743 + # Green Hills C++ Compiler
4744 + # FIXME: insert proper C++ library support
4745 + _LT_AC_TAGVAR(ld_shlibs, $1)=no
4748 + # FIXME: insert proper C++ library support
4749 + _LT_AC_TAGVAR(ld_shlibs, $1)=no
4753 - # $CC -shared without GNU ld will not create a library from C++
4754 - # object files and a static libstdc++, better avoid it by now
4755 - archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
4756 - archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
4757 - $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
4758 - hardcode_libdir_flag_spec='-R$libdir'
4759 - hardcode_shlibpath_var=no
4761 - solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
4762 - *) # Supported since Solaris 2.6 (maybe 2.5.1?)
4763 - whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
4765 - link_all_deplibs=yes
4769 - if test "x$host_vendor" = xsequent; then
4770 - # Use $CC to link under sequent, because it throws in some extra .o
4771 - # files that make .init and .fini sections work.
4772 - archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
4774 - archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
4776 - hardcode_libdir_flag_spec='-L$libdir'
4777 - hardcode_direct=yes
4778 - hardcode_minus_L=yes
4779 - hardcode_shlibpath_var=no
4781 + # C++ shared libraries reported to be fairly broken before switch to ELF
4782 + _LT_AC_TAGVAR(ld_shlibs, $1)=no
4785 + _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
4787 + freebsd* | kfreebsd*-gnu)
4788 + # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
4790 + _LT_AC_TAGVAR(ld_shlibs, $1)=yes
4795 + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
4796 + _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
4797 + _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
4798 + _LT_AC_TAGVAR(hardcode_direct, $1)=yes
4799 + _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH,
4800 + # but as the default
4801 + # location of the library.
4803 + case $cc_basename in
4805 + # FIXME: insert proper C++ library support
4806 + _LT_AC_TAGVAR(ld_shlibs, $1)=no
4809 + _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'
4810 + # Commands to make compiler produce verbose output that lists
4811 + # what "hidden" libraries, object files and flags are used when
4812 + # linking a shared library.
4814 + # There doesn't appear to be a way to prevent this compiler from
4815 + # explicitly linking system object files so we need to strip them
4816 + # from the output so that they don't get included in the library
4818 + 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'
4821 + if test "$GXX" = yes; then
4822 + _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'
4824 + # FIXME: insert proper C++ library support
4825 + _LT_AC_TAGVAR(ld_shlibs, $1)=no
4832 - case $host_vendor in
4834 - archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
4835 - hardcode_direct=yes # is this really true???
4837 + if test $with_gnu_ld = no; then
4838 + case "$host_cpu" in
4840 + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
4841 + _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='+b $libdir'
4842 + _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
4845 - ## LD is ld it makes a PLAMLIB
4846 - ## CC just makes a GrossModule.
4847 - archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
4848 - reload_cmds='$CC -r -o $output$reload_objs'
4849 - hardcode_direct=no
4851 + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
4854 - archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
4855 - hardcode_direct=no #Motorola manual says yes, but my tests say they lie
4857 + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
4858 + _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
4859 + _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
4863 + case "$host_cpu" in
4865 + _LT_AC_TAGVAR(hardcode_direct, $1)=no
4866 + _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
4869 + _LT_AC_TAGVAR(hardcode_direct, $1)=no
4870 + _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
4871 + _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH,
4872 + # but as the default
4873 + # location of the library.
4876 + _LT_AC_TAGVAR(hardcode_direct, $1)=yes
4877 + _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH,
4878 + # but as the default
4879 + # location of the library.
4882 - runpath_var='LD_RUN_PATH'
4883 - hardcode_shlibpath_var=no
4887 - archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
4888 - hardcode_shlibpath_var=no
4889 - export_dynamic_flag_spec='-Bexport'
4893 - no_undefined_flag=' -z text'
4894 - # $CC -shared without GNU ld will not create a library from C++
4895 - # object files and a static libstdc++, better avoid it by now
4896 - archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
4897 - archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
4898 - $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
4899 - hardcode_libdir_flag_spec=
4900 - hardcode_shlibpath_var=no
4901 - runpath_var='LD_RUN_PATH'
4905 - archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
4906 - hardcode_libdir_flag_spec='-L$libdir'
4907 - hardcode_shlibpath_var=no
4908 + case $cc_basename in
4910 + # FIXME: insert proper C++ library support
4911 + _LT_AC_TAGVAR(ld_shlibs, $1)=no
4914 + case "$host_cpu" in
4916 + _LT_AC_TAGVAR(archive_cmds, $1)='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
4919 + _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'
4922 + # Commands to make compiler produce verbose output that lists
4923 + # what "hidden" libraries, object files and flags are used when
4924 + # linking a shared library.
4926 + # There doesn't appear to be a way to prevent this compiler from
4927 + # explicitly linking system object files so we need to strip them
4928 + # from the output so that they don't get included in the library
4930 + 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'
4933 + if test "$GXX" = yes; then
4934 + if test $with_gnu_ld = no; then
4935 + case "$host_cpu" in
4937 + _LT_AC_TAGVAR(archive_cmds, $1)='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
4940 + _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'
4945 + # FIXME: insert proper C++ library support
4946 + _LT_AC_TAGVAR(ld_shlibs, $1)=no
4953 - archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
4954 - hardcode_libdir_flag_spec='-L$libdir'
4955 - hardcode_shlibpath_var=no
4957 + case $cc_basename in
4960 + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib'
4962 + # Archives containing C++ object files must be created using
4963 + # "CC -ar", where "CC" is the IRIX C++ compiler. This is
4964 + # necessary to make sure instantiated templates are included
4966 + _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -ar -WR,-u -o $oldlib $oldobjs'
4969 + if test "$GXX" = yes; then
4970 + if test "$with_gnu_ld" = no; then
4971 + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${objdir}/so_locations -o $lib'
4973 + _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'
4976 + _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
4979 + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
4980 + _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
4984 - if test -d /usr/nec; then
4985 - archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
4986 - hardcode_shlibpath_var=no
4987 - runpath_var=LD_RUN_PATH
4988 - hardcode_runpath_var=yes
4992 + case $cc_basename in
4994 + # Kuck and Associates, Inc. (KAI) C++ Compiler
4996 + # KCC will only create a shared library if the output file
4997 + # ends with ".so" (or ".sl" for HP-UX), so rename the library
4998 + # to its proper name (with version) after linking.
4999 + _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'
5000 + _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'
5001 + # Commands to make compiler produce verbose output that lists
5002 + # what "hidden" libraries, object files and flags are used when
5003 + # linking a shared library.
5005 + # There doesn't appear to be a way to prevent this compiler from
5006 + # explicitly linking system object files so we need to strip them
5007 + # from the output so that they don't get included in the library
5009 + 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'
5011 + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath,$libdir'
5012 + _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
5014 + # Archives containing C++ object files must be created using
5015 + # "CC -Bstatic", where "CC" is the KAI C++ compiler.
5016 + _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs'
5021 + _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
5022 + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
5023 + _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'
5024 + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
5025 + _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
5026 + _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
5030 + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
5031 + _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'
5033 + runpath_var=LD_RUN_PATH
5034 + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
5035 + _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
5037 + # Commands to make compiler produce verbose output that lists
5038 + # what "hidden" libraries, object files and flags are used when
5039 + # linking a shared library.
5041 + # There doesn't appear to be a way to prevent this compiler from
5042 + # explicitly linking system object files so we need to strip them
5043 + # from the output so that they don't get included in the library
5045 + 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'
5051 - archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
5052 - hardcode_direct=yes
5053 - hardcode_minus_L=no
5054 - hardcode_shlibpath_var=no
5055 - hardcode_runpath_var=yes
5056 - runpath_var=LD_RUN_PATH
5058 + # FIXME: insert proper C++ library support
5059 + _LT_AC_TAGVAR(ld_shlibs, $1)=no
5062 + # FIXME: insert proper C++ library support
5063 + _LT_AC_TAGVAR(ld_shlibs, $1)=no
5066 + case $cc_basename in
5068 + # FIXME: insert proper C++ library support
5069 + _LT_AC_TAGVAR(ld_shlibs, $1)=no
5072 + # FIXME: insert proper C++ library support
5073 + _LT_AC_TAGVAR(ld_shlibs, $1)=no
5078 - sysv5uw7* | unixware7*)
5079 - no_undefined_flag='${wl}-z ${wl}text'
5080 - if test "$GCC" = yes; then
5081 - archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
5083 - archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
5084 + netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
5085 + if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
5086 + _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
5088 + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
5089 + _LT_AC_TAGVAR(hardcode_direct, $1)=yes
5090 + _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
5092 - runpath_var='LD_RUN_PATH'
5093 - hardcode_shlibpath_var=no
5098 + # Workaround some broken pre-1.5 toolchains
5099 + output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
5103 -AC_MSG_RESULT([$ld_shlibs])
5104 -test "$ld_shlibs" = no && can_build_shared=no
5106 -# Check hardcoding attributes.
5107 -AC_MSG_CHECKING([how to hardcode library paths into programs])
5109 -if test -n "$hardcode_libdir_flag_spec" || \
5110 - test -n "$runpath_var"; then
5112 - # We can hardcode non-existant directories.
5113 - if test "$hardcode_direct" != no &&
5114 - # If the only mechanism to avoid hardcoding is shlibpath_var, we
5115 - # have to relink, otherwise we might link with an installed library
5116 - # when we should be linking with a yet-to-be-installed one
5117 - ## test "$hardcode_shlibpath_var" != no &&
5118 - test "$hardcode_minus_L" != no; then
5119 - # Linking always hardcodes the temporary library directory.
5120 - hardcode_action=relink
5122 - # We can link without hardcoding, and we can hardcode nonexisting dirs.
5123 - hardcode_action=immediate
5126 - # We cannot hardcode anything, or else we can only hardcode existing
5128 - hardcode_action=unsupported
5130 -AC_MSG_RESULT([$hardcode_action])
5134 -AC_MSG_CHECKING([whether stripping libraries is possible])
5135 -if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
5136 - test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
5137 - test -z "$striplib" && striplib="$STRIP --strip-unneeded"
5138 - AC_MSG_RESULT([yes])
5140 - AC_MSG_RESULT([no])
5143 -reload_cmds='$LD$reload_flag -o $output$reload_objs'
5144 -test -z "$deplibs_check_method" && deplibs_check_method=unknown
5146 -# PORTME Fill in your ld.so characteristics
5147 -AC_MSG_CHECKING([dynamic linker characteristics])
5148 -library_names_spec=
5149 -libname_spec='lib$name'
5152 -postuninstall_cmds=
5156 -shlibpath_overrides_runpath=unknown
5158 -dynamic_linker="$host_os ld.so"
5159 -sys_lib_dlsearch_path_spec="/lib /usr/lib"
5160 -sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
5164 - version_type=linux
5165 - library_names_spec='${libname}${release}.so$versuffix $libname.a'
5166 - shlibpath_var=LIBPATH
5168 + case $cc_basename in
5170 + # Kuck and Associates, Inc. (KAI) C++ Compiler
5172 + # KCC will only create a shared library if the output file
5173 + # ends with ".so" (or ".sl" for HP-UX), so rename the library
5174 + # to its proper name (with version) after linking.
5175 + _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'
5177 + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
5178 + _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
5180 + # Archives containing C++ object files must be created using
5181 + # "CC -Bstatic", where "CC" is the KAI C++ compiler.
5182 + _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs'
5184 - # AIX has no versioning support, so we append a major version to the name.
5185 - soname_spec='${libname}${release}.so$major'
5189 + # Rational C++ 2.4.1
5190 + # FIXME: insert proper C++ library support
5191 + _LT_AC_TAGVAR(ld_shlibs, $1)=no
5194 + _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
5195 + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && echo ${wl}-set_version $verstring` -update_registry ${objdir}/so_locations -o $lib'
5197 + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
5198 + _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
5200 + # Commands to make compiler produce verbose output that lists
5201 + # what "hidden" libraries, object files and flags are used when
5202 + # linking a shared library.
5204 + # There doesn't appear to be a way to prevent this compiler from
5205 + # explicitly linking system object files so we need to strip them
5206 + # from the output so that they don't get included in the library
5208 + output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
5211 + if test "$GXX" = yes && test "$with_gnu_ld" = no; then
5212 + _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
5213 + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${objdir}/so_locations -o $lib'
5215 + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
5216 + _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
5218 + # Commands to make compiler produce verbose output that lists
5219 + # what "hidden" libraries, object files and flags are used when
5220 + # linking a shared library.
5221 + output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
5224 - version_type=linux
5225 - need_lib_prefix=no
5227 - hardcode_into_libs=yes
5228 - if test "$host_cpu" = ia64; then
5229 - # AIX 5 supports IA64
5230 - library_names_spec='${libname}${release}.so$major ${libname}${release}.so$versuffix $libname.so'
5231 - shlibpath_var=LD_LIBRARY_PATH
5233 - # With GCC up to 2.95.x, collect2 would create an import file
5234 - # for dependence libraries. The import file would start with
5235 - # the line `#! .'. This would cause the generated library to
5236 - # depend on `.', always an invalid library. This was fixed in
5237 - # development snapshots of GCC prior to 3.0.
5239 - aix4 | aix4.[[01]] | aix4.[[01]].*)
5240 - if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
5242 - echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
5245 - can_build_shared=no
5246 + # FIXME: insert proper C++ library support
5247 + _LT_AC_TAGVAR(ld_shlibs, $1)=no
5251 - # AIX (on Power*) has no versioning support, so currently we can
5252 - # not hardcode correct soname into executable. Probably we can
5253 - # add versioning support to collect2, so additional links can
5254 - # be useful in future.
5255 - if test "$aix_use_runtimelinking" = yes; then
5256 - # If using run time linking (on AIX 4.2 or later) use lib<name>.so
5257 - # instead of lib<name>.a to let people know that these are not
5258 - # typical AIX shared libraries.
5259 - library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
5261 - # We preserve .a as extension for shared libraries through AIX4.2
5262 - # and later when we are not doing run time linking.
5263 - library_names_spec='${libname}${release}.a $libname.a'
5264 - soname_spec='${libname}${release}.so$major'
5266 - shlibpath_var=LIBPATH
5268 - hardcode_into_libs=yes
5272 - library_names_spec='$libname.ixlibrary $libname.a'
5273 - # Create ${libname}_ixlibrary.a entries in /sys/libs.
5274 - 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'
5278 - library_names_spec='${libname}.so'
5279 - dynamic_linker="$host_os ld.so"
5280 - shlibpath_var=LIBRARY_PATH
5284 - version_type=linux
5286 - library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
5287 - soname_spec='${libname}${release}.so$major'
5288 - finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
5289 - shlibpath_var=LD_LIBRARY_PATH
5290 - sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
5291 - sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
5292 - export_dynamic_flag_spec=-rdynamic
5293 - # the default ld.so.conf also contains /usr/contrib/lib and
5294 - # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
5295 - # libtool to hard-code these into programs
5298 -cygwin* | mingw* | pw32*)
5299 - version_type=windows
5301 - need_lib_prefix=no
5302 - case $GCC,$host_os in
5304 - library_names_spec='$libname.dll.a'
5305 - soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | sed -e 's/[[.]]/-/g'`${versuffix}.dll'
5306 - postinstall_cmds='dlpath=`bash 2>&1 -c '\''. $dir/${file}i;echo \$dlname'\''`~
5307 - dldir=$destdir/`dirname \$dlpath`~
5308 - test -d \$dldir || mkdir -p \$dldir~
5309 - $install_prog .libs/$dlname \$dldir/$dlname'
5310 - postuninstall_cmds='dldll=`bash 2>&1 -c '\''. $file; echo \$dlname'\''`~
5311 - dlpath=$dir/\$dldll~
5315 - library_names_spec='${libname}`echo ${release} | sed -e 's/[[.]]/-/g'`${versuffix}.dll'
5316 - sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | sed -e "s/^libraries://" -e "s/;/ /g" -e "s,=/,/,g"`
5319 - library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll'
5322 - library_names_spec='${libname}`echo ${release} | sed -e 's/[[.]]/-/g'`${versuffix}.dll $libname.lib'
5325 - dynamic_linker='Win32 ld.exe'
5326 - # FIXME: first we should search . and the directory the executable is in
5327 - shlibpath_var=PATH
5330 -darwin* | rhapsody*)
5331 - dynamic_linker="$host_os dyld"
5332 - version_type=darwin
5333 - need_lib_prefix=no
5335 - # FIXME: Relying on posixy $() will cause problems for
5336 - # cross-compilation, but unfortunately the echo tests do not
5337 - # yet detect zsh echo's removal of \ escapes.
5338 - library_names_spec='${libname}${release}${versuffix}.$(test .$module = .yes && echo so || echo dylib) ${libname}${release}${major}.$(test .$module = .yes && echo so || echo dylib) ${libname}.$(test .$module = .yes && echo so || echo dylib)'
5339 - soname_spec='${libname}${release}${major}.$(test .$module = .yes && echo so || echo dylib)'
5340 - shlibpath_overrides_runpath=yes
5341 - shlibpath_var=DYLD_LIBRARY_PATH
5349 - version_type=linux
5350 - need_lib_prefix=no
5352 - library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
5353 - soname_spec='${libname}${release}.so$major'
5354 - shlibpath_var=LD_LIBRARY_PATH
5355 - shlibpath_overrides_runpath=no
5356 - hardcode_into_libs=yes
5357 - dynamic_linker='GNU/FreeBSD ld.so'
5360 + case $cc_basename in
5362 + # Kuck and Associates, Inc. (KAI) C++ Compiler
5364 + # KCC will only create a shared library if the output file
5365 + # ends with ".so" (or ".sl" for HP-UX), so rename the library
5366 + # to its proper name (with version) after linking.
5367 + _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'
5369 + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
5370 + _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
5372 + # Archives containing C++ object files must be created using
5373 + # the KAI C++ compiler.
5374 + _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -o $oldlib $oldobjs'
5377 + # Rational C++ 2.4.1
5378 + # FIXME: insert proper C++ library support
5379 + _LT_AC_TAGVAR(ld_shlibs, $1)=no
5382 + _LT_AC_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
5383 + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib'
5384 + _LT_AC_TAGVAR(archive_expsym_cmds, $1)='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
5385 + echo "-hidden">> $lib.exp~
5386 + $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname -Wl,-input -Wl,$lib.exp `test -n "$verstring" && echo -set_version $verstring` -update_registry $objdir/so_locations -o $lib~
5389 + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
5390 + _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
5392 + # Commands to make compiler produce verbose output that lists
5393 + # what "hidden" libraries, object files and flags are used when
5394 + # linking a shared library.
5396 + # There doesn't appear to be a way to prevent this compiler from
5397 + # explicitly linking system object files so we need to strip them
5398 + # from the output so that they don't get included in the library
5400 + output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
5403 + if test "$GXX" = yes && test "$with_gnu_ld" = no; then
5404 + _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
5405 + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${objdir}/so_locations -o $lib'
5407 + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
5408 + _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
5410 + # Commands to make compiler produce verbose output that lists
5411 + # what "hidden" libraries, object files and flags are used when
5412 + # linking a shared library.
5413 + output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
5416 - objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
5417 - version_type=freebsd-$objformat
5418 - case $version_type in
5420 - library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so $libname.so'
5422 - need_lib_prefix=no
5425 - library_names_spec='${libname}${release}.so$versuffix $libname.so$versuffix'
5429 - shlibpath_var=LD_LIBRARY_PATH
5432 - shlibpath_overrides_runpath=yes
5434 + # FIXME: insert proper C++ library support
5435 + _LT_AC_TAGVAR(ld_shlibs, $1)=no
5441 - shlibpath_overrides_runpath=no
5442 - hardcode_into_libs=yes
5444 + # FIXME: insert proper C++ library support
5445 + _LT_AC_TAGVAR(ld_shlibs, $1)=no
5448 + _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
5449 + case $cc_basename in
5451 + # FIXME: insert proper C++ library support
5452 + _LT_AC_TAGVAR(ld_shlibs, $1)=no
5455 + # FIXME: insert proper C++ library support
5456 + _LT_AC_TAGVAR(ld_shlibs, $1)=no
5463 + case $cc_basename in
5466 + # FIXME: insert proper C++ library support
5467 + _LT_AC_TAGVAR(ld_shlibs, $1)=no
5471 + # FIXME: insert proper C++ library support
5472 + _LT_AC_TAGVAR(ld_shlibs, $1)=no
5475 + # FIXME: insert proper C++ library support
5476 + _LT_AC_TAGVAR(ld_shlibs, $1)=no
5481 + case $cc_basename in
5483 + # Sun C++ 4.2, 5.x and Centerline C++
5484 + _LT_AC_TAGVAR(no_undefined_flag, $1)=' -zdefs'
5485 + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -nolib -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
5486 + _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
5487 + $CC -G${allow_undefined_flag} -nolib ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
5489 + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
5490 + _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
5492 + solaris2.[0-5] | solaris2.[0-5].*) ;;
5494 + # The C++ compiler is used as linker so we must use $wl
5495 + # flag to pass the commands to the underlying system
5497 + # Supported since Solaris 2.6 (maybe 2.5.1?)
5498 + _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
5501 + _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
5504 - version_type=linux
5505 - need_lib_prefix=no
5507 - library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so${major} ${libname}.so'
5508 - soname_spec='${libname}${release}.so$major'
5509 - shlibpath_var=LD_LIBRARY_PATH
5510 - hardcode_into_libs=yes
5512 + # Commands to make compiler produce verbose output that lists
5513 + # what "hidden" libraries, object files and flags are used when
5514 + # linking a shared library.
5516 + # There doesn't appear to be a way to prevent this compiler from
5517 + # explicitly linking system object files so we need to strip them
5518 + # from the output so that they don't get included in the library
5520 + output_verbose_link_cmd='templist=`$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep "\-[[LR]]"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
5522 + # Archives containing C++ object files must be created using
5523 + # "CC -xar", where "CC" is the Sun C++ compiler. This is
5524 + # necessary to make sure instantiated templates are included
5526 + _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs'
5529 + # Green Hills C++ Compiler
5530 + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
5532 -hpux9* | hpux10* | hpux11*)
5533 - # Give a soname corresponding to the major version so that dld.sl refuses to
5534 - # link against other versions.
5535 - dynamic_linker="$host_os dld.sl"
5536 - version_type=sunos
5537 - need_lib_prefix=no
5539 - shlibpath_var=SHLIB_PATH
5540 - shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
5541 - library_names_spec='${libname}${release}.sl$versuffix ${libname}${release}.sl$major $libname.sl'
5542 - soname_spec='${libname}${release}.sl$major'
5543 - # HP-UX runs *really* slowly unless shared libraries are mode 555.
5544 - postinstall_cmds='chmod 555 $lib'
5546 + # The C++ compiler must be used to create the archive.
5547 + _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
5550 + # GNU C++ compiler with Solaris linker
5551 + if test "$GXX" = yes && test "$with_gnu_ld" = no; then
5552 + _LT_AC_TAGVAR(no_undefined_flag, $1)=' ${wl}-z ${wl}defs'
5553 + if $CC --version | grep -v '^2\.7' > /dev/null; then
5554 + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
5555 + _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
5556 + $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
5558 + # Commands to make compiler produce verbose output that lists
5559 + # what "hidden" libraries, object files and flags are used when
5560 + # linking a shared library.
5561 + output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
5563 + # g++ 2.7 appears to require `-G' NOT `-shared' on this
5565 + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
5566 + _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
5567 + $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
5569 + # Commands to make compiler produce verbose output that lists
5570 + # what "hidden" libraries, object files and flags are used when
5571 + # linking a shared library.
5572 + output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
5575 -irix5* | irix6* | nonstopux*)
5577 - nonstopux*) version_type=nonstopux ;;
5578 - *) version_type=irix ;;
5580 - need_lib_prefix=no
5582 - soname_spec='${libname}${release}.so$major'
5583 - library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so $libname.so'
5585 - irix5* | nonstopux*)
5586 - libsuff= shlibsuff=
5587 + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $wl$libdir'
5593 - case $LD in # libtool.m4 will add one of these switches to LD
5594 - *-32|*"-32 ") libsuff= shlibsuff= libmagic=32-bit;;
5595 - *-n32|*"-n32 ") libsuff=32 shlibsuff=N32 libmagic=N32;;
5596 - *-64|*"-64 ") libsuff=64 shlibsuff=64 libmagic=64-bit;;
5597 - *) libsuff= shlibsuff= libmagic=never-match;;
5598 + sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[[78]]* | unixware7*)
5599 + _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
5602 + case $cc_basename in
5604 + # NonStop-UX NCC 3.20
5605 + # FIXME: insert proper C++ library support
5606 + _LT_AC_TAGVAR(ld_shlibs, $1)=no
5609 + # FIXME: insert proper C++ library support
5610 + _LT_AC_TAGVAR(ld_shlibs, $1)=no
5615 - shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
5616 - shlibpath_overrides_runpath=no
5617 - sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
5618 - sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
5621 -# No shared lib support for Linux oldld, aout, or coff.
5622 -linux-gnuoldld* | linux-gnuaout* | linux-gnucoff*)
5626 + # FIXME: insert proper C++ library support
5627 + _LT_AC_TAGVAR(ld_shlibs, $1)=no
5630 + # FIXME: insert proper C++ library support
5631 + _LT_AC_TAGVAR(ld_shlibs, $1)=no
5634 +AC_MSG_RESULT([$_LT_AC_TAGVAR(ld_shlibs, $1)])
5635 +test "$_LT_AC_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no
5637 -# This must be Linux ELF.
5639 - version_type=linux
5640 - need_lib_prefix=no
5642 - library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
5643 - soname_spec='${libname}${release}.so$major'
5644 - finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
5645 - shlibpath_var=LD_LIBRARY_PATH
5646 - shlibpath_overrides_runpath=no
5647 - # This implies no fast_install, which is unacceptable.
5648 - # Some rework will be needed to allow for fast_install
5649 - # before this can be enabled.
5650 - hardcode_into_libs=yes
5651 +_LT_AC_TAGVAR(GCC, $1)="$GXX"
5652 +_LT_AC_TAGVAR(LD, $1)="$LD"
5654 - # We used to test for /lib/ld.so.1 and disable shared libraries on
5655 - # powerpc, because MkLinux only supported shared libraries with the
5656 - # GNU dynamic linker. Since this was broken with cross compilers,
5657 - # most powerpc-linux boxes support dynamic linking these days and
5658 - # people can always --disable-shared, the test was removed, and we
5659 - # assume the GNU/Linux dynamic linker is in use.
5660 - dynamic_linker='GNU/Linux ld.so'
5662 +AC_LIBTOOL_POSTDEP_PREDEP($1)
5663 +AC_LIBTOOL_PROG_COMPILER_PIC($1)
5664 +AC_LIBTOOL_PROG_CC_C_O($1)
5665 +AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1)
5666 +AC_LIBTOOL_PROG_LD_SHLIBS($1)
5667 +AC_LIBTOOL_SYS_DYNAMIC_LINKER($1)
5668 +AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1)
5669 +AC_LIBTOOL_SYS_LIB_STRIP
5670 +AC_LIBTOOL_DLOPEN_SELF($1)
5672 +AC_LIBTOOL_CONFIG($1)
5679 +with_gnu_ldcxx=$with_gnu_ld
5680 +with_gnu_ld=$lt_save_with_gnu_ld
5681 +lt_cv_path_LDCXX=$lt_cv_path_LD
5682 +lt_cv_path_LD=$lt_save_path_LD
5683 +lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
5684 +lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
5685 +])# AC_LIBTOOL_LANG_CXX_CONFIG
5688 - version_type=sunos
5689 - need_lib_prefix=no
5691 - if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
5692 - library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
5693 - finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
5694 - dynamic_linker='NetBSD (a.out) ld.so'
5696 - library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so ${libname}.so'
5697 - soname_spec='${libname}${release}.so$major'
5698 - dynamic_linker='NetBSD ld.elf_so'
5700 - shlibpath_var=LD_LIBRARY_PATH
5701 - shlibpath_overrides_runpath=yes
5702 - hardcode_into_libs=yes
5704 +# AC_LIBTOOL_POSTDEP_PREDEP([TAGNAME])
5705 +# ------------------------
5706 +# Figure out "hidden" library dependencies from verbose
5707 +# compiler output when linking a shared library.
5708 +# Parse the compiler output and extract the necessary
5709 +# objects, libraries and library flags.
5710 +AC_DEFUN([AC_LIBTOOL_POSTDEP_PREDEP],[
5711 +dnl we can't use the lt_simple_compile_test_code here,
5712 +dnl because it contains code intended for an executable,
5713 +dnl not a library. It's possible we should let each
5714 +dnl tag define a new lt_????_link_test_code variable,
5715 +dnl but it's only used here...
5716 +ifelse([$1],[],[cat > conftest.$ac_ext <<EOF
5718 +void foo (void) { a = 0; }
5720 +],[$1],[CXX],[cat > conftest.$ac_ext <<EOF
5724 + Foo (void) { a = 0; }
5729 +],[$1],[F77],[cat > conftest.$ac_ext <<EOF
5737 +],[$1],[GCJ],[cat > conftest.$ac_ext <<EOF
5740 + public void bar (void) {
5746 +dnl Parse the compiler output and extract the necessary
5747 +dnl objects, libraries and library flags.
5748 +if AC_TRY_EVAL(ac_compile); then
5749 + # Parse the compiler output and extract the necessary
5750 + # objects, libraries and library flags.
5752 + # Sentinel used to keep track of whether or not we are before
5753 + # the conftest object file.
5754 + pre_test_object_deps_done=no
5756 + # The `*' in the case matches for architectures that use `case' in
5757 + # $output_verbose_cmd can trigger glob expansion during the loop
5758 + # eval without this substitution.
5759 + output_verbose_link_cmd="`$echo \"X$output_verbose_link_cmd\" | $Xsed -e \"$no_glob_subst\"`"
5761 + for p in `eval $output_verbose_link_cmd`; do
5765 + # Some compilers place space between "-{L,R}" and the path.
5766 + # Remove the space.
5767 + if test $p = "-L" \
5768 + || test $p = "-R"; then
5775 + if test "$pre_test_object_deps_done" = no; then
5778 + # Internal compiler library paths should come after those
5779 + # provided the user. The postdeps already come after the
5780 + # user supplied libs so there is no need to process them.
5781 + if test -z "$_LT_AC_TAGVAR(compiler_lib_search_path, $1)"; then
5782 + _LT_AC_TAGVAR(compiler_lib_search_path, $1)="${prev}${p}"
5784 + _LT_AC_TAGVAR(compiler_lib_search_path, $1)="${_LT_AC_TAGVAR(compiler_lib_search_path, $1)} ${prev}${p}"
5787 + # The "-l" case would never come before the object being
5788 + # linked, so don't bother handling this case.
5791 + if test -z "$_LT_AC_TAGVAR(postdeps, $1)"; then
5792 + _LT_AC_TAGVAR(postdeps, $1)="${prev}${p}"
5794 + _LT_AC_TAGVAR(postdeps, $1)="${_LT_AC_TAGVAR(postdeps, $1)} ${prev}${p}"
5800 + # This assumes that the test object file only shows up
5801 + # once in the compiler output.
5802 + if test "$p" = "conftest.$objext"; then
5803 + pre_test_object_deps_done=yes
5807 + if test "$pre_test_object_deps_done" = no; then
5808 + if test -z "$_LT_AC_TAGVAR(predep_objects, $1)"; then
5809 + _LT_AC_TAGVAR(predep_objects, $1)="$p"
5811 + _LT_AC_TAGVAR(predep_objects, $1)="$_LT_AC_TAGVAR(predep_objects, $1) $p"
5814 + if test -z "$_LT_AC_TAGVAR(postdep_objects, $1)"; then
5815 + _LT_AC_TAGVAR(postdep_objects, $1)="$p"
5817 + _LT_AC_TAGVAR(postdep_objects, $1)="$_LT_AC_TAGVAR(postdep_objects, $1) $p"
5823 - version_type=linux
5824 - library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
5825 - shlibpath_var=LD_LIBRARY_PATH
5826 - shlibpath_overrides_runpath=yes
5828 + *) ;; # Ignore the rest.
5831 - version_type=sunos
5832 - need_lib_prefix=no
5834 - if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5835 - case "$host_os" in
5836 - openbsd2.[[89]] | openbsd2.[[89]].*)
5837 - shlibpath_overrides_runpath=no
5840 - shlibpath_overrides_runpath=yes
5844 - shlibpath_overrides_runpath=yes
5846 - library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
5847 - finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
5848 - shlibpath_var=LD_LIBRARY_PATH
5852 - libname_spec='$name'
5853 - need_lib_prefix=no
5854 - library_names_spec='$libname.dll $libname.a'
5855 - dynamic_linker='OS/2 ld.exe'
5856 - shlibpath_var=LIBPATH
5859 -osf3* | osf4* | osf5*)
5862 - need_lib_prefix=no
5863 - soname_spec='${libname}${release}.so$major'
5864 - library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
5865 - shlibpath_var=LD_LIBRARY_PATH
5866 - sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
5867 - sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
5868 - hardcode_into_libs=yes
5874 - soname_spec='${libname}${release}.so$major'
5875 - library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
5876 - shlibpath_var=LD_LIBRARY_PATH
5881 + echo "libtool.m4: error: problem compiling $1 test program"
5885 - version_type=linux
5886 - need_lib_prefix=no
5888 - library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
5889 - soname_spec='${libname}${release}.so$major'
5890 - shlibpath_var=LD_LIBRARY_PATH
5891 - shlibpath_overrides_runpath=yes
5892 - hardcode_into_libs=yes
5893 - # ldd complains unless libraries are executable
5894 - postinstall_cmds='chmod +x $lib'
5896 +$rm -f confest.$objext
5899 - version_type=sunos
5900 - library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
5901 - finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
5902 - shlibpath_var=LD_LIBRARY_PATH
5903 - shlibpath_overrides_runpath=yes
5904 - if test "$with_gnu_ld" = yes; then
5905 - need_lib_prefix=no
5909 +case " $_LT_AC_TAGVAR(postdeps, $1) " in
5910 +*" -lc "*) _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no ;;
5912 +])# AC_LIBTOOL_POSTDEP_PREDEP
5914 -sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
5915 - version_type=linux
5916 - library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
5917 - soname_spec='${libname}${release}.so$major'
5918 - shlibpath_var=LD_LIBRARY_PATH
5919 - case $host_vendor in
5921 - shlibpath_overrides_runpath=no
5922 - need_lib_prefix=no
5923 - export_dynamic_flag_spec='${wl}-Blargedynsym'
5924 - runpath_var=LD_RUN_PATH
5927 - need_lib_prefix=no
5930 - need_lib_prefix=no
5932 - shlibpath_overrides_runpath=no
5933 - sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
5937 +# AC_LIBTOOL_LANG_F77_CONFIG
5938 +# ------------------------
5939 +# Ensure that the configuration vars for the C compiler are
5940 +# suitably defined. Those variables are subsequently used by
5941 +# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
5942 +AC_DEFUN([AC_LIBTOOL_LANG_F77_CONFIG], [_LT_AC_LANG_F77_CONFIG(F77)])
5943 +AC_DEFUN([_LT_AC_LANG_F77_CONFIG],
5944 +[AC_REQUIRE([AC_PROG_F77])
5945 +AC_LANG_PUSH(Fortran 77)
5947 +_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
5948 +_LT_AC_TAGVAR(allow_undefined_flag, $1)=
5949 +_LT_AC_TAGVAR(always_export_symbols, $1)=no
5950 +_LT_AC_TAGVAR(archive_expsym_cmds, $1)=
5951 +_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)=
5952 +_LT_AC_TAGVAR(hardcode_direct, $1)=no
5953 +_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=
5954 +_LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
5955 +_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
5956 +_LT_AC_TAGVAR(hardcode_minus_L, $1)=no
5957 +_LT_AC_TAGVAR(hardcode_automatic, $1)=no
5958 +_LT_AC_TAGVAR(module_cmds, $1)=
5959 +_LT_AC_TAGVAR(module_expsym_cmds, $1)=
5960 +_LT_AC_TAGVAR(link_all_deplibs, $1)=unknown
5961 +_LT_AC_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
5962 +_LT_AC_TAGVAR(no_undefined_flag, $1)=
5963 +_LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
5964 +_LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=no
5966 +# Source file extension for f77 test sources.
5969 +# Object file extension for compiled f77 test sources.
5971 +_LT_AC_TAGVAR(objext, $1)=$objext
5974 - version_type=linux
5975 - library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
5976 - soname_spec='${libname}${release}.so$major'
5977 - shlibpath_var=LD_LIBRARY_PATH
5979 +# Code to be used in simple compile tests
5980 +lt_simple_compile_test_code=" subroutine t\n return\n end\n"
5983 - version_type=linux
5984 - need_lib_prefix=no
5986 - library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
5987 - soname_spec='${libname}${release}.so$major'
5988 - shlibpath_var=LD_LIBRARY_PATH
5990 +# Code to be used in simple link tests
5991 +lt_simple_link_test_code=" program t\n end\n"
5994 - if test -d /usr/nec ;then
5995 - version_type=linux
5996 - library_names_spec='$libname.so.$versuffix $libname.so.$major $libname.so'
5997 - soname_spec='$libname.so.$major'
5998 - shlibpath_var=LD_LIBRARY_PATH
6001 +# ltmain only uses $CC for tagged configurations so make sure $CC is set.
6002 +_LT_AC_SYS_COMPILER
6008 -AC_MSG_RESULT([$dynamic_linker])
6009 -test "$dynamic_linker" = no && can_build_shared=no
6010 +# Allow CC to be a program name with arguments.
6014 +_LT_AC_TAGVAR(compiler, $1)=$CC
6015 +cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
6017 -# Report the final consequences.
6018 AC_MSG_CHECKING([if libtool supports shared libraries])
6019 AC_MSG_RESULT([$can_build_shared])
6021 @@ -2481,125 +4662,206 @@
6022 postinstall_cmds='$RANLIB $lib'
6026 + test "$enable_shared" = yes && enable_static=no
6029 +AC_MSG_RESULT([$enable_shared])
6031 +AC_MSG_CHECKING([whether to build static libraries])
6032 +# Make sure either enable_shared or enable_static is yes.
6033 +test "$enable_shared" = yes || enable_static=yes
6034 +AC_MSG_RESULT([$enable_static])
6036 +test "$_LT_AC_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no
6038 +_LT_AC_TAGVAR(GCC, $1)="$G77"
6039 +_LT_AC_TAGVAR(LD, $1)="$LD"
6041 +AC_LIBTOOL_PROG_COMPILER_PIC($1)
6042 +AC_LIBTOOL_PROG_CC_C_O($1)
6043 +AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1)
6044 +AC_LIBTOOL_PROG_LD_SHLIBS($1)
6045 +AC_LIBTOOL_SYS_DYNAMIC_LINKER($1)
6046 +AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1)
6047 +AC_LIBTOOL_SYS_LIB_STRIP
6050 +AC_LIBTOOL_CONFIG($1)
6054 +])# AC_LIBTOOL_LANG_F77_CONFIG
6057 +# AC_LIBTOOL_LANG_GCJ_CONFIG
6058 +# --------------------------
6059 +# Ensure that the configuration vars for the C compiler are
6060 +# suitably defined. Those variables are subsequently used by
6061 +# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
6062 +AC_DEFUN([AC_LIBTOOL_LANG_GCJ_CONFIG], [_LT_AC_LANG_GCJ_CONFIG(GCJ)])
6063 +AC_DEFUN([_LT_AC_LANG_GCJ_CONFIG],
6066 +# Source file extension for Java test sources.
6069 +# Object file extension for compiled Java test sources.
6071 +_LT_AC_TAGVAR(objext, $1)=$objext
6073 +# Code to be used in simple compile tests
6074 +lt_simple_compile_test_code="class foo {}\n"
6076 +# Code to be used in simple link tests
6077 +lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
6079 +# ltmain only uses $CC for tagged configurations so make sure $CC is set.
6080 +_LT_AC_SYS_COMPILER
6082 +# Allow CC to be a program name with arguments.
6086 +_LT_AC_TAGVAR(compiler, $1)=$CC
6088 +# GCJ did not exist at the time GCC didn't implicitly link libc in.
6089 +_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
6091 +AC_LIBTOOL_PROG_COMPILER_NO_RTTI($1)
6092 +AC_LIBTOOL_PROG_COMPILER_PIC($1)
6093 +AC_LIBTOOL_PROG_CC_C_O($1)
6094 +AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1)
6095 +AC_LIBTOOL_PROG_LD_SHLIBS($1)
6096 +AC_LIBTOOL_SYS_DYNAMIC_LINKER($1)
6097 +AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1)
6098 +AC_LIBTOOL_SYS_LIB_STRIP
6099 +AC_LIBTOOL_DLOPEN_SELF($1)
6101 +AC_LIBTOOL_CONFIG($1)
6105 +])# AC_LIBTOOL_LANG_GCJ_CONFIG
6108 +# AC_LIBTOOL_LANG_RC_CONFIG
6109 +# --------------------------
6110 +# Ensure that the configuration vars for the Windows resource compiler are
6111 +# suitably defined. Those variables are subsequently used by
6112 +# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
6113 +AC_DEFUN([AC_LIBTOOL_LANG_RC_CONFIG], [_LT_AC_LANG_RC_CONFIG(RC)])
6114 +AC_DEFUN([_LT_AC_LANG_RC_CONFIG],
6117 +# Source file extension for RC test sources.
6120 +# Object file extension for compiled RC test sources.
6122 +_LT_AC_TAGVAR(objext, $1)=$objext
6125 - if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
6126 - test "$enable_shared" = yes && enable_static=no
6130 -AC_MSG_RESULT([$enable_shared])
6131 +# Code to be used in simple compile tests
6132 +lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
6134 -AC_MSG_CHECKING([whether to build static libraries])
6135 -# Make sure either enable_shared or enable_static is yes.
6136 -test "$enable_shared" = yes || enable_static=yes
6137 -AC_MSG_RESULT([$enable_static])
6138 +# Code to be used in simple link tests
6139 +lt_simple_link_test_code="$lt_simple_compile_test_code"
6141 -if test "$hardcode_action" = relink; then
6142 - # Fast installation is not supported
6143 - enable_fast_install=no
6144 -elif test "$shlibpath_overrides_runpath" = yes ||
6145 - test "$enable_shared" = no; then
6146 - # Fast installation is not necessary
6147 - enable_fast_install=needless
6149 +# ltmain only uses $CC for tagged configurations so make sure $CC is set.
6150 +_LT_AC_SYS_COMPILER
6152 -variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
6153 -if test "$GCC" = yes; then
6154 - variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
6156 +# Allow CC to be a program name with arguments.
6160 +_LT_AC_TAGVAR(compiler, $1)=$CC
6161 +_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes
6163 -AC_LIBTOOL_DLOPEN_SELF
6164 +AC_LIBTOOL_CONFIG($1)
6168 +])# AC_LIBTOOL_LANG_RC_CONFIG
6170 -if test "$enable_shared" = yes && test "$GCC" = yes; then
6171 - case $archive_cmds in
6173 - # FIXME: we may have to deal with multi-command sequences.
6176 - # Test whether the compiler implicitly links with -lc since on some
6177 - # systems, -lgcc has to come before -lc. If gcc already passes -lc
6178 - # to ld, don't add -lc before -lgcc.
6179 - AC_MSG_CHECKING([whether -lc should be explicitly linked in])
6180 - AC_CACHE_VAL([lt_cv_archive_cmds_need_lc],
6182 - echo 'static int dummy;' > conftest.$ac_ext
6184 - if AC_TRY_EVAL(ac_compile); then
6187 - libobjs=conftest.$ac_objext
6189 - wl=$lt_cv_prog_cc_wl
6195 - save_allow_undefined_flag=$allow_undefined_flag
6196 - allow_undefined_flag=
6197 - if AC_TRY_EVAL(archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1)
6199 - lt_cv_archive_cmds_need_lc=no
6201 - lt_cv_archive_cmds_need_lc=yes
6203 - allow_undefined_flag=$save_allow_undefined_flag
6205 - cat conftest.err 1>&5
6207 - AC_MSG_RESULT([$lt_cv_archive_cmds_need_lc])
6211 -need_lc=${lt_cv_archive_cmds_need_lc-yes}
6213 -# The second clause should only fire when bootstrapping the
6214 +# AC_LIBTOOL_CONFIG([TAGNAME])
6215 +# ----------------------------
6216 +# If TAGNAME is not passed, then create an initial libtool script
6217 +# with a default configuration from the untagged config vars. Otherwise
6218 +# add code to config.status for appending the configuration named by
6219 +# TAGNAME from the matching tagged config vars.
6220 +AC_DEFUN([AC_LIBTOOL_CONFIG],
6221 +[# The else clause should only fire when bootstrapping the
6222 # libtool distribution, otherwise you forgot to ship ltmain.sh
6223 # with your package, and you will get complaints that there are
6224 # no rules to generate ltmain.sh.
6225 if test -f "$ltmain"; then
6228 - # If there is no Makefile yet, we rely on a make rule to execute
6229 - # `config.status --recheck' to rerun these tests and create the
6230 - # libtool script then.
6231 - test -f Makefile && make "$ltmain"
6234 -if test -f "$ltmain"; then
6235 - trap "$rm \"${ofile}T\"; exit 1" 1 2 15
6236 - $rm -f "${ofile}T"
6238 - echo creating $ofile
6240 + # See if we are running on zsh, and set the options which allow our commands through
6241 + # without removal of \ escapes.
6242 + if test -n "${ZSH_VERSION+set}" ; then
6243 + setopt NO_GLOB_SUBST
6245 # Now quote all the things that may contain metacharacters while being
6246 # careful not to overquote the AC_SUBSTed values. We take copies of the
6247 # variables and quote the copies for generation of the libtool script.
6248 - for var in echo old_CC old_CFLAGS SED \
6249 - AR AR_FLAGS CC LD LN_S NM SHELL \
6250 - reload_flag reload_cmds wl \
6251 - pic_flag link_static_flag no_builtin_flag export_dynamic_flag_spec \
6252 - thread_safe_flag_spec whole_archive_flag_spec libname_spec \
6253 - library_names_spec soname_spec \
6254 - RANLIB old_archive_cmds old_archive_from_new_cmds old_postinstall_cmds \
6255 - old_postuninstall_cmds archive_cmds archive_expsym_cmds postinstall_cmds \
6256 - postuninstall_cmds extract_expsyms_cmds old_archive_from_expsyms_cmds \
6257 - old_striplib striplib file_magic_cmd export_symbols_cmds \
6258 - deplibs_check_method allow_undefined_flag no_undefined_flag \
6259 - finish_cmds finish_eval global_symbol_pipe global_symbol_to_cdecl \
6260 - global_symbol_to_c_name_address \
6261 - hardcode_libdir_flag_spec hardcode_libdir_separator \
6262 + for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
6264 + libname_spec library_names_spec soname_spec extract_expsyms_cmds \
6265 + old_striplib striplib file_magic_cmd finish_cmds finish_eval \
6266 + deplibs_check_method reload_flag reload_cmds need_locks \
6267 + lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
6268 + lt_cv_sys_global_symbol_to_c_name_address \
6269 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
6270 - compiler_c_o compiler_o_lo need_locks exclude_expsyms include_expsyms; do
6271 + old_postinstall_cmds old_postuninstall_cmds \
6272 + _LT_AC_TAGVAR(compiler, $1) \
6273 + _LT_AC_TAGVAR(CC, $1) \
6274 + _LT_AC_TAGVAR(LD, $1) \
6275 + _LT_AC_TAGVAR(lt_prog_compiler_wl, $1) \
6276 + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1) \
6277 + _LT_AC_TAGVAR(lt_prog_compiler_static, $1) \
6278 + _LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1) \
6279 + _LT_AC_TAGVAR(export_dynamic_flag_spec, $1) \
6280 + _LT_AC_TAGVAR(thread_safe_flag_spec, $1) \
6281 + _LT_AC_TAGVAR(whole_archive_flag_spec, $1) \
6282 + _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1) \
6283 + _LT_AC_TAGVAR(old_archive_cmds, $1) \
6284 + _LT_AC_TAGVAR(old_archive_from_new_cmds, $1) \
6285 + _LT_AC_TAGVAR(predep_objects, $1) \
6286 + _LT_AC_TAGVAR(postdep_objects, $1) \
6287 + _LT_AC_TAGVAR(predeps, $1) \
6288 + _LT_AC_TAGVAR(postdeps, $1) \
6289 + _LT_AC_TAGVAR(compiler_lib_search_path, $1) \
6290 + _LT_AC_TAGVAR(archive_cmds, $1) \
6291 + _LT_AC_TAGVAR(archive_expsym_cmds, $1) \
6292 + _LT_AC_TAGVAR(postinstall_cmds, $1) \
6293 + _LT_AC_TAGVAR(postuninstall_cmds, $1) \
6294 + _LT_AC_TAGVAR(old_archive_from_expsyms_cmds, $1) \
6295 + _LT_AC_TAGVAR(allow_undefined_flag, $1) \
6296 + _LT_AC_TAGVAR(no_undefined_flag, $1) \
6297 + _LT_AC_TAGVAR(export_symbols_cmds, $1) \
6298 + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1) \
6299 + _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1) \
6300 + _LT_AC_TAGVAR(hardcode_libdir_separator, $1) \
6301 + _LT_AC_TAGVAR(hardcode_automatic, $1) \
6302 + _LT_AC_TAGVAR(module_cmds, $1) \
6303 + _LT_AC_TAGVAR(module_expsym_cmds, $1) \
6304 + _LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1) \
6305 + _LT_AC_TAGVAR(exclude_expsyms, $1) \
6306 + _LT_AC_TAGVAR(include_expsyms, $1); do
6309 - reload_cmds | old_archive_cmds | old_archive_from_new_cmds | \
6310 - old_postinstall_cmds | old_postuninstall_cmds | \
6311 - export_symbols_cmds | archive_cmds | archive_expsym_cmds | \
6312 - extract_expsyms_cmds | old_archive_from_expsyms_cmds | \
6313 + _LT_AC_TAGVAR(old_archive_cmds, $1) | \
6314 + _LT_AC_TAGVAR(old_archive_from_new_cmds, $1) | \
6315 + _LT_AC_TAGVAR(archive_cmds, $1) | \
6316 + _LT_AC_TAGVAR(archive_expsym_cmds, $1) | \
6317 + _LT_AC_TAGVAR(module_cmds, $1) | \
6318 + _LT_AC_TAGVAR(module_expsym_cmds, $1) | \
6319 + _LT_AC_TAGVAR(old_archive_from_expsyms_cmds, $1) | \
6320 + _LT_AC_TAGVAR(export_symbols_cmds, $1) | \
6321 + extract_expsyms_cmds | reload_cmds | finish_cmds | \
6322 postinstall_cmds | postuninstall_cmds | \
6323 - finish_cmds | sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
6324 + old_postinstall_cmds | old_postuninstall_cmds | \
6325 + sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
6326 # Double-quote double-evaled strings.
6327 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
6329 @@ -2609,14 +4871,31 @@
6333 - cat <<__EOF__ > "${ofile}T"
6336 + *'\[$]0 --fallback-echo"')
6337 + lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\[$]0 --fallback-echo"[$]/[$]0 --fallback-echo"/'`
6341 -# `$echo "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
6343 + [cfgfile="${ofile}T"
6344 + trap "$rm \"$cfgfile\"; exit 1" 1 2 15
6346 + AC_MSG_NOTICE([creating $ofile])],
6347 + [cfgfile="$ofile"])
6349 + cat <<__EOF__ >> "$cfgfile"
6353 +# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
6354 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
6355 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
6357 -# Copyright (C) 1996-2000 Free Software Foundation, Inc.
6358 +# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
6359 +# Free Software Foundation, Inc.
6361 +# This file is part of GNU Libtool:
6362 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
6364 # This program is free software; you can redistribute it and/or modify
6365 @@ -2638,17 +4917,21 @@
6366 # configuration script generated by Autoconf, you may include it under
6367 # the same distribution terms that you use for the rest of that program.
6369 -# A sed that does not truncate output.
6370 +# A sed program that does not truncate output.
6373 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
6374 -Xsed="${SED} -e s/^X//"
6375 +Xsed="$SED -e s/^X//"
6377 # The HP-UX ksh and POSIX shell print the target directory to stdout
6379 if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
6381 -# ### BEGIN LIBTOOL CONFIG
6382 +# The names of the tagged configurations supported by this script.
6385 +# ### BEGIN LIBTOOL CONFIG],
6386 +[# ### BEGIN LIBTOOL TAG CONFIG: $tagname])
6388 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
6390 @@ -2662,7 +4945,10 @@
6391 build_old_libs=$enable_static
6393 # Whether or not to add -lc for building shared libraries.
6394 -build_libtool_need_lc=$need_lc
6395 +build_libtool_need_lc=$_LT_AC_TAGVAR(archive_cmds_need_lc, $1)
6397 +# Whether or not to disallow shared libs when runtime libs are static
6398 +allow_libtool_libs_with_static_runtimes=$_LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)
6400 # Whether or not to optimize for fast installation.
6401 fast_install=$enable_fast_install
6402 @@ -2678,14 +4964,20 @@
6404 AR_FLAGS=$lt_AR_FLAGS
6406 -# The default C compiler.
6411 +# A language-specific compiler.
6412 +CC=$lt_[]_LT_AC_TAGVAR(compiler, $1)
6414 # Is the compiler the GNU C compiler?
6416 +with_gcc=$_LT_AC_TAGVAR(GCC, $1)
6421 # The linker used to build libraries.
6423 +LD=$lt_[]_LT_AC_TAGVAR(LD, $1)
6425 # Whether we need hard or soft links.
6427 @@ -2694,7 +4986,7 @@
6430 # A symbol stripping program
6434 # Used to examine libraries when file_magic_cmd begins "file"
6435 MAGIC_CMD=$MAGIC_CMD
6436 @@ -2716,7 +5008,7 @@
6437 reload_cmds=$lt_reload_cmds
6439 # How to pass a linker flag through the compiler.
6441 +wl=$lt_[]_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)
6443 # Object file suffix (normally "o").
6445 @@ -2724,18 +5016,21 @@
6446 # Old archive suffix (normally "a").
6449 +# Shared library suffix (normally ".so").
6450 +shrext_cmds='$shrext_cmds'
6452 # Executable file suffix (normally "").
6455 # Additional compiler flags for building library objects.
6456 -pic_flag=$lt_pic_flag
6457 +pic_flag=$lt_[]_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)
6460 -# Does compiler simultaneously support -c and -o options?
6461 -compiler_c_o=$lt_compiler_c_o
6462 +# What is the maximum length of a command?
6463 +max_cmd_len=$lt_cv_sys_max_cmd_len
6465 -# Can we write directly to a .lo ?
6466 -compiler_o_lo=$lt_compiler_o_lo
6467 +# Does compiler simultaneously support -c and -o options?
6468 +compiler_c_o=$lt_[]_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)
6470 # Must we lock files when doing compilation ?
6471 need_locks=$lt_need_locks
6472 @@ -2756,946 +5051,1770 @@
6473 dlopen_self_static=$enable_dlopen_self_static
6475 # Compiler flag to prevent dynamic linking.
6476 -link_static_flag=$lt_link_static_flag
6477 +link_static_flag=$lt_[]_LT_AC_TAGVAR(lt_prog_compiler_static, $1)
6479 # Compiler flag to turn off builtin functions.
6480 -no_builtin_flag=$lt_no_builtin_flag
6481 +no_builtin_flag=$lt_[]_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)
6483 # Compiler flag to allow reflexive dlopens.
6484 -export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
6485 +export_dynamic_flag_spec=$lt_[]_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)
6487 # Compiler flag to generate shared objects directly from archives.
6488 -whole_archive_flag_spec=$lt_whole_archive_flag_spec
6489 +whole_archive_flag_spec=$lt_[]_LT_AC_TAGVAR(whole_archive_flag_spec, $1)
6491 # Compiler flag to generate thread-safe objects.
6492 -thread_safe_flag_spec=$lt_thread_safe_flag_spec
6493 +thread_safe_flag_spec=$lt_[]_LT_AC_TAGVAR(thread_safe_flag_spec, $1)
6495 +# Library versioning type.
6496 +version_type=$version_type
6498 +# Format of library name prefix.
6499 +libname_spec=$lt_libname_spec
6501 +# List of archive names. First name is the real one, the rest are links.
6502 +# The last name is the one that the linker finds with -lNAME.
6503 +library_names_spec=$lt_library_names_spec
6505 +# The coded name of the library, if different from the real name.
6506 +soname_spec=$lt_soname_spec
6508 +# Commands used to build and install an old-style archive.
6510 +old_archive_cmds=$lt_[]_LT_AC_TAGVAR(old_archive_cmds, $1)
6511 +old_postinstall_cmds=$lt_old_postinstall_cmds
6512 +old_postuninstall_cmds=$lt_old_postuninstall_cmds
6514 +# Create an old-style archive from a shared archive.
6515 +old_archive_from_new_cmds=$lt_[]_LT_AC_TAGVAR(old_archive_from_new_cmds, $1)
6517 +# Create a temporary old-style archive to link instead of a shared archive.
6518 +old_archive_from_expsyms_cmds=$lt_[]_LT_AC_TAGVAR(old_archive_from_expsyms_cmds, $1)
6520 +# Commands used to build and install a shared archive.
6521 +archive_cmds=$lt_[]_LT_AC_TAGVAR(archive_cmds, $1)
6522 +archive_expsym_cmds=$lt_[]_LT_AC_TAGVAR(archive_expsym_cmds, $1)
6523 +postinstall_cmds=$lt_postinstall_cmds
6524 +postuninstall_cmds=$lt_postuninstall_cmds
6526 +# Commands used to build a loadable module (assumed same as above if empty)
6527 +module_cmds=$lt_[]_LT_AC_TAGVAR(module_cmds, $1)
6528 +module_expsym_cmds=$lt_[]_LT_AC_TAGVAR(module_expsym_cmds, $1)
6530 +# Commands to strip libraries.
6531 +old_striplib=$lt_old_striplib
6532 +striplib=$lt_striplib
6534 +# Dependencies to place before the objects being linked to create a
6536 +predep_objects=$lt_[]_LT_AC_TAGVAR(predep_objects, $1)
6538 +# Dependencies to place after the objects being linked to create a
6540 +postdep_objects=$lt_[]_LT_AC_TAGVAR(postdep_objects, $1)
6542 +# Dependencies to place before the objects being linked to create a
6544 +predeps=$lt_[]_LT_AC_TAGVAR(predeps, $1)
6546 +# Dependencies to place after the objects being linked to create a
6548 +postdeps=$lt_[]_LT_AC_TAGVAR(postdeps, $1)
6550 +# The library search path used internally by the compiler when linking
6551 +# a shared library.
6552 +compiler_lib_search_path=$lt_[]_LT_AC_TAGVAR(compiler_lib_search_path, $1)
6554 +# Method to check whether dependent libraries are shared objects.
6555 +deplibs_check_method=$lt_deplibs_check_method
6557 +# Command to use when deplibs_check_method == file_magic.
6558 +file_magic_cmd=$lt_file_magic_cmd
6560 +# Flag that allows shared libraries with undefined symbols to be built.
6561 +allow_undefined_flag=$lt_[]_LT_AC_TAGVAR(allow_undefined_flag, $1)
6563 +# Flag that forces no undefined symbols.
6564 +no_undefined_flag=$lt_[]_LT_AC_TAGVAR(no_undefined_flag, $1)
6566 +# Commands used to finish a libtool library installation in a directory.
6567 +finish_cmds=$lt_finish_cmds
6569 +# Same as above, but a single script fragment to be evaled but not shown.
6570 +finish_eval=$lt_finish_eval
6572 +# Take the output of nm and produce a listing of raw symbols and C names.
6573 +global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
6575 +# Transform the output of nm in a proper C declaration
6576 +global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
6578 +# Transform the output of nm in a C name address pair
6579 +global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
6581 +# This is the shared library runtime path variable.
6582 +runpath_var=$runpath_var
6584 +# This is the shared library path variable.
6585 +shlibpath_var=$shlibpath_var
6587 +# Is shlibpath searched before the hard-coded library search path?
6588 +shlibpath_overrides_runpath=$shlibpath_overrides_runpath
6590 +# How to hardcode a shared library path into an executable.
6591 +hardcode_action=$_LT_AC_TAGVAR(hardcode_action, $1)
6593 +# Whether we should hardcode library paths into libraries.
6594 +hardcode_into_libs=$hardcode_into_libs
6596 +# Flag to hardcode \$libdir into a binary during linking.
6597 +# This must work even if \$libdir does not exist.
6598 +hardcode_libdir_flag_spec=$lt_[]_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)
6600 +# If ld is used when linking, flag to hardcode \$libdir into
6601 +# a binary during linking. This must work even if \$libdir does
6603 +hardcode_libdir_flag_spec_ld=$lt_[]_LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)
6605 +# Whether we need a single -rpath flag with a separated argument.
6606 +hardcode_libdir_separator=$lt_[]_LT_AC_TAGVAR(hardcode_libdir_separator, $1)
6608 +# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
6609 +# resulting binary.
6610 +hardcode_direct=$_LT_AC_TAGVAR(hardcode_direct, $1)
6612 +# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
6613 +# resulting binary.
6614 +hardcode_minus_L=$_LT_AC_TAGVAR(hardcode_minus_L, $1)
6616 +# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
6617 +# the resulting binary.
6618 +hardcode_shlibpath_var=$_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)
6620 +# Set to yes if building a shared library automatically hardcodes DIR into the library
6621 +# and all subsequent libraries and executables linked against it.
6622 +hardcode_automatic=$_LT_AC_TAGVAR(hardcode_automatic, $1)
6624 +# Variables whose values should be saved in libtool wrapper scripts and
6625 +# restored at relink time.
6626 +variables_saved_for_relink="$variables_saved_for_relink"
6628 +# Whether libtool must link a program against all its dependency libraries.
6629 +link_all_deplibs=$_LT_AC_TAGVAR(link_all_deplibs, $1)
6631 +# Compile-time system search path for libraries
6632 +sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
6634 +# Run-time system search path for libraries
6635 +sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
6637 +# Fix the shell variable \$srcfile for the compiler.
6638 +fix_srcfile_path="$_LT_AC_TAGVAR(fix_srcfile_path, $1)"
6640 +# Set to yes if exported symbols are required.
6641 +always_export_symbols=$_LT_AC_TAGVAR(always_export_symbols, $1)
6643 +# The commands to list exported symbols.
6644 +export_symbols_cmds=$lt_[]_LT_AC_TAGVAR(export_symbols_cmds, $1)
6646 +# The commands to extract the exported symbol list from a shared archive.
6647 +extract_expsyms_cmds=$lt_extract_expsyms_cmds
6649 +# Symbols that should not be listed in the preloaded symbols.
6650 +exclude_expsyms=$lt_[]_LT_AC_TAGVAR(exclude_expsyms, $1)
6652 +# Symbols that must always be exported.
6653 +include_expsyms=$lt_[]_LT_AC_TAGVAR(include_expsyms, $1)
6656 +[# ### END LIBTOOL CONFIG],
6657 +[# ### END LIBTOOL TAG CONFIG: $tagname])
6664 + cat <<\EOF >> "$cfgfile"
6666 +# AIX sometimes has problems with the GCC collect2 program. For some
6667 +# reason, if we set the COLLECT_NAMES environment variable, the problems
6668 +# vanish in a puff of smoke.
6669 +if test "X${COLLECT_NAMES+set}" != Xset; then
6671 + export COLLECT_NAMES
6677 + # We use sed instead of cat because bash on DJGPP gets confused if
6678 + # if finds mixed CR/LF and LF-only lines. Since sed operates in
6679 + # text mode, it properly converts lines to CR/LF. This bash problem
6680 + # is reportedly fixed, but why not run on old versions too?
6681 + sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
6683 + mv -f "$cfgfile" "$ofile" || \
6684 + (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
6688 + # If there is no Makefile yet, we rely on a make rule to execute
6689 + # `config.status --recheck' to rerun these tests and create the
6690 + # libtool script then.
6691 + ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
6692 + if test -f "$ltmain_in"; then
6693 + test -f Makefile && make "$ltmain"
6696 +])# AC_LIBTOOL_CONFIG
6699 +# AC_LIBTOOL_PROG_COMPILER_NO_RTTI([TAGNAME])
6700 +# -------------------------------------------
6701 +AC_DEFUN([AC_LIBTOOL_PROG_COMPILER_NO_RTTI],
6702 +[AC_REQUIRE([_LT_AC_SYS_COMPILER])dnl
6704 +_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=
6706 +if test "$GCC" = yes; then
6707 + _LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin'
6709 + AC_LIBTOOL_COMPILER_OPTION([if $compiler supports -fno-rtti -fno-exceptions],
6710 + lt_cv_prog_compiler_rtti_exceptions,
6711 + [-fno-rtti -fno-exceptions], [],
6712 + [_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)="$_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1) -fno-rtti -fno-exceptions"])
6714 +])# AC_LIBTOOL_PROG_COMPILER_NO_RTTI
6717 +# AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE
6718 +# ---------------------------------
6719 +AC_DEFUN([AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE],
6720 +[AC_REQUIRE([AC_CANONICAL_HOST])
6721 +AC_REQUIRE([AC_PROG_NM])
6722 +AC_REQUIRE([AC_OBJEXT])
6723 +# Check for command to grab the raw symbol name followed by C symbol from nm.
6724 +AC_MSG_CHECKING([command to parse $NM output from $compiler object])
6725 +AC_CACHE_VAL([lt_cv_sys_global_symbol_pipe],
6727 +# These are sane defaults that work on at least a few old systems.
6728 +# [They come from Ultrix. What could be older than Ultrix?!! ;)]
6730 +# Character class describing NM global symbol codes.
6731 +symcode='[[BCDEGRST]]'
6733 +# Regexp to match symbols that can be accessed directly from C.
6734 +sympat='\([[_A-Za-z]][[_A-Za-z0-9]]*\)'
6736 +# Transform the above into a raw symbol and a C symbol.
6737 +symxfrm='\1 \2\3 \3'
6739 +# Transform an extracted symbol line into a proper C declaration
6740 +lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
6742 +# Transform an extracted symbol line into symbol name and symbol address
6743 +lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([[^ ]]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode \([[^ ]]*\) \([[^ ]]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
6745 +# Define system-specific variables.
6748 + symcode='[[BCDT]]'
6750 +cygwin* | mingw* | pw32*)
6751 + symcode='[[ABCDGISTW]]'
6753 +hpux*) # Its linker distinguishes data from code symbols
6754 + if test "$host_cpu" = ia64; then
6755 + symcode='[[ABCDEGRST]]'
6757 + lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6758 + lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([[^ ]]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([[^ ]]*\) \([[^ ]]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
6760 +irix* | nonstopux*)
6761 + symcode='[[BCDEGRST]]'
6764 + symcode='[[BCDEGQRST]]'
6767 + symcode='[[BDRT]]'
6770 + symcode='[[DFNSTU]]'
6774 +# Handle CRLF in mingw tool chain
6778 + opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6782 -# Library versioning type.
6783 -version_type=$version_type
6784 +# If we're using GNU nm, then use its standard symbol codes.
6785 +case `$NM -V 2>&1` in
6786 +*GNU* | *'with BFD'*)
6787 + symcode='[[ABCDGIRSTW]]' ;;
6790 -# Format of library name prefix.
6791 -libname_spec=$lt_libname_spec
6792 +# Try without a prefix undercore, then with it.
6793 +for ac_symprfx in "" "_"; do
6795 -# List of archive names. First name is the real one, the rest are links.
6796 -# The last name is the one that the linker finds with -lNAME.
6797 -library_names_spec=$lt_library_names_spec
6798 + # Write the raw and C identifiers.
6799 + lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[[ ]]\($symcode$symcode*\)[[ ]][[ ]]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
6801 -# The coded name of the library, if different from the real name.
6802 -soname_spec=$lt_soname_spec
6803 + # Check to see that the pipe works correctly.
6806 -# Commands used to build and install an old-style archive.
6808 -old_archive_cmds=$lt_old_archive_cmds
6809 -old_postinstall_cmds=$lt_old_postinstall_cmds
6810 -old_postuninstall_cmds=$lt_old_postuninstall_cmds
6812 + cat > conftest.$ac_ext <<EOF
6817 +void nm_test_func(){}
6821 +int main(){nm_test_var='a';nm_test_func();return(0);}
6824 -# Create an old-style archive from a shared archive.
6825 -old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
6826 + if AC_TRY_EVAL(ac_compile); then
6827 + # Now try to grab the symbols.
6829 + if AC_TRY_EVAL(NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) && test -s "$nlist"; then
6830 + # Try sorting and uniquifying the output.
6831 + if sort "$nlist" | uniq > "$nlist"T; then
6832 + mv -f "$nlist"T "$nlist"
6837 -# Create a temporary old-style archive to link instead of a shared archive.
6838 -old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
6839 + # Make sure that we snagged all the symbols we need.
6840 + if grep ' nm_test_var$' "$nlist" >/dev/null; then
6841 + if grep ' nm_test_func$' "$nlist" >/dev/null; then
6842 + cat <<EOF > conftest.$ac_ext
6847 -# Commands used to build and install a shared archive.
6848 -archive_cmds=$lt_archive_cmds
6849 -archive_expsym_cmds=$lt_archive_expsym_cmds
6850 -postinstall_cmds=$lt_postinstall_cmds
6851 -postuninstall_cmds=$lt_postuninstall_cmds
6853 + # Now generate the symbol file.
6854 + eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
6856 -# Commands to strip libraries.
6857 -old_striplib=$lt_old_striplib
6858 -striplib=$lt_striplib
6859 + cat <<EOF >> conftest.$ac_ext
6860 +#if defined (__STDC__) && __STDC__
6861 +# define lt_ptr_t void *
6863 +# define lt_ptr_t char *
6867 -# Method to check whether dependent libraries are shared objects.
6868 -deplibs_check_method=$lt_deplibs_check_method
6869 +/* The mapping between symbol names and symbols. */
6874 +lt_preloaded_symbols[[]] =
6877 + $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
6878 + cat <<\EOF >> conftest.$ac_ext
6882 -# Command to use when deplibs_check_method == file_magic.
6883 -file_magic_cmd=$lt_file_magic_cmd
6888 + # Now try linking the two files.
6889 + mv conftest.$ac_objext conftstm.$ac_objext
6890 + lt_save_LIBS="$LIBS"
6891 + lt_save_CFLAGS="$CFLAGS"
6892 + LIBS="conftstm.$ac_objext"
6893 + CFLAGS="$CFLAGS$_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)"
6894 + if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext}; then
6897 + LIBS="$lt_save_LIBS"
6898 + CFLAGS="$lt_save_CFLAGS"
6900 + echo "cannot find nm_test_func in $nlist" >&AS_MESSAGE_LOG_FD
6903 + echo "cannot find nm_test_var in $nlist" >&AS_MESSAGE_LOG_FD
6906 + echo "cannot run $lt_cv_sys_global_symbol_pipe" >&AS_MESSAGE_LOG_FD
6909 + echo "$progname: failed program was:" >&AS_MESSAGE_LOG_FD
6910 + cat conftest.$ac_ext >&5
6912 + rm -f conftest* conftst*
6914 -# Flag that allows shared libraries with undefined symbols to be built.
6915 -allow_undefined_flag=$lt_allow_undefined_flag
6916 + # Do not use the global_symbol_pipe unless it works.
6917 + if test "$pipe_works" = yes; then
6920 + lt_cv_sys_global_symbol_pipe=
6924 +if test -z "$lt_cv_sys_global_symbol_pipe"; then
6925 + lt_cv_sys_global_symbol_to_cdecl=
6927 +if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6928 + AC_MSG_RESULT(failed)
6932 +]) # AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE
6934 -# Flag that forces no undefined symbols.
6935 -no_undefined_flag=$lt_no_undefined_flag
6937 -# Commands used to finish a libtool library installation in a directory.
6938 -finish_cmds=$lt_finish_cmds
6939 +# AC_LIBTOOL_PROG_COMPILER_PIC([TAGNAME])
6940 +# ---------------------------------------
6941 +AC_DEFUN([AC_LIBTOOL_PROG_COMPILER_PIC],
6942 +[_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)=
6943 +_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
6944 +_LT_AC_TAGVAR(lt_prog_compiler_static, $1)=
6946 -# Same as above, but a single script fragment to be evaled but not shown.
6947 -finish_eval=$lt_finish_eval
6948 +AC_MSG_CHECKING([for $compiler option to produce PIC])
6949 + ifelse([$1],[CXX],[
6950 + # C++ specific cases for pic, static, wl, etc.
6951 + if test "$GXX" = yes; then
6952 + _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
6953 + _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static'
6955 -# Take the output of nm and produce a listing of raw symbols and C names.
6956 -global_symbol_pipe=$lt_global_symbol_pipe
6959 + # All AIX code is PIC.
6960 + if test "$host_cpu" = ia64; then
6961 + # AIX 5 now supports IA64 processor
6962 + _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
6966 + # FIXME: we need at least 68020 code to build shared libraries, but
6967 + # adding the `-m68020' flag to GCC prevents building anything better,
6969 + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4'
6971 + beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
6972 + # PIC is the default for these OSes.
6974 + mingw* | os2* | pw32*)
6975 + # This hack is so that the source file can tell whether it is being
6976 + # built for inclusion in a dll (and should export symbols for example).
6977 + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'
6979 + darwin* | rhapsody*)
6980 + # PIC is the default on this platform
6981 + # Common symbols not allowed in MH_DYLIB files
6982 + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common'
6985 + # DJGPP does not support shared libraries at all
6986 + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
6989 + if test -d /usr/nec; then
6990 + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic
6994 + # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6995 + # not for PA HP-UX.
6996 + case "$host_cpu" in
7000 + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
7005 + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
7011 + # All AIX code is PIC.
7012 + if test "$host_cpu" = ia64; then
7013 + # AIX 5 now supports IA64 processor
7014 + _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
7016 + _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp'
7020 + case $cc_basename in
7022 + # Green Hills C++ Compiler
7023 + # _LT_AC_TAGVAR(lt_prog_compiler_static, $1)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a"
7028 + case $cc_basename in
7030 + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
7033 + # Green Hills C++ Compiler
7034 + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
7040 + freebsd* | kfreebsd*-gnu)
7041 + # FreeBSD uses GNU C++
7043 + hpux9* | hpux10* | hpux11*)
7044 + case $cc_basename in
7046 + _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
7047 + _LT_AC_TAGVAR(lt_prog_compiler_static, $1)="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
7048 + if test "$host_cpu" != ia64; then
7049 + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
7053 + _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
7054 + _LT_AC_TAGVAR(lt_prog_compiler_static, $1)="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
7055 + case "$host_cpu" in
7060 + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
7068 + irix5* | irix6* | nonstopux*)
7069 + case $cc_basename in
7071 + _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
7072 + _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
7073 + # CC pic flag -KPIC is the default.
7080 + case $cc_basename in
7082 + # KAI C++ Compiler
7083 + _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,'
7084 + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
7088 + _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
7089 + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
7090 + _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static'
7094 + # Make sure the PIC flag is empty. It appears that all Alpha
7095 + # Linux and Compaq Tru64 Unix objects are PIC.
7096 + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
7097 + _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
7108 + case $cc_basename in
7110 + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-W c,exportall'
7116 + netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
7118 + osf3* | osf4* | osf5*)
7119 + case $cc_basename in
7121 + _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,'
7124 + # Rational C++ 2.4.1
7125 + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
7128 + # Digital/Compaq C++
7129 + _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
7130 + # Make sure the PIC flag is empty. It appears that all Alpha
7131 + # Linux and Compaq Tru64 Unix objects are PIC.
7132 + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
7133 + _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
7142 + case $cc_basename in
7144 + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
7151 + case $cc_basename in
7153 + # Sun C++ 4.2, 5.x and Centerline C++
7154 + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
7155 + _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
7156 + _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
7159 + # Green Hills C++ Compiler
7160 + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-PIC'
7167 + case $cc_basename in
7170 + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
7171 + _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
7175 + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
7182 + case $cc_basename in
7184 + # NonStop-UX NCC 3.20
7185 + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
7196 + _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
7202 + if test "$GCC" = yes; then
7203 + _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
7204 + _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static'
7206 -# Transform the output of nm in a proper C declaration
7207 -global_symbol_to_cdecl=$lt_global_symbol_to_cdecl
7210 + # All AIX code is PIC.
7211 + if test "$host_cpu" = ia64; then
7212 + # AIX 5 now supports IA64 processor
7213 + _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
7217 -# Transform the output of nm in a C name address pair
7218 -global_symbol_to_c_name_address=$lt_global_symbol_to_c_name_address
7220 + # FIXME: we need at least 68020 code to build shared libraries, but
7221 + # adding the `-m68020' flag to GCC prevents building anything better,
7223 + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4'
7226 -# This is the shared library runtime path variable.
7227 -runpath_var=$runpath_var
7228 + beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7229 + # PIC is the default for these OSes.
7232 -# This is the shared library path variable.
7233 -shlibpath_var=$shlibpath_var
7234 + mingw* | pw32* | os2*)
7235 + # This hack is so that the source file can tell whether it is being
7236 + # built for inclusion in a dll (and should export symbols for example).
7237 + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'
7240 -# Is shlibpath searched before the hard-coded library search path?
7241 -shlibpath_overrides_runpath=$shlibpath_overrides_runpath
7242 + darwin* | rhapsody*)
7243 + # PIC is the default on this platform
7244 + # Common symbols not allowed in MH_DYLIB files
7245 + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common'
7248 -# How to hardcode a shared library path into an executable.
7249 -hardcode_action=$hardcode_action
7251 + # Just because we use GCC doesn't mean we suddenly get shared libraries
7252 + # on systems that don't support them.
7253 + _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
7257 -# Whether we should hardcode library paths into libraries.
7258 -hardcode_into_libs=$hardcode_into_libs
7260 + if test -d /usr/nec; then
7261 + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic
7265 -# Flag to hardcode \$libdir into a binary during linking.
7266 -# This must work even if \$libdir does not exist.
7267 -hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
7269 + # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7270 + # not for PA HP-UX.
7271 + case "$host_cpu" in
7276 + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
7281 -# Whether we need a single -rpath flag with a separated argument.
7282 -hardcode_libdir_separator=$lt_hardcode_libdir_separator
7284 + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
7288 + # PORTME Check for flag to pass linker flags through the system compiler.
7291 + _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
7292 + if test "$host_cpu" = ia64; then
7293 + # AIX 5 now supports IA64 processor
7294 + _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
7296 + _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp'
7300 -# Set to yes if using DIR/libNAME.so during linking hardcodes DIR into the
7301 -# resulting binary.
7302 -hardcode_direct=$hardcode_direct
7303 + mingw* | pw32* | os2*)
7304 + # This hack is so that the source file can tell whether it is being
7305 + # built for inclusion in a dll (and should export symbols for example).
7306 + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'
7309 -# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
7310 -# resulting binary.
7311 -hardcode_minus_L=$hardcode_minus_L
7312 + hpux9* | hpux10* | hpux11*)
7313 + _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
7314 + # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7315 + # not for PA HP-UX.
7316 + case "$host_cpu" in
7321 + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
7324 + # Is there a better lt_prog_compiler_static that works with the bundled CC?
7325 + _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
7328 -# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
7329 -# the resulting binary.
7330 -hardcode_shlibpath_var=$hardcode_shlibpath_var
7331 + irix5* | irix6* | nonstopux*)
7332 + _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
7333 + # PIC (with -KPIC) is the default.
7334 + _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
7337 -# Variables whose values should be saved in libtool wrapper scripts and
7338 -# restored at relink time.
7339 -variables_saved_for_relink="$variables_saved_for_relink"
7341 + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
7342 + _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
7345 -# Whether libtool must link a program against all its dependency libraries.
7346 -link_all_deplibs=$link_all_deplibs
7350 + _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
7351 + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
7352 + _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static'
7355 + _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
7356 + # All Alpha code is PIC.
7357 + _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
7362 -# Compile-time system search path for libraries
7363 -sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
7364 + osf3* | osf4* | osf5*)
7365 + _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
7366 + # All OSF/1 code is PIC.
7367 + _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
7370 -# Run-time system search path for libraries
7371 -sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
7373 + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-Kpic'
7374 + _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-dn'
7377 -# Fix the shell variable \$srcfile for the compiler.
7378 -fix_srcfile_path="$fix_srcfile_path"
7380 + _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
7381 + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
7382 + _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
7385 -# Set to yes if exported symbols are required.
7386 -always_export_symbols=$always_export_symbols
7388 + _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
7389 + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-PIC'
7390 + _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
7393 -# The commands to list exported symbols.
7394 -export_symbols_cmds=$lt_export_symbols_cmds
7395 + sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
7396 + _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
7397 + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
7398 + _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
7401 -# The commands to extract the exported symbol list from a shared archive.
7402 -extract_expsyms_cmds=$lt_extract_expsyms_cmds
7404 + if test -d /usr/nec ;then
7405 + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-Kconform_pic'
7406 + _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
7410 -# Symbols that should not be listed in the preloaded symbols.
7411 -exclude_expsyms=$lt_exclude_expsyms
7413 + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
7414 + _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
7417 -# Symbols that must always be exported.
7418 -include_expsyms=$lt_include_expsyms
7420 + _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
7425 +AC_MSG_RESULT([$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)])
7427 -# ### END LIBTOOL CONFIG
7429 +# Check to make sure the PIC flag actually works.
7431 +if test -n "$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)"; then
7432 + AC_LIBTOOL_COMPILER_OPTION([if $compiler PIC flag $_LT_AC_TAGVAR(lt_prog_compiler_pic, $1) works],
7433 + _LT_AC_TAGVAR(lt_prog_compiler_pic_works, $1),
7434 + [$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)ifelse([$1],[],[ -DPIC],[ifelse([$1],[CXX],[ -DPIC],[])])], [],
7435 + [case $_LT_AC_TAGVAR(lt_prog_compiler_pic, $1) in
7437 + *) _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=" $_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)" ;;
7439 + [_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
7440 + _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no])
7443 + # For platforms which do not support PIC, -DPIC is meaningless:
7445 + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
7448 + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)="$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)ifelse([$1],[],[ -DPIC],[ifelse([$1],[CXX],[ -DPIC],[])])"
7455 +# AC_LIBTOOL_PROG_LD_SHLIBS([TAGNAME])
7456 +# ------------------------------------
7457 +# See if the linker supports building shared libraries.
7458 +AC_DEFUN([AC_LIBTOOL_PROG_LD_SHLIBS],
7459 +[AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries])
7460 +ifelse([$1],[CXX],[
7461 + _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
7464 - cat <<\EOF >> "${ofile}T"
7466 -# AIX sometimes has problems with the GCC collect2 program. For some
7467 -# reason, if we set the COLLECT_NAMES environment variable, the problems
7468 -# vanish in a puff of smoke.
7469 -if test "X${COLLECT_NAMES+set}" != Xset; then
7471 - export COLLECT_NAMES
7475 + # If we're using GNU nm, then we don't want the "-C" option.
7476 + # -C means demangle to AIX nm, but means don't demangle with GNU nm
7477 + if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
7478 + _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\[$]2 == "T") || (\[$]2 == "D") || (\[$]2 == "B")) && ([substr](\[$]3,1,1) != ".")) { print \[$]3 } }'\'' | sort -u > $export_symbols'
7480 + _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\[$]2 == "T") || (\[$]2 == "D") || (\[$]2 == "B")) && ([substr](\[$]3,1,1) != ".")) { print \[$]3 } }'\'' | sort -u > $export_symbols'
7484 + _LT_AC_TAGVAR(export_symbols_cmds, $1)="$ltdll_cmds"
7487 + _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGS]] /s/.* \([[^ ]]*\)/\1 DATA/'\'' | $SED -e '\''/^[[AITW]] /s/.* //'\'' | sort | uniq > $export_symbols'
7490 + _LT_AC_TAGVAR(link_all_deplibs, $1)=no
7493 + _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
7498 + _LT_AC_TAGVAR(allow_undefined_flag, $1)=
7499 + _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=no
7500 + _LT_AC_TAGVAR(archive_cmds, $1)=
7501 + _LT_AC_TAGVAR(archive_expsym_cmds, $1)=
7502 + _LT_AC_TAGVAR(old_archive_From_new_cmds, $1)=
7503 + _LT_AC_TAGVAR(old_archive_from_expsyms_cmds, $1)=
7504 + _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)=
7505 + _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
7506 + _LT_AC_TAGVAR(thread_safe_flag_spec, $1)=
7507 + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=
7508 + _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
7509 + _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
7510 + _LT_AC_TAGVAR(hardcode_direct, $1)=no
7511 + _LT_AC_TAGVAR(hardcode_minus_L, $1)=no
7512 + _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
7513 + _LT_AC_TAGVAR(link_all_deplibs, $1)=unknown
7514 + _LT_AC_TAGVAR(hardcode_automatic, $1)=no
7515 + _LT_AC_TAGVAR(module_cmds, $1)=
7516 + _LT_AC_TAGVAR(module_expsym_cmds, $1)=
7517 + _LT_AC_TAGVAR(always_export_symbols, $1)=no
7518 + _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
7519 + # include_expsyms should be a list of space-separated symbols to be *always*
7520 + # included in the symbol list
7521 + _LT_AC_TAGVAR(include_expsyms, $1)=
7522 + # exclude_expsyms can be an extended regexp of symbols to exclude
7523 + # it will be wrapped by ` (' and `)$', so one must not match beginning or
7524 + # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
7525 + # as well as any symbol that contains `d'.
7526 + _LT_AC_TAGVAR(exclude_expsyms, $1)="_GLOBAL_OFFSET_TABLE_"
7527 + # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
7528 + # platforms (ab)use it in PIC code, but their linkers get confused if
7529 + # the symbol is explicitly referenced. Since portable code cannot
7530 + # rely on this symbol name, it's probably fine to never include it in
7531 + # preloaded symbol tables.
7532 + extract_expsyms_cmds=
7535 - cygwin* | mingw* | pw32* | os2*)
7536 - cat <<'EOF' >> "${ofile}T"
7537 - # This is a source program that is used to create dlls on Windows
7538 - # Don't remove nor modify the starting and closing comments
7539 -# /* ltdll.c starts here */
7540 -# #define WIN32_LEAN_AND_MEAN
7541 -# #include <windows.h>
7542 -# #undef WIN32_LEAN_AND_MEAN
7543 -# #include <stdio.h>
7545 -# #ifndef __CYGWIN__
7546 -# # ifdef __CYGWIN32__
7547 -# # define __CYGWIN__ __CYGWIN32__
7551 -# #ifdef __cplusplus
7554 -# BOOL APIENTRY DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved);
7555 -# #ifdef __cplusplus
7559 -# #ifdef __CYGWIN__
7560 -# #include <cygwin/cygwin_dll.h>
7561 -# DECLARE_CYGWIN_DLL( DllMain );
7563 -# HINSTANCE __hDllInstance_base;
7566 -# DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved)
7568 -# __hDllInstance_base = hInst;
7571 -# /* ltdll.c ends here */
7572 - # This is a source program that is used to create import libraries
7573 - # on Windows for dlls which lack them. Don't remove nor modify the
7574 - # starting and closing comments
7575 -# /* impgen.c starts here */
7576 -# /* Copyright (C) 1999-2000 Free Software Foundation, Inc.
7578 -# This file is part of GNU libtool.
7580 -# This program is free software; you can redistribute it and/or modify
7581 -# it under the terms of the GNU General Public License as published by
7582 -# the Free Software Foundation; either version 2 of the License, or
7583 -# (at your option) any later version.
7585 -# This program is distributed in the hope that it will be useful,
7586 -# but WITHOUT ANY WARRANTY; without even the implied warranty of
7587 -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
7588 -# GNU General Public License for more details.
7590 -# You should have received a copy of the GNU General Public License
7591 -# along with this program; if not, write to the Free Software
7592 -# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
7595 -# #include <stdio.h> /* for printf() */
7596 -# #include <unistd.h> /* for open(), lseek(), read() */
7597 -# #include <fcntl.h> /* for O_RDONLY, O_BINARY */
7598 -# #include <string.h> /* for strdup() */
7600 -# /* O_BINARY isn't required (or even defined sometimes) under Unix */
7602 -# #define O_BINARY 0
7605 -# static unsigned int
7606 -# pe_get16 (fd, offset)
7610 -# unsigned char b[2];
7611 -# lseek (fd, offset, SEEK_SET);
7613 -# return b[0] + (b[1]<<8);
7616 -# static unsigned int
7617 -# pe_get32 (fd, offset)
7621 -# unsigned char b[4];
7622 -# lseek (fd, offset, SEEK_SET);
7624 -# return b[0] + (b[1]<<8) + (b[2]<<16) + (b[3]<<24);
7627 -# static unsigned int
7631 -# unsigned char *b = ptr;
7632 -# return b[0] + (b[1]<<8) + (b[2]<<16) + (b[3]<<24);
7636 -# main (argc, argv)
7641 -# unsigned long pe_header_offset, opthdr_ofs, num_entries, i;
7642 -# unsigned long export_rva, export_size, nsections, secptr, expptr;
7643 -# unsigned long name_rvas, nexp;
7644 -# unsigned char *expdata, *erva;
7645 -# char *filename, *dll_name;
7647 -# filename = argv[1];
7649 -# dll = open(filename, O_RDONLY|O_BINARY);
7653 -# dll_name = filename;
7655 -# for (i=0; filename[i]; i++)
7656 -# if (filename[i] == '/' || filename[i] == '\\' || filename[i] == ':')
7657 -# dll_name = filename + i +1;
7659 -# pe_header_offset = pe_get32 (dll, 0x3c);
7660 -# opthdr_ofs = pe_header_offset + 4 + 20;
7661 -# num_entries = pe_get32 (dll, opthdr_ofs + 92);
7663 -# if (num_entries < 1) /* no exports */
7666 -# export_rva = pe_get32 (dll, opthdr_ofs + 96);
7667 -# export_size = pe_get32 (dll, opthdr_ofs + 100);
7668 -# nsections = pe_get16 (dll, pe_header_offset + 4 +2);
7669 -# secptr = (pe_header_offset + 4 + 20 +
7670 -# pe_get16 (dll, pe_header_offset + 4 + 16));
7673 -# for (i = 0; i < nsections; i++)
7676 -# unsigned long secptr1 = secptr + 40 * i;
7677 -# unsigned long vaddr = pe_get32 (dll, secptr1 + 12);
7678 -# unsigned long vsize = pe_get32 (dll, secptr1 + 16);
7679 -# unsigned long fptr = pe_get32 (dll, secptr1 + 20);
7680 -# lseek(dll, secptr1, SEEK_SET);
7681 -# read(dll, sname, 8);
7682 -# if (vaddr <= export_rva && vaddr+vsize > export_rva)
7684 -# expptr = fptr + (export_rva - vaddr);
7685 -# if (export_rva + export_size > vaddr + vsize)
7686 -# export_size = vsize - (export_rva - vaddr);
7691 -# expdata = (unsigned char*)malloc(export_size);
7692 -# lseek (dll, expptr, SEEK_SET);
7693 -# read (dll, expdata, export_size);
7694 -# erva = expdata - export_rva;
7696 -# nexp = pe_as32 (expdata+24);
7697 -# name_rvas = pe_as32 (expdata+32);
7699 -# printf ("EXPORTS\n");
7700 -# for (i = 0; i<nexp; i++)
7702 -# unsigned long name_rva = pe_as32 (erva+name_rvas+i*4);
7703 -# printf ("\t%s @ %ld ;\n", erva+name_rva, 1+ i);
7708 -# /* impgen.c ends here */
7711 + cygwin* | mingw* | pw32*)
7712 + # FIXME: the MSVC++ port hasn't been tested in a loooong time
7713 + # When not using gcc, we currently assume that we are using
7714 + # Microsoft Visual C++.
7715 + if test "$GCC" != yes; then
7724 - # We use sed instead of cat because bash on DJGPP gets confused if
7725 - # if finds mixed CR/LF and LF-only lines. Since sed operates in
7726 - # text mode, it properly converts lines to CR/LF. This bash problem
7727 - # is reportedly fixed, but why not run on old versions too?
7728 - sed '$q' "$ltmain" >> "${ofile}T" || (rm -f "${ofile}T"; exit 1)
7729 + _LT_AC_TAGVAR(ld_shlibs, $1)=yes
7730 + if test "$with_gnu_ld" = yes; then
7731 + # If archive_cmds runs LD, not CC, wlarc should be empty
7734 - mv -f "${ofile}T" "$ofile" || \
7735 - (rm -f "$ofile" && cp "${ofile}T" "$ofile" && rm -f "${ofile}T")
7738 + # See if GNU ld supports shared libraries.
7740 + aix3* | aix4* | aix5*)
7741 + # On AIX/PPC, the GNU linker is very broken
7742 + if test "$host_cpu" != ia64; then
7743 + _LT_AC_TAGVAR(ld_shlibs, $1)=no
7746 -])# _LT_AC_LTCONFIG_HACK
7747 +*** Warning: the GNU linker, at least up to release 2.9.1, is reported
7748 +*** to be unable to reliably create shared libraries on AIX.
7749 +*** Therefore, libtool is disabling shared libraries support. If you
7750 +*** really care for shared libraries, you may want to modify your PATH
7751 +*** so that a non-GNU linker is found, and then restart.
7753 -# AC_LIBTOOL_DLOPEN - enable checks for dlopen support
7754 -AC_DEFUN([AC_LIBTOOL_DLOPEN], [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])])
7759 -# AC_LIBTOOL_WIN32_DLL - declare package support for building win32 dll's
7760 -AC_DEFUN([AC_LIBTOOL_WIN32_DLL], [AC_BEFORE([$0], [AC_LIBTOOL_SETUP])])
7762 + _LT_AC_TAGVAR(archive_cmds, $1)='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
7763 + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
7764 + _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
7766 + # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
7767 + # that the semantics of dynamic libraries on AmigaOS, at least up
7768 + # to version 4, is to share data among multiple programs linked
7769 + # with the same dynamic library. Since this doesn't match the
7770 + # behavior of shared libraries on other platforms, we can't use
7772 + _LT_AC_TAGVAR(ld_shlibs, $1)=no
7775 -# AC_ENABLE_SHARED - implement the --enable-shared flag
7776 -# Usage: AC_ENABLE_SHARED[(DEFAULT)]
7777 -# Where DEFAULT is either `yes' or `no'. If omitted, it defaults to
7779 -AC_DEFUN([AC_ENABLE_SHARED],
7780 -[define([AC_ENABLE_SHARED_DEFAULT], ifelse($1, no, no, yes))dnl
7781 -AC_ARG_ENABLE(shared,
7782 -changequote(<<, >>)dnl
7783 -<< --enable-shared[=PKGS] build shared libraries [default=>>AC_ENABLE_SHARED_DEFAULT],
7784 -changequote([, ])dnl
7785 -[p=${PACKAGE-default}
7787 -yes) enable_shared=yes ;;
7788 -no) enable_shared=no ;;
7791 - # Look at the argument we got. We use all the common list separators.
7792 - IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
7793 - for pkg in $enableval; do
7794 - if test "X$pkg" = "X$p"; then
7798 - IFS="$ac_save_ifs"
7801 -enable_shared=AC_ENABLE_SHARED_DEFAULT)dnl
7804 + if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7805 + _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
7806 + # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
7807 + # support --undefined. This deserves some investigation. FIXME
7808 + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7810 + _LT_AC_TAGVAR(ld_shlibs, $1)=no
7814 -# AC_DISABLE_SHARED - set the default shared flag to --disable-shared
7815 -AC_DEFUN([AC_DISABLE_SHARED],
7816 -[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
7817 -AC_ENABLE_SHARED(no)])
7818 + cygwin* | mingw* | pw32*)
7819 + # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless,
7820 + # as there is no search path for DLLs.
7821 + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
7822 + _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
7823 + _LT_AC_TAGVAR(always_export_symbols, $1)=no
7824 + _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
7825 + _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGS]] /s/.* \([[^ ]]*\)/\1 DATA/'\'' | $SED -e '\''/^[[AITW]] /s/.* //'\'' | sort | uniq > $export_symbols'
7827 + if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
7828 + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
7829 + # If the export-symbols file already is a .def file (1st line
7830 + # is EXPORTS), use it as is; otherwise, prepend...
7831 + _LT_AC_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
7832 + cp $export_symbols $output_objdir/$soname.def;
7834 + echo EXPORTS > $output_objdir/$soname.def;
7835 + cat $export_symbols >> $output_objdir/$soname.def;
7837 + $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
7843 -# AC_ENABLE_STATIC - implement the --enable-static flag
7844 -# Usage: AC_ENABLE_STATIC[(DEFAULT)]
7845 -# Where DEFAULT is either `yes' or `no'. If omitted, it defaults to
7847 -AC_DEFUN([AC_ENABLE_STATIC],
7848 -[define([AC_ENABLE_STATIC_DEFAULT], ifelse($1, no, no, yes))dnl
7849 -AC_ARG_ENABLE(static,
7850 -changequote(<<, >>)dnl
7851 -<< --enable-static[=PKGS] build static libraries [default=>>AC_ENABLE_STATIC_DEFAULT],
7852 -changequote([, ])dnl
7853 -[p=${PACKAGE-default}
7855 -yes) enable_static=yes ;;
7856 -no) enable_static=no ;;
7859 - # Look at the argument we got. We use all the common list separators.
7860 - IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
7861 - for pkg in $enableval; do
7862 - if test "X$pkg" = "X$p"; then
7866 - IFS="$ac_save_ifs"
7869 -enable_static=AC_ENABLE_STATIC_DEFAULT)dnl
7871 + netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
7872 + if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7873 + _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
7876 + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7877 + _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7881 -# AC_DISABLE_STATIC - set the default static flag to --disable-static
7882 -AC_DEFUN([AC_DISABLE_STATIC],
7883 -[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
7884 -AC_ENABLE_STATIC(no)])
7885 + solaris* | sysv5*)
7886 + if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
7887 + _LT_AC_TAGVAR(ld_shlibs, $1)=no
7890 +*** Warning: The releases 2.8.* of the GNU linker cannot reliably
7891 +*** create shared libraries on Solaris systems. Therefore, libtool
7892 +*** is disabling shared libraries support. We urge you to upgrade GNU
7893 +*** binutils to release 2.9.1 or newer. Another option is to modify
7894 +*** your PATH or compiler configuration so that the native linker is
7895 +*** used, and then restart.
7898 + elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7899 + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7900 + _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7902 + _LT_AC_TAGVAR(ld_shlibs, $1)=no
7906 -# AC_ENABLE_FAST_INSTALL - implement the --enable-fast-install flag
7907 -# Usage: AC_ENABLE_FAST_INSTALL[(DEFAULT)]
7908 -# Where DEFAULT is either `yes' or `no'. If omitted, it defaults to
7910 -AC_DEFUN([AC_ENABLE_FAST_INSTALL],
7911 -[define([AC_ENABLE_FAST_INSTALL_DEFAULT], ifelse($1, no, no, yes))dnl
7912 -AC_ARG_ENABLE(fast-install,
7913 -changequote(<<, >>)dnl
7914 -<< --enable-fast-install[=PKGS] optimize for fast installation [default=>>AC_ENABLE_FAST_INSTALL_DEFAULT],
7915 -changequote([, ])dnl
7916 -[p=${PACKAGE-default}
7918 -yes) enable_fast_install=yes ;;
7919 -no) enable_fast_install=no ;;
7921 - enable_fast_install=no
7922 - # Look at the argument we got. We use all the common list separators.
7923 - IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
7924 - for pkg in $enableval; do
7925 - if test "X$pkg" = "X$p"; then
7926 - enable_fast_install=yes
7928 + _LT_AC_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7930 + _LT_AC_TAGVAR(hardcode_direct, $1)=yes
7931 + _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
7935 + if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7936 + tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7937 + _LT_AC_TAGVAR(archive_cmds, $1)="$tmp_archive_cmds"
7938 + supports_anon_versioning=no
7939 + case `$LD -v 2>/dev/null` in
7940 + *\ [01].* | *\ 2.[[0-9]].* | *\ 2.10.*) ;; # catch versions < 2.11
7941 + *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
7942 + *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
7943 + *\ 2.11.*) ;; # other 2.11 versions
7944 + *) supports_anon_versioning=yes ;;
7946 + if test $supports_anon_versioning = yes; then
7947 + _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $output_objdir/$libname.ver~
7948 +cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
7949 +$echo "local: *; };" >> $output_objdir/$libname.ver~
7950 + $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
7952 + _LT_AC_TAGVAR(archive_expsym_cmds, $1)="$tmp_archive_cmds"
7954 + _LT_AC_TAGVAR(link_all_deplibs, $1)=no
7956 + _LT_AC_TAGVAR(ld_shlibs, $1)=no
7959 - IFS="$ac_save_ifs"
7962 -enable_fast_install=AC_ENABLE_FAST_INSTALL_DEFAULT)dnl
7966 -# AC_DISABLE_FAST_INSTALL - set the default to --disable-fast-install
7967 -AC_DEFUN([AC_DISABLE_FAST_INSTALL],
7968 -[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
7969 -AC_ENABLE_FAST_INSTALL(no)])
7971 + if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7972 + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7973 + _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7975 + _LT_AC_TAGVAR(ld_shlibs, $1)=no
7980 + if test "$_LT_AC_TAGVAR(ld_shlibs, $1)" = yes; then
7981 + runpath_var=LD_RUN_PATH
7982 + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir'
7983 + _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
7984 + # ancient GNU ld didn't support --whole-archive et. al.
7985 + if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
7986 + _LT_AC_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
7988 + _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
7992 + # PORTME fill in a description of your system's linker (not GNU ld)
7995 + _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
7996 + _LT_AC_TAGVAR(always_export_symbols, $1)=yes
7997 + _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
7998 + # Note: this linker hardcodes the directories in LIBPATH if there
7999 + # are no directories specified by -L.
8000 + _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
8001 + if test "$GCC" = yes && test -z "$link_static_flag"; then
8002 + # Neither direct hardcoding nor static linking is supported with a
8003 + # broken collect2.
8004 + _LT_AC_TAGVAR(hardcode_direct, $1)=unsupported
8009 + if test "$host_cpu" = ia64; then
8010 + # On IA64, the linker does run time linking by default, so we don't
8011 + # have to do anything special.
8012 + aix_use_runtimelinking=no
8013 + exp_sym_flag='-Bexport'
8016 + # If we're using GNU nm, then we don't want the "-C" option.
8017 + # -C means demangle to AIX nm, but means don't demangle with GNU nm
8018 + if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
8019 + _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\[$]2 == "T") || (\[$]2 == "D") || (\[$]2 == "B")) && ([substr](\[$]3,1,1) != ".")) { print \[$]3 } }'\'' | sort -u > $export_symbols'
8021 + _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\[$]2 == "T") || (\[$]2 == "D") || (\[$]2 == "B")) && ([substr](\[$]3,1,1) != ".")) { print \[$]3 } }'\'' | sort -u > $export_symbols'
8023 + aix_use_runtimelinking=no
8025 -# AC_LIBTOOL_PICMODE - implement the --with-pic flag
8026 -# Usage: AC_LIBTOOL_PICMODE[(MODE)]
8027 -# Where MODE is either `yes' or `no'. If omitted, it defaults to
8029 -AC_DEFUN([AC_LIBTOOL_PICMODE],
8030 -[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
8031 -pic_mode=ifelse($#,1,$1,default)])
8032 + # Test if we are trying to use run time linking or normal
8033 + # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8034 + # need to do runtime linking.
8035 + case $host_os in aix4.[[23]]|aix4.[[23]].*|aix5*)
8036 + for ld_flag in $LDFLAGS; do
8037 + if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8038 + aix_use_runtimelinking=yes
8044 + exp_sym_flag='-bexport'
8045 + no_entry_flag='-bnoentry'
8048 -# AC_PATH_TOOL_PREFIX - find a file program which can recognise shared library
8049 -AC_DEFUN([AC_PATH_TOOL_PREFIX],
8050 -[AC_MSG_CHECKING([for $1])
8051 -AC_CACHE_VAL(lt_cv_path_MAGIC_CMD,
8052 -[case $MAGIC_CMD in
8054 - lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8057 - lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
8060 - ac_save_MAGIC_CMD="$MAGIC_CMD"
8061 - IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
8062 -dnl $ac_dummy forces splitting on constant user-supplied paths.
8063 -dnl POSIX.2 word splitting is done only on the output of word expansions,
8064 -dnl not every word. This closes a longstanding sh security hole.
8065 - ac_dummy="ifelse([$2], , $PATH, [$2])"
8066 - for ac_dir in $ac_dummy; do
8067 - test -z "$ac_dir" && ac_dir=.
8068 - if test -f $ac_dir/$1; then
8069 - lt_cv_path_MAGIC_CMD="$ac_dir/$1"
8070 - if test -n "$file_magic_test_file"; then
8071 - case $deplibs_check_method in
8073 - file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
8074 - MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8075 - if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8076 - egrep "$file_magic_regex" > /dev/null; then
8078 + # When large executables or shared objects are built, AIX ld can
8079 + # have problems creating the table of contents. If linking a library
8080 + # or program results in "error TOC overflow" add -mminimal-toc to
8081 + # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
8082 + # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8084 + _LT_AC_TAGVAR(archive_cmds, $1)=''
8085 + _LT_AC_TAGVAR(hardcode_direct, $1)=yes
8086 + _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=':'
8087 + _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
8089 + if test "$GCC" = yes; then
8090 + case $host_os in aix4.[012]|aix4.[012].*)
8091 + # We only want to do this on AIX 4.2 and lower, the check
8092 + # below for broken collect2 doesn't work under 4.3+
8093 + collect2name=`${CC} -print-prog-name=collect2`
8094 + if test -f "$collect2name" && \
8095 + strings "$collect2name" | grep resolve_lib_name >/dev/null
8097 + # We have reworked collect2
8098 + _LT_AC_TAGVAR(hardcode_direct, $1)=yes
8102 -*** Warning: the command libtool uses to detect shared libraries,
8103 -*** $file_magic_cmd, produces output that libtool cannot recognize.
8104 -*** The result is that libtool may fail to recognize shared libraries
8105 -*** as such. This will affect the creation of libtool libraries that
8106 -*** depend on shared libraries, but programs linked with such libtool
8107 -*** libraries will work regardless of this problem. Nevertheless, you
8108 -*** may want to report the problem to your system manager and/or to
8109 -*** bug-libtool@gnu.org
8113 + # We have old collect2
8114 + _LT_AC_TAGVAR(hardcode_direct, $1)=unsupported
8115 + # It fails to find uninstalled libraries when the uninstalled
8116 + # path is not listed in the libpath. Setting hardcode_minus_L
8117 + # to unsupported forces relinking
8118 + _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
8119 + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
8120 + _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
8123 + shared_flag='-shared'
8126 + if test "$host_cpu" = ia64; then
8127 + # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8128 + # chokes on -Wl,-G. The following line is correct:
8131 + if test "$aix_use_runtimelinking" = yes; then
8132 + shared_flag='${wl}-G'
8134 + shared_flag='${wl}-bM:SRE'
8141 - IFS="$ac_save_ifs"
8142 - MAGIC_CMD="$ac_save_MAGIC_CMD"
8145 -MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8146 -if test -n "$MAGIC_CMD"; then
8147 - AC_MSG_RESULT($MAGIC_CMD)
8153 + # It seems that -bexpall does not export symbols beginning with
8154 + # underscore (_), so it is better to generate a list of symbols to export.
8155 + _LT_AC_TAGVAR(always_export_symbols, $1)=yes
8156 + if test "$aix_use_runtimelinking" = yes; then
8157 + # Warning - without using the other runtime loading flags (-brtl),
8158 + # -berok will link without error, but may produce a broken library.
8159 + _LT_AC_TAGVAR(allow_undefined_flag, $1)='-berok'
8160 + # Determine the default libpath from the value encoded in an empty executable.
8161 + _LT_AC_SYS_LIBPATH_AIX
8162 + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
8163 + _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
8165 + if test "$host_cpu" = ia64; then
8166 + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib'
8167 + _LT_AC_TAGVAR(allow_undefined_flag, $1)="-z nodefs"
8168 + _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
8170 + # Determine the default libpath from the value encoded in an empty executable.
8171 + _LT_AC_SYS_LIBPATH_AIX
8172 + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
8173 + # Warning - without using the other run time loading flags,
8174 + # -berok will link without error, but may produce a broken library.
8175 + _LT_AC_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok'
8176 + _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok'
8177 + # -bexpall does not export symbols beginning with underscore (_)
8178 + _LT_AC_TAGVAR(always_export_symbols, $1)=yes
8179 + # Exported symbols can be pulled into shared objects from archives
8180 + _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=' '
8181 + _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes
8182 + # This is similar to how AIX traditionally builds it's shared libraries.
8183 + _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
8188 -# AC_PATH_MAGIC - find a file program which can recognise a shared library
8189 -AC_DEFUN([AC_PATH_MAGIC],
8190 -[AC_REQUIRE([AC_CHECK_TOOL_PREFIX])dnl
8191 -AC_PATH_TOOL_PREFIX(${ac_tool_prefix}file, /usr/bin:$PATH)
8192 -if test -z "$lt_cv_path_MAGIC_CMD"; then
8193 - if test -n "$ac_tool_prefix"; then
8194 - AC_PATH_TOOL_PREFIX(file, /usr/bin:$PATH)
8201 + _LT_AC_TAGVAR(archive_cmds, $1)='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
8202 + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
8203 + _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
8204 + # see comment about different semantics on the GNU ld section
8205 + _LT_AC_TAGVAR(ld_shlibs, $1)=no
8209 + _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)=-rdynamic
8212 -# AC_PROG_LD - find the path to the GNU or non-GNU linker
8213 -AC_DEFUN([AC_PROG_LD],
8214 -[AC_ARG_WITH(gnu-ld,
8215 -[ --with-gnu-ld assume the C compiler uses GNU ld [default=no]],
8216 -test "$withval" = no || with_gnu_ld=yes, with_gnu_ld=no)
8217 -AC_REQUIRE([AC_PROG_CC])dnl
8218 -AC_REQUIRE([AC_CANONICAL_HOST])dnl
8219 -AC_REQUIRE([AC_CANONICAL_BUILD])dnl
8220 -AC_REQUIRE([_LT_AC_LIBTOOL_SYS_PATH_SEPARATOR])dnl
8222 -if test "$GCC" = yes; then
8223 - # Check if gcc -print-prog-name=ld gives a path.
8224 - AC_MSG_CHECKING([for ld used by GCC])
8227 - # gcc leaves a trailing carriage return which upsets mingw
8228 - ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
8230 - ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
8233 - # Accept absolute paths.
8234 - [[\\/]]* | [[A-Za-z]]:[[\\/]]*)
8235 - re_direlt='/[[^/]][[^/]]*/\.\./'
8236 - # Canonicalize the path of ld
8237 - ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
8238 - while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
8239 - ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
8241 - test -z "$LD" && LD="$ac_prog"
8242 + cygwin* | mingw* | pw32*)
8243 + # When not using gcc, we currently assume that we are using
8244 + # Microsoft Visual C++.
8245 + # hardcode_libdir_flag_spec is actually meaningless, as there is
8246 + # no search path for DLLs.
8247 + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=' '
8248 + _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
8249 + # Tell ltmain to make .lib files, not .a files.
8251 + # Tell ltmain to make .dll files, not .so files.
8252 + shrext_cmds=".dll"
8253 + # FIXME: Setting linknames here is a bad hack.
8254 + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
8255 + # The linker will automatically build a .lib file if we build a DLL.
8256 + _LT_AC_TAGVAR(old_archive_From_new_cmds, $1)='true'
8257 + # FIXME: Should let the user specify the lib program.
8258 + _LT_AC_TAGVAR(old_archive_cmds, $1)='lib /OUT:$oldlib$oldobjs$old_deplibs'
8259 + fix_srcfile_path='`cygpath -w "$srcfile"`'
8260 + _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
8263 - # If it fails, then pretend we aren't using GCC.
8267 - # If it is relative, then search for the first ld in PATH.
8268 - with_gnu_ld=unknown
8271 -elif test "$with_gnu_ld" = yes; then
8272 - AC_MSG_CHECKING([for GNU ld])
8274 - AC_MSG_CHECKING([for non-GNU ld])
8276 -AC_CACHE_VAL(lt_cv_path_LD,
8277 -[if test -z "$LD"; then
8278 - IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8279 - for ac_dir in $PATH; do
8280 - test -z "$ac_dir" && ac_dir=.
8281 - if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
8282 - lt_cv_path_LD="$ac_dir/$ac_prog"
8283 - # Check to see if the program is GNU ld. I'd rather use --version,
8284 - # but apparently some GNU ld's only accept -v.
8285 - # Break only if it was the GNU/non-GNU ld that we prefer.
8286 - if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
8287 - test "$with_gnu_ld" != no && break
8289 + darwin* | rhapsody*)
8290 + if test "$GXX" = yes ; then
8291 + _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
8292 + case "$host_os" in
8293 + rhapsody* | darwin1.[[012]])
8294 + _LT_AC_TAGVAR(allow_undefined_flag, $1)='-undefined suppress'
8296 + *) # Darwin 1.3 on
8297 + if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
8298 + _LT_AC_TAGVAR(allow_undefined_flag, $1)='-flat_namespace -undefined suppress'
8300 - test "$with_gnu_ld" != yes && break
8301 + case ${MACOSX_DEPLOYMENT_TARGET} in
8303 + _LT_AC_TAGVAR(allow_undefined_flag, $1)='-flat_namespace -undefined suppress'
8306 + _LT_AC_TAGVAR(allow_undefined_flag, $1)='-undefined dynamic_lookup'
8312 + lt_int_apple_cc_single_mod=no
8313 + output_verbose_link_cmd='echo'
8314 + if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
8315 + lt_int_apple_cc_single_mod=yes
8317 + if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
8318 + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
8320 + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
8322 + _LT_AC_TAGVAR(module_cmds, $1)='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8323 + # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
8324 + if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
8325 + _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}'
8327 + _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
8329 + _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}'
8330 + _LT_AC_TAGVAR(hardcode_direct, $1)=no
8331 + _LT_AC_TAGVAR(hardcode_automatic, $1)=yes
8332 + _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
8333 + _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='-all_load $convenience'
8334 + _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
8336 + _LT_AC_TAGVAR(ld_shlibs, $1)=no
8339 - IFS="$ac_save_ifs"
8341 - lt_cv_path_LD="$LD" # Let the user override the test with a path.
8343 -LD="$lt_cv_path_LD"
8344 -if test -n "$LD"; then
8345 - AC_MSG_RESULT($LD)
8349 -test -z "$LD" && AC_MSG_ERROR([no acceptable ld found in \$PATH])
8355 -AC_DEFUN([AC_PROG_LD_GNU],
8356 -[AC_CACHE_CHECK([if the linker ($LD) is GNU ld], lt_cv_prog_gnu_ld,
8357 -[# I'd rather use --version here, but apparently some GNU ld's only accept -v.
8358 -if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
8359 - lt_cv_prog_gnu_ld=yes
8361 - lt_cv_prog_gnu_ld=no
8363 -with_gnu_ld=$lt_cv_prog_gnu_ld
8366 + _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8367 + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
8368 + _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
8371 -# AC_PROG_LD_RELOAD_FLAG - find reload flag for linker
8372 -# -- PORTME Some linkers may need a different reload flag.
8373 -AC_DEFUN([AC_PROG_LD_RELOAD_FLAG],
8374 -[AC_CACHE_CHECK([for $LD option to reload object files], lt_cv_ld_reload_flag,
8375 -[lt_cv_ld_reload_flag='-r'])
8376 -reload_flag=$lt_cv_ld_reload_flag
8377 -test -n "$reload_flag" && reload_flag=" $reload_flag"
8380 + _LT_AC_TAGVAR(ld_shlibs, $1)=no
8383 -# AC_DEPLIBS_CHECK_METHOD - how to check for library dependencies
8384 -# -- PORTME fill in with the dynamic library characteristics
8385 -AC_DEFUN([AC_DEPLIBS_CHECK_METHOD],
8386 -[AC_CACHE_CHECK([how to recognise dependent libraries],
8387 -lt_cv_deplibs_check_method,
8388 -[lt_cv_file_magic_cmd='$MAGIC_CMD'
8389 -lt_cv_file_magic_test_file=
8390 -lt_cv_deplibs_check_method='unknown'
8391 -# Need to set the preceding variable on all platforms that support
8392 -# interlibrary dependencies.
8393 -# 'none' -- dependencies not supported.
8394 -# `unknown' -- same as none, but documents that we really don't know.
8395 -# 'pass_all' -- all dependencies passed with no checks.
8396 -# 'test_compile' -- check by making test program.
8397 -# 'file_magic [[regex]]' -- check by looking for files in library path
8398 -# which responds to the $file_magic_cmd with a given egrep regex.
8399 -# If you have `file' or equivalent on your system and you're not sure
8400 -# whether `pass_all' will *always* work, you probably want this one.
8401 + # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8402 + # support. Future versions do this automatically, but an explicit c++rt0.o
8403 + # does not break anything, and helps significantly (at the cost of a little
8406 + _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8407 + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
8408 + _LT_AC_TAGVAR(hardcode_direct, $1)=yes
8409 + _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
8414 - lt_cv_deplibs_check_method=pass_all
8416 + # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8418 + _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8419 + _LT_AC_TAGVAR(hardcode_direct, $1)=yes
8420 + _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
8421 + _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
8425 - lt_cv_deplibs_check_method=pass_all
8427 + # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8428 + freebsd* | kfreebsd*-gnu)
8429 + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8430 + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
8431 + _LT_AC_TAGVAR(hardcode_direct, $1)=yes
8432 + _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
8436 - lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (shared object|dynamic lib)'
8437 - lt_cv_file_magic_cmd='/usr/bin/file -L'
8438 - lt_cv_file_magic_test_file=/shlib/libc.so
8441 + if test "$GCC" = yes; then
8442 + _LT_AC_TAGVAR(archive_cmds, $1)='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
8444 + _LT_AC_TAGVAR(archive_cmds, $1)='$rm $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
8446 + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
8447 + _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
8448 + _LT_AC_TAGVAR(hardcode_direct, $1)=yes
8450 + # hardcode_minus_L: Not really in the search PATH,
8451 + # but as the default location of the library.
8452 + _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
8453 + _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
8456 -cygwin* | mingw* | pw32*)
8457 - lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
8458 - lt_cv_file_magic_cmd='$OBJDUMP -f'
8460 + hpux10* | hpux11*)
8461 + if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8462 + case "$host_cpu" in
8464 + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8467 + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8471 + case "$host_cpu" in
8473 + _LT_AC_TAGVAR(archive_cmds, $1)='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
8476 + _LT_AC_TAGVAR(archive_cmds, $1)='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8480 + if test "$with_gnu_ld" = no; then
8481 + case "$host_cpu" in
8483 + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
8484 + _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='+b $libdir'
8485 + _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
8486 + _LT_AC_TAGVAR(hardcode_direct, $1)=no
8487 + _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
8490 + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
8491 + _LT_AC_TAGVAR(hardcode_direct, $1)=no
8492 + _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
8494 + # hardcode_minus_L: Not really in the search PATH,
8495 + # but as the default location of the library.
8496 + _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
8499 + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
8500 + _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
8501 + _LT_AC_TAGVAR(hardcode_direct, $1)=yes
8502 + _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
8504 + # hardcode_minus_L: Not really in the search PATH,
8505 + # but as the default location of the library.
8506 + _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
8512 -darwin* | rhapsody*)
8513 - lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
8514 - lt_cv_file_magic_cmd='/usr/bin/file -L'
8515 - case "$host_os" in
8516 - rhapsody* | darwin1.[[012]])
8517 - lt_cv_file_magic_test_file=`echo /System/Library/Frameworks/System.framework/Versions/*/System | head -1`
8519 - *) # Darwin 1.3 on
8520 - lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
8524 + irix5* | irix6* | nonstopux*)
8525 + if test "$GCC" = yes; then
8526 + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
8528 + _LT_AC_TAGVAR(archive_cmds, $1)='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
8529 + _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='-rpath $libdir'
8531 + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
8532 + _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
8533 + _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
8537 - if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
8540 - # Not sure whether the presence of OpenBSD here was a mistake.
8541 - # Let's accept both of them until this is cleared up.
8542 - lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[[3-9]]86 (compact )?demand paged shared library'
8543 - lt_cv_file_magic_cmd=/usr/bin/file
8544 - lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
8545 + netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
8546 + if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8547 + _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
8549 + _LT_AC_TAGVAR(archive_cmds, $1)='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
8551 + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
8552 + _LT_AC_TAGVAR(hardcode_direct, $1)=yes
8553 + _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
8557 + _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8558 + _LT_AC_TAGVAR(hardcode_direct, $1)=yes
8559 + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
8560 + _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
8561 + _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
8565 + _LT_AC_TAGVAR(hardcode_direct, $1)=yes
8566 + _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
8567 + if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8568 + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8569 + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
8570 + _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
8573 + openbsd[[01]].* | openbsd2.[[0-7]] | openbsd2.[[0-7]].*)
8574 + _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8575 + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
8578 + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8579 + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
8586 + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
8587 + _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
8588 + _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
8589 + _LT_AC_TAGVAR(archive_cmds, $1)='$echo "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$echo "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$echo DATA >> $output_objdir/$libname.def~$echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~$echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
8590 + _LT_AC_TAGVAR(old_archive_From_new_cmds, $1)='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8594 + if test "$GCC" = yes; then
8595 + _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
8596 + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
8598 + _LT_AC_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
8599 + _LT_AC_TAGVAR(archive_cmds, $1)='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
8601 + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
8602 + _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
8606 - lt_cv_deplibs_check_method=pass_all
8611 - lt_cv_deplibs_check_method=pass_all
8613 + osf4* | osf5*) # as osf3* with the addition of -msym flag
8614 + if test "$GCC" = yes; then
8615 + _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
8616 + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
8617 + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
8619 + _LT_AC_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
8620 + _LT_AC_TAGVAR(archive_cmds, $1)='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
8621 + _LT_AC_TAGVAR(archive_expsym_cmds, $1)='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
8622 + $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib~$rm $lib.exp'
8624 -hpux10.20*|hpux11*)
8625 - lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|PA-RISC[[0-9]].[[0-9]]) shared library'
8626 - lt_cv_file_magic_cmd=/usr/bin/file
8627 - lt_cv_file_magic_test_file=/usr/lib/libc.sl
8629 + # Both c and cxx compiler support -rpath directly
8630 + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
8632 + _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
8635 -irix5* | irix6* | nonstopux*)
8637 - irix5* | nonstopux*)
8638 - # this will be overridden with pass_all, but let us keep it just in case
8639 - lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
8643 - *-32|*"-32 ") libmagic=32-bit;;
8644 - *-n32|*"-n32 ") libmagic=N32;;
8645 - *-64|*"-64 ") libmagic=64-bit;;
8646 - *) libmagic=never-match;;
8648 - # this will be overridden with pass_all, but let us keep it just in case
8649 - lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[[1234]] dynamic lib MIPS - version 1"
8652 - lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
8653 - lt_cv_deplibs_check_method=pass_all
8656 + _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8657 + _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
8658 + _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport'
8659 + runpath_var=LD_RUN_PATH
8660 + hardcode_runpath_var=yes
8663 -# This must be Linux ELF.
8666 - alpha* | hppa* | i*86 | mips | mipsel | powerpc* | sparc* | ia64* | arm* | m68k)
8667 - lt_cv_deplibs_check_method=pass_all ;;
8669 - # glibc up to 2.1.1 does not perform some relocations on ARM
8670 - lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB (shared object|dynamic lib )' ;;
8672 - lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
8675 + _LT_AC_TAGVAR(no_undefined_flag, $1)=' -z text'
8676 + if test "$GCC" = yes; then
8677 + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8678 + _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8679 + $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
8681 + _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8682 + _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8683 + $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
8685 + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
8686 + _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
8688 + solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
8689 + *) # Supported since Solaris 2.6 (maybe 2.5.1?)
8690 + _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract' ;;
8692 + _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
8696 - if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
8697 - lt_cv_deplibs_check_method='match_pattern /lib[[^/\.]]+\.so\.[[0-9]]+\.[[0-9]]+$'
8699 - lt_cv_deplibs_check_method='match_pattern /lib[[^/\.]]+\.so$'
8703 + if test "x$host_vendor" = xsequent; then
8704 + # Use $CC to link under sequent, because it throws in some extra .o
8705 + # files that make .init and .fini sections work.
8706 + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8708 + _LT_AC_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8710 + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
8711 + _LT_AC_TAGVAR(hardcode_direct, $1)=yes
8712 + _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
8713 + _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
8717 - lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (executable|dynamic lib)'
8718 - lt_cv_file_magic_cmd=/usr/bin/file
8719 - lt_cv_file_magic_test_file=/usr/lib/libnls.so
8722 + case $host_vendor in
8724 + _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8725 + _LT_AC_TAGVAR(hardcode_direct, $1)=yes # is this really true???
8728 + ## LD is ld it makes a PLAMLIB
8729 + ## CC just makes a GrossModule.
8730 + _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8731 + _LT_AC_TAGVAR(reload_cmds, $1)='$CC -r -o $output$reload_objs'
8732 + _LT_AC_TAGVAR(hardcode_direct, $1)=no
8735 + _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8736 + _LT_AC_TAGVAR(hardcode_direct, $1)=no #Motorola manual says yes, but my tests say they lie
8739 + runpath_var='LD_RUN_PATH'
8740 + _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
8744 - lt_cv_file_magic_cmd=/usr/bin/file
8745 - lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
8746 - if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8747 - lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB shared object'
8749 - lt_cv_deplibs_check_method='file_magic OpenBSD.* shared library'
8753 + _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8754 + _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
8755 + _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='-Bexport'
8758 -osf3* | osf4* | osf5*)
8759 - # this will be overridden with pass_all, but let us keep it just in case
8760 - lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
8761 - lt_cv_file_magic_test_file=/shlib/libc.so
8762 - lt_cv_deplibs_check_method=pass_all
8765 + if test -d /usr/nec; then
8766 + _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8767 + _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
8768 + runpath_var=LD_RUN_PATH
8769 + hardcode_runpath_var=yes
8770 + _LT_AC_TAGVAR(ld_shlibs, $1)=yes
8775 - lt_cv_deplibs_check_method=pass_all
8778 + _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8779 + _LT_AC_TAGVAR(hardcode_direct, $1)=yes
8780 + _LT_AC_TAGVAR(hardcode_minus_L, $1)=no
8781 + _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
8782 + hardcode_runpath_var=yes
8783 + runpath_var=LD_RUN_PATH
8787 - lt_cv_deplibs_check_method=pass_all
8788 - lt_cv_file_magic_test_file=/lib/libc.so
8790 + sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[[78]]* | unixware7*)
8791 + _LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z ${wl}text'
8792 + if test "$GCC" = yes; then
8793 + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8795 + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8797 + runpath_var='LD_RUN_PATH'
8798 + _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
8801 -sysv5uw[[78]]* | sysv4*uw2*)
8802 - lt_cv_deplibs_check_method=pass_all
8805 + _LT_AC_TAGVAR(no_undefined_flag, $1)=' -z text'
8806 + # $CC -shared without GNU ld will not create a library from C++
8807 + # object files and a static libstdc++, better avoid it by now
8808 + _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8809 + _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8810 + $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
8811 + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=
8812 + _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
8813 + runpath_var='LD_RUN_PATH'
8816 -sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
8817 - case $host_vendor in
8819 - 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]]'
8820 - lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
8823 - lt_cv_deplibs_check_method=pass_all
8826 - lt_cv_file_magic_cmd='/bin/file'
8827 - lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB (shared object|dynamic lib )'
8830 - lt_cv_file_magic_cmd='/bin/file'
8831 - lt_cv_deplibs_check_method="file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB dynamic lib"
8832 - lt_cv_file_magic_test_file=/lib/libc.so
8835 - lt_cv_deplibs_check_method=pass_all
8841 -file_magic_cmd=$lt_cv_file_magic_cmd
8842 -deplibs_check_method=$lt_cv_deplibs_check_method
8844 + _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8845 + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
8846 + _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
8850 + _LT_AC_TAGVAR(ld_shlibs, $1)=no
8855 +AC_MSG_RESULT([$_LT_AC_TAGVAR(ld_shlibs, $1)])
8856 +test "$_LT_AC_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no
8858 +variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
8859 +if test "$GCC" = yes; then
8860 + variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
8863 -# AC_PROG_NM - find the path to a BSD-compatible name lister
8864 -AC_DEFUN([AC_PROG_NM],
8865 -[AC_REQUIRE([_LT_AC_LIBTOOL_SYS_PATH_SEPARATOR])dnl
8866 -AC_MSG_CHECKING([for BSD-compatible nm])
8867 -AC_CACHE_VAL(lt_cv_path_NM,
8868 -[if test -n "$NM"; then
8869 - # Let the user override the test.
8870 - lt_cv_path_NM="$NM"
8872 - IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8873 - for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
8874 - test -z "$ac_dir" && ac_dir=.
8875 - tmp_nm=$ac_dir/${ac_tool_prefix}nm
8876 - if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then
8877 - # Check to see if the nm accepts a BSD-compat flag.
8878 - # Adding the `sed 1q' prevents false positives on HP-UX, which says:
8879 - # nm: unknown option "B" ignored
8880 - # Tru64's nm complains that /dev/null is an invalid object file
8881 - if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then
8882 - lt_cv_path_NM="$tmp_nm -B"
8884 - elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
8885 - lt_cv_path_NM="$tmp_nm -p"
8888 +# Do we need to explicitly link libc?
8890 +case "x$_LT_AC_TAGVAR(archive_cmds_need_lc, $1)" in
8892 + # Assume -lc should be added
8893 + _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes
8895 + if test "$enable_shared" = yes && test "$GCC" = yes; then
8896 + case $_LT_AC_TAGVAR(archive_cmds, $1) in
8898 + # FIXME: we may have to deal with multi-command sequences.
8901 + # Test whether the compiler implicitly links with -lc since on some
8902 + # systems, -lgcc has to come before -lc. If gcc already passes -lc
8903 + # to ld, don't add -lc before -lgcc.
8904 + AC_MSG_CHECKING([whether -lc should be explicitly linked in])
8906 + printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8908 + if AC_TRY_EVAL(ac_compile) 2>conftest.err; then
8911 + libobjs=conftest.$ac_objext
8913 + wl=$_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)
8919 + lt_save_allow_undefined_flag=$_LT_AC_TAGVAR(allow_undefined_flag, $1)
8920 + _LT_AC_TAGVAR(allow_undefined_flag, $1)=
8921 + if AC_TRY_EVAL(_LT_AC_TAGVAR(archive_cmds, $1) 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1)
8923 + _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
8925 + _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes
8927 + _LT_AC_TAGVAR(allow_undefined_flag, $1)=$lt_save_allow_undefined_flag
8929 - lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
8930 - continue # so that we can try to find one that supports BSD flags
8931 + cat conftest.err 1>&5
8935 - IFS="$ac_save_ifs"
8936 - test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
8938 -NM="$lt_cv_path_NM"
8939 -AC_MSG_RESULT([$NM])
8942 -# AC_CHECK_LIBM - check for math library
8943 -AC_DEFUN([AC_CHECK_LIBM],
8944 -[AC_REQUIRE([AC_CANONICAL_HOST])dnl
8947 -*-*-beos* | *-*-cygwin* | *-*-pw32*)
8948 - # These system don't have libm
8951 - AC_CHECK_LIB(mw, _mwvalidcheckl, LIBM="-lmw")
8952 - AC_CHECK_LIB(m, main, LIBM="$LIBM -lm")
8955 - AC_CHECK_LIB(m, main, LIBM="-lm")
8957 + AC_MSG_RESULT([$_LT_AC_TAGVAR(archive_cmds_need_lc, $1)])
8964 +])# AC_LIBTOOL_PROG_LD_SHLIBS
8966 -# AC_LIBLTDL_CONVENIENCE[(dir)] - sets LIBLTDL to the link flags for
8967 -# the libltdl convenience library and LTDLINCL to the include flags for
8968 -# the libltdl header and adds --enable-ltdl-convenience to the
8969 -# configure arguments. Note that LIBLTDL and LTDLINCL are not
8970 -# AC_SUBSTed, nor is AC_CONFIG_SUBDIRS called. If DIR is not
8971 -# provided, it is assumed to be `libltdl'. LIBLTDL will be prefixed
8972 -# with '${top_builddir}/' and LTDLINCL will be prefixed with
8973 -# '${top_srcdir}/' (note the single quotes!). If your package is not
8974 -# flat and you're not using automake, define top_builddir and
8975 -# top_srcdir appropriately in the Makefiles.
8976 -AC_DEFUN([AC_LIBLTDL_CONVENIENCE],
8977 -[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
8978 - case $enable_ltdl_convenience in
8979 - no) AC_MSG_ERROR([this package needs a convenience libltdl]) ;;
8980 - "") enable_ltdl_convenience=yes
8981 - ac_configure_args="$ac_configure_args --enable-ltdl-convenience" ;;
8983 - LIBLTDL='${top_builddir}/'ifelse($#,1,[$1],['libltdl'])/libltdlc.la
8984 - LTDLINCL='-I${top_srcdir}/'ifelse($#,1,[$1],['libltdl'])
8985 - # For backwards non-gettext consistent compatibility...
8986 - INCLTDL="$LTDLINCL"
8989 -# AC_LIBLTDL_INSTALLABLE[(dir)] - sets LIBLTDL to the link flags for
8990 -# the libltdl installable library and LTDLINCL to the include flags for
8991 -# the libltdl header and adds --enable-ltdl-install to the configure
8992 -# arguments. Note that LIBLTDL and LTDLINCL are not AC_SUBSTed, nor is
8993 -# AC_CONFIG_SUBDIRS called. If DIR is not provided and an installed
8994 -# libltdl is not found, it is assumed to be `libltdl'. LIBLTDL will
8995 -# be prefixed with '${top_builddir}/' and LTDLINCL will be prefixed
8996 -# with '${top_srcdir}/' (note the single quotes!). If your package is
8997 -# not flat and you're not using automake, define top_builddir and
8998 -# top_srcdir appropriately in the Makefiles.
8999 -# In the future, this macro may have to be called after AC_PROG_LIBTOOL.
9000 -AC_DEFUN([AC_LIBLTDL_INSTALLABLE],
9001 -[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
9002 - AC_CHECK_LIB(ltdl, main,
9003 - [test x"$enable_ltdl_install" != xyes && enable_ltdl_install=no],
9004 - [if test x"$enable_ltdl_install" = xno; then
9005 - AC_MSG_WARN([libltdl not installed, but installation disabled])
9007 - enable_ltdl_install=yes
9010 - if test x"$enable_ltdl_install" = x"yes"; then
9011 - ac_configure_args="$ac_configure_args --enable-ltdl-install"
9012 - LIBLTDL='${top_builddir}/'ifelse($#,1,[$1],['libltdl'])/libltdl.la
9013 - LTDLINCL='-I${top_srcdir}/'ifelse($#,1,[$1],['libltdl'])
9015 - ac_configure_args="$ac_configure_args --enable-ltdl-install=no"
9019 - # For backwards non-gettext consistent compatibility...
9020 - INCLTDL="$LTDLINCL"
9022 +# _LT_AC_FILE_LTDLL_C
9023 +# -------------------
9024 +# Be careful that the start marker always follows a newline.
9025 +AC_DEFUN([_LT_AC_FILE_LTDLL_C], [
9026 +# /* ltdll.c starts here */
9027 +# #define WIN32_LEAN_AND_MEAN
9028 +# #include <windows.h>
9029 +# #undef WIN32_LEAN_AND_MEAN
9030 +# #include <stdio.h>
9032 +# #ifndef __CYGWIN__
9033 +# # ifdef __CYGWIN32__
9034 +# # define __CYGWIN__ __CYGWIN32__
9038 +# #ifdef __cplusplus
9041 +# BOOL APIENTRY DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved);
9042 +# #ifdef __cplusplus
9046 +# #ifdef __CYGWIN__
9047 +# #include <cygwin/cygwin_dll.h>
9048 +# DECLARE_CYGWIN_DLL( DllMain );
9050 +# HINSTANCE __hDllInstance_base;
9053 +# DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved)
9055 +# __hDllInstance_base = hInst;
9058 +# /* ltdll.c ends here */
9059 +])# _LT_AC_FILE_LTDLL_C
9062 +# _LT_AC_TAGVAR(VARNAME, [TAGNAME])
9063 +# ---------------------------------
9064 +AC_DEFUN([_LT_AC_TAGVAR], [ifelse([$2], [], [$1], [$1_$2])])
9068 AC_DEFUN([AM_PROG_LIBTOOL], [AC_PROG_LIBTOOL])
9069 @@ -3709,6 +6828,16 @@
9070 # This is just to silence aclocal about the macro not being used
9071 ifelse([AC_DISABLE_FAST_INSTALL])
9073 +AC_DEFUN([LT_AC_PROG_GCJ],
9074 +[AC_CHECK_TOOL(GCJ, gcj, no)
9075 + test "x${GCJFLAGS+set}" = xset || GCJFLAGS="-g -O2"
9076 + AC_SUBST(GCJFLAGS)
9079 +AC_DEFUN([LT_AC_PROG_RC],
9080 +[AC_CHECK_TOOL(RC, windres, no)
9083 # NOTE: This macro has been submitted for inclusion into #
9084 # GNU Autoconf as AC_PROG_SED. When it is available in #
9085 # a released version of Autoconf we should remove this #
9086 @@ -3722,79 +6851,51 @@
9087 AC_CACHE_VAL(lt_cv_path_SED,
9088 [# Loop through the user's path and test for sed and gsed.
9089 # Then use that list of sed's as ones to test for truncation.
9090 -as_executable_p="test -f"
9091 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9095 test -z "$as_dir" && as_dir=.
9096 - for ac_prog in sed gsed; do
9097 + for lt_ac_prog in sed gsed; do
9098 for ac_exec_ext in '' $ac_executable_extensions; do
9099 - if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
9100 - _sed_list="$_sed_list $as_dir/$ac_prog$ac_exec_ext"
9101 + if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
9102 + lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
9108 - # Create a temporary directory, and hook for its removal unless debugging.
9111 - trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
9112 - trap '{ (exit 1); exit 1; }' 1 2 13 15
9115 -# Create a (secure) tmp directory for tmp files.
9118 - tmp=`(umask 077 && mktemp -d -q "$TMPDIR/sedXXXXXX") 2>/dev/null` &&
9119 - test -n "$tmp" && test -d "$tmp"
9122 - tmp=$TMPDIR/sed$$-$RANDOM
9123 - (umask 077 && mkdir $tmp)
9126 - echo "$me: cannot create a temporary directory in $TMPDIR" >&2
9127 - { (exit 1); exit 1; }
9131 - # Add /usr/xpg4/bin/sed as it is typically found on Solaris
9132 - # along with /bin/sed that truncates output.
9133 - for _sed in $_sed_list /usr/xpg4/bin/sed; do
9134 - test ! -f ${_sed} && break
9135 - cat /dev/null > "$tmp/sed.in"
9137 - echo ${ECHO_N-$ac_n} "0123456789${ECHO_C-$ac_c}" >"$tmp/sed.in"
9138 - # Check for GNU sed and select it if it is found.
9139 - if "${_sed}" --version 2>&1 < /dev/null | egrep '(GNU)' > /dev/null; then
9140 - lt_cv_path_SED=${_sed}
9144 +# Add /usr/xpg4/bin/sed as it is typically found on Solaris
9145 +# along with /bin/sed that truncates output.
9146 +for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
9147 + test ! -f $lt_ac_sed && break
9148 + cat /dev/null > conftest.in
9150 + echo $ECHO_N "0123456789$ECHO_C" >conftest.in
9151 + # Check for GNU sed and select it if it is found.
9152 + if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
9153 + lt_cv_path_SED=$lt_ac_sed
9157 + cat conftest.in conftest.in >conftest.tmp
9158 + mv conftest.tmp conftest.in
9159 + cp conftest.in conftest.nl
9160 + echo >>conftest.nl
9161 + $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
9162 + cmp -s conftest.out conftest.nl || break
9163 + # 10000 chars as input seems more than enough
9164 + test $lt_ac_count -gt 10 && break
9165 + lt_ac_count=`expr $lt_ac_count + 1`
9166 + if test $lt_ac_count -gt $lt_ac_max; then
9167 + lt_ac_max=$lt_ac_count
9168 + lt_cv_path_SED=$lt_ac_sed
9171 - cat "$tmp/sed.in" "$tmp/sed.in" >"$tmp/sed.tmp"
9172 - mv "$tmp/sed.tmp" "$tmp/sed.in"
9173 - cp "$tmp/sed.in" "$tmp/sed.nl"
9174 - echo >>"$tmp/sed.nl"
9175 - ${_sed} -e 's/a$//' < "$tmp/sed.nl" >"$tmp/sed.out" || break
9176 - cmp -s "$tmp/sed.out" "$tmp/sed.nl" || break
9177 - # 40000 chars as input seems more than enough
9178 - test $_count -gt 10 && break
9179 - _count=`expr $_count + 1`
9180 - if test $_count -gt $_max; then
9182 - lt_cv_path_SED=$_sed
9188 +SED=$lt_cv_path_SED
9190 -if test "X$SED" != "X"; then
9191 - lt_cv_path_SED=$SED
9193 - SED=$lt_cv_path_SED
9195 AC_MSG_RESULT([$SED])
9198 Index: linux-atm-2.4.1/configure
9199 ===================================================================
9200 --- linux-atm-2.4.1.orig/configure 2007-06-04 13:23:54.473452672 +0200
9201 +++ linux-atm-2.4.1/configure 2007-06-04 13:23:56.494145480 +0200
9204 # Guess values for system-dependent variables and create Makefiles.
9205 -# Generated by GNU Autoconf 2.57.
9206 +# Generated by GNU Autoconf 2.59.
9208 -# Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
9209 -# Free Software Foundation, Inc.
9210 +# Copyright (C) 2003 Free Software Foundation, Inc.
9211 # This configure script is free software; the Free Software Foundation
9212 # gives unlimited permission to copy, distribute and modify it.
9213 ## --------------------- ##
9215 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
9218 +DUALCASE=1; export DUALCASE # for MKS sh
9220 # Support unset when possible.
9221 -if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
9222 +if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
9227 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
9228 LC_TELEPHONE LC_TIME
9230 - if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
9231 + if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
9232 eval $as_var=C; export $as_var
9235 @@ -218,16 +218,17 @@
9236 if mkdir -p . 2>/dev/null; then
9239 + test -d ./-p && rmdir ./-p
9243 as_executable_p="test -f"
9245 # Sed expression to map a string onto a valid CPP name.
9246 -as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
9247 +as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
9249 # Sed expression to map a string onto a valid variable name.
9250 -as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
9251 +as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
9257 # Be sure to have absolute paths.
9258 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
9259 - localstatedir libdir includedir oldincludedir infodir mandir
9260 + localstatedir libdir includedir oldincludedir infodir mandir
9262 eval ac_val=$`echo $ac_var`
9264 @@ -866,10 +867,10 @@
9265 # Try the directory containing this script, then its parent.
9266 ac_confdir=`(dirname "$0") 2>/dev/null ||
9267 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9268 - X"$0" : 'X\(//\)[^/]' \| \
9269 - X"$0" : 'X\(//\)$' \| \
9270 - X"$0" : 'X\(/\)' \| \
9271 - . : '\(.\)' 2>/dev/null ||
9272 + X"$0" : 'X\(//\)[^/]' \| \
9273 + X"$0" : 'X\(//\)$' \| \
9274 + X"$0" : 'X\(/\)' \| \
9275 + . : '\(.\)' 2>/dev/null ||
9277 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
9278 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
9281 Installation directories:
9282 --prefix=PREFIX install architecture-independent files in PREFIX
9283 - [$ac_default_prefix]
9284 + [$ac_default_prefix]
9285 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
9289 By default, \`make install' will install all the files in
9290 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
9291 @@ -1071,12 +1072,45 @@
9292 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
9293 ac_top_srcdir=$ac_top_builddir$srcdir ;;
9295 -# Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
9297 -ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
9298 -ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
9299 -ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
9300 -ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
9302 +# Do not use `cd foo && pwd` to compute absolute paths, because
9303 +# the directories may not exist.
9305 +.) ac_abs_builddir="$ac_dir";;
9308 + .) ac_abs_builddir=`pwd`;;
9309 + [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
9310 + *) ac_abs_builddir=`pwd`/"$ac_dir";;
9313 +case $ac_abs_builddir in
9314 +.) ac_abs_top_builddir=${ac_top_builddir}.;;
9316 + case ${ac_top_builddir}. in
9317 + .) ac_abs_top_builddir=$ac_abs_builddir;;
9318 + [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
9319 + *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
9322 +case $ac_abs_builddir in
9323 +.) ac_abs_srcdir=$ac_srcdir;;
9325 + case $ac_srcdir in
9326 + .) ac_abs_srcdir=$ac_abs_builddir;;
9327 + [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
9328 + *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
9331 +case $ac_abs_builddir in
9332 +.) ac_abs_top_srcdir=$ac_top_srcdir;;
9334 + case $ac_top_srcdir in
9335 + .) ac_abs_top_srcdir=$ac_abs_builddir;;
9336 + [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
9337 + *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
9342 # Check for guested configure; otherwise get Cygnus style configure.
9343 @@ -1087,13 +1121,13 @@
9345 $SHELL $ac_srcdir/configure --help=recursive
9346 elif test -f $ac_srcdir/configure.ac ||
9347 - test -f $ac_srcdir/configure.in; then
9348 + test -f $ac_srcdir/configure.in; then
9350 $ac_configure --help
9352 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
9359 @@ -1101,8 +1135,7 @@
9360 if $ac_init_version; then
9363 -Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
9364 -Free Software Foundation, Inc.
9365 +Copyright (C) 2003 Free Software Foundation, Inc.
9366 This configure script is free software; the Free Software Foundation
9367 gives unlimited permission to copy, distribute and modify it.
9369 @@ -1114,7 +1147,7 @@
9370 running configure, to aid debugging if configure makes a mistake.
9372 It was created by $as_me, which was
9373 -generated by GNU Autoconf 2.57. Invocation command line was
9374 +generated by GNU Autoconf 2.59. Invocation command line was
9378 @@ -1191,19 +1224,19 @@
9380 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
9381 if test $ac_must_keep_next = true; then
9382 - ac_must_keep_next=false # Got value, back to normal.
9383 + ac_must_keep_next=false # Got value, back to normal.
9386 - *=* | --config-cache | -C | -disable-* | --disable-* \
9387 - | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
9388 - | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
9389 - | -with-* | --with-* | -without-* | --without-* | --x)
9390 - case "$ac_configure_args0 " in
9391 - "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
9394 - -* ) ac_must_keep_next=true ;;
9397 + *=* | --config-cache | -C | -disable-* | --disable-* \
9398 + | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
9399 + | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
9400 + | -with-* | --with-* | -without-* | --without-* | --x)
9401 + case "$ac_configure_args0 " in
9402 + "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
9405 + -* ) ac_must_keep_next=true ;;
9408 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
9409 # Get rid of the leading space.
9410 @@ -1237,12 +1270,12 @@
9411 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
9414 - "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
9415 - s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
9416 + "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
9417 + s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
9421 - "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
9422 + "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
9426 @@ -1271,7 +1304,7 @@
9427 for ac_var in $ac_subst_files
9429 eval ac_val=$`echo $ac_var`
9430 - echo "$ac_var='"'"'$ac_val'"'"'"
9431 + echo "$ac_var='"'"'$ac_val'"'"'"
9435 @@ -1370,7 +1403,7 @@
9437 ac_cache_corrupted=false
9438 for ac_var in `(set) 2>&1 |
9439 - sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
9440 + sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
9441 eval ac_old_set=\$ac_cv_env_${ac_var}_set
9442 eval ac_new_set=\$ac_env_${ac_var}_set
9443 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
9444 @@ -1387,13 +1420,13 @@
9447 if test "x$ac_old_val" != "x$ac_new_val"; then
9448 - { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
9449 + { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
9450 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
9451 - { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
9452 + { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
9453 echo "$as_me: former value: $ac_old_val" >&2;}
9454 - { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
9455 + { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
9456 echo "$as_me: current value: $ac_new_val" >&2;}
9457 - ac_cache_corrupted=:
9458 + ac_cache_corrupted=:
9461 # Pass precious variables to config.status.
9462 @@ -1567,6 +1600,7 @@
9463 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
9464 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
9465 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
9466 +# OS/2's system install, which has a completely different semantic
9467 # ./install, which can be erroneously created by make from ./install.sh.
9468 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
9469 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
9470 @@ -1583,6 +1617,7 @@
9472 ./ | .// | /cC/* | \
9473 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
9474 + ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
9477 # OSF1 and SCO ODT 3.0 have their own names for install.
9478 @@ -1590,20 +1625,20 @@
9480 for ac_prog in ginstall scoinst install; do
9481 for ac_exec_ext in '' $ac_executable_extensions; do
9482 - if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
9483 - if test $ac_prog = install &&
9484 - grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
9485 - # AIX install. It has an incompatible calling convention.
9487 - elif test $ac_prog = install &&
9488 - grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
9489 - # program-specific install script used by HP pwplus--don't use.
9492 - ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
9496 + if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
9497 + if test $ac_prog = install &&
9498 + grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
9499 + # AIX install. It has an incompatible calling convention.
9501 + elif test $ac_prog = install &&
9502 + grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
9503 + # program-specific install script used by HP pwplus--don't use.
9506 + ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
9513 @@ -1693,7 +1728,7 @@
9515 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
9516 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
9517 -set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'`
9518 +set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
9519 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
9520 echo $ECHO_N "(cached) $ECHO_C" >&6
9522 @@ -2163,7 +2198,6 @@
9523 (exit $ac_status); }
9525 cat >conftest.$ac_ext <<_ACEOF
9526 -#line $LINENO "configure"
9529 cat confdefs.h >>conftest.$ac_ext
9530 @@ -2183,8 +2217,8 @@
9531 # Try to create an executable without -o first, disregard a.out.
9532 # It will help us diagnose broken compilers, and finding out an intuition
9534 -echo "$as_me:$LINENO: checking for C compiler default output" >&5
9535 -echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
9536 +echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
9537 +echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
9538 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
9539 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
9540 (eval $ac_link_default) 2>&5
9541 @@ -2204,23 +2238,23 @@
9542 test -f "$ac_file" || continue
9544 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
9548 - # This is the source file.
9550 + # This is the source file.
9553 - # We found the default executable, but exeext='' is most
9554 - # certainly right.
9556 + # We found the default executable, but exeext='' is most
9557 + # certainly right.
9560 - ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
9561 - # FIXME: I believe we export ac_cv_exeext for Libtool,
9562 - # but it would be cool to find out if it's true. Does anybody
9563 - # maintain Libtool? --akim.
9564 - export ac_cv_exeext
9566 + ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
9567 + # FIXME: I believe we export ac_cv_exeext for Libtool,
9568 + # but it would be cool to find out if it's true. Does anybody
9569 + # maintain Libtool? --akim.
9570 + export ac_cv_exeext
9578 @@ -2294,8 +2328,8 @@
9580 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
9581 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
9582 - export ac_cv_exeext
9584 + export ac_cv_exeext
9589 @@ -2320,7 +2354,6 @@
9590 echo $ECHO_N "(cached) $ECHO_C" >&6
9592 cat >conftest.$ac_ext <<_ACEOF
9593 -#line $LINENO "configure"
9596 cat confdefs.h >>conftest.$ac_ext
9597 @@ -2371,7 +2404,6 @@
9598 echo $ECHO_N "(cached) $ECHO_C" >&6
9600 cat >conftest.$ac_ext <<_ACEOF
9601 -#line $LINENO "configure"
9604 cat confdefs.h >>conftest.$ac_ext
9605 @@ -2391,11 +2423,20 @@
9607 rm -f conftest.$ac_objext
9608 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9609 - (eval $ac_compile) 2>&5
9610 + (eval $ac_compile) 2>conftest.er1
9612 + grep -v '^ *+' conftest.er1 >conftest.err
9613 + rm -f conftest.er1
9614 + cat conftest.err >&5
9615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9616 (exit $ac_status); } &&
9617 - { ac_try='test -s conftest.$ac_objext'
9618 + { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9619 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9620 + (eval $ac_try) 2>&5
9622 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
9623 + (exit $ac_status); }; } &&
9624 + { ac_try='test -s conftest.$ac_objext'
9625 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9628 @@ -2408,7 +2449,7 @@
9632 -rm -f conftest.$ac_objext conftest.$ac_ext
9633 +rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9634 ac_cv_c_compiler_gnu=$ac_compiler_gnu
9637 @@ -2424,7 +2465,6 @@
9638 echo $ECHO_N "(cached) $ECHO_C" >&6
9640 cat >conftest.$ac_ext <<_ACEOF
9641 -#line $LINENO "configure"
9644 cat confdefs.h >>conftest.$ac_ext
9645 @@ -2441,11 +2481,20 @@
9647 rm -f conftest.$ac_objext
9648 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9649 - (eval $ac_compile) 2>&5
9650 + (eval $ac_compile) 2>conftest.er1
9652 + grep -v '^ *+' conftest.er1 >conftest.err
9653 + rm -f conftest.er1
9654 + cat conftest.err >&5
9655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9656 (exit $ac_status); } &&
9657 - { ac_try='test -s conftest.$ac_objext'
9658 + { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9659 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9660 + (eval $ac_try) 2>&5
9662 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
9663 + (exit $ac_status); }; } &&
9664 + { ac_try='test -s conftest.$ac_objext'
9665 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9668 @@ -2458,7 +2507,7 @@
9672 -rm -f conftest.$ac_objext conftest.$ac_ext
9673 +rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9675 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
9676 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
9677 @@ -2485,7 +2534,6 @@
9678 ac_cv_prog_cc_stdc=no
9680 cat >conftest.$ac_ext <<_ACEOF
9681 -#line $LINENO "configure"
9684 cat confdefs.h >>conftest.$ac_ext
9685 @@ -2513,6 +2561,16 @@
9690 +/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
9691 + function prototypes and stuff, but not '\xHH' hex character constants.
9692 + These don't provoke an error unfortunately, instead are silently treated
9693 + as 'x'. The following induces an error, until -std1 is added to get
9694 + proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
9695 + array size at least. It's necessary to write '\x00'==0 to get something
9696 + that's true only with -std1. */
9697 +int osf4_cc_array ['\x00' == 0 ? 1 : -1];
9699 int test (int i, double x);
9700 struct s1 {int (*f) (int a);};
9701 struct s2 {int (*f) (double a);};
9702 @@ -2539,11 +2597,20 @@
9703 CC="$ac_save_CC $ac_arg"
9704 rm -f conftest.$ac_objext
9705 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9706 - (eval $ac_compile) 2>&5
9707 + (eval $ac_compile) 2>conftest.er1
9709 + grep -v '^ *+' conftest.er1 >conftest.err
9710 + rm -f conftest.er1
9711 + cat conftest.err >&5
9712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9713 (exit $ac_status); } &&
9714 - { ac_try='test -s conftest.$ac_objext'
9715 + { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9716 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9717 + (eval $ac_try) 2>&5
9719 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
9720 + (exit $ac_status); }; } &&
9721 + { ac_try='test -s conftest.$ac_objext'
9722 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9725 @@ -2556,7 +2623,7 @@
9726 sed 's/^/| /' conftest.$ac_ext >&5
9729 -rm -f conftest.$ac_objext
9730 +rm -f conftest.err conftest.$ac_objext
9732 rm -f conftest.$ac_ext conftest.$ac_objext
9734 @@ -2584,11 +2651,20 @@
9736 rm -f conftest.$ac_objext
9737 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9738 - (eval $ac_compile) 2>&5
9739 + (eval $ac_compile) 2>conftest.er1
9741 + grep -v '^ *+' conftest.er1 >conftest.err
9742 + rm -f conftest.er1
9743 + cat conftest.err >&5
9744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9745 (exit $ac_status); } &&
9746 - { ac_try='test -s conftest.$ac_objext'
9747 + { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9748 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9749 + (eval $ac_try) 2>&5
9751 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
9752 + (exit $ac_status); }; } &&
9753 + { ac_try='test -s conftest.$ac_objext'
9754 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9757 @@ -2603,7 +2679,6 @@
9760 cat >conftest.$ac_ext <<_ACEOF
9761 -#line $LINENO "configure"
9764 cat confdefs.h >>conftest.$ac_ext
9765 @@ -2621,11 +2696,20 @@
9767 rm -f conftest.$ac_objext
9768 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9769 - (eval $ac_compile) 2>&5
9770 + (eval $ac_compile) 2>conftest.er1
9772 + grep -v '^ *+' conftest.er1 >conftest.err
9773 + rm -f conftest.er1
9774 + cat conftest.err >&5
9775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9776 (exit $ac_status); } &&
9777 - { ac_try='test -s conftest.$ac_objext'
9778 + { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9779 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9780 + (eval $ac_try) 2>&5
9782 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
9783 + (exit $ac_status); }; } &&
9784 + { ac_try='test -s conftest.$ac_objext'
9785 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9788 @@ -2638,9 +2722,8 @@
9792 -rm -f conftest.$ac_objext conftest.$ac_ext
9793 +rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9794 cat >conftest.$ac_ext <<_ACEOF
9795 -#line $LINENO "configure"
9798 cat confdefs.h >>conftest.$ac_ext
9799 @@ -2657,11 +2740,20 @@
9801 rm -f conftest.$ac_objext
9802 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9803 - (eval $ac_compile) 2>&5
9804 + (eval $ac_compile) 2>conftest.er1
9806 + grep -v '^ *+' conftest.er1 >conftest.err
9807 + rm -f conftest.er1
9808 + cat conftest.err >&5
9809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9810 (exit $ac_status); } &&
9811 - { ac_try='test -s conftest.$ac_objext'
9812 + { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9813 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9814 + (eval $ac_try) 2>&5
9816 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
9817 + (exit $ac_status); }; } &&
9818 + { ac_try='test -s conftest.$ac_objext'
9819 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9822 @@ -2673,7 +2765,7 @@
9823 sed 's/^/| /' conftest.$ac_ext >&5
9826 -rm -f conftest.$ac_objext conftest.$ac_ext
9827 +rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9830 if test -n "$ac_declaration"; then
9831 @@ -2687,7 +2779,7 @@
9832 sed 's/^/| /' conftest.$ac_ext >&5
9835 -rm -f conftest.$ac_objext conftest.$ac_ext
9836 +rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9838 ac_cpp='$CPP $CPPFLAGS'
9839 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9840 @@ -2788,7 +2880,6 @@
9841 ac_check_lib_save_LIBS=$LIBS
9843 cat >conftest.$ac_ext <<_ACEOF
9844 -#line $LINENO "configure"
9847 cat confdefs.h >>conftest.$ac_ext
9848 @@ -2812,11 +2903,20 @@
9850 rm -f conftest.$ac_objext conftest$ac_exeext
9851 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9852 - (eval $ac_link) 2>&5
9853 + (eval $ac_link) 2>conftest.er1
9855 + grep -v '^ *+' conftest.er1 >conftest.err
9856 + rm -f conftest.er1
9857 + cat conftest.err >&5
9858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9859 (exit $ac_status); } &&
9860 - { ac_try='test -s conftest$ac_exeext'
9861 + { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9862 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9863 + (eval $ac_try) 2>&5
9865 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
9866 + (exit $ac_status); }; } &&
9867 + { ac_try='test -s conftest$ac_exeext'
9868 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9871 @@ -2829,7 +2929,8 @@
9873 ac_cv_lib_fl_yywrap=no
9875 -rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9876 +rm -f conftest.err conftest.$ac_objext \
9877 + conftest$ac_exeext conftest.$ac_ext
9878 LIBS=$ac_check_lib_save_LIBS
9880 echo "$as_me:$LINENO: result: $ac_cv_lib_fl_yywrap" >&5
9881 @@ -2845,7 +2946,6 @@
9882 ac_check_lib_save_LIBS=$LIBS
9884 cat >conftest.$ac_ext <<_ACEOF
9885 -#line $LINENO "configure"
9888 cat confdefs.h >>conftest.$ac_ext
9889 @@ -2869,11 +2969,20 @@
9891 rm -f conftest.$ac_objext conftest$ac_exeext
9892 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9893 - (eval $ac_link) 2>&5
9894 + (eval $ac_link) 2>conftest.er1
9896 + grep -v '^ *+' conftest.er1 >conftest.err
9897 + rm -f conftest.er1
9898 + cat conftest.err >&5
9899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9900 (exit $ac_status); } &&
9901 - { ac_try='test -s conftest$ac_exeext'
9902 + { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9903 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9904 + (eval $ac_try) 2>&5
9906 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
9907 + (exit $ac_status); }; } &&
9908 + { ac_try='test -s conftest$ac_exeext'
9909 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9912 @@ -2886,7 +2995,8 @@
9914 ac_cv_lib_l_yywrap=no
9916 -rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9917 +rm -f conftest.err conftest.$ac_objext \
9918 + conftest$ac_exeext conftest.$ac_ext
9919 LIBS=$ac_check_lib_save_LIBS
9921 echo "$as_me:$LINENO: result: $ac_cv_lib_l_yywrap" >&5
9922 @@ -2948,11 +3058,20 @@
9924 rm -f conftest.$ac_objext conftest$ac_exeext
9925 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9926 - (eval $ac_link) 2>&5
9927 + (eval $ac_link) 2>conftest.er1
9929 + grep -v '^ *+' conftest.er1 >conftest.err
9930 + rm -f conftest.er1
9931 + cat conftest.err >&5
9932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9933 (exit $ac_status); } &&
9934 - { ac_try='test -s conftest$ac_exeext'
9935 + { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9936 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9937 + (eval $ac_try) 2>&5
9939 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
9940 + (exit $ac_status); }; } &&
9941 + { ac_try='test -s conftest$ac_exeext'
9942 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9945 @@ -2964,7 +3083,8 @@
9946 sed 's/^/| /' conftest.$ac_ext >&5
9949 -rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9950 +rm -f conftest.err conftest.$ac_objext \
9951 + conftest$ac_exeext conftest.$ac_ext
9953 rm -f "${LEX_OUTPUT_ROOT}.c"
9955 @@ -3033,6 +3153,7 @@
9956 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
9957 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
9958 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
9959 +# OS/2's system install, which has a completely different semantic
9960 # ./install, which can be erroneously created by make from ./install.sh.
9961 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
9962 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
9963 @@ -3049,6 +3170,7 @@
9965 ./ | .// | /cC/* | \
9966 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
9967 + ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
9970 # OSF1 and SCO ODT 3.0 have their own names for install.
9971 @@ -3056,20 +3178,20 @@
9973 for ac_prog in ginstall scoinst install; do
9974 for ac_exec_ext in '' $ac_executable_extensions; do
9975 - if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
9976 - if test $ac_prog = install &&
9977 - grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
9978 - # AIX install. It has an incompatible calling convention.
9980 - elif test $ac_prog = install &&
9981 - grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
9982 - # program-specific install script used by HP pwplus--don't use.
9985 - ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
9989 + if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
9990 + if test $ac_prog = install &&
9991 + grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
9992 + # AIX install. It has an incompatible calling convention.
9994 + elif test $ac_prog = install &&
9995 + grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
9996 + # program-specific install script used by HP pwplus--don't use.
9999 + ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
10006 @@ -3842,7 +3964,6 @@
10007 # On the NeXT, cc -E runs the code through the compiler's parser,
10008 # not just through cpp. "Syntax error" is here to catch this case.
10009 cat >conftest.$ac_ext <<_ACEOF
10010 -#line $LINENO "configure"
10013 cat confdefs.h >>conftest.$ac_ext
10014 @@ -3853,7 +3974,7 @@
10016 # include <assert.h>
10021 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10022 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10023 @@ -3865,6 +3986,7 @@
10024 (exit $ac_status); } >/dev/null; then
10025 if test -s conftest.err; then
10026 ac_cpp_err=$ac_c_preproc_warn_flag
10027 + ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10031 @@ -3885,7 +4007,6 @@
10032 # OK, works on sane cases. Now check whether non-existent headers
10033 # can be detected and how.
10034 cat >conftest.$ac_ext <<_ACEOF
10035 -#line $LINENO "configure"
10038 cat confdefs.h >>conftest.$ac_ext
10039 @@ -3903,6 +4024,7 @@
10040 (exit $ac_status); } >/dev/null; then
10041 if test -s conftest.err; then
10042 ac_cpp_err=$ac_c_preproc_warn_flag
10043 + ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10047 @@ -3949,7 +4071,6 @@
10048 # On the NeXT, cc -E runs the code through the compiler's parser,
10049 # not just through cpp. "Syntax error" is here to catch this case.
10050 cat >conftest.$ac_ext <<_ACEOF
10051 -#line $LINENO "configure"
10054 cat confdefs.h >>conftest.$ac_ext
10055 @@ -3960,7 +4081,7 @@
10057 # include <assert.h>
10062 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10063 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10064 @@ -3972,6 +4093,7 @@
10065 (exit $ac_status); } >/dev/null; then
10066 if test -s conftest.err; then
10067 ac_cpp_err=$ac_c_preproc_warn_flag
10068 + ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10072 @@ -3992,7 +4114,6 @@
10073 # OK, works on sane cases. Now check whether non-existent headers
10074 # can be detected and how.
10075 cat >conftest.$ac_ext <<_ACEOF
10076 -#line $LINENO "configure"
10079 cat confdefs.h >>conftest.$ac_ext
10080 @@ -4010,6 +4131,7 @@
10081 (exit $ac_status); } >/dev/null; then
10082 if test -s conftest.err; then
10083 ac_cpp_err=$ac_c_preproc_warn_flag
10084 + ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10088 @@ -4070,7 +4192,6 @@
10089 echo $ECHO_N "(cached) $ECHO_C" >&6
10091 cat >conftest.$ac_ext <<_ACEOF
10092 -#line $LINENO "configure"
10095 cat confdefs.h >>conftest.$ac_ext
10096 @@ -4091,11 +4212,20 @@
10098 rm -f conftest.$ac_objext
10099 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10100 - (eval $ac_compile) 2>&5
10101 + (eval $ac_compile) 2>conftest.er1
10103 + grep -v '^ *+' conftest.er1 >conftest.err
10104 + rm -f conftest.er1
10105 + cat conftest.err >&5
10106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10107 (exit $ac_status); } &&
10108 - { ac_try='test -s conftest.$ac_objext'
10109 + { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10110 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10111 + (eval $ac_try) 2>&5
10113 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
10114 + (exit $ac_status); }; } &&
10115 + { ac_try='test -s conftest.$ac_objext'
10116 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10117 (eval $ac_try) 2>&5
10119 @@ -4108,12 +4238,11 @@
10121 ac_cv_header_stdc=no
10123 -rm -f conftest.$ac_objext conftest.$ac_ext
10124 +rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10126 if test $ac_cv_header_stdc = yes; then
10127 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
10128 cat >conftest.$ac_ext <<_ACEOF
10129 -#line $LINENO "configure"
10132 cat confdefs.h >>conftest.$ac_ext
10133 @@ -4135,7 +4264,6 @@
10134 if test $ac_cv_header_stdc = yes; then
10135 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
10136 cat >conftest.$ac_ext <<_ACEOF
10137 -#line $LINENO "configure"
10140 cat confdefs.h >>conftest.$ac_ext
10141 @@ -4160,7 +4288,6 @@
10144 cat >conftest.$ac_ext <<_ACEOF
10145 -#line $LINENO "configure"
10148 cat confdefs.h >>conftest.$ac_ext
10149 @@ -4172,9 +4299,9 @@
10150 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
10152 # define ISLOWER(c) \
10153 - (('a' <= (c) && (c) <= 'i') \
10154 - || ('j' <= (c) && (c) <= 'r') \
10155 - || ('s' <= (c) && (c) <= 'z'))
10156 + (('a' <= (c) && (c) <= 'i') \
10157 + || ('j' <= (c) && (c) <= 'r') \
10158 + || ('s' <= (c) && (c) <= 'z'))
10159 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
10162 @@ -4185,7 +4312,7 @@
10164 for (i = 0; i < 256; i++)
10165 if (XOR (islower (i), ISLOWER (i))
10166 - || toupper (i) != TOUPPER (i))
10167 + || toupper (i) != TOUPPER (i))
10171 @@ -4235,7 +4362,7 @@
10174 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
10175 - inttypes.h stdint.h unistd.h
10176 + inttypes.h stdint.h unistd.h
10178 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10179 echo "$as_me:$LINENO: checking for $ac_header" >&5
10180 @@ -4244,7 +4371,6 @@
10181 echo $ECHO_N "(cached) $ECHO_C" >&6
10183 cat >conftest.$ac_ext <<_ACEOF
10184 -#line $LINENO "configure"
10187 cat confdefs.h >>conftest.$ac_ext
10188 @@ -4256,11 +4382,20 @@
10190 rm -f conftest.$ac_objext
10191 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10192 - (eval $ac_compile) 2>&5
10193 + (eval $ac_compile) 2>conftest.er1
10195 + grep -v '^ *+' conftest.er1 >conftest.err
10196 + rm -f conftest.er1
10197 + cat conftest.err >&5
10198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10199 (exit $ac_status); } &&
10200 - { ac_try='test -s conftest.$ac_objext'
10201 + { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10202 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10203 + (eval $ac_try) 2>&5
10205 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
10206 + (exit $ac_status); }; } &&
10207 + { ac_try='test -s conftest.$ac_objext'
10208 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10209 (eval $ac_try) 2>&5
10211 @@ -4273,7 +4408,7 @@
10213 eval "$as_ac_Header=no"
10215 -rm -f conftest.$ac_objext conftest.$ac_ext
10216 +rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10218 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10219 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10220 @@ -4304,7 +4439,6 @@
10221 echo "$as_me:$LINENO: checking $ac_header usability" >&5
10222 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10223 cat >conftest.$ac_ext <<_ACEOF
10224 -#line $LINENO "configure"
10227 cat confdefs.h >>conftest.$ac_ext
10228 @@ -4315,11 +4449,20 @@
10230 rm -f conftest.$ac_objext
10231 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10232 - (eval $ac_compile) 2>&5
10233 + (eval $ac_compile) 2>conftest.er1
10235 + grep -v '^ *+' conftest.er1 >conftest.err
10236 + rm -f conftest.er1
10237 + cat conftest.err >&5
10238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10239 (exit $ac_status); } &&
10240 - { ac_try='test -s conftest.$ac_objext'
10241 + { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10242 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10243 + (eval $ac_try) 2>&5
10245 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
10246 + (exit $ac_status); }; } &&
10247 + { ac_try='test -s conftest.$ac_objext'
10248 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10249 (eval $ac_try) 2>&5
10251 @@ -4332,7 +4475,7 @@
10253 ac_header_compiler=no
10255 -rm -f conftest.$ac_objext conftest.$ac_ext
10256 +rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10257 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10258 echo "${ECHO_T}$ac_header_compiler" >&6
10260 @@ -4340,7 +4483,6 @@
10261 echo "$as_me:$LINENO: checking $ac_header presence" >&5
10262 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10263 cat >conftest.$ac_ext <<_ACEOF
10264 -#line $LINENO "configure"
10267 cat confdefs.h >>conftest.$ac_ext
10268 @@ -4358,6 +4500,7 @@
10269 (exit $ac_status); } >/dev/null; then
10270 if test -s conftest.err; then
10271 ac_cpp_err=$ac_c_preproc_warn_flag
10272 + ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10276 @@ -4377,33 +4520,32 @@
10277 echo "${ECHO_T}$ac_header_preproc" >&6
10279 # So? What about this header?
10280 -case $ac_header_compiler:$ac_header_preproc in
10282 +case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10284 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10285 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10286 - { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10287 -echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10290 -## ------------------------------------ ##
10291 -## Report this to bug-autoconf@gnu.org. ##
10292 -## ------------------------------------ ##
10295 - sed "s/^/$as_me: WARNING: /" >&2
10296 + { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10297 +echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10298 + ac_header_preproc=yes
10302 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10303 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10304 - { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10305 -echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10306 + { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10307 +echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10308 + { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10309 +echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10310 + { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10311 +echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10312 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10313 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10314 + { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10315 +echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10318 -## ------------------------------------ ##
10319 -## Report this to bug-autoconf@gnu.org. ##
10320 -## ------------------------------------ ##
10321 +## ------------------------------------------ ##
10322 +## Report this to the AC_PACKAGE_NAME lists. ##
10323 +## ------------------------------------------ ##
10326 sed "s/^/$as_me: WARNING: /" >&2
10327 @@ -4414,7 +4556,7 @@
10328 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10329 echo $ECHO_N "(cached) $ECHO_C" >&6
10331 - eval "$as_ac_Header=$ac_header_preproc"
10332 + eval "$as_ac_Header=\$ac_header_preproc"
10334 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10335 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10336 @@ -4749,7 +4891,7 @@
10339 # Find out which ABI we are using.
10340 - echo '#line 4752 "configure"' > conftest.$ac_ext
10341 + echo '#line 4894 "configure"' > conftest.$ac_ext
10342 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10343 (eval $ac_compile) 2>&5
10345 @@ -4788,7 +4930,6 @@
10346 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10348 cat >conftest.$ac_ext <<_ACEOF
10349 -#line $LINENO "configure"
10352 cat confdefs.h >>conftest.$ac_ext
10353 @@ -4805,11 +4946,20 @@
10355 rm -f conftest.$ac_objext conftest$ac_exeext
10356 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10357 - (eval $ac_link) 2>&5
10358 + (eval $ac_link) 2>conftest.er1
10360 + grep -v '^ *+' conftest.er1 >conftest.err
10361 + rm -f conftest.er1
10362 + cat conftest.err >&5
10363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10364 (exit $ac_status); } &&
10365 - { ac_try='test -s conftest$ac_exeext'
10366 + { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10367 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10368 + (eval $ac_try) 2>&5
10370 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
10371 + (exit $ac_status); }; } &&
10372 + { ac_try='test -s conftest$ac_exeext'
10373 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10374 (eval $ac_try) 2>&5
10376 @@ -4822,7 +4972,8 @@
10378 lt_cv_cc_needs_belf=no
10380 -rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10381 +rm -f conftest.err conftest.$ac_objext \
10382 + conftest$ac_exeext conftest.$ac_ext
10384 ac_cpp='$CPP $CPPFLAGS'
10385 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10386 @@ -5117,7 +5268,6 @@
10387 save_CFLAGS="$CFLAGS"
10388 CFLAGS="$CFLAGS $lt_cv_prog_cc_pic -DPIC"
10389 cat >conftest.$ac_ext <<_ACEOF
10390 -#line $LINENO "configure"
10393 cat confdefs.h >>conftest.$ac_ext
10394 @@ -5134,11 +5284,20 @@
10396 rm -f conftest.$ac_objext
10397 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10398 - (eval $ac_compile) 2>&5
10399 + (eval $ac_compile) 2>conftest.er1
10401 + grep -v '^ *+' conftest.er1 >conftest.err
10402 + rm -f conftest.er1
10403 + cat conftest.err >&5
10404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10405 (exit $ac_status); } &&
10406 - { ac_try='test -s conftest.$ac_objext'
10407 + { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10408 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10409 + (eval $ac_try) 2>&5
10411 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
10412 + (exit $ac_status); }; } &&
10413 + { ac_try='test -s conftest.$ac_objext'
10414 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10415 (eval $ac_try) 2>&5
10417 @@ -5167,7 +5326,7 @@
10418 lt_cv_prog_cc_pic_works=no
10421 -rm -f conftest.$ac_objext conftest.$ac_ext
10422 +rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10423 CFLAGS="$save_CFLAGS"
10426 @@ -5205,7 +5364,6 @@
10427 save_LDFLAGS="$LDFLAGS"
10428 LDFLAGS="$LDFLAGS $lt_cv_prog_cc_static"
10429 cat >conftest.$ac_ext <<_ACEOF
10430 -#line $LINENO "configure"
10433 cat confdefs.h >>conftest.$ac_ext
10434 @@ -5222,11 +5380,20 @@
10436 rm -f conftest.$ac_objext conftest$ac_exeext
10437 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10438 - (eval $ac_link) 2>&5
10439 + (eval $ac_link) 2>conftest.er1
10441 + grep -v '^ *+' conftest.er1 >conftest.err
10442 + rm -f conftest.er1
10443 + cat conftest.err >&5
10444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10445 (exit $ac_status); } &&
10446 - { ac_try='test -s conftest$ac_exeext'
10447 + { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10448 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10449 + (eval $ac_try) 2>&5
10451 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
10452 + (exit $ac_status); }; } &&
10453 + { ac_try='test -s conftest$ac_exeext'
10454 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10455 (eval $ac_try) 2>&5
10457 @@ -5238,7 +5405,8 @@
10458 sed 's/^/| /' conftest.$ac_ext >&5
10461 -rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10462 +rm -f conftest.err conftest.$ac_objext \
10463 + conftest$ac_exeext conftest.$ac_ext
10464 LDFLAGS="$save_LDFLAGS"
10467 @@ -5278,7 +5446,7 @@
10468 save_CFLAGS="$CFLAGS"
10469 CFLAGS="$CFLAGS -o out/conftest2.$ac_objext"
10471 -if { (eval echo configure:5281: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>out/conftest.err; } && test -s out/conftest2.$ac_objext; then
10472 +if { (eval echo configure:5449: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>out/conftest.err; } && test -s out/conftest2.$ac_objext; then
10473 # The compiler can only warn and ignore the option if not recognized
10474 # So say no if there are warnings
10475 if test -s out/conftest.err; then
10476 @@ -5319,7 +5487,6 @@
10477 save_objext="$ac_objext"
10479 cat >conftest.$ac_ext <<_ACEOF
10480 -#line $LINENO "configure"
10483 cat confdefs.h >>conftest.$ac_ext
10484 @@ -5336,11 +5503,20 @@
10486 rm -f conftest.$ac_objext
10487 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10488 - (eval $ac_compile) 2>&5
10489 + (eval $ac_compile) 2>conftest.er1
10491 + grep -v '^ *+' conftest.er1 >conftest.err
10492 + rm -f conftest.er1
10493 + cat conftest.err >&5
10494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10495 (exit $ac_status); } &&
10496 - { ac_try='test -s conftest.$ac_objext'
10497 + { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10498 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10499 + (eval $ac_try) 2>&5
10501 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
10502 + (exit $ac_status); }; } &&
10503 + { ac_try='test -s conftest.$ac_objext'
10504 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10505 (eval $ac_try) 2>&5
10507 @@ -5359,7 +5535,7 @@
10508 sed 's/^/| /' conftest.$ac_ext >&5
10511 -rm -f conftest.$ac_objext conftest.$ac_ext
10512 +rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10513 ac_objext="$save_objext"
10514 CFLAGS="$save_CFLAGS"
10516 @@ -5404,7 +5580,6 @@
10517 CFLAGS="$CFLAGS -fno-rtti -fno-exceptions -c conftest.$ac_ext"
10518 compiler_rtti_exceptions=no
10519 cat >conftest.$ac_ext <<_ACEOF
10520 -#line $LINENO "configure"
10523 cat confdefs.h >>conftest.$ac_ext
10524 @@ -5421,11 +5596,20 @@
10526 rm -f conftest.$ac_objext
10527 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10528 - (eval $ac_compile) 2>&5
10529 + (eval $ac_compile) 2>conftest.er1
10531 + grep -v '^ *+' conftest.er1 >conftest.err
10532 + rm -f conftest.er1
10533 + cat conftest.err >&5
10534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10535 (exit $ac_status); } &&
10536 - { ac_try='test -s conftest.$ac_objext'
10537 + { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10538 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10539 + (eval $ac_try) 2>&5
10541 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
10542 + (exit $ac_status); }; } &&
10543 + { ac_try='test -s conftest.$ac_objext'
10544 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10545 (eval $ac_try) 2>&5
10547 @@ -5444,7 +5628,7 @@
10548 sed 's/^/| /' conftest.$ac_ext >&5
10551 -rm -f conftest.$ac_objext conftest.$ac_ext
10552 +rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10553 CFLAGS="$save_CFLAGS"
10554 echo "$as_me:$LINENO: result: $compiler_rtti_exceptions" >&5
10555 echo "${ECHO_T}$compiler_rtti_exceptions" >&6
10556 @@ -6704,21 +6888,28 @@
10557 echo $ECHO_N "(cached) $ECHO_C" >&6
10559 cat >conftest.$ac_ext <<_ACEOF
10560 -#line $LINENO "configure"
10563 cat confdefs.h >>conftest.$ac_ext
10564 cat >>conftest.$ac_ext <<_ACEOF
10565 /* end confdefs.h. */
10566 +/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
10567 + For example, HP-UX 11i <limits.h> declares gettimeofday. */
10568 +#define shl_load innocuous_shl_load
10570 /* System header to define __stub macros and hopefully few prototypes,
10571 which can conflict with char shl_load (); below.
10572 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10573 <limits.h> exists even on freestanding compilers. */
10576 # include <limits.h>
10578 # include <assert.h>
10583 /* Override any gcc2 internal prototype to avoid an error. */
10586 @@ -6749,11 +6940,20 @@
10588 rm -f conftest.$ac_objext conftest$ac_exeext
10589 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10590 - (eval $ac_link) 2>&5
10591 + (eval $ac_link) 2>conftest.er1
10593 + grep -v '^ *+' conftest.er1 >conftest.err
10594 + rm -f conftest.er1
10595 + cat conftest.err >&5
10596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10597 (exit $ac_status); } &&
10598 - { ac_try='test -s conftest$ac_exeext'
10599 + { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10600 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10601 + (eval $ac_try) 2>&5
10603 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
10604 + (exit $ac_status); }; } &&
10605 + { ac_try='test -s conftest$ac_exeext'
10606 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10607 (eval $ac_try) 2>&5
10609 @@ -6766,7 +6966,8 @@
10611 ac_cv_func_shl_load=no
10613 -rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10614 +rm -f conftest.err conftest.$ac_objext \
10615 + conftest$ac_exeext conftest.$ac_ext
10617 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
10618 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
10619 @@ -6781,7 +6982,6 @@
10620 ac_check_lib_save_LIBS=$LIBS
10622 cat >conftest.$ac_ext <<_ACEOF
10623 -#line $LINENO "configure"
10626 cat confdefs.h >>conftest.$ac_ext
10627 @@ -6805,11 +7005,20 @@
10629 rm -f conftest.$ac_objext conftest$ac_exeext
10630 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10631 - (eval $ac_link) 2>&5
10632 + (eval $ac_link) 2>conftest.er1
10634 + grep -v '^ *+' conftest.er1 >conftest.err
10635 + rm -f conftest.er1
10636 + cat conftest.err >&5
10637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10638 (exit $ac_status); } &&
10639 - { ac_try='test -s conftest$ac_exeext'
10640 + { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10641 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10642 + (eval $ac_try) 2>&5
10644 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
10645 + (exit $ac_status); }; } &&
10646 + { ac_try='test -s conftest$ac_exeext'
10647 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10648 (eval $ac_try) 2>&5
10650 @@ -6822,7 +7031,8 @@
10652 ac_cv_lib_dld_shl_load=no
10654 -rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10655 +rm -f conftest.err conftest.$ac_objext \
10656 + conftest$ac_exeext conftest.$ac_ext
10657 LIBS=$ac_check_lib_save_LIBS
10659 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
10660 @@ -6836,21 +7046,28 @@
10661 echo $ECHO_N "(cached) $ECHO_C" >&6
10663 cat >conftest.$ac_ext <<_ACEOF
10664 -#line $LINENO "configure"
10667 cat confdefs.h >>conftest.$ac_ext
10668 cat >>conftest.$ac_ext <<_ACEOF
10669 /* end confdefs.h. */
10670 +/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
10671 + For example, HP-UX 11i <limits.h> declares gettimeofday. */
10672 +#define dlopen innocuous_dlopen
10674 /* System header to define __stub macros and hopefully few prototypes,
10675 which can conflict with char dlopen (); below.
10676 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10677 <limits.h> exists even on freestanding compilers. */
10680 # include <limits.h>
10682 # include <assert.h>
10687 /* Override any gcc2 internal prototype to avoid an error. */
10690 @@ -6881,11 +7098,20 @@
10692 rm -f conftest.$ac_objext conftest$ac_exeext
10693 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10694 - (eval $ac_link) 2>&5
10695 + (eval $ac_link) 2>conftest.er1
10697 + grep -v '^ *+' conftest.er1 >conftest.err
10698 + rm -f conftest.er1
10699 + cat conftest.err >&5
10700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10701 (exit $ac_status); } &&
10702 - { ac_try='test -s conftest$ac_exeext'
10703 + { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10704 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10705 + (eval $ac_try) 2>&5
10707 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
10708 + (exit $ac_status); }; } &&
10709 + { ac_try='test -s conftest$ac_exeext'
10710 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10711 (eval $ac_try) 2>&5
10713 @@ -6898,7 +7124,8 @@
10715 ac_cv_func_dlopen=no
10717 -rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10718 +rm -f conftest.err conftest.$ac_objext \
10719 + conftest$ac_exeext conftest.$ac_ext
10721 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
10722 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
10723 @@ -6913,7 +7140,6 @@
10724 ac_check_lib_save_LIBS=$LIBS
10726 cat >conftest.$ac_ext <<_ACEOF
10727 -#line $LINENO "configure"
10730 cat confdefs.h >>conftest.$ac_ext
10731 @@ -6937,11 +7163,20 @@
10733 rm -f conftest.$ac_objext conftest$ac_exeext
10734 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10735 - (eval $ac_link) 2>&5
10736 + (eval $ac_link) 2>conftest.er1
10738 + grep -v '^ *+' conftest.er1 >conftest.err
10739 + rm -f conftest.er1
10740 + cat conftest.err >&5
10741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10742 (exit $ac_status); } &&
10743 - { ac_try='test -s conftest$ac_exeext'
10744 + { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10745 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10746 + (eval $ac_try) 2>&5
10748 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
10749 + (exit $ac_status); }; } &&
10750 + { ac_try='test -s conftest$ac_exeext'
10751 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10752 (eval $ac_try) 2>&5
10754 @@ -6954,7 +7189,8 @@
10756 ac_cv_lib_dl_dlopen=no
10758 -rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10759 +rm -f conftest.err conftest.$ac_objext \
10760 + conftest$ac_exeext conftest.$ac_ext
10761 LIBS=$ac_check_lib_save_LIBS
10763 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10764 @@ -6970,7 +7206,6 @@
10765 ac_check_lib_save_LIBS=$LIBS
10766 LIBS="-lsvld $LIBS"
10767 cat >conftest.$ac_ext <<_ACEOF
10768 -#line $LINENO "configure"
10771 cat confdefs.h >>conftest.$ac_ext
10772 @@ -6994,11 +7229,20 @@
10774 rm -f conftest.$ac_objext conftest$ac_exeext
10775 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10776 - (eval $ac_link) 2>&5
10777 + (eval $ac_link) 2>conftest.er1
10779 + grep -v '^ *+' conftest.er1 >conftest.err
10780 + rm -f conftest.er1
10781 + cat conftest.err >&5
10782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10783 (exit $ac_status); } &&
10784 - { ac_try='test -s conftest$ac_exeext'
10785 + { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10786 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10787 + (eval $ac_try) 2>&5
10789 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
10790 + (exit $ac_status); }; } &&
10791 + { ac_try='test -s conftest$ac_exeext'
10792 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10793 (eval $ac_try) 2>&5
10795 @@ -7011,7 +7255,8 @@
10797 ac_cv_lib_svld_dlopen=no
10799 -rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10800 +rm -f conftest.err conftest.$ac_objext \
10801 + conftest$ac_exeext conftest.$ac_ext
10802 LIBS=$ac_check_lib_save_LIBS
10804 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10805 @@ -7027,7 +7272,6 @@
10806 ac_check_lib_save_LIBS=$LIBS
10808 cat >conftest.$ac_ext <<_ACEOF
10809 -#line $LINENO "configure"
10812 cat confdefs.h >>conftest.$ac_ext
10813 @@ -7051,11 +7295,20 @@
10815 rm -f conftest.$ac_objext conftest$ac_exeext
10816 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10817 - (eval $ac_link) 2>&5
10818 + (eval $ac_link) 2>conftest.er1
10820 + grep -v '^ *+' conftest.er1 >conftest.err
10821 + rm -f conftest.er1
10822 + cat conftest.err >&5
10823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10824 (exit $ac_status); } &&
10825 - { ac_try='test -s conftest$ac_exeext'
10826 + { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10827 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10828 + (eval $ac_try) 2>&5
10830 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
10831 + (exit $ac_status); }; } &&
10832 + { ac_try='test -s conftest$ac_exeext'
10833 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10834 (eval $ac_try) 2>&5
10836 @@ -7068,7 +7321,8 @@
10838 ac_cv_lib_dld_dld_link=no
10840 -rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10841 +rm -f conftest.err conftest.$ac_objext \
10842 + conftest$ac_exeext conftest.$ac_ext
10843 LIBS=$ac_check_lib_save_LIBS
10845 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10846 @@ -7123,7 +7377,7 @@
10847 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10848 lt_status=$lt_dlunknown
10849 cat > conftest.$ac_ext <<EOF
10850 -#line 7126 "configure"
10851 +#line 7380 "configure"
10852 #include "confdefs.h"
10855 @@ -7221,7 +7475,7 @@
10856 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10857 lt_status=$lt_dlunknown
10858 cat > conftest.$ac_ext <<EOF
10859 -#line 7224 "configure"
10860 +#line 7478 "configure"
10861 #include "confdefs.h"
10864 @@ -8005,7 +8259,6 @@
10865 echo "$as_me:$LINENO: checking asm/errno.h usability" >&5
10866 echo $ECHO_N "checking asm/errno.h usability... $ECHO_C" >&6
10867 cat >conftest.$ac_ext <<_ACEOF
10868 -#line $LINENO "configure"
10871 cat confdefs.h >>conftest.$ac_ext
10872 @@ -8016,11 +8269,20 @@
10874 rm -f conftest.$ac_objext
10875 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10876 - (eval $ac_compile) 2>&5
10877 + (eval $ac_compile) 2>conftest.er1
10879 + grep -v '^ *+' conftest.er1 >conftest.err
10880 + rm -f conftest.er1
10881 + cat conftest.err >&5
10882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10883 (exit $ac_status); } &&
10884 - { ac_try='test -s conftest.$ac_objext'
10885 + { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10886 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10887 + (eval $ac_try) 2>&5
10889 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
10890 + (exit $ac_status); }; } &&
10891 + { ac_try='test -s conftest.$ac_objext'
10892 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10893 (eval $ac_try) 2>&5
10895 @@ -8033,7 +8295,7 @@
10897 ac_header_compiler=no
10899 -rm -f conftest.$ac_objext conftest.$ac_ext
10900 +rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10901 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10902 echo "${ECHO_T}$ac_header_compiler" >&6
10904 @@ -8041,7 +8303,6 @@
10905 echo "$as_me:$LINENO: checking asm/errno.h presence" >&5
10906 echo $ECHO_N "checking asm/errno.h presence... $ECHO_C" >&6
10907 cat >conftest.$ac_ext <<_ACEOF
10908 -#line $LINENO "configure"
10911 cat confdefs.h >>conftest.$ac_ext
10912 @@ -8059,6 +8320,7 @@
10913 (exit $ac_status); } >/dev/null; then
10914 if test -s conftest.err; then
10915 ac_cpp_err=$ac_c_preproc_warn_flag
10916 + ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10920 @@ -8078,33 +8340,32 @@
10921 echo "${ECHO_T}$ac_header_preproc" >&6
10923 # So? What about this header?
10924 -case $ac_header_compiler:$ac_header_preproc in
10926 +case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10928 { echo "$as_me:$LINENO: WARNING: asm/errno.h: accepted by the compiler, rejected by the preprocessor!" >&5
10929 echo "$as_me: WARNING: asm/errno.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
10930 - { echo "$as_me:$LINENO: WARNING: asm/errno.h: proceeding with the preprocessor's result" >&5
10931 -echo "$as_me: WARNING: asm/errno.h: proceeding with the preprocessor's result" >&2;}
10934 -## ------------------------------------ ##
10935 -## Report this to bug-autoconf@gnu.org. ##
10936 -## ------------------------------------ ##
10939 - sed "s/^/$as_me: WARNING: /" >&2
10940 + { echo "$as_me:$LINENO: WARNING: asm/errno.h: proceeding with the compiler's result" >&5
10941 +echo "$as_me: WARNING: asm/errno.h: proceeding with the compiler's result" >&2;}
10942 + ac_header_preproc=yes
10946 { echo "$as_me:$LINENO: WARNING: asm/errno.h: present but cannot be compiled" >&5
10947 echo "$as_me: WARNING: asm/errno.h: present but cannot be compiled" >&2;}
10948 - { echo "$as_me:$LINENO: WARNING: asm/errno.h: check for missing prerequisite headers?" >&5
10949 -echo "$as_me: WARNING: asm/errno.h: check for missing prerequisite headers?" >&2;}
10950 + { echo "$as_me:$LINENO: WARNING: asm/errno.h: check for missing prerequisite headers?" >&5
10951 +echo "$as_me: WARNING: asm/errno.h: check for missing prerequisite headers?" >&2;}
10952 + { echo "$as_me:$LINENO: WARNING: asm/errno.h: see the Autoconf documentation" >&5
10953 +echo "$as_me: WARNING: asm/errno.h: see the Autoconf documentation" >&2;}
10954 + { echo "$as_me:$LINENO: WARNING: asm/errno.h: section \"Present But Cannot Be Compiled\"" >&5
10955 +echo "$as_me: WARNING: asm/errno.h: section \"Present But Cannot Be Compiled\"" >&2;}
10956 { echo "$as_me:$LINENO: WARNING: asm/errno.h: proceeding with the preprocessor's result" >&5
10957 echo "$as_me: WARNING: asm/errno.h: proceeding with the preprocessor's result" >&2;}
10958 + { echo "$as_me:$LINENO: WARNING: asm/errno.h: in the future, the compiler will take precedence" >&5
10959 +echo "$as_me: WARNING: asm/errno.h: in the future, the compiler will take precedence" >&2;}
10962 -## ------------------------------------ ##
10963 -## Report this to bug-autoconf@gnu.org. ##
10964 -## ------------------------------------ ##
10965 +## ------------------------------------------ ##
10966 +## Report this to the AC_PACKAGE_NAME lists. ##
10967 +## ------------------------------------------ ##
10970 sed "s/^/$as_me: WARNING: /" >&2
10971 @@ -8145,7 +8406,6 @@
10972 echo "$as_me:$LINENO: checking linux/atmsap.h usability" >&5
10973 echo $ECHO_N "checking linux/atmsap.h usability... $ECHO_C" >&6
10974 cat >conftest.$ac_ext <<_ACEOF
10975 -#line $LINENO "configure"
10978 cat confdefs.h >>conftest.$ac_ext
10979 @@ -8156,11 +8416,20 @@
10981 rm -f conftest.$ac_objext
10982 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10983 - (eval $ac_compile) 2>&5
10984 + (eval $ac_compile) 2>conftest.er1
10986 + grep -v '^ *+' conftest.er1 >conftest.err
10987 + rm -f conftest.er1
10988 + cat conftest.err >&5
10989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10990 (exit $ac_status); } &&
10991 - { ac_try='test -s conftest.$ac_objext'
10992 + { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10993 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10994 + (eval $ac_try) 2>&5
10996 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
10997 + (exit $ac_status); }; } &&
10998 + { ac_try='test -s conftest.$ac_objext'
10999 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11000 (eval $ac_try) 2>&5
11002 @@ -8173,7 +8442,7 @@
11004 ac_header_compiler=no
11006 -rm -f conftest.$ac_objext conftest.$ac_ext
11007 +rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11008 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11009 echo "${ECHO_T}$ac_header_compiler" >&6
11011 @@ -8181,7 +8450,6 @@
11012 echo "$as_me:$LINENO: checking linux/atmsap.h presence" >&5
11013 echo $ECHO_N "checking linux/atmsap.h presence... $ECHO_C" >&6
11014 cat >conftest.$ac_ext <<_ACEOF
11015 -#line $LINENO "configure"
11018 cat confdefs.h >>conftest.$ac_ext
11019 @@ -8199,6 +8467,7 @@
11020 (exit $ac_status); } >/dev/null; then
11021 if test -s conftest.err; then
11022 ac_cpp_err=$ac_c_preproc_warn_flag
11023 + ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11027 @@ -8218,33 +8487,32 @@
11028 echo "${ECHO_T}$ac_header_preproc" >&6
11030 # So? What about this header?
11031 -case $ac_header_compiler:$ac_header_preproc in
11033 +case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11035 { echo "$as_me:$LINENO: WARNING: linux/atmsap.h: accepted by the compiler, rejected by the preprocessor!" >&5
11036 echo "$as_me: WARNING: linux/atmsap.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
11037 - { echo "$as_me:$LINENO: WARNING: linux/atmsap.h: proceeding with the preprocessor's result" >&5
11038 -echo "$as_me: WARNING: linux/atmsap.h: proceeding with the preprocessor's result" >&2;}
11041 -## ------------------------------------ ##
11042 -## Report this to bug-autoconf@gnu.org. ##
11043 -## ------------------------------------ ##
11046 - sed "s/^/$as_me: WARNING: /" >&2
11047 + { echo "$as_me:$LINENO: WARNING: linux/atmsap.h: proceeding with the compiler's result" >&5
11048 +echo "$as_me: WARNING: linux/atmsap.h: proceeding with the compiler's result" >&2;}
11049 + ac_header_preproc=yes
11053 { echo "$as_me:$LINENO: WARNING: linux/atmsap.h: present but cannot be compiled" >&5
11054 echo "$as_me: WARNING: linux/atmsap.h: present but cannot be compiled" >&2;}
11055 - { echo "$as_me:$LINENO: WARNING: linux/atmsap.h: check for missing prerequisite headers?" >&5
11056 -echo "$as_me: WARNING: linux/atmsap.h: check for missing prerequisite headers?" >&2;}
11057 + { echo "$as_me:$LINENO: WARNING: linux/atmsap.h: check for missing prerequisite headers?" >&5
11058 +echo "$as_me: WARNING: linux/atmsap.h: check for missing prerequisite headers?" >&2;}
11059 + { echo "$as_me:$LINENO: WARNING: linux/atmsap.h: see the Autoconf documentation" >&5
11060 +echo "$as_me: WARNING: linux/atmsap.h: see the Autoconf documentation" >&2;}
11061 + { echo "$as_me:$LINENO: WARNING: linux/atmsap.h: section \"Present But Cannot Be Compiled\"" >&5
11062 +echo "$as_me: WARNING: linux/atmsap.h: section \"Present But Cannot Be Compiled\"" >&2;}
11063 { echo "$as_me:$LINENO: WARNING: linux/atmsap.h: proceeding with the preprocessor's result" >&5
11064 echo "$as_me: WARNING: linux/atmsap.h: proceeding with the preprocessor's result" >&2;}
11065 + { echo "$as_me:$LINENO: WARNING: linux/atmsap.h: in the future, the compiler will take precedence" >&5
11066 +echo "$as_me: WARNING: linux/atmsap.h: in the future, the compiler will take precedence" >&2;}
11069 -## ------------------------------------ ##
11070 -## Report this to bug-autoconf@gnu.org. ##
11071 -## ------------------------------------ ##
11072 +## ------------------------------------------ ##
11073 +## Report this to the AC_PACKAGE_NAME lists. ##
11074 +## ------------------------------------------ ##
11077 sed "s/^/$as_me: WARNING: /" >&2
11078 @@ -8281,7 +8549,6 @@
11079 ac_check_lib_save_LIBS=$LIBS
11080 LIBS="-lresolv $LIBS"
11081 cat >conftest.$ac_ext <<_ACEOF
11082 -#line $LINENO "configure"
11085 cat confdefs.h >>conftest.$ac_ext
11086 @@ -8299,11 +8566,20 @@
11088 rm -f conftest.$ac_objext conftest$ac_exeext
11089 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11090 - (eval $ac_link) 2>&5
11091 + (eval $ac_link) 2>conftest.er1
11093 + grep -v '^ *+' conftest.er1 >conftest.err
11094 + rm -f conftest.er1
11095 + cat conftest.err >&5
11096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11097 (exit $ac_status); } &&
11098 - { ac_try='test -s conftest$ac_exeext'
11099 + { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11100 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11101 + (eval $ac_try) 2>&5
11103 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
11104 + (exit $ac_status); }; } &&
11105 + { ac_try='test -s conftest$ac_exeext'
11106 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11107 (eval $ac_try) 2>&5
11109 @@ -8316,7 +8592,8 @@
11111 ac_cv_lib_resolv_main=no
11113 -rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11114 +rm -f conftest.err conftest.$ac_objext \
11115 + conftest$ac_exeext conftest.$ac_ext
11116 LIBS=$ac_check_lib_save_LIBS
11118 echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_main" >&5
11119 @@ -8477,7 +8754,6 @@
11120 ac_check_lib_save_LIBS=$LIBS
11122 cat >conftest.$ac_ext <<_ACEOF
11123 -#line $LINENO "configure"
11126 cat confdefs.h >>conftest.$ac_ext
11127 @@ -8495,11 +8771,20 @@
11129 rm -f conftest.$ac_objext conftest$ac_exeext
11130 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11131 - (eval $ac_link) 2>&5
11132 + (eval $ac_link) 2>conftest.er1
11134 + grep -v '^ *+' conftest.er1 >conftest.err
11135 + rm -f conftest.er1
11136 + cat conftest.err >&5
11137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11138 (exit $ac_status); } &&
11139 - { ac_try='test -s conftest$ac_exeext'
11140 + { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11141 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11142 + (eval $ac_try) 2>&5
11144 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
11145 + (exit $ac_status); }; } &&
11146 + { ac_try='test -s conftest$ac_exeext'
11147 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11148 (eval $ac_try) 2>&5
11150 @@ -8512,7 +8797,8 @@
11152 ac_cv_lib_mpr_main=no
11154 -rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11155 +rm -f conftest.err conftest.$ac_objext \
11156 + conftest$ac_exeext conftest.$ac_ext
11157 LIBS=$ac_check_lib_save_LIBS
11159 echo "$as_me:$LINENO: result: $ac_cv_lib_mpr_main" >&5
11160 @@ -8539,7 +8825,7 @@
11164 - ac_config_files="$ac_config_files Makefile doc/Makefile m4/Makefile src/Makefile src/include/Makefile src/lib/Makefile src/test/Makefile src/debug/Makefile src/qgen/Makefile src/saal/Makefile src/sigd/Makefile src/maint/Makefile src/arpd/Makefile src/ilmid/Makefile src/ilmid/asn1/Makefile src/man/Makefile src/led/Makefile src/lane/Makefile src/mpoad/Makefile src/switch/Makefile src/switch/debug/Makefile src/switch/tcp/Makefile src/config/Makefile src/config/init-redhat/Makefile src/extra/Makefile src/extra/linux-atm.spec src/extra/ANS/Makefile"
11165 + ac_config_files="$ac_config_files Makefile doc/Makefile m4/Makefile src/Makefile src/include/Makefile src/lib/Makefile"
11166 cat >confcache <<\_ACEOF
11167 # This file is a shell script that caches the results of configure
11168 # tests run on this system so they can be shared between configure
11169 @@ -8568,13 +8854,13 @@
11170 # `set' does not quote correctly, so add quotes (double-quote
11171 # substitution turns \\\\ into \\, and sed turns \\ into \).
11174 - s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
11176 + s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
11179 # `set' quotes correctly as required by POSIX, so do not add quotes.
11181 - "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
11182 + "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
11186 @@ -8604,13 +8890,13 @@
11187 # trailing colons and then remove the whole line if VPATH becomes empty
11188 # (actually we leave an empty line to preserve line numbers).
11189 if test "x$srcdir" = x.; then
11190 - ac_vpsub='/^[ ]*VPATH[ ]*=/{
11191 + ac_vpsub='/^[ ]*VPATH[ ]*=/{
11192 s/:*\$(srcdir):*/:/;
11193 s/:*\${srcdir}:*/:/;
11195 -s/^\([^=]*=[ ]*\):*/\1/;
11196 +s/^\([^=]*=[ ]*\):*/\1/;
11203 @@ -8621,7 +8907,7 @@
11204 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
11205 # 1. Remove the extension, and $U if already installed.
11206 ac_i=`echo "$ac_i" |
11207 - sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
11208 + sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
11210 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
11211 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
11212 @@ -8665,9 +8951,10 @@
11213 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
11216 +DUALCASE=1; export DUALCASE # for MKS sh
11218 # Support unset when possible.
11219 -if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
11220 +if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
11224 @@ -8686,7 +8973,7 @@
11225 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
11226 LC_TELEPHONE LC_TIME
11228 - if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
11229 + if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
11230 eval $as_var=C; export $as_var
11233 @@ -8865,16 +9152,17 @@
11234 if mkdir -p . 2>/dev/null; then
11237 + test -d ./-p && rmdir ./-p
11241 as_executable_p="test -f"
11243 # Sed expression to map a string onto a valid CPP name.
11244 -as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
11245 +as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
11247 # Sed expression to map a string onto a valid variable name.
11248 -as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
11249 +as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
11253 @@ -8901,7 +9189,7 @@
11256 This file was extended by $as_me, which was
11257 -generated by GNU Autoconf 2.57. Invocation command line was
11258 +generated by GNU Autoconf 2.59. Invocation command line was
11260 CONFIG_FILES = $CONFIG_FILES
11261 CONFIG_HEADERS = $CONFIG_HEADERS
11262 @@ -8945,9 +9233,9 @@
11263 -d, --debug don't remove temporary files
11264 --recheck update $as_me by reconfiguring in the same conditions
11265 --file=FILE[:TEMPLATE]
11266 - instantiate the configuration file FILE
11267 + instantiate the configuration file FILE
11268 --header=FILE[:TEMPLATE]
11269 - instantiate the configuration header FILE
11270 + instantiate the configuration header FILE
11272 Configuration files:
11274 @@ -8964,11 +9252,10 @@
11275 cat >>$CONFIG_STATUS <<_ACEOF
11278 -configured by $0, generated by GNU Autoconf 2.57,
11279 +configured by $0, generated by GNU Autoconf 2.59,
11280 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
11282 -Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
11283 -Free Software Foundation, Inc.
11284 +Copyright (C) 2003 Free Software Foundation, Inc.
11285 This config.status script is free software; the Free Software Foundation
11286 gives unlimited permission to copy, distribute and modify it."
11288 @@ -9080,27 +9367,6 @@
11289 "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
11290 "src/include/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/include/Makefile" ;;
11291 "src/lib/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/lib/Makefile" ;;
11292 - "src/test/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/test/Makefile" ;;
11293 - "src/debug/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/debug/Makefile" ;;
11294 - "src/qgen/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/qgen/Makefile" ;;
11295 - "src/saal/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/saal/Makefile" ;;
11296 - "src/sigd/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/sigd/Makefile" ;;
11297 - "src/maint/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/maint/Makefile" ;;
11298 - "src/arpd/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/arpd/Makefile" ;;
11299 - "src/ilmid/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/ilmid/Makefile" ;;
11300 - "src/ilmid/asn1/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/ilmid/asn1/Makefile" ;;
11301 - "src/man/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/man/Makefile" ;;
11302 - "src/led/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/led/Makefile" ;;
11303 - "src/lane/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/lane/Makefile" ;;
11304 - "src/mpoad/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/mpoad/Makefile" ;;
11305 - "src/switch/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/switch/Makefile" ;;
11306 - "src/switch/debug/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/switch/debug/Makefile" ;;
11307 - "src/switch/tcp/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/switch/tcp/Makefile" ;;
11308 - "src/config/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/config/Makefile" ;;
11309 - "src/config/init-redhat/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/config/init-redhat/Makefile" ;;
11310 - "src/extra/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/extra/Makefile" ;;
11311 - "src/extra/linux-atm.spec" ) CONFIG_FILES="$CONFIG_FILES src/extra/linux-atm.spec" ;;
11312 - "src/extra/ANS/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/extra/ANS/Makefile" ;;
11313 "default-1" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
11314 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
11315 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
11316 @@ -9267,9 +9533,9 @@
11318 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
11319 if test -z "$ac_sed_cmds"; then
11320 - ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
11321 + ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
11323 - ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
11324 + ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
11326 ac_sed_frag=`expr $ac_sed_frag + 1`
11328 @@ -9287,21 +9553,21 @@
11329 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
11331 - | *:- | *:-:* ) # input from stdin
11333 - ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
11334 - ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
11336 + ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
11337 + ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
11338 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
11339 - ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
11340 + ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
11341 * ) ac_file_in=$ac_file.in ;;
11344 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
11345 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
11346 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11347 - X"$ac_file" : 'X\(//\)[^/]' \| \
11348 - X"$ac_file" : 'X\(//\)$' \| \
11349 - X"$ac_file" : 'X\(/\)' \| \
11350 - . : '\(.\)' 2>/dev/null ||
11351 + X"$ac_file" : 'X\(//\)[^/]' \| \
11352 + X"$ac_file" : 'X\(//\)$' \| \
11353 + X"$ac_file" : 'X\(/\)' \| \
11354 + . : '\(.\)' 2>/dev/null ||
11356 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
11357 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
11358 @@ -9317,10 +9583,10 @@
11359 as_dirs="$as_dir $as_dirs"
11360 as_dir=`(dirname "$as_dir") 2>/dev/null ||
11361 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11362 - X"$as_dir" : 'X\(//\)[^/]' \| \
11363 - X"$as_dir" : 'X\(//\)$' \| \
11364 - X"$as_dir" : 'X\(/\)' \| \
11365 - . : '\(.\)' 2>/dev/null ||
11366 + X"$as_dir" : 'X\(//\)[^/]' \| \
11367 + X"$as_dir" : 'X\(//\)$' \| \
11368 + X"$as_dir" : 'X\(/\)' \| \
11369 + . : '\(.\)' 2>/dev/null ||
11371 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
11372 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
11373 @@ -9358,12 +9624,45 @@
11374 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
11375 ac_top_srcdir=$ac_top_builddir$srcdir ;;
11377 -# Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
11379 -ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
11380 -ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
11381 -ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
11382 -ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
11384 +# Do not use `cd foo && pwd` to compute absolute paths, because
11385 +# the directories may not exist.
11387 +.) ac_abs_builddir="$ac_dir";;
11389 + case "$ac_dir" in
11390 + .) ac_abs_builddir=`pwd`;;
11391 + [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
11392 + *) ac_abs_builddir=`pwd`/"$ac_dir";;
11395 +case $ac_abs_builddir in
11396 +.) ac_abs_top_builddir=${ac_top_builddir}.;;
11398 + case ${ac_top_builddir}. in
11399 + .) ac_abs_top_builddir=$ac_abs_builddir;;
11400 + [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
11401 + *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
11404 +case $ac_abs_builddir in
11405 +.) ac_abs_srcdir=$ac_srcdir;;
11407 + case $ac_srcdir in
11408 + .) ac_abs_srcdir=$ac_abs_builddir;;
11409 + [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
11410 + *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
11413 +case $ac_abs_builddir in
11414 +.) ac_abs_top_srcdir=$ac_top_srcdir;;
11416 + case $ac_top_srcdir in
11417 + .) ac_abs_top_srcdir=$ac_abs_builddir;;
11418 + [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
11419 + *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
11425 @@ -9371,11 +9670,6 @@
11426 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
11429 - if test x"$ac_file" != x-; then
11430 - { echo "$as_me:$LINENO: creating $ac_file" >&5
11431 -echo "$as_me: creating $ac_file" >&6;}
11434 # Let's still pretend it is `configure' which instantiates (i.e., don't
11435 # use $as_me), people would be surprised to read:
11436 # /* config.h. Generated by config.status. */
11437 @@ -9385,7 +9679,7 @@
11438 configure_input="$ac_file. "
11440 configure_input=$configure_input"Generated from `echo $ac_file_in |
11441 - sed 's,.*/,,'` by configure."
11442 + sed 's,.*/,,'` by configure."
11444 # First look for the input files in the build tree, otherwise in the
11446 @@ -9394,26 +9688,32 @@
11448 -) echo $tmp/stdin ;;
11450 - # Absolute (can't be DOS-style, as IFS=:)
11451 - test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
11452 + # Absolute (can't be DOS-style, as IFS=:)
11453 + test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
11454 echo "$as_me: error: cannot find input file: $f" >&2;}
11455 { (exit 1); exit 1; }; }
11459 - if test -f "$f"; then
11462 - elif test -f "$srcdir/$f"; then
11467 - { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
11468 + if test -f "$f"; then
11471 + elif test -f "$srcdir/$f"; then
11473 + echo "$srcdir/$f"
11476 + { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
11477 echo "$as_me: error: cannot find input file: $f" >&2;}
11478 { (exit 1); exit 1; }; }
11482 done` || { (exit 1); exit 1; }
11484 + if test x"$ac_file" != x-; then
11485 + { echo "$as_me:$LINENO: creating $ac_file" >&5
11486 +echo "$as_me: creating $ac_file" >&6;}
11490 cat >>$CONFIG_STATUS <<_ACEOF
11492 @@ -9453,12 +9753,12 @@
11493 # NAME is the cpp macro being defined and VALUE is the value it is being given.
11495 # ac_d sets the value in "#define NAME VALUE" lines.
11496 -ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
11497 -ac_dB='[ ].*$,\1#\2'
11498 +ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
11499 +ac_dB='[ ].*$,\1#\2'
11502 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
11503 -ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
11504 +ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
11505 ac_uB='$,\1#\2define\3'
11508 @@ -9467,11 +9767,11 @@
11509 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
11511 - | *:- | *:-:* ) # input from stdin
11513 - ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
11514 - ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
11516 + ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
11517 + ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
11518 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
11519 - ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
11520 + ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
11521 * ) ac_file_in=$ac_file.in ;;
11524 @@ -9485,28 +9785,29 @@
11526 -) echo $tmp/stdin ;;
11528 - # Absolute (can't be DOS-style, as IFS=:)
11529 - test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
11530 + # Absolute (can't be DOS-style, as IFS=:)
11531 + test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
11532 echo "$as_me: error: cannot find input file: $f" >&2;}
11533 { (exit 1); exit 1; }; }
11535 + # Do quote $f, to prevent DOS paths from being IFS'd.
11538 - if test -f "$f"; then
11541 - elif test -f "$srcdir/$f"; then
11546 - { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
11547 + if test -f "$f"; then
11550 + elif test -f "$srcdir/$f"; then
11552 + echo "$srcdir/$f"
11555 + { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
11556 echo "$as_me: error: cannot find input file: $f" >&2;}
11557 { (exit 1); exit 1; }; }
11561 done` || { (exit 1); exit 1; }
11562 # Remove the trailing spaces.
11563 - sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
11564 + sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
11568 @@ -9529,9 +9830,9 @@
11572 -s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
11573 +s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
11575 -s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
11576 +s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
11579 # If some macros were called several times there might be several times
11580 @@ -9545,13 +9846,13 @@
11581 # example, in the case of _POSIX_SOURCE, which is predefined and required
11582 # on some systems where configure will not decide to define it.
11583 cat >>conftest.undefs <<\_ACEOF
11584 -s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
11585 +s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
11588 # Break up conftest.defines because some shells have a limit on the size
11589 # of here documents, and old seds have small limits too (100 cmds).
11590 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
11591 -echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
11592 +echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
11593 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
11594 echo ' :' >>$CONFIG_STATUS
11595 rm -f conftest.tail
11596 @@ -9560,7 +9861,7 @@
11597 # Write a limited-size here document to $tmp/defines.sed.
11598 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
11599 # Speed up: don't consider the non `#define' lines.
11600 - echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
11601 + echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
11602 # Work around the forget-to-reset-the-flag bug.
11603 echo 't clr' >>$CONFIG_STATUS
11604 echo ': clr' >>$CONFIG_STATUS
11605 @@ -9587,7 +9888,7 @@
11606 # Write a limited-size here document to $tmp/undefs.sed.
11607 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
11608 # Speed up: don't consider the non `#undef'
11609 - echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
11610 + echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
11611 # Work around the forget-to-reset-the-flag bug.
11612 echo 't clr' >>$CONFIG_STATUS
11613 echo ': clr' >>$CONFIG_STATUS
11614 @@ -9621,10 +9922,10 @@
11616 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
11617 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11618 - X"$ac_file" : 'X\(//\)[^/]' \| \
11619 - X"$ac_file" : 'X\(//\)$' \| \
11620 - X"$ac_file" : 'X\(/\)' \| \
11621 - . : '\(.\)' 2>/dev/null ||
11622 + X"$ac_file" : 'X\(//\)[^/]' \| \
11623 + X"$ac_file" : 'X\(//\)$' \| \
11624 + X"$ac_file" : 'X\(/\)' \| \
11625 + . : '\(.\)' 2>/dev/null ||
11627 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
11628 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
11629 @@ -9640,10 +9941,10 @@
11630 as_dirs="$as_dir $as_dirs"
11631 as_dir=`(dirname "$as_dir") 2>/dev/null ||
11632 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11633 - X"$as_dir" : 'X\(//\)[^/]' \| \
11634 - X"$as_dir" : 'X\(//\)$' \| \
11635 - X"$as_dir" : 'X\(/\)' \| \
11636 - . : '\(.\)' 2>/dev/null ||
11637 + X"$as_dir" : 'X\(//\)[^/]' \| \
11638 + X"$as_dir" : 'X\(//\)$' \| \
11639 + X"$as_dir" : 'X\(/\)' \| \
11640 + . : '\(.\)' 2>/dev/null ||
11642 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
11643 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
11644 @@ -9675,16 +9976,41 @@
11645 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
11646 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
11647 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11648 - X"$ac_dest" : 'X\(//\)[^/]' \| \
11649 - X"$ac_dest" : 'X\(//\)$' \| \
11650 - X"$ac_dest" : 'X\(/\)' \| \
11651 - . : '\(.\)' 2>/dev/null ||
11652 + X"$ac_dest" : 'X\(//\)[^/]' \| \
11653 + X"$ac_dest" : 'X\(//\)$' \| \
11654 + X"$ac_dest" : 'X\(/\)' \| \
11655 + . : '\(.\)' 2>/dev/null ||
11657 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
11658 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
11659 /^X\(\/\/\)$/{ s//\1/; q; }
11660 /^X\(\/\).*/{ s//\1/; q; }
11662 + { if $as_mkdir_p; then
11663 + mkdir -p "$ac_dir"
11667 + while test ! -d "$as_dir"; do
11668 + as_dirs="$as_dir $as_dirs"
11669 + as_dir=`(dirname "$as_dir") 2>/dev/null ||
11670 +$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11671 + X"$as_dir" : 'X\(//\)[^/]' \| \
11672 + X"$as_dir" : 'X\(//\)$' \| \
11673 + X"$as_dir" : 'X\(/\)' \| \
11674 + . : '\(.\)' 2>/dev/null ||
11676 + sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
11677 + /^X\(\/\/\)[^/].*/{ s//\1/; q; }
11678 + /^X\(\/\/\)$/{ s//\1/; q; }
11679 + /^X\(\/\).*/{ s//\1/; q; }
11682 + test ! -n "$as_dirs" || mkdir $as_dirs
11683 + fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
11684 +echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
11685 + { (exit 1); exit 1; }; }; }
11689 if test "$ac_dir" != .; then
11690 @@ -9710,12 +10036,45 @@
11691 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
11692 ac_top_srcdir=$ac_top_builddir$srcdir ;;
11694 -# Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
11696 -ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
11697 -ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
11698 -ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
11699 -ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
11701 +# Do not use `cd foo && pwd` to compute absolute paths, because
11702 +# the directories may not exist.
11704 +.) ac_abs_builddir="$ac_dir";;
11706 + case "$ac_dir" in
11707 + .) ac_abs_builddir=`pwd`;;
11708 + [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
11709 + *) ac_abs_builddir=`pwd`/"$ac_dir";;
11712 +case $ac_abs_builddir in
11713 +.) ac_abs_top_builddir=${ac_top_builddir}.;;
11715 + case ${ac_top_builddir}. in
11716 + .) ac_abs_top_builddir=$ac_abs_builddir;;
11717 + [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
11718 + *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
11721 +case $ac_abs_builddir in
11722 +.) ac_abs_srcdir=$ac_srcdir;;
11724 + case $ac_srcdir in
11725 + .) ac_abs_srcdir=$ac_abs_builddir;;
11726 + [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
11727 + *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
11730 +case $ac_abs_builddir in
11731 +.) ac_abs_top_srcdir=$ac_top_srcdir;;
11733 + case $ac_top_srcdir in
11734 + .) ac_abs_top_srcdir=$ac_abs_builddir;;
11735 + [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
11736 + *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
11741 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
11742 Index: linux-atm-2.4.1/doc/Makefile.in
11743 ===================================================================
11744 --- linux-atm-2.4.1.orig/doc/Makefile.in 2007-06-04 13:23:54.509447200 +0200
11745 +++ linux-atm-2.4.1/doc/Makefile.in 2007-06-04 13:23:56.494145480 +0200
11746 @@ -63,24 +63,35 @@
11747 host_triplet = @host@
11748 target_alias = @target_alias@
11749 target_triplet = @target@
11755 DLLTOOL = @DLLTOOL@
11761 +GCJFLAGS = @GCJFLAGS@
11762 +HAVE_LIB = @HAVE_LIB@
11765 LIBTOOL = @LIBTOOL@
11766 LIBTOOL_DEPS = @LIBTOOL_DEPS@
11767 LIBVER_AGE = @LIBVER_AGE@
11768 LIBVER_CURRENT = @LIBVER_CURRENT@
11769 LIBVER_REVISION = @LIBVER_REVISION@
11772 MAKEINFO = @MAKEINFO@
11773 OBJDUMP = @OBJDUMP@
11775 PACKAGE = @PACKAGE@
11780 VERSION = @VERSION@
11782 Index: linux-atm-2.4.1/m4/Makefile.in
11783 ===================================================================
11784 --- linux-atm-2.4.1.orig/m4/Makefile.in 2007-06-04 13:23:54.480451608 +0200
11785 +++ linux-atm-2.4.1/m4/Makefile.in 2007-06-04 13:23:56.494145480 +0200
11786 @@ -63,24 +63,35 @@
11787 host_triplet = @host@
11788 target_alias = @target_alias@
11789 target_triplet = @target@
11795 DLLTOOL = @DLLTOOL@
11801 +GCJFLAGS = @GCJFLAGS@
11802 +HAVE_LIB = @HAVE_LIB@
11805 LIBTOOL = @LIBTOOL@
11806 LIBTOOL_DEPS = @LIBTOOL_DEPS@
11807 LIBVER_AGE = @LIBVER_AGE@
11808 LIBVER_CURRENT = @LIBVER_CURRENT@
11809 LIBVER_REVISION = @LIBVER_REVISION@
11812 MAKEINFO = @MAKEINFO@
11813 OBJDUMP = @OBJDUMP@
11815 PACKAGE = @PACKAGE@
11820 VERSION = @VERSION@
11822 Index: linux-atm-2.4.1/Makefile.in
11823 ===================================================================
11824 --- linux-atm-2.4.1.orig/Makefile.in 2007-06-04 13:23:54.459454800 +0200
11825 +++ linux-atm-2.4.1/Makefile.in 2007-06-04 13:23:56.495145328 +0200
11826 @@ -63,24 +63,35 @@
11827 host_triplet = @host@
11828 target_alias = @target_alias@
11829 target_triplet = @target@
11835 DLLTOOL = @DLLTOOL@
11841 +GCJFLAGS = @GCJFLAGS@
11842 +HAVE_LIB = @HAVE_LIB@
11845 LIBTOOL = @LIBTOOL@
11846 LIBTOOL_DEPS = @LIBTOOL_DEPS@
11847 LIBVER_AGE = @LIBVER_AGE@
11848 LIBVER_CURRENT = @LIBVER_CURRENT@
11849 LIBVER_REVISION = @LIBVER_REVISION@
11852 MAKEINFO = @MAKEINFO@
11853 OBJDUMP = @OBJDUMP@
11855 PACKAGE = @PACKAGE@
11860 VERSION = @VERSION@
11862 Index: linux-atm-2.4.1/src/include/Makefile.in
11863 ===================================================================
11864 --- linux-atm-2.4.1.orig/src/include/Makefile.in 2007-06-04 13:23:54.481451456 +0200
11865 +++ linux-atm-2.4.1/src/include/Makefile.in 2007-06-04 13:23:56.495145328 +0200
11866 @@ -63,24 +63,35 @@
11867 host_triplet = @host@
11868 target_alias = @target_alias@
11869 target_triplet = @target@
11875 DLLTOOL = @DLLTOOL@
11881 +GCJFLAGS = @GCJFLAGS@
11882 +HAVE_LIB = @HAVE_LIB@
11885 LIBTOOL = @LIBTOOL@
11886 LIBTOOL_DEPS = @LIBTOOL_DEPS@
11887 LIBVER_AGE = @LIBVER_AGE@
11888 LIBVER_CURRENT = @LIBVER_CURRENT@
11889 LIBVER_REVISION = @LIBVER_REVISION@
11892 MAKEINFO = @MAKEINFO@
11893 OBJDUMP = @OBJDUMP@
11895 PACKAGE = @PACKAGE@
11900 VERSION = @VERSION@
11902 Index: linux-atm-2.4.1/src/lib/Makefile.in
11903 ===================================================================
11904 --- linux-atm-2.4.1.orig/src/lib/Makefile.in 2007-06-04 13:23:54.481451456 +0200
11905 +++ linux-atm-2.4.1/src/lib/Makefile.in 2007-06-04 13:23:56.496145176 +0200
11906 @@ -65,24 +65,35 @@
11907 host_triplet = @host@
11908 target_alias = @target_alias@
11909 target_triplet = @target@
11915 DLLTOOL = @DLLTOOL@
11921 +GCJFLAGS = @GCJFLAGS@
11922 +HAVE_LIB = @HAVE_LIB@
11925 LIBTOOL = @LIBTOOL@
11926 LIBTOOL_DEPS = @LIBTOOL_DEPS@
11927 LIBVER_AGE = @LIBVER_AGE@
11928 LIBVER_CURRENT = @LIBVER_CURRENT@
11929 LIBVER_REVISION = @LIBVER_REVISION@
11932 MAKEINFO = @MAKEINFO@
11933 OBJDUMP = @OBJDUMP@
11935 PACKAGE = @PACKAGE@
11940 VERSION = @VERSION@
11942 Index: linux-atm-2.4.1/src/Makefile.in
11943 ===================================================================
11944 --- linux-atm-2.4.1.orig/src/Makefile.in 2007-06-04 13:23:54.480451608 +0200
11945 +++ linux-atm-2.4.1/src/Makefile.in 2007-06-04 13:23:56.496145176 +0200
11946 @@ -63,30 +63,40 @@
11947 host_triplet = @host@
11948 target_alias = @target_alias@
11949 target_triplet = @target@
11955 DLLTOOL = @DLLTOOL@
11961 +GCJFLAGS = @GCJFLAGS@
11962 +HAVE_LIB = @HAVE_LIB@
11965 LIBTOOL = @LIBTOOL@
11966 LIBTOOL_DEPS = @LIBTOOL_DEPS@
11967 LIBVER_AGE = @LIBVER_AGE@
11968 LIBVER_CURRENT = @LIBVER_CURRENT@
11969 LIBVER_REVISION = @LIBVER_REVISION@
11972 MAKEINFO = @MAKEINFO@
11973 OBJDUMP = @OBJDUMP@
11975 PACKAGE = @PACKAGE@
11980 VERSION = @VERSION@
11983 -SUBDIRS = include lib
11985 +SUBDIRS = include lib
11986 mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs
11987 CONFIG_HEADER = ../config.h
11988 CONFIG_CLEAN_FILES =