1 diff -urN linux-atm.old/aclocal.m4 linux-atm.dev/aclocal.m4
2 --- linux-atm.old/aclocal.m4 2005-08-23 01:12:10.833789000 +0200
3 +++ linux-atm.dev/aclocal.m4 2005-08-23 01:12:44.813623720 +0200
5 dnl even the implied warranty of MERCHANTABILITY or FITNESS FOR A
6 dnl PARTICULAR PURPOSE.
8 +# lib-prefix.m4 serial 4 (gettext-0.14.2)
9 +dnl Copyright (C) 2001-2005 Free Software Foundation, Inc.
10 +dnl This file is free software; the Free Software Foundation
11 +dnl gives unlimited permission to copy and/or distribute it,
12 +dnl with or without modifications, as long as this notice is preserved.
14 +dnl From Bruno Haible.
16 +dnl AC_LIB_ARG_WITH is synonymous to AC_ARG_WITH in autoconf-2.13, and
17 +dnl similar to AC_ARG_WITH in autoconf 2.52...2.57 except that is doesn't
18 +dnl require excessive bracketing.
19 +ifdef([AC_HELP_STRING],
20 +[AC_DEFUN([AC_LIB_ARG_WITH], [AC_ARG_WITH([$1],[[$2]],[$3],[$4])])],
21 +[AC_DEFUN([AC_][LIB_ARG_WITH], [AC_ARG_WITH([$1],[$2],[$3],[$4])])])
23 +dnl AC_LIB_PREFIX adds to the CPPFLAGS and LDFLAGS the flags that are needed
24 +dnl to access previously installed libraries. The basic assumption is that
25 +dnl a user will want packages to use other packages he previously installed
26 +dnl with the same --prefix option.
27 +dnl This macro is not needed if only AC_LIB_LINKFLAGS is used to locate
28 +dnl libraries, but is otherwise very convenient.
29 +AC_DEFUN([AC_LIB_PREFIX],
31 + AC_BEFORE([$0], [AC_LIB_LINKFLAGS])
32 + AC_REQUIRE([AC_PROG_CC])
33 + AC_REQUIRE([AC_CANONICAL_HOST])
34 + AC_REQUIRE([AC_LIB_PREPARE_PREFIX])
35 + dnl By default, look in $includedir and $libdir.
37 + AC_LIB_WITH_FINAL_PREFIX([
38 + eval additional_includedir=\"$includedir\"
39 + eval additional_libdir=\"$libdir\"
41 + AC_LIB_ARG_WITH([lib-prefix],
42 +[ --with-lib-prefix[=DIR] search for libraries in DIR/include and DIR/lib
43 + --without-lib-prefix don't search for libraries in includedir and libdir],
45 + if test "X$withval" = "Xno"; then
48 + if test "X$withval" = "X"; then
49 + AC_LIB_WITH_FINAL_PREFIX([
50 + eval additional_includedir=\"$includedir\"
51 + eval additional_libdir=\"$libdir\"
54 + additional_includedir="$withval/include"
55 + additional_libdir="$withval/lib"
59 + if test $use_additional = yes; then
60 + dnl Potentially add $additional_includedir to $CPPFLAGS.
61 + dnl But don't add it
62 + dnl 1. if it's the standard /usr/include,
63 + dnl 2. if it's already present in $CPPFLAGS,
64 + dnl 3. if it's /usr/local/include and we are using GCC on Linux,
65 + dnl 4. if it doesn't exist as a directory.
66 + if test "X$additional_includedir" != "X/usr/include"; then
68 + for x in $CPPFLAGS; do
69 + AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"])
70 + if test "X$x" = "X-I$additional_includedir"; then
75 + if test -z "$haveit"; then
76 + if test "X$additional_includedir" = "X/usr/local/include"; then
77 + if test -n "$GCC"; then
79 + linux* | gnu* | k*bsd*-gnu) haveit=yes;;
83 + if test -z "$haveit"; then
84 + if test -d "$additional_includedir"; then
85 + dnl Really add $additional_includedir to $CPPFLAGS.
86 + CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }-I$additional_includedir"
91 + dnl Potentially add $additional_libdir to $LDFLAGS.
92 + dnl But don't add it
93 + dnl 1. if it's the standard /usr/lib,
94 + dnl 2. if it's already present in $LDFLAGS,
95 + dnl 3. if it's /usr/local/lib and we are using GCC on Linux,
96 + dnl 4. if it doesn't exist as a directory.
97 + if test "X$additional_libdir" != "X/usr/lib"; then
99 + for x in $LDFLAGS; do
100 + AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"])
101 + if test "X$x" = "X-L$additional_libdir"; then
106 + if test -z "$haveit"; then
107 + if test "X$additional_libdir" = "X/usr/local/lib"; then
108 + if test -n "$GCC"; then
110 + linux*) haveit=yes;;
114 + if test -z "$haveit"; then
115 + if test -d "$additional_libdir"; then
116 + dnl Really add $additional_libdir to $LDFLAGS.
117 + LDFLAGS="${LDFLAGS}${LDFLAGS:+ }-L$additional_libdir"
125 +dnl AC_LIB_PREPARE_PREFIX creates variables acl_final_prefix,
126 +dnl acl_final_exec_prefix, containing the values to which $prefix and
127 +dnl $exec_prefix will expand at the end of the configure script.
128 +AC_DEFUN([AC_LIB_PREPARE_PREFIX],
130 + dnl Unfortunately, prefix and exec_prefix get only finally determined
131 + dnl at the end of configure.
132 + if test "X$prefix" = "XNONE"; then
133 + acl_final_prefix="$ac_default_prefix"
135 + acl_final_prefix="$prefix"
137 + if test "X$exec_prefix" = "XNONE"; then
138 + acl_final_exec_prefix='${prefix}'
140 + acl_final_exec_prefix="$exec_prefix"
142 + acl_save_prefix="$prefix"
143 + prefix="$acl_final_prefix"
144 + eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
145 + prefix="$acl_save_prefix"
148 +dnl AC_LIB_WITH_FINAL_PREFIX([statement]) evaluates statement, with the
149 +dnl variables prefix and exec_prefix bound to the values they will have
150 +dnl at the end of the configure script.
151 +AC_DEFUN([AC_LIB_WITH_FINAL_PREFIX],
153 + acl_save_prefix="$prefix"
154 + prefix="$acl_final_prefix"
155 + acl_save_exec_prefix="$exec_prefix"
156 + exec_prefix="$acl_final_exec_prefix"
158 + exec_prefix="$acl_save_exec_prefix"
159 + prefix="$acl_save_prefix"
162 +# lib-link.m4 serial 6 (gettext-0.14.3)
163 +dnl Copyright (C) 2001-2005 Free Software Foundation, Inc.
164 +dnl This file is free software; the Free Software Foundation
165 +dnl gives unlimited permission to copy and/or distribute it,
166 +dnl with or without modifications, as long as this notice is preserved.
168 +dnl From Bruno Haible.
172 +dnl AC_LIB_LINKFLAGS(name [, dependencies]) searches for libname and
173 +dnl the libraries corresponding to explicit and implicit dependencies.
174 +dnl Sets and AC_SUBSTs the LIB${NAME} and LTLIB${NAME} variables and
175 +dnl augments the CPPFLAGS variable.
176 +AC_DEFUN([AC_LIB_LINKFLAGS],
178 + AC_REQUIRE([AC_LIB_PREPARE_PREFIX])
179 + AC_REQUIRE([AC_LIB_RPATH])
180 + define([Name],[translit([$1],[./-], [___])])
181 + define([NAME],[translit([$1],[abcdefghijklmnopqrstuvwxyz./-],
182 + [ABCDEFGHIJKLMNOPQRSTUVWXYZ___])])
183 + AC_CACHE_CHECK([how to link with lib[]$1], [ac_cv_lib[]Name[]_libs], [
184 + AC_LIB_LINKFLAGS_BODY([$1], [$2])
185 + ac_cv_lib[]Name[]_libs="$LIB[]NAME"
186 + ac_cv_lib[]Name[]_ltlibs="$LTLIB[]NAME"
187 + ac_cv_lib[]Name[]_cppflags="$INC[]NAME"
189 + LIB[]NAME="$ac_cv_lib[]Name[]_libs"
190 + LTLIB[]NAME="$ac_cv_lib[]Name[]_ltlibs"
191 + INC[]NAME="$ac_cv_lib[]Name[]_cppflags"
192 + AC_LIB_APPENDTOVAR([CPPFLAGS], [$INC]NAME)
193 + AC_SUBST([LIB]NAME)
194 + AC_SUBST([LTLIB]NAME)
195 + dnl Also set HAVE_LIB[]NAME so that AC_LIB_HAVE_LINKFLAGS can reuse the
196 + dnl results of this search when this library appears as a dependency.
202 +dnl AC_LIB_HAVE_LINKFLAGS(name, dependencies, includes, testcode)
203 +dnl searches for libname and the libraries corresponding to explicit and
204 +dnl implicit dependencies, together with the specified include files and
205 +dnl the ability to compile and link the specified testcode. If found, it
206 +dnl sets and AC_SUBSTs HAVE_LIB${NAME}=yes and the LIB${NAME} and
207 +dnl LTLIB${NAME} variables and augments the CPPFLAGS variable, and
208 +dnl #defines HAVE_LIB${NAME} to 1. Otherwise, it sets and AC_SUBSTs
209 +dnl HAVE_LIB${NAME}=no and LIB${NAME} and LTLIB${NAME} to empty.
210 +AC_DEFUN([AC_LIB_HAVE_LINKFLAGS],
212 + AC_REQUIRE([AC_LIB_PREPARE_PREFIX])
213 + AC_REQUIRE([AC_LIB_RPATH])
214 + define([Name],[translit([$1],[./-], [___])])
215 + define([NAME],[translit([$1],[abcdefghijklmnopqrstuvwxyz./-],
216 + [ABCDEFGHIJKLMNOPQRSTUVWXYZ___])])
218 + dnl Search for lib[]Name and define LIB[]NAME, LTLIB[]NAME and INC[]NAME
220 + AC_LIB_LINKFLAGS_BODY([$1], [$2])
222 + dnl Add $INC[]NAME to CPPFLAGS before performing the following checks,
223 + dnl because if the user has installed lib[]Name and not disabled its use
224 + dnl via --without-lib[]Name-prefix, he wants to use it.
225 + ac_save_CPPFLAGS="$CPPFLAGS"
226 + AC_LIB_APPENDTOVAR([CPPFLAGS], [$INC]NAME)
228 + AC_CACHE_CHECK([for lib[]$1], [ac_cv_lib[]Name], [
229 + ac_save_LIBS="$LIBS"
230 + LIBS="$LIBS $LIB[]NAME"
231 + AC_TRY_LINK([$3], [$4], [ac_cv_lib[]Name=yes], [ac_cv_lib[]Name=no])
232 + LIBS="$ac_save_LIBS"
234 + if test "$ac_cv_lib[]Name" = yes; then
236 + AC_DEFINE([HAVE_LIB]NAME, 1, [Define if you have the $1 library.])
237 + AC_MSG_CHECKING([how to link with lib[]$1])
238 + AC_MSG_RESULT([$LIB[]NAME])
241 + dnl If $LIB[]NAME didn't lead to a usable library, we don't need
242 + dnl $INC[]NAME either.
243 + CPPFLAGS="$ac_save_CPPFLAGS"
247 + AC_SUBST([HAVE_LIB]NAME)
248 + AC_SUBST([LIB]NAME)
249 + AC_SUBST([LTLIB]NAME)
254 +dnl Determine the platform dependent parameters needed to use rpath:
255 +dnl libext, shlibext, hardcode_libdir_flag_spec, hardcode_libdir_separator,
256 +dnl hardcode_direct, hardcode_minus_L.
257 +AC_DEFUN([AC_LIB_RPATH],
259 + dnl Tell automake >= 1.10 to complain if config.rpath is missing.
260 + m4_ifdef([AC_REQUIRE_AUX_FILE], [AC_REQUIRE_AUX_FILE([config.rpath])])
261 + AC_REQUIRE([AC_PROG_CC]) dnl we use $CC, $GCC, $LDFLAGS
262 + AC_REQUIRE([AC_LIB_PROG_LD]) dnl we use $LD, $with_gnu_ld
263 + AC_REQUIRE([AC_CANONICAL_HOST]) dnl we use $host
264 + AC_REQUIRE([AC_CONFIG_AUX_DIR_DEFAULT]) dnl we use $ac_aux_dir
265 + AC_CACHE_CHECK([for shared library run path origin], acl_cv_rpath, [
266 + CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
267 + ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
269 + rm -f ./conftest.sh
273 + libext="$acl_cv_libext"
274 + shlibext="$acl_cv_shlibext"
275 + hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
276 + hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
277 + hardcode_direct="$acl_cv_hardcode_direct"
278 + hardcode_minus_L="$acl_cv_hardcode_minus_L"
279 + dnl Determine whether the user wants rpath handling at all.
280 + AC_ARG_ENABLE(rpath,
281 + [ --disable-rpath do not hardcode runtime library paths],
282 + :, enable_rpath=yes)
285 +dnl AC_LIB_LINKFLAGS_BODY(name [, dependencies]) searches for libname and
286 +dnl the libraries corresponding to explicit and implicit dependencies.
287 +dnl Sets the LIB${NAME}, LTLIB${NAME} and INC${NAME} variables.
288 +AC_DEFUN([AC_LIB_LINKFLAGS_BODY],
290 + define([NAME],[translit([$1],[abcdefghijklmnopqrstuvwxyz./-],
291 + [ABCDEFGHIJKLMNOPQRSTUVWXYZ___])])
292 + dnl By default, look in $includedir and $libdir.
294 + AC_LIB_WITH_FINAL_PREFIX([
295 + eval additional_includedir=\"$includedir\"
296 + eval additional_libdir=\"$libdir\"
298 + AC_LIB_ARG_WITH([lib$1-prefix],
299 +[ --with-lib$1-prefix[=DIR] search for lib$1 in DIR/include and DIR/lib
300 + --without-lib$1-prefix don't search for lib$1 in includedir and libdir],
302 + if test "X$withval" = "Xno"; then
305 + if test "X$withval" = "X"; then
306 + AC_LIB_WITH_FINAL_PREFIX([
307 + eval additional_includedir=\"$includedir\"
308 + eval additional_libdir=\"$libdir\"
311 + additional_includedir="$withval/include"
312 + additional_libdir="$withval/lib"
316 + dnl Search the library and its dependencies in $additional_libdir and
317 + dnl $LDFLAGS. Using breadth-first-seach.
323 + names_already_handled=
324 + names_next_round='$1 $2'
325 + while test -n "$names_next_round"; do
326 + names_this_round="$names_next_round"
328 + for name in $names_this_round; do
330 + for n in $names_already_handled; do
331 + if test "$n" = "$name"; then
332 + already_handled=yes
336 + if test -z "$already_handled"; then
337 + names_already_handled="$names_already_handled $name"
338 + dnl See if it was already located by an earlier AC_LIB_LINKFLAGS
339 + dnl or AC_LIB_HAVE_LINKFLAGS call.
340 + uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
341 + eval value=\"\$HAVE_LIB$uppername\"
342 + if test -n "$value"; then
343 + if test "$value" = yes; then
344 + eval value=\"\$LIB$uppername\"
345 + test -z "$value" || LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$value"
346 + eval value=\"\$LTLIB$uppername\"
347 + test -z "$value" || LTLIB[]NAME="${LTLIB[]NAME}${LTLIB[]NAME:+ }$value"
349 + dnl An earlier call to AC_LIB_HAVE_LINKFLAGS has determined
350 + dnl that this library doesn't exist. So just drop it.
354 + dnl Search the library lib$name in $additional_libdir and $LDFLAGS
355 + dnl and the already constructed $LIBNAME/$LTLIBNAME.
360 + if test $use_additional = yes; then
361 + if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
362 + found_dir="$additional_libdir"
363 + found_so="$additional_libdir/lib$name.$shlibext"
364 + if test -f "$additional_libdir/lib$name.la"; then
365 + found_la="$additional_libdir/lib$name.la"
368 + if test -f "$additional_libdir/lib$name.$libext"; then
369 + found_dir="$additional_libdir"
370 + found_a="$additional_libdir/lib$name.$libext"
371 + if test -f "$additional_libdir/lib$name.la"; then
372 + found_la="$additional_libdir/lib$name.la"
377 + if test "X$found_dir" = "X"; then
378 + for x in $LDFLAGS $LTLIB[]NAME; do
379 + AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"])
382 + dir=`echo "X$x" | sed -e 's/^X-L//'`
383 + if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
385 + found_so="$dir/lib$name.$shlibext"
386 + if test -f "$dir/lib$name.la"; then
387 + found_la="$dir/lib$name.la"
390 + if test -f "$dir/lib$name.$libext"; then
392 + found_a="$dir/lib$name.$libext"
393 + if test -f "$dir/lib$name.la"; then
394 + found_la="$dir/lib$name.la"
400 + if test "X$found_dir" != "X"; then
405 + if test "X$found_dir" != "X"; then
406 + dnl Found the library.
407 + LTLIB[]NAME="${LTLIB[]NAME}${LTLIB[]NAME:+ }-L$found_dir -l$name"
408 + if test "X$found_so" != "X"; then
409 + dnl Linking with a shared library. We attempt to hardcode its
410 + dnl directory into the executable's runpath, unless it's the
411 + dnl standard /usr/lib.
412 + if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
413 + dnl No hardcoding is needed.
414 + LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$found_so"
416 + dnl Use an explicit option to hardcode DIR into the resulting
418 + dnl Potentially add DIR to ltrpathdirs.
419 + dnl The ltrpathdirs will be appended to $LTLIBNAME at the end.
421 + for x in $ltrpathdirs; do
422 + if test "X$x" = "X$found_dir"; then
427 + if test -z "$haveit"; then
428 + ltrpathdirs="$ltrpathdirs $found_dir"
430 + dnl The hardcoding into $LIBNAME is system dependent.
431 + if test "$hardcode_direct" = yes; then
432 + dnl Using DIR/libNAME.so during linking hardcodes DIR into the
433 + dnl resulting binary.
434 + LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$found_so"
436 + if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
437 + dnl Use an explicit option to hardcode DIR into the resulting
439 + LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$found_so"
440 + dnl Potentially add DIR to rpathdirs.
441 + dnl The rpathdirs will be appended to $LIBNAME at the end.
443 + for x in $rpathdirs; do
444 + if test "X$x" = "X$found_dir"; then
449 + if test -z "$haveit"; then
450 + rpathdirs="$rpathdirs $found_dir"
453 + dnl Rely on "-L$found_dir".
454 + dnl But don't add it if it's already contained in the LDFLAGS
455 + dnl or the already constructed $LIBNAME
457 + for x in $LDFLAGS $LIB[]NAME; do
458 + AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"])
459 + if test "X$x" = "X-L$found_dir"; then
464 + if test -z "$haveit"; then
465 + LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }-L$found_dir"
467 + if test "$hardcode_minus_L" != no; then
468 + dnl FIXME: Not sure whether we should use
469 + dnl "-L$found_dir -l$name" or "-L$found_dir $found_so"
471 + LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$found_so"
473 + dnl We cannot use $hardcode_runpath_var and LD_RUN_PATH
474 + dnl here, because this doesn't fit in flags passed to the
475 + dnl compiler. So give up. No hardcoding. This affects only
476 + dnl very old systems.
477 + dnl FIXME: Not sure whether we should use
478 + dnl "-L$found_dir -l$name" or "-L$found_dir $found_so"
480 + LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }-l$name"
486 + if test "X$found_a" != "X"; then
487 + dnl Linking with a static library.
488 + LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$found_a"
490 + dnl We shouldn't come here, but anyway it's good to have a
492 + LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }-L$found_dir -l$name"
495 + dnl Assume the include files are nearby.
496 + additional_includedir=
497 + case "$found_dir" in
499 + basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
500 + additional_includedir="$basedir/include"
503 + if test "X$additional_includedir" != "X"; then
504 + dnl Potentially add $additional_includedir to $INCNAME.
505 + dnl But don't add it
506 + dnl 1. if it's the standard /usr/include,
507 + dnl 2. if it's /usr/local/include and we are using GCC on Linux,
508 + dnl 3. if it's already present in $CPPFLAGS or the already
509 + dnl constructed $INCNAME,
510 + dnl 4. if it doesn't exist as a directory.
511 + if test "X$additional_includedir" != "X/usr/include"; then
513 + if test "X$additional_includedir" = "X/usr/local/include"; then
514 + if test -n "$GCC"; then
516 + linux* | gnu* | k*bsd*-gnu) haveit=yes;;
520 + if test -z "$haveit"; then
521 + for x in $CPPFLAGS $INC[]NAME; do
522 + AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"])
523 + if test "X$x" = "X-I$additional_includedir"; then
528 + if test -z "$haveit"; then
529 + if test -d "$additional_includedir"; then
530 + dnl Really add $additional_includedir to $INCNAME.
531 + INC[]NAME="${INC[]NAME}${INC[]NAME:+ }-I$additional_includedir"
537 + dnl Look for dependencies.
538 + if test -n "$found_la"; then
539 + dnl Read the .la file. It defines the variables
540 + dnl dlname, library_names, old_library, dependency_libs, current,
541 + dnl age, revision, installed, dlopen, dlpreopen, libdir.
542 + save_libdir="$libdir"
543 + case "$found_la" in
544 + */* | *\\*) . "$found_la" ;;
545 + *) . "./$found_la" ;;
547 + libdir="$save_libdir"
548 + dnl We use only dependency_libs.
549 + for dep in $dependency_libs; do
552 + additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
553 + dnl Potentially add $additional_libdir to $LIBNAME and $LTLIBNAME.
554 + dnl But don't add it
555 + dnl 1. if it's the standard /usr/lib,
556 + dnl 2. if it's /usr/local/lib and we are using GCC on Linux,
557 + dnl 3. if it's already present in $LDFLAGS or the already
558 + dnl constructed $LIBNAME,
559 + dnl 4. if it doesn't exist as a directory.
560 + if test "X$additional_libdir" != "X/usr/lib"; then
562 + if test "X$additional_libdir" = "X/usr/local/lib"; then
563 + if test -n "$GCC"; then
565 + linux* | gnu* | k*bsd*-gnu) haveit=yes;;
569 + if test -z "$haveit"; then
571 + for x in $LDFLAGS $LIB[]NAME; do
572 + AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"])
573 + if test "X$x" = "X-L$additional_libdir"; then
578 + if test -z "$haveit"; then
579 + if test -d "$additional_libdir"; then
580 + dnl Really add $additional_libdir to $LIBNAME.
581 + LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }-L$additional_libdir"
585 + for x in $LDFLAGS $LTLIB[]NAME; do
586 + AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"])
587 + if test "X$x" = "X-L$additional_libdir"; then
592 + if test -z "$haveit"; then
593 + if test -d "$additional_libdir"; then
594 + dnl Really add $additional_libdir to $LTLIBNAME.
595 + LTLIB[]NAME="${LTLIB[]NAME}${LTLIB[]NAME:+ }-L$additional_libdir"
602 + dir=`echo "X$dep" | sed -e 's/^X-R//'`
603 + if test "$enable_rpath" != no; then
604 + dnl Potentially add DIR to rpathdirs.
605 + dnl The rpathdirs will be appended to $LIBNAME at the end.
607 + for x in $rpathdirs; do
608 + if test "X$x" = "X$dir"; then
613 + if test -z "$haveit"; then
614 + rpathdirs="$rpathdirs $dir"
616 + dnl Potentially add DIR to ltrpathdirs.
617 + dnl The ltrpathdirs will be appended to $LTLIBNAME at the end.
619 + for x in $ltrpathdirs; do
620 + if test "X$x" = "X$dir"; then
625 + if test -z "$haveit"; then
626 + ltrpathdirs="$ltrpathdirs $dir"
631 + dnl Handle this in the next round.
632 + names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
635 + dnl Handle this in the next round. Throw away the .la's
636 + dnl directory; it is already contained in a preceding -L
638 + names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
641 + dnl Most likely an immediate library name.
642 + LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$dep"
643 + LTLIB[]NAME="${LTLIB[]NAME}${LTLIB[]NAME:+ }$dep"
649 + dnl Didn't find the library; assume it is in the system directories
650 + dnl known to the linker and runtime loader. (All the system
651 + dnl directories known to the linker should also be known to the
652 + dnl runtime loader, otherwise the system is severely misconfigured.)
653 + LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }-l$name"
654 + LTLIB[]NAME="${LTLIB[]NAME}${LTLIB[]NAME:+ }-l$name"
660 + if test "X$rpathdirs" != "X"; then
661 + if test -n "$hardcode_libdir_separator"; then
662 + dnl Weird platform: only the last -rpath option counts, the user must
663 + dnl pass all path elements in one option. We can arrange that for a
664 + dnl single library, but not when more than one $LIBNAMEs are used.
666 + for found_dir in $rpathdirs; do
667 + alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
669 + dnl Note: hardcode_libdir_flag_spec uses $libdir and $wl.
670 + acl_save_libdir="$libdir"
672 + eval flag=\"$hardcode_libdir_flag_spec\"
673 + libdir="$acl_save_libdir"
674 + LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$flag"
676 + dnl The -rpath options are cumulative.
677 + for found_dir in $rpathdirs; do
678 + acl_save_libdir="$libdir"
679 + libdir="$found_dir"
680 + eval flag=\"$hardcode_libdir_flag_spec\"
681 + libdir="$acl_save_libdir"
682 + LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$flag"
686 + if test "X$ltrpathdirs" != "X"; then
687 + dnl When using libtool, the option that works for both libraries and
688 + dnl executables is -R. The -R options are cumulative.
689 + for found_dir in $ltrpathdirs; do
690 + LTLIB[]NAME="${LTLIB[]NAME}${LTLIB[]NAME:+ }-R$found_dir"
695 +dnl AC_LIB_APPENDTOVAR(VAR, CONTENTS) appends the elements of CONTENTS to VAR,
696 +dnl unless already present in VAR.
697 +dnl Works only for CPPFLAGS, not for LIB* variables because that sometimes
698 +dnl contains two or three consecutive elements that belong together.
699 +AC_DEFUN([AC_LIB_APPENDTOVAR],
701 + for element in [$2]; do
704 + AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"])
705 + if test "X$x" = "X$element"; then
710 + if test -z "$haveit"; then
711 + [$1]="${[$1]}${[$1]:+ }$element"
716 +# lib-ld.m4 serial 3 (gettext-0.13)
717 +dnl Copyright (C) 1996-2003 Free Software Foundation, Inc.
718 +dnl This file is free software; the Free Software Foundation
719 +dnl gives unlimited permission to copy and/or distribute it,
720 +dnl with or without modifications, as long as this notice is preserved.
722 +dnl Subroutines of libtool.m4,
723 +dnl with replacements s/AC_/AC_LIB/ and s/lt_cv/acl_cv/ to avoid collision
724 +dnl with libtool.m4.
726 +dnl From libtool-1.4. Sets the variable with_gnu_ld to yes or no.
727 +AC_DEFUN([AC_LIB_PROG_LD_GNU],
728 +[AC_CACHE_CHECK([if the linker ($LD) is GNU ld], acl_cv_prog_gnu_ld,
729 +[# I'd rather use --version here, but apparently some GNU ld's only accept -v.
730 +case `$LD -v 2>&1 </dev/null` in
731 +*GNU* | *'with BFD'*)
732 + acl_cv_prog_gnu_ld=yes ;;
734 + acl_cv_prog_gnu_ld=no ;;
736 +with_gnu_ld=$acl_cv_prog_gnu_ld
739 +dnl From libtool-1.4. Sets the variable LD.
740 +AC_DEFUN([AC_LIB_PROG_LD],
741 +[AC_ARG_WITH(gnu-ld,
742 +[ --with-gnu-ld assume the C compiler uses GNU ld [default=no]],
743 +test "$withval" = no || with_gnu_ld=yes, with_gnu_ld=no)
744 +AC_REQUIRE([AC_PROG_CC])dnl
745 +AC_REQUIRE([AC_CANONICAL_HOST])dnl
746 +# Prepare PATH_SEPARATOR.
747 +# The user is always right.
748 +if test "${PATH_SEPARATOR+set}" != set; then
749 + echo "#! /bin/sh" >conf$$.sh
750 + echo "exit 0" >>conf$$.sh
752 + if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
760 +if test "$GCC" = yes; then
761 + # Check if gcc -print-prog-name=ld gives a path.
762 + AC_MSG_CHECKING([for ld used by GCC])
765 + # gcc leaves a trailing carriage return which upsets mingw
766 + ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
768 + ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
771 + # Accept absolute paths.
772 + [[\\/]* | [A-Za-z]:[\\/]*)]
773 + [re_direlt='/[^/][^/]*/\.\./']
774 + # Canonicalize the path of ld
775 + ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
776 + while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
777 + ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
779 + test -z "$LD" && LD="$ac_prog"
782 + # If it fails, then pretend we aren't using GCC.
786 + # If it is relative, then search for the first ld in PATH.
787 + with_gnu_ld=unknown
790 +elif test "$with_gnu_ld" = yes; then
791 + AC_MSG_CHECKING([for GNU ld])
793 + AC_MSG_CHECKING([for non-GNU ld])
795 +AC_CACHE_VAL(acl_cv_path_LD,
796 +[if test -z "$LD"; then
797 + IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
798 + for ac_dir in $PATH; do
799 + test -z "$ac_dir" && ac_dir=.
800 + if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
801 + acl_cv_path_LD="$ac_dir/$ac_prog"
802 + # Check to see if the program is GNU ld. I'd rather use --version,
803 + # but apparently some GNU ld's only accept -v.
804 + # Break only if it was the GNU/non-GNU ld that we prefer.
805 + case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
806 + *GNU* | *'with BFD'*)
807 + test "$with_gnu_ld" != no && break ;;
809 + test "$with_gnu_ld" != yes && break ;;
815 + acl_cv_path_LD="$LD" # Let the user override the test with a path.
817 +LD="$acl_cv_path_LD"
818 +if test -n "$LD"; then
823 +test -z "$LD" && AC_MSG_ERROR([no acceptable ld found in \$PATH])
827 # Like AC_CONFIG_HEADER, but automatically create stamp file.
829 AC_DEFUN([AM_CONFIG_HEADER],
830 @@ -164,12 +983,64 @@
834 -# libtool.m4 - Configure libtool for the host system. -*-Shell-script-*-
835 +# libtool.m4 - Configure libtool for the host system. -*-Autoconf-*-
837 -# serial 46 AC_PROG_LIBTOOL
838 +# serial 47 AC_PROG_LIBTOOL
842 +# AC_PROVIDE_IFELSE(MACRO-NAME, IF-PROVIDED, IF-NOT-PROVIDED)
843 +# -----------------------------------------------------------
844 +# If this macro is not defined by Autoconf, define it here.
845 +m4_ifdef([AC_PROVIDE_IFELSE],
847 + [m4_define([AC_PROVIDE_IFELSE],
848 + [m4_ifdef([AC_PROVIDE_$1],
854 AC_DEFUN([AC_PROG_LIBTOOL],
855 +[AC_REQUIRE([_AC_PROG_LIBTOOL])dnl
856 +dnl If AC_PROG_CXX has already been expanded, run AC_LIBTOOL_CXX
857 +dnl immediately, otherwise, hook it in at the end of AC_PROG_CXX.
858 + AC_PROVIDE_IFELSE([AC_PROG_CXX],
860 + [define([AC_PROG_CXX], defn([AC_PROG_CXX])[AC_LIBTOOL_CXX
862 +dnl And a similar setup for Fortran 77 support
863 + AC_PROVIDE_IFELSE([AC_PROG_F77],
865 + [define([AC_PROG_F77], defn([AC_PROG_F77])[AC_LIBTOOL_F77
868 +dnl Quote A][M_PROG_GCJ so that aclocal doesn't bring it in needlessly.
869 +dnl If either AC_PROG_GCJ or A][M_PROG_GCJ have already been expanded, run
870 +dnl AC_LIBTOOL_GCJ immediately, otherwise, hook it in at the end of both.
871 + AC_PROVIDE_IFELSE([AC_PROG_GCJ],
873 + [AC_PROVIDE_IFELSE([A][M_PROG_GCJ],
875 + [AC_PROVIDE_IFELSE([LT_AC_PROG_GCJ],
877 + [ifdef([AC_PROG_GCJ],
878 + [define([AC_PROG_GCJ], defn([AC_PROG_GCJ])[AC_LIBTOOL_GCJ])])
879 + ifdef([A][M_PROG_GCJ],
880 + [define([A][M_PROG_GCJ], defn([A][M_PROG_GCJ])[AC_LIBTOOL_GCJ])])
881 + ifdef([LT_AC_PROG_GCJ],
882 + [define([LT_AC_PROG_GCJ],
883 + defn([LT_AC_PROG_GCJ])[AC_LIBTOOL_GCJ])])])])
884 +])])# AC_PROG_LIBTOOL
889 +AC_DEFUN([_AC_PROG_LIBTOOL],
890 [AC_REQUIRE([AC_LIBTOOL_SETUP])dnl
891 +AC_BEFORE([$0],[AC_LIBTOOL_CXX])dnl
892 +AC_BEFORE([$0],[AC_LIBTOOL_F77])dnl
893 +AC_BEFORE([$0],[AC_LIBTOOL_GCJ])dnl
895 # This can be used to rebuild libtool when needed
896 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
897 @@ -180,10 +1051,13 @@
899 # Prevent multiple expansion
900 define([AC_PROG_LIBTOOL], [])
902 +])# _AC_PROG_LIBTOOL
907 AC_DEFUN([AC_LIBTOOL_SETUP],
910 AC_REQUIRE([AC_ENABLE_SHARED])dnl
911 AC_REQUIRE([AC_ENABLE_STATIC])dnl
912 AC_REQUIRE([AC_ENABLE_FAST_INSTALL])dnl
913 @@ -193,15 +1067,103 @@
914 AC_REQUIRE([AC_PROG_LD])dnl
915 AC_REQUIRE([AC_PROG_LD_RELOAD_FLAG])dnl
916 AC_REQUIRE([AC_PROG_NM])dnl
917 -AC_REQUIRE([LT_AC_PROG_SED])dnl
919 AC_REQUIRE([AC_PROG_LN_S])dnl
920 AC_REQUIRE([AC_DEPLIBS_CHECK_METHOD])dnl
921 +# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
922 AC_REQUIRE([AC_OBJEXT])dnl
923 AC_REQUIRE([AC_EXEEXT])dnl
926 +AC_LIBTOOL_SYS_MAX_CMD_LEN
927 +AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE
930 +AC_REQUIRE([_LT_AC_SYS_COMPILER])dnl
931 _LT_AC_PROG_ECHO_BACKSLASH
935 + # AIX sometimes has problems with the GCC collect2 program. For some
936 + # reason, if we set the COLLECT_NAMES environment variable, the problems
937 + # vanish in a puff of smoke.
938 + if test "X${COLLECT_NAMES+set}" != Xset; then
940 + export COLLECT_NAMES
945 +# Sed substitution that helps us do robust quoting. It backslashifies
946 +# metacharacters that are still active within double-quoted strings.
947 +Xsed='sed -e s/^X//'
948 +[sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g']
950 +# Same as above, but do not quote variable references.
951 +[double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g']
953 +# Sed substitution to delay expansion of an escaped shell variable in a
954 +# double_quote_subst'ed string.
955 +delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
957 +# Sed substitution to avoid accidental globbing in evaled expressions
958 +no_glob_subst='s/\*/\\\*/g'
964 +default_ofile=libtool
965 +can_build_shared=yes
967 +# All known linkers require a `.a' archive for static linking (except M$VC,
968 +# which needs '.lib').
970 +ltmain="$ac_aux_dir/ltmain.sh"
971 +ofile="$default_ofile"
972 +with_gnu_ld="$lt_cv_prog_gnu_ld"
974 +AC_CHECK_TOOL(AR, ar, false)
975 +AC_CHECK_TOOL(RANLIB, ranlib, :)
976 +AC_CHECK_TOOL(STRIP, strip, :)
979 +old_CFLAGS="$CFLAGS"
981 +# Set sane defaults for various variables
982 +test -z "$AR" && AR=ar
983 +test -z "$AR_FLAGS" && AR_FLAGS=cru
984 +test -z "$AS" && AS=as
985 +test -z "$CC" && CC=cc
986 +test -z "$LTCC" && LTCC=$CC
987 +test -z "$DLLTOOL" && DLLTOOL=dlltool
988 +test -z "$LD" && LD=ld
989 +test -z "$LN_S" && LN_S="ln -s"
990 +test -z "$MAGIC_CMD" && MAGIC_CMD=file
991 +test -z "$NM" && NM=nm
992 +test -z "$SED" && SED=sed
993 +test -z "$OBJDUMP" && OBJDUMP=objdump
994 +test -z "$RANLIB" && RANLIB=:
995 +test -z "$STRIP" && STRIP=:
996 +test -z "$ac_objext" && ac_objext=o
998 +# Determine commands to create old-style static archives.
999 +old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
1000 +old_postinstall_cmds='chmod 644 $oldlib'
1001 +old_postuninstall_cmds=
1003 +if test -n "$RANLIB"; then
1006 + old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
1009 + old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
1012 + old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
1015 # Only perform the check for file, if the check method requires it
1016 case $deplibs_check_method in
1018 @@ -211,327 +1173,78 @@
1022 -AC_CHECK_TOOL(RANLIB, ranlib, :)
1023 -AC_CHECK_TOOL(STRIP, strip, :)
1025 -ifdef([AC_PROVIDE_AC_LIBTOOL_DLOPEN], enable_dlopen=yes, enable_dlopen=no)
1026 -ifdef([AC_PROVIDE_AC_LIBTOOL_WIN32_DLL],
1027 +AC_PROVIDE_IFELSE([AC_LIBTOOL_DLOPEN], enable_dlopen=yes, enable_dlopen=no)
1028 +AC_PROVIDE_IFELSE([AC_LIBTOOL_WIN32_DLL],
1029 enable_win32_dll=yes, enable_win32_dll=no)
1031 -AC_ARG_ENABLE(libtool-lock,
1032 - [ --disable-libtool-lock avoid locking (might break parallel builds)])
1033 +AC_ARG_ENABLE([libtool-lock],
1034 + [AC_HELP_STRING([--disable-libtool-lock],
1035 + [avoid locking (might break parallel builds)])])
1036 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
1038 -# Some flags need to be propagated to the compiler or linker for good
1042 - # Find out which ABI we are using.
1043 - echo '[#]line __oline__ "configure"' > conftest.$ac_ext
1044 - if AC_TRY_EVAL(ac_compile); then
1045 - case `/usr/bin/file conftest.$ac_objext` in
1050 - LD="${LD-ld} -n32"
1060 + [AC_HELP_STRING([--with-pic],
1061 + [try to use only PIC/non-PIC objects @<:@default=use both@:>@])],
1062 + [pic_mode="$withval"],
1063 + [pic_mode=default])
1064 +test -z "$pic_mode" && pic_mode=default
1067 - # On SCO OpenServer 5, we need -belf to get full-featured binaries.
1068 - SAVE_CFLAGS="$CFLAGS"
1069 - CFLAGS="$CFLAGS -belf"
1070 - AC_CACHE_CHECK([whether the C compiler needs -belf], lt_cv_cc_needs_belf,
1073 - AC_TRY_LINK([],[],[lt_cv_cc_needs_belf=yes],[lt_cv_cc_needs_belf=no])
1075 - if test x"$lt_cv_cc_needs_belf" != x"yes"; then
1076 - # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
1077 - CFLAGS="$SAVE_CFLAGS"
1080 +# Use C for the default configuration in the libtool script
1082 +AC_LIBTOOL_LANG_C_CONFIG
1084 +])# AC_LIBTOOL_SETUP
1086 -ifdef([AC_PROVIDE_AC_LIBTOOL_WIN32_DLL],
1087 -[*-*-cygwin* | *-*-mingw* | *-*-pw32*)
1088 - AC_CHECK_TOOL(DLLTOOL, dlltool, false)
1089 - AC_CHECK_TOOL(AS, as, false)
1090 - AC_CHECK_TOOL(OBJDUMP, objdump, false)
1092 - # recent cygwin and mingw systems supply a stub DllMain which the user
1093 - # can override, but on older systems we have to supply one
1094 - AC_CACHE_CHECK([if libtool should supply DllMain function], lt_cv_need_dllmain,
1096 - [extern int __attribute__((__stdcall__)) DllMain(void*, int, void*);
1097 - DllMain (0, 0, 0);],
1098 - [lt_cv_need_dllmain=no],[lt_cv_need_dllmain=yes])])
1101 - *-*-cygwin*/gcc*-mno-cygwin*|*-*-mingw*)
1102 - # old mingw systems require "-dll" to link a DLL, while more recent ones
1104 - SAVE_CFLAGS="$CFLAGS"
1105 - CFLAGS="$CFLAGS -mdll"
1106 - AC_CACHE_CHECK([how to link DLLs], lt_cv_cc_dll_switch,
1107 - [AC_TRY_LINK([], [], [lt_cv_cc_dll_switch=-mdll],[lt_cv_cc_dll_switch=-dll])])
1108 - CFLAGS="$SAVE_CFLAGS" ;;
1109 - *-*-cygwin* | *-*-pw32*)
1110 - # cygwin systems need to pass --dll to the linker, and not link
1111 - # crt.o which will require a WinMain@16 definition.
1112 - lt_cv_cc_dll_switch="-Wl,--dll -nostartfiles" ;;
1117 +# _LT_AC_SYS_COMPILER
1118 +# -------------------
1119 +AC_DEFUN([_LT_AC_SYS_COMPILER],
1120 +[AC_REQUIRE([AC_PROG_CC])dnl
1122 -_LT_AC_LTCONFIG_HACK
1123 +# If no C compiler was specified, use CC.
1128 -# AC_LIBTOOL_HEADER_ASSERT
1129 -# ------------------------
1130 -AC_DEFUN([AC_LIBTOOL_HEADER_ASSERT],
1131 -[AC_CACHE_CHECK([whether $CC supports assert without backlinking],
1132 - [lt_cv_func_assert_works],
1135 - if test "$GCC" = yes && test "$with_gnu_ld" != yes; then
1136 - case `$CC --version 2>/dev/null` in
1137 - [[12]].*) lt_cv_func_assert_works=no ;;
1138 - *) lt_cv_func_assert_works=yes ;;
1144 -if test "x$lt_cv_func_assert_works" = xyes; then
1145 - AC_CHECK_HEADERS(assert.h)
1147 -])# AC_LIBTOOL_HEADER_ASSERT
1149 -# _LT_AC_CHECK_DLFCN
1150 -# --------------------
1151 -AC_DEFUN([_LT_AC_CHECK_DLFCN],
1152 -[AC_CHECK_HEADERS(dlfcn.h)
1153 -])# _LT_AC_CHECK_DLFCN
1155 -# AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE
1156 -# ---------------------------------
1157 -AC_DEFUN([AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE],
1158 -[AC_REQUIRE([AC_CANONICAL_HOST])
1159 -AC_REQUIRE([AC_PROG_NM])
1160 -AC_REQUIRE([AC_OBJEXT])
1161 -# Check for command to grab the raw symbol name followed by C symbol from nm.
1162 -AC_MSG_CHECKING([command to parse $NM output])
1163 -AC_CACHE_VAL([lt_cv_sys_global_symbol_pipe], [dnl
1165 -# These are sane defaults that work on at least a few old systems.
1166 -# [They come from Ultrix. What could be older than Ultrix?!! ;)]
1168 -# Character class describing NM global symbol codes.
1169 -symcode='[[BCDEGRST]]'
1171 -# Regexp to match symbols that can be accessed directly from C.
1172 -sympat='\([[_A-Za-z]][[_A-Za-z0-9]]*\)'
1174 -# Transform the above into a raw symbol and a C symbol.
1175 -symxfrm='\1 \2\3 \3'
1177 -# Transform an extracted symbol line into a proper C declaration
1178 -lt_cv_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern char \1;/p'"
1180 -# Transform an extracted symbol line into symbol name and symbol address
1181 -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'"
1183 -# Define system-specific variables.
1186 - symcode='[[BCDT]]'
1188 -cygwin* | mingw* | pw32*)
1189 - symcode='[[ABCDGISTW]]'
1191 -hpux*) # Its linker distinguishes data from code symbols
1192 - lt_cv_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern char \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
1193 - 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'"
1195 -irix* | nonstopux*)
1196 - symcode='[[BCDEGRST]]'
1199 - symcode='[[BCDEGQRST]]'
1205 - symcode='[[DFNSTU]]'
1209 -# Handle CRLF in mingw tool chain
1213 - opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
1217 -# If we're using GNU nm, then use its standard symbol codes.
1218 -if $NM -V 2>&1 | egrep '(GNU|with BFD)' > /dev/null; then
1219 - symcode='[[ABCDGISTW]]'
1222 -# Try without a prefix undercore, then with it.
1223 -for ac_symprfx in "" "_"; do
1225 - # Write the raw and C identifiers.
1226 -lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[[ ]]\($symcode$symcode*\)[[ ]][[ ]]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
1228 - # Check to see that the pipe works correctly.
1231 - cat > conftest.$ac_ext <<EOF
1236 -void nm_test_func(){}
1240 -int main(){nm_test_var='a';nm_test_func();return(0);}
1243 - if AC_TRY_EVAL(ac_compile); then
1244 - # Now try to grab the symbols.
1246 - if AC_TRY_EVAL(NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) && test -s "$nlist"; then
1247 - # Try sorting and uniquifying the output.
1248 - if sort "$nlist" | uniq > "$nlist"T; then
1249 - mv -f "$nlist"T "$nlist"
1254 - # Make sure that we snagged all the symbols we need.
1255 - if egrep ' nm_test_var$' "$nlist" >/dev/null; then
1256 - if egrep ' nm_test_func$' "$nlist" >/dev/null; then
1257 - cat <<EOF > conftest.$ac_ext
1263 - # Now generate the symbol file.
1264 - eval "$lt_cv_global_symbol_to_cdecl"' < "$nlist" >> conftest.$ac_ext'
1266 - cat <<EOF >> conftest.$ac_ext
1267 -#if defined (__STDC__) && __STDC__
1268 -# define lt_ptr void *
1270 -# define lt_ptr char *
1274 -/* The mapping between symbol names and symbols. */
1279 -lt_preloaded_symbols[[]] =
1282 - sed "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr) \&\2},/" < "$nlist" >> conftest.$ac_ext
1283 - cat <<\EOF >> conftest.$ac_ext
1286 +# Allow CC to be a program name with arguments.
1288 +])# _LT_AC_SYS_COMPILER
1294 - # Now try linking the two files.
1295 - mv conftest.$ac_objext conftstm.$ac_objext
1297 - save_CFLAGS="$CFLAGS"
1298 - LIBS="conftstm.$ac_objext"
1299 - CFLAGS="$CFLAGS$no_builtin_flag"
1300 - if AC_TRY_EVAL(ac_link) && test -s conftest$ac_exeext; then
1304 - CFLAGS="$save_CFLAGS"
1306 - echo "cannot find nm_test_func in $nlist" >&AC_FD_CC
1309 - echo "cannot find nm_test_var in $nlist" >&AC_FD_CC
1312 - echo "cannot run $lt_cv_sys_global_symbol_pipe" >&AC_FD_CC
1315 - echo "$progname: failed program was:" >&AC_FD_CC
1316 - cat conftest.$ac_ext >&5
1318 - rm -f conftest* conftst*
1320 - # Do not use the global_symbol_pipe unless it works.
1321 - if test "$pipe_works" = yes; then
1324 - lt_cv_sys_global_symbol_pipe=
1328 -global_symbol_pipe="$lt_cv_sys_global_symbol_pipe"
1329 -if test -z "$lt_cv_sys_global_symbol_pipe"; then
1330 - global_symbol_to_cdecl=
1331 - global_symbol_to_c_name_address=
1333 - global_symbol_to_cdecl="$lt_cv_global_symbol_to_cdecl"
1334 - global_symbol_to_c_name_address="$lt_cv_global_symbol_to_c_name_address"
1336 -if test -z "$global_symbol_pipe$global_symbol_to_cdec$global_symbol_to_c_name_address";
1338 - AC_MSG_RESULT(failed)
1342 -]) # AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE
1343 +# _LT_AC_SYS_LIBPATH_AIX
1344 +# ----------------------
1345 +# Links a minimal program and checks the executable
1346 +# for the system default hardcoded library path. In most cases,
1347 +# this is /usr/lib:/lib, but when the MPI compilers are used
1348 +# the location of the communication and MPI libs are included too.
1349 +# If we don't find anything, use the default library path according
1350 +# to the aix ld manual.
1351 +AC_DEFUN([_LT_AC_SYS_LIBPATH_AIX],
1352 +[AC_LINK_IFELSE(AC_LANG_PROGRAM,[
1353 +aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
1355 +# Check for a 64-bit object if we didn't find anything.
1356 +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; }
1358 +if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
1359 +])# _LT_AC_SYS_LIBPATH_AIX
1362 +# _LT_AC_SHELL_INIT(ARG)
1363 +# ----------------------
1364 +AC_DEFUN([_LT_AC_SHELL_INIT],
1365 +[ifdef([AC_DIVERSION_NOTICE],
1366 + [AC_DIVERT_PUSH(AC_DIVERSION_NOTICE)],
1367 + [AC_DIVERT_PUSH(NOTICE)])
1370 +])# _LT_AC_SHELL_INIT
1372 -# _LT_AC_LIBTOOL_SYS_PATH_SEPARATOR
1373 -# ---------------------------------
1374 -AC_DEFUN([_LT_AC_LIBTOOL_SYS_PATH_SEPARATOR],
1375 -[# Find the correct PATH separator. Usually this is `:', but
1376 -# DJGPP uses `;' like DOS.
1377 -if test "X${PATH_SEPARATOR+set}" != Xset; then
1378 - UNAME=${UNAME-`uname 2>/dev/null`}
1380 - *-DOS) lt_cv_sys_path_separator=';' ;;
1381 - *) lt_cv_sys_path_separator=':' ;;
1383 - PATH_SEPARATOR=$lt_cv_sys_path_separator
1385 -])# _LT_AC_LIBTOOL_SYS_PATH_SEPARATOR
1387 # _LT_AC_PROG_ECHO_BACKSLASH
1388 # --------------------------
1389 # Add some code to the start of the generated configure script which
1390 # will find an echo command which doesn't interpret backslashes.
1391 AC_DEFUN([_LT_AC_PROG_ECHO_BACKSLASH],
1392 -[ifdef([AC_DIVERSION_NOTICE], [AC_DIVERT_PUSH(AC_DIVERSION_NOTICE)],
1393 - [AC_DIVERT_PUSH(NOTICE)])
1394 -_LT_AC_LIBTOOL_SYS_PATH_SEPARATOR
1396 +[_LT_AC_SHELL_INIT([
1397 # Check that we are running under the correct shell.
1398 SHELL=${CONFIG_SHELL-/bin/sh}
1400 @@ -549,7 +1262,7 @@
1401 elif test "X[$]1" = X--fallback-echo; then
1402 # Avoid inline document here, it may be left over
1404 -elif test "X`($echo '\t') 2>/dev/null`" = 'X\t'; then
1405 +elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
1406 # Yippee, $echo works!
1409 @@ -561,7 +1274,7 @@
1410 # used as fallback echo
1418 @@ -595,8 +1308,9 @@
1420 # So, first we look for a working echo in the user's PATH.
1422 - IFS="${IFS= }"; save_ifs="$IFS"; IFS=$PATH_SEPARATOR
1423 + lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
1424 for dir in $PATH /usr/ucb; do
1425 + IFS="$lt_save_ifs"
1426 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
1427 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
1428 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
1429 @@ -605,7 +1319,7 @@
1434 + IFS="$lt_save_ifs"
1436 if test "X$echo" = Xecho; then
1437 # We didn't find a better echo, so look for alternatives.
1438 @@ -678,47 +1392,328 @@
1443 -])# _LT_AC_PROG_ECHO_BACKSLASH
1444 +])])# _LT_AC_PROG_ECHO_BACKSLASH
1446 -# _LT_AC_TRY_DLOPEN_SELF (ACTION-IF-TRUE, ACTION-IF-TRUE-W-USCORE,
1447 -# ACTION-IF-FALSE, ACTION-IF-CROSS-COMPILING)
1448 -# ------------------------------------------------------------------
1449 -AC_DEFUN([_LT_AC_TRY_DLOPEN_SELF],
1450 -[if test "$cross_compiling" = yes; then :
1453 - AC_REQUIRE([_LT_AC_CHECK_DLFCN])dnl
1454 - lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
1455 - lt_status=$lt_dlunknown
1456 - cat > conftest.$ac_ext <<EOF
1457 -[#line __oline__ "configure"
1458 -#include "confdefs.h"
1465 +AC_DEFUN([_LT_AC_LOCK],
1466 +[AC_ARG_ENABLE([libtool-lock],
1467 + [AC_HELP_STRING([--disable-libtool-lock],
1468 + [avoid locking (might break parallel builds)])])
1469 +test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
1472 +# Some flags need to be propagated to the compiler or linker for good
1476 + # Find out which ABI we are using.
1477 + echo 'int i;' > conftest.$ac_ext
1478 + if AC_TRY_EVAL(ac_compile); then
1479 + case `/usr/bin/file conftest.$ac_objext` in
1481 + HPUX_IA64_MODE="32"
1484 + HPUX_IA64_MODE="64"
1491 + # Find out which ABI we are using.
1492 + echo '[#]line __oline__ "configure"' > conftest.$ac_ext
1493 + if AC_TRY_EVAL(ac_compile); then
1494 + if test "$lt_cv_prog_gnu_ld" = yes; then
1495 + case `/usr/bin/file conftest.$ac_objext` in
1497 + LD="${LD-ld} -melf32bsmip"
1500 + LD="${LD-ld} -melf32bmipn32"
1503 + LD="${LD-ld} -melf64bmip"
1507 + case `/usr/bin/file conftest.$ac_objext` in
1512 + LD="${LD-ld} -n32"
1524 -# define LT_DLGLOBAL RTLD_GLOBAL
1527 -# define LT_DLGLOBAL DL_GLOBAL
1529 -# define LT_DLGLOBAL 0
1532 +x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
1533 + # Find out which ABI we are using.
1534 + echo 'int i;' > conftest.$ac_ext
1535 + if AC_TRY_EVAL(ac_compile); then
1536 + case "`/usr/bin/file conftest.o`" in
1540 + LD="${LD-ld} -m elf_i386"
1542 + ppc64-*linux*|powerpc64-*linux*)
1543 + LD="${LD-ld} -m elf32ppclinux"
1546 + LD="${LD-ld} -m elf_s390"
1549 + LD="${LD-ld} -m elf32_sparc"
1556 + LD="${LD-ld} -m elf_x86_64"
1558 + ppc*-*linux*|powerpc*-*linux*)
1559 + LD="${LD-ld} -m elf64ppc"
1562 + LD="${LD-ld} -m elf64_s390"
1565 + LD="${LD-ld} -m elf64_sparc"
1574 -/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
1575 - find out it does not work in some platform. */
1576 -#ifndef LT_DLLAZY_OR_NOW
1578 -# define LT_DLLAZY_OR_NOW RTLD_LAZY
1581 -# define LT_DLLAZY_OR_NOW DL_LAZY
1583 + # On SCO OpenServer 5, we need -belf to get full-featured binaries.
1584 + SAVE_CFLAGS="$CFLAGS"
1585 + CFLAGS="$CFLAGS -belf"
1586 + AC_CACHE_CHECK([whether the C compiler needs -belf], lt_cv_cc_needs_belf,
1588 + AC_TRY_LINK([],[],[lt_cv_cc_needs_belf=yes],[lt_cv_cc_needs_belf=no])
1590 + if test x"$lt_cv_cc_needs_belf" != x"yes"; then
1591 + # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
1592 + CFLAGS="$SAVE_CFLAGS"
1595 +AC_PROVIDE_IFELSE([AC_LIBTOOL_WIN32_DLL],
1596 +[*-*-cygwin* | *-*-mingw* | *-*-pw32*)
1597 + AC_CHECK_TOOL(DLLTOOL, dlltool, false)
1598 + AC_CHECK_TOOL(AS, as, false)
1599 + AC_CHECK_TOOL(OBJDUMP, objdump, false)
1604 +need_locks="$enable_libtool_lock"
1609 +# AC_LIBTOOL_COMPILER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS,
1610 +# [OUTPUT-FILE], [ACTION-SUCCESS], [ACTION-FAILURE])
1611 +# ----------------------------------------------------------------
1612 +# Check whether the given compiler option works
1613 +AC_DEFUN([AC_LIBTOOL_COMPILER_OPTION],
1614 +[AC_REQUIRE([LT_AC_PROG_SED])
1615 +AC_CACHE_CHECK([$1], [$2],
1617 + ifelse([$4], , [ac_outfile=conftest.$ac_objext], [ac_outfile=$4])
1618 + printf "$lt_simple_compile_test_code" > conftest.$ac_ext
1619 + lt_compiler_flag="$3"
1620 + # Insert the option either (1) after the last *FLAGS variable, or
1621 + # (2) before a word containing "conftest.", or (3) at the end.
1622 + # Note that $ac_compile itself does not contain backslashes and begins
1623 + # with a dollar sign (not a hyphen), so the echo should work correctly.
1624 + # The option is referenced via a variable to avoid confusing sed.
1625 + lt_compile=`echo "$ac_compile" | $SED \
1626 + -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
1627 + -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \
1628 + -e 's:$: $lt_compiler_flag:'`
1629 + (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&AS_MESSAGE_LOG_FD)
1630 + (eval "$lt_compile" 2>conftest.err)
1632 + cat conftest.err >&AS_MESSAGE_LOG_FD
1633 + echo "$as_me:__oline__: \$? = $ac_status" >&AS_MESSAGE_LOG_FD
1634 + if (exit $ac_status) && test -s "$ac_outfile"; then
1635 + # The compiler can only warn and ignore the option if not recognized
1636 + # So say no if there are warnings
1637 + if test ! -s conftest.err; then
1644 +if test x"[$]$2" = xyes; then
1645 + ifelse([$5], , :, [$5])
1647 + ifelse([$6], , :, [$6])
1649 +])# AC_LIBTOOL_COMPILER_OPTION
1652 +# AC_LIBTOOL_LINKER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS,
1653 +# [ACTION-SUCCESS], [ACTION-FAILURE])
1654 +# ------------------------------------------------------------
1655 +# Check whether the given compiler option works
1656 +AC_DEFUN([AC_LIBTOOL_LINKER_OPTION],
1657 +[AC_CACHE_CHECK([$1], [$2],
1659 + save_LDFLAGS="$LDFLAGS"
1660 + LDFLAGS="$LDFLAGS $3"
1661 + printf "$lt_simple_link_test_code" > conftest.$ac_ext
1662 + if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
1663 + # The compiler can only warn and ignore the option if not recognized
1664 + # So say no if there are warnings
1665 + if test -s conftest.err; then
1666 + # Append any errors to the config.log.
1667 + cat conftest.err 1>&AS_MESSAGE_LOG_FD
1673 + LDFLAGS="$save_LDFLAGS"
1676 +if test x"[$]$2" = xyes; then
1677 + ifelse([$4], , :, [$4])
1679 + ifelse([$5], , :, [$5])
1681 +])# AC_LIBTOOL_LINKER_OPTION
1684 +# AC_LIBTOOL_SYS_MAX_CMD_LEN
1685 +# --------------------------
1686 +AC_DEFUN([AC_LIBTOOL_SYS_MAX_CMD_LEN],
1687 +[# find the maximum length of command line arguments
1688 +AC_MSG_CHECKING([the maximum length of command line arguments])
1689 +AC_CACHE_VAL([lt_cv_sys_max_cmd_len], [dnl
1695 + # On DJGPP, this test can blow up pretty badly due to problems in libc
1696 + # (any single argument exceeding 2000 bytes causes a buffer overrun
1697 + # during glob expansion). Even if it were fixed, the result of this
1698 + # check would be larger than it should be.
1699 + lt_cv_sys_max_cmd_len=12288; # 12K is about right
1703 + # Under GNU Hurd, this test is not required because there is
1704 + # no limit to the length of command line arguments.
1705 + # Libtool will interpret -1 as no limit whatsoever
1706 + lt_cv_sys_max_cmd_len=-1;
1710 + # On Win9x/ME, this test blows up -- it succeeds, but takes
1711 + # about 5 minutes as the teststring grows exponentially.
1712 + # Worse, since 9x/ME are not pre-emptively multitasking,
1713 + # you end up with a "frozen" computer, even though with patience
1714 + # the test eventually succeeds (with a max line length of 256k).
1715 + # Instead, let's just punt: use the minimum linelength reported by
1716 + # all of the supported platforms: 8192 (on NT/2K/XP).
1717 + lt_cv_sys_max_cmd_len=8192;
1721 + # On AmigaOS with pdksh, this test takes hours, literally.
1722 + # So we just punt and use a minimum line length of 8192.
1723 + lt_cv_sys_max_cmd_len=8192;
1727 + # If test is not a shell built-in, we'll probably end up computing a
1728 + # maximum length that is only half of the actual maximum length, but
1730 + while (test "X"`$CONFIG_SHELL [$]0 --fallback-echo "X$teststring" 2>/dev/null` \
1731 + = "XX$teststring") >/dev/null 2>&1 &&
1732 + new_result=`expr "X$teststring" : ".*" 2>&1` &&
1733 + lt_cv_sys_max_cmd_len=$new_result &&
1734 + test $i != 17 # 1/2 MB should be enough
1737 + teststring=$teststring$teststring
1740 + # Add a significant safety factor because C++ compilers can tack on massive
1741 + # amounts of additional arguments before passing them to the linker.
1742 + # It appears as though 1/2 is a usable value.
1743 + lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
1747 +if test -n $lt_cv_sys_max_cmd_len ; then
1748 + AC_MSG_RESULT($lt_cv_sys_max_cmd_len)
1750 + AC_MSG_RESULT(none)
1752 +])# AC_LIBTOOL_SYS_MAX_CMD_LEN
1755 +# _LT_AC_CHECK_DLFCN
1756 +# --------------------
1757 +AC_DEFUN([_LT_AC_CHECK_DLFCN],
1758 +[AC_CHECK_HEADERS(dlfcn.h)dnl
1759 +])# _LT_AC_CHECK_DLFCN
1762 +# _LT_AC_TRY_DLOPEN_SELF (ACTION-IF-TRUE, ACTION-IF-TRUE-W-USCORE,
1763 +# ACTION-IF-FALSE, ACTION-IF-CROSS-COMPILING)
1764 +# ------------------------------------------------------------------
1765 +AC_DEFUN([_LT_AC_TRY_DLOPEN_SELF],
1766 +[AC_REQUIRE([_LT_AC_CHECK_DLFCN])dnl
1767 +if test "$cross_compiling" = yes; then :
1770 + lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
1771 + lt_status=$lt_dlunknown
1772 + cat > conftest.$ac_ext <<EOF
1773 +[#line __oline__ "configure"
1774 +#include "confdefs.h"
1783 +# define LT_DLGLOBAL RTLD_GLOBAL
1786 +# define LT_DLGLOBAL DL_GLOBAL
1788 +# define LT_DLGLOBAL 0
1792 +/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
1793 + find out it does not work in some platform. */
1794 +#ifndef LT_DLLAZY_OR_NOW
1796 +# define LT_DLLAZY_OR_NOW RTLD_LAZY
1799 +# define LT_DLLAZY_OR_NOW DL_LAZY
1802 # define LT_DLLAZY_OR_NOW RTLD_NOW
1803 @@ -769,10 +1764,12 @@
1805 ])# _LT_AC_TRY_DLOPEN_SELF
1808 # AC_LIBTOOL_DLOPEN_SELF
1809 # -------------------
1810 AC_DEFUN([AC_LIBTOOL_DLOPEN_SELF],
1811 -[if test "x$enable_dlopen" != xyes; then
1812 +[AC_REQUIRE([_LT_AC_CHECK_DLFCN])dnl
1813 +if test "x$enable_dlopen" != xyes; then
1814 enable_dlopen=unknown
1815 enable_dlopen_self=unknown
1816 enable_dlopen_self_static=unknown
1817 @@ -787,24 +1784,39 @@
1818 lt_cv_dlopen_self=yes
1821 - cygwin* | mingw* | pw32*)
1823 lt_cv_dlopen="LoadLibrary"
1828 + lt_cv_dlopen="dlopen"
1829 + lt_cv_dlopen_libs=
1833 + # if libdl is installed we need to link against it
1834 + AC_CHECK_LIB([dl], [dlopen],
1835 + [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"],[
1836 + lt_cv_dlopen="dyld"
1837 + lt_cv_dlopen_libs=
1838 + lt_cv_dlopen_self=yes
1843 AC_CHECK_FUNC([shl_load],
1844 - [lt_cv_dlopen="shl_load"],
1845 + [lt_cv_dlopen="shl_load"],
1846 [AC_CHECK_LIB([dld], [shl_load],
1847 - [lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"],
1848 + [lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"],
1849 [AC_CHECK_FUNC([dlopen],
1850 [lt_cv_dlopen="dlopen"],
1851 [AC_CHECK_LIB([dl], [dlopen],
1852 - [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"],
1853 + [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"],
1854 [AC_CHECK_LIB([svld], [dlopen],
1855 - [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"],
1856 + [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"],
1857 [AC_CHECK_LIB([dld], [dld_link],
1858 - [lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"])
1859 + [lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"])
1863 @@ -822,7 +1834,6 @@
1864 case $lt_cv_dlopen in
1866 save_CPPFLAGS="$CPPFLAGS"
1867 - AC_REQUIRE([_LT_AC_CHECK_DLFCN])dnl
1868 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
1870 save_LDFLAGS="$LDFLAGS"
1871 @@ -866,707 +1877,1838 @@
1873 ])# AC_LIBTOOL_DLOPEN_SELF
1875 -AC_DEFUN([_LT_AC_LTCONFIG_HACK],
1876 -[AC_REQUIRE([AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE])dnl
1877 -# Sed substitution that helps us do robust quoting. It backslashifies
1878 -# metacharacters that are still active within double-quoted strings.
1879 -Xsed='sed -e s/^X//'
1880 -sed_quote_subst='s/\([[\\"\\`$\\\\]]\)/\\\1/g'
1882 -# Same as above, but do not quote variable references.
1883 -double_quote_subst='s/\([[\\"\\`\\\\]]\)/\\\1/g'
1885 -# Sed substitution to delay expansion of an escaped shell variable in a
1886 -# double_quote_subst'ed string.
1887 -delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
1891 +# AC_LIBTOOL_PROG_CC_C_O([TAGNAME])
1892 +# ---------------------------------
1893 +# Check to see if options -c and -o are simultaneously supported by compiler
1894 +AC_DEFUN([AC_LIBTOOL_PROG_CC_C_O],
1895 +[AC_REQUIRE([_LT_AC_SYS_COMPILER])dnl
1896 +AC_CACHE_CHECK([if $compiler supports -c -o file.$ac_objext],
1897 + [_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)],
1898 + [_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)=no
1899 + $rm -r conftest 2>/dev/null
1903 + printf "$lt_simple_compile_test_code" > conftest.$ac_ext
1905 + lt_compiler_flag="-o out/conftest2.$ac_objext"
1906 + # Insert the option either (1) after the last *FLAGS variable, or
1907 + # (2) before a word containing "conftest.", or (3) at the end.
1908 + # Note that $ac_compile itself does not contain backslashes and begins
1909 + # with a dollar sign (not a hyphen), so the echo should work correctly.
1910 + lt_compile=`echo "$ac_compile" | $SED \
1911 + -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
1912 + -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \
1913 + -e 's:$: $lt_compiler_flag:'`
1914 + (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&AS_MESSAGE_LOG_FD)
1915 + (eval "$lt_compile" 2>out/conftest.err)
1917 + cat out/conftest.err >&AS_MESSAGE_LOG_FD
1918 + echo "$as_me:__oline__: \$? = $ac_status" >&AS_MESSAGE_LOG_FD
1919 + if (exit $ac_status) && test -s out/conftest2.$ac_objext
1921 + # The compiler can only warn and ignore the option if not recognized
1922 + # So say no if there are warnings
1923 + if test ! -s out/conftest.err; then
1924 + _LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes
1929 + # SGI C++ compiler will create directory out/ii_files/ for
1930 + # template instantiation
1931 + test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
1932 + $rm out/* && rmdir out
1937 +])# AC_LIBTOOL_PROG_CC_C_O
1939 -# Global variables:
1940 -default_ofile=libtool
1941 -can_build_shared=yes
1943 -# All known linkers require a `.a' archive for static linking (except M$VC,
1944 -# which needs '.lib').
1946 -ltmain="$ac_aux_dir/ltmain.sh"
1947 -ofile="$default_ofile"
1948 -with_gnu_ld="$lt_cv_prog_gnu_ld"
1949 -need_locks="$enable_libtool_lock"
1950 +# AC_LIBTOOL_SYS_HARD_LINK_LOCKS([TAGNAME])
1951 +# -----------------------------------------
1952 +# Check to see if we can do hard links to lock some files if needed
1953 +AC_DEFUN([AC_LIBTOOL_SYS_HARD_LINK_LOCKS],
1954 +[AC_REQUIRE([_LT_AC_LOCK])dnl
1957 -old_CFLAGS="$CFLAGS"
1958 +hard_links="nottested"
1959 +if test "$_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)" = no && test "$need_locks" != no; then
1960 + # do not overwrite the value of need_locks provided by the user
1961 + AC_MSG_CHECKING([if we can lock with hard links])
1964 + ln conftest.a conftest.b 2>/dev/null && hard_links=no
1966 + ln conftest.a conftest.b 2>&5 || hard_links=no
1967 + ln conftest.a conftest.b 2>/dev/null && hard_links=no
1968 + AC_MSG_RESULT([$hard_links])
1969 + if test "$hard_links" = no; then
1970 + AC_MSG_WARN([`$CC' does not support `-c -o', so `make -j' may be unsafe])
1976 +])# AC_LIBTOOL_SYS_HARD_LINK_LOCKS
1978 -# Set sane defaults for various variables
1979 -test -z "$AR" && AR=ar
1980 -test -z "$AR_FLAGS" && AR_FLAGS=cru
1981 -test -z "$AS" && AS=as
1982 -test -z "$CC" && CC=cc
1983 -test -z "$DLLTOOL" && DLLTOOL=dlltool
1984 -test -z "$LD" && LD=ld
1985 -test -z "$LN_S" && LN_S="ln -s"
1986 -test -z "$MAGIC_CMD" && MAGIC_CMD=file
1987 -test -z "$NM" && NM=nm
1988 -test -z "$OBJDUMP" && OBJDUMP=objdump
1989 -test -z "$RANLIB" && RANLIB=:
1990 -test -z "$STRIP" && STRIP=:
1991 -test -z "$ac_objext" && ac_objext=o
1993 -if test x"$host" != x"$build"; then
1994 - ac_tool_prefix=${host_alias}-
1995 +# AC_LIBTOOL_OBJDIR
1996 +# -----------------
1997 +AC_DEFUN([AC_LIBTOOL_OBJDIR],
1998 +[AC_CACHE_CHECK([for objdir], [lt_cv_objdir],
1999 +[rm -f .libs 2>/dev/null
2000 +mkdir .libs 2>/dev/null
2001 +if test -d .libs; then
2002 + lt_cv_objdir=.libs
2005 + # MS-DOS does not allow filenames that begin with a dot.
2006 + lt_cv_objdir=_libs
2008 +rmdir .libs 2>/dev/null])
2009 +objdir=$lt_cv_objdir
2010 +])# AC_LIBTOOL_OBJDIR
2012 -# Transform linux* to *-*-linux-gnu*, to support old configure scripts.
2015 -linux*) host=`echo $host | sed 's/^\(.*-.*-linux\)\(.*\)$/\1-gnu\2/'`
2020 - # AIX sometimes has problems with the GCC collect2 program. For some
2021 - # reason, if we set the COLLECT_NAMES environment variable, the problems
2022 - # vanish in a puff of smoke.
2023 - if test "X${COLLECT_NAMES+set}" != Xset; then
2025 - export COLLECT_NAMES
2026 +# AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH([TAGNAME])
2027 +# ----------------------------------------------
2028 +# Check hardcoding attributes.
2029 +AC_DEFUN([AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH],
2030 +[AC_MSG_CHECKING([how to hardcode library paths into programs])
2031 +_LT_AC_TAGVAR(hardcode_action, $1)=
2032 +if test -n "$_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)" || \
2033 + test -n "$_LT_AC_TAGVAR(runpath_var $1)" || \
2034 + test "X$_LT_AC_TAGVAR(hardcode_automatic, $1)"="Xyes" ; then
2036 + # We can hardcode non-existant directories.
2037 + if test "$_LT_AC_TAGVAR(hardcode_direct, $1)" != no &&
2038 + # If the only mechanism to avoid hardcoding is shlibpath_var, we
2039 + # have to relink, otherwise we might link with an installed library
2040 + # when we should be linking with a yet-to-be-installed one
2041 + ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)" != no &&
2042 + test "$_LT_AC_TAGVAR(hardcode_minus_L, $1)" != no; then
2043 + # Linking always hardcodes the temporary library directory.
2044 + _LT_AC_TAGVAR(hardcode_action, $1)=relink
2046 + # We can link without hardcoding, and we can hardcode nonexisting dirs.
2047 + _LT_AC_TAGVAR(hardcode_action, $1)=immediate
2052 + # We cannot hardcode anything, or else we can only hardcode existing
2054 + _LT_AC_TAGVAR(hardcode_action, $1)=unsupported
2056 +AC_MSG_RESULT([$_LT_AC_TAGVAR(hardcode_action, $1)])
2058 -# Determine commands to create old-style static archives.
2059 -old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
2060 -old_postinstall_cmds='chmod 644 $oldlib'
2061 -old_postuninstall_cmds=
2062 +if test "$_LT_AC_TAGVAR(hardcode_action, $1)" = relink; then
2063 + # Fast installation is not supported
2064 + enable_fast_install=no
2065 +elif test "$shlibpath_overrides_runpath" = yes ||
2066 + test "$enable_shared" = no; then
2067 + # Fast installation is not necessary
2068 + enable_fast_install=needless
2070 +])# AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH
2072 -if test -n "$RANLIB"; then
2074 +# AC_LIBTOOL_SYS_LIB_STRIP
2075 +# ------------------------
2076 +AC_DEFUN([AC_LIBTOOL_SYS_LIB_STRIP],
2079 +AC_MSG_CHECKING([whether stripping libraries is possible])
2080 +if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
2081 + test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
2082 + test -z "$striplib" && striplib="$STRIP --strip-unneeded"
2083 + AC_MSG_RESULT([yes])
2085 +# FIXME - insert some real tests, host_os isn't really good enough
2088 - old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
2091 - old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
2093 + if test -n "$STRIP" ; then
2094 + striplib="$STRIP -x"
2095 + AC_MSG_RESULT([yes])
2097 + AC_MSG_RESULT([no])
2101 + AC_MSG_RESULT([no])
2104 - old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
2106 +])# AC_LIBTOOL_SYS_LIB_STRIP
2108 -# Allow CC to be a program name with arguments.
2112 -AC_MSG_CHECKING([for objdir])
2113 -rm -f .libs 2>/dev/null
2114 -mkdir .libs 2>/dev/null
2115 -if test -d .libs; then
2117 +# AC_LIBTOOL_SYS_DYNAMIC_LINKER
2118 +# -----------------------------
2119 +# PORTME Fill in your ld.so characteristics
2120 +AC_DEFUN([AC_LIBTOOL_SYS_DYNAMIC_LINKER],
2121 +[AC_MSG_CHECKING([dynamic linker characteristics])
2122 +library_names_spec=
2123 +libname_spec='lib$name'
2127 +postuninstall_cmds=
2131 +shlibpath_overrides_runpath=unknown
2133 +dynamic_linker="$host_os ld.so"
2134 +sys_lib_dlsearch_path_spec="/lib /usr/lib"
2135 +if test "$GCC" = yes; then
2136 + sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
2137 + if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
2138 + # if the path contains ";" then we assume it to be the separator
2139 + # otherwise default to the standard path separator (i.e. ":") - it is
2140 + # assumed that no part of a normal pathname contains ";" but that should
2141 + # okay in the real world where ";" in dirpaths is itself problematic.
2142 + sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
2144 + sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
2147 - # MS-DOS does not allow filenames that begin with a dot.
2149 + sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
2151 -rmdir .libs 2>/dev/null
2152 -AC_MSG_RESULT($objdir)
2154 +need_lib_prefix=unknown
2155 +hardcode_into_libs=no
2158 -[ --with-pic try to use only PIC/non-PIC objects [default=use both]],
2159 -pic_mode="$withval", pic_mode=default)
2160 -test -z "$pic_mode" && pic_mode=default
2161 +# when you set need_version to no, make sure it does not cause -set_version
2162 +# flags to be left without arguments
2163 +need_version=unknown
2165 -# We assume here that the value for lt_cv_prog_cc_pic will not be cached
2166 -# in isolation, and that seeing it set (from the cache) indicates that
2167 -# the associated values are set (in the cache) correctly too.
2168 -AC_MSG_CHECKING([for $compiler option to produce PIC])
2169 -AC_CACHE_VAL(lt_cv_prog_cc_pic,
2170 -[ lt_cv_prog_cc_pic=
2171 - lt_cv_prog_cc_shlib=
2173 - lt_cv_prog_cc_static=
2174 - lt_cv_prog_cc_no_builtin=
2175 - lt_cv_prog_cc_can_build_shared=$can_build_shared
2178 + version_type=linux
2179 + library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
2180 + shlibpath_var=LIBPATH
2182 - if test "$GCC" = yes; then
2183 - lt_cv_prog_cc_wl='-Wl,'
2184 - lt_cv_prog_cc_static='-static'
2185 + # AIX 3 has no versioning support, so we append a major version to the name.
2186 + soname_spec='${libname}${release}${shared_ext}$major'
2191 - # Below there is a dirty hack to force normal static linking with -ldl
2192 - # The problem is because libdl dynamically linked with both libc and
2193 - # libC (AIX C++ library), which obviously doesn't included in libraries
2194 - # list by gcc. This cause undefined symbols with -static flags.
2195 - # This hack allows C programs to be linked with "-static -ldl", but
2196 - # not sure about C++ programs.
2197 - lt_cv_prog_cc_static="$lt_cv_prog_cc_static ${lt_cv_prog_cc_wl}-lC"
2200 - # FIXME: we need at least 68020 code to build shared libraries, but
2201 - # adding the `-m68020' flag to GCC prevents building anything better,
2203 - lt_cv_prog_cc_pic='-m68020 -resident32 -malways-restore-a4'
2205 - beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
2206 - # PIC is the default for these OSes.
2208 - darwin* | rhapsody*)
2209 - # PIC is the default on this platform
2210 - # Common symbols not allowed in MH_DYLIB files
2211 - lt_cv_prog_cc_pic='-fno-common'
2213 - cygwin* | mingw* | pw32* | os2*)
2214 - # This hack is so that the source file can tell whether it is being
2215 - # built for inclusion in a dll (and should export symbols for example).
2216 - lt_cv_prog_cc_pic='-DDLL_EXPORT'
2219 - if test -d /usr/nec; then
2220 - lt_cv_prog_cc_pic=-Kconform_pic
2224 - lt_cv_prog_cc_pic='-fPIC'
2228 + version_type=linux
2229 + need_lib_prefix=no
2231 + hardcode_into_libs=yes
2232 + if test "$host_cpu" = ia64; then
2233 + # AIX 5 supports IA64
2234 + library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
2235 + shlibpath_var=LD_LIBRARY_PATH
2237 - # PORTME Check for PIC flags for the system compiler.
2238 + # With GCC up to 2.95.x, collect2 would create an import file
2239 + # for dependence libraries. The import file would start with
2240 + # the line `#! .'. This would cause the generated library to
2241 + # depend on `.', always an invalid library. This was fixed in
2242 + # development snapshots of GCC prior to 3.0.
2244 - aix3* | aix4* | aix5*)
2245 - lt_cv_prog_cc_wl='-Wl,'
2246 - # All AIX code is PIC.
2247 - if test "$host_cpu" = ia64; then
2248 - # AIX 5 now supports IA64 processor
2249 - lt_cv_prog_cc_static='-Bstatic'
2250 + aix4 | aix4.[[01]] | aix4.[[01]].*)
2251 + if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
2253 + echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
2256 - lt_cv_prog_cc_static='-bnso -bI:/lib/syscalls.exp'
2257 + can_build_shared=no
2261 + # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
2262 + # soname into executable. Probably we can add versioning support to
2263 + # collect2, so additional links can be useful in future.
2264 + if test "$aix_use_runtimelinking" = yes; then
2265 + # If using run time linking (on AIX 4.2 or later) use lib<name>.so
2266 + # instead of lib<name>.a to let people know that these are not
2267 + # typical AIX shared libraries.
2268 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
2270 + # We preserve .a as extension for shared libraries through AIX4.2
2271 + # and later when we are not doing run time linking.
2272 + library_names_spec='${libname}${release}.a $libname.a'
2273 + soname_spec='${libname}${release}${shared_ext}$major'
2275 + shlibpath_var=LIBPATH
2279 - hpux9* | hpux10* | hpux11*)
2280 - # Is there a better lt_cv_prog_cc_static that works with the bundled CC?
2281 - lt_cv_prog_cc_wl='-Wl,'
2282 - lt_cv_prog_cc_static="${lt_cv_prog_cc_wl}-a ${lt_cv_prog_cc_wl}archive"
2283 - lt_cv_prog_cc_pic='+Z'
2286 - irix5* | irix6* | nonstopux*)
2287 - lt_cv_prog_cc_wl='-Wl,'
2288 - lt_cv_prog_cc_static='-non_shared'
2289 - # PIC (with -KPIC) is the default.
2292 - cygwin* | mingw* | pw32* | os2*)
2293 - # This hack is so that the source file can tell whether it is being
2294 - # built for inclusion in a dll (and should export symbols for example).
2295 - lt_cv_prog_cc_pic='-DDLL_EXPORT'
2299 - lt_cv_prog_cc_pic='-KPIC'
2300 - lt_cv_prog_cc_static='-Bstatic'
2303 - osf3* | osf4* | osf5*)
2304 - # All OSF/1 code is PIC.
2305 - lt_cv_prog_cc_wl='-Wl,'
2306 - lt_cv_prog_cc_static='-non_shared'
2309 + library_names_spec='$libname.ixlibrary $libname.a'
2310 + # Create ${libname}_ixlibrary.a entries in /sys/libs.
2311 + 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'
2315 - lt_cv_prog_cc_pic='-Kpic'
2316 - lt_cv_prog_cc_static='-dn'
2317 - lt_cv_prog_cc_shlib='-belf'
2320 + library_names_spec='${libname}${shared_ext}'
2321 + dynamic_linker="$host_os ld.so"
2322 + shlibpath_var=LIBRARY_PATH
2326 - lt_cv_prog_cc_pic='-KPIC'
2327 - lt_cv_prog_cc_static='-Bstatic'
2328 - lt_cv_prog_cc_wl='-Wl,'
2331 + version_type=linux
2333 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
2334 + soname_spec='${libname}${release}${shared_ext}$major'
2335 + finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
2336 + shlibpath_var=LD_LIBRARY_PATH
2337 + sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
2338 + sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
2339 + # the default ld.so.conf also contains /usr/contrib/lib and
2340 + # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
2341 + # libtool to hard-code these into programs
2345 - lt_cv_prog_cc_pic='-PIC'
2346 - lt_cv_prog_cc_static='-Bstatic'
2347 - lt_cv_prog_cc_wl='-Qoption ld '
2349 +cygwin* | mingw* | pw32*)
2350 + version_type=windows
2351 + shrext_cmds=".dll"
2353 + need_lib_prefix=no
2355 - sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
2356 - lt_cv_prog_cc_pic='-KPIC'
2357 - lt_cv_prog_cc_static='-Bstatic'
2358 - lt_cv_prog_cc_wl='-Wl,'
2360 + case $GCC,$host_os in
2361 + yes,cygwin* | yes,mingw* | yes,pw32*)
2362 + library_names_spec='$libname.dll.a'
2363 + # DLL is installed to $(libdir)/../bin by postinstall_cmds
2364 + postinstall_cmds='base_file=`basename \${file}`~
2365 + dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
2366 + dldir=$destdir/`dirname \$dlpath`~
2367 + test -d \$dldir || mkdir -p \$dldir~
2368 + $install_prog $dir/$dlname \$dldir/$dlname'
2369 + postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
2370 + dlpath=$dir/\$dldll~
2372 + shlibpath_overrides_runpath=yes
2375 - lt_cv_prog_cc_pic='-pic'
2376 - lt_cv_prog_cc_static='-Bstatic'
2379 + # Cygwin DLLs use 'cyg' prefix rather than 'lib'
2380 + soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
2381 + sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
2385 - if test -d /usr/nec ;then
2386 - lt_cv_prog_cc_pic='-Kconform_pic'
2387 - lt_cv_prog_cc_static='-Bstatic'
2389 + # MinGW DLLs use traditional 'lib' prefix
2390 + soname_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
2391 + sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
2392 + if echo "$sys_lib_search_path_spec" | [grep ';[c-zC-Z]:/' >/dev/null]; then
2393 + # It is most probably a Windows format PATH printed by
2394 + # mingw gcc, but we are running on Cygwin. Gcc prints its search
2395 + # path with ; separators, and with drive letters. We can handle the
2396 + # drive letters (cygwin fileutils understands them), so leave them,
2397 + # especially as we might pass files found there to a mingw objdump,
2398 + # which wouldn't understand a cygwinified path. Ahh.
2399 + sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
2401 + sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
2406 - lt_cv_prog_cc_can_build_shared=no
2408 + # pw32 DLLs use 'pw' prefix rather than 'lib'
2409 + library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
2414 -if test -z "$lt_cv_prog_cc_pic"; then
2415 - AC_MSG_RESULT([none])
2417 - AC_MSG_RESULT([$lt_cv_prog_cc_pic])
2419 - # Check to make sure the pic_flag actually works.
2420 - AC_MSG_CHECKING([if $compiler PIC flag $lt_cv_prog_cc_pic works])
2421 - AC_CACHE_VAL(lt_cv_prog_cc_pic_works, [dnl
2422 - save_CFLAGS="$CFLAGS"
2423 - CFLAGS="$CFLAGS $lt_cv_prog_cc_pic -DPIC"
2424 - AC_TRY_COMPILE([], [], [dnl
2426 - hpux9* | hpux10* | hpux11*)
2427 - # On HP-UX, both CC and GCC only warn that PIC is supported... then
2428 - # they create non-PIC objects. So, if there were any warnings, we
2429 - # assume that PIC is not supported.
2430 - if test -s conftest.err; then
2431 - lt_cv_prog_cc_pic_works=no
2433 - lt_cv_prog_cc_pic_works=yes
2437 - lt_cv_prog_cc_pic_works=yes
2441 - lt_cv_prog_cc_pic_works=no
2443 - CFLAGS="$save_CFLAGS"
2446 - if test "X$lt_cv_prog_cc_pic_works" = Xno; then
2447 - lt_cv_prog_cc_pic=
2448 - lt_cv_prog_cc_can_build_shared=no
2450 - lt_cv_prog_cc_pic=" $lt_cv_prog_cc_pic"
2453 - AC_MSG_RESULT([$lt_cv_prog_cc_pic_works])
2456 -# Check for any special shared library compilation flags.
2457 -if test -n "$lt_cv_prog_cc_shlib"; then
2458 - AC_MSG_WARN([\`$CC' requires \`$lt_cv_prog_cc_shlib' to build shared libraries])
2459 - if echo "$old_CC $old_CFLAGS " | egrep -e "[[ ]]$lt_cv_prog_cc_shlib[[ ]]" >/dev/null; then :
2461 - AC_MSG_WARN([add \`$lt_cv_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure])
2462 - lt_cv_prog_cc_can_build_shared=no
2466 -AC_MSG_CHECKING([if $compiler static flag $lt_cv_prog_cc_static works])
2467 -AC_CACHE_VAL([lt_cv_prog_cc_static_works], [dnl
2468 - lt_cv_prog_cc_static_works=no
2469 - save_LDFLAGS="$LDFLAGS"
2470 - LDFLAGS="$LDFLAGS $lt_cv_prog_cc_static"
2471 - AC_TRY_LINK([], [], [lt_cv_prog_cc_static_works=yes])
2472 - LDFLAGS="$save_LDFLAGS"
2475 -# Belt *and* braces to stop my trousers falling down:
2476 -test "X$lt_cv_prog_cc_static_works" = Xno && lt_cv_prog_cc_static=
2477 -AC_MSG_RESULT([$lt_cv_prog_cc_static_works])
2479 -pic_flag="$lt_cv_prog_cc_pic"
2480 -special_shlib_compile_flags="$lt_cv_prog_cc_shlib"
2481 -wl="$lt_cv_prog_cc_wl"
2482 -link_static_flag="$lt_cv_prog_cc_static"
2483 -no_builtin_flag="$lt_cv_prog_cc_no_builtin"
2484 -can_build_shared="$lt_cv_prog_cc_can_build_shared"
2487 -# Check to see if options -o and -c are simultaneously supported by compiler
2488 -AC_MSG_CHECKING([if $compiler supports -c -o file.$ac_objext])
2489 -AC_CACHE_VAL([lt_cv_compiler_c_o], [
2490 -$rm -r conftest 2>/dev/null
2493 -echo "int some_variable = 0;" > conftest.$ac_ext
2495 -# According to Tom Tromey, Ian Lance Taylor reported there are C compilers
2496 -# that will create temporary files in the current directory regardless of
2497 -# the output directory. Thus, making CWD read-only will cause this test
2498 -# to fail, enabling locking or at least warning the user not to do parallel
2501 -save_CFLAGS="$CFLAGS"
2502 -CFLAGS="$CFLAGS -o out/conftest2.$ac_objext"
2504 -if { (eval echo configure:__oline__: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>out/conftest.err; } && test -s out/conftest2.$ac_objext; then
2505 - # The compiler can only warn and ignore the option if not recognized
2506 - # So say no if there are warnings
2507 - if test -s out/conftest.err; then
2508 - lt_cv_compiler_c_o=no
2510 - lt_cv_compiler_c_o=yes
2513 - # Append any errors to the config.log.
2514 - cat out/conftest.err 1>&AC_FD_CC
2515 - lt_cv_compiler_c_o=no
2517 -CFLAGS="$save_CFLAGS"
2519 -$rm conftest* out/*
2523 -$rm -r conftest 2>/dev/null
2525 -compiler_c_o=$lt_cv_compiler_c_o
2526 -AC_MSG_RESULT([$compiler_c_o])
2528 -if test x"$compiler_c_o" = x"yes"; then
2529 - # Check to see if we can write to a .lo
2530 - AC_MSG_CHECKING([if $compiler supports -c -o file.lo])
2531 - AC_CACHE_VAL([lt_cv_compiler_o_lo], [
2532 - lt_cv_compiler_o_lo=no
2533 - save_CFLAGS="$CFLAGS"
2534 - CFLAGS="$CFLAGS -c -o conftest.lo"
2535 - save_objext="$ac_objext"
2537 - AC_TRY_COMPILE([], [int some_variable = 0;], [dnl
2538 - # The compiler can only warn and ignore the option if not recognized
2539 - # So say no if there are warnings
2540 - if test -s conftest.err; then
2541 - lt_cv_compiler_o_lo=no
2543 - lt_cv_compiler_o_lo=yes
2546 - ac_objext="$save_objext"
2547 - CFLAGS="$save_CFLAGS"
2549 - compiler_o_lo=$lt_cv_compiler_o_lo
2550 - AC_MSG_RESULT([$compiler_o_lo])
2555 -# Check to see if we can do hard links to lock some files if needed
2556 -hard_links="nottested"
2557 -if test "$compiler_c_o" = no && test "$need_locks" != no; then
2558 - # do not overwrite the value of need_locks provided by the user
2559 - AC_MSG_CHECKING([if we can lock with hard links])
2562 - ln conftest.a conftest.b 2>/dev/null && hard_links=no
2564 - ln conftest.a conftest.b 2>&5 || hard_links=no
2565 - ln conftest.a conftest.b 2>/dev/null && hard_links=no
2566 - AC_MSG_RESULT([$hard_links])
2567 - if test "$hard_links" = no; then
2568 - AC_MSG_WARN([\`$CC' does not support \`-c -o', so \`make -j' may be unsafe])
2576 -if test "$GCC" = yes; then
2577 - # Check to see if options -fno-rtti -fno-exceptions are supported by compiler
2578 - AC_MSG_CHECKING([if $compiler supports -fno-rtti -fno-exceptions])
2579 - echo "int some_variable = 0;" > conftest.$ac_ext
2580 - save_CFLAGS="$CFLAGS"
2581 - CFLAGS="$CFLAGS -fno-rtti -fno-exceptions -c conftest.$ac_ext"
2582 - compiler_rtti_exceptions=no
2583 - AC_TRY_COMPILE([], [int some_variable = 0;], [dnl
2584 - # The compiler can only warn and ignore the option if not recognized
2585 - # So say no if there are warnings
2586 - if test -s conftest.err; then
2587 - compiler_rtti_exceptions=no
2589 - compiler_rtti_exceptions=yes
2592 - CFLAGS="$save_CFLAGS"
2593 - AC_MSG_RESULT([$compiler_rtti_exceptions])
2595 + library_names_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext} $libname.lib'
2598 + dynamic_linker='Win32 ld.exe'
2599 + # FIXME: first we should search . and the directory the executable is in
2600 + shlibpath_var=PATH
2603 - if test "$compiler_rtti_exceptions" = "yes"; then
2604 - no_builtin_flag=' -fno-builtin -fno-rtti -fno-exceptions'
2605 +darwin* | rhapsody*)
2606 + dynamic_linker="$host_os dyld"
2607 + version_type=darwin
2608 + need_lib_prefix=no
2610 + library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
2611 + soname_spec='${libname}${release}${major}$shared_ext'
2612 + shlibpath_overrides_runpath=yes
2613 + shlibpath_var=DYLD_LIBRARY_PATH
2614 + shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
2615 + # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
2616 + if test "$GCC" = yes; then
2617 + 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"`
2619 - no_builtin_flag=' -fno-builtin'
2620 + sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
2624 -# See if the linker supports building shared libraries.
2625 -AC_MSG_CHECKING([whether the linker ($LD) supports shared libraries])
2627 -allow_undefined_flag=
2629 -need_lib_prefix=unknown
2630 -need_version=unknown
2631 -# when you set need_version to no, make sure it does not cause -set_version
2632 -# flags to be left without arguments
2634 -archive_expsym_cmds=
2635 -old_archive_from_new_cmds=
2636 -old_archive_from_expsyms_cmds=
2637 -export_dynamic_flag_spec=
2638 -whole_archive_flag_spec=
2639 -thread_safe_flag_spec=
2640 -hardcode_into_libs=no
2641 -hardcode_libdir_flag_spec=
2642 -hardcode_libdir_separator=
2644 -hardcode_minus_L=no
2645 -hardcode_shlibpath_var=unsupported
2647 -link_all_deplibs=unknown
2648 -always_export_symbols=no
2649 -export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | sed '\''s/.* //'\'' | sort | uniq > $export_symbols'
2650 -# include_expsyms should be a list of space-separated symbols to be *always*
2651 -# included in the symbol list
2653 -# exclude_expsyms can be an egrep regular expression of symbols to exclude
2654 -# it will be wrapped by ` (' and `)$', so one must not match beginning or
2655 -# end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
2656 -# as well as any symbol that contains `d'.
2657 -exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
2658 -# Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
2659 -# platforms (ab)use it in PIC code, but their linkers get confused if
2660 -# the symbol is explicitly referenced. Since portable code cannot
2661 -# rely on this symbol name, it's probably fine to never include it in
2662 -# preloaded symbol tables.
2663 -extract_expsyms_cmds=
2664 + sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
2668 -cygwin* | mingw* | pw32*)
2669 - # FIXME: the MSVC++ port hasn't been tested in a loooong time
2670 - # When not using gcc, we currently assume that we are using
2671 - # Microsoft Visual C++.
2672 - if test "$GCC" != yes; then
2676 + version_type=linux
2677 + need_lib_prefix=no
2679 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
2680 + soname_spec='${libname}${release}${shared_ext}$major'
2681 + shlibpath_var=LD_LIBRARY_PATH
2692 -if test "$with_gnu_ld" = yes; then
2693 - # If archive_cmds runs LD, not CC, wlarc should be empty
2696 + version_type=linux
2697 + need_lib_prefix=no
2699 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
2700 + soname_spec='${libname}${release}${shared_ext}$major'
2701 + shlibpath_var=LD_LIBRARY_PATH
2702 + shlibpath_overrides_runpath=no
2703 + hardcode_into_libs=yes
2704 + dynamic_linker='GNU ld.so'
2707 - # See if GNU ld supports shared libraries.
2709 + objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
2710 + version_type=freebsd-$objformat
2711 + case $version_type in
2713 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
2715 + need_lib_prefix=no
2718 + library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
2722 + shlibpath_var=LD_LIBRARY_PATH
2724 - aix3* | aix4* | aix5*)
2725 - # On AIX, the GNU linker is very broken
2726 - # Note:Check GNU linker on AIX 5-IA64 when/if it becomes available.
2730 -*** Warning: the GNU linker, at least up to release 2.9.1, is reported
2731 -*** to be unable to reliably create shared libraries on AIX.
2732 -*** Therefore, libtool is disabling shared libraries support. If you
2733 -*** really care for shared libraries, you may want to modify your PATH
2734 -*** so that a non-GNU linker is found, and then restart.
2738 + shlibpath_overrides_runpath=yes
2742 - 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)'
2743 - hardcode_libdir_flag_spec='-L$libdir'
2744 - hardcode_minus_L=yes
2746 - # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
2747 - # that the semantics of dynamic libraries on AmigaOS, at least up
2748 - # to version 4, is to share data among multiple programs linked
2749 - # with the same dynamic library. Since this doesn't match the
2750 - # behavior of shared libraries on other platforms, we can use
2753 + freebsd3.[01]* | freebsdelf3.[01]*)
2754 + shlibpath_overrides_runpath=yes
2755 + hardcode_into_libs=yes
2759 - if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
2760 - allow_undefined_flag=unsupported
2761 - # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
2762 - # support --undefined. This deserves some investigation. FIXME
2763 - archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
2768 + shlibpath_overrides_runpath=no
2769 + hardcode_into_libs=yes
2774 - cygwin* | mingw* | pw32*)
2775 - # hardcode_libdir_flag_spec is actually meaningless, as there is
2776 - # no search path for DLLs.
2777 - hardcode_libdir_flag_spec='-L$libdir'
2778 - allow_undefined_flag=unsupported
2779 - always_export_symbols=yes
2781 - extract_expsyms_cmds='test -f $output_objdir/impgen.c || \
2782 - sed -e "/^# \/\* impgen\.c starts here \*\//,/^# \/\* impgen.c ends here \*\// { s/^# //;s/^# *$//; p; }" -e d < $''0 > $output_objdir/impgen.c~
2783 - test -f $output_objdir/impgen.exe || (cd $output_objdir && \
2784 - if test "x$HOST_CC" != "x" ; then $HOST_CC -o impgen impgen.c ; \
2785 - else $CC -o impgen impgen.c ; fi)~
2786 - $output_objdir/impgen $dir/$soroot > $output_objdir/$soname-def'
2788 - old_archive_from_expsyms_cmds='$DLLTOOL --as=$AS --dllname $soname --def $output_objdir/$soname-def --output-lib $output_objdir/$newlib'
2790 - # cygwin and mingw dlls have different entry points and sets of symbols
2792 - # FIXME: what about values for MSVC?
2793 - dll_entry=__cygwin_dll_entry@12
2794 - dll_exclude_symbols=DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12~
2798 - dll_entry=_DllMainCRTStartup@12
2799 - dll_exclude_symbols=DllMain@12,DllMainCRTStartup@12,DllEntryPoint@12~
2803 - # mingw and cygwin differ, and it's simplest to just exclude the union
2804 - # of the two symbol sets.
2805 - dll_exclude_symbols=DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12,DllMainCRTStartup@12,DllEntryPoint@12
2807 - # recent cygwin and mingw systems supply a stub DllMain which the user
2808 - # can override, but on older systems we have to supply one (in ltdll.c)
2809 - if test "x$lt_cv_need_dllmain" = "xyes"; then
2810 - ltdll_obj='$output_objdir/$soname-ltdll.'"$ac_objext "
2811 - 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~
2812 - test -f $output_objdir/$soname-ltdll.$ac_objext || (cd $output_objdir && $CC -c $soname-ltdll.c)~'
2818 - # Extract the symbol export list from an `--export-all' def file,
2819 - # then regenerate the def file from the symbol export list, so that
2820 - # the compiled dll only exports the symbol export list.
2821 - # Be careful not to strip the DATA tag left be newer dlltools.
2822 - export_symbols_cmds="$ltdll_cmds"'
2823 - $DLLTOOL --export-all --exclude-symbols '$dll_exclude_symbols' --output-def $output_objdir/$soname-def '$ltdll_obj'$libobjs $convenience~
2824 - sed -e "1,/EXPORTS/d" -e "s/ @ [[0-9]]*//" -e "s/ *;.*$//" < $output_objdir/$soname-def > $export_symbols'
2826 - # If the export-symbols file already is a .def file (1st line
2827 - # is EXPORTS), use it as is.
2828 - # If DATA tags from a recent dlltool are present, honour them!
2829 - archive_expsym_cmds='if test "x`sed 1q $export_symbols`" = xEXPORTS; then
2830 - cp $export_symbols $output_objdir/$soname-def;
2832 - echo EXPORTS > $output_objdir/$soname-def;
2834 - cat $export_symbols | while read symbol; do
2835 - set dummy \$symbol;
2837 - 2) echo " \[$]2 @ \$_lt_hint ; " >> $output_objdir/$soname-def;;
2838 - 4) echo " \[$]2 \[$]3 \[$]4 ; " >> $output_objdir/$soname-def; _lt_hint=`expr \$_lt_hint - 1`;;
2839 - *) echo " \[$]2 @ \$_lt_hint \[$]3 ; " >> $output_objdir/$soname-def;;
2841 - _lt_hint=`expr 1 + \$_lt_hint`;
2845 - $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~
2846 - $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~
2847 - $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~
2848 - $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~
2849 - $CC $output_objdir/$soname-exp '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $output_objdir/$soname '$ltdll_obj'$libobjs $deplibs $compiler_flags'
2851 + version_type=linux
2852 + need_lib_prefix=no
2854 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
2855 + soname_spec='${libname}${release}${shared_ext}$major'
2856 + shlibpath_var=LD_LIBRARY_PATH
2857 + hardcode_into_libs=yes
2860 +hpux9* | hpux10* | hpux11*)
2861 + # Give a soname corresponding to the major version so that dld.sl refuses to
2862 + # link against other versions.
2863 + version_type=sunos
2864 + need_lib_prefix=no
2866 + case "$host_cpu" in
2869 + hardcode_into_libs=yes
2870 + dynamic_linker="$host_os dld.so"
2871 + shlibpath_var=LD_LIBRARY_PATH
2872 + shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
2873 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
2874 + soname_spec='${libname}${release}${shared_ext}$major'
2875 + if test "X$HPUX_IA64_MODE" = X32; then
2876 + sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
2878 + sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
2880 + sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
2884 + hardcode_into_libs=yes
2885 + dynamic_linker="$host_os dld.sl"
2886 + shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
2887 + shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
2888 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
2889 + soname_spec='${libname}${release}${shared_ext}$major'
2890 + sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
2891 + sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
2895 + dynamic_linker="$host_os dld.sl"
2896 + shlibpath_var=SHLIB_PATH
2897 + shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
2898 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
2899 + soname_spec='${libname}${release}${shared_ext}$major'
2902 + # HP-UX runs *really* slowly unless shared libraries are mode 555.
2903 + postinstall_cmds='chmod 555 $lib'
2906 +irix5* | irix6* | nonstopux*)
2908 + nonstopux*) version_type=nonstopux ;;
2910 + if test "$lt_cv_prog_gnu_ld" = yes; then
2911 + version_type=linux
2916 + need_lib_prefix=no
2918 + soname_spec='${libname}${release}${shared_ext}$major'
2919 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
2921 + irix5* | nonstopux*)
2922 + libsuff= shlibsuff=
2925 + case $LD in # libtool.m4 will add one of these switches to LD
2926 + *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
2927 + libsuff= shlibsuff= libmagic=32-bit;;
2928 + *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
2929 + libsuff=32 shlibsuff=N32 libmagic=N32;;
2930 + *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
2931 + libsuff=64 shlibsuff=64 libmagic=64-bit;;
2932 + *) libsuff= shlibsuff= libmagic=never-match;;
2936 + shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
2937 + shlibpath_overrides_runpath=no
2938 + sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
2939 + sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
2940 + hardcode_into_libs=yes
2943 +# No shared lib support for Linux oldld, aout, or coff.
2944 +linux*oldld* | linux*aout* | linux*coff*)
2948 +# This must be Linux ELF.
2950 + version_type=linux
2951 + need_lib_prefix=no
2953 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
2954 + soname_spec='${libname}${release}${shared_ext}$major'
2955 + finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
2956 + shlibpath_var=LD_LIBRARY_PATH
2957 + shlibpath_overrides_runpath=no
2958 + # This implies no fast_install, which is unacceptable.
2959 + # Some rework will be needed to allow for fast_install
2960 + # before this can be enabled.
2961 + hardcode_into_libs=yes
2963 + # Append ld.so.conf contents to the search path
2964 + if test -f /etc/ld.so.conf; then
2965 + lt_ld_extra=`$SED -e 's/[:,\t]/ /g;s/=[^=]*$//;s/=[^= ]* / /g' /etc/ld.so.conf | tr '\n' ' '`
2966 + sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
2969 + # We used to test for /lib/ld.so.1 and disable shared libraries on
2970 + # powerpc, because MkLinux only supported shared libraries with the
2971 + # GNU dynamic linker. Since this was broken with cross compilers,
2972 + # most powerpc-linux boxes support dynamic linking these days and
2973 + # people can always --disable-shared, the test was removed, and we
2974 + # assume the GNU/Linux dynamic linker is in use.
2975 + dynamic_linker='GNU/Linux ld.so'
2979 + version_type=linux
2980 + need_lib_prefix=no
2982 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
2983 + soname_spec='${libname}${release}${shared_ext}$major'
2984 + shlibpath_var=LD_LIBRARY_PATH
2985 + shlibpath_overrides_runpath=no
2986 + hardcode_into_libs=yes
2987 + dynamic_linker='NetBSD ld.elf_so'
2991 + version_type=linux
2992 + need_lib_prefix=no
2994 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
2995 + soname_spec='${libname}${release}${shared_ext}$major'
2996 + shlibpath_var=LD_LIBRARY_PATH
2997 + shlibpath_overrides_runpath=no
2998 + hardcode_into_libs=yes
2999 + dynamic_linker='GNU ld.so'
3003 + version_type=sunos
3004 + need_lib_prefix=no
3006 + if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
3007 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
3008 + finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
3009 + dynamic_linker='NetBSD (a.out) ld.so'
3011 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
3012 + soname_spec='${libname}${release}${shared_ext}$major'
3013 + dynamic_linker='NetBSD ld.elf_so'
3015 + shlibpath_var=LD_LIBRARY_PATH
3016 + shlibpath_overrides_runpath=yes
3017 + hardcode_into_libs=yes
3021 + version_type=linux
3022 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
3023 + shlibpath_var=LD_LIBRARY_PATH
3024 + shlibpath_overrides_runpath=yes
3028 + version_type=linux
3029 + need_lib_prefix=no
3031 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
3032 + soname_spec='${libname}${release}${shared_ext}$major'
3033 + shlibpath_var=LD_LIBRARY_PATH
3034 + shlibpath_overrides_runpath=yes
3038 + version_type=sunos
3039 + need_lib_prefix=no
3041 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
3042 + finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
3043 + shlibpath_var=LD_LIBRARY_PATH
3044 + if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
3046 + openbsd2.[[89]] | openbsd2.[[89]].*)
3047 + shlibpath_overrides_runpath=no
3050 + shlibpath_overrides_runpath=yes
3054 + shlibpath_overrides_runpath=yes
3059 + libname_spec='$name'
3060 + shrext_cmds=".dll"
3061 + need_lib_prefix=no
3062 + library_names_spec='$libname${shared_ext} $libname.a'
3063 + dynamic_linker='OS/2 ld.exe'
3064 + shlibpath_var=LIBPATH
3067 +osf3* | osf4* | osf5*)
3069 + need_lib_prefix=no
3071 + soname_spec='${libname}${release}${shared_ext}$major'
3072 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
3073 + shlibpath_var=LD_LIBRARY_PATH
3074 + sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
3075 + sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
3080 + soname_spec='${libname}${release}${shared_ext}$major'
3081 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
3082 + shlibpath_var=LD_LIBRARY_PATH
3086 + version_type=linux
3087 + need_lib_prefix=no
3089 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
3090 + soname_spec='${libname}${release}${shared_ext}$major'
3091 + shlibpath_var=LD_LIBRARY_PATH
3092 + shlibpath_overrides_runpath=yes
3093 + hardcode_into_libs=yes
3094 + # ldd complains unless libraries are executable
3095 + postinstall_cmds='chmod +x $lib'
3099 + version_type=sunos
3100 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
3101 + finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
3102 + shlibpath_var=LD_LIBRARY_PATH
3103 + shlibpath_overrides_runpath=yes
3104 + if test "$with_gnu_ld" = yes; then
3105 + need_lib_prefix=no
3110 +sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
3111 + version_type=linux
3112 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
3113 + soname_spec='${libname}${release}${shared_ext}$major'
3114 + shlibpath_var=LD_LIBRARY_PATH
3115 + case $host_vendor in
3117 + shlibpath_overrides_runpath=no
3118 + need_lib_prefix=no
3119 + export_dynamic_flag_spec='${wl}-Blargedynsym'
3120 + runpath_var=LD_RUN_PATH
3123 + need_lib_prefix=no
3126 + need_lib_prefix=no
3128 + shlibpath_overrides_runpath=no
3129 + sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
3135 + if test -d /usr/nec ;then
3136 + version_type=linux
3137 + library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
3138 + soname_spec='$libname${shared_ext}.$major'
3139 + shlibpath_var=LD_LIBRARY_PATH
3144 + version_type=linux
3145 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
3146 + soname_spec='${libname}${release}${shared_ext}$major'
3147 + shlibpath_var=LD_LIBRARY_PATH
3154 +AC_MSG_RESULT([$dynamic_linker])
3155 +test "$dynamic_linker" = no && can_build_shared=no
3156 +])# AC_LIBTOOL_SYS_DYNAMIC_LINKER
3161 +AC_DEFUN([_LT_AC_TAGCONFIG],
3162 +[AC_ARG_WITH([tags],
3163 + [AC_HELP_STRING([--with-tags@<:@=TAGS@:>@],
3164 + [include additional configurations @<:@automatic@:>@])],
3165 + [tagnames="$withval"])
3167 +if test -f "$ltmain" && test -n "$tagnames"; then
3168 + if test ! -f "${ofile}"; then
3169 + AC_MSG_WARN([output file `$ofile' does not exist])
3172 + if test -z "$LTCC"; then
3173 + eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
3174 + if test -z "$LTCC"; then
3175 + AC_MSG_WARN([output file `$ofile' does not look like a libtool script])
3177 + AC_MSG_WARN([using `LTCC=$LTCC', extracted from `$ofile'])
3181 + # Extract list of available tagged configurations in $ofile.
3182 + # Note that this assumes the entire list is on one line.
3183 + available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
3185 + lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3186 + for tagname in $tagnames; do
3187 + IFS="$lt_save_ifs"
3188 + # Check whether tagname contains only valid characters
3189 + case `$echo "X$tagname" | $Xsed -e 's:[[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]]::g'` in
3191 + *) AC_MSG_ERROR([invalid tag name: $tagname])
3195 + if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
3197 + AC_MSG_ERROR([tag name \"$tagname\" already exists])
3200 + # Update the list of available tags.
3201 + if test -n "$tagname"; then
3202 + echo appending configuration tag \"$tagname\" to $ofile
3206 + if test -n "$CXX" && test "X$CXX" != "Xno"; then
3207 + AC_LIBTOOL_LANG_CXX_CONFIG
3214 + if test -n "$F77" && test "X$F77" != "Xno"; then
3215 + AC_LIBTOOL_LANG_F77_CONFIG
3222 + if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
3223 + AC_LIBTOOL_LANG_GCJ_CONFIG
3230 + AC_LIBTOOL_LANG_RC_CONFIG
3234 + AC_MSG_ERROR([Unsupported tag name: $tagname])
3238 + # Append the new tag name to the list of available tags.
3239 + if test -n "$tagname" ; then
3240 + available_tags="$available_tags $tagname"
3244 + IFS="$lt_save_ifs"
3246 + # Now substitute the updated list of available tags.
3247 + if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
3248 + mv "${ofile}T" "$ofile"
3252 + AC_MSG_ERROR([unable to update list of available tagged configurations.])
3255 +])# _LT_AC_TAGCONFIG
3258 +# AC_LIBTOOL_DLOPEN
3259 +# -----------------
3260 +# enable checks for dlopen support
3261 +AC_DEFUN([AC_LIBTOOL_DLOPEN],
3262 + [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])
3263 +])# AC_LIBTOOL_DLOPEN
3266 +# AC_LIBTOOL_WIN32_DLL
3267 +# --------------------
3268 +# declare package support for building win32 dll's
3269 +AC_DEFUN([AC_LIBTOOL_WIN32_DLL],
3270 +[AC_BEFORE([$0], [AC_LIBTOOL_SETUP])
3271 +])# AC_LIBTOOL_WIN32_DLL
3274 +# AC_ENABLE_SHARED([DEFAULT])
3275 +# ---------------------------
3276 +# implement the --enable-shared flag
3277 +# DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'.
3278 +AC_DEFUN([AC_ENABLE_SHARED],
3279 +[define([AC_ENABLE_SHARED_DEFAULT], ifelse($1, no, no, yes))dnl
3280 +AC_ARG_ENABLE([shared],
3281 + [AC_HELP_STRING([--enable-shared@<:@=PKGS@:>@],
3282 + [build shared libraries @<:@default=]AC_ENABLE_SHARED_DEFAULT[@:>@])],
3283 + [p=${PACKAGE-default}
3284 + case $enableval in
3285 + yes) enable_shared=yes ;;
3286 + no) enable_shared=no ;;
3289 + # Look at the argument we got. We use all the common list separators.
3290 + lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3291 + for pkg in $enableval; do
3292 + IFS="$lt_save_ifs"
3293 + if test "X$pkg" = "X$p"; then
3297 + IFS="$lt_save_ifs"
3300 + [enable_shared=]AC_ENABLE_SHARED_DEFAULT)
3301 +])# AC_ENABLE_SHARED
3304 +# AC_DISABLE_SHARED
3305 +# -----------------
3306 +#- set the default shared flag to --disable-shared
3307 +AC_DEFUN([AC_DISABLE_SHARED],
3308 +[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
3309 +AC_ENABLE_SHARED(no)
3310 +])# AC_DISABLE_SHARED
3313 +# AC_ENABLE_STATIC([DEFAULT])
3314 +# ---------------------------
3315 +# implement the --enable-static flag
3316 +# DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'.
3317 +AC_DEFUN([AC_ENABLE_STATIC],
3318 +[define([AC_ENABLE_STATIC_DEFAULT], ifelse($1, no, no, yes))dnl
3319 +AC_ARG_ENABLE([static],
3320 + [AC_HELP_STRING([--enable-static@<:@=PKGS@:>@],
3321 + [build static libraries @<:@default=]AC_ENABLE_STATIC_DEFAULT[@:>@])],
3322 + [p=${PACKAGE-default}
3323 + case $enableval in
3324 + yes) enable_static=yes ;;
3325 + no) enable_static=no ;;
3328 + # Look at the argument we got. We use all the common list separators.
3329 + lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3330 + for pkg in $enableval; do
3331 + IFS="$lt_save_ifs"
3332 + if test "X$pkg" = "X$p"; then
3336 + IFS="$lt_save_ifs"
3339 + [enable_static=]AC_ENABLE_STATIC_DEFAULT)
3340 +])# AC_ENABLE_STATIC
3343 +# AC_DISABLE_STATIC
3344 +# -----------------
3345 +# set the default static flag to --disable-static
3346 +AC_DEFUN([AC_DISABLE_STATIC],
3347 +[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
3348 +AC_ENABLE_STATIC(no)
3349 +])# AC_DISABLE_STATIC
3352 +# AC_ENABLE_FAST_INSTALL([DEFAULT])
3353 +# ---------------------------------
3354 +# implement the --enable-fast-install flag
3355 +# DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'.
3356 +AC_DEFUN([AC_ENABLE_FAST_INSTALL],
3357 +[define([AC_ENABLE_FAST_INSTALL_DEFAULT], ifelse($1, no, no, yes))dnl
3358 +AC_ARG_ENABLE([fast-install],
3359 + [AC_HELP_STRING([--enable-fast-install@<:@=PKGS@:>@],
3360 + [optimize for fast installation @<:@default=]AC_ENABLE_FAST_INSTALL_DEFAULT[@:>@])],
3361 + [p=${PACKAGE-default}
3362 + case $enableval in
3363 + yes) enable_fast_install=yes ;;
3364 + no) enable_fast_install=no ;;
3366 + enable_fast_install=no
3367 + # Look at the argument we got. We use all the common list separators.
3368 + lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3369 + for pkg in $enableval; do
3370 + IFS="$lt_save_ifs"
3371 + if test "X$pkg" = "X$p"; then
3372 + enable_fast_install=yes
3375 + IFS="$lt_save_ifs"
3378 + [enable_fast_install=]AC_ENABLE_FAST_INSTALL_DEFAULT)
3379 +])# AC_ENABLE_FAST_INSTALL
3382 +# AC_DISABLE_FAST_INSTALL
3383 +# -----------------------
3384 +# set the default to --disable-fast-install
3385 +AC_DEFUN([AC_DISABLE_FAST_INSTALL],
3386 +[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
3387 +AC_ENABLE_FAST_INSTALL(no)
3388 +])# AC_DISABLE_FAST_INSTALL
3391 +# AC_LIBTOOL_PICMODE([MODE])
3392 +# --------------------------
3393 +# implement the --with-pic flag
3394 +# MODE is either `yes' or `no'. If omitted, it defaults to `both'.
3395 +AC_DEFUN([AC_LIBTOOL_PICMODE],
3396 +[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
3397 +pic_mode=ifelse($#,1,$1,default)
3398 +])# AC_LIBTOOL_PICMODE
3403 +# This is predefined starting with Autoconf 2.54, so this conditional
3404 +# definition can be removed once we require Autoconf 2.54 or later.
3405 +m4_ifndef([AC_PROG_EGREP], [AC_DEFUN([AC_PROG_EGREP],
3406 +[AC_CACHE_CHECK([for egrep], [ac_cv_prog_egrep],
3407 + [if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3408 + then ac_cv_prog_egrep='grep -E'
3409 + else ac_cv_prog_egrep='egrep'
3411 + EGREP=$ac_cv_prog_egrep
3416 +# AC_PATH_TOOL_PREFIX
3417 +# -------------------
3418 +# find a file program which can recognise shared library
3419 +AC_DEFUN([AC_PATH_TOOL_PREFIX],
3420 +[AC_REQUIRE([AC_PROG_EGREP])dnl
3421 +AC_MSG_CHECKING([for $1])
3422 +AC_CACHE_VAL(lt_cv_path_MAGIC_CMD,
3423 +[case $MAGIC_CMD in
3424 +[[\\/*] | ?:[\\/]*])
3425 + lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
3428 + lt_save_MAGIC_CMD="$MAGIC_CMD"
3429 + lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3430 +dnl $ac_dummy forces splitting on constant user-supplied paths.
3431 +dnl POSIX.2 word splitting is done only on the output of word expansions,
3432 +dnl not every word. This closes a longstanding sh security hole.
3433 + ac_dummy="ifelse([$2], , $PATH, [$2])"
3434 + for ac_dir in $ac_dummy; do
3435 + IFS="$lt_save_ifs"
3436 + test -z "$ac_dir" && ac_dir=.
3437 + if test -f $ac_dir/$1; then
3438 + lt_cv_path_MAGIC_CMD="$ac_dir/$1"
3439 + if test -n "$file_magic_test_file"; then
3440 + case $deplibs_check_method in
3442 + file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
3443 + MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
3444 + if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
3445 + $EGREP "$file_magic_regex" > /dev/null; then
3450 +*** Warning: the command libtool uses to detect shared libraries,
3451 +*** $file_magic_cmd, produces output that libtool cannot recognize.
3452 +*** The result is that libtool may fail to recognize shared libraries
3453 +*** as such. This will affect the creation of libtool libraries that
3454 +*** depend on shared libraries, but programs linked with such libtool
3455 +*** libraries will work regardless of this problem. Nevertheless, you
3456 +*** may want to report the problem to your system manager and/or to
3457 +*** bug-libtool@gnu.org
3466 + IFS="$lt_save_ifs"
3467 + MAGIC_CMD="$lt_save_MAGIC_CMD"
3470 +MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
3471 +if test -n "$MAGIC_CMD"; then
3472 + AC_MSG_RESULT($MAGIC_CMD)
3476 +])# AC_PATH_TOOL_PREFIX
3481 +# find a file program which can recognise a shared library
3482 +AC_DEFUN([AC_PATH_MAGIC],
3483 +[AC_PATH_TOOL_PREFIX(${ac_tool_prefix}file, /usr/bin$PATH_SEPARATOR$PATH)
3484 +if test -z "$lt_cv_path_MAGIC_CMD"; then
3485 + if test -n "$ac_tool_prefix"; then
3486 + AC_PATH_TOOL_PREFIX(file, /usr/bin$PATH_SEPARATOR$PATH)
3496 +# find the pathname to the GNU or non-GNU linker
3497 +AC_DEFUN([AC_PROG_LD],
3498 +[AC_ARG_WITH([gnu-ld],
3499 + [AC_HELP_STRING([--with-gnu-ld],
3500 + [assume the C compiler uses GNU ld @<:@default=no@:>@])],
3501 + [test "$withval" = no || with_gnu_ld=yes],
3503 +AC_REQUIRE([LT_AC_PROG_SED])dnl
3504 +AC_REQUIRE([AC_PROG_CC])dnl
3505 +AC_REQUIRE([AC_CANONICAL_HOST])dnl
3506 +AC_REQUIRE([AC_CANONICAL_BUILD])dnl
3508 +if test "$GCC" = yes; then
3509 + # Check if gcc -print-prog-name=ld gives a path.
3510 + AC_MSG_CHECKING([for ld used by $CC])
3513 + # gcc leaves a trailing carriage return which upsets mingw
3514 + ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3516 + ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3519 + # Accept absolute paths.
3520 + [[\\/]]* | ?:[[\\/]]*)
3521 + re_direlt='/[[^/]][[^/]]*/\.\./'
3522 + # Canonicalize the pathname of ld
3523 + ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
3524 + while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
3525 + ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
3527 + test -z "$LD" && LD="$ac_prog"
3530 + # If it fails, then pretend we aren't using GCC.
3534 + # If it is relative, then search for the first ld in PATH.
3535 + with_gnu_ld=unknown
3538 +elif test "$with_gnu_ld" = yes; then
3539 + AC_MSG_CHECKING([for GNU ld])
3541 + AC_MSG_CHECKING([for non-GNU ld])
3543 +AC_CACHE_VAL(lt_cv_path_LD,
3544 +[if test -z "$LD"; then
3545 + lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3546 + for ac_dir in $PATH; do
3547 + IFS="$lt_save_ifs"
3548 + test -z "$ac_dir" && ac_dir=.
3549 + if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3550 + lt_cv_path_LD="$ac_dir/$ac_prog"
3551 + # Check to see if the program is GNU ld. I'd rather use --version,
3552 + # but apparently some GNU ld's only accept -v.
3553 + # Break only if it was the GNU/non-GNU ld that we prefer.
3554 + case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
3555 + *GNU* | *'with BFD'*)
3556 + test "$with_gnu_ld" != no && break
3559 + test "$with_gnu_ld" != yes && break
3564 + IFS="$lt_save_ifs"
3566 + lt_cv_path_LD="$LD" # Let the user override the test with a path.
3568 +LD="$lt_cv_path_LD"
3569 +if test -n "$LD"; then
3570 + AC_MSG_RESULT($LD)
3574 +test -z "$LD" && AC_MSG_ERROR([no acceptable ld found in \$PATH])
3581 +AC_DEFUN([AC_PROG_LD_GNU],
3582 +[AC_REQUIRE([AC_PROG_EGREP])dnl
3583 +AC_CACHE_CHECK([if the linker ($LD) is GNU ld], lt_cv_prog_gnu_ld,
3584 +[# I'd rather use --version here, but apparently some GNU ld's only accept -v.
3585 +case `$LD -v 2>&1 </dev/null` in
3586 +*GNU* | *'with BFD'*)
3587 + lt_cv_prog_gnu_ld=yes
3590 + lt_cv_prog_gnu_ld=no
3593 +with_gnu_ld=$lt_cv_prog_gnu_ld
3597 +# AC_PROG_LD_RELOAD_FLAG
3598 +# ----------------------
3599 +# find reload flag for linker
3600 +# -- PORTME Some linkers may need a different reload flag.
3601 +AC_DEFUN([AC_PROG_LD_RELOAD_FLAG],
3602 +[AC_CACHE_CHECK([for $LD option to reload object files],
3603 + lt_cv_ld_reload_flag,
3604 + [lt_cv_ld_reload_flag='-r'])
3605 +reload_flag=$lt_cv_ld_reload_flag
3606 +case $reload_flag in
3608 +*) reload_flag=" $reload_flag" ;;
3610 +reload_cmds='$LD$reload_flag -o $output$reload_objs'
3611 +])# AC_PROG_LD_RELOAD_FLAG
3614 +# AC_DEPLIBS_CHECK_METHOD
3615 +# -----------------------
3616 +# how to check for library dependencies
3617 +# -- PORTME fill in with the dynamic library characteristics
3618 +AC_DEFUN([AC_DEPLIBS_CHECK_METHOD],
3619 +[AC_CACHE_CHECK([how to recognise dependent libraries],
3620 +lt_cv_deplibs_check_method,
3621 +[lt_cv_file_magic_cmd='$MAGIC_CMD'
3622 +lt_cv_file_magic_test_file=
3623 +lt_cv_deplibs_check_method='unknown'
3624 +# Need to set the preceding variable on all platforms that support
3625 +# interlibrary dependencies.
3626 +# 'none' -- dependencies not supported.
3627 +# `unknown' -- same as none, but documents that we really don't know.
3628 +# 'pass_all' -- all dependencies passed with no checks.
3629 +# 'test_compile' -- check by making test program.
3630 +# 'file_magic [[regex]]' -- check by looking for files in library path
3631 +# which responds to the $file_magic_cmd with a given extended regex.
3632 +# If you have `file' or equivalent on your system and you're not sure
3633 +# whether `pass_all' will *always* work, you probably want this one.
3637 + lt_cv_deplibs_check_method=pass_all
3641 + lt_cv_deplibs_check_method=pass_all
3645 + lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (shared object|dynamic lib)'
3646 + lt_cv_file_magic_cmd='/usr/bin/file -L'
3647 + lt_cv_file_magic_test_file=/shlib/libc.so
3651 + # func_win32_libid is a shell function defined in ltmain.sh
3652 + lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
3653 + lt_cv_file_magic_cmd='func_win32_libid'
3657 + # Base MSYS/MinGW do not provide the 'file' command needed by
3658 + # func_win32_libid shell function, so use a weaker test based on 'objdump'.
3659 + lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
3660 + lt_cv_file_magic_cmd='$OBJDUMP -f'
3663 +darwin* | rhapsody*)
3664 + lt_cv_deplibs_check_method=pass_all
3667 +freebsd* | kfreebsd*-gnu)
3668 + if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3671 + # Not sure whether the presence of OpenBSD here was a mistake.
3672 + # Let's accept both of them until this is cleared up.
3673 + lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[[3-9]]86 (compact )?demand paged shared library'
3674 + lt_cv_file_magic_cmd=/usr/bin/file
3675 + lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3679 + lt_cv_deplibs_check_method=pass_all
3684 + lt_cv_deplibs_check_method=pass_all
3687 +hpux10.20* | hpux11*)
3688 + lt_cv_file_magic_cmd=/usr/bin/file
3689 + case "$host_cpu" in
3691 + lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|ELF-[[0-9]][[0-9]]) shared object file - IA64'
3692 + lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
3695 + [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]']
3696 + lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
3699 + lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|PA-RISC[[0-9]].[[0-9]]) shared library'
3700 + lt_cv_file_magic_test_file=/usr/lib/libc.sl
3705 +irix5* | irix6* | nonstopux*)
3707 + *-32|*"-32 ") libmagic=32-bit;;
3708 + *-n32|*"-n32 ") libmagic=N32;;
3709 + *-64|*"-64 ") libmagic=64-bit;;
3710 + *) libmagic=never-match;;
3712 + lt_cv_deplibs_check_method=pass_all
3715 +# This must be Linux ELF.
3717 + lt_cv_deplibs_check_method=pass_all
3720 +netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
3721 + if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3722 + lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$'
3724 + lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so|_pic\.a)$'
3729 + lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (executable|dynamic lib)'
3730 + lt_cv_file_magic_cmd=/usr/bin/file
3731 + lt_cv_file_magic_test_file=/usr/lib/libnls.so
3735 + lt_cv_deplibs_check_method=unknown
3739 + lt_cv_file_magic_cmd=/usr/bin/file
3740 + lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3741 + if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
3742 + lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB shared object'
3744 + lt_cv_deplibs_check_method='file_magic OpenBSD.* shared library'
3748 +osf3* | osf4* | osf5*)
3749 + lt_cv_deplibs_check_method=pass_all
3753 + lt_cv_deplibs_check_method=pass_all
3757 + lt_cv_deplibs_check_method=pass_all
3760 +sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
3761 + case $host_vendor in
3763 + 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]]'
3764 + lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
3767 + lt_cv_deplibs_check_method=pass_all
3770 + lt_cv_file_magic_cmd='/bin/file'
3771 + lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB (shared object|dynamic lib )'
3774 + lt_cv_file_magic_cmd='/bin/file'
3775 + lt_cv_deplibs_check_method="file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB dynamic lib"
3776 + lt_cv_file_magic_test_file=/lib/libc.so
3779 + lt_cv_deplibs_check_method=pass_all
3784 +sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[[78]]* | unixware7* | sysv4*uw2*)
3785 + lt_cv_deplibs_check_method=pass_all
3789 +file_magic_cmd=$lt_cv_file_magic_cmd
3790 +deplibs_check_method=$lt_cv_deplibs_check_method
3791 +test -z "$deplibs_check_method" && deplibs_check_method=unknown
3792 +])# AC_DEPLIBS_CHECK_METHOD
3795 - if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
3796 - archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
3799 - archive_cmds='$CC -shared -nodefaultlibs $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
3800 - archive_expsym_cmds='$CC -shared -nodefaultlibs $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
3804 +# find the pathname to a BSD-compatible name lister
3805 +AC_DEFUN([AC_PROG_NM],
3806 +[AC_CACHE_CHECK([for BSD-compatible nm], lt_cv_path_NM,
3807 +[if test -n "$NM"; then
3808 + # Let the user override the test.
3809 + lt_cv_path_NM="$NM"
3811 + lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3812 + for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
3813 + IFS="$lt_save_ifs"
3814 + test -z "$ac_dir" && ac_dir=.
3815 + tmp_nm="$ac_dir/${ac_tool_prefix}nm"
3816 + if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
3817 + # Check to see if the nm accepts a BSD-compat flag.
3818 + # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3819 + # nm: unknown option "B" ignored
3820 + # Tru64's nm complains that /dev/null is an invalid object file
3821 + case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
3822 + */dev/null* | *'Invalid file or object type'*)
3823 + lt_cv_path_NM="$tmp_nm -B"
3827 + case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
3829 + lt_cv_path_NM="$tmp_nm -p"
3833 + lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3834 + continue # so that we can try to find one that supports BSD flags
3841 + IFS="$lt_save_ifs"
3842 + test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
3844 +NM="$lt_cv_path_NM"
3847 - solaris* | sysv5*)
3848 - if $LD -v 2>&1 | egrep 'BFD 2\.8' > /dev/null; then
3852 -*** Warning: The releases 2.8.* of the GNU linker cannot reliably
3853 -*** create shared libraries on Solaris systems. Therefore, libtool
3854 -*** is disabling shared libraries support. We urge you to upgrade GNU
3855 -*** binutils to release 2.9.1 or newer. Another option is to modify
3856 -*** your PATH or compiler configuration so that the native linker is
3857 -*** used, and then restart.
3860 +# check for math library
3861 +AC_DEFUN([AC_CHECK_LIBM],
3862 +[AC_REQUIRE([AC_CANONICAL_HOST])dnl
3865 +*-*-beos* | *-*-cygwin* | *-*-pw32* | *-*-darwin*)
3866 + # These system don't have libm, or don't need it
3869 + AC_CHECK_LIB(mw, _mwvalidcheckl, LIBM="-lmw")
3870 + AC_CHECK_LIB(m, cos, LIBM="$LIBM -lm")
3873 + AC_CHECK_LIB(m, cos, LIBM="-lm")
3879 - elif $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
3880 - archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
3881 - archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
3888 - archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
3890 - hardcode_direct=yes
3891 - hardcode_shlibpath_var=no
3893 +# AC_LIBLTDL_CONVENIENCE([DIRECTORY])
3894 +# -----------------------------------
3895 +# sets LIBLTDL to the link flags for the libltdl convenience library and
3896 +# LTDLINCL to the include flags for the libltdl header and adds
3897 +# --enable-ltdl-convenience to the configure arguments. Note that LIBLTDL
3898 +# and LTDLINCL are not AC_SUBSTed, nor is AC_CONFIG_SUBDIRS called. If
3899 +# DIRECTORY is not provided, it is assumed to be `libltdl'. LIBLTDL will
3900 +# be prefixed with '${top_builddir}/' and LTDLINCL will be prefixed with
3901 +# '${top_srcdir}/' (note the single quotes!). If your package is not
3902 +# flat and you're not using automake, define top_builddir and
3903 +# top_srcdir appropriately in the Makefiles.
3904 +AC_DEFUN([AC_LIBLTDL_CONVENIENCE],
3905 +[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
3906 + case $enable_ltdl_convenience in
3907 + no) AC_MSG_ERROR([this package needs a convenience libltdl]) ;;
3908 + "") enable_ltdl_convenience=yes
3909 + ac_configure_args="$ac_configure_args --enable-ltdl-convenience" ;;
3911 + LIBLTDL='${top_builddir}/'ifelse($#,1,[$1],['libltdl'])/libltdlc.la
3912 + LTDLINCL='-I${top_srcdir}/'ifelse($#,1,[$1],['libltdl'])
3913 + # For backwards non-gettext consistent compatibility...
3914 + INCLTDL="$LTDLINCL"
3915 +])# AC_LIBLTDL_CONVENIENCE
3918 - if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
3919 - archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
3920 - archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
3925 +# AC_LIBLTDL_INSTALLABLE([DIRECTORY])
3926 +# -----------------------------------
3927 +# sets LIBLTDL to the link flags for the libltdl installable library and
3928 +# LTDLINCL to the include flags for the libltdl header and adds
3929 +# --enable-ltdl-install to the configure arguments. Note that LIBLTDL
3930 +# and LTDLINCL are not AC_SUBSTed, nor is AC_CONFIG_SUBDIRS called. If
3931 +# DIRECTORY is not provided and an installed libltdl is not found, it is
3932 +# assumed to be `libltdl'. LIBLTDL will be prefixed with '${top_builddir}/'
3933 +# and LTDLINCL will be prefixed with '${top_srcdir}/' (note the single
3934 +# quotes!). If your package is not flat and you're not using automake,
3935 +# define top_builddir and top_srcdir appropriately in the Makefiles.
3936 +# In the future, this macro may have to be called after AC_PROG_LIBTOOL.
3937 +AC_DEFUN([AC_LIBLTDL_INSTALLABLE],
3938 +[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
3939 + AC_CHECK_LIB(ltdl, lt_dlinit,
3940 + [test x"$enable_ltdl_install" != xyes && enable_ltdl_install=no],
3941 + [if test x"$enable_ltdl_install" = xno; then
3942 + AC_MSG_WARN([libltdl not installed, but installation disabled])
3944 + enable_ltdl_install=yes
3947 + if test x"$enable_ltdl_install" = x"yes"; then
3948 + ac_configure_args="$ac_configure_args --enable-ltdl-install"
3949 + LIBLTDL='${top_builddir}/'ifelse($#,1,[$1],['libltdl'])/libltdl.la
3950 + LTDLINCL='-I${top_srcdir}/'ifelse($#,1,[$1],['libltdl'])
3952 + ac_configure_args="$ac_configure_args --enable-ltdl-install=no"
3956 + # For backwards non-gettext consistent compatibility...
3957 + INCLTDL="$LTDLINCL"
3958 +])# AC_LIBLTDL_INSTALLABLE
3963 +# enable support for C++ libraries
3964 +AC_DEFUN([AC_LIBTOOL_CXX],
3965 +[AC_REQUIRE([_LT_AC_LANG_CXX])
3971 +AC_DEFUN([_LT_AC_LANG_CXX],
3972 +[AC_REQUIRE([AC_PROG_CXX])
3973 +AC_REQUIRE([AC_PROG_CXXCPP])
3974 +_LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}CXX])
3975 +])# _LT_AC_LANG_CXX
3980 +# enable support for Fortran 77 libraries
3981 +AC_DEFUN([AC_LIBTOOL_F77],
3982 +[AC_REQUIRE([_LT_AC_LANG_F77])
3988 +AC_DEFUN([_LT_AC_LANG_F77],
3989 +[AC_REQUIRE([AC_PROG_F77])
3990 +_LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}F77])
3991 +])# _LT_AC_LANG_F77
3996 +# enable support for GCJ libraries
3997 +AC_DEFUN([AC_LIBTOOL_GCJ],
3998 +[AC_REQUIRE([_LT_AC_LANG_GCJ])
4004 +AC_DEFUN([_LT_AC_LANG_GCJ],
4005 +[AC_PROVIDE_IFELSE([AC_PROG_GCJ],[],
4006 + [AC_PROVIDE_IFELSE([A][M_PROG_GCJ],[],
4007 + [AC_PROVIDE_IFELSE([LT_AC_PROG_GCJ],[],
4008 + [ifdef([AC_PROG_GCJ],[AC_REQUIRE([AC_PROG_GCJ])],
4009 + [ifdef([A][M_PROG_GCJ],[AC_REQUIRE([A][M_PROG_GCJ])],
4010 + [AC_REQUIRE([A][C_PROG_GCJ_OR_A][M_PROG_GCJ])])])])])])
4011 +_LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}GCJ])
4012 +])# _LT_AC_LANG_GCJ
4017 +# enable support for Windows resource files
4018 +AC_DEFUN([AC_LIBTOOL_RC],
4019 +[AC_REQUIRE([LT_AC_PROG_RC])
4020 +_LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}RC])
4024 +# AC_LIBTOOL_LANG_C_CONFIG
4025 +# ------------------------
4026 +# Ensure that the configuration vars for the C compiler are
4027 +# suitably defined. Those variables are subsequently used by
4028 +# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
4029 +AC_DEFUN([AC_LIBTOOL_LANG_C_CONFIG], [_LT_AC_LANG_C_CONFIG])
4030 +AC_DEFUN([_LT_AC_LANG_C_CONFIG],
4034 +# Source file extension for C test sources.
4037 +# Object file extension for compiled C test sources.
4039 +_LT_AC_TAGVAR(objext, $1)=$objext
4041 +# Code to be used in simple compile tests
4042 +lt_simple_compile_test_code="int some_variable = 0;\n"
4044 +# Code to be used in simple link tests
4045 +lt_simple_link_test_code='int main(){return(0);}\n'
4047 +_LT_AC_SYS_COMPILER
4050 +# Check for any special shared library compilation flags.
4052 +_LT_AC_TAGVAR(lt_prog_cc_shlib, $1)=
4053 +if test "$GCC" = no; then
4056 + _LT_AC_TAGVAR(lt_prog_cc_shlib, $1)='-belf'
4060 +if test -n "$_LT_AC_TAGVAR(lt_prog_cc_shlib, $1)"; then
4061 + AC_MSG_WARN([`$CC' requires `$_LT_AC_TAGVAR(lt_prog_cc_shlib, $1)' to build shared libraries])
4062 + if echo "$old_CC $old_CFLAGS " | grep "[[ ]]$_LT_AC_TAGVAR(lt_prog_cc_shlib, $1)[[ ]]" >/dev/null; then :
4064 + AC_MSG_WARN([add `$_LT_AC_TAGVAR(lt_prog_cc_shlib, $1)' to the CC or CFLAGS env variable and reconfigure])
4065 + _LT_AC_TAGVAR(lt_cv_prog_cc_can_build_shared, $1)=no
4069 - if test "$ld_shlibs" = yes; then
4070 - runpath_var=LD_RUN_PATH
4071 - hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
4072 - export_dynamic_flag_spec='${wl}--export-dynamic'
4074 - cygwin* | mingw* | pw32*)
4075 - # dlltool doesn't understand --whole-archive et. al.
4076 - whole_archive_flag_spec=
4079 +# Check to make sure the static flag actually works.
4081 +AC_LIBTOOL_LINKER_OPTION([if $compiler static flag $_LT_AC_TAGVAR(lt_prog_compiler_static, $1) works],
4082 + _LT_AC_TAGVAR(lt_prog_compiler_static_works, $1),
4083 + $_LT_AC_TAGVAR(lt_prog_compiler_static, $1),
4085 + [_LT_AC_TAGVAR(lt_prog_compiler_static, $1)=])
4088 +AC_LIBTOOL_PROG_COMPILER_NO_RTTI($1)
4089 +AC_LIBTOOL_PROG_COMPILER_PIC($1)
4090 +AC_LIBTOOL_PROG_CC_C_O($1)
4091 +AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1)
4092 +AC_LIBTOOL_PROG_LD_SHLIBS($1)
4093 +AC_LIBTOOL_SYS_DYNAMIC_LINKER($1)
4094 +AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1)
4095 +AC_LIBTOOL_SYS_LIB_STRIP
4096 +AC_LIBTOOL_DLOPEN_SELF($1)
4098 +# Report which librarie types wil actually be built
4099 +AC_MSG_CHECKING([if libtool supports shared libraries])
4100 +AC_MSG_RESULT([$can_build_shared])
4102 +AC_MSG_CHECKING([whether to build shared libraries])
4103 +test "$can_build_shared" = "no" && enable_shared=no
4105 +# On AIX, shared libraries and static libraries use the same namespace, and
4106 +# are all built from PIC.
4109 + test "$enable_shared" = yes && enable_static=no
4110 + if test -n "$RANLIB"; then
4111 + archive_cmds="$archive_cmds~\$RANLIB \$lib"
4112 + postinstall_cmds='$RANLIB $lib'
4117 + if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
4118 + test "$enable_shared" = yes && enable_static=no
4121 + darwin* | rhapsody*)
4122 + if test "$GCC" = yes; then
4123 + _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
4124 + case "$host_os" in
4125 + rhapsody* | darwin1.[[012]])
4126 + _LT_AC_TAGVAR(allow_undefined_flag, $1)='-undefined suppress'
4129 - # ancient GNU ld didn't support --whole-archive et. al.
4130 - if $LD --help 2>&1 | egrep 'no-whole-archive' > /dev/null; then
4131 - whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
4132 + *) # Darwin 1.3 on
4133 + if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
4134 + _LT_AC_TAGVAR(allow_undefined_flag, $1)='-flat_namespace -undefined suppress'
4136 - whole_archive_flag_spec=
4137 + case ${MACOSX_DEPLOYMENT_TARGET} in
4139 + _LT_AC_TAGVAR(allow_undefined_flag, $1)='-flat_namespace -undefined suppress'
4142 + _LT_AC_TAGVAR(allow_undefined_flag, $1)='-undefined dynamic_lookup'
4148 + output_verbose_link_cmd='echo'
4149 + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags -install_name $rpath/$soname $verstring'
4150 + _LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
4151 + # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
4152 + _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}'
4153 + _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}'
4154 + _LT_AC_TAGVAR(hardcode_direct, $1)=no
4155 + _LT_AC_TAGVAR(hardcode_automatic, $1)=yes
4156 + _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
4157 + _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='-all_load $convenience'
4158 + _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
4160 + _LT_AC_TAGVAR(ld_shlibs, $1)=no
4164 +AC_MSG_RESULT([$enable_shared])
4166 +AC_MSG_CHECKING([whether to build static libraries])
4167 +# Make sure either enable_shared or enable_static is yes.
4168 +test "$enable_shared" = yes || enable_static=yes
4169 +AC_MSG_RESULT([$enable_static])
4171 +AC_LIBTOOL_CONFIG($1)
4175 +])# AC_LIBTOOL_LANG_C_CONFIG
4178 +# AC_LIBTOOL_LANG_CXX_CONFIG
4179 +# --------------------------
4180 +# Ensure that the configuration vars for the C compiler are
4181 +# suitably defined. Those variables are subsequently used by
4182 +# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
4183 +AC_DEFUN([AC_LIBTOOL_LANG_CXX_CONFIG], [_LT_AC_LANG_CXX_CONFIG(CXX)])
4184 +AC_DEFUN([_LT_AC_LANG_CXX_CONFIG],
4186 +AC_REQUIRE([AC_PROG_CXX])
4187 +AC_REQUIRE([AC_PROG_CXXCPP])
4189 +_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
4190 +_LT_AC_TAGVAR(allow_undefined_flag, $1)=
4191 +_LT_AC_TAGVAR(always_export_symbols, $1)=no
4192 +_LT_AC_TAGVAR(archive_expsym_cmds, $1)=
4193 +_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)=
4194 +_LT_AC_TAGVAR(hardcode_direct, $1)=no
4195 +_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=
4196 +_LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
4197 +_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
4198 +_LT_AC_TAGVAR(hardcode_minus_L, $1)=no
4199 +_LT_AC_TAGVAR(hardcode_automatic, $1)=no
4200 +_LT_AC_TAGVAR(module_cmds, $1)=
4201 +_LT_AC_TAGVAR(module_expsym_cmds, $1)=
4202 +_LT_AC_TAGVAR(link_all_deplibs, $1)=unknown
4203 +_LT_AC_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
4204 +_LT_AC_TAGVAR(no_undefined_flag, $1)=
4205 +_LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
4206 +_LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=no
4208 +# Dependencies to place before and after the object being linked:
4209 +_LT_AC_TAGVAR(predep_objects, $1)=
4210 +_LT_AC_TAGVAR(postdep_objects, $1)=
4211 +_LT_AC_TAGVAR(predeps, $1)=
4212 +_LT_AC_TAGVAR(postdeps, $1)=
4213 +_LT_AC_TAGVAR(compiler_lib_search_path, $1)=
4215 +# Source file extension for C++ test sources.
4218 +# Object file extension for compiled C++ test sources.
4220 +_LT_AC_TAGVAR(objext, $1)=$objext
4222 +# Code to be used in simple compile tests
4223 +lt_simple_compile_test_code="int some_variable = 0;\n"
4225 +# Code to be used in simple link tests
4226 +lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n'
4228 +# ltmain only uses $CC for tagged configurations so make sure $CC is set.
4229 +_LT_AC_SYS_COMPILER
4231 +# Allow CC to be a program name with arguments.
4236 +lt_save_with_gnu_ld=$with_gnu_ld
4237 +lt_save_path_LD=$lt_cv_path_LD
4238 +if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
4239 + lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
4241 - # PORTME fill in a description of your system's linker (not GNU ld)
4244 - allow_undefined_flag=unsupported
4245 - always_export_symbols=yes
4246 - 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'
4247 - # Note: this linker hardcodes the directories in LIBPATH if there
4248 - # are no directories specified by -L.
4249 - hardcode_minus_L=yes
4250 - if test "$GCC" = yes && test -z "$link_static_flag"; then
4251 - # Neither direct hardcoding nor static linking is supported with a
4252 - # broken collect2.
4253 - hardcode_direct=unsupported
4254 + unset lt_cv_prog_gnu_ld
4256 +if test -n "${lt_cv_path_LDCXX+set}"; then
4257 + lt_cv_path_LD=$lt_cv_path_LDCXX
4259 + unset lt_cv_path_LD
4261 +test -z "${LDCXX+set}" || LD=$LDCXX
4264 +_LT_AC_TAGVAR(compiler, $1)=$CC
4265 +cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
4267 +# We don't want -fno-exception wen compiling C++ code, so set the
4268 +# no_builtin_flag separately
4269 +if test "$GXX" = yes; then
4270 + _LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin'
4272 + _LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=
4275 +if test "$GXX" = yes; then
4276 + # Set up default GNU C++ configuration
4280 + # Check if GNU C++ uses GNU ld as the underlying linker, since the
4281 + # archiving commands below assume that GNU ld is being used.
4282 + if test "$with_gnu_ld" = yes; then
4283 + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
4284 + _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'
4286 + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir'
4287 + _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
4289 + # If archive_cmds runs LD, not CC, wlarc should be empty
4290 + # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
4291 + # investigate it a little bit more. (MM)
4294 + # ancient GNU ld didn't support --whole-archive et. al.
4295 + if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
4296 + grep 'no-whole-archive' > /dev/null; then
4297 + _LT_AC_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
4299 + _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
4306 + # A generic and very simple default shared library creation
4307 + # command for GNU C++ for the case where it uses the native
4308 + # linker, instead of GNU ld. If possible, this setting should
4309 + # overridden to take advantage of the native linker features on
4310 + # the platform it is being used on.
4311 + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
4314 + # Commands to make compiler produce verbose output that lists
4315 + # what "hidden" libraries, object files and flags are used when
4316 + # linking a shared library.
4317 + output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
4325 +# PORTME: fill in a description of your system's C++ link characteristics
4326 +AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries])
4327 +_LT_AC_TAGVAR(ld_shlibs, $1)=yes
4330 + # FIXME: insert proper C++ library support
4331 + _LT_AC_TAGVAR(ld_shlibs, $1)=no
4334 if test "$host_cpu" = ia64; then
4335 # On IA64, the linker does run time linking by default, so we don't
4336 @@ -1586,7 +3728,7 @@
4338 aix_use_runtimelinking=yes
4345 @@ -1601,34 +3743,39 @@
4346 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
4347 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
4349 - hardcode_direct=yes
4351 - hardcode_libdir_separator=':'
4352 - if test "$GCC" = yes; then
4353 - case $host_os in aix4.[[012]]|aix4.[[012]].*)
4354 + _LT_AC_TAGVAR(archive_cmds, $1)=''
4355 + _LT_AC_TAGVAR(hardcode_direct, $1)=yes
4356 + _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=':'
4357 + _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
4359 + if test "$GXX" = yes; then
4360 + case $host_os in aix4.[012]|aix4.[012].*)
4361 + # We only want to do this on AIX 4.2 and lower, the check
4362 + # below for broken collect2 doesn't work under 4.3+
4363 collect2name=`${CC} -print-prog-name=collect2`
4364 if test -f "$collect2name" && \
4365 - strings "$collect2name" | grep resolve_lib_name >/dev/null
4366 + strings "$collect2name" | grep resolve_lib_name >/dev/null
4368 # We have reworked collect2
4369 - hardcode_direct=yes
4370 + _LT_AC_TAGVAR(hardcode_direct, $1)=yes
4372 # We have old collect2
4373 - hardcode_direct=unsupported
4374 + _LT_AC_TAGVAR(hardcode_direct, $1)=unsupported
4375 # It fails to find uninstalled libraries when the uninstalled
4376 # path is not listed in the libpath. Setting hardcode_minus_L
4377 # to unsupported forces relinking
4378 - hardcode_minus_L=yes
4379 - hardcode_libdir_flag_spec='-L$libdir'
4380 - hardcode_libdir_separator=
4381 + _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
4382 + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
4383 + _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
4387 shared_flag='-shared'
4390 if test "$host_cpu" = ia64; then
4391 - shared_flag='${wl}-G'
4392 + # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
4393 + # chokes on -Wl,-G. The following line is correct:
4396 if test "$aix_use_runtimelinking" = yes; then
4397 shared_flag='${wl}-G'
4398 @@ -1638,833 +3785,867 @@
4402 - # It seems that -bexpall can do strange things, so it is better to
4403 - # generate a list of symbols to export.
4404 - always_export_symbols=yes
4405 + # It seems that -bexpall does not export symbols beginning with
4406 + # underscore (_), so it is better to generate a list of symbols to export.
4407 + _LT_AC_TAGVAR(always_export_symbols, $1)=yes
4408 if test "$aix_use_runtimelinking" = yes; then
4409 # Warning - without using the other runtime loading flags (-brtl),
4410 # -berok will link without error, but may produce a broken library.
4411 - allow_undefined_flag='-berok'
4412 - hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:/usr/lib:/lib'
4413 - 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"
4415 + _LT_AC_TAGVAR(allow_undefined_flag, $1)='-berok'
4416 + # Determine the default libpath from the value encoded in an empty executable.
4417 + _LT_AC_SYS_LIBPATH_AIX
4418 + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
4420 + _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"
4422 if test "$host_cpu" = ia64; then
4423 - hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
4424 - allow_undefined_flag="-z nodefs"
4425 - 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"
4426 + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib'
4427 + _LT_AC_TAGVAR(allow_undefined_flag, $1)="-z nodefs"
4428 + _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"
4430 - hardcode_libdir_flag_spec='${wl}-bnolibpath ${wl}-blibpath:$libdir:/usr/lib:/lib'
4431 + # Determine the default libpath from the value encoded in an empty executable.
4432 + _LT_AC_SYS_LIBPATH_AIX
4433 + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
4434 # Warning - without using the other run time loading flags,
4435 # -berok will link without error, but may produce a broken library.
4436 - allow_undefined_flag='${wl}-berok'
4437 - # This is a bit strange, but is similar to how AIX traditionally builds
4438 - # it's shared libraries.
4439 - 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'
4440 + _LT_AC_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok'
4441 + _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok'
4442 + # -bexpall does not export symbols beginning with underscore (_)
4443 + _LT_AC_TAGVAR(always_export_symbols, $1)=yes
4444 + # Exported symbols can be pulled into shared objects from archives
4445 + _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=' '
4446 + _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes
4447 + # This is similar to how AIX traditionally builds it's shared libraries.
4448 + _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'
4454 - 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)'
4455 - hardcode_libdir_flag_spec='-L$libdir'
4456 - hardcode_minus_L=yes
4457 - # see comment about different semantics on the GNU ld section
4460 + case $cc_basename in
4462 + # FIXME: insert proper C++ library support
4463 + _LT_AC_TAGVAR(ld_shlibs, $1)=no
4468 cygwin* | mingw* | pw32*)
4469 - # When not using gcc, we currently assume that we are using
4470 - # Microsoft Visual C++.
4471 - # hardcode_libdir_flag_spec is actually meaningless, as there is
4472 - # no search path for DLLs.
4473 - hardcode_libdir_flag_spec=' '
4474 - allow_undefined_flag=unsupported
4475 - # Tell ltmain to make .lib files, not .a files.
4477 - # FIXME: Setting linknames here is a bad hack.
4478 - archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | sed -e '\''s/ -lc$//'\''` -link -dll~linknames='
4479 - # The linker will automatically build a .lib file if we build a DLL.
4480 - old_archive_from_new_cmds='true'
4481 - # FIXME: Should let the user specify the lib program.
4482 - old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
4483 - fix_srcfile_path='`cygpath -w "$srcfile"`'
4485 + # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless,
4486 + # as there is no search path for DLLs.
4487 + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
4488 + _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
4489 + _LT_AC_TAGVAR(always_export_symbols, $1)=no
4490 + _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
4492 + if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
4493 + _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'
4494 + # If the export-symbols file already is a .def file (1st line
4495 + # is EXPORTS), use it as is; otherwise, prepend...
4496 + _LT_AC_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
4497 + cp $export_symbols $output_objdir/$soname.def;
4499 + echo EXPORTS > $output_objdir/$soname.def;
4500 + cat $export_symbols >> $output_objdir/$soname.def;
4502 + $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'
4504 + _LT_AC_TAGVAR(ld_shlibs, $1)=no
4508 darwin* | rhapsody*)
4509 + if test "$GXX" = yes; then
4510 + _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
4512 rhapsody* | darwin1.[[012]])
4513 - allow_undefined_flag='-undefined suppress'
4514 + _LT_AC_TAGVAR(allow_undefined_flag, $1)='-undefined suppress'
4517 - allow_undefined_flag='-flat_namespace -undefined suppress'
4520 - # FIXME: Relying on posixy $() will cause problems for
4521 - # cross-compilation, but unfortunately the echo tests do not
4522 - # yet detect zsh echo's removal of \ escapes. Also zsh mangles
4523 - # `"' quotes if we put them in here... so don't!
4524 - 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)'
4525 - # We need to add '_' to the symbols in $export_symbols first
4526 - #archive_expsym_cmds="$archive_cmds"' && strip -s $export_symbols'
4527 - hardcode_direct=yes
4528 - hardcode_shlibpath_var=no
4529 - whole_archive_flag_spec='-all_load $convenience'
4536 - # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
4537 - # support. Future versions do this automatically, but an explicit c++rt0.o
4538 - # does not break anything, and helps significantly (at the cost of a little
4541 - archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
4542 - hardcode_libdir_flag_spec='-R$libdir'
4543 - hardcode_direct=yes
4544 - hardcode_shlibpath_var=no
4547 - # Unfortunately, older versions of FreeBSD 2 do not have this feature.
4549 - archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
4550 - hardcode_direct=yes
4551 - hardcode_minus_L=yes
4552 - hardcode_shlibpath_var=no
4555 - # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
4557 - archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
4558 - hardcode_libdir_flag_spec='-R$libdir'
4559 - hardcode_direct=yes
4560 - hardcode_shlibpath_var=no
4563 - hpux9* | hpux10* | hpux11*)
4565 - 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' ;;
4566 - *) archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' ;;
4568 - hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
4569 - hardcode_libdir_separator=:
4570 - hardcode_direct=yes
4571 - hardcode_minus_L=yes # Not in the search PATH, but as the default
4572 - # location of the library.
4573 - export_dynamic_flag_spec='${wl}-E'
4576 - irix5* | irix6* | nonstopux*)
4577 - if test "$GCC" = yes; then
4578 - 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'
4579 - hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
4581 - 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'
4582 - hardcode_libdir_flag_spec='-rpath $libdir'
4584 - hardcode_libdir_separator=:
4585 - link_all_deplibs=yes
4589 - if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
4590 - archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
4592 - archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
4594 - hardcode_libdir_flag_spec='-R$libdir'
4595 - hardcode_direct=yes
4596 - hardcode_shlibpath_var=no
4600 - archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
4601 - hardcode_direct=yes
4602 - hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
4603 - hardcode_libdir_separator=:
4604 - hardcode_shlibpath_var=no
4608 - hardcode_direct=yes
4609 - hardcode_shlibpath_var=no
4610 - if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4611 - archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
4612 - hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
4613 - export_dynamic_flag_spec='${wl}-E'
4615 - case "$host_os" in
4616 - openbsd[[01]].* | openbsd2.[[0-7]] | openbsd2.[[0-7]].*)
4617 - archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
4618 - hardcode_libdir_flag_spec='-R$libdir'
4621 - archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
4622 - hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
4625 + if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
4626 + _LT_AC_TAGVAR(allow_undefined_flag, $1)='-flat_namespace -undefined suppress'
4628 + case ${MACOSX_DEPLOYMENT_TARGET} in
4630 + _LT_AC_TAGVAR(allow_undefined_flag, $1)='-flat_namespace -undefined suppress'
4633 + _LT_AC_TAGVAR(allow_undefined_flag, $1)='-undefined dynamic_lookup'
4639 + lt_int_apple_cc_single_mod=no
4640 + output_verbose_link_cmd='echo'
4641 + if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
4642 + lt_int_apple_cc_single_mod=yes
4647 - hardcode_libdir_flag_spec='-L$libdir'
4648 - hardcode_minus_L=yes
4649 - allow_undefined_flag=unsupported
4650 - 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'
4651 - old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
4655 - if test "$GCC" = yes; then
4656 - allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
4657 - 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'
4658 + if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
4659 + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
4661 - allow_undefined_flag=' -expect_unresolved \*'
4662 - 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'
4663 + _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'
4665 - hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
4666 - hardcode_libdir_separator=:
4668 + _LT_AC_TAGVAR(module_cmds, $1)='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
4670 - osf4* | osf5*) # as osf3* with the addition of -msym flag
4671 - if test "$GCC" = yes; then
4672 - allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
4673 - 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'
4674 - hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
4675 + # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
4676 + if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
4677 + _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}'
4679 - allow_undefined_flag=' -expect_unresolved \*'
4680 - 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'
4681 - archive_expsym_cmds='for i in `cat $export_symbols`; do printf "-exported_symbol " >> $lib.exp; echo "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
4682 - $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'
4684 - #Both c and cxx compiler support -rpath directly
4685 - hardcode_libdir_flag_spec='-rpath $libdir'
4686 + _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}'
4688 - hardcode_libdir_separator=:
4692 - archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
4693 - hardcode_shlibpath_var=no
4694 - runpath_var=LD_RUN_PATH
4695 - hardcode_runpath_var=yes
4696 - export_dynamic_flag_spec='${wl}-Bexport'
4697 + _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}'
4698 + _LT_AC_TAGVAR(hardcode_direct, $1)=no
4699 + _LT_AC_TAGVAR(hardcode_automatic, $1)=yes
4700 + _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
4701 + _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='-all_load $convenience'
4702 + _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
4704 + _LT_AC_TAGVAR(ld_shlibs, $1)=no
4709 - # gcc --version < 3.0 without binutils cannot create self contained
4710 - # shared libraries reliably, requiring libgcc.a to resolve some of
4711 - # the object symbols generated in some cases. Libraries that use
4712 - # assert need libgcc.a to resolve __eprintf, for example. Linking
4713 - # a copy of libgcc.a into every shared library to guarantee resolving
4714 - # such symbols causes other problems: According to Tim Van Holder
4715 - # <tim.van.holder@pandora.be>, C++ libraries end up with a separate
4716 - # (to the application) exception stack for one thing.
4717 - no_undefined_flag=' -z defs'
4718 - if test "$GCC" = yes; then
4719 - case `$CC --version 2>/dev/null` in
4723 -*** Warning: Releases of GCC earlier than version 3.0 cannot reliably
4724 -*** create self contained shared libraries on Solaris systems, without
4725 -*** introducing a dependency on libgcc.a. Therefore, libtool is disabling
4726 -*** -no-undefined support, which will at least allow you to build shared
4727 -*** libraries. However, you may find that when you link such libraries
4728 -*** into an application without using GCC, you have to manually add
4729 -*** \`gcc --print-libgcc-file-name\` to the link command. We urge you to
4730 -*** upgrade to a newer version of GCC. Another option is to rebuild your
4731 -*** current GCC to use the GNU linker from GNU binutils 2.9.1 or newer.
4734 - no_undefined_flag=
4736 + case $cc_basename in
4738 + # FIXME: insert proper C++ library support
4739 + _LT_AC_TAGVAR(ld_shlibs, $1)=no
4742 + # Green Hills C++ Compiler
4743 + # FIXME: insert proper C++ library support
4744 + _LT_AC_TAGVAR(ld_shlibs, $1)=no
4747 + # FIXME: insert proper C++ library support
4748 + _LT_AC_TAGVAR(ld_shlibs, $1)=no
4752 - # $CC -shared without GNU ld will not create a library from C++
4753 - # object files and a static libstdc++, better avoid it by now
4754 - archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
4755 - archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
4756 - $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
4757 - hardcode_libdir_flag_spec='-R$libdir'
4758 - hardcode_shlibpath_var=no
4760 - solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
4761 - *) # Supported since Solaris 2.6 (maybe 2.5.1?)
4762 - whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
4764 - link_all_deplibs=yes
4768 - if test "x$host_vendor" = xsequent; then
4769 - # Use $CC to link under sequent, because it throws in some extra .o
4770 - # files that make .init and .fini sections work.
4771 - archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
4773 - archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
4775 - hardcode_libdir_flag_spec='-L$libdir'
4776 - hardcode_direct=yes
4777 - hardcode_minus_L=yes
4778 - hardcode_shlibpath_var=no
4780 + # C++ shared libraries reported to be fairly broken before switch to ELF
4781 + _LT_AC_TAGVAR(ld_shlibs, $1)=no
4784 + _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
4786 + freebsd* | kfreebsd*-gnu)
4787 + # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
4789 + _LT_AC_TAGVAR(ld_shlibs, $1)=yes
4794 + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
4795 + _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
4796 + _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
4797 + _LT_AC_TAGVAR(hardcode_direct, $1)=yes
4798 + _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH,
4799 + # but as the default
4800 + # location of the library.
4802 + case $cc_basename in
4804 + # FIXME: insert proper C++ library support
4805 + _LT_AC_TAGVAR(ld_shlibs, $1)=no
4808 + _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'
4809 + # Commands to make compiler produce verbose output that lists
4810 + # what "hidden" libraries, object files and flags are used when
4811 + # linking a shared library.
4813 + # There doesn't appear to be a way to prevent this compiler from
4814 + # explicitly linking system object files so we need to strip them
4815 + # from the output so that they don't get included in the library
4817 + 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'
4820 + if test "$GXX" = yes; then
4821 + _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'
4823 + # FIXME: insert proper C++ library support
4824 + _LT_AC_TAGVAR(ld_shlibs, $1)=no
4831 - case $host_vendor in
4833 - archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
4834 - hardcode_direct=yes # is this really true???
4836 + if test $with_gnu_ld = no; then
4837 + case "$host_cpu" in
4839 + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
4840 + _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='+b $libdir'
4841 + _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
4844 - ## LD is ld it makes a PLAMLIB
4845 - ## CC just makes a GrossModule.
4846 - archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
4847 - reload_cmds='$CC -r -o $output$reload_objs'
4848 - hardcode_direct=no
4850 + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
4853 - archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
4854 - hardcode_direct=no #Motorola manual says yes, but my tests say they lie
4856 + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
4857 + _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
4858 + _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
4862 + case "$host_cpu" in
4864 + _LT_AC_TAGVAR(hardcode_direct, $1)=no
4865 + _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
4868 + _LT_AC_TAGVAR(hardcode_direct, $1)=no
4869 + _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
4870 + _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH,
4871 + # but as the default
4872 + # location of the library.
4875 + _LT_AC_TAGVAR(hardcode_direct, $1)=yes
4876 + _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH,
4877 + # but as the default
4878 + # location of the library.
4881 - runpath_var='LD_RUN_PATH'
4882 - hardcode_shlibpath_var=no
4886 - archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
4887 - hardcode_shlibpath_var=no
4888 - export_dynamic_flag_spec='-Bexport'
4892 - no_undefined_flag=' -z text'
4893 - # $CC -shared without GNU ld will not create a library from C++
4894 - # object files and a static libstdc++, better avoid it by now
4895 - archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
4896 - archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
4897 - $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
4898 - hardcode_libdir_flag_spec=
4899 - hardcode_shlibpath_var=no
4900 - runpath_var='LD_RUN_PATH'
4904 - archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
4905 - hardcode_libdir_flag_spec='-L$libdir'
4906 - hardcode_shlibpath_var=no
4907 + case $cc_basename in
4909 + # FIXME: insert proper C++ library support
4910 + _LT_AC_TAGVAR(ld_shlibs, $1)=no
4913 + case "$host_cpu" in
4915 + _LT_AC_TAGVAR(archive_cmds, $1)='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
4918 + _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'
4921 + # Commands to make compiler produce verbose output that lists
4922 + # what "hidden" libraries, object files and flags are used when
4923 + # linking a shared library.
4925 + # There doesn't appear to be a way to prevent this compiler from
4926 + # explicitly linking system object files so we need to strip them
4927 + # from the output so that they don't get included in the library
4929 + 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'
4932 + if test "$GXX" = yes; then
4933 + if test $with_gnu_ld = no; then
4934 + case "$host_cpu" in
4936 + _LT_AC_TAGVAR(archive_cmds, $1)='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
4939 + _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'
4944 + # FIXME: insert proper C++ library support
4945 + _LT_AC_TAGVAR(ld_shlibs, $1)=no
4952 - archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
4953 - hardcode_libdir_flag_spec='-L$libdir'
4954 - hardcode_shlibpath_var=no
4956 + case $cc_basename in
4959 + _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'
4961 + # Archives containing C++ object files must be created using
4962 + # "CC -ar", where "CC" is the IRIX C++ compiler. This is
4963 + # necessary to make sure instantiated templates are included
4965 + _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -ar -WR,-u -o $oldlib $oldobjs'
4968 + if test "$GXX" = yes; then
4969 + if test "$with_gnu_ld" = no; then
4970 + _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'
4972 + _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'
4975 + _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
4978 + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
4979 + _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
4983 - if test -d /usr/nec; then
4984 - archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
4985 - hardcode_shlibpath_var=no
4986 - runpath_var=LD_RUN_PATH
4987 - hardcode_runpath_var=yes
4991 + case $cc_basename in
4993 + # Kuck and Associates, Inc. (KAI) C++ Compiler
4995 + # KCC will only create a shared library if the output file
4996 + # ends with ".so" (or ".sl" for HP-UX), so rename the library
4997 + # to its proper name (with version) after linking.
4998 + _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'
4999 + _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'
5000 + # Commands to make compiler produce verbose output that lists
5001 + # what "hidden" libraries, object files and flags are used when
5002 + # linking a shared library.
5004 + # There doesn't appear to be a way to prevent this compiler from
5005 + # explicitly linking system object files so we need to strip them
5006 + # from the output so that they don't get included in the library
5008 + 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'
5010 + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath,$libdir'
5011 + _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
5013 + # Archives containing C++ object files must be created using
5014 + # "CC -Bstatic", where "CC" is the KAI C++ compiler.
5015 + _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs'
5020 + _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
5021 + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
5022 + _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'
5023 + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
5024 + _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
5025 + _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
5029 + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
5030 + _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'
5032 + runpath_var=LD_RUN_PATH
5033 + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
5034 + _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
5036 + # Commands to make compiler produce verbose output that lists
5037 + # what "hidden" libraries, object files and flags are used when
5038 + # linking a shared library.
5040 + # There doesn't appear to be a way to prevent this compiler from
5041 + # explicitly linking system object files so we need to strip them
5042 + # from the output so that they don't get included in the library
5044 + 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'
5050 - archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
5051 - hardcode_direct=yes
5052 - hardcode_minus_L=no
5053 - hardcode_shlibpath_var=no
5054 - hardcode_runpath_var=yes
5055 - runpath_var=LD_RUN_PATH
5057 + # FIXME: insert proper C++ library support
5058 + _LT_AC_TAGVAR(ld_shlibs, $1)=no
5061 + # FIXME: insert proper C++ library support
5062 + _LT_AC_TAGVAR(ld_shlibs, $1)=no
5065 + case $cc_basename in
5067 + # FIXME: insert proper C++ library support
5068 + _LT_AC_TAGVAR(ld_shlibs, $1)=no
5071 + # FIXME: insert proper C++ library support
5072 + _LT_AC_TAGVAR(ld_shlibs, $1)=no
5077 - sysv5uw7* | unixware7*)
5078 - no_undefined_flag='${wl}-z ${wl}text'
5079 - if test "$GCC" = yes; then
5080 - archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
5082 - archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
5083 + netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
5084 + if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
5085 + _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
5087 + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
5088 + _LT_AC_TAGVAR(hardcode_direct, $1)=yes
5089 + _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
5091 - runpath_var='LD_RUN_PATH'
5092 - hardcode_shlibpath_var=no
5097 + # Workaround some broken pre-1.5 toolchains
5098 + output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
5102 -AC_MSG_RESULT([$ld_shlibs])
5103 -test "$ld_shlibs" = no && can_build_shared=no
5105 -# Check hardcoding attributes.
5106 -AC_MSG_CHECKING([how to hardcode library paths into programs])
5108 -if test -n "$hardcode_libdir_flag_spec" || \
5109 - test -n "$runpath_var"; then
5111 - # We can hardcode non-existant directories.
5112 - if test "$hardcode_direct" != no &&
5113 - # If the only mechanism to avoid hardcoding is shlibpath_var, we
5114 - # have to relink, otherwise we might link with an installed library
5115 - # when we should be linking with a yet-to-be-installed one
5116 - ## test "$hardcode_shlibpath_var" != no &&
5117 - test "$hardcode_minus_L" != no; then
5118 - # Linking always hardcodes the temporary library directory.
5119 - hardcode_action=relink
5121 - # We can link without hardcoding, and we can hardcode nonexisting dirs.
5122 - hardcode_action=immediate
5125 - # We cannot hardcode anything, or else we can only hardcode existing
5127 - hardcode_action=unsupported
5129 -AC_MSG_RESULT([$hardcode_action])
5133 -AC_MSG_CHECKING([whether stripping libraries is possible])
5134 -if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
5135 - test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
5136 - test -z "$striplib" && striplib="$STRIP --strip-unneeded"
5137 - AC_MSG_RESULT([yes])
5139 - AC_MSG_RESULT([no])
5142 -reload_cmds='$LD$reload_flag -o $output$reload_objs'
5143 -test -z "$deplibs_check_method" && deplibs_check_method=unknown
5145 -# PORTME Fill in your ld.so characteristics
5146 -AC_MSG_CHECKING([dynamic linker characteristics])
5147 -library_names_spec=
5148 -libname_spec='lib$name'
5151 -postuninstall_cmds=
5155 -shlibpath_overrides_runpath=unknown
5157 -dynamic_linker="$host_os ld.so"
5158 -sys_lib_dlsearch_path_spec="/lib /usr/lib"
5159 -sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
5163 - version_type=linux
5164 - library_names_spec='${libname}${release}.so$versuffix $libname.a'
5165 - shlibpath_var=LIBPATH
5167 + case $cc_basename in
5169 + # Kuck and Associates, Inc. (KAI) C++ Compiler
5171 + # KCC will only create a shared library if the output file
5172 + # ends with ".so" (or ".sl" for HP-UX), so rename the library
5173 + # to its proper name (with version) after linking.
5174 + _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'
5176 + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
5177 + _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
5179 + # Archives containing C++ object files must be created using
5180 + # "CC -Bstatic", where "CC" is the KAI C++ compiler.
5181 + _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs'
5183 - # AIX has no versioning support, so we append a major version to the name.
5184 - soname_spec='${libname}${release}.so$major'
5188 + # Rational C++ 2.4.1
5189 + # FIXME: insert proper C++ library support
5190 + _LT_AC_TAGVAR(ld_shlibs, $1)=no
5193 + _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
5194 + _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'
5196 + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
5197 + _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
5199 + # Commands to make compiler produce verbose output that lists
5200 + # what "hidden" libraries, object files and flags are used when
5201 + # linking a shared library.
5203 + # There doesn't appear to be a way to prevent this compiler from
5204 + # explicitly linking system object files so we need to strip them
5205 + # from the output so that they don't get included in the library
5207 + 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'
5210 + if test "$GXX" = yes && test "$with_gnu_ld" = no; then
5211 + _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
5212 + _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'
5214 + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
5215 + _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
5217 + # Commands to make compiler produce verbose output that lists
5218 + # what "hidden" libraries, object files and flags are used when
5219 + # linking a shared library.
5220 + output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
5223 - version_type=linux
5224 - need_lib_prefix=no
5226 - hardcode_into_libs=yes
5227 - if test "$host_cpu" = ia64; then
5228 - # AIX 5 supports IA64
5229 - library_names_spec='${libname}${release}.so$major ${libname}${release}.so$versuffix $libname.so'
5230 - shlibpath_var=LD_LIBRARY_PATH
5232 - # With GCC up to 2.95.x, collect2 would create an import file
5233 - # for dependence libraries. The import file would start with
5234 - # the line `#! .'. This would cause the generated library to
5235 - # depend on `.', always an invalid library. This was fixed in
5236 - # development snapshots of GCC prior to 3.0.
5238 - aix4 | aix4.[[01]] | aix4.[[01]].*)
5239 - if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
5241 - echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
5244 - can_build_shared=no
5245 + # FIXME: insert proper C++ library support
5246 + _LT_AC_TAGVAR(ld_shlibs, $1)=no
5250 - # AIX (on Power*) has no versioning support, so currently we can
5251 - # not hardcode correct soname into executable. Probably we can
5252 - # add versioning support to collect2, so additional links can
5253 - # be useful in future.
5254 - if test "$aix_use_runtimelinking" = yes; then
5255 - # If using run time linking (on AIX 4.2 or later) use lib<name>.so
5256 - # instead of lib<name>.a to let people know that these are not
5257 - # typical AIX shared libraries.
5258 - library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
5260 - # We preserve .a as extension for shared libraries through AIX4.2
5261 - # and later when we are not doing run time linking.
5262 - library_names_spec='${libname}${release}.a $libname.a'
5263 - soname_spec='${libname}${release}.so$major'
5265 - shlibpath_var=LIBPATH
5267 - hardcode_into_libs=yes
5271 - library_names_spec='$libname.ixlibrary $libname.a'
5272 - # Create ${libname}_ixlibrary.a entries in /sys/libs.
5273 - 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'
5277 - library_names_spec='${libname}.so'
5278 - dynamic_linker="$host_os ld.so"
5279 - shlibpath_var=LIBRARY_PATH
5283 - version_type=linux
5285 - library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
5286 - soname_spec='${libname}${release}.so$major'
5287 - finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
5288 - shlibpath_var=LD_LIBRARY_PATH
5289 - sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
5290 - sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
5291 - export_dynamic_flag_spec=-rdynamic
5292 - # the default ld.so.conf also contains /usr/contrib/lib and
5293 - # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
5294 - # libtool to hard-code these into programs
5297 -cygwin* | mingw* | pw32*)
5298 - version_type=windows
5300 - need_lib_prefix=no
5301 - case $GCC,$host_os in
5303 - library_names_spec='$libname.dll.a'
5304 - soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | sed -e 's/[[.]]/-/g'`${versuffix}.dll'
5305 - postinstall_cmds='dlpath=`bash 2>&1 -c '\''. $dir/${file}i;echo \$dlname'\''`~
5306 - dldir=$destdir/`dirname \$dlpath`~
5307 - test -d \$dldir || mkdir -p \$dldir~
5308 - $install_prog .libs/$dlname \$dldir/$dlname'
5309 - postuninstall_cmds='dldll=`bash 2>&1 -c '\''. $file; echo \$dlname'\''`~
5310 - dlpath=$dir/\$dldll~
5314 - library_names_spec='${libname}`echo ${release} | sed -e 's/[[.]]/-/g'`${versuffix}.dll'
5315 - sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | sed -e "s/^libraries://" -e "s/;/ /g" -e "s,=/,/,g"`
5318 - library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll'
5321 - library_names_spec='${libname}`echo ${release} | sed -e 's/[[.]]/-/g'`${versuffix}.dll $libname.lib'
5324 - dynamic_linker='Win32 ld.exe'
5325 - # FIXME: first we should search . and the directory the executable is in
5326 - shlibpath_var=PATH
5329 -darwin* | rhapsody*)
5330 - dynamic_linker="$host_os dyld"
5331 - version_type=darwin
5332 - need_lib_prefix=no
5334 - # FIXME: Relying on posixy $() will cause problems for
5335 - # cross-compilation, but unfortunately the echo tests do not
5336 - # yet detect zsh echo's removal of \ escapes.
5337 - 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)'
5338 - soname_spec='${libname}${release}${major}.$(test .$module = .yes && echo so || echo dylib)'
5339 - shlibpath_overrides_runpath=yes
5340 - shlibpath_var=DYLD_LIBRARY_PATH
5348 - version_type=linux
5349 - need_lib_prefix=no
5351 - library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
5352 - soname_spec='${libname}${release}.so$major'
5353 - shlibpath_var=LD_LIBRARY_PATH
5354 - shlibpath_overrides_runpath=no
5355 - hardcode_into_libs=yes
5356 - dynamic_linker='GNU/FreeBSD ld.so'
5359 + case $cc_basename in
5361 + # Kuck and Associates, Inc. (KAI) C++ Compiler
5363 + # KCC will only create a shared library if the output file
5364 + # ends with ".so" (or ".sl" for HP-UX), so rename the library
5365 + # to its proper name (with version) after linking.
5366 + _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'
5368 + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
5369 + _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
5371 + # Archives containing C++ object files must be created using
5372 + # the KAI C++ compiler.
5373 + _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -o $oldlib $oldobjs'
5376 + # Rational C++ 2.4.1
5377 + # FIXME: insert proper C++ library support
5378 + _LT_AC_TAGVAR(ld_shlibs, $1)=no
5381 + _LT_AC_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
5382 + _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'
5383 + _LT_AC_TAGVAR(archive_expsym_cmds, $1)='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
5384 + echo "-hidden">> $lib.exp~
5385 + $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~
5388 + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
5389 + _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
5391 + # Commands to make compiler produce verbose output that lists
5392 + # what "hidden" libraries, object files and flags are used when
5393 + # linking a shared library.
5395 + # There doesn't appear to be a way to prevent this compiler from
5396 + # explicitly linking system object files so we need to strip them
5397 + # from the output so that they don't get included in the library
5399 + 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'
5402 + if test "$GXX" = yes && test "$with_gnu_ld" = no; then
5403 + _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
5404 + _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'
5406 + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
5407 + _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
5409 + # Commands to make compiler produce verbose output that lists
5410 + # what "hidden" libraries, object files and flags are used when
5411 + # linking a shared library.
5412 + output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
5415 - objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
5416 - version_type=freebsd-$objformat
5417 - case $version_type in
5419 - library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so $libname.so'
5421 - need_lib_prefix=no
5424 - library_names_spec='${libname}${release}.so$versuffix $libname.so$versuffix'
5428 - shlibpath_var=LD_LIBRARY_PATH
5431 - shlibpath_overrides_runpath=yes
5433 + # FIXME: insert proper C++ library support
5434 + _LT_AC_TAGVAR(ld_shlibs, $1)=no
5440 - shlibpath_overrides_runpath=no
5441 - hardcode_into_libs=yes
5443 + # FIXME: insert proper C++ library support
5444 + _LT_AC_TAGVAR(ld_shlibs, $1)=no
5447 + _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
5448 + case $cc_basename in
5450 + # FIXME: insert proper C++ library support
5451 + _LT_AC_TAGVAR(ld_shlibs, $1)=no
5454 + # FIXME: insert proper C++ library support
5455 + _LT_AC_TAGVAR(ld_shlibs, $1)=no
5462 + case $cc_basename in
5465 + # FIXME: insert proper C++ library support
5466 + _LT_AC_TAGVAR(ld_shlibs, $1)=no
5470 + # FIXME: insert proper C++ library support
5471 + _LT_AC_TAGVAR(ld_shlibs, $1)=no
5474 + # FIXME: insert proper C++ library support
5475 + _LT_AC_TAGVAR(ld_shlibs, $1)=no
5480 + case $cc_basename in
5482 + # Sun C++ 4.2, 5.x and Centerline C++
5483 + _LT_AC_TAGVAR(no_undefined_flag, $1)=' -zdefs'
5484 + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -nolib -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
5485 + _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
5486 + $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'
5488 + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
5489 + _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
5491 + solaris2.[0-5] | solaris2.[0-5].*) ;;
5493 + # The C++ compiler is used as linker so we must use $wl
5494 + # flag to pass the commands to the underlying system
5496 + # Supported since Solaris 2.6 (maybe 2.5.1?)
5497 + _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
5500 + _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
5503 - version_type=linux
5504 - need_lib_prefix=no
5506 - library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so${major} ${libname}.so'
5507 - soname_spec='${libname}${release}.so$major'
5508 - shlibpath_var=LD_LIBRARY_PATH
5509 - hardcode_into_libs=yes
5511 + # Commands to make compiler produce verbose output that lists
5512 + # what "hidden" libraries, object files and flags are used when
5513 + # linking a shared library.
5515 + # There doesn't appear to be a way to prevent this compiler from
5516 + # explicitly linking system object files so we need to strip them
5517 + # from the output so that they don't get included in the library
5519 + 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'
5521 + # Archives containing C++ object files must be created using
5522 + # "CC -xar", where "CC" is the Sun C++ compiler. This is
5523 + # necessary to make sure instantiated templates are included
5525 + _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs'
5528 + # Green Hills C++ Compiler
5529 + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
5531 -hpux9* | hpux10* | hpux11*)
5532 - # Give a soname corresponding to the major version so that dld.sl refuses to
5533 - # link against other versions.
5534 - dynamic_linker="$host_os dld.sl"
5535 - version_type=sunos
5536 - need_lib_prefix=no
5538 - shlibpath_var=SHLIB_PATH
5539 - shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
5540 - library_names_spec='${libname}${release}.sl$versuffix ${libname}${release}.sl$major $libname.sl'
5541 - soname_spec='${libname}${release}.sl$major'
5542 - # HP-UX runs *really* slowly unless shared libraries are mode 555.
5543 - postinstall_cmds='chmod 555 $lib'
5545 + # The C++ compiler must be used to create the archive.
5546 + _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
5549 + # GNU C++ compiler with Solaris linker
5550 + if test "$GXX" = yes && test "$with_gnu_ld" = no; then
5551 + _LT_AC_TAGVAR(no_undefined_flag, $1)=' ${wl}-z ${wl}defs'
5552 + if $CC --version | grep -v '^2\.7' > /dev/null; then
5553 + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
5554 + _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
5555 + $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
5557 + # Commands to make compiler produce verbose output that lists
5558 + # what "hidden" libraries, object files and flags are used when
5559 + # linking a shared library.
5560 + output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
5562 + # g++ 2.7 appears to require `-G' NOT `-shared' on this
5564 + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
5565 + _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
5566 + $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
5568 + # Commands to make compiler produce verbose output that lists
5569 + # what "hidden" libraries, object files and flags are used when
5570 + # linking a shared library.
5571 + output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
5574 -irix5* | irix6* | nonstopux*)
5576 - nonstopux*) version_type=nonstopux ;;
5577 - *) version_type=irix ;;
5579 - need_lib_prefix=no
5581 - soname_spec='${libname}${release}.so$major'
5582 - library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so $libname.so'
5584 - irix5* | nonstopux*)
5585 - libsuff= shlibsuff=
5586 + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $wl$libdir'
5592 - case $LD in # libtool.m4 will add one of these switches to LD
5593 - *-32|*"-32 ") libsuff= shlibsuff= libmagic=32-bit;;
5594 - *-n32|*"-n32 ") libsuff=32 shlibsuff=N32 libmagic=N32;;
5595 - *-64|*"-64 ") libsuff=64 shlibsuff=64 libmagic=64-bit;;
5596 - *) libsuff= shlibsuff= libmagic=never-match;;
5597 + sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[[78]]* | unixware7*)
5598 + _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
5601 + case $cc_basename in
5603 + # NonStop-UX NCC 3.20
5604 + # FIXME: insert proper C++ library support
5605 + _LT_AC_TAGVAR(ld_shlibs, $1)=no
5608 + # FIXME: insert proper C++ library support
5609 + _LT_AC_TAGVAR(ld_shlibs, $1)=no
5614 - shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
5615 - shlibpath_overrides_runpath=no
5616 - sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
5617 - sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
5620 -# No shared lib support for Linux oldld, aout, or coff.
5621 -linux-gnuoldld* | linux-gnuaout* | linux-gnucoff*)
5625 + # FIXME: insert proper C++ library support
5626 + _LT_AC_TAGVAR(ld_shlibs, $1)=no
5629 + # FIXME: insert proper C++ library support
5630 + _LT_AC_TAGVAR(ld_shlibs, $1)=no
5633 +AC_MSG_RESULT([$_LT_AC_TAGVAR(ld_shlibs, $1)])
5634 +test "$_LT_AC_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no
5636 -# This must be Linux ELF.
5638 - version_type=linux
5639 - need_lib_prefix=no
5641 - library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
5642 - soname_spec='${libname}${release}.so$major'
5643 - finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
5644 - shlibpath_var=LD_LIBRARY_PATH
5645 - shlibpath_overrides_runpath=no
5646 - # This implies no fast_install, which is unacceptable.
5647 - # Some rework will be needed to allow for fast_install
5648 - # before this can be enabled.
5649 - hardcode_into_libs=yes
5650 +_LT_AC_TAGVAR(GCC, $1)="$GXX"
5651 +_LT_AC_TAGVAR(LD, $1)="$LD"
5653 - # We used to test for /lib/ld.so.1 and disable shared libraries on
5654 - # powerpc, because MkLinux only supported shared libraries with the
5655 - # GNU dynamic linker. Since this was broken with cross compilers,
5656 - # most powerpc-linux boxes support dynamic linking these days and
5657 - # people can always --disable-shared, the test was removed, and we
5658 - # assume the GNU/Linux dynamic linker is in use.
5659 - dynamic_linker='GNU/Linux ld.so'
5661 +AC_LIBTOOL_POSTDEP_PREDEP($1)
5662 +AC_LIBTOOL_PROG_COMPILER_PIC($1)
5663 +AC_LIBTOOL_PROG_CC_C_O($1)
5664 +AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1)
5665 +AC_LIBTOOL_PROG_LD_SHLIBS($1)
5666 +AC_LIBTOOL_SYS_DYNAMIC_LINKER($1)
5667 +AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1)
5668 +AC_LIBTOOL_SYS_LIB_STRIP
5669 +AC_LIBTOOL_DLOPEN_SELF($1)
5671 +AC_LIBTOOL_CONFIG($1)
5678 +with_gnu_ldcxx=$with_gnu_ld
5679 +with_gnu_ld=$lt_save_with_gnu_ld
5680 +lt_cv_path_LDCXX=$lt_cv_path_LD
5681 +lt_cv_path_LD=$lt_save_path_LD
5682 +lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
5683 +lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
5684 +])# AC_LIBTOOL_LANG_CXX_CONFIG
5687 - version_type=sunos
5688 - need_lib_prefix=no
5690 - if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
5691 - library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
5692 - finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
5693 - dynamic_linker='NetBSD (a.out) ld.so'
5695 - library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so ${libname}.so'
5696 - soname_spec='${libname}${release}.so$major'
5697 - dynamic_linker='NetBSD ld.elf_so'
5699 - shlibpath_var=LD_LIBRARY_PATH
5700 - shlibpath_overrides_runpath=yes
5701 - hardcode_into_libs=yes
5703 +# AC_LIBTOOL_POSTDEP_PREDEP([TAGNAME])
5704 +# ------------------------
5705 +# Figure out "hidden" library dependencies from verbose
5706 +# compiler output when linking a shared library.
5707 +# Parse the compiler output and extract the necessary
5708 +# objects, libraries and library flags.
5709 +AC_DEFUN([AC_LIBTOOL_POSTDEP_PREDEP],[
5710 +dnl we can't use the lt_simple_compile_test_code here,
5711 +dnl because it contains code intended for an executable,
5712 +dnl not a library. It's possible we should let each
5713 +dnl tag define a new lt_????_link_test_code variable,
5714 +dnl but it's only used here...
5715 +ifelse([$1],[],[cat > conftest.$ac_ext <<EOF
5717 +void foo (void) { a = 0; }
5719 +],[$1],[CXX],[cat > conftest.$ac_ext <<EOF
5723 + Foo (void) { a = 0; }
5728 +],[$1],[F77],[cat > conftest.$ac_ext <<EOF
5736 +],[$1],[GCJ],[cat > conftest.$ac_ext <<EOF
5739 + public void bar (void) {
5745 +dnl Parse the compiler output and extract the necessary
5746 +dnl objects, libraries and library flags.
5747 +if AC_TRY_EVAL(ac_compile); then
5748 + # Parse the compiler output and extract the necessary
5749 + # objects, libraries and library flags.
5751 + # Sentinel used to keep track of whether or not we are before
5752 + # the conftest object file.
5753 + pre_test_object_deps_done=no
5755 + # The `*' in the case matches for architectures that use `case' in
5756 + # $output_verbose_cmd can trigger glob expansion during the loop
5757 + # eval without this substitution.
5758 + output_verbose_link_cmd="`$echo \"X$output_verbose_link_cmd\" | $Xsed -e \"$no_glob_subst\"`"
5760 + for p in `eval $output_verbose_link_cmd`; do
5764 + # Some compilers place space between "-{L,R}" and the path.
5765 + # Remove the space.
5766 + if test $p = "-L" \
5767 + || test $p = "-R"; then
5774 + if test "$pre_test_object_deps_done" = no; then
5777 + # Internal compiler library paths should come after those
5778 + # provided the user. The postdeps already come after the
5779 + # user supplied libs so there is no need to process them.
5780 + if test -z "$_LT_AC_TAGVAR(compiler_lib_search_path, $1)"; then
5781 + _LT_AC_TAGVAR(compiler_lib_search_path, $1)="${prev}${p}"
5783 + _LT_AC_TAGVAR(compiler_lib_search_path, $1)="${_LT_AC_TAGVAR(compiler_lib_search_path, $1)} ${prev}${p}"
5786 + # The "-l" case would never come before the object being
5787 + # linked, so don't bother handling this case.
5790 + if test -z "$_LT_AC_TAGVAR(postdeps, $1)"; then
5791 + _LT_AC_TAGVAR(postdeps, $1)="${prev}${p}"
5793 + _LT_AC_TAGVAR(postdeps, $1)="${_LT_AC_TAGVAR(postdeps, $1)} ${prev}${p}"
5799 + # This assumes that the test object file only shows up
5800 + # once in the compiler output.
5801 + if test "$p" = "conftest.$objext"; then
5802 + pre_test_object_deps_done=yes
5806 + if test "$pre_test_object_deps_done" = no; then
5807 + if test -z "$_LT_AC_TAGVAR(predep_objects, $1)"; then
5808 + _LT_AC_TAGVAR(predep_objects, $1)="$p"
5810 + _LT_AC_TAGVAR(predep_objects, $1)="$_LT_AC_TAGVAR(predep_objects, $1) $p"
5813 + if test -z "$_LT_AC_TAGVAR(postdep_objects, $1)"; then
5814 + _LT_AC_TAGVAR(postdep_objects, $1)="$p"
5816 + _LT_AC_TAGVAR(postdep_objects, $1)="$_LT_AC_TAGVAR(postdep_objects, $1) $p"
5822 - version_type=linux
5823 - library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
5824 - shlibpath_var=LD_LIBRARY_PATH
5825 - shlibpath_overrides_runpath=yes
5827 + *) ;; # Ignore the rest.
5830 - version_type=sunos
5831 - need_lib_prefix=no
5833 - if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5834 - case "$host_os" in
5835 - openbsd2.[[89]] | openbsd2.[[89]].*)
5836 - shlibpath_overrides_runpath=no
5839 - shlibpath_overrides_runpath=yes
5843 - shlibpath_overrides_runpath=yes
5845 - library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
5846 - finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
5847 - shlibpath_var=LD_LIBRARY_PATH
5851 - libname_spec='$name'
5852 - need_lib_prefix=no
5853 - library_names_spec='$libname.dll $libname.a'
5854 - dynamic_linker='OS/2 ld.exe'
5855 - shlibpath_var=LIBPATH
5858 -osf3* | osf4* | osf5*)
5861 - need_lib_prefix=no
5862 - soname_spec='${libname}${release}.so$major'
5863 - library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
5864 - shlibpath_var=LD_LIBRARY_PATH
5865 - sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
5866 - sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
5867 - hardcode_into_libs=yes
5873 - soname_spec='${libname}${release}.so$major'
5874 - library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
5875 - shlibpath_var=LD_LIBRARY_PATH
5880 + echo "libtool.m4: error: problem compiling $1 test program"
5884 - version_type=linux
5885 - need_lib_prefix=no
5887 - library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
5888 - soname_spec='${libname}${release}.so$major'
5889 - shlibpath_var=LD_LIBRARY_PATH
5890 - shlibpath_overrides_runpath=yes
5891 - hardcode_into_libs=yes
5892 - # ldd complains unless libraries are executable
5893 - postinstall_cmds='chmod +x $lib'
5895 +$rm -f confest.$objext
5898 - version_type=sunos
5899 - library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
5900 - finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
5901 - shlibpath_var=LD_LIBRARY_PATH
5902 - shlibpath_overrides_runpath=yes
5903 - if test "$with_gnu_ld" = yes; then
5904 - need_lib_prefix=no
5908 +case " $_LT_AC_TAGVAR(postdeps, $1) " in
5909 +*" -lc "*) _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no ;;
5911 +])# AC_LIBTOOL_POSTDEP_PREDEP
5913 -sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
5914 - version_type=linux
5915 - library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
5916 - soname_spec='${libname}${release}.so$major'
5917 - shlibpath_var=LD_LIBRARY_PATH
5918 - case $host_vendor in
5920 - shlibpath_overrides_runpath=no
5921 - need_lib_prefix=no
5922 - export_dynamic_flag_spec='${wl}-Blargedynsym'
5923 - runpath_var=LD_RUN_PATH
5926 - need_lib_prefix=no
5929 - need_lib_prefix=no
5931 - shlibpath_overrides_runpath=no
5932 - sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
5936 +# AC_LIBTOOL_LANG_F77_CONFIG
5937 +# ------------------------
5938 +# Ensure that the configuration vars for the C compiler are
5939 +# suitably defined. Those variables are subsequently used by
5940 +# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
5941 +AC_DEFUN([AC_LIBTOOL_LANG_F77_CONFIG], [_LT_AC_LANG_F77_CONFIG(F77)])
5942 +AC_DEFUN([_LT_AC_LANG_F77_CONFIG],
5943 +[AC_REQUIRE([AC_PROG_F77])
5944 +AC_LANG_PUSH(Fortran 77)
5946 +_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
5947 +_LT_AC_TAGVAR(allow_undefined_flag, $1)=
5948 +_LT_AC_TAGVAR(always_export_symbols, $1)=no
5949 +_LT_AC_TAGVAR(archive_expsym_cmds, $1)=
5950 +_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)=
5951 +_LT_AC_TAGVAR(hardcode_direct, $1)=no
5952 +_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=
5953 +_LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
5954 +_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
5955 +_LT_AC_TAGVAR(hardcode_minus_L, $1)=no
5956 +_LT_AC_TAGVAR(hardcode_automatic, $1)=no
5957 +_LT_AC_TAGVAR(module_cmds, $1)=
5958 +_LT_AC_TAGVAR(module_expsym_cmds, $1)=
5959 +_LT_AC_TAGVAR(link_all_deplibs, $1)=unknown
5960 +_LT_AC_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
5961 +_LT_AC_TAGVAR(no_undefined_flag, $1)=
5962 +_LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
5963 +_LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=no
5965 +# Source file extension for f77 test sources.
5968 +# Object file extension for compiled f77 test sources.
5970 +_LT_AC_TAGVAR(objext, $1)=$objext
5973 - version_type=linux
5974 - library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
5975 - soname_spec='${libname}${release}.so$major'
5976 - shlibpath_var=LD_LIBRARY_PATH
5978 +# Code to be used in simple compile tests
5979 +lt_simple_compile_test_code=" subroutine t\n return\n end\n"
5982 - version_type=linux
5983 - need_lib_prefix=no
5985 - library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
5986 - soname_spec='${libname}${release}.so$major'
5987 - shlibpath_var=LD_LIBRARY_PATH
5989 +# Code to be used in simple link tests
5990 +lt_simple_link_test_code=" program t\n end\n"
5993 - if test -d /usr/nec ;then
5994 - version_type=linux
5995 - library_names_spec='$libname.so.$versuffix $libname.so.$major $libname.so'
5996 - soname_spec='$libname.so.$major'
5997 - shlibpath_var=LD_LIBRARY_PATH
6000 +# ltmain only uses $CC for tagged configurations so make sure $CC is set.
6001 +_LT_AC_SYS_COMPILER
6007 -AC_MSG_RESULT([$dynamic_linker])
6008 -test "$dynamic_linker" = no && can_build_shared=no
6009 +# Allow CC to be a program name with arguments.
6013 +_LT_AC_TAGVAR(compiler, $1)=$CC
6014 +cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
6016 -# Report the final consequences.
6017 AC_MSG_CHECKING([if libtool supports shared libraries])
6018 AC_MSG_RESULT([$can_build_shared])
6020 @@ -2481,125 +4662,206 @@
6021 postinstall_cmds='$RANLIB $lib'
6025 + test "$enable_shared" = yes && enable_static=no
6028 +AC_MSG_RESULT([$enable_shared])
6030 +AC_MSG_CHECKING([whether to build static libraries])
6031 +# Make sure either enable_shared or enable_static is yes.
6032 +test "$enable_shared" = yes || enable_static=yes
6033 +AC_MSG_RESULT([$enable_static])
6035 +test "$_LT_AC_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no
6037 +_LT_AC_TAGVAR(GCC, $1)="$G77"
6038 +_LT_AC_TAGVAR(LD, $1)="$LD"
6040 +AC_LIBTOOL_PROG_COMPILER_PIC($1)
6041 +AC_LIBTOOL_PROG_CC_C_O($1)
6042 +AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1)
6043 +AC_LIBTOOL_PROG_LD_SHLIBS($1)
6044 +AC_LIBTOOL_SYS_DYNAMIC_LINKER($1)
6045 +AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1)
6046 +AC_LIBTOOL_SYS_LIB_STRIP
6049 +AC_LIBTOOL_CONFIG($1)
6053 +])# AC_LIBTOOL_LANG_F77_CONFIG
6056 +# AC_LIBTOOL_LANG_GCJ_CONFIG
6057 +# --------------------------
6058 +# Ensure that the configuration vars for the C compiler are
6059 +# suitably defined. Those variables are subsequently used by
6060 +# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
6061 +AC_DEFUN([AC_LIBTOOL_LANG_GCJ_CONFIG], [_LT_AC_LANG_GCJ_CONFIG(GCJ)])
6062 +AC_DEFUN([_LT_AC_LANG_GCJ_CONFIG],
6065 +# Source file extension for Java test sources.
6068 +# Object file extension for compiled Java test sources.
6070 +_LT_AC_TAGVAR(objext, $1)=$objext
6072 +# Code to be used in simple compile tests
6073 +lt_simple_compile_test_code="class foo {}\n"
6075 +# Code to be used in simple link tests
6076 +lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
6078 +# ltmain only uses $CC for tagged configurations so make sure $CC is set.
6079 +_LT_AC_SYS_COMPILER
6081 +# Allow CC to be a program name with arguments.
6085 +_LT_AC_TAGVAR(compiler, $1)=$CC
6087 +# GCJ did not exist at the time GCC didn't implicitly link libc in.
6088 +_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
6090 +AC_LIBTOOL_PROG_COMPILER_NO_RTTI($1)
6091 +AC_LIBTOOL_PROG_COMPILER_PIC($1)
6092 +AC_LIBTOOL_PROG_CC_C_O($1)
6093 +AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1)
6094 +AC_LIBTOOL_PROG_LD_SHLIBS($1)
6095 +AC_LIBTOOL_SYS_DYNAMIC_LINKER($1)
6096 +AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1)
6097 +AC_LIBTOOL_SYS_LIB_STRIP
6098 +AC_LIBTOOL_DLOPEN_SELF($1)
6100 +AC_LIBTOOL_CONFIG($1)
6104 +])# AC_LIBTOOL_LANG_GCJ_CONFIG
6107 +# AC_LIBTOOL_LANG_RC_CONFIG
6108 +# --------------------------
6109 +# Ensure that the configuration vars for the Windows resource compiler are
6110 +# suitably defined. Those variables are subsequently used by
6111 +# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
6112 +AC_DEFUN([AC_LIBTOOL_LANG_RC_CONFIG], [_LT_AC_LANG_RC_CONFIG(RC)])
6113 +AC_DEFUN([_LT_AC_LANG_RC_CONFIG],
6116 +# Source file extension for RC test sources.
6119 +# Object file extension for compiled RC test sources.
6121 +_LT_AC_TAGVAR(objext, $1)=$objext
6124 - if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
6125 - test "$enable_shared" = yes && enable_static=no
6129 -AC_MSG_RESULT([$enable_shared])
6130 +# Code to be used in simple compile tests
6131 +lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
6133 -AC_MSG_CHECKING([whether to build static libraries])
6134 -# Make sure either enable_shared or enable_static is yes.
6135 -test "$enable_shared" = yes || enable_static=yes
6136 -AC_MSG_RESULT([$enable_static])
6137 +# Code to be used in simple link tests
6138 +lt_simple_link_test_code="$lt_simple_compile_test_code"
6140 -if test "$hardcode_action" = relink; then
6141 - # Fast installation is not supported
6142 - enable_fast_install=no
6143 -elif test "$shlibpath_overrides_runpath" = yes ||
6144 - test "$enable_shared" = no; then
6145 - # Fast installation is not necessary
6146 - enable_fast_install=needless
6148 +# ltmain only uses $CC for tagged configurations so make sure $CC is set.
6149 +_LT_AC_SYS_COMPILER
6151 -variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
6152 -if test "$GCC" = yes; then
6153 - variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
6155 +# Allow CC to be a program name with arguments.
6159 +_LT_AC_TAGVAR(compiler, $1)=$CC
6160 +_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes
6162 -AC_LIBTOOL_DLOPEN_SELF
6163 +AC_LIBTOOL_CONFIG($1)
6167 +])# AC_LIBTOOL_LANG_RC_CONFIG
6169 -if test "$enable_shared" = yes && test "$GCC" = yes; then
6170 - case $archive_cmds in
6172 - # FIXME: we may have to deal with multi-command sequences.
6175 - # Test whether the compiler implicitly links with -lc since on some
6176 - # systems, -lgcc has to come before -lc. If gcc already passes -lc
6177 - # to ld, don't add -lc before -lgcc.
6178 - AC_MSG_CHECKING([whether -lc should be explicitly linked in])
6179 - AC_CACHE_VAL([lt_cv_archive_cmds_need_lc],
6181 - echo 'static int dummy;' > conftest.$ac_ext
6183 - if AC_TRY_EVAL(ac_compile); then
6186 - libobjs=conftest.$ac_objext
6188 - wl=$lt_cv_prog_cc_wl
6194 - save_allow_undefined_flag=$allow_undefined_flag
6195 - allow_undefined_flag=
6196 - if AC_TRY_EVAL(archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1)
6198 - lt_cv_archive_cmds_need_lc=no
6200 - lt_cv_archive_cmds_need_lc=yes
6202 - allow_undefined_flag=$save_allow_undefined_flag
6204 - cat conftest.err 1>&5
6206 - AC_MSG_RESULT([$lt_cv_archive_cmds_need_lc])
6210 -need_lc=${lt_cv_archive_cmds_need_lc-yes}
6212 -# The second clause should only fire when bootstrapping the
6213 +# AC_LIBTOOL_CONFIG([TAGNAME])
6214 +# ----------------------------
6215 +# If TAGNAME is not passed, then create an initial libtool script
6216 +# with a default configuration from the untagged config vars. Otherwise
6217 +# add code to config.status for appending the configuration named by
6218 +# TAGNAME from the matching tagged config vars.
6219 +AC_DEFUN([AC_LIBTOOL_CONFIG],
6220 +[# The else clause should only fire when bootstrapping the
6221 # libtool distribution, otherwise you forgot to ship ltmain.sh
6222 # with your package, and you will get complaints that there are
6223 # no rules to generate ltmain.sh.
6224 if test -f "$ltmain"; then
6227 - # If there is no Makefile yet, we rely on a make rule to execute
6228 - # `config.status --recheck' to rerun these tests and create the
6229 - # libtool script then.
6230 - test -f Makefile && make "$ltmain"
6233 -if test -f "$ltmain"; then
6234 - trap "$rm \"${ofile}T\"; exit 1" 1 2 15
6235 - $rm -f "${ofile}T"
6237 - echo creating $ofile
6239 + # See if we are running on zsh, and set the options which allow our commands through
6240 + # without removal of \ escapes.
6241 + if test -n "${ZSH_VERSION+set}" ; then
6242 + setopt NO_GLOB_SUBST
6244 # Now quote all the things that may contain metacharacters while being
6245 # careful not to overquote the AC_SUBSTed values. We take copies of the
6246 # variables and quote the copies for generation of the libtool script.
6247 - for var in echo old_CC old_CFLAGS SED \
6248 - AR AR_FLAGS CC LD LN_S NM SHELL \
6249 - reload_flag reload_cmds wl \
6250 - pic_flag link_static_flag no_builtin_flag export_dynamic_flag_spec \
6251 - thread_safe_flag_spec whole_archive_flag_spec libname_spec \
6252 - library_names_spec soname_spec \
6253 - RANLIB old_archive_cmds old_archive_from_new_cmds old_postinstall_cmds \
6254 - old_postuninstall_cmds archive_cmds archive_expsym_cmds postinstall_cmds \
6255 - postuninstall_cmds extract_expsyms_cmds old_archive_from_expsyms_cmds \
6256 - old_striplib striplib file_magic_cmd export_symbols_cmds \
6257 - deplibs_check_method allow_undefined_flag no_undefined_flag \
6258 - finish_cmds finish_eval global_symbol_pipe global_symbol_to_cdecl \
6259 - global_symbol_to_c_name_address \
6260 - hardcode_libdir_flag_spec hardcode_libdir_separator \
6261 + for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
6263 + libname_spec library_names_spec soname_spec extract_expsyms_cmds \
6264 + old_striplib striplib file_magic_cmd finish_cmds finish_eval \
6265 + deplibs_check_method reload_flag reload_cmds need_locks \
6266 + lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
6267 + lt_cv_sys_global_symbol_to_c_name_address \
6268 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
6269 - compiler_c_o compiler_o_lo need_locks exclude_expsyms include_expsyms; do
6270 + old_postinstall_cmds old_postuninstall_cmds \
6271 + _LT_AC_TAGVAR(compiler, $1) \
6272 + _LT_AC_TAGVAR(CC, $1) \
6273 + _LT_AC_TAGVAR(LD, $1) \
6274 + _LT_AC_TAGVAR(lt_prog_compiler_wl, $1) \
6275 + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1) \
6276 + _LT_AC_TAGVAR(lt_prog_compiler_static, $1) \
6277 + _LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1) \
6278 + _LT_AC_TAGVAR(export_dynamic_flag_spec, $1) \
6279 + _LT_AC_TAGVAR(thread_safe_flag_spec, $1) \
6280 + _LT_AC_TAGVAR(whole_archive_flag_spec, $1) \
6281 + _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1) \
6282 + _LT_AC_TAGVAR(old_archive_cmds, $1) \
6283 + _LT_AC_TAGVAR(old_archive_from_new_cmds, $1) \
6284 + _LT_AC_TAGVAR(predep_objects, $1) \
6285 + _LT_AC_TAGVAR(postdep_objects, $1) \
6286 + _LT_AC_TAGVAR(predeps, $1) \
6287 + _LT_AC_TAGVAR(postdeps, $1) \
6288 + _LT_AC_TAGVAR(compiler_lib_search_path, $1) \
6289 + _LT_AC_TAGVAR(archive_cmds, $1) \
6290 + _LT_AC_TAGVAR(archive_expsym_cmds, $1) \
6291 + _LT_AC_TAGVAR(postinstall_cmds, $1) \
6292 + _LT_AC_TAGVAR(postuninstall_cmds, $1) \
6293 + _LT_AC_TAGVAR(old_archive_from_expsyms_cmds, $1) \
6294 + _LT_AC_TAGVAR(allow_undefined_flag, $1) \
6295 + _LT_AC_TAGVAR(no_undefined_flag, $1) \
6296 + _LT_AC_TAGVAR(export_symbols_cmds, $1) \
6297 + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1) \
6298 + _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1) \
6299 + _LT_AC_TAGVAR(hardcode_libdir_separator, $1) \
6300 + _LT_AC_TAGVAR(hardcode_automatic, $1) \
6301 + _LT_AC_TAGVAR(module_cmds, $1) \
6302 + _LT_AC_TAGVAR(module_expsym_cmds, $1) \
6303 + _LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1) \
6304 + _LT_AC_TAGVAR(exclude_expsyms, $1) \
6305 + _LT_AC_TAGVAR(include_expsyms, $1); do
6308 - reload_cmds | old_archive_cmds | old_archive_from_new_cmds | \
6309 - old_postinstall_cmds | old_postuninstall_cmds | \
6310 - export_symbols_cmds | archive_cmds | archive_expsym_cmds | \
6311 - extract_expsyms_cmds | old_archive_from_expsyms_cmds | \
6312 + _LT_AC_TAGVAR(old_archive_cmds, $1) | \
6313 + _LT_AC_TAGVAR(old_archive_from_new_cmds, $1) | \
6314 + _LT_AC_TAGVAR(archive_cmds, $1) | \
6315 + _LT_AC_TAGVAR(archive_expsym_cmds, $1) | \
6316 + _LT_AC_TAGVAR(module_cmds, $1) | \
6317 + _LT_AC_TAGVAR(module_expsym_cmds, $1) | \
6318 + _LT_AC_TAGVAR(old_archive_from_expsyms_cmds, $1) | \
6319 + _LT_AC_TAGVAR(export_symbols_cmds, $1) | \
6320 + extract_expsyms_cmds | reload_cmds | finish_cmds | \
6321 postinstall_cmds | postuninstall_cmds | \
6322 - finish_cmds | sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
6323 + old_postinstall_cmds | old_postuninstall_cmds | \
6324 + sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
6325 # Double-quote double-evaled strings.
6326 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
6328 @@ -2609,14 +4871,31 @@
6332 - cat <<__EOF__ > "${ofile}T"
6335 + *'\[$]0 --fallback-echo"')
6336 + lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\[$]0 --fallback-echo"[$]/[$]0 --fallback-echo"/'`
6340 -# `$echo "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
6342 + [cfgfile="${ofile}T"
6343 + trap "$rm \"$cfgfile\"; exit 1" 1 2 15
6345 + AC_MSG_NOTICE([creating $ofile])],
6346 + [cfgfile="$ofile"])
6348 + cat <<__EOF__ >> "$cfgfile"
6352 +# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
6353 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
6354 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
6356 -# Copyright (C) 1996-2000 Free Software Foundation, Inc.
6357 +# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
6358 +# Free Software Foundation, Inc.
6360 +# This file is part of GNU Libtool:
6361 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
6363 # This program is free software; you can redistribute it and/or modify
6364 @@ -2638,17 +4917,21 @@
6365 # configuration script generated by Autoconf, you may include it under
6366 # the same distribution terms that you use for the rest of that program.
6368 -# A sed that does not truncate output.
6369 +# A sed program that does not truncate output.
6372 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
6373 -Xsed="${SED} -e s/^X//"
6374 +Xsed="$SED -e s/^X//"
6376 # The HP-UX ksh and POSIX shell print the target directory to stdout
6378 if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
6380 -# ### BEGIN LIBTOOL CONFIG
6381 +# The names of the tagged configurations supported by this script.
6384 +# ### BEGIN LIBTOOL CONFIG],
6385 +[# ### BEGIN LIBTOOL TAG CONFIG: $tagname])
6387 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
6389 @@ -2662,7 +4945,10 @@
6390 build_old_libs=$enable_static
6392 # Whether or not to add -lc for building shared libraries.
6393 -build_libtool_need_lc=$need_lc
6394 +build_libtool_need_lc=$_LT_AC_TAGVAR(archive_cmds_need_lc, $1)
6396 +# Whether or not to disallow shared libs when runtime libs are static
6397 +allow_libtool_libs_with_static_runtimes=$_LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)
6399 # Whether or not to optimize for fast installation.
6400 fast_install=$enable_fast_install
6401 @@ -2678,14 +4964,20 @@
6403 AR_FLAGS=$lt_AR_FLAGS
6405 -# The default C compiler.
6410 +# A language-specific compiler.
6411 +CC=$lt_[]_LT_AC_TAGVAR(compiler, $1)
6413 # Is the compiler the GNU C compiler?
6415 +with_gcc=$_LT_AC_TAGVAR(GCC, $1)
6420 # The linker used to build libraries.
6422 +LD=$lt_[]_LT_AC_TAGVAR(LD, $1)
6424 # Whether we need hard or soft links.
6426 @@ -2694,7 +4986,7 @@
6429 # A symbol stripping program
6433 # Used to examine libraries when file_magic_cmd begins "file"
6434 MAGIC_CMD=$MAGIC_CMD
6435 @@ -2716,7 +5008,7 @@
6436 reload_cmds=$lt_reload_cmds
6438 # How to pass a linker flag through the compiler.
6440 +wl=$lt_[]_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)
6442 # Object file suffix (normally "o").
6444 @@ -2724,18 +5016,21 @@
6445 # Old archive suffix (normally "a").
6448 +# Shared library suffix (normally ".so").
6449 +shrext_cmds='$shrext_cmds'
6451 # Executable file suffix (normally "").
6454 # Additional compiler flags for building library objects.
6455 -pic_flag=$lt_pic_flag
6456 +pic_flag=$lt_[]_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)
6459 -# Does compiler simultaneously support -c and -o options?
6460 -compiler_c_o=$lt_compiler_c_o
6461 +# What is the maximum length of a command?
6462 +max_cmd_len=$lt_cv_sys_max_cmd_len
6464 -# Can we write directly to a .lo ?
6465 -compiler_o_lo=$lt_compiler_o_lo
6466 +# Does compiler simultaneously support -c and -o options?
6467 +compiler_c_o=$lt_[]_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)
6469 # Must we lock files when doing compilation ?
6470 need_locks=$lt_need_locks
6471 @@ -2756,946 +5051,1770 @@
6472 dlopen_self_static=$enable_dlopen_self_static
6474 # Compiler flag to prevent dynamic linking.
6475 -link_static_flag=$lt_link_static_flag
6476 +link_static_flag=$lt_[]_LT_AC_TAGVAR(lt_prog_compiler_static, $1)
6478 # Compiler flag to turn off builtin functions.
6479 -no_builtin_flag=$lt_no_builtin_flag
6480 +no_builtin_flag=$lt_[]_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)
6482 # Compiler flag to allow reflexive dlopens.
6483 -export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
6484 +export_dynamic_flag_spec=$lt_[]_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)
6486 # Compiler flag to generate shared objects directly from archives.
6487 -whole_archive_flag_spec=$lt_whole_archive_flag_spec
6488 +whole_archive_flag_spec=$lt_[]_LT_AC_TAGVAR(whole_archive_flag_spec, $1)
6490 # Compiler flag to generate thread-safe objects.
6491 -thread_safe_flag_spec=$lt_thread_safe_flag_spec
6492 +thread_safe_flag_spec=$lt_[]_LT_AC_TAGVAR(thread_safe_flag_spec, $1)
6494 +# Library versioning type.
6495 +version_type=$version_type
6497 +# Format of library name prefix.
6498 +libname_spec=$lt_libname_spec
6500 +# List of archive names. First name is the real one, the rest are links.
6501 +# The last name is the one that the linker finds with -lNAME.
6502 +library_names_spec=$lt_library_names_spec
6504 +# The coded name of the library, if different from the real name.
6505 +soname_spec=$lt_soname_spec
6507 +# Commands used to build and install an old-style archive.
6509 +old_archive_cmds=$lt_[]_LT_AC_TAGVAR(old_archive_cmds, $1)
6510 +old_postinstall_cmds=$lt_old_postinstall_cmds
6511 +old_postuninstall_cmds=$lt_old_postuninstall_cmds
6513 +# Create an old-style archive from a shared archive.
6514 +old_archive_from_new_cmds=$lt_[]_LT_AC_TAGVAR(old_archive_from_new_cmds, $1)
6516 +# Create a temporary old-style archive to link instead of a shared archive.
6517 +old_archive_from_expsyms_cmds=$lt_[]_LT_AC_TAGVAR(old_archive_from_expsyms_cmds, $1)
6519 +# Commands used to build and install a shared archive.
6520 +archive_cmds=$lt_[]_LT_AC_TAGVAR(archive_cmds, $1)
6521 +archive_expsym_cmds=$lt_[]_LT_AC_TAGVAR(archive_expsym_cmds, $1)
6522 +postinstall_cmds=$lt_postinstall_cmds
6523 +postuninstall_cmds=$lt_postuninstall_cmds
6525 +# Commands used to build a loadable module (assumed same as above if empty)
6526 +module_cmds=$lt_[]_LT_AC_TAGVAR(module_cmds, $1)
6527 +module_expsym_cmds=$lt_[]_LT_AC_TAGVAR(module_expsym_cmds, $1)
6529 +# Commands to strip libraries.
6530 +old_striplib=$lt_old_striplib
6531 +striplib=$lt_striplib
6533 +# Dependencies to place before the objects being linked to create a
6535 +predep_objects=$lt_[]_LT_AC_TAGVAR(predep_objects, $1)
6537 +# Dependencies to place after the objects being linked to create a
6539 +postdep_objects=$lt_[]_LT_AC_TAGVAR(postdep_objects, $1)
6541 +# Dependencies to place before the objects being linked to create a
6543 +predeps=$lt_[]_LT_AC_TAGVAR(predeps, $1)
6545 +# Dependencies to place after the objects being linked to create a
6547 +postdeps=$lt_[]_LT_AC_TAGVAR(postdeps, $1)
6549 +# The library search path used internally by the compiler when linking
6550 +# a shared library.
6551 +compiler_lib_search_path=$lt_[]_LT_AC_TAGVAR(compiler_lib_search_path, $1)
6553 +# Method to check whether dependent libraries are shared objects.
6554 +deplibs_check_method=$lt_deplibs_check_method
6556 +# Command to use when deplibs_check_method == file_magic.
6557 +file_magic_cmd=$lt_file_magic_cmd
6559 +# Flag that allows shared libraries with undefined symbols to be built.
6560 +allow_undefined_flag=$lt_[]_LT_AC_TAGVAR(allow_undefined_flag, $1)
6562 +# Flag that forces no undefined symbols.
6563 +no_undefined_flag=$lt_[]_LT_AC_TAGVAR(no_undefined_flag, $1)
6565 +# Commands used to finish a libtool library installation in a directory.
6566 +finish_cmds=$lt_finish_cmds
6568 +# Same as above, but a single script fragment to be evaled but not shown.
6569 +finish_eval=$lt_finish_eval
6571 +# Take the output of nm and produce a listing of raw symbols and C names.
6572 +global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
6574 +# Transform the output of nm in a proper C declaration
6575 +global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
6577 +# Transform the output of nm in a C name address pair
6578 +global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
6580 +# This is the shared library runtime path variable.
6581 +runpath_var=$runpath_var
6583 +# This is the shared library path variable.
6584 +shlibpath_var=$shlibpath_var
6586 +# Is shlibpath searched before the hard-coded library search path?
6587 +shlibpath_overrides_runpath=$shlibpath_overrides_runpath
6589 +# How to hardcode a shared library path into an executable.
6590 +hardcode_action=$_LT_AC_TAGVAR(hardcode_action, $1)
6592 +# Whether we should hardcode library paths into libraries.
6593 +hardcode_into_libs=$hardcode_into_libs
6595 +# Flag to hardcode \$libdir into a binary during linking.
6596 +# This must work even if \$libdir does not exist.
6597 +hardcode_libdir_flag_spec=$lt_[]_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)
6599 +# If ld is used when linking, flag to hardcode \$libdir into
6600 +# a binary during linking. This must work even if \$libdir does
6602 +hardcode_libdir_flag_spec_ld=$lt_[]_LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)
6604 +# Whether we need a single -rpath flag with a separated argument.
6605 +hardcode_libdir_separator=$lt_[]_LT_AC_TAGVAR(hardcode_libdir_separator, $1)
6607 +# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
6608 +# resulting binary.
6609 +hardcode_direct=$_LT_AC_TAGVAR(hardcode_direct, $1)
6611 +# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
6612 +# resulting binary.
6613 +hardcode_minus_L=$_LT_AC_TAGVAR(hardcode_minus_L, $1)
6615 +# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
6616 +# the resulting binary.
6617 +hardcode_shlibpath_var=$_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)
6619 +# Set to yes if building a shared library automatically hardcodes DIR into the library
6620 +# and all subsequent libraries and executables linked against it.
6621 +hardcode_automatic=$_LT_AC_TAGVAR(hardcode_automatic, $1)
6623 +# Variables whose values should be saved in libtool wrapper scripts and
6624 +# restored at relink time.
6625 +variables_saved_for_relink="$variables_saved_for_relink"
6627 +# Whether libtool must link a program against all its dependency libraries.
6628 +link_all_deplibs=$_LT_AC_TAGVAR(link_all_deplibs, $1)
6630 +# Compile-time system search path for libraries
6631 +sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
6633 +# Run-time system search path for libraries
6634 +sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
6636 +# Fix the shell variable \$srcfile for the compiler.
6637 +fix_srcfile_path="$_LT_AC_TAGVAR(fix_srcfile_path, $1)"
6639 +# Set to yes if exported symbols are required.
6640 +always_export_symbols=$_LT_AC_TAGVAR(always_export_symbols, $1)
6642 +# The commands to list exported symbols.
6643 +export_symbols_cmds=$lt_[]_LT_AC_TAGVAR(export_symbols_cmds, $1)
6645 +# The commands to extract the exported symbol list from a shared archive.
6646 +extract_expsyms_cmds=$lt_extract_expsyms_cmds
6648 +# Symbols that should not be listed in the preloaded symbols.
6649 +exclude_expsyms=$lt_[]_LT_AC_TAGVAR(exclude_expsyms, $1)
6651 +# Symbols that must always be exported.
6652 +include_expsyms=$lt_[]_LT_AC_TAGVAR(include_expsyms, $1)
6655 +[# ### END LIBTOOL CONFIG],
6656 +[# ### END LIBTOOL TAG CONFIG: $tagname])
6663 + cat <<\EOF >> "$cfgfile"
6665 +# AIX sometimes has problems with the GCC collect2 program. For some
6666 +# reason, if we set the COLLECT_NAMES environment variable, the problems
6667 +# vanish in a puff of smoke.
6668 +if test "X${COLLECT_NAMES+set}" != Xset; then
6670 + export COLLECT_NAMES
6676 + # We use sed instead of cat because bash on DJGPP gets confused if
6677 + # if finds mixed CR/LF and LF-only lines. Since sed operates in
6678 + # text mode, it properly converts lines to CR/LF. This bash problem
6679 + # is reportedly fixed, but why not run on old versions too?
6680 + sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
6682 + mv -f "$cfgfile" "$ofile" || \
6683 + (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
6687 + # If there is no Makefile yet, we rely on a make rule to execute
6688 + # `config.status --recheck' to rerun these tests and create the
6689 + # libtool script then.
6690 + ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
6691 + if test -f "$ltmain_in"; then
6692 + test -f Makefile && make "$ltmain"
6695 +])# AC_LIBTOOL_CONFIG
6698 +# AC_LIBTOOL_PROG_COMPILER_NO_RTTI([TAGNAME])
6699 +# -------------------------------------------
6700 +AC_DEFUN([AC_LIBTOOL_PROG_COMPILER_NO_RTTI],
6701 +[AC_REQUIRE([_LT_AC_SYS_COMPILER])dnl
6703 +_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=
6705 +if test "$GCC" = yes; then
6706 + _LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin'
6708 + AC_LIBTOOL_COMPILER_OPTION([if $compiler supports -fno-rtti -fno-exceptions],
6709 + lt_cv_prog_compiler_rtti_exceptions,
6710 + [-fno-rtti -fno-exceptions], [],
6711 + [_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)="$_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1) -fno-rtti -fno-exceptions"])
6713 +])# AC_LIBTOOL_PROG_COMPILER_NO_RTTI
6716 +# AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE
6717 +# ---------------------------------
6718 +AC_DEFUN([AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE],
6719 +[AC_REQUIRE([AC_CANONICAL_HOST])
6720 +AC_REQUIRE([AC_PROG_NM])
6721 +AC_REQUIRE([AC_OBJEXT])
6722 +# Check for command to grab the raw symbol name followed by C symbol from nm.
6723 +AC_MSG_CHECKING([command to parse $NM output from $compiler object])
6724 +AC_CACHE_VAL([lt_cv_sys_global_symbol_pipe],
6726 +# These are sane defaults that work on at least a few old systems.
6727 +# [They come from Ultrix. What could be older than Ultrix?!! ;)]
6729 +# Character class describing NM global symbol codes.
6730 +symcode='[[BCDEGRST]]'
6732 +# Regexp to match symbols that can be accessed directly from C.
6733 +sympat='\([[_A-Za-z]][[_A-Za-z0-9]]*\)'
6735 +# Transform the above into a raw symbol and a C symbol.
6736 +symxfrm='\1 \2\3 \3'
6738 +# Transform an extracted symbol line into a proper C declaration
6739 +lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
6741 +# Transform an extracted symbol line into symbol name and symbol address
6742 +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'"
6744 +# Define system-specific variables.
6747 + symcode='[[BCDT]]'
6749 +cygwin* | mingw* | pw32*)
6750 + symcode='[[ABCDGISTW]]'
6752 +hpux*) # Its linker distinguishes data from code symbols
6753 + if test "$host_cpu" = ia64; then
6754 + symcode='[[ABCDEGRST]]'
6756 + lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6757 + 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'"
6759 +irix* | nonstopux*)
6760 + symcode='[[BCDEGRST]]'
6763 + symcode='[[BCDEGQRST]]'
6766 + symcode='[[BDRT]]'
6769 + symcode='[[DFNSTU]]'
6773 +# Handle CRLF in mingw tool chain
6777 + opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6781 -# Library versioning type.
6782 -version_type=$version_type
6783 +# If we're using GNU nm, then use its standard symbol codes.
6784 +case `$NM -V 2>&1` in
6785 +*GNU* | *'with BFD'*)
6786 + symcode='[[ABCDGIRSTW]]' ;;
6789 -# Format of library name prefix.
6790 -libname_spec=$lt_libname_spec
6791 +# Try without a prefix undercore, then with it.
6792 +for ac_symprfx in "" "_"; do
6794 -# List of archive names. First name is the real one, the rest are links.
6795 -# The last name is the one that the linker finds with -lNAME.
6796 -library_names_spec=$lt_library_names_spec
6797 + # Write the raw and C identifiers.
6798 + lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[[ ]]\($symcode$symcode*\)[[ ]][[ ]]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
6800 -# The coded name of the library, if different from the real name.
6801 -soname_spec=$lt_soname_spec
6802 + # Check to see that the pipe works correctly.
6805 -# Commands used to build and install an old-style archive.
6807 -old_archive_cmds=$lt_old_archive_cmds
6808 -old_postinstall_cmds=$lt_old_postinstall_cmds
6809 -old_postuninstall_cmds=$lt_old_postuninstall_cmds
6811 + cat > conftest.$ac_ext <<EOF
6816 +void nm_test_func(){}
6820 +int main(){nm_test_var='a';nm_test_func();return(0);}
6823 -# Create an old-style archive from a shared archive.
6824 -old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
6825 + if AC_TRY_EVAL(ac_compile); then
6826 + # Now try to grab the symbols.
6828 + if AC_TRY_EVAL(NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) && test -s "$nlist"; then
6829 + # Try sorting and uniquifying the output.
6830 + if sort "$nlist" | uniq > "$nlist"T; then
6831 + mv -f "$nlist"T "$nlist"
6836 -# Create a temporary old-style archive to link instead of a shared archive.
6837 -old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
6838 + # Make sure that we snagged all the symbols we need.
6839 + if grep ' nm_test_var$' "$nlist" >/dev/null; then
6840 + if grep ' nm_test_func$' "$nlist" >/dev/null; then
6841 + cat <<EOF > conftest.$ac_ext
6846 -# Commands used to build and install a shared archive.
6847 -archive_cmds=$lt_archive_cmds
6848 -archive_expsym_cmds=$lt_archive_expsym_cmds
6849 -postinstall_cmds=$lt_postinstall_cmds
6850 -postuninstall_cmds=$lt_postuninstall_cmds
6852 + # Now generate the symbol file.
6853 + eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
6855 -# Commands to strip libraries.
6856 -old_striplib=$lt_old_striplib
6857 -striplib=$lt_striplib
6858 + cat <<EOF >> conftest.$ac_ext
6859 +#if defined (__STDC__) && __STDC__
6860 +# define lt_ptr_t void *
6862 +# define lt_ptr_t char *
6866 -# Method to check whether dependent libraries are shared objects.
6867 -deplibs_check_method=$lt_deplibs_check_method
6868 +/* The mapping between symbol names and symbols. */
6873 +lt_preloaded_symbols[[]] =
6876 + $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
6877 + cat <<\EOF >> conftest.$ac_ext
6881 -# Command to use when deplibs_check_method == file_magic.
6882 -file_magic_cmd=$lt_file_magic_cmd
6887 + # Now try linking the two files.
6888 + mv conftest.$ac_objext conftstm.$ac_objext
6889 + lt_save_LIBS="$LIBS"
6890 + lt_save_CFLAGS="$CFLAGS"
6891 + LIBS="conftstm.$ac_objext"
6892 + CFLAGS="$CFLAGS$_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)"
6893 + if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext}; then
6896 + LIBS="$lt_save_LIBS"
6897 + CFLAGS="$lt_save_CFLAGS"
6899 + echo "cannot find nm_test_func in $nlist" >&AS_MESSAGE_LOG_FD
6902 + echo "cannot find nm_test_var in $nlist" >&AS_MESSAGE_LOG_FD
6905 + echo "cannot run $lt_cv_sys_global_symbol_pipe" >&AS_MESSAGE_LOG_FD
6908 + echo "$progname: failed program was:" >&AS_MESSAGE_LOG_FD
6909 + cat conftest.$ac_ext >&5
6911 + rm -f conftest* conftst*
6913 -# Flag that allows shared libraries with undefined symbols to be built.
6914 -allow_undefined_flag=$lt_allow_undefined_flag
6915 + # Do not use the global_symbol_pipe unless it works.
6916 + if test "$pipe_works" = yes; then
6919 + lt_cv_sys_global_symbol_pipe=
6923 +if test -z "$lt_cv_sys_global_symbol_pipe"; then
6924 + lt_cv_sys_global_symbol_to_cdecl=
6926 +if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6927 + AC_MSG_RESULT(failed)
6931 +]) # AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE
6933 -# Flag that forces no undefined symbols.
6934 -no_undefined_flag=$lt_no_undefined_flag
6936 -# Commands used to finish a libtool library installation in a directory.
6937 -finish_cmds=$lt_finish_cmds
6938 +# AC_LIBTOOL_PROG_COMPILER_PIC([TAGNAME])
6939 +# ---------------------------------------
6940 +AC_DEFUN([AC_LIBTOOL_PROG_COMPILER_PIC],
6941 +[_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)=
6942 +_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
6943 +_LT_AC_TAGVAR(lt_prog_compiler_static, $1)=
6945 -# Same as above, but a single script fragment to be evaled but not shown.
6946 -finish_eval=$lt_finish_eval
6947 +AC_MSG_CHECKING([for $compiler option to produce PIC])
6948 + ifelse([$1],[CXX],[
6949 + # C++ specific cases for pic, static, wl, etc.
6950 + if test "$GXX" = yes; then
6951 + _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
6952 + _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static'
6954 -# Take the output of nm and produce a listing of raw symbols and C names.
6955 -global_symbol_pipe=$lt_global_symbol_pipe
6958 + # All AIX code is PIC.
6959 + if test "$host_cpu" = ia64; then
6960 + # AIX 5 now supports IA64 processor
6961 + _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
6965 + # FIXME: we need at least 68020 code to build shared libraries, but
6966 + # adding the `-m68020' flag to GCC prevents building anything better,
6968 + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4'
6970 + beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
6971 + # PIC is the default for these OSes.
6973 + mingw* | os2* | pw32*)
6974 + # This hack is so that the source file can tell whether it is being
6975 + # built for inclusion in a dll (and should export symbols for example).
6976 + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'
6978 + darwin* | rhapsody*)
6979 + # PIC is the default on this platform
6980 + # Common symbols not allowed in MH_DYLIB files
6981 + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common'
6984 + # DJGPP does not support shared libraries at all
6985 + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
6988 + if test -d /usr/nec; then
6989 + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic
6993 + # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6994 + # not for PA HP-UX.
6995 + case "$host_cpu" in
6999 + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
7004 + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
7010 + # All AIX code is PIC.
7011 + if test "$host_cpu" = ia64; then
7012 + # AIX 5 now supports IA64 processor
7013 + _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
7015 + _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp'
7019 + case $cc_basename in
7021 + # Green Hills C++ Compiler
7022 + # _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"
7027 + case $cc_basename in
7029 + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
7032 + # Green Hills C++ Compiler
7033 + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
7039 + freebsd* | kfreebsd*-gnu)
7040 + # FreeBSD uses GNU C++
7042 + hpux9* | hpux10* | hpux11*)
7043 + case $cc_basename in
7045 + _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
7046 + _LT_AC_TAGVAR(lt_prog_compiler_static, $1)="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
7047 + if test "$host_cpu" != ia64; then
7048 + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
7052 + _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
7053 + _LT_AC_TAGVAR(lt_prog_compiler_static, $1)="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
7054 + case "$host_cpu" in
7059 + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
7067 + irix5* | irix6* | nonstopux*)
7068 + case $cc_basename in
7070 + _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
7071 + _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
7072 + # CC pic flag -KPIC is the default.
7079 + case $cc_basename in
7081 + # KAI C++ Compiler
7082 + _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,'
7083 + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
7087 + _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
7088 + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
7089 + _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static'
7093 + # Make sure the PIC flag is empty. It appears that all Alpha
7094 + # Linux and Compaq Tru64 Unix objects are PIC.
7095 + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
7096 + _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
7107 + case $cc_basename in
7109 + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-W c,exportall'
7115 + netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
7117 + osf3* | osf4* | osf5*)
7118 + case $cc_basename in
7120 + _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,'
7123 + # Rational C++ 2.4.1
7124 + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
7127 + # Digital/Compaq C++
7128 + _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
7129 + # Make sure the PIC flag is empty. It appears that all Alpha
7130 + # Linux and Compaq Tru64 Unix objects are PIC.
7131 + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
7132 + _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
7141 + case $cc_basename in
7143 + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
7150 + case $cc_basename in
7152 + # Sun C++ 4.2, 5.x and Centerline C++
7153 + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
7154 + _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
7155 + _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
7158 + # Green Hills C++ Compiler
7159 + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-PIC'
7166 + case $cc_basename in
7169 + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
7170 + _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
7174 + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
7181 + case $cc_basename in
7183 + # NonStop-UX NCC 3.20
7184 + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
7195 + _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
7201 + if test "$GCC" = yes; then
7202 + _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
7203 + _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static'
7205 -# Transform the output of nm in a proper C declaration
7206 -global_symbol_to_cdecl=$lt_global_symbol_to_cdecl
7209 + # All AIX code is PIC.
7210 + if test "$host_cpu" = ia64; then
7211 + # AIX 5 now supports IA64 processor
7212 + _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
7216 -# Transform the output of nm in a C name address pair
7217 -global_symbol_to_c_name_address=$lt_global_symbol_to_c_name_address
7219 + # FIXME: we need at least 68020 code to build shared libraries, but
7220 + # adding the `-m68020' flag to GCC prevents building anything better,
7222 + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4'
7225 -# This is the shared library runtime path variable.
7226 -runpath_var=$runpath_var
7227 + beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7228 + # PIC is the default for these OSes.
7231 -# This is the shared library path variable.
7232 -shlibpath_var=$shlibpath_var
7233 + mingw* | pw32* | os2*)
7234 + # This hack is so that the source file can tell whether it is being
7235 + # built for inclusion in a dll (and should export symbols for example).
7236 + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'
7239 -# Is shlibpath searched before the hard-coded library search path?
7240 -shlibpath_overrides_runpath=$shlibpath_overrides_runpath
7241 + darwin* | rhapsody*)
7242 + # PIC is the default on this platform
7243 + # Common symbols not allowed in MH_DYLIB files
7244 + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common'
7247 -# How to hardcode a shared library path into an executable.
7248 -hardcode_action=$hardcode_action
7250 + # Just because we use GCC doesn't mean we suddenly get shared libraries
7251 + # on systems that don't support them.
7252 + _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
7256 -# Whether we should hardcode library paths into libraries.
7257 -hardcode_into_libs=$hardcode_into_libs
7259 + if test -d /usr/nec; then
7260 + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic
7264 -# Flag to hardcode \$libdir into a binary during linking.
7265 -# This must work even if \$libdir does not exist.
7266 -hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
7268 + # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7269 + # not for PA HP-UX.
7270 + case "$host_cpu" in
7275 + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
7280 -# Whether we need a single -rpath flag with a separated argument.
7281 -hardcode_libdir_separator=$lt_hardcode_libdir_separator
7283 + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
7287 + # PORTME Check for flag to pass linker flags through the system compiler.
7290 + _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
7291 + if test "$host_cpu" = ia64; then
7292 + # AIX 5 now supports IA64 processor
7293 + _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
7295 + _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp'
7299 -# Set to yes if using DIR/libNAME.so during linking hardcodes DIR into the
7300 -# resulting binary.
7301 -hardcode_direct=$hardcode_direct
7302 + mingw* | pw32* | os2*)
7303 + # This hack is so that the source file can tell whether it is being
7304 + # built for inclusion in a dll (and should export symbols for example).
7305 + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'
7308 -# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
7309 -# resulting binary.
7310 -hardcode_minus_L=$hardcode_minus_L
7311 + hpux9* | hpux10* | hpux11*)
7312 + _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
7313 + # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7314 + # not for PA HP-UX.
7315 + case "$host_cpu" in
7320 + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
7323 + # Is there a better lt_prog_compiler_static that works with the bundled CC?
7324 + _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
7327 -# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
7328 -# the resulting binary.
7329 -hardcode_shlibpath_var=$hardcode_shlibpath_var
7330 + irix5* | irix6* | nonstopux*)
7331 + _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
7332 + # PIC (with -KPIC) is the default.
7333 + _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
7336 -# Variables whose values should be saved in libtool wrapper scripts and
7337 -# restored at relink time.
7338 -variables_saved_for_relink="$variables_saved_for_relink"
7340 + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
7341 + _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
7344 -# Whether libtool must link a program against all its dependency libraries.
7345 -link_all_deplibs=$link_all_deplibs
7349 + _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
7350 + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
7351 + _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static'
7354 + _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
7355 + # All Alpha code is PIC.
7356 + _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
7361 -# Compile-time system search path for libraries
7362 -sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
7363 + osf3* | osf4* | osf5*)
7364 + _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
7365 + # All OSF/1 code is PIC.
7366 + _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
7369 -# Run-time system search path for libraries
7370 -sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
7372 + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-Kpic'
7373 + _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-dn'
7376 -# Fix the shell variable \$srcfile for the compiler.
7377 -fix_srcfile_path="$fix_srcfile_path"
7379 + _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
7380 + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
7381 + _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
7384 -# Set to yes if exported symbols are required.
7385 -always_export_symbols=$always_export_symbols
7387 + _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
7388 + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-PIC'
7389 + _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
7392 -# The commands to list exported symbols.
7393 -export_symbols_cmds=$lt_export_symbols_cmds
7394 + sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
7395 + _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
7396 + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
7397 + _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
7400 -# The commands to extract the exported symbol list from a shared archive.
7401 -extract_expsyms_cmds=$lt_extract_expsyms_cmds
7403 + if test -d /usr/nec ;then
7404 + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-Kconform_pic'
7405 + _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
7409 -# Symbols that should not be listed in the preloaded symbols.
7410 -exclude_expsyms=$lt_exclude_expsyms
7412 + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
7413 + _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
7416 -# Symbols that must always be exported.
7417 -include_expsyms=$lt_include_expsyms
7419 + _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
7424 +AC_MSG_RESULT([$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)])
7426 -# ### END LIBTOOL CONFIG
7428 +# Check to make sure the PIC flag actually works.
7430 +if test -n "$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)"; then
7431 + AC_LIBTOOL_COMPILER_OPTION([if $compiler PIC flag $_LT_AC_TAGVAR(lt_prog_compiler_pic, $1) works],
7432 + _LT_AC_TAGVAR(lt_prog_compiler_pic_works, $1),
7433 + [$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)ifelse([$1],[],[ -DPIC],[ifelse([$1],[CXX],[ -DPIC],[])])], [],
7434 + [case $_LT_AC_TAGVAR(lt_prog_compiler_pic, $1) in
7436 + *) _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=" $_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)" ;;
7438 + [_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
7439 + _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no])
7442 + # For platforms which do not support PIC, -DPIC is meaningless:
7444 + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
7447 + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)="$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)ifelse([$1],[],[ -DPIC],[ifelse([$1],[CXX],[ -DPIC],[])])"
7454 +# AC_LIBTOOL_PROG_LD_SHLIBS([TAGNAME])
7455 +# ------------------------------------
7456 +# See if the linker supports building shared libraries.
7457 +AC_DEFUN([AC_LIBTOOL_PROG_LD_SHLIBS],
7458 +[AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries])
7459 +ifelse([$1],[CXX],[
7460 + _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
7463 - cat <<\EOF >> "${ofile}T"
7465 -# AIX sometimes has problems with the GCC collect2 program. For some
7466 -# reason, if we set the COLLECT_NAMES environment variable, the problems
7467 -# vanish in a puff of smoke.
7468 -if test "X${COLLECT_NAMES+set}" != Xset; then
7470 - export COLLECT_NAMES
7474 + # If we're using GNU nm, then we don't want the "-C" option.
7475 + # -C means demangle to AIX nm, but means don't demangle with GNU nm
7476 + if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
7477 + _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'
7479 + _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'
7483 + _LT_AC_TAGVAR(export_symbols_cmds, $1)="$ltdll_cmds"
7486 + _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'
7489 + _LT_AC_TAGVAR(link_all_deplibs, $1)=no
7492 + _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
7497 + _LT_AC_TAGVAR(allow_undefined_flag, $1)=
7498 + _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=no
7499 + _LT_AC_TAGVAR(archive_cmds, $1)=
7500 + _LT_AC_TAGVAR(archive_expsym_cmds, $1)=
7501 + _LT_AC_TAGVAR(old_archive_From_new_cmds, $1)=
7502 + _LT_AC_TAGVAR(old_archive_from_expsyms_cmds, $1)=
7503 + _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)=
7504 + _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
7505 + _LT_AC_TAGVAR(thread_safe_flag_spec, $1)=
7506 + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=
7507 + _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
7508 + _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
7509 + _LT_AC_TAGVAR(hardcode_direct, $1)=no
7510 + _LT_AC_TAGVAR(hardcode_minus_L, $1)=no
7511 + _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
7512 + _LT_AC_TAGVAR(link_all_deplibs, $1)=unknown
7513 + _LT_AC_TAGVAR(hardcode_automatic, $1)=no
7514 + _LT_AC_TAGVAR(module_cmds, $1)=
7515 + _LT_AC_TAGVAR(module_expsym_cmds, $1)=
7516 + _LT_AC_TAGVAR(always_export_symbols, $1)=no
7517 + _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
7518 + # include_expsyms should be a list of space-separated symbols to be *always*
7519 + # included in the symbol list
7520 + _LT_AC_TAGVAR(include_expsyms, $1)=
7521 + # exclude_expsyms can be an extended regexp of symbols to exclude
7522 + # it will be wrapped by ` (' and `)$', so one must not match beginning or
7523 + # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
7524 + # as well as any symbol that contains `d'.
7525 + _LT_AC_TAGVAR(exclude_expsyms, $1)="_GLOBAL_OFFSET_TABLE_"
7526 + # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
7527 + # platforms (ab)use it in PIC code, but their linkers get confused if
7528 + # the symbol is explicitly referenced. Since portable code cannot
7529 + # rely on this symbol name, it's probably fine to never include it in
7530 + # preloaded symbol tables.
7531 + extract_expsyms_cmds=
7534 - cygwin* | mingw* | pw32* | os2*)
7535 - cat <<'EOF' >> "${ofile}T"
7536 - # This is a source program that is used to create dlls on Windows
7537 - # Don't remove nor modify the starting and closing comments
7538 -# /* ltdll.c starts here */
7539 -# #define WIN32_LEAN_AND_MEAN
7540 -# #include <windows.h>
7541 -# #undef WIN32_LEAN_AND_MEAN
7542 -# #include <stdio.h>
7544 -# #ifndef __CYGWIN__
7545 -# # ifdef __CYGWIN32__
7546 -# # define __CYGWIN__ __CYGWIN32__
7550 -# #ifdef __cplusplus
7553 -# BOOL APIENTRY DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved);
7554 -# #ifdef __cplusplus
7558 -# #ifdef __CYGWIN__
7559 -# #include <cygwin/cygwin_dll.h>
7560 -# DECLARE_CYGWIN_DLL( DllMain );
7562 -# HINSTANCE __hDllInstance_base;
7565 -# DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved)
7567 -# __hDllInstance_base = hInst;
7570 -# /* ltdll.c ends here */
7571 - # This is a source program that is used to create import libraries
7572 - # on Windows for dlls which lack them. Don't remove nor modify the
7573 - # starting and closing comments
7574 -# /* impgen.c starts here */
7575 -# /* Copyright (C) 1999-2000 Free Software Foundation, Inc.
7577 -# This file is part of GNU libtool.
7579 -# This program is free software; you can redistribute it and/or modify
7580 -# it under the terms of the GNU General Public License as published by
7581 -# the Free Software Foundation; either version 2 of the License, or
7582 -# (at your option) any later version.
7584 -# This program is distributed in the hope that it will be useful,
7585 -# but WITHOUT ANY WARRANTY; without even the implied warranty of
7586 -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
7587 -# GNU General Public License for more details.
7589 -# You should have received a copy of the GNU General Public License
7590 -# along with this program; if not, write to the Free Software
7591 -# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
7594 -# #include <stdio.h> /* for printf() */
7595 -# #include <unistd.h> /* for open(), lseek(), read() */
7596 -# #include <fcntl.h> /* for O_RDONLY, O_BINARY */
7597 -# #include <string.h> /* for strdup() */
7599 -# /* O_BINARY isn't required (or even defined sometimes) under Unix */
7601 -# #define O_BINARY 0
7604 -# static unsigned int
7605 -# pe_get16 (fd, offset)
7609 -# unsigned char b[2];
7610 -# lseek (fd, offset, SEEK_SET);
7612 -# return b[0] + (b[1]<<8);
7615 -# static unsigned int
7616 -# pe_get32 (fd, offset)
7620 -# unsigned char b[4];
7621 -# lseek (fd, offset, SEEK_SET);
7623 -# return b[0] + (b[1]<<8) + (b[2]<<16) + (b[3]<<24);
7626 -# static unsigned int
7630 -# unsigned char *b = ptr;
7631 -# return b[0] + (b[1]<<8) + (b[2]<<16) + (b[3]<<24);
7635 -# main (argc, argv)
7640 -# unsigned long pe_header_offset, opthdr_ofs, num_entries, i;
7641 -# unsigned long export_rva, export_size, nsections, secptr, expptr;
7642 -# unsigned long name_rvas, nexp;
7643 -# unsigned char *expdata, *erva;
7644 -# char *filename, *dll_name;
7646 -# filename = argv[1];
7648 -# dll = open(filename, O_RDONLY|O_BINARY);
7652 -# dll_name = filename;
7654 -# for (i=0; filename[i]; i++)
7655 -# if (filename[i] == '/' || filename[i] == '\\' || filename[i] == ':')
7656 -# dll_name = filename + i +1;
7658 -# pe_header_offset = pe_get32 (dll, 0x3c);
7659 -# opthdr_ofs = pe_header_offset + 4 + 20;
7660 -# num_entries = pe_get32 (dll, opthdr_ofs + 92);
7662 -# if (num_entries < 1) /* no exports */
7665 -# export_rva = pe_get32 (dll, opthdr_ofs + 96);
7666 -# export_size = pe_get32 (dll, opthdr_ofs + 100);
7667 -# nsections = pe_get16 (dll, pe_header_offset + 4 +2);
7668 -# secptr = (pe_header_offset + 4 + 20 +
7669 -# pe_get16 (dll, pe_header_offset + 4 + 16));
7672 -# for (i = 0; i < nsections; i++)
7675 -# unsigned long secptr1 = secptr + 40 * i;
7676 -# unsigned long vaddr = pe_get32 (dll, secptr1 + 12);
7677 -# unsigned long vsize = pe_get32 (dll, secptr1 + 16);
7678 -# unsigned long fptr = pe_get32 (dll, secptr1 + 20);
7679 -# lseek(dll, secptr1, SEEK_SET);
7680 -# read(dll, sname, 8);
7681 -# if (vaddr <= export_rva && vaddr+vsize > export_rva)
7683 -# expptr = fptr + (export_rva - vaddr);
7684 -# if (export_rva + export_size > vaddr + vsize)
7685 -# export_size = vsize - (export_rva - vaddr);
7690 -# expdata = (unsigned char*)malloc(export_size);
7691 -# lseek (dll, expptr, SEEK_SET);
7692 -# read (dll, expdata, export_size);
7693 -# erva = expdata - export_rva;
7695 -# nexp = pe_as32 (expdata+24);
7696 -# name_rvas = pe_as32 (expdata+32);
7698 -# printf ("EXPORTS\n");
7699 -# for (i = 0; i<nexp; i++)
7701 -# unsigned long name_rva = pe_as32 (erva+name_rvas+i*4);
7702 -# printf ("\t%s @ %ld ;\n", erva+name_rva, 1+ i);
7707 -# /* impgen.c ends here */
7710 + cygwin* | mingw* | pw32*)
7711 + # FIXME: the MSVC++ port hasn't been tested in a loooong time
7712 + # When not using gcc, we currently assume that we are using
7713 + # Microsoft Visual C++.
7714 + if test "$GCC" != yes; then
7723 - # We use sed instead of cat because bash on DJGPP gets confused if
7724 - # if finds mixed CR/LF and LF-only lines. Since sed operates in
7725 - # text mode, it properly converts lines to CR/LF. This bash problem
7726 - # is reportedly fixed, but why not run on old versions too?
7727 - sed '$q' "$ltmain" >> "${ofile}T" || (rm -f "${ofile}T"; exit 1)
7728 + _LT_AC_TAGVAR(ld_shlibs, $1)=yes
7729 + if test "$with_gnu_ld" = yes; then
7730 + # If archive_cmds runs LD, not CC, wlarc should be empty
7733 - mv -f "${ofile}T" "$ofile" || \
7734 - (rm -f "$ofile" && cp "${ofile}T" "$ofile" && rm -f "${ofile}T")
7737 + # See if GNU ld supports shared libraries.
7739 + aix3* | aix4* | aix5*)
7740 + # On AIX/PPC, the GNU linker is very broken
7741 + if test "$host_cpu" != ia64; then
7742 + _LT_AC_TAGVAR(ld_shlibs, $1)=no
7745 -])# _LT_AC_LTCONFIG_HACK
7746 +*** Warning: the GNU linker, at least up to release 2.9.1, is reported
7747 +*** to be unable to reliably create shared libraries on AIX.
7748 +*** Therefore, libtool is disabling shared libraries support. If you
7749 +*** really care for shared libraries, you may want to modify your PATH
7750 +*** so that a non-GNU linker is found, and then restart.
7752 -# AC_LIBTOOL_DLOPEN - enable checks for dlopen support
7753 -AC_DEFUN([AC_LIBTOOL_DLOPEN], [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])])
7758 -# AC_LIBTOOL_WIN32_DLL - declare package support for building win32 dll's
7759 -AC_DEFUN([AC_LIBTOOL_WIN32_DLL], [AC_BEFORE([$0], [AC_LIBTOOL_SETUP])])
7761 + _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)'
7762 + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
7763 + _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
7765 + # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
7766 + # that the semantics of dynamic libraries on AmigaOS, at least up
7767 + # to version 4, is to share data among multiple programs linked
7768 + # with the same dynamic library. Since this doesn't match the
7769 + # behavior of shared libraries on other platforms, we can't use
7771 + _LT_AC_TAGVAR(ld_shlibs, $1)=no
7774 -# AC_ENABLE_SHARED - implement the --enable-shared flag
7775 -# Usage: AC_ENABLE_SHARED[(DEFAULT)]
7776 -# Where DEFAULT is either `yes' or `no'. If omitted, it defaults to
7778 -AC_DEFUN([AC_ENABLE_SHARED],
7779 -[define([AC_ENABLE_SHARED_DEFAULT], ifelse($1, no, no, yes))dnl
7780 -AC_ARG_ENABLE(shared,
7781 -changequote(<<, >>)dnl
7782 -<< --enable-shared[=PKGS] build shared libraries [default=>>AC_ENABLE_SHARED_DEFAULT],
7783 -changequote([, ])dnl
7784 -[p=${PACKAGE-default}
7786 -yes) enable_shared=yes ;;
7787 -no) enable_shared=no ;;
7790 - # Look at the argument we got. We use all the common list separators.
7791 - IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
7792 - for pkg in $enableval; do
7793 - if test "X$pkg" = "X$p"; then
7797 - IFS="$ac_save_ifs"
7800 -enable_shared=AC_ENABLE_SHARED_DEFAULT)dnl
7803 + if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7804 + _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
7805 + # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
7806 + # support --undefined. This deserves some investigation. FIXME
7807 + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7809 + _LT_AC_TAGVAR(ld_shlibs, $1)=no
7813 -# AC_DISABLE_SHARED - set the default shared flag to --disable-shared
7814 -AC_DEFUN([AC_DISABLE_SHARED],
7815 -[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
7816 -AC_ENABLE_SHARED(no)])
7817 + cygwin* | mingw* | pw32*)
7818 + # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless,
7819 + # as there is no search path for DLLs.
7820 + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
7821 + _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
7822 + _LT_AC_TAGVAR(always_export_symbols, $1)=no
7823 + _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
7824 + _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'
7826 + if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
7827 + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
7828 + # If the export-symbols file already is a .def file (1st line
7829 + # is EXPORTS), use it as is; otherwise, prepend...
7830 + _LT_AC_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
7831 + cp $export_symbols $output_objdir/$soname.def;
7833 + echo EXPORTS > $output_objdir/$soname.def;
7834 + cat $export_symbols >> $output_objdir/$soname.def;
7836 + $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
7842 -# AC_ENABLE_STATIC - implement the --enable-static flag
7843 -# Usage: AC_ENABLE_STATIC[(DEFAULT)]
7844 -# Where DEFAULT is either `yes' or `no'. If omitted, it defaults to
7846 -AC_DEFUN([AC_ENABLE_STATIC],
7847 -[define([AC_ENABLE_STATIC_DEFAULT], ifelse($1, no, no, yes))dnl
7848 -AC_ARG_ENABLE(static,
7849 -changequote(<<, >>)dnl
7850 -<< --enable-static[=PKGS] build static libraries [default=>>AC_ENABLE_STATIC_DEFAULT],
7851 -changequote([, ])dnl
7852 -[p=${PACKAGE-default}
7854 -yes) enable_static=yes ;;
7855 -no) enable_static=no ;;
7858 - # Look at the argument we got. We use all the common list separators.
7859 - IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
7860 - for pkg in $enableval; do
7861 - if test "X$pkg" = "X$p"; then
7865 - IFS="$ac_save_ifs"
7868 -enable_static=AC_ENABLE_STATIC_DEFAULT)dnl
7870 + netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
7871 + if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7872 + _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
7875 + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7876 + _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'
7880 -# AC_DISABLE_STATIC - set the default static flag to --disable-static
7881 -AC_DEFUN([AC_DISABLE_STATIC],
7882 -[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
7883 -AC_ENABLE_STATIC(no)])
7884 + solaris* | sysv5*)
7885 + if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
7886 + _LT_AC_TAGVAR(ld_shlibs, $1)=no
7889 +*** Warning: The releases 2.8.* of the GNU linker cannot reliably
7890 +*** create shared libraries on Solaris systems. Therefore, libtool
7891 +*** is disabling shared libraries support. We urge you to upgrade GNU
7892 +*** binutils to release 2.9.1 or newer. Another option is to modify
7893 +*** your PATH or compiler configuration so that the native linker is
7894 +*** used, and then restart.
7897 + elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7898 + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7899 + _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'
7901 + _LT_AC_TAGVAR(ld_shlibs, $1)=no
7905 -# AC_ENABLE_FAST_INSTALL - implement the --enable-fast-install flag
7906 -# Usage: AC_ENABLE_FAST_INSTALL[(DEFAULT)]
7907 -# Where DEFAULT is either `yes' or `no'. If omitted, it defaults to
7909 -AC_DEFUN([AC_ENABLE_FAST_INSTALL],
7910 -[define([AC_ENABLE_FAST_INSTALL_DEFAULT], ifelse($1, no, no, yes))dnl
7911 -AC_ARG_ENABLE(fast-install,
7912 -changequote(<<, >>)dnl
7913 -<< --enable-fast-install[=PKGS] optimize for fast installation [default=>>AC_ENABLE_FAST_INSTALL_DEFAULT],
7914 -changequote([, ])dnl
7915 -[p=${PACKAGE-default}
7917 -yes) enable_fast_install=yes ;;
7918 -no) enable_fast_install=no ;;
7920 - enable_fast_install=no
7921 - # Look at the argument we got. We use all the common list separators.
7922 - IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
7923 - for pkg in $enableval; do
7924 - if test "X$pkg" = "X$p"; then
7925 - enable_fast_install=yes
7927 + _LT_AC_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7929 + _LT_AC_TAGVAR(hardcode_direct, $1)=yes
7930 + _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
7934 + if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7935 + tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7936 + _LT_AC_TAGVAR(archive_cmds, $1)="$tmp_archive_cmds"
7937 + supports_anon_versioning=no
7938 + case `$LD -v 2>/dev/null` in
7939 + *\ [01].* | *\ 2.[[0-9]].* | *\ 2.10.*) ;; # catch versions < 2.11
7940 + *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
7941 + *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
7942 + *\ 2.11.*) ;; # other 2.11 versions
7943 + *) supports_anon_versioning=yes ;;
7945 + if test $supports_anon_versioning = yes; then
7946 + _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $output_objdir/$libname.ver~
7947 +cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
7948 +$echo "local: *; };" >> $output_objdir/$libname.ver~
7949 + $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
7951 + _LT_AC_TAGVAR(archive_expsym_cmds, $1)="$tmp_archive_cmds"
7953 + _LT_AC_TAGVAR(link_all_deplibs, $1)=no
7955 + _LT_AC_TAGVAR(ld_shlibs, $1)=no
7958 - IFS="$ac_save_ifs"
7961 -enable_fast_install=AC_ENABLE_FAST_INSTALL_DEFAULT)dnl
7965 -# AC_DISABLE_FAST_INSTALL - set the default to --disable-fast-install
7966 -AC_DEFUN([AC_DISABLE_FAST_INSTALL],
7967 -[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
7968 -AC_ENABLE_FAST_INSTALL(no)])
7970 + if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7971 + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7972 + _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'
7974 + _LT_AC_TAGVAR(ld_shlibs, $1)=no
7979 + if test "$_LT_AC_TAGVAR(ld_shlibs, $1)" = yes; then
7980 + runpath_var=LD_RUN_PATH
7981 + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir'
7982 + _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
7983 + # ancient GNU ld didn't support --whole-archive et. al.
7984 + if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
7985 + _LT_AC_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
7987 + _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
7991 + # PORTME fill in a description of your system's linker (not GNU ld)
7994 + _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
7995 + _LT_AC_TAGVAR(always_export_symbols, $1)=yes
7996 + _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'
7997 + # Note: this linker hardcodes the directories in LIBPATH if there
7998 + # are no directories specified by -L.
7999 + _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
8000 + if test "$GCC" = yes && test -z "$link_static_flag"; then
8001 + # Neither direct hardcoding nor static linking is supported with a
8002 + # broken collect2.
8003 + _LT_AC_TAGVAR(hardcode_direct, $1)=unsupported
8008 + if test "$host_cpu" = ia64; then
8009 + # On IA64, the linker does run time linking by default, so we don't
8010 + # have to do anything special.
8011 + aix_use_runtimelinking=no
8012 + exp_sym_flag='-Bexport'
8015 + # If we're using GNU nm, then we don't want the "-C" option.
8016 + # -C means demangle to AIX nm, but means don't demangle with GNU nm
8017 + if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
8018 + _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'
8020 + _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'
8022 + aix_use_runtimelinking=no
8024 -# AC_LIBTOOL_PICMODE - implement the --with-pic flag
8025 -# Usage: AC_LIBTOOL_PICMODE[(MODE)]
8026 -# Where MODE is either `yes' or `no'. If omitted, it defaults to
8028 -AC_DEFUN([AC_LIBTOOL_PICMODE],
8029 -[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
8030 -pic_mode=ifelse($#,1,$1,default)])
8031 + # Test if we are trying to use run time linking or normal
8032 + # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8033 + # need to do runtime linking.
8034 + case $host_os in aix4.[[23]]|aix4.[[23]].*|aix5*)
8035 + for ld_flag in $LDFLAGS; do
8036 + if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8037 + aix_use_runtimelinking=yes
8043 + exp_sym_flag='-bexport'
8044 + no_entry_flag='-bnoentry'
8047 -# AC_PATH_TOOL_PREFIX - find a file program which can recognise shared library
8048 -AC_DEFUN([AC_PATH_TOOL_PREFIX],
8049 -[AC_MSG_CHECKING([for $1])
8050 -AC_CACHE_VAL(lt_cv_path_MAGIC_CMD,
8051 -[case $MAGIC_CMD in
8053 - lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8056 - lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
8059 - ac_save_MAGIC_CMD="$MAGIC_CMD"
8060 - IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
8061 -dnl $ac_dummy forces splitting on constant user-supplied paths.
8062 -dnl POSIX.2 word splitting is done only on the output of word expansions,
8063 -dnl not every word. This closes a longstanding sh security hole.
8064 - ac_dummy="ifelse([$2], , $PATH, [$2])"
8065 - for ac_dir in $ac_dummy; do
8066 - test -z "$ac_dir" && ac_dir=.
8067 - if test -f $ac_dir/$1; then
8068 - lt_cv_path_MAGIC_CMD="$ac_dir/$1"
8069 - if test -n "$file_magic_test_file"; then
8070 - case $deplibs_check_method in
8072 - file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
8073 - MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8074 - if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8075 - egrep "$file_magic_regex" > /dev/null; then
8077 + # When large executables or shared objects are built, AIX ld can
8078 + # have problems creating the table of contents. If linking a library
8079 + # or program results in "error TOC overflow" add -mminimal-toc to
8080 + # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
8081 + # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8083 + _LT_AC_TAGVAR(archive_cmds, $1)=''
8084 + _LT_AC_TAGVAR(hardcode_direct, $1)=yes
8085 + _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=':'
8086 + _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
8088 + if test "$GCC" = yes; then
8089 + case $host_os in aix4.[012]|aix4.[012].*)
8090 + # We only want to do this on AIX 4.2 and lower, the check
8091 + # below for broken collect2 doesn't work under 4.3+
8092 + collect2name=`${CC} -print-prog-name=collect2`
8093 + if test -f "$collect2name" && \
8094 + strings "$collect2name" | grep resolve_lib_name >/dev/null
8096 + # We have reworked collect2
8097 + _LT_AC_TAGVAR(hardcode_direct, $1)=yes
8101 -*** Warning: the command libtool uses to detect shared libraries,
8102 -*** $file_magic_cmd, produces output that libtool cannot recognize.
8103 -*** The result is that libtool may fail to recognize shared libraries
8104 -*** as such. This will affect the creation of libtool libraries that
8105 -*** depend on shared libraries, but programs linked with such libtool
8106 -*** libraries will work regardless of this problem. Nevertheless, you
8107 -*** may want to report the problem to your system manager and/or to
8108 -*** bug-libtool@gnu.org
8112 + # We have old collect2
8113 + _LT_AC_TAGVAR(hardcode_direct, $1)=unsupported
8114 + # It fails to find uninstalled libraries when the uninstalled
8115 + # path is not listed in the libpath. Setting hardcode_minus_L
8116 + # to unsupported forces relinking
8117 + _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
8118 + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
8119 + _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
8122 + shared_flag='-shared'
8125 + if test "$host_cpu" = ia64; then
8126 + # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8127 + # chokes on -Wl,-G. The following line is correct:
8130 + if test "$aix_use_runtimelinking" = yes; then
8131 + shared_flag='${wl}-G'
8133 + shared_flag='${wl}-bM:SRE'
8140 - IFS="$ac_save_ifs"
8141 - MAGIC_CMD="$ac_save_MAGIC_CMD"
8144 -MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8145 -if test -n "$MAGIC_CMD"; then
8146 - AC_MSG_RESULT($MAGIC_CMD)
8152 + # It seems that -bexpall does not export symbols beginning with
8153 + # underscore (_), so it is better to generate a list of symbols to export.
8154 + _LT_AC_TAGVAR(always_export_symbols, $1)=yes
8155 + if test "$aix_use_runtimelinking" = yes; then
8156 + # Warning - without using the other runtime loading flags (-brtl),
8157 + # -berok will link without error, but may produce a broken library.
8158 + _LT_AC_TAGVAR(allow_undefined_flag, $1)='-berok'
8159 + # Determine the default libpath from the value encoded in an empty executable.
8160 + _LT_AC_SYS_LIBPATH_AIX
8161 + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
8162 + _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"
8164 + if test "$host_cpu" = ia64; then
8165 + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib'
8166 + _LT_AC_TAGVAR(allow_undefined_flag, $1)="-z nodefs"
8167 + _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"
8169 + # Determine the default libpath from the value encoded in an empty executable.
8170 + _LT_AC_SYS_LIBPATH_AIX
8171 + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
8172 + # Warning - without using the other run time loading flags,
8173 + # -berok will link without error, but may produce a broken library.
8174 + _LT_AC_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok'
8175 + _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok'
8176 + # -bexpall does not export symbols beginning with underscore (_)
8177 + _LT_AC_TAGVAR(always_export_symbols, $1)=yes
8178 + # Exported symbols can be pulled into shared objects from archives
8179 + _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=' '
8180 + _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes
8181 + # This is similar to how AIX traditionally builds it's shared libraries.
8182 + _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'
8187 -# AC_PATH_MAGIC - find a file program which can recognise a shared library
8188 -AC_DEFUN([AC_PATH_MAGIC],
8189 -[AC_REQUIRE([AC_CHECK_TOOL_PREFIX])dnl
8190 -AC_PATH_TOOL_PREFIX(${ac_tool_prefix}file, /usr/bin:$PATH)
8191 -if test -z "$lt_cv_path_MAGIC_CMD"; then
8192 - if test -n "$ac_tool_prefix"; then
8193 - AC_PATH_TOOL_PREFIX(file, /usr/bin:$PATH)
8200 + _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)'
8201 + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
8202 + _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
8203 + # see comment about different semantics on the GNU ld section
8204 + _LT_AC_TAGVAR(ld_shlibs, $1)=no
8208 + _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)=-rdynamic
8211 -# AC_PROG_LD - find the path to the GNU or non-GNU linker
8212 -AC_DEFUN([AC_PROG_LD],
8213 -[AC_ARG_WITH(gnu-ld,
8214 -[ --with-gnu-ld assume the C compiler uses GNU ld [default=no]],
8215 -test "$withval" = no || with_gnu_ld=yes, with_gnu_ld=no)
8216 -AC_REQUIRE([AC_PROG_CC])dnl
8217 -AC_REQUIRE([AC_CANONICAL_HOST])dnl
8218 -AC_REQUIRE([AC_CANONICAL_BUILD])dnl
8219 -AC_REQUIRE([_LT_AC_LIBTOOL_SYS_PATH_SEPARATOR])dnl
8221 -if test "$GCC" = yes; then
8222 - # Check if gcc -print-prog-name=ld gives a path.
8223 - AC_MSG_CHECKING([for ld used by GCC])
8226 - # gcc leaves a trailing carriage return which upsets mingw
8227 - ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
8229 - ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
8232 - # Accept absolute paths.
8233 - [[\\/]]* | [[A-Za-z]]:[[\\/]]*)
8234 - re_direlt='/[[^/]][[^/]]*/\.\./'
8235 - # Canonicalize the path of ld
8236 - ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
8237 - while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
8238 - ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
8240 - test -z "$LD" && LD="$ac_prog"
8241 + cygwin* | mingw* | pw32*)
8242 + # When not using gcc, we currently assume that we are using
8243 + # Microsoft Visual C++.
8244 + # hardcode_libdir_flag_spec is actually meaningless, as there is
8245 + # no search path for DLLs.
8246 + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=' '
8247 + _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
8248 + # Tell ltmain to make .lib files, not .a files.
8250 + # Tell ltmain to make .dll files, not .so files.
8251 + shrext_cmds=".dll"
8252 + # FIXME: Setting linknames here is a bad hack.
8253 + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
8254 + # The linker will automatically build a .lib file if we build a DLL.
8255 + _LT_AC_TAGVAR(old_archive_From_new_cmds, $1)='true'
8256 + # FIXME: Should let the user specify the lib program.
8257 + _LT_AC_TAGVAR(old_archive_cmds, $1)='lib /OUT:$oldlib$oldobjs$old_deplibs'
8258 + fix_srcfile_path='`cygpath -w "$srcfile"`'
8259 + _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
8262 - # If it fails, then pretend we aren't using GCC.
8266 - # If it is relative, then search for the first ld in PATH.
8267 - with_gnu_ld=unknown
8270 -elif test "$with_gnu_ld" = yes; then
8271 - AC_MSG_CHECKING([for GNU ld])
8273 - AC_MSG_CHECKING([for non-GNU ld])
8275 -AC_CACHE_VAL(lt_cv_path_LD,
8276 -[if test -z "$LD"; then
8277 - IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8278 - for ac_dir in $PATH; do
8279 - test -z "$ac_dir" && ac_dir=.
8280 - if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
8281 - lt_cv_path_LD="$ac_dir/$ac_prog"
8282 - # Check to see if the program is GNU ld. I'd rather use --version,
8283 - # but apparently some GNU ld's only accept -v.
8284 - # Break only if it was the GNU/non-GNU ld that we prefer.
8285 - if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
8286 - test "$with_gnu_ld" != no && break
8288 + darwin* | rhapsody*)
8289 + if test "$GXX" = yes ; then
8290 + _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
8291 + case "$host_os" in
8292 + rhapsody* | darwin1.[[012]])
8293 + _LT_AC_TAGVAR(allow_undefined_flag, $1)='-undefined suppress'
8295 + *) # Darwin 1.3 on
8296 + if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
8297 + _LT_AC_TAGVAR(allow_undefined_flag, $1)='-flat_namespace -undefined suppress'
8299 - test "$with_gnu_ld" != yes && break
8300 + case ${MACOSX_DEPLOYMENT_TARGET} in
8302 + _LT_AC_TAGVAR(allow_undefined_flag, $1)='-flat_namespace -undefined suppress'
8305 + _LT_AC_TAGVAR(allow_undefined_flag, $1)='-undefined dynamic_lookup'
8311 + lt_int_apple_cc_single_mod=no
8312 + output_verbose_link_cmd='echo'
8313 + if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
8314 + lt_int_apple_cc_single_mod=yes
8316 + if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
8317 + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
8319 + _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'
8321 + _LT_AC_TAGVAR(module_cmds, $1)='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8322 + # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
8323 + if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
8324 + _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}'
8326 + _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}'
8328 + _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}'
8329 + _LT_AC_TAGVAR(hardcode_direct, $1)=no
8330 + _LT_AC_TAGVAR(hardcode_automatic, $1)=yes
8331 + _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
8332 + _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='-all_load $convenience'
8333 + _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
8335 + _LT_AC_TAGVAR(ld_shlibs, $1)=no
8338 - IFS="$ac_save_ifs"
8340 - lt_cv_path_LD="$LD" # Let the user override the test with a path.
8342 -LD="$lt_cv_path_LD"
8343 -if test -n "$LD"; then
8344 - AC_MSG_RESULT($LD)
8348 -test -z "$LD" && AC_MSG_ERROR([no acceptable ld found in \$PATH])
8354 -AC_DEFUN([AC_PROG_LD_GNU],
8355 -[AC_CACHE_CHECK([if the linker ($LD) is GNU ld], lt_cv_prog_gnu_ld,
8356 -[# I'd rather use --version here, but apparently some GNU ld's only accept -v.
8357 -if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
8358 - lt_cv_prog_gnu_ld=yes
8360 - lt_cv_prog_gnu_ld=no
8362 -with_gnu_ld=$lt_cv_prog_gnu_ld
8365 + _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8366 + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
8367 + _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
8370 -# AC_PROG_LD_RELOAD_FLAG - find reload flag for linker
8371 -# -- PORTME Some linkers may need a different reload flag.
8372 -AC_DEFUN([AC_PROG_LD_RELOAD_FLAG],
8373 -[AC_CACHE_CHECK([for $LD option to reload object files], lt_cv_ld_reload_flag,
8374 -[lt_cv_ld_reload_flag='-r'])
8375 -reload_flag=$lt_cv_ld_reload_flag
8376 -test -n "$reload_flag" && reload_flag=" $reload_flag"
8379 + _LT_AC_TAGVAR(ld_shlibs, $1)=no
8382 -# AC_DEPLIBS_CHECK_METHOD - how to check for library dependencies
8383 -# -- PORTME fill in with the dynamic library characteristics
8384 -AC_DEFUN([AC_DEPLIBS_CHECK_METHOD],
8385 -[AC_CACHE_CHECK([how to recognise dependent libraries],
8386 -lt_cv_deplibs_check_method,
8387 -[lt_cv_file_magic_cmd='$MAGIC_CMD'
8388 -lt_cv_file_magic_test_file=
8389 -lt_cv_deplibs_check_method='unknown'
8390 -# Need to set the preceding variable on all platforms that support
8391 -# interlibrary dependencies.
8392 -# 'none' -- dependencies not supported.
8393 -# `unknown' -- same as none, but documents that we really don't know.
8394 -# 'pass_all' -- all dependencies passed with no checks.
8395 -# 'test_compile' -- check by making test program.
8396 -# 'file_magic [[regex]]' -- check by looking for files in library path
8397 -# which responds to the $file_magic_cmd with a given egrep regex.
8398 -# If you have `file' or equivalent on your system and you're not sure
8399 -# whether `pass_all' will *always* work, you probably want this one.
8400 + # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8401 + # support. Future versions do this automatically, but an explicit c++rt0.o
8402 + # does not break anything, and helps significantly (at the cost of a little
8405 + _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8406 + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
8407 + _LT_AC_TAGVAR(hardcode_direct, $1)=yes
8408 + _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
8413 - lt_cv_deplibs_check_method=pass_all
8415 + # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8417 + _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8418 + _LT_AC_TAGVAR(hardcode_direct, $1)=yes
8419 + _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
8420 + _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
8424 - lt_cv_deplibs_check_method=pass_all
8426 + # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8427 + freebsd* | kfreebsd*-gnu)
8428 + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8429 + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
8430 + _LT_AC_TAGVAR(hardcode_direct, $1)=yes
8431 + _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
8435 - lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (shared object|dynamic lib)'
8436 - lt_cv_file_magic_cmd='/usr/bin/file -L'
8437 - lt_cv_file_magic_test_file=/shlib/libc.so
8440 + if test "$GCC" = yes; then
8441 + _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'
8443 + _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'
8445 + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
8446 + _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
8447 + _LT_AC_TAGVAR(hardcode_direct, $1)=yes
8449 + # hardcode_minus_L: Not really in the search PATH,
8450 + # but as the default location of the library.
8451 + _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
8452 + _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
8455 -cygwin* | mingw* | pw32*)
8456 - lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
8457 - lt_cv_file_magic_cmd='$OBJDUMP -f'
8459 + hpux10* | hpux11*)
8460 + if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8461 + case "$host_cpu" in
8463 + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8466 + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8470 + case "$host_cpu" in
8472 + _LT_AC_TAGVAR(archive_cmds, $1)='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
8475 + _LT_AC_TAGVAR(archive_cmds, $1)='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8479 + if test "$with_gnu_ld" = no; then
8480 + case "$host_cpu" in
8482 + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
8483 + _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='+b $libdir'
8484 + _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
8485 + _LT_AC_TAGVAR(hardcode_direct, $1)=no
8486 + _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
8489 + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
8490 + _LT_AC_TAGVAR(hardcode_direct, $1)=no
8491 + _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
8493 + # hardcode_minus_L: Not really in the search PATH,
8494 + # but as the default location of the library.
8495 + _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
8498 + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
8499 + _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
8500 + _LT_AC_TAGVAR(hardcode_direct, $1)=yes
8501 + _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
8503 + # hardcode_minus_L: Not really in the search PATH,
8504 + # but as the default location of the library.
8505 + _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
8511 -darwin* | rhapsody*)
8512 - lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
8513 - lt_cv_file_magic_cmd='/usr/bin/file -L'
8514 - case "$host_os" in
8515 - rhapsody* | darwin1.[[012]])
8516 - lt_cv_file_magic_test_file=`echo /System/Library/Frameworks/System.framework/Versions/*/System | head -1`
8518 - *) # Darwin 1.3 on
8519 - lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
8523 + irix5* | irix6* | nonstopux*)
8524 + if test "$GCC" = yes; then
8525 + _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'
8527 + _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'
8528 + _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='-rpath $libdir'
8530 + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
8531 + _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
8532 + _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
8536 - if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
8539 - # Not sure whether the presence of OpenBSD here was a mistake.
8540 - # Let's accept both of them until this is cleared up.
8541 - lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[[3-9]]86 (compact )?demand paged shared library'
8542 - lt_cv_file_magic_cmd=/usr/bin/file
8543 - lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
8544 + netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
8545 + if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8546 + _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
8548 + _LT_AC_TAGVAR(archive_cmds, $1)='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
8550 + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
8551 + _LT_AC_TAGVAR(hardcode_direct, $1)=yes
8552 + _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
8556 + _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8557 + _LT_AC_TAGVAR(hardcode_direct, $1)=yes
8558 + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
8559 + _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
8560 + _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
8564 + _LT_AC_TAGVAR(hardcode_direct, $1)=yes
8565 + _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
8566 + if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8567 + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8568 + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
8569 + _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
8572 + openbsd[[01]].* | openbsd2.[[0-7]] | openbsd2.[[0-7]].*)
8573 + _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8574 + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
8577 + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8578 + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
8585 + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
8586 + _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
8587 + _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
8588 + _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'
8589 + _LT_AC_TAGVAR(old_archive_From_new_cmds, $1)='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8593 + if test "$GCC" = yes; then
8594 + _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
8595 + _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'
8597 + _LT_AC_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
8598 + _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'
8600 + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
8601 + _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
8605 - lt_cv_deplibs_check_method=pass_all
8610 - lt_cv_deplibs_check_method=pass_all
8612 + osf4* | osf5*) # as osf3* with the addition of -msym flag
8613 + if test "$GCC" = yes; then
8614 + _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
8615 + _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'
8616 + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
8618 + _LT_AC_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
8619 + _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'
8620 + _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~
8621 + $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'
8623 -hpux10.20*|hpux11*)
8624 - lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|PA-RISC[[0-9]].[[0-9]]) shared library'
8625 - lt_cv_file_magic_cmd=/usr/bin/file
8626 - lt_cv_file_magic_test_file=/usr/lib/libc.sl
8628 + # Both c and cxx compiler support -rpath directly
8629 + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
8631 + _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
8634 -irix5* | irix6* | nonstopux*)
8636 - irix5* | nonstopux*)
8637 - # this will be overridden with pass_all, but let us keep it just in case
8638 - lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
8642 - *-32|*"-32 ") libmagic=32-bit;;
8643 - *-n32|*"-n32 ") libmagic=N32;;
8644 - *-64|*"-64 ") libmagic=64-bit;;
8645 - *) libmagic=never-match;;
8647 - # this will be overridden with pass_all, but let us keep it just in case
8648 - lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[[1234]] dynamic lib MIPS - version 1"
8651 - lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
8652 - lt_cv_deplibs_check_method=pass_all
8655 + _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8656 + _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
8657 + _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport'
8658 + runpath_var=LD_RUN_PATH
8659 + hardcode_runpath_var=yes
8662 -# This must be Linux ELF.
8665 - alpha* | hppa* | i*86 | mips | mipsel | powerpc* | sparc* | ia64* | arm* | m68k)
8666 - lt_cv_deplibs_check_method=pass_all ;;
8668 - # glibc up to 2.1.1 does not perform some relocations on ARM
8669 - lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB (shared object|dynamic lib )' ;;
8671 - lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
8674 + _LT_AC_TAGVAR(no_undefined_flag, $1)=' -z text'
8675 + if test "$GCC" = yes; then
8676 + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8677 + _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8678 + $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
8680 + _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8681 + _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8682 + $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
8684 + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
8685 + _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
8687 + solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
8688 + *) # Supported since Solaris 2.6 (maybe 2.5.1?)
8689 + _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract' ;;
8691 + _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
8695 - if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
8696 - lt_cv_deplibs_check_method='match_pattern /lib[[^/\.]]+\.so\.[[0-9]]+\.[[0-9]]+$'
8698 - lt_cv_deplibs_check_method='match_pattern /lib[[^/\.]]+\.so$'
8702 + if test "x$host_vendor" = xsequent; then
8703 + # Use $CC to link under sequent, because it throws in some extra .o
8704 + # files that make .init and .fini sections work.
8705 + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8707 + _LT_AC_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8709 + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
8710 + _LT_AC_TAGVAR(hardcode_direct, $1)=yes
8711 + _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
8712 + _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
8716 - lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (executable|dynamic lib)'
8717 - lt_cv_file_magic_cmd=/usr/bin/file
8718 - lt_cv_file_magic_test_file=/usr/lib/libnls.so
8721 + case $host_vendor in
8723 + _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8724 + _LT_AC_TAGVAR(hardcode_direct, $1)=yes # is this really true???
8727 + ## LD is ld it makes a PLAMLIB
8728 + ## CC just makes a GrossModule.
8729 + _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8730 + _LT_AC_TAGVAR(reload_cmds, $1)='$CC -r -o $output$reload_objs'
8731 + _LT_AC_TAGVAR(hardcode_direct, $1)=no
8734 + _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8735 + _LT_AC_TAGVAR(hardcode_direct, $1)=no #Motorola manual says yes, but my tests say they lie
8738 + runpath_var='LD_RUN_PATH'
8739 + _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
8743 - lt_cv_file_magic_cmd=/usr/bin/file
8744 - lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
8745 - if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8746 - lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB shared object'
8748 - lt_cv_deplibs_check_method='file_magic OpenBSD.* shared library'
8752 + _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8753 + _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
8754 + _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='-Bexport'
8757 -osf3* | osf4* | osf5*)
8758 - # this will be overridden with pass_all, but let us keep it just in case
8759 - lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
8760 - lt_cv_file_magic_test_file=/shlib/libc.so
8761 - lt_cv_deplibs_check_method=pass_all
8764 + if test -d /usr/nec; then
8765 + _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8766 + _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
8767 + runpath_var=LD_RUN_PATH
8768 + hardcode_runpath_var=yes
8769 + _LT_AC_TAGVAR(ld_shlibs, $1)=yes
8774 - lt_cv_deplibs_check_method=pass_all
8777 + _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8778 + _LT_AC_TAGVAR(hardcode_direct, $1)=yes
8779 + _LT_AC_TAGVAR(hardcode_minus_L, $1)=no
8780 + _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
8781 + hardcode_runpath_var=yes
8782 + runpath_var=LD_RUN_PATH
8786 - lt_cv_deplibs_check_method=pass_all
8787 - lt_cv_file_magic_test_file=/lib/libc.so
8789 + sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[[78]]* | unixware7*)
8790 + _LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z ${wl}text'
8791 + if test "$GCC" = yes; then
8792 + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8794 + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8796 + runpath_var='LD_RUN_PATH'
8797 + _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
8800 -sysv5uw[[78]]* | sysv4*uw2*)
8801 - lt_cv_deplibs_check_method=pass_all
8804 + _LT_AC_TAGVAR(no_undefined_flag, $1)=' -z text'
8805 + # $CC -shared without GNU ld will not create a library from C++
8806 + # object files and a static libstdc++, better avoid it by now
8807 + _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8808 + _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8809 + $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
8810 + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=
8811 + _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
8812 + runpath_var='LD_RUN_PATH'
8815 -sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
8816 - case $host_vendor in
8818 - 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]]'
8819 - lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
8822 - lt_cv_deplibs_check_method=pass_all
8825 - lt_cv_file_magic_cmd='/bin/file'
8826 - lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB (shared object|dynamic lib )'
8829 - lt_cv_file_magic_cmd='/bin/file'
8830 - lt_cv_deplibs_check_method="file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB dynamic lib"
8831 - lt_cv_file_magic_test_file=/lib/libc.so
8834 - lt_cv_deplibs_check_method=pass_all
8840 -file_magic_cmd=$lt_cv_file_magic_cmd
8841 -deplibs_check_method=$lt_cv_deplibs_check_method
8843 + _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8844 + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
8845 + _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
8849 + _LT_AC_TAGVAR(ld_shlibs, $1)=no
8854 +AC_MSG_RESULT([$_LT_AC_TAGVAR(ld_shlibs, $1)])
8855 +test "$_LT_AC_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no
8857 +variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
8858 +if test "$GCC" = yes; then
8859 + variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
8862 -# AC_PROG_NM - find the path to a BSD-compatible name lister
8863 -AC_DEFUN([AC_PROG_NM],
8864 -[AC_REQUIRE([_LT_AC_LIBTOOL_SYS_PATH_SEPARATOR])dnl
8865 -AC_MSG_CHECKING([for BSD-compatible nm])
8866 -AC_CACHE_VAL(lt_cv_path_NM,
8867 -[if test -n "$NM"; then
8868 - # Let the user override the test.
8869 - lt_cv_path_NM="$NM"
8871 - IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8872 - for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
8873 - test -z "$ac_dir" && ac_dir=.
8874 - tmp_nm=$ac_dir/${ac_tool_prefix}nm
8875 - if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then
8876 - # Check to see if the nm accepts a BSD-compat flag.
8877 - # Adding the `sed 1q' prevents false positives on HP-UX, which says:
8878 - # nm: unknown option "B" ignored
8879 - # Tru64's nm complains that /dev/null is an invalid object file
8880 - if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then
8881 - lt_cv_path_NM="$tmp_nm -B"
8883 - elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
8884 - lt_cv_path_NM="$tmp_nm -p"
8887 +# Do we need to explicitly link libc?
8889 +case "x$_LT_AC_TAGVAR(archive_cmds_need_lc, $1)" in
8891 + # Assume -lc should be added
8892 + _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes
8894 + if test "$enable_shared" = yes && test "$GCC" = yes; then
8895 + case $_LT_AC_TAGVAR(archive_cmds, $1) in
8897 + # FIXME: we may have to deal with multi-command sequences.
8900 + # Test whether the compiler implicitly links with -lc since on some
8901 + # systems, -lgcc has to come before -lc. If gcc already passes -lc
8902 + # to ld, don't add -lc before -lgcc.
8903 + AC_MSG_CHECKING([whether -lc should be explicitly linked in])
8905 + printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8907 + if AC_TRY_EVAL(ac_compile) 2>conftest.err; then
8910 + libobjs=conftest.$ac_objext
8912 + wl=$_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)
8918 + lt_save_allow_undefined_flag=$_LT_AC_TAGVAR(allow_undefined_flag, $1)
8919 + _LT_AC_TAGVAR(allow_undefined_flag, $1)=
8920 + if AC_TRY_EVAL(_LT_AC_TAGVAR(archive_cmds, $1) 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1)
8922 + _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
8924 + _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes
8926 + _LT_AC_TAGVAR(allow_undefined_flag, $1)=$lt_save_allow_undefined_flag
8928 - lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
8929 - continue # so that we can try to find one that supports BSD flags
8930 + cat conftest.err 1>&5
8934 - IFS="$ac_save_ifs"
8935 - test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
8937 -NM="$lt_cv_path_NM"
8938 -AC_MSG_RESULT([$NM])
8941 -# AC_CHECK_LIBM - check for math library
8942 -AC_DEFUN([AC_CHECK_LIBM],
8943 -[AC_REQUIRE([AC_CANONICAL_HOST])dnl
8946 -*-*-beos* | *-*-cygwin* | *-*-pw32*)
8947 - # These system don't have libm
8950 - AC_CHECK_LIB(mw, _mwvalidcheckl, LIBM="-lmw")
8951 - AC_CHECK_LIB(m, main, LIBM="$LIBM -lm")
8954 - AC_CHECK_LIB(m, main, LIBM="-lm")
8956 + AC_MSG_RESULT([$_LT_AC_TAGVAR(archive_cmds_need_lc, $1)])
8963 +])# AC_LIBTOOL_PROG_LD_SHLIBS
8965 -# AC_LIBLTDL_CONVENIENCE[(dir)] - sets LIBLTDL to the link flags for
8966 -# the libltdl convenience library and LTDLINCL to the include flags for
8967 -# the libltdl header and adds --enable-ltdl-convenience to the
8968 -# configure arguments. Note that LIBLTDL and LTDLINCL are not
8969 -# AC_SUBSTed, nor is AC_CONFIG_SUBDIRS called. If DIR is not
8970 -# provided, it is assumed to be `libltdl'. LIBLTDL will be prefixed
8971 -# with '${top_builddir}/' and LTDLINCL will be prefixed with
8972 -# '${top_srcdir}/' (note the single quotes!). If your package is not
8973 -# flat and you're not using automake, define top_builddir and
8974 -# top_srcdir appropriately in the Makefiles.
8975 -AC_DEFUN([AC_LIBLTDL_CONVENIENCE],
8976 -[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
8977 - case $enable_ltdl_convenience in
8978 - no) AC_MSG_ERROR([this package needs a convenience libltdl]) ;;
8979 - "") enable_ltdl_convenience=yes
8980 - ac_configure_args="$ac_configure_args --enable-ltdl-convenience" ;;
8982 - LIBLTDL='${top_builddir}/'ifelse($#,1,[$1],['libltdl'])/libltdlc.la
8983 - LTDLINCL='-I${top_srcdir}/'ifelse($#,1,[$1],['libltdl'])
8984 - # For backwards non-gettext consistent compatibility...
8985 - INCLTDL="$LTDLINCL"
8988 -# AC_LIBLTDL_INSTALLABLE[(dir)] - sets LIBLTDL to the link flags for
8989 -# the libltdl installable library and LTDLINCL to the include flags for
8990 -# the libltdl header and adds --enable-ltdl-install to the configure
8991 -# arguments. Note that LIBLTDL and LTDLINCL are not AC_SUBSTed, nor is
8992 -# AC_CONFIG_SUBDIRS called. If DIR is not provided and an installed
8993 -# libltdl is not found, it is assumed to be `libltdl'. LIBLTDL will
8994 -# be prefixed with '${top_builddir}/' and LTDLINCL will be prefixed
8995 -# with '${top_srcdir}/' (note the single quotes!). If your package is
8996 -# not flat and you're not using automake, define top_builddir and
8997 -# top_srcdir appropriately in the Makefiles.
8998 -# In the future, this macro may have to be called after AC_PROG_LIBTOOL.
8999 -AC_DEFUN([AC_LIBLTDL_INSTALLABLE],
9000 -[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
9001 - AC_CHECK_LIB(ltdl, main,
9002 - [test x"$enable_ltdl_install" != xyes && enable_ltdl_install=no],
9003 - [if test x"$enable_ltdl_install" = xno; then
9004 - AC_MSG_WARN([libltdl not installed, but installation disabled])
9006 - enable_ltdl_install=yes
9009 - if test x"$enable_ltdl_install" = x"yes"; then
9010 - ac_configure_args="$ac_configure_args --enable-ltdl-install"
9011 - LIBLTDL='${top_builddir}/'ifelse($#,1,[$1],['libltdl'])/libltdl.la
9012 - LTDLINCL='-I${top_srcdir}/'ifelse($#,1,[$1],['libltdl'])
9014 - ac_configure_args="$ac_configure_args --enable-ltdl-install=no"
9018 - # For backwards non-gettext consistent compatibility...
9019 - INCLTDL="$LTDLINCL"
9021 +# _LT_AC_FILE_LTDLL_C
9022 +# -------------------
9023 +# Be careful that the start marker always follows a newline.
9024 +AC_DEFUN([_LT_AC_FILE_LTDLL_C], [
9025 +# /* ltdll.c starts here */
9026 +# #define WIN32_LEAN_AND_MEAN
9027 +# #include <windows.h>
9028 +# #undef WIN32_LEAN_AND_MEAN
9029 +# #include <stdio.h>
9031 +# #ifndef __CYGWIN__
9032 +# # ifdef __CYGWIN32__
9033 +# # define __CYGWIN__ __CYGWIN32__
9037 +# #ifdef __cplusplus
9040 +# BOOL APIENTRY DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved);
9041 +# #ifdef __cplusplus
9045 +# #ifdef __CYGWIN__
9046 +# #include <cygwin/cygwin_dll.h>
9047 +# DECLARE_CYGWIN_DLL( DllMain );
9049 +# HINSTANCE __hDllInstance_base;
9052 +# DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved)
9054 +# __hDllInstance_base = hInst;
9057 +# /* ltdll.c ends here */
9058 +])# _LT_AC_FILE_LTDLL_C
9061 +# _LT_AC_TAGVAR(VARNAME, [TAGNAME])
9062 +# ---------------------------------
9063 +AC_DEFUN([_LT_AC_TAGVAR], [ifelse([$2], [], [$1], [$1_$2])])
9067 AC_DEFUN([AM_PROG_LIBTOOL], [AC_PROG_LIBTOOL])
9068 @@ -3709,6 +6828,16 @@
9069 # This is just to silence aclocal about the macro not being used
9070 ifelse([AC_DISABLE_FAST_INSTALL])
9072 +AC_DEFUN([LT_AC_PROG_GCJ],
9073 +[AC_CHECK_TOOL(GCJ, gcj, no)
9074 + test "x${GCJFLAGS+set}" = xset || GCJFLAGS="-g -O2"
9075 + AC_SUBST(GCJFLAGS)
9078 +AC_DEFUN([LT_AC_PROG_RC],
9079 +[AC_CHECK_TOOL(RC, windres, no)
9082 # NOTE: This macro has been submitted for inclusion into #
9083 # GNU Autoconf as AC_PROG_SED. When it is available in #
9084 # a released version of Autoconf we should remove this #
9085 @@ -3722,79 +6851,51 @@
9086 AC_CACHE_VAL(lt_cv_path_SED,
9087 [# Loop through the user's path and test for sed and gsed.
9088 # Then use that list of sed's as ones to test for truncation.
9089 -as_executable_p="test -f"
9090 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9094 test -z "$as_dir" && as_dir=.
9095 - for ac_prog in sed gsed; do
9096 + for lt_ac_prog in sed gsed; do
9097 for ac_exec_ext in '' $ac_executable_extensions; do
9098 - if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
9099 - _sed_list="$_sed_list $as_dir/$ac_prog$ac_exec_ext"
9100 + if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
9101 + lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
9107 - # Create a temporary directory, and hook for its removal unless debugging.
9110 - trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
9111 - trap '{ (exit 1); exit 1; }' 1 2 13 15
9114 -# Create a (secure) tmp directory for tmp files.
9117 - tmp=`(umask 077 && mktemp -d -q "$TMPDIR/sedXXXXXX") 2>/dev/null` &&
9118 - test -n "$tmp" && test -d "$tmp"
9121 - tmp=$TMPDIR/sed$$-$RANDOM
9122 - (umask 077 && mkdir $tmp)
9125 - echo "$me: cannot create a temporary directory in $TMPDIR" >&2
9126 - { (exit 1); exit 1; }
9130 - # Add /usr/xpg4/bin/sed as it is typically found on Solaris
9131 - # along with /bin/sed that truncates output.
9132 - for _sed in $_sed_list /usr/xpg4/bin/sed; do
9133 - test ! -f ${_sed} && break
9134 - cat /dev/null > "$tmp/sed.in"
9136 - echo ${ECHO_N-$ac_n} "0123456789${ECHO_C-$ac_c}" >"$tmp/sed.in"
9137 - # Check for GNU sed and select it if it is found.
9138 - if "${_sed}" --version 2>&1 < /dev/null | egrep '(GNU)' > /dev/null; then
9139 - lt_cv_path_SED=${_sed}
9143 +# Add /usr/xpg4/bin/sed as it is typically found on Solaris
9144 +# along with /bin/sed that truncates output.
9145 +for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
9146 + test ! -f $lt_ac_sed && break
9147 + cat /dev/null > conftest.in
9149 + echo $ECHO_N "0123456789$ECHO_C" >conftest.in
9150 + # Check for GNU sed and select it if it is found.
9151 + if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
9152 + lt_cv_path_SED=$lt_ac_sed
9156 + cat conftest.in conftest.in >conftest.tmp
9157 + mv conftest.tmp conftest.in
9158 + cp conftest.in conftest.nl
9159 + echo >>conftest.nl
9160 + $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
9161 + cmp -s conftest.out conftest.nl || break
9162 + # 10000 chars as input seems more than enough
9163 + test $lt_ac_count -gt 10 && break
9164 + lt_ac_count=`expr $lt_ac_count + 1`
9165 + if test $lt_ac_count -gt $lt_ac_max; then
9166 + lt_ac_max=$lt_ac_count
9167 + lt_cv_path_SED=$lt_ac_sed
9170 - cat "$tmp/sed.in" "$tmp/sed.in" >"$tmp/sed.tmp"
9171 - mv "$tmp/sed.tmp" "$tmp/sed.in"
9172 - cp "$tmp/sed.in" "$tmp/sed.nl"
9173 - echo >>"$tmp/sed.nl"
9174 - ${_sed} -e 's/a$//' < "$tmp/sed.nl" >"$tmp/sed.out" || break
9175 - cmp -s "$tmp/sed.out" "$tmp/sed.nl" || break
9176 - # 40000 chars as input seems more than enough
9177 - test $_count -gt 10 && break
9178 - _count=`expr $_count + 1`
9179 - if test $_count -gt $_max; then
9181 - lt_cv_path_SED=$_sed
9187 +SED=$lt_cv_path_SED
9189 -if test "X$SED" != "X"; then
9190 - lt_cv_path_SED=$SED
9192 - SED=$lt_cv_path_SED
9194 AC_MSG_RESULT([$SED])
9197 diff -urN linux-atm.old/configure linux-atm.dev/configure
9198 --- linux-atm.old/configure 2005-08-23 01:12:10.846787000 +0200
9199 +++ linux-atm.dev/configure 2005-08-23 01:12:41.187175024 +0200
9202 # Guess values for system-dependent variables and create Makefiles.
9203 -# Generated by GNU Autoconf 2.57.
9204 +# Generated by GNU Autoconf 2.59.
9206 -# Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
9207 -# Free Software Foundation, Inc.
9208 +# Copyright (C) 2003 Free Software Foundation, Inc.
9209 # This configure script is free software; the Free Software Foundation
9210 # gives unlimited permission to copy, distribute and modify it.
9211 ## --------------------- ##
9213 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
9216 +DUALCASE=1; export DUALCASE # for MKS sh
9218 # Support unset when possible.
9219 -if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
9220 +if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
9225 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
9226 LC_TELEPHONE LC_TIME
9228 - if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
9229 + if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
9230 eval $as_var=C; export $as_var
9233 @@ -218,16 +218,17 @@
9234 if mkdir -p . 2>/dev/null; then
9237 + test -d ./-p && rmdir ./-p
9241 as_executable_p="test -f"
9243 # Sed expression to map a string onto a valid CPP name.
9244 -as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
9245 +as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
9247 # Sed expression to map a string onto a valid variable name.
9248 -as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
9249 +as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
9255 # Be sure to have absolute paths.
9256 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
9257 - localstatedir libdir includedir oldincludedir infodir mandir
9258 + localstatedir libdir includedir oldincludedir infodir mandir
9260 eval ac_val=$`echo $ac_var`
9262 @@ -866,10 +867,10 @@
9263 # Try the directory containing this script, then its parent.
9264 ac_confdir=`(dirname "$0") 2>/dev/null ||
9265 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9266 - X"$0" : 'X\(//\)[^/]' \| \
9267 - X"$0" : 'X\(//\)$' \| \
9268 - X"$0" : 'X\(/\)' \| \
9269 - . : '\(.\)' 2>/dev/null ||
9270 + X"$0" : 'X\(//\)[^/]' \| \
9271 + X"$0" : 'X\(//\)$' \| \
9272 + X"$0" : 'X\(/\)' \| \
9273 + . : '\(.\)' 2>/dev/null ||
9275 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
9276 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
9279 Installation directories:
9280 --prefix=PREFIX install architecture-independent files in PREFIX
9281 - [$ac_default_prefix]
9282 + [$ac_default_prefix]
9283 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
9287 By default, \`make install' will install all the files in
9288 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
9289 @@ -1071,12 +1072,45 @@
9290 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
9291 ac_top_srcdir=$ac_top_builddir$srcdir ;;
9293 -# Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
9295 -ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
9296 -ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
9297 -ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
9298 -ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
9300 +# Do not use `cd foo && pwd` to compute absolute paths, because
9301 +# the directories may not exist.
9303 +.) ac_abs_builddir="$ac_dir";;
9306 + .) ac_abs_builddir=`pwd`;;
9307 + [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
9308 + *) ac_abs_builddir=`pwd`/"$ac_dir";;
9311 +case $ac_abs_builddir in
9312 +.) ac_abs_top_builddir=${ac_top_builddir}.;;
9314 + case ${ac_top_builddir}. in
9315 + .) ac_abs_top_builddir=$ac_abs_builddir;;
9316 + [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
9317 + *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
9320 +case $ac_abs_builddir in
9321 +.) ac_abs_srcdir=$ac_srcdir;;
9323 + case $ac_srcdir in
9324 + .) ac_abs_srcdir=$ac_abs_builddir;;
9325 + [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
9326 + *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
9329 +case $ac_abs_builddir in
9330 +.) ac_abs_top_srcdir=$ac_top_srcdir;;
9332 + case $ac_top_srcdir in
9333 + .) ac_abs_top_srcdir=$ac_abs_builddir;;
9334 + [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
9335 + *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
9340 # Check for guested configure; otherwise get Cygnus style configure.
9341 @@ -1087,13 +1121,13 @@
9343 $SHELL $ac_srcdir/configure --help=recursive
9344 elif test -f $ac_srcdir/configure.ac ||
9345 - test -f $ac_srcdir/configure.in; then
9346 + test -f $ac_srcdir/configure.in; then
9348 $ac_configure --help
9350 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
9357 @@ -1101,8 +1135,7 @@
9358 if $ac_init_version; then
9361 -Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
9362 -Free Software Foundation, Inc.
9363 +Copyright (C) 2003 Free Software Foundation, Inc.
9364 This configure script is free software; the Free Software Foundation
9365 gives unlimited permission to copy, distribute and modify it.
9367 @@ -1114,7 +1147,7 @@
9368 running configure, to aid debugging if configure makes a mistake.
9370 It was created by $as_me, which was
9371 -generated by GNU Autoconf 2.57. Invocation command line was
9372 +generated by GNU Autoconf 2.59. Invocation command line was
9376 @@ -1191,19 +1224,19 @@
9378 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
9379 if test $ac_must_keep_next = true; then
9380 - ac_must_keep_next=false # Got value, back to normal.
9381 + ac_must_keep_next=false # Got value, back to normal.
9384 - *=* | --config-cache | -C | -disable-* | --disable-* \
9385 - | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
9386 - | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
9387 - | -with-* | --with-* | -without-* | --without-* | --x)
9388 - case "$ac_configure_args0 " in
9389 - "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
9392 - -* ) ac_must_keep_next=true ;;
9395 + *=* | --config-cache | -C | -disable-* | --disable-* \
9396 + | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
9397 + | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
9398 + | -with-* | --with-* | -without-* | --without-* | --x)
9399 + case "$ac_configure_args0 " in
9400 + "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
9403 + -* ) ac_must_keep_next=true ;;
9406 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
9407 # Get rid of the leading space.
9408 @@ -1237,12 +1270,12 @@
9409 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
9412 - "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
9413 - s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
9414 + "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
9415 + s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
9419 - "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
9420 + "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
9424 @@ -1271,7 +1304,7 @@
9425 for ac_var in $ac_subst_files
9427 eval ac_val=$`echo $ac_var`
9428 - echo "$ac_var='"'"'$ac_val'"'"'"
9429 + echo "$ac_var='"'"'$ac_val'"'"'"
9433 @@ -1370,7 +1403,7 @@
9435 ac_cache_corrupted=false
9436 for ac_var in `(set) 2>&1 |
9437 - sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
9438 + sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
9439 eval ac_old_set=\$ac_cv_env_${ac_var}_set
9440 eval ac_new_set=\$ac_env_${ac_var}_set
9441 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
9442 @@ -1387,13 +1420,13 @@
9445 if test "x$ac_old_val" != "x$ac_new_val"; then
9446 - { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
9447 + { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
9448 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
9449 - { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
9450 + { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
9451 echo "$as_me: former value: $ac_old_val" >&2;}
9452 - { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
9453 + { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
9454 echo "$as_me: current value: $ac_new_val" >&2;}
9455 - ac_cache_corrupted=:
9456 + ac_cache_corrupted=:
9459 # Pass precious variables to config.status.
9460 @@ -1567,6 +1600,7 @@
9461 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
9462 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
9463 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
9464 +# OS/2's system install, which has a completely different semantic
9465 # ./install, which can be erroneously created by make from ./install.sh.
9466 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
9467 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
9468 @@ -1583,6 +1617,7 @@
9470 ./ | .// | /cC/* | \
9471 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
9472 + ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
9475 # OSF1 and SCO ODT 3.0 have their own names for install.
9476 @@ -1590,20 +1625,20 @@
9478 for ac_prog in ginstall scoinst install; do
9479 for ac_exec_ext in '' $ac_executable_extensions; do
9480 - if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
9481 - if test $ac_prog = install &&
9482 - grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
9483 - # AIX install. It has an incompatible calling convention.
9485 - elif test $ac_prog = install &&
9486 - grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
9487 - # program-specific install script used by HP pwplus--don't use.
9490 - ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
9494 + if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
9495 + if test $ac_prog = install &&
9496 + grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
9497 + # AIX install. It has an incompatible calling convention.
9499 + elif test $ac_prog = install &&
9500 + grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
9501 + # program-specific install script used by HP pwplus--don't use.
9504 + ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
9511 @@ -1693,7 +1728,7 @@
9513 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
9514 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
9515 -set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'`
9516 +set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
9517 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
9518 echo $ECHO_N "(cached) $ECHO_C" >&6
9520 @@ -2163,7 +2198,6 @@
9521 (exit $ac_status); }
9523 cat >conftest.$ac_ext <<_ACEOF
9524 -#line $LINENO "configure"
9527 cat confdefs.h >>conftest.$ac_ext
9528 @@ -2183,8 +2217,8 @@
9529 # Try to create an executable without -o first, disregard a.out.
9530 # It will help us diagnose broken compilers, and finding out an intuition
9532 -echo "$as_me:$LINENO: checking for C compiler default output" >&5
9533 -echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
9534 +echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
9535 +echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
9536 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
9537 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
9538 (eval $ac_link_default) 2>&5
9539 @@ -2204,23 +2238,23 @@
9540 test -f "$ac_file" || continue
9542 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
9546 - # This is the source file.
9548 + # This is the source file.
9551 - # We found the default executable, but exeext='' is most
9552 - # certainly right.
9554 + # We found the default executable, but exeext='' is most
9555 + # certainly right.
9558 - ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
9559 - # FIXME: I believe we export ac_cv_exeext for Libtool,
9560 - # but it would be cool to find out if it's true. Does anybody
9561 - # maintain Libtool? --akim.
9562 - export ac_cv_exeext
9564 + ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
9565 + # FIXME: I believe we export ac_cv_exeext for Libtool,
9566 + # but it would be cool to find out if it's true. Does anybody
9567 + # maintain Libtool? --akim.
9568 + export ac_cv_exeext
9576 @@ -2294,8 +2328,8 @@
9578 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
9579 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
9580 - export ac_cv_exeext
9582 + export ac_cv_exeext
9587 @@ -2320,7 +2354,6 @@
9588 echo $ECHO_N "(cached) $ECHO_C" >&6
9590 cat >conftest.$ac_ext <<_ACEOF
9591 -#line $LINENO "configure"
9594 cat confdefs.h >>conftest.$ac_ext
9595 @@ -2371,7 +2404,6 @@
9596 echo $ECHO_N "(cached) $ECHO_C" >&6
9598 cat >conftest.$ac_ext <<_ACEOF
9599 -#line $LINENO "configure"
9602 cat confdefs.h >>conftest.$ac_ext
9603 @@ -2391,11 +2423,20 @@
9605 rm -f conftest.$ac_objext
9606 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9607 - (eval $ac_compile) 2>&5
9608 + (eval $ac_compile) 2>conftest.er1
9610 + grep -v '^ *+' conftest.er1 >conftest.err
9611 + rm -f conftest.er1
9612 + cat conftest.err >&5
9613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9614 (exit $ac_status); } &&
9615 - { ac_try='test -s conftest.$ac_objext'
9616 + { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9617 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9618 + (eval $ac_try) 2>&5
9620 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
9621 + (exit $ac_status); }; } &&
9622 + { ac_try='test -s conftest.$ac_objext'
9623 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9626 @@ -2408,7 +2449,7 @@
9630 -rm -f conftest.$ac_objext conftest.$ac_ext
9631 +rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9632 ac_cv_c_compiler_gnu=$ac_compiler_gnu
9635 @@ -2424,7 +2465,6 @@
9636 echo $ECHO_N "(cached) $ECHO_C" >&6
9638 cat >conftest.$ac_ext <<_ACEOF
9639 -#line $LINENO "configure"
9642 cat confdefs.h >>conftest.$ac_ext
9643 @@ -2441,11 +2481,20 @@
9645 rm -f conftest.$ac_objext
9646 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9647 - (eval $ac_compile) 2>&5
9648 + (eval $ac_compile) 2>conftest.er1
9650 + grep -v '^ *+' conftest.er1 >conftest.err
9651 + rm -f conftest.er1
9652 + cat conftest.err >&5
9653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9654 (exit $ac_status); } &&
9655 - { ac_try='test -s conftest.$ac_objext'
9656 + { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9657 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9658 + (eval $ac_try) 2>&5
9660 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
9661 + (exit $ac_status); }; } &&
9662 + { ac_try='test -s conftest.$ac_objext'
9663 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9666 @@ -2458,7 +2507,7 @@
9670 -rm -f conftest.$ac_objext conftest.$ac_ext
9671 +rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9673 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
9674 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
9675 @@ -2485,7 +2534,6 @@
9676 ac_cv_prog_cc_stdc=no
9678 cat >conftest.$ac_ext <<_ACEOF
9679 -#line $LINENO "configure"
9682 cat confdefs.h >>conftest.$ac_ext
9683 @@ -2513,6 +2561,16 @@
9688 +/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
9689 + function prototypes and stuff, but not '\xHH' hex character constants.
9690 + These don't provoke an error unfortunately, instead are silently treated
9691 + as 'x'. The following induces an error, until -std1 is added to get
9692 + proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
9693 + array size at least. It's necessary to write '\x00'==0 to get something
9694 + that's true only with -std1. */
9695 +int osf4_cc_array ['\x00' == 0 ? 1 : -1];
9697 int test (int i, double x);
9698 struct s1 {int (*f) (int a);};
9699 struct s2 {int (*f) (double a);};
9700 @@ -2539,11 +2597,20 @@
9701 CC="$ac_save_CC $ac_arg"
9702 rm -f conftest.$ac_objext
9703 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9704 - (eval $ac_compile) 2>&5
9705 + (eval $ac_compile) 2>conftest.er1
9707 + grep -v '^ *+' conftest.er1 >conftest.err
9708 + rm -f conftest.er1
9709 + cat conftest.err >&5
9710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9711 (exit $ac_status); } &&
9712 - { ac_try='test -s conftest.$ac_objext'
9713 + { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9714 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9715 + (eval $ac_try) 2>&5
9717 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
9718 + (exit $ac_status); }; } &&
9719 + { ac_try='test -s conftest.$ac_objext'
9720 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9723 @@ -2556,7 +2623,7 @@
9724 sed 's/^/| /' conftest.$ac_ext >&5
9727 -rm -f conftest.$ac_objext
9728 +rm -f conftest.err conftest.$ac_objext
9730 rm -f conftest.$ac_ext conftest.$ac_objext
9732 @@ -2584,11 +2651,20 @@
9734 rm -f conftest.$ac_objext
9735 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9736 - (eval $ac_compile) 2>&5
9737 + (eval $ac_compile) 2>conftest.er1
9739 + grep -v '^ *+' conftest.er1 >conftest.err
9740 + rm -f conftest.er1
9741 + cat conftest.err >&5
9742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9743 (exit $ac_status); } &&
9744 - { ac_try='test -s conftest.$ac_objext'
9745 + { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9746 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9747 + (eval $ac_try) 2>&5
9749 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
9750 + (exit $ac_status); }; } &&
9751 + { ac_try='test -s conftest.$ac_objext'
9752 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9755 @@ -2603,7 +2679,6 @@
9758 cat >conftest.$ac_ext <<_ACEOF
9759 -#line $LINENO "configure"
9762 cat confdefs.h >>conftest.$ac_ext
9763 @@ -2621,11 +2696,20 @@
9765 rm -f conftest.$ac_objext
9766 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9767 - (eval $ac_compile) 2>&5
9768 + (eval $ac_compile) 2>conftest.er1
9770 + grep -v '^ *+' conftest.er1 >conftest.err
9771 + rm -f conftest.er1
9772 + cat conftest.err >&5
9773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9774 (exit $ac_status); } &&
9775 - { ac_try='test -s conftest.$ac_objext'
9776 + { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9777 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9778 + (eval $ac_try) 2>&5
9780 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
9781 + (exit $ac_status); }; } &&
9782 + { ac_try='test -s conftest.$ac_objext'
9783 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9786 @@ -2638,9 +2722,8 @@
9790 -rm -f conftest.$ac_objext conftest.$ac_ext
9791 +rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9792 cat >conftest.$ac_ext <<_ACEOF
9793 -#line $LINENO "configure"
9796 cat confdefs.h >>conftest.$ac_ext
9797 @@ -2657,11 +2740,20 @@
9799 rm -f conftest.$ac_objext
9800 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9801 - (eval $ac_compile) 2>&5
9802 + (eval $ac_compile) 2>conftest.er1
9804 + grep -v '^ *+' conftest.er1 >conftest.err
9805 + rm -f conftest.er1
9806 + cat conftest.err >&5
9807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9808 (exit $ac_status); } &&
9809 - { ac_try='test -s conftest.$ac_objext'
9810 + { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9811 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9812 + (eval $ac_try) 2>&5
9814 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
9815 + (exit $ac_status); }; } &&
9816 + { ac_try='test -s conftest.$ac_objext'
9817 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9820 @@ -2673,7 +2765,7 @@
9821 sed 's/^/| /' conftest.$ac_ext >&5
9824 -rm -f conftest.$ac_objext conftest.$ac_ext
9825 +rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9828 if test -n "$ac_declaration"; then
9829 @@ -2687,7 +2779,7 @@
9830 sed 's/^/| /' conftest.$ac_ext >&5
9833 -rm -f conftest.$ac_objext conftest.$ac_ext
9834 +rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9836 ac_cpp='$CPP $CPPFLAGS'
9837 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9838 @@ -2788,7 +2880,6 @@
9839 ac_check_lib_save_LIBS=$LIBS
9841 cat >conftest.$ac_ext <<_ACEOF
9842 -#line $LINENO "configure"
9845 cat confdefs.h >>conftest.$ac_ext
9846 @@ -2812,11 +2903,20 @@
9848 rm -f conftest.$ac_objext conftest$ac_exeext
9849 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9850 - (eval $ac_link) 2>&5
9851 + (eval $ac_link) 2>conftest.er1
9853 + grep -v '^ *+' conftest.er1 >conftest.err
9854 + rm -f conftest.er1
9855 + cat conftest.err >&5
9856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9857 (exit $ac_status); } &&
9858 - { ac_try='test -s conftest$ac_exeext'
9859 + { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9860 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9861 + (eval $ac_try) 2>&5
9863 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
9864 + (exit $ac_status); }; } &&
9865 + { ac_try='test -s conftest$ac_exeext'
9866 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9869 @@ -2829,7 +2929,8 @@
9871 ac_cv_lib_fl_yywrap=no
9873 -rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9874 +rm -f conftest.err conftest.$ac_objext \
9875 + conftest$ac_exeext conftest.$ac_ext
9876 LIBS=$ac_check_lib_save_LIBS
9878 echo "$as_me:$LINENO: result: $ac_cv_lib_fl_yywrap" >&5
9879 @@ -2845,7 +2946,6 @@
9880 ac_check_lib_save_LIBS=$LIBS
9882 cat >conftest.$ac_ext <<_ACEOF
9883 -#line $LINENO "configure"
9886 cat confdefs.h >>conftest.$ac_ext
9887 @@ -2869,11 +2969,20 @@
9889 rm -f conftest.$ac_objext conftest$ac_exeext
9890 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9891 - (eval $ac_link) 2>&5
9892 + (eval $ac_link) 2>conftest.er1
9894 + grep -v '^ *+' conftest.er1 >conftest.err
9895 + rm -f conftest.er1
9896 + cat conftest.err >&5
9897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9898 (exit $ac_status); } &&
9899 - { ac_try='test -s conftest$ac_exeext'
9900 + { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9901 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9902 + (eval $ac_try) 2>&5
9904 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
9905 + (exit $ac_status); }; } &&
9906 + { ac_try='test -s conftest$ac_exeext'
9907 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9910 @@ -2886,7 +2995,8 @@
9912 ac_cv_lib_l_yywrap=no
9914 -rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9915 +rm -f conftest.err conftest.$ac_objext \
9916 + conftest$ac_exeext conftest.$ac_ext
9917 LIBS=$ac_check_lib_save_LIBS
9919 echo "$as_me:$LINENO: result: $ac_cv_lib_l_yywrap" >&5
9920 @@ -2948,11 +3058,20 @@
9922 rm -f conftest.$ac_objext conftest$ac_exeext
9923 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9924 - (eval $ac_link) 2>&5
9925 + (eval $ac_link) 2>conftest.er1
9927 + grep -v '^ *+' conftest.er1 >conftest.err
9928 + rm -f conftest.er1
9929 + cat conftest.err >&5
9930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9931 (exit $ac_status); } &&
9932 - { ac_try='test -s conftest$ac_exeext'
9933 + { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9934 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9935 + (eval $ac_try) 2>&5
9937 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
9938 + (exit $ac_status); }; } &&
9939 + { ac_try='test -s conftest$ac_exeext'
9940 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9943 @@ -2964,7 +3083,8 @@
9944 sed 's/^/| /' conftest.$ac_ext >&5
9947 -rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9948 +rm -f conftest.err conftest.$ac_objext \
9949 + conftest$ac_exeext conftest.$ac_ext
9951 rm -f "${LEX_OUTPUT_ROOT}.c"
9953 @@ -3033,6 +3153,7 @@
9954 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
9955 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
9956 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
9957 +# OS/2's system install, which has a completely different semantic
9958 # ./install, which can be erroneously created by make from ./install.sh.
9959 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
9960 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
9961 @@ -3049,6 +3170,7 @@
9963 ./ | .// | /cC/* | \
9964 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
9965 + ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
9968 # OSF1 and SCO ODT 3.0 have their own names for install.
9969 @@ -3056,20 +3178,20 @@
9971 for ac_prog in ginstall scoinst install; do
9972 for ac_exec_ext in '' $ac_executable_extensions; do
9973 - if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
9974 - if test $ac_prog = install &&
9975 - grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
9976 - # AIX install. It has an incompatible calling convention.
9978 - elif test $ac_prog = install &&
9979 - grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
9980 - # program-specific install script used by HP pwplus--don't use.
9983 - ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
9987 + if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
9988 + if test $ac_prog = install &&
9989 + grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
9990 + # AIX install. It has an incompatible calling convention.
9992 + elif test $ac_prog = install &&
9993 + grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
9994 + # program-specific install script used by HP pwplus--don't use.
9997 + ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
10004 @@ -3842,7 +3964,6 @@
10005 # On the NeXT, cc -E runs the code through the compiler's parser,
10006 # not just through cpp. "Syntax error" is here to catch this case.
10007 cat >conftest.$ac_ext <<_ACEOF
10008 -#line $LINENO "configure"
10011 cat confdefs.h >>conftest.$ac_ext
10012 @@ -3853,7 +3974,7 @@
10014 # include <assert.h>
10019 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10020 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10021 @@ -3865,6 +3986,7 @@
10022 (exit $ac_status); } >/dev/null; then
10023 if test -s conftest.err; then
10024 ac_cpp_err=$ac_c_preproc_warn_flag
10025 + ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10029 @@ -3885,7 +4007,6 @@
10030 # OK, works on sane cases. Now check whether non-existent headers
10031 # can be detected and how.
10032 cat >conftest.$ac_ext <<_ACEOF
10033 -#line $LINENO "configure"
10036 cat confdefs.h >>conftest.$ac_ext
10037 @@ -3903,6 +4024,7 @@
10038 (exit $ac_status); } >/dev/null; then
10039 if test -s conftest.err; then
10040 ac_cpp_err=$ac_c_preproc_warn_flag
10041 + ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10045 @@ -3949,7 +4071,6 @@
10046 # On the NeXT, cc -E runs the code through the compiler's parser,
10047 # not just through cpp. "Syntax error" is here to catch this case.
10048 cat >conftest.$ac_ext <<_ACEOF
10049 -#line $LINENO "configure"
10052 cat confdefs.h >>conftest.$ac_ext
10053 @@ -3960,7 +4081,7 @@
10055 # include <assert.h>
10060 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10061 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10062 @@ -3972,6 +4093,7 @@
10063 (exit $ac_status); } >/dev/null; then
10064 if test -s conftest.err; then
10065 ac_cpp_err=$ac_c_preproc_warn_flag
10066 + ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10070 @@ -3992,7 +4114,6 @@
10071 # OK, works on sane cases. Now check whether non-existent headers
10072 # can be detected and how.
10073 cat >conftest.$ac_ext <<_ACEOF
10074 -#line $LINENO "configure"
10077 cat confdefs.h >>conftest.$ac_ext
10078 @@ -4010,6 +4131,7 @@
10079 (exit $ac_status); } >/dev/null; then
10080 if test -s conftest.err; then
10081 ac_cpp_err=$ac_c_preproc_warn_flag
10082 + ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10086 @@ -4070,7 +4192,6 @@
10087 echo $ECHO_N "(cached) $ECHO_C" >&6
10089 cat >conftest.$ac_ext <<_ACEOF
10090 -#line $LINENO "configure"
10093 cat confdefs.h >>conftest.$ac_ext
10094 @@ -4091,11 +4212,20 @@
10096 rm -f conftest.$ac_objext
10097 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10098 - (eval $ac_compile) 2>&5
10099 + (eval $ac_compile) 2>conftest.er1
10101 + grep -v '^ *+' conftest.er1 >conftest.err
10102 + rm -f conftest.er1
10103 + cat conftest.err >&5
10104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10105 (exit $ac_status); } &&
10106 - { ac_try='test -s conftest.$ac_objext'
10107 + { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10108 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10109 + (eval $ac_try) 2>&5
10111 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
10112 + (exit $ac_status); }; } &&
10113 + { ac_try='test -s conftest.$ac_objext'
10114 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10115 (eval $ac_try) 2>&5
10117 @@ -4108,12 +4238,11 @@
10119 ac_cv_header_stdc=no
10121 -rm -f conftest.$ac_objext conftest.$ac_ext
10122 +rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10124 if test $ac_cv_header_stdc = yes; then
10125 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
10126 cat >conftest.$ac_ext <<_ACEOF
10127 -#line $LINENO "configure"
10130 cat confdefs.h >>conftest.$ac_ext
10131 @@ -4135,7 +4264,6 @@
10132 if test $ac_cv_header_stdc = yes; then
10133 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
10134 cat >conftest.$ac_ext <<_ACEOF
10135 -#line $LINENO "configure"
10138 cat confdefs.h >>conftest.$ac_ext
10139 @@ -4160,7 +4288,6 @@
10142 cat >conftest.$ac_ext <<_ACEOF
10143 -#line $LINENO "configure"
10146 cat confdefs.h >>conftest.$ac_ext
10147 @@ -4172,9 +4299,9 @@
10148 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
10150 # define ISLOWER(c) \
10151 - (('a' <= (c) && (c) <= 'i') \
10152 - || ('j' <= (c) && (c) <= 'r') \
10153 - || ('s' <= (c) && (c) <= 'z'))
10154 + (('a' <= (c) && (c) <= 'i') \
10155 + || ('j' <= (c) && (c) <= 'r') \
10156 + || ('s' <= (c) && (c) <= 'z'))
10157 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
10160 @@ -4185,7 +4312,7 @@
10162 for (i = 0; i < 256; i++)
10163 if (XOR (islower (i), ISLOWER (i))
10164 - || toupper (i) != TOUPPER (i))
10165 + || toupper (i) != TOUPPER (i))
10169 @@ -4235,7 +4362,7 @@
10172 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
10173 - inttypes.h stdint.h unistd.h
10174 + inttypes.h stdint.h unistd.h
10176 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10177 echo "$as_me:$LINENO: checking for $ac_header" >&5
10178 @@ -4244,7 +4371,6 @@
10179 echo $ECHO_N "(cached) $ECHO_C" >&6
10181 cat >conftest.$ac_ext <<_ACEOF
10182 -#line $LINENO "configure"
10185 cat confdefs.h >>conftest.$ac_ext
10186 @@ -4256,11 +4382,20 @@
10188 rm -f conftest.$ac_objext
10189 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10190 - (eval $ac_compile) 2>&5
10191 + (eval $ac_compile) 2>conftest.er1
10193 + grep -v '^ *+' conftest.er1 >conftest.err
10194 + rm -f conftest.er1
10195 + cat conftest.err >&5
10196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10197 (exit $ac_status); } &&
10198 - { ac_try='test -s conftest.$ac_objext'
10199 + { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10200 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10201 + (eval $ac_try) 2>&5
10203 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
10204 + (exit $ac_status); }; } &&
10205 + { ac_try='test -s conftest.$ac_objext'
10206 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10207 (eval $ac_try) 2>&5
10209 @@ -4273,7 +4408,7 @@
10211 eval "$as_ac_Header=no"
10213 -rm -f conftest.$ac_objext conftest.$ac_ext
10214 +rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10216 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10217 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10218 @@ -4304,7 +4439,6 @@
10219 echo "$as_me:$LINENO: checking $ac_header usability" >&5
10220 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10221 cat >conftest.$ac_ext <<_ACEOF
10222 -#line $LINENO "configure"
10225 cat confdefs.h >>conftest.$ac_ext
10226 @@ -4315,11 +4449,20 @@
10228 rm -f conftest.$ac_objext
10229 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10230 - (eval $ac_compile) 2>&5
10231 + (eval $ac_compile) 2>conftest.er1
10233 + grep -v '^ *+' conftest.er1 >conftest.err
10234 + rm -f conftest.er1
10235 + cat conftest.err >&5
10236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10237 (exit $ac_status); } &&
10238 - { ac_try='test -s conftest.$ac_objext'
10239 + { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10240 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10241 + (eval $ac_try) 2>&5
10243 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
10244 + (exit $ac_status); }; } &&
10245 + { ac_try='test -s conftest.$ac_objext'
10246 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10247 (eval $ac_try) 2>&5
10249 @@ -4332,7 +4475,7 @@
10251 ac_header_compiler=no
10253 -rm -f conftest.$ac_objext conftest.$ac_ext
10254 +rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10255 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10256 echo "${ECHO_T}$ac_header_compiler" >&6
10258 @@ -4340,7 +4483,6 @@
10259 echo "$as_me:$LINENO: checking $ac_header presence" >&5
10260 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10261 cat >conftest.$ac_ext <<_ACEOF
10262 -#line $LINENO "configure"
10265 cat confdefs.h >>conftest.$ac_ext
10266 @@ -4358,6 +4500,7 @@
10267 (exit $ac_status); } >/dev/null; then
10268 if test -s conftest.err; then
10269 ac_cpp_err=$ac_c_preproc_warn_flag
10270 + ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10274 @@ -4377,33 +4520,32 @@
10275 echo "${ECHO_T}$ac_header_preproc" >&6
10277 # So? What about this header?
10278 -case $ac_header_compiler:$ac_header_preproc in
10280 +case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10282 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10283 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10284 - { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10285 -echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10288 -## ------------------------------------ ##
10289 -## Report this to bug-autoconf@gnu.org. ##
10290 -## ------------------------------------ ##
10293 - sed "s/^/$as_me: WARNING: /" >&2
10294 + { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10295 +echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10296 + ac_header_preproc=yes
10300 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10301 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10302 - { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10303 -echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&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: see the Autoconf documentation" >&5
10307 +echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10308 + { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10309 +echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10310 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10311 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10312 + { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10313 +echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10316 -## ------------------------------------ ##
10317 -## Report this to bug-autoconf@gnu.org. ##
10318 -## ------------------------------------ ##
10319 +## ------------------------------------------ ##
10320 +## Report this to the AC_PACKAGE_NAME lists. ##
10321 +## ------------------------------------------ ##
10324 sed "s/^/$as_me: WARNING: /" >&2
10325 @@ -4414,7 +4556,7 @@
10326 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10327 echo $ECHO_N "(cached) $ECHO_C" >&6
10329 - eval "$as_ac_Header=$ac_header_preproc"
10330 + eval "$as_ac_Header=\$ac_header_preproc"
10332 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10333 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10334 @@ -4749,7 +4891,7 @@
10337 # Find out which ABI we are using.
10338 - echo '#line 4752 "configure"' > conftest.$ac_ext
10339 + echo '#line 4894 "configure"' > conftest.$ac_ext
10340 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10341 (eval $ac_compile) 2>&5
10343 @@ -4788,7 +4930,6 @@
10344 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10346 cat >conftest.$ac_ext <<_ACEOF
10347 -#line $LINENO "configure"
10350 cat confdefs.h >>conftest.$ac_ext
10351 @@ -4805,11 +4946,20 @@
10353 rm -f conftest.$ac_objext conftest$ac_exeext
10354 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10355 - (eval $ac_link) 2>&5
10356 + (eval $ac_link) 2>conftest.er1
10358 + grep -v '^ *+' conftest.er1 >conftest.err
10359 + rm -f conftest.er1
10360 + cat conftest.err >&5
10361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10362 (exit $ac_status); } &&
10363 - { ac_try='test -s conftest$ac_exeext'
10364 + { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10365 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10366 + (eval $ac_try) 2>&5
10368 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
10369 + (exit $ac_status); }; } &&
10370 + { ac_try='test -s conftest$ac_exeext'
10371 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10372 (eval $ac_try) 2>&5
10374 @@ -4822,7 +4972,8 @@
10376 lt_cv_cc_needs_belf=no
10378 -rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10379 +rm -f conftest.err conftest.$ac_objext \
10380 + conftest$ac_exeext conftest.$ac_ext
10382 ac_cpp='$CPP $CPPFLAGS'
10383 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10384 @@ -5117,7 +5268,6 @@
10385 save_CFLAGS="$CFLAGS"
10386 CFLAGS="$CFLAGS $lt_cv_prog_cc_pic -DPIC"
10387 cat >conftest.$ac_ext <<_ACEOF
10388 -#line $LINENO "configure"
10391 cat confdefs.h >>conftest.$ac_ext
10392 @@ -5134,11 +5284,20 @@
10394 rm -f conftest.$ac_objext
10395 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10396 - (eval $ac_compile) 2>&5
10397 + (eval $ac_compile) 2>conftest.er1
10399 + grep -v '^ *+' conftest.er1 >conftest.err
10400 + rm -f conftest.er1
10401 + cat conftest.err >&5
10402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10403 (exit $ac_status); } &&
10404 - { ac_try='test -s conftest.$ac_objext'
10405 + { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10406 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10407 + (eval $ac_try) 2>&5
10409 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
10410 + (exit $ac_status); }; } &&
10411 + { ac_try='test -s conftest.$ac_objext'
10412 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10413 (eval $ac_try) 2>&5
10415 @@ -5167,7 +5326,7 @@
10416 lt_cv_prog_cc_pic_works=no
10419 -rm -f conftest.$ac_objext conftest.$ac_ext
10420 +rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10421 CFLAGS="$save_CFLAGS"
10424 @@ -5205,7 +5364,6 @@
10425 save_LDFLAGS="$LDFLAGS"
10426 LDFLAGS="$LDFLAGS $lt_cv_prog_cc_static"
10427 cat >conftest.$ac_ext <<_ACEOF
10428 -#line $LINENO "configure"
10431 cat confdefs.h >>conftest.$ac_ext
10432 @@ -5222,11 +5380,20 @@
10434 rm -f conftest.$ac_objext conftest$ac_exeext
10435 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10436 - (eval $ac_link) 2>&5
10437 + (eval $ac_link) 2>conftest.er1
10439 + grep -v '^ *+' conftest.er1 >conftest.err
10440 + rm -f conftest.er1
10441 + cat conftest.err >&5
10442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10443 (exit $ac_status); } &&
10444 - { ac_try='test -s conftest$ac_exeext'
10445 + { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10446 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10447 + (eval $ac_try) 2>&5
10449 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
10450 + (exit $ac_status); }; } &&
10451 + { ac_try='test -s conftest$ac_exeext'
10452 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10453 (eval $ac_try) 2>&5
10455 @@ -5238,7 +5405,8 @@
10456 sed 's/^/| /' conftest.$ac_ext >&5
10459 -rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10460 +rm -f conftest.err conftest.$ac_objext \
10461 + conftest$ac_exeext conftest.$ac_ext
10462 LDFLAGS="$save_LDFLAGS"
10465 @@ -5278,7 +5446,7 @@
10466 save_CFLAGS="$CFLAGS"
10467 CFLAGS="$CFLAGS -o out/conftest2.$ac_objext"
10469 -if { (eval echo configure:5281: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>out/conftest.err; } && test -s out/conftest2.$ac_objext; then
10470 +if { (eval echo configure:5449: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>out/conftest.err; } && test -s out/conftest2.$ac_objext; then
10471 # The compiler can only warn and ignore the option if not recognized
10472 # So say no if there are warnings
10473 if test -s out/conftest.err; then
10474 @@ -5319,7 +5487,6 @@
10475 save_objext="$ac_objext"
10477 cat >conftest.$ac_ext <<_ACEOF
10478 -#line $LINENO "configure"
10481 cat confdefs.h >>conftest.$ac_ext
10482 @@ -5336,11 +5503,20 @@
10484 rm -f conftest.$ac_objext
10485 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10486 - (eval $ac_compile) 2>&5
10487 + (eval $ac_compile) 2>conftest.er1
10489 + grep -v '^ *+' conftest.er1 >conftest.err
10490 + rm -f conftest.er1
10491 + cat conftest.err >&5
10492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10493 (exit $ac_status); } &&
10494 - { ac_try='test -s conftest.$ac_objext'
10495 + { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10496 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10497 + (eval $ac_try) 2>&5
10499 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
10500 + (exit $ac_status); }; } &&
10501 + { ac_try='test -s conftest.$ac_objext'
10502 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10503 (eval $ac_try) 2>&5
10505 @@ -5359,7 +5535,7 @@
10506 sed 's/^/| /' conftest.$ac_ext >&5
10509 -rm -f conftest.$ac_objext conftest.$ac_ext
10510 +rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10511 ac_objext="$save_objext"
10512 CFLAGS="$save_CFLAGS"
10514 @@ -5404,7 +5580,6 @@
10515 CFLAGS="$CFLAGS -fno-rtti -fno-exceptions -c conftest.$ac_ext"
10516 compiler_rtti_exceptions=no
10517 cat >conftest.$ac_ext <<_ACEOF
10518 -#line $LINENO "configure"
10521 cat confdefs.h >>conftest.$ac_ext
10522 @@ -5421,11 +5596,20 @@
10524 rm -f conftest.$ac_objext
10525 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10526 - (eval $ac_compile) 2>&5
10527 + (eval $ac_compile) 2>conftest.er1
10529 + grep -v '^ *+' conftest.er1 >conftest.err
10530 + rm -f conftest.er1
10531 + cat conftest.err >&5
10532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10533 (exit $ac_status); } &&
10534 - { ac_try='test -s conftest.$ac_objext'
10535 + { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10536 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10537 + (eval $ac_try) 2>&5
10539 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
10540 + (exit $ac_status); }; } &&
10541 + { ac_try='test -s conftest.$ac_objext'
10542 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10543 (eval $ac_try) 2>&5
10545 @@ -5444,7 +5628,7 @@
10546 sed 's/^/| /' conftest.$ac_ext >&5
10549 -rm -f conftest.$ac_objext conftest.$ac_ext
10550 +rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10551 CFLAGS="$save_CFLAGS"
10552 echo "$as_me:$LINENO: result: $compiler_rtti_exceptions" >&5
10553 echo "${ECHO_T}$compiler_rtti_exceptions" >&6
10554 @@ -6704,21 +6888,28 @@
10555 echo $ECHO_N "(cached) $ECHO_C" >&6
10557 cat >conftest.$ac_ext <<_ACEOF
10558 -#line $LINENO "configure"
10561 cat confdefs.h >>conftest.$ac_ext
10562 cat >>conftest.$ac_ext <<_ACEOF
10563 /* end confdefs.h. */
10564 +/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
10565 + For example, HP-UX 11i <limits.h> declares gettimeofday. */
10566 +#define shl_load innocuous_shl_load
10568 /* System header to define __stub macros and hopefully few prototypes,
10569 which can conflict with char shl_load (); below.
10570 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10571 <limits.h> exists even on freestanding compilers. */
10574 # include <limits.h>
10576 # include <assert.h>
10581 /* Override any gcc2 internal prototype to avoid an error. */
10584 @@ -6749,11 +6940,20 @@
10586 rm -f conftest.$ac_objext conftest$ac_exeext
10587 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10588 - (eval $ac_link) 2>&5
10589 + (eval $ac_link) 2>conftest.er1
10591 + grep -v '^ *+' conftest.er1 >conftest.err
10592 + rm -f conftest.er1
10593 + cat conftest.err >&5
10594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10595 (exit $ac_status); } &&
10596 - { ac_try='test -s conftest$ac_exeext'
10597 + { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10598 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10599 + (eval $ac_try) 2>&5
10601 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
10602 + (exit $ac_status); }; } &&
10603 + { ac_try='test -s conftest$ac_exeext'
10604 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10605 (eval $ac_try) 2>&5
10607 @@ -6766,7 +6966,8 @@
10609 ac_cv_func_shl_load=no
10611 -rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10612 +rm -f conftest.err conftest.$ac_objext \
10613 + conftest$ac_exeext conftest.$ac_ext
10615 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
10616 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
10617 @@ -6781,7 +6982,6 @@
10618 ac_check_lib_save_LIBS=$LIBS
10620 cat >conftest.$ac_ext <<_ACEOF
10621 -#line $LINENO "configure"
10624 cat confdefs.h >>conftest.$ac_ext
10625 @@ -6805,11 +7005,20 @@
10627 rm -f conftest.$ac_objext conftest$ac_exeext
10628 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10629 - (eval $ac_link) 2>&5
10630 + (eval $ac_link) 2>conftest.er1
10632 + grep -v '^ *+' conftest.er1 >conftest.err
10633 + rm -f conftest.er1
10634 + cat conftest.err >&5
10635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10636 (exit $ac_status); } &&
10637 - { ac_try='test -s conftest$ac_exeext'
10638 + { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10639 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10640 + (eval $ac_try) 2>&5
10642 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
10643 + (exit $ac_status); }; } &&
10644 + { ac_try='test -s conftest$ac_exeext'
10645 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10646 (eval $ac_try) 2>&5
10648 @@ -6822,7 +7031,8 @@
10650 ac_cv_lib_dld_shl_load=no
10652 -rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10653 +rm -f conftest.err conftest.$ac_objext \
10654 + conftest$ac_exeext conftest.$ac_ext
10655 LIBS=$ac_check_lib_save_LIBS
10657 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
10658 @@ -6836,21 +7046,28 @@
10659 echo $ECHO_N "(cached) $ECHO_C" >&6
10661 cat >conftest.$ac_ext <<_ACEOF
10662 -#line $LINENO "configure"
10665 cat confdefs.h >>conftest.$ac_ext
10666 cat >>conftest.$ac_ext <<_ACEOF
10667 /* end confdefs.h. */
10668 +/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
10669 + For example, HP-UX 11i <limits.h> declares gettimeofday. */
10670 +#define dlopen innocuous_dlopen
10672 /* System header to define __stub macros and hopefully few prototypes,
10673 which can conflict with char dlopen (); below.
10674 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10675 <limits.h> exists even on freestanding compilers. */
10678 # include <limits.h>
10680 # include <assert.h>
10685 /* Override any gcc2 internal prototype to avoid an error. */
10688 @@ -6881,11 +7098,20 @@
10690 rm -f conftest.$ac_objext conftest$ac_exeext
10691 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10692 - (eval $ac_link) 2>&5
10693 + (eval $ac_link) 2>conftest.er1
10695 + grep -v '^ *+' conftest.er1 >conftest.err
10696 + rm -f conftest.er1
10697 + cat conftest.err >&5
10698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10699 (exit $ac_status); } &&
10700 - { ac_try='test -s conftest$ac_exeext'
10701 + { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10702 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10703 + (eval $ac_try) 2>&5
10705 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
10706 + (exit $ac_status); }; } &&
10707 + { ac_try='test -s conftest$ac_exeext'
10708 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10709 (eval $ac_try) 2>&5
10711 @@ -6898,7 +7124,8 @@
10713 ac_cv_func_dlopen=no
10715 -rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10716 +rm -f conftest.err conftest.$ac_objext \
10717 + conftest$ac_exeext conftest.$ac_ext
10719 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
10720 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
10721 @@ -6913,7 +7140,6 @@
10722 ac_check_lib_save_LIBS=$LIBS
10724 cat >conftest.$ac_ext <<_ACEOF
10725 -#line $LINENO "configure"
10728 cat confdefs.h >>conftest.$ac_ext
10729 @@ -6937,11 +7163,20 @@
10731 rm -f conftest.$ac_objext conftest$ac_exeext
10732 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10733 - (eval $ac_link) 2>&5
10734 + (eval $ac_link) 2>conftest.er1
10736 + grep -v '^ *+' conftest.er1 >conftest.err
10737 + rm -f conftest.er1
10738 + cat conftest.err >&5
10739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10740 (exit $ac_status); } &&
10741 - { ac_try='test -s conftest$ac_exeext'
10742 + { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10743 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10744 + (eval $ac_try) 2>&5
10746 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
10747 + (exit $ac_status); }; } &&
10748 + { ac_try='test -s conftest$ac_exeext'
10749 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10750 (eval $ac_try) 2>&5
10752 @@ -6954,7 +7189,8 @@
10754 ac_cv_lib_dl_dlopen=no
10756 -rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10757 +rm -f conftest.err conftest.$ac_objext \
10758 + conftest$ac_exeext conftest.$ac_ext
10759 LIBS=$ac_check_lib_save_LIBS
10761 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10762 @@ -6970,7 +7206,6 @@
10763 ac_check_lib_save_LIBS=$LIBS
10764 LIBS="-lsvld $LIBS"
10765 cat >conftest.$ac_ext <<_ACEOF
10766 -#line $LINENO "configure"
10769 cat confdefs.h >>conftest.$ac_ext
10770 @@ -6994,11 +7229,20 @@
10772 rm -f conftest.$ac_objext conftest$ac_exeext
10773 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10774 - (eval $ac_link) 2>&5
10775 + (eval $ac_link) 2>conftest.er1
10777 + grep -v '^ *+' conftest.er1 >conftest.err
10778 + rm -f conftest.er1
10779 + cat conftest.err >&5
10780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10781 (exit $ac_status); } &&
10782 - { ac_try='test -s conftest$ac_exeext'
10783 + { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10784 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10785 + (eval $ac_try) 2>&5
10787 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
10788 + (exit $ac_status); }; } &&
10789 + { ac_try='test -s conftest$ac_exeext'
10790 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10791 (eval $ac_try) 2>&5
10793 @@ -7011,7 +7255,8 @@
10795 ac_cv_lib_svld_dlopen=no
10797 -rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10798 +rm -f conftest.err conftest.$ac_objext \
10799 + conftest$ac_exeext conftest.$ac_ext
10800 LIBS=$ac_check_lib_save_LIBS
10802 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10803 @@ -7027,7 +7272,6 @@
10804 ac_check_lib_save_LIBS=$LIBS
10806 cat >conftest.$ac_ext <<_ACEOF
10807 -#line $LINENO "configure"
10810 cat confdefs.h >>conftest.$ac_ext
10811 @@ -7051,11 +7295,20 @@
10813 rm -f conftest.$ac_objext conftest$ac_exeext
10814 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10815 - (eval $ac_link) 2>&5
10816 + (eval $ac_link) 2>conftest.er1
10818 + grep -v '^ *+' conftest.er1 >conftest.err
10819 + rm -f conftest.er1
10820 + cat conftest.err >&5
10821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10822 (exit $ac_status); } &&
10823 - { ac_try='test -s conftest$ac_exeext'
10824 + { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10825 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10826 + (eval $ac_try) 2>&5
10828 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
10829 + (exit $ac_status); }; } &&
10830 + { ac_try='test -s conftest$ac_exeext'
10831 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10832 (eval $ac_try) 2>&5
10834 @@ -7068,7 +7321,8 @@
10836 ac_cv_lib_dld_dld_link=no
10838 -rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10839 +rm -f conftest.err conftest.$ac_objext \
10840 + conftest$ac_exeext conftest.$ac_ext
10841 LIBS=$ac_check_lib_save_LIBS
10843 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10844 @@ -7123,7 +7377,7 @@
10845 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10846 lt_status=$lt_dlunknown
10847 cat > conftest.$ac_ext <<EOF
10848 -#line 7126 "configure"
10849 +#line 7380 "configure"
10850 #include "confdefs.h"
10853 @@ -7221,7 +7475,7 @@
10854 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10855 lt_status=$lt_dlunknown
10856 cat > conftest.$ac_ext <<EOF
10857 -#line 7224 "configure"
10858 +#line 7478 "configure"
10859 #include "confdefs.h"
10862 @@ -8005,7 +8259,6 @@
10863 echo "$as_me:$LINENO: checking asm/errno.h usability" >&5
10864 echo $ECHO_N "checking asm/errno.h usability... $ECHO_C" >&6
10865 cat >conftest.$ac_ext <<_ACEOF
10866 -#line $LINENO "configure"
10869 cat confdefs.h >>conftest.$ac_ext
10870 @@ -8016,11 +8269,20 @@
10872 rm -f conftest.$ac_objext
10873 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10874 - (eval $ac_compile) 2>&5
10875 + (eval $ac_compile) 2>conftest.er1
10877 + grep -v '^ *+' conftest.er1 >conftest.err
10878 + rm -f conftest.er1
10879 + cat conftest.err >&5
10880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10881 (exit $ac_status); } &&
10882 - { ac_try='test -s conftest.$ac_objext'
10883 + { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10884 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10885 + (eval $ac_try) 2>&5
10887 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
10888 + (exit $ac_status); }; } &&
10889 + { ac_try='test -s conftest.$ac_objext'
10890 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10891 (eval $ac_try) 2>&5
10893 @@ -8033,7 +8295,7 @@
10895 ac_header_compiler=no
10897 -rm -f conftest.$ac_objext conftest.$ac_ext
10898 +rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10899 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10900 echo "${ECHO_T}$ac_header_compiler" >&6
10902 @@ -8041,7 +8303,6 @@
10903 echo "$as_me:$LINENO: checking asm/errno.h presence" >&5
10904 echo $ECHO_N "checking asm/errno.h presence... $ECHO_C" >&6
10905 cat >conftest.$ac_ext <<_ACEOF
10906 -#line $LINENO "configure"
10909 cat confdefs.h >>conftest.$ac_ext
10910 @@ -8059,6 +8320,7 @@
10911 (exit $ac_status); } >/dev/null; then
10912 if test -s conftest.err; then
10913 ac_cpp_err=$ac_c_preproc_warn_flag
10914 + ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10918 @@ -8078,33 +8340,32 @@
10919 echo "${ECHO_T}$ac_header_preproc" >&6
10921 # So? What about this header?
10922 -case $ac_header_compiler:$ac_header_preproc in
10924 +case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10926 { echo "$as_me:$LINENO: WARNING: asm/errno.h: accepted by the compiler, rejected by the preprocessor!" >&5
10927 echo "$as_me: WARNING: asm/errno.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
10928 - { echo "$as_me:$LINENO: WARNING: asm/errno.h: proceeding with the preprocessor's result" >&5
10929 -echo "$as_me: WARNING: asm/errno.h: proceeding with the preprocessor's result" >&2;}
10932 -## ------------------------------------ ##
10933 -## Report this to bug-autoconf@gnu.org. ##
10934 -## ------------------------------------ ##
10937 - sed "s/^/$as_me: WARNING: /" >&2
10938 + { echo "$as_me:$LINENO: WARNING: asm/errno.h: proceeding with the compiler's result" >&5
10939 +echo "$as_me: WARNING: asm/errno.h: proceeding with the compiler's result" >&2;}
10940 + ac_header_preproc=yes
10944 { echo "$as_me:$LINENO: WARNING: asm/errno.h: present but cannot be compiled" >&5
10945 echo "$as_me: WARNING: asm/errno.h: present but cannot be compiled" >&2;}
10946 - { echo "$as_me:$LINENO: WARNING: asm/errno.h: check for missing prerequisite headers?" >&5
10947 -echo "$as_me: WARNING: asm/errno.h: check for missing prerequisite headers?" >&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: see the Autoconf documentation" >&5
10951 +echo "$as_me: WARNING: asm/errno.h: see the Autoconf documentation" >&2;}
10952 + { echo "$as_me:$LINENO: WARNING: asm/errno.h: section \"Present But Cannot Be Compiled\"" >&5
10953 +echo "$as_me: WARNING: asm/errno.h: section \"Present But Cannot Be Compiled\"" >&2;}
10954 { echo "$as_me:$LINENO: WARNING: asm/errno.h: proceeding with the preprocessor's result" >&5
10955 echo "$as_me: WARNING: asm/errno.h: proceeding with the preprocessor's result" >&2;}
10956 + { echo "$as_me:$LINENO: WARNING: asm/errno.h: in the future, the compiler will take precedence" >&5
10957 +echo "$as_me: WARNING: asm/errno.h: in the future, the compiler will take precedence" >&2;}
10960 -## ------------------------------------ ##
10961 -## Report this to bug-autoconf@gnu.org. ##
10962 -## ------------------------------------ ##
10963 +## ------------------------------------------ ##
10964 +## Report this to the AC_PACKAGE_NAME lists. ##
10965 +## ------------------------------------------ ##
10968 sed "s/^/$as_me: WARNING: /" >&2
10969 @@ -8145,7 +8406,6 @@
10970 echo "$as_me:$LINENO: checking linux/atmsap.h usability" >&5
10971 echo $ECHO_N "checking linux/atmsap.h usability... $ECHO_C" >&6
10972 cat >conftest.$ac_ext <<_ACEOF
10973 -#line $LINENO "configure"
10976 cat confdefs.h >>conftest.$ac_ext
10977 @@ -8156,11 +8416,20 @@
10979 rm -f conftest.$ac_objext
10980 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10981 - (eval $ac_compile) 2>&5
10982 + (eval $ac_compile) 2>conftest.er1
10984 + grep -v '^ *+' conftest.er1 >conftest.err
10985 + rm -f conftest.er1
10986 + cat conftest.err >&5
10987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10988 (exit $ac_status); } &&
10989 - { ac_try='test -s conftest.$ac_objext'
10990 + { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10991 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10992 + (eval $ac_try) 2>&5
10994 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
10995 + (exit $ac_status); }; } &&
10996 + { ac_try='test -s conftest.$ac_objext'
10997 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10998 (eval $ac_try) 2>&5
11000 @@ -8173,7 +8442,7 @@
11002 ac_header_compiler=no
11004 -rm -f conftest.$ac_objext conftest.$ac_ext
11005 +rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11006 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11007 echo "${ECHO_T}$ac_header_compiler" >&6
11009 @@ -8181,7 +8450,6 @@
11010 echo "$as_me:$LINENO: checking linux/atmsap.h presence" >&5
11011 echo $ECHO_N "checking linux/atmsap.h presence... $ECHO_C" >&6
11012 cat >conftest.$ac_ext <<_ACEOF
11013 -#line $LINENO "configure"
11016 cat confdefs.h >>conftest.$ac_ext
11017 @@ -8199,6 +8467,7 @@
11018 (exit $ac_status); } >/dev/null; then
11019 if test -s conftest.err; then
11020 ac_cpp_err=$ac_c_preproc_warn_flag
11021 + ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11025 @@ -8218,33 +8487,32 @@
11026 echo "${ECHO_T}$ac_header_preproc" >&6
11028 # So? What about this header?
11029 -case $ac_header_compiler:$ac_header_preproc in
11031 +case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11033 { echo "$as_me:$LINENO: WARNING: linux/atmsap.h: accepted by the compiler, rejected by the preprocessor!" >&5
11034 echo "$as_me: WARNING: linux/atmsap.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
11035 - { echo "$as_me:$LINENO: WARNING: linux/atmsap.h: proceeding with the preprocessor's result" >&5
11036 -echo "$as_me: WARNING: linux/atmsap.h: proceeding with the preprocessor's result" >&2;}
11039 -## ------------------------------------ ##
11040 -## Report this to bug-autoconf@gnu.org. ##
11041 -## ------------------------------------ ##
11044 - sed "s/^/$as_me: WARNING: /" >&2
11045 + { echo "$as_me:$LINENO: WARNING: linux/atmsap.h: proceeding with the compiler's result" >&5
11046 +echo "$as_me: WARNING: linux/atmsap.h: proceeding with the compiler's result" >&2;}
11047 + ac_header_preproc=yes
11051 { echo "$as_me:$LINENO: WARNING: linux/atmsap.h: present but cannot be compiled" >&5
11052 echo "$as_me: WARNING: linux/atmsap.h: present but cannot be compiled" >&2;}
11053 - { echo "$as_me:$LINENO: WARNING: linux/atmsap.h: check for missing prerequisite headers?" >&5
11054 -echo "$as_me: WARNING: linux/atmsap.h: check for missing prerequisite headers?" >&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: see the Autoconf documentation" >&5
11058 +echo "$as_me: WARNING: linux/atmsap.h: see the Autoconf documentation" >&2;}
11059 + { echo "$as_me:$LINENO: WARNING: linux/atmsap.h: section \"Present But Cannot Be Compiled\"" >&5
11060 +echo "$as_me: WARNING: linux/atmsap.h: section \"Present But Cannot Be Compiled\"" >&2;}
11061 { echo "$as_me:$LINENO: WARNING: linux/atmsap.h: proceeding with the preprocessor's result" >&5
11062 echo "$as_me: WARNING: linux/atmsap.h: proceeding with the preprocessor's result" >&2;}
11063 + { echo "$as_me:$LINENO: WARNING: linux/atmsap.h: in the future, the compiler will take precedence" >&5
11064 +echo "$as_me: WARNING: linux/atmsap.h: in the future, the compiler will take precedence" >&2;}
11067 -## ------------------------------------ ##
11068 -## Report this to bug-autoconf@gnu.org. ##
11069 -## ------------------------------------ ##
11070 +## ------------------------------------------ ##
11071 +## Report this to the AC_PACKAGE_NAME lists. ##
11072 +## ------------------------------------------ ##
11075 sed "s/^/$as_me: WARNING: /" >&2
11076 @@ -8281,7 +8549,6 @@
11077 ac_check_lib_save_LIBS=$LIBS
11078 LIBS="-lresolv $LIBS"
11079 cat >conftest.$ac_ext <<_ACEOF
11080 -#line $LINENO "configure"
11083 cat confdefs.h >>conftest.$ac_ext
11084 @@ -8299,11 +8566,20 @@
11086 rm -f conftest.$ac_objext conftest$ac_exeext
11087 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11088 - (eval $ac_link) 2>&5
11089 + (eval $ac_link) 2>conftest.er1
11091 + grep -v '^ *+' conftest.er1 >conftest.err
11092 + rm -f conftest.er1
11093 + cat conftest.err >&5
11094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11095 (exit $ac_status); } &&
11096 - { ac_try='test -s conftest$ac_exeext'
11097 + { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11098 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11099 + (eval $ac_try) 2>&5
11101 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
11102 + (exit $ac_status); }; } &&
11103 + { ac_try='test -s conftest$ac_exeext'
11104 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11105 (eval $ac_try) 2>&5
11107 @@ -8316,7 +8592,8 @@
11109 ac_cv_lib_resolv_main=no
11111 -rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11112 +rm -f conftest.err conftest.$ac_objext \
11113 + conftest$ac_exeext conftest.$ac_ext
11114 LIBS=$ac_check_lib_save_LIBS
11116 echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_main" >&5
11117 @@ -8477,7 +8754,6 @@
11118 ac_check_lib_save_LIBS=$LIBS
11120 cat >conftest.$ac_ext <<_ACEOF
11121 -#line $LINENO "configure"
11124 cat confdefs.h >>conftest.$ac_ext
11125 @@ -8495,11 +8771,20 @@
11127 rm -f conftest.$ac_objext conftest$ac_exeext
11128 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11129 - (eval $ac_link) 2>&5
11130 + (eval $ac_link) 2>conftest.er1
11132 + grep -v '^ *+' conftest.er1 >conftest.err
11133 + rm -f conftest.er1
11134 + cat conftest.err >&5
11135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11136 (exit $ac_status); } &&
11137 - { ac_try='test -s conftest$ac_exeext'
11138 + { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11139 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11140 + (eval $ac_try) 2>&5
11142 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
11143 + (exit $ac_status); }; } &&
11144 + { ac_try='test -s conftest$ac_exeext'
11145 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11146 (eval $ac_try) 2>&5
11148 @@ -8512,7 +8797,8 @@
11150 ac_cv_lib_mpr_main=no
11152 -rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11153 +rm -f conftest.err conftest.$ac_objext \
11154 + conftest$ac_exeext conftest.$ac_ext
11155 LIBS=$ac_check_lib_save_LIBS
11157 echo "$as_me:$LINENO: result: $ac_cv_lib_mpr_main" >&5
11158 @@ -8539,7 +8825,7 @@
11162 - 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"
11163 + ac_config_files="$ac_config_files Makefile doc/Makefile m4/Makefile src/Makefile src/include/Makefile src/lib/Makefile"
11164 cat >confcache <<\_ACEOF
11165 # This file is a shell script that caches the results of configure
11166 # tests run on this system so they can be shared between configure
11167 @@ -8568,13 +8854,13 @@
11168 # `set' does not quote correctly, so add quotes (double-quote
11169 # substitution turns \\\\ into \\, and sed turns \\ into \).
11172 - s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
11174 + s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
11177 # `set' quotes correctly as required by POSIX, so do not add quotes.
11179 - "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
11180 + "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
11184 @@ -8604,13 +8890,13 @@
11185 # trailing colons and then remove the whole line if VPATH becomes empty
11186 # (actually we leave an empty line to preserve line numbers).
11187 if test "x$srcdir" = x.; then
11188 - ac_vpsub='/^[ ]*VPATH[ ]*=/{
11189 + ac_vpsub='/^[ ]*VPATH[ ]*=/{
11190 s/:*\$(srcdir):*/:/;
11191 s/:*\${srcdir}:*/:/;
11193 -s/^\([^=]*=[ ]*\):*/\1/;
11194 +s/^\([^=]*=[ ]*\):*/\1/;
11201 @@ -8621,7 +8907,7 @@
11202 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
11203 # 1. Remove the extension, and $U if already installed.
11204 ac_i=`echo "$ac_i" |
11205 - sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
11206 + sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
11208 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
11209 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
11210 @@ -8665,9 +8951,10 @@
11211 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
11214 +DUALCASE=1; export DUALCASE # for MKS sh
11216 # Support unset when possible.
11217 -if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
11218 +if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
11222 @@ -8686,7 +8973,7 @@
11223 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
11224 LC_TELEPHONE LC_TIME
11226 - if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
11227 + if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
11228 eval $as_var=C; export $as_var
11231 @@ -8865,16 +9152,17 @@
11232 if mkdir -p . 2>/dev/null; then
11235 + test -d ./-p && rmdir ./-p
11239 as_executable_p="test -f"
11241 # Sed expression to map a string onto a valid CPP name.
11242 -as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
11243 +as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
11245 # Sed expression to map a string onto a valid variable name.
11246 -as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
11247 +as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
11251 @@ -8901,7 +9189,7 @@
11254 This file was extended by $as_me, which was
11255 -generated by GNU Autoconf 2.57. Invocation command line was
11256 +generated by GNU Autoconf 2.59. Invocation command line was
11258 CONFIG_FILES = $CONFIG_FILES
11259 CONFIG_HEADERS = $CONFIG_HEADERS
11260 @@ -8945,9 +9233,9 @@
11261 -d, --debug don't remove temporary files
11262 --recheck update $as_me by reconfiguring in the same conditions
11263 --file=FILE[:TEMPLATE]
11264 - instantiate the configuration file FILE
11265 + instantiate the configuration file FILE
11266 --header=FILE[:TEMPLATE]
11267 - instantiate the configuration header FILE
11268 + instantiate the configuration header FILE
11270 Configuration files:
11272 @@ -8964,11 +9252,10 @@
11273 cat >>$CONFIG_STATUS <<_ACEOF
11276 -configured by $0, generated by GNU Autoconf 2.57,
11277 +configured by $0, generated by GNU Autoconf 2.59,
11278 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
11280 -Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
11281 -Free Software Foundation, Inc.
11282 +Copyright (C) 2003 Free Software Foundation, Inc.
11283 This config.status script is free software; the Free Software Foundation
11284 gives unlimited permission to copy, distribute and modify it."
11286 @@ -9080,27 +9367,6 @@
11287 "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
11288 "src/include/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/include/Makefile" ;;
11289 "src/lib/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/lib/Makefile" ;;
11290 - "src/test/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/test/Makefile" ;;
11291 - "src/debug/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/debug/Makefile" ;;
11292 - "src/qgen/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/qgen/Makefile" ;;
11293 - "src/saal/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/saal/Makefile" ;;
11294 - "src/sigd/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/sigd/Makefile" ;;
11295 - "src/maint/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/maint/Makefile" ;;
11296 - "src/arpd/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/arpd/Makefile" ;;
11297 - "src/ilmid/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/ilmid/Makefile" ;;
11298 - "src/ilmid/asn1/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/ilmid/asn1/Makefile" ;;
11299 - "src/man/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/man/Makefile" ;;
11300 - "src/led/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/led/Makefile" ;;
11301 - "src/lane/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/lane/Makefile" ;;
11302 - "src/mpoad/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/mpoad/Makefile" ;;
11303 - "src/switch/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/switch/Makefile" ;;
11304 - "src/switch/debug/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/switch/debug/Makefile" ;;
11305 - "src/switch/tcp/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/switch/tcp/Makefile" ;;
11306 - "src/config/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/config/Makefile" ;;
11307 - "src/config/init-redhat/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/config/init-redhat/Makefile" ;;
11308 - "src/extra/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/extra/Makefile" ;;
11309 - "src/extra/linux-atm.spec" ) CONFIG_FILES="$CONFIG_FILES src/extra/linux-atm.spec" ;;
11310 - "src/extra/ANS/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/extra/ANS/Makefile" ;;
11311 "default-1" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
11312 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
11313 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
11314 @@ -9267,9 +9534,9 @@
11316 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
11317 if test -z "$ac_sed_cmds"; then
11318 - ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
11319 + ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
11321 - ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
11322 + ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
11324 ac_sed_frag=`expr $ac_sed_frag + 1`
11326 @@ -9287,21 +9554,21 @@
11327 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
11329 - | *:- | *:-:* ) # input from stdin
11331 - ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
11332 - ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
11334 + ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
11335 + 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=`echo "$ac_file" | sed 's,:.*,,'` ;;
11339 * ) ac_file_in=$ac_file.in ;;
11342 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
11343 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
11344 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11345 - X"$ac_file" : 'X\(//\)[^/]' \| \
11346 - X"$ac_file" : 'X\(//\)$' \| \
11347 - X"$ac_file" : 'X\(/\)' \| \
11348 - . : '\(.\)' 2>/dev/null ||
11349 + X"$ac_file" : 'X\(//\)[^/]' \| \
11350 + X"$ac_file" : 'X\(//\)$' \| \
11351 + X"$ac_file" : 'X\(/\)' \| \
11352 + . : '\(.\)' 2>/dev/null ||
11354 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
11355 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
11356 @@ -9317,10 +9584,10 @@
11357 as_dirs="$as_dir $as_dirs"
11358 as_dir=`(dirname "$as_dir") 2>/dev/null ||
11359 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11360 - X"$as_dir" : 'X\(//\)[^/]' \| \
11361 - X"$as_dir" : 'X\(//\)$' \| \
11362 - X"$as_dir" : 'X\(/\)' \| \
11363 - . : '\(.\)' 2>/dev/null ||
11364 + X"$as_dir" : 'X\(//\)[^/]' \| \
11365 + X"$as_dir" : 'X\(//\)$' \| \
11366 + X"$as_dir" : 'X\(/\)' \| \
11367 + . : '\(.\)' 2>/dev/null ||
11369 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
11370 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
11371 @@ -9358,12 +9625,45 @@
11372 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
11373 ac_top_srcdir=$ac_top_builddir$srcdir ;;
11375 -# Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
11377 -ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
11378 -ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
11379 -ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
11380 -ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
11382 +# Do not use `cd foo && pwd` to compute absolute paths, because
11383 +# the directories may not exist.
11385 +.) ac_abs_builddir="$ac_dir";;
11387 + case "$ac_dir" in
11388 + .) ac_abs_builddir=`pwd`;;
11389 + [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
11390 + *) ac_abs_builddir=`pwd`/"$ac_dir";;
11393 +case $ac_abs_builddir in
11394 +.) ac_abs_top_builddir=${ac_top_builddir}.;;
11396 + case ${ac_top_builddir}. in
11397 + .) ac_abs_top_builddir=$ac_abs_builddir;;
11398 + [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
11399 + *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
11402 +case $ac_abs_builddir in
11403 +.) ac_abs_srcdir=$ac_srcdir;;
11405 + case $ac_srcdir in
11406 + .) ac_abs_srcdir=$ac_abs_builddir;;
11407 + [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
11408 + *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
11411 +case $ac_abs_builddir in
11412 +.) ac_abs_top_srcdir=$ac_top_srcdir;;
11414 + case $ac_top_srcdir in
11415 + .) ac_abs_top_srcdir=$ac_abs_builddir;;
11416 + [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
11417 + *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
11423 @@ -9371,11 +9671,6 @@
11424 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
11427 - if test x"$ac_file" != x-; then
11428 - { echo "$as_me:$LINENO: creating $ac_file" >&5
11429 -echo "$as_me: creating $ac_file" >&6;}
11432 # Let's still pretend it is `configure' which instantiates (i.e., don't
11433 # use $as_me), people would be surprised to read:
11434 # /* config.h. Generated by config.status. */
11435 @@ -9385,7 +9680,7 @@
11436 configure_input="$ac_file. "
11438 configure_input=$configure_input"Generated from `echo $ac_file_in |
11439 - sed 's,.*/,,'` by configure."
11440 + sed 's,.*/,,'` by configure."
11442 # First look for the input files in the build tree, otherwise in the
11444 @@ -9394,26 +9689,32 @@
11446 -) echo $tmp/stdin ;;
11448 - # Absolute (can't be DOS-style, as IFS=:)
11449 - test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
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 echo "$as_me: error: cannot find input file: $f" >&2;}
11453 { (exit 1); exit 1; }; }
11457 - if test -f "$f"; then
11460 - elif test -f "$srcdir/$f"; then
11465 - { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
11466 + if test -f "$f"; then
11469 + elif test -f "$srcdir/$f"; then
11471 + echo "$srcdir/$f"
11474 + { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
11475 echo "$as_me: error: cannot find input file: $f" >&2;}
11476 { (exit 1); exit 1; }; }
11480 done` || { (exit 1); exit 1; }
11482 + if test x"$ac_file" != x-; then
11483 + { echo "$as_me:$LINENO: creating $ac_file" >&5
11484 +echo "$as_me: creating $ac_file" >&6;}
11488 cat >>$CONFIG_STATUS <<_ACEOF
11490 @@ -9453,12 +9754,12 @@
11491 # NAME is the cpp macro being defined and VALUE is the value it is being given.
11493 # ac_d sets the value in "#define NAME VALUE" lines.
11494 -ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
11495 -ac_dB='[ ].*$,\1#\2'
11496 +ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
11497 +ac_dB='[ ].*$,\1#\2'
11500 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
11501 -ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
11502 +ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
11503 ac_uB='$,\1#\2define\3'
11506 @@ -9467,11 +9768,11 @@
11507 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
11509 - | *:- | *:-:* ) # input from stdin
11511 - ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
11512 - ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
11514 + ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
11515 + 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=`echo "$ac_file" | sed 's,:.*,,'` ;;
11519 * ) ac_file_in=$ac_file.in ;;
11522 @@ -9485,28 +9786,29 @@
11524 -) echo $tmp/stdin ;;
11526 - # Absolute (can't be DOS-style, as IFS=:)
11527 - test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
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 echo "$as_me: error: cannot find input file: $f" >&2;}
11531 { (exit 1); exit 1; }; }
11533 + # Do quote $f, to prevent DOS paths from being IFS'd.
11536 - if test -f "$f"; then
11539 - elif test -f "$srcdir/$f"; then
11544 - { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
11545 + if test -f "$f"; then
11548 + elif test -f "$srcdir/$f"; then
11550 + echo "$srcdir/$f"
11553 + { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
11554 echo "$as_me: error: cannot find input file: $f" >&2;}
11555 { (exit 1); exit 1; }; }
11559 done` || { (exit 1); exit 1; }
11560 # Remove the trailing spaces.
11561 - sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
11562 + sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
11566 @@ -9529,9 +9831,9 @@
11570 -s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
11571 +s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
11573 -s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
11574 +s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
11577 # If some macros were called several times there might be several times
11578 @@ -9545,13 +9847,13 @@
11579 # example, in the case of _POSIX_SOURCE, which is predefined and required
11580 # on some systems where configure will not decide to define it.
11581 cat >>conftest.undefs <<\_ACEOF
11582 -s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
11583 +s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
11586 # Break up conftest.defines because some shells have a limit on the size
11587 # of here documents, and old seds have small limits too (100 cmds).
11588 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
11589 -echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
11590 +echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
11591 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
11592 echo ' :' >>$CONFIG_STATUS
11593 rm -f conftest.tail
11594 @@ -9560,7 +9862,7 @@
11595 # Write a limited-size here document to $tmp/defines.sed.
11596 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
11597 # Speed up: don't consider the non `#define' lines.
11598 - echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
11599 + echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
11600 # Work around the forget-to-reset-the-flag bug.
11601 echo 't clr' >>$CONFIG_STATUS
11602 echo ': clr' >>$CONFIG_STATUS
11603 @@ -9587,7 +9889,7 @@
11604 # Write a limited-size here document to $tmp/undefs.sed.
11605 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
11606 # Speed up: don't consider the non `#undef'
11607 - echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
11608 + echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
11609 # Work around the forget-to-reset-the-flag bug.
11610 echo 't clr' >>$CONFIG_STATUS
11611 echo ': clr' >>$CONFIG_STATUS
11612 @@ -9621,10 +9923,10 @@
11614 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
11615 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11616 - X"$ac_file" : 'X\(//\)[^/]' \| \
11617 - X"$ac_file" : 'X\(//\)$' \| \
11618 - X"$ac_file" : 'X\(/\)' \| \
11619 - . : '\(.\)' 2>/dev/null ||
11620 + X"$ac_file" : 'X\(//\)[^/]' \| \
11621 + X"$ac_file" : 'X\(//\)$' \| \
11622 + X"$ac_file" : 'X\(/\)' \| \
11623 + . : '\(.\)' 2>/dev/null ||
11625 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
11626 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
11627 @@ -9640,10 +9942,10 @@
11628 as_dirs="$as_dir $as_dirs"
11629 as_dir=`(dirname "$as_dir") 2>/dev/null ||
11630 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11631 - X"$as_dir" : 'X\(//\)[^/]' \| \
11632 - X"$as_dir" : 'X\(//\)$' \| \
11633 - X"$as_dir" : 'X\(/\)' \| \
11634 - . : '\(.\)' 2>/dev/null ||
11635 + X"$as_dir" : 'X\(//\)[^/]' \| \
11636 + X"$as_dir" : 'X\(//\)$' \| \
11637 + X"$as_dir" : 'X\(/\)' \| \
11638 + . : '\(.\)' 2>/dev/null ||
11640 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
11641 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
11642 @@ -9675,16 +9977,41 @@
11643 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
11644 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
11645 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11646 - X"$ac_dest" : 'X\(//\)[^/]' \| \
11647 - X"$ac_dest" : 'X\(//\)$' \| \
11648 - X"$ac_dest" : 'X\(/\)' \| \
11649 - . : '\(.\)' 2>/dev/null ||
11650 + X"$ac_dest" : 'X\(//\)[^/]' \| \
11651 + X"$ac_dest" : 'X\(//\)$' \| \
11652 + X"$ac_dest" : 'X\(/\)' \| \
11653 + . : '\(.\)' 2>/dev/null ||
11655 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
11656 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
11657 /^X\(\/\/\)$/{ s//\1/; q; }
11658 /^X\(\/\).*/{ s//\1/; q; }
11660 + { if $as_mkdir_p; then
11661 + mkdir -p "$ac_dir"
11665 + while test ! -d "$as_dir"; do
11666 + as_dirs="$as_dir $as_dirs"
11667 + as_dir=`(dirname "$as_dir") 2>/dev/null ||
11668 +$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11669 + X"$as_dir" : 'X\(//\)[^/]' \| \
11670 + X"$as_dir" : 'X\(//\)$' \| \
11671 + X"$as_dir" : 'X\(/\)' \| \
11672 + . : '\(.\)' 2>/dev/null ||
11674 + sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
11675 + /^X\(\/\/\)[^/].*/{ s//\1/; q; }
11676 + /^X\(\/\/\)$/{ s//\1/; q; }
11677 + /^X\(\/\).*/{ s//\1/; q; }
11680 + test ! -n "$as_dirs" || mkdir $as_dirs
11681 + fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
11682 +echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
11683 + { (exit 1); exit 1; }; }; }
11687 if test "$ac_dir" != .; then
11688 @@ -9710,12 +10037,45 @@
11689 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
11690 ac_top_srcdir=$ac_top_builddir$srcdir ;;
11692 -# Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
11694 -ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
11695 -ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
11696 -ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
11697 -ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
11699 +# Do not use `cd foo && pwd` to compute absolute paths, because
11700 +# the directories may not exist.
11702 +.) ac_abs_builddir="$ac_dir";;
11704 + case "$ac_dir" in
11705 + .) ac_abs_builddir=`pwd`;;
11706 + [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
11707 + *) ac_abs_builddir=`pwd`/"$ac_dir";;
11710 +case $ac_abs_builddir in
11711 +.) ac_abs_top_builddir=${ac_top_builddir}.;;
11713 + case ${ac_top_builddir}. in
11714 + .) ac_abs_top_builddir=$ac_abs_builddir;;
11715 + [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
11716 + *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
11719 +case $ac_abs_builddir in
11720 +.) ac_abs_srcdir=$ac_srcdir;;
11722 + case $ac_srcdir in
11723 + .) ac_abs_srcdir=$ac_abs_builddir;;
11724 + [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
11725 + *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
11728 +case $ac_abs_builddir in
11729 +.) ac_abs_top_srcdir=$ac_top_srcdir;;
11731 + case $ac_top_srcdir in
11732 + .) ac_abs_top_srcdir=$ac_abs_builddir;;
11733 + [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
11734 + *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
11739 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
11740 diff -urN linux-atm.old/doc/Makefile.in linux-atm.dev/doc/Makefile.in
11741 --- linux-atm.old/doc/Makefile.in 2005-08-23 01:12:10.885781000 +0200
11742 +++ linux-atm.dev/doc/Makefile.in 2005-08-23 01:12:46.551359544 +0200
11743 @@ -63,24 +63,35 @@
11744 host_triplet = @host@
11745 target_alias = @target_alias@
11746 target_triplet = @target@
11752 DLLTOOL = @DLLTOOL@
11758 +GCJFLAGS = @GCJFLAGS@
11759 +HAVE_LIB = @HAVE_LIB@
11762 LIBTOOL = @LIBTOOL@
11763 LIBTOOL_DEPS = @LIBTOOL_DEPS@
11764 LIBVER_AGE = @LIBVER_AGE@
11765 LIBVER_CURRENT = @LIBVER_CURRENT@
11766 LIBVER_REVISION = @LIBVER_REVISION@
11769 MAKEINFO = @MAKEINFO@
11770 OBJDUMP = @OBJDUMP@
11772 PACKAGE = @PACKAGE@
11777 VERSION = @VERSION@
11779 diff -urN linux-atm.old/m4/Makefile.in linux-atm.dev/m4/Makefile.in
11780 --- linux-atm.old/m4/Makefile.in 2005-08-23 01:12:10.850786000 +0200
11781 +++ linux-atm.dev/m4/Makefile.in 2005-08-23 01:12:46.559358328 +0200
11782 @@ -63,24 +63,35 @@
11783 host_triplet = @host@
11784 target_alias = @target_alias@
11785 target_triplet = @target@
11791 DLLTOOL = @DLLTOOL@
11797 +GCJFLAGS = @GCJFLAGS@
11798 +HAVE_LIB = @HAVE_LIB@
11801 LIBTOOL = @LIBTOOL@
11802 LIBTOOL_DEPS = @LIBTOOL_DEPS@
11803 LIBVER_AGE = @LIBVER_AGE@
11804 LIBVER_CURRENT = @LIBVER_CURRENT@
11805 LIBVER_REVISION = @LIBVER_REVISION@
11808 MAKEINFO = @MAKEINFO@
11809 OBJDUMP = @OBJDUMP@
11811 PACKAGE = @PACKAGE@
11816 VERSION = @VERSION@
11818 diff -urN linux-atm.old/Makefile.in linux-atm.dev/Makefile.in
11819 --- linux-atm.old/Makefile.in 2005-08-23 01:12:10.830789000 +0200
11820 +++ linux-atm.dev/Makefile.in 2005-08-23 01:12:46.542360912 +0200
11821 @@ -63,24 +63,35 @@
11822 host_triplet = @host@
11823 target_alias = @target_alias@
11824 target_triplet = @target@
11830 DLLTOOL = @DLLTOOL@
11836 +GCJFLAGS = @GCJFLAGS@
11837 +HAVE_LIB = @HAVE_LIB@
11840 LIBTOOL = @LIBTOOL@
11841 LIBTOOL_DEPS = @LIBTOOL_DEPS@
11842 LIBVER_AGE = @LIBVER_AGE@
11843 LIBVER_CURRENT = @LIBVER_CURRENT@
11844 LIBVER_REVISION = @LIBVER_REVISION@
11847 MAKEINFO = @MAKEINFO@
11848 OBJDUMP = @OBJDUMP@
11850 PACKAGE = @PACKAGE@
11855 VERSION = @VERSION@
11857 diff -urN linux-atm.old/src/include/Makefile.in linux-atm.dev/src/include/Makefile.in
11858 --- linux-atm.old/src/include/Makefile.in 2005-08-23 01:12:10.851786000 +0200
11859 +++ linux-atm.dev/src/include/Makefile.in 2005-08-23 01:12:46.585354376 +0200
11860 @@ -63,24 +63,35 @@
11861 host_triplet = @host@
11862 target_alias = @target_alias@
11863 target_triplet = @target@
11869 DLLTOOL = @DLLTOOL@
11875 +GCJFLAGS = @GCJFLAGS@
11876 +HAVE_LIB = @HAVE_LIB@
11879 LIBTOOL = @LIBTOOL@
11880 LIBTOOL_DEPS = @LIBTOOL_DEPS@
11881 LIBVER_AGE = @LIBVER_AGE@
11882 LIBVER_CURRENT = @LIBVER_CURRENT@
11883 LIBVER_REVISION = @LIBVER_REVISION@
11886 MAKEINFO = @MAKEINFO@
11887 OBJDUMP = @OBJDUMP@
11889 PACKAGE = @PACKAGE@
11894 VERSION = @VERSION@
11896 diff -urN linux-atm.old/src/lib/Makefile.in linux-atm.dev/src/lib/Makefile.in
11897 --- linux-atm.old/src/lib/Makefile.in 2005-08-23 01:12:10.852786000 +0200
11898 +++ linux-atm.dev/src/lib/Makefile.in 2005-08-23 01:12:46.607351032 +0200
11899 @@ -65,24 +65,35 @@
11900 host_triplet = @host@
11901 target_alias = @target_alias@
11902 target_triplet = @target@
11908 DLLTOOL = @DLLTOOL@
11914 +GCJFLAGS = @GCJFLAGS@
11915 +HAVE_LIB = @HAVE_LIB@
11918 LIBTOOL = @LIBTOOL@
11919 LIBTOOL_DEPS = @LIBTOOL_DEPS@
11920 LIBVER_AGE = @LIBVER_AGE@
11921 LIBVER_CURRENT = @LIBVER_CURRENT@
11922 LIBVER_REVISION = @LIBVER_REVISION@
11925 MAKEINFO = @MAKEINFO@
11926 OBJDUMP = @OBJDUMP@
11928 PACKAGE = @PACKAGE@
11933 VERSION = @VERSION@
11935 diff -urN linux-atm.old/src/Makefile.in linux-atm.dev/src/Makefile.in
11936 --- linux-atm.old/src/Makefile.in 2005-08-23 01:12:10.851786000 +0200
11937 +++ linux-atm.dev/src/Makefile.in 2005-08-23 01:12:46.572356352 +0200
11938 @@ -63,30 +63,40 @@
11939 host_triplet = @host@
11940 target_alias = @target_alias@
11941 target_triplet = @target@
11947 DLLTOOL = @DLLTOOL@
11953 +GCJFLAGS = @GCJFLAGS@
11954 +HAVE_LIB = @HAVE_LIB@
11957 LIBTOOL = @LIBTOOL@
11958 LIBTOOL_DEPS = @LIBTOOL_DEPS@
11959 LIBVER_AGE = @LIBVER_AGE@
11960 LIBVER_CURRENT = @LIBVER_CURRENT@
11961 LIBVER_REVISION = @LIBVER_REVISION@
11964 MAKEINFO = @MAKEINFO@
11965 OBJDUMP = @OBJDUMP@
11967 PACKAGE = @PACKAGE@
11972 VERSION = @VERSION@
11975 -SUBDIRS = include lib
11977 +SUBDIRS = include lib
11978 mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs
11979 CONFIG_HEADER = ../config.h
11980 CONFIG_CLEAN_FILES =