1 diff -urN libsamplerate.old/aclocal.m4 libsamplerate.dev/aclocal.m4
2 --- libsamplerate.old/aclocal.m4 2004-09-12 04:57:31.000000000 +0200
3 +++ libsamplerate.dev/aclocal.m4 2007-11-07 23:58:51.222136120 +0100
5 -# generated automatically by aclocal 1.7.9 -*- Autoconf -*-
6 +# generated automatically by aclocal 1.9.6 -*- Autoconf -*-
8 -# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002
9 -# Free Software Foundation, Inc.
10 +# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004,
11 +# 2005 Free Software Foundation, Inc.
12 # This file is free software; the Free Software Foundation
13 # gives unlimited permission to copy and/or distribute it,
14 # with or without modifications, as long as this notice is preserved.
15 @@ -11,3768 +11,3927 @@
16 # even the implied warranty of MERCHANTABILITY or FITNESS FOR A
19 -dnl @synopsis AC_C_FIND_ENDIAN
21 -dnl Determine endian-ness of target processor.
22 -dnl @version 1.1 Mar 03 2002
23 -dnl @author Erik de Castro Lopo <erikd AT mega-nerd DOT com>
25 -dnl Majority written from scratch to replace the standard autoconf macro
26 -dnl AC_C_BIGENDIAN. Only part remaining from the original it the invocation
27 -dnl of the AC_TRY_RUN macro.
29 -dnl Permission to use, copy, modify, distribute, and sell this file for any
30 -dnl purpose is hereby granted without fee, provided that the above copyright
31 -dnl and this permission notice appear in all copies. No representations are
32 -dnl made about the suitability of this software for any purpose. It is
33 -dnl provided "as is" without express or implied warranty.
35 -dnl Find endian-ness in the following way:
36 -dnl 1) Look in <endian.h>.
37 -dnl 2) If 1) fails, look in <sys/types.h> and <sys/param.h>.
38 -dnl 3) If 1) and 2) fails and not cross compiling run a test program.
39 -dnl 4) If 1) and 2) fails and cross compiling then guess based on target.
41 -AC_DEFUN([AC_C_FIND_ENDIAN],
42 -[AC_CACHE_CHECK(processor byte ordering,
45 -# Initialize to unknown
46 -ac_cv_c_byte_order=unknown
48 -if test x$ac_cv_header_endian_h = xyes ; then
50 - # First try <endian.h> which should set BYTE_ORDER.
54 - #if BYTE_ORDER != LITTLE_ENDIAN
58 - ac_cv_c_byte_order=little
63 - #if BYTE_ORDER != BIG_ENDIAN
67 - ac_cv_c_byte_order=big
72 -if test $ac_cv_c_byte_order = unknown ; then
73 +# libtool.m4 - Configure libtool for the host system. -*-Autoconf-*-
76 - #include <sys/types.h>
77 - #include <sys/param.h>
78 - #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
84 - #include <sys/types.h>
85 - #include <sys/param.h>
86 - #if BYTE_ORDER != LITTLE_ENDIAN
90 - ac_cv_c_byte_order=little
94 - #include <sys/types.h>
95 - #include <sys/param.h>
96 - #if BYTE_ORDER != LITTLE_ENDIAN
100 - ac_cv_c_byte_order=little
107 -if test $ac_cv_c_byte_order = unknown ; then
108 - if test $cross_compiling = yes ; then
109 - # This is the last resort. Try to guess the target processor endian-ness
110 - # by looking at the target CPU type.
112 - case "$target_cpu" in
113 - alpha* | i?86* | mipsel* | ia64*)
114 - ac_cv_c_big_endian=0
115 - ac_cv_c_little_endian=1
118 - m68* | mips* | powerpc* | hppa* | sparc*)
119 - ac_cv_c_big_endian=1
120 - ac_cv_c_little_endian=0
129 - { /* Are we little or big endian? From Harbison&Steele. */
132 - char c [sizeof (long)] ;
135 - return (u.c [sizeof (long) - 1] == 1);
137 - ]], , ac_cv_c_byte_order=big,
138 - ac_cv_c_byte_order=unknown
143 - { /* Are we little or big endian? From Harbison&Steele. */
146 - char c [sizeof (long)] ;
149 - return (u.c [0] == 1);
150 - }]], , ac_cv_c_byte_order=little,
151 - ac_cv_c_byte_order=unknown
155 +# serial 48 Debian 1.5.22-4 AC_PROG_LIBTOOL
160 -if test $ac_cv_c_byte_order = big ; then
161 - ac_cv_c_big_endian=1
162 - ac_cv_c_little_endian=0
163 -elif test $ac_cv_c_byte_order = little ; then
164 - ac_cv_c_big_endian=0
165 - ac_cv_c_little_endian=1
167 - ac_cv_c_big_endian=0
168 - ac_cv_c_little_endian=0
169 +# AC_PROVIDE_IFELSE(MACRO-NAME, IF-PROVIDED, IF-NOT-PROVIDED)
170 +# -----------------------------------------------------------
171 +# If this macro is not defined by Autoconf, define it here.
172 +m4_ifdef([AC_PROVIDE_IFELSE],
174 + [m4_define([AC_PROVIDE_IFELSE],
175 + [m4_ifdef([AC_PROVIDE_$1],
178 - AC_MSG_WARN([[*****************************************************************]])
179 - AC_MSG_WARN([[*** Not able to determine endian-ness of target processor. ]])
180 - AC_MSG_WARN([[*** The constants CPU_IS_BIG_ENDIAN and CPU_IS_LITTLE_ENDIAN in ]])
181 - AC_MSG_WARN([[*** src/config.h may need to be hand editied. ]])
182 - AC_MSG_WARN([[*****************************************************************]])
188 +AC_DEFUN([AC_PROG_LIBTOOL],
189 +[AC_REQUIRE([_AC_PROG_LIBTOOL])dnl
190 +dnl If AC_PROG_CXX has already been expanded, run AC_LIBTOOL_CXX
191 +dnl immediately, otherwise, hook it in at the end of AC_PROG_CXX.
192 + AC_PROVIDE_IFELSE([AC_PROG_CXX],
194 + [define([AC_PROG_CXX], defn([AC_PROG_CXX])[AC_LIBTOOL_CXX
196 +dnl And a similar setup for Fortran 77 support
197 + AC_PROVIDE_IFELSE([AC_PROG_F77],
199 + [define([AC_PROG_F77], defn([AC_PROG_F77])[AC_LIBTOOL_F77
202 -dnl @synopsis AC_C99_FUNC_LRINT
204 -dnl Check whether C99's lrint function is available.
205 -dnl @version 1.3 Feb 12 2002
206 -dnl @author Erik de Castro Lopo <erikd AT mega-nerd DOT com>
208 -dnl Permission to use, copy, modify, distribute, and sell this file for any
209 -dnl purpose is hereby granted without fee, provided that the above copyright
210 -dnl and this permission notice appear in all copies. No representations are
211 -dnl made about the suitability of this software for any purpose. It is
212 -dnl provided "as is" without express or implied warranty.
214 -AC_DEFUN([AC_C99_FUNC_LRINT],
215 -[AC_CACHE_CHECK(for lrint,
218 -lrint_save_CFLAGS=$CFLAGS
221 -#define _ISOC9X_SOURCE 1
222 -#define _ISOC99_SOURCE 1
223 -#define __USE_ISOC99 1
224 -#define __USE_ISOC9X 1
225 +dnl Quote A][M_PROG_GCJ so that aclocal doesn't bring it in needlessly.
226 +dnl If either AC_PROG_GCJ or A][M_PROG_GCJ have already been expanded, run
227 +dnl AC_LIBTOOL_GCJ immediately, otherwise, hook it in at the end of both.
228 + AC_PROVIDE_IFELSE([AC_PROG_GCJ],
230 + [AC_PROVIDE_IFELSE([A][M_PROG_GCJ],
232 + [AC_PROVIDE_IFELSE([LT_AC_PROG_GCJ],
234 + [ifdef([AC_PROG_GCJ],
235 + [define([AC_PROG_GCJ], defn([AC_PROG_GCJ])[AC_LIBTOOL_GCJ])])
236 + ifdef([A][M_PROG_GCJ],
237 + [define([A][M_PROG_GCJ], defn([A][M_PROG_GCJ])[AC_LIBTOOL_GCJ])])
238 + ifdef([LT_AC_PROG_GCJ],
239 + [define([LT_AC_PROG_GCJ],
240 + defn([LT_AC_PROG_GCJ])[AC_LIBTOOL_GCJ])])])])
241 +])])# AC_PROG_LIBTOOL
244 -], if (!lrint(3.14159)) lrint(2.7183);, ac_cv_c99_lrint=yes, ac_cv_c99_lrint=no)
246 -CFLAGS=$lrint_save_CFLAGS
249 +AC_DEFUN([_AC_PROG_LIBTOOL],
250 +[AC_REQUIRE([AC_LIBTOOL_SETUP])dnl
251 +AC_BEFORE([$0],[AC_LIBTOOL_CXX])dnl
252 +AC_BEFORE([$0],[AC_LIBTOOL_F77])dnl
253 +AC_BEFORE([$0],[AC_LIBTOOL_GCJ])dnl
256 +# This can be used to rebuild libtool when needed
257 +LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
259 -if test "$ac_cv_c99_lrint" = yes; then
260 - AC_DEFINE(HAVE_LRINT, 1,
261 - [Define if you have C99's lrint function.])
263 -])# AC_C99_FUNC_LRINT
264 -dnl @synopsis AC_C99_FUNC_LRINTF
266 -dnl Check whether C99's lrintf function is available.
267 -dnl @version 1.3 Feb 12 2002
268 -dnl @author Erik de Castro Lopo <erikd AT mega-nerd DOT com>
270 -dnl Permission to use, copy, modify, distribute, and sell this file for any
271 -dnl purpose is hereby granted without fee, provided that the above copyright
272 -dnl and this permission notice appear in all copies. No representations are
273 -dnl made about the suitability of this software for any purpose. It is
274 -dnl provided "as is" without express or implied warranty.
276 -AC_DEFUN([AC_C99_FUNC_LRINTF],
277 -[AC_CACHE_CHECK(for lrintf,
280 -lrintf_save_CFLAGS=$CFLAGS
283 -#define _ISOC9X_SOURCE 1
284 -#define _ISOC99_SOURCE 1
285 -#define __USE_ISOC99 1
286 -#define __USE_ISOC9X 1
287 +# Always use our own libtool.
288 +LIBTOOL='$(SHELL) $(top_builddir)/libtool'
289 +AC_SUBST(LIBTOOL)dnl
292 -], if (!lrintf(3.14159)) lrintf(2.7183);, ac_cv_c99_lrintf=yes, ac_cv_c99_lrintf=no)
293 +# Prevent multiple expansion
294 +define([AC_PROG_LIBTOOL], [])
295 +])# _AC_PROG_LIBTOOL
297 -CFLAGS=$lrintf_save_CFLAGS
302 +AC_DEFUN([AC_LIBTOOL_SETUP],
304 +AC_REQUIRE([AC_ENABLE_SHARED])dnl
305 +AC_REQUIRE([AC_ENABLE_STATIC])dnl
306 +AC_REQUIRE([AC_ENABLE_FAST_INSTALL])dnl
307 +AC_REQUIRE([AC_CANONICAL_HOST])dnl
308 +AC_REQUIRE([AC_CANONICAL_BUILD])dnl
309 +AC_REQUIRE([AC_PROG_CC])dnl
310 +AC_REQUIRE([AC_PROG_LD])dnl
311 +AC_REQUIRE([AC_PROG_LD_RELOAD_FLAG])dnl
312 +AC_REQUIRE([AC_PROG_NM])dnl
314 -if test "$ac_cv_c99_lrintf" = yes; then
315 - AC_DEFINE(HAVE_LRINTF, 1,
316 - [Define if you have C99's lrintf function.])
318 -])# AC_C99_FUNC_LRINTF
319 -dnl @synopsis AC_C99_FUNC_LLRINT
321 -dnl Check whether C99's llrint function is available.
322 -dnl @version 1.1 Sep 30 2002
323 -dnl @author Erik de Castro Lopo <erikd AT mega-nerd DOT com>
325 -dnl Permission to use, copy, modify, distribute, and sell this file for any
326 -dnl purpose is hereby granted without fee, provided that the above copyright
327 -dnl and this permission notice appear in all copies. No representations are
328 -dnl made about the suitability of this software for any purpose. It is
329 -dnl provided "as is" without express or implied warranty.
330 +AC_REQUIRE([AC_PROG_LN_S])dnl
331 +AC_REQUIRE([AC_DEPLIBS_CHECK_METHOD])dnl
332 +# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
333 +AC_REQUIRE([AC_OBJEXT])dnl
334 +AC_REQUIRE([AC_EXEEXT])dnl
336 -AC_DEFUN([AC_C99_FUNC_LLRINT],
337 -[AC_CACHE_CHECK(for llrint,
340 -llrint_save_CFLAGS=$CFLAGS
343 -#define _ISOC9X_SOURCE 1
344 -#define _ISOC99_SOURCE 1
345 -#define __USE_ISOC99 1
346 -#define __USE_ISOC9X 1
350 -], int64_t x ; x = llrint(3.14159) ;, ac_cv_c99_llrint=yes, ac_cv_c99_llrint=no)
352 -CFLAGS=$llrint_save_CFLAGS
353 +AC_LIBTOOL_SYS_MAX_CMD_LEN
354 +AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE
358 +AC_REQUIRE([_LT_AC_SYS_COMPILER])dnl
359 +_LT_AC_PROG_ECHO_BACKSLASH
361 -if test "$ac_cv_c99_llrint" = yes; then
362 - AC_DEFINE(HAVE_LLRINT, 1,
363 - [Define if you have C99's llrint function.])
365 -])# AC_C99_FUNC_LLRINT
368 + # AIX sometimes has problems with the GCC collect2 program. For some
369 + # reason, if we set the COLLECT_NAMES environment variable, the problems
370 + # vanish in a puff of smoke.
371 + if test "X${COLLECT_NAMES+set}" != Xset; then
373 + export COLLECT_NAMES
378 +# Sed substitution that helps us do robust quoting. It backslashifies
379 +# metacharacters that are still active within double-quoted strings.
380 +Xsed='sed -e 1s/^X//'
381 +[sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g']
383 +# Same as above, but do not quote variable references.
384 +[double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g']
386 -dnl @synopsis AC_C_CLIP_MODE
388 -dnl Determine the clipping mode when converting float to int.
389 -dnl @version 1.0 May 17 2003
390 -dnl @author Erik de Castro Lopo <erikd AT mega-nerd DOT com>
392 -dnl Permission to use, copy, modify, distribute, and sell this file for any
393 -dnl purpose is hereby granted without fee, provided that the above copyright
394 -dnl and this permission notice appear in all copies. No representations are
395 -dnl made about the suitability of this software for any purpose. It is
396 -dnl provided "as is" without express or implied warranty.
397 +# Sed substitution to delay expansion of an escaped shell variable in a
398 +# double_quote_subst'ed string.
399 +delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
401 +# Sed substitution to avoid accidental globbing in evaled expressions
402 +no_glob_subst='s/\*/\\\*/g'
407 -dnl Find the clipping mode in the following way:
408 -dnl 1) If we are not cross compiling test it.
409 -dnl 2) IF we are cross compiling, assume that clipping isn't done correctly.
411 -AC_DEFUN([AC_C_CLIP_MODE],
412 -[AC_CACHE_CHECK(processor clipping capabilities,
415 -# Initialize to unknown
416 -ac_cv_c_clip_positive=unknown
417 -ac_cv_c_clip_negative=unknown
419 -if test $ac_cv_c_clip_positive = unknown ; then
422 - #define _ISOC9X_SOURCE 1
423 - #define _ISOC99_SOURCE 1
424 - #define __USE_ISOC99 1
425 - #define __USE_ISOC9X 1
431 - fval = 1.0 * 0x7FFFFFFF ;
432 - for (k = 0 ; k < 100 ; k++)
433 - { ival = (lrint (fval)) >> 24 ;
437 - fval *= 1.2499999 ;
443 - ac_cv_c_clip_positive=yes,
444 - ac_cv_c_clip_positive=no,
445 - ac_cv_c_clip_positive=unknown
450 - #define _ISOC9X_SOURCE 1
451 - #define _ISOC99_SOURCE 1
452 - #define __USE_ISOC99 1
453 - #define __USE_ISOC9X 1
459 - fval = -8.0 * 0x10000000 ;
460 - for (k = 0 ; k < 100 ; k++)
461 - { ival = (lrint (fval)) >> 24 ;
465 - fval *= 1.2499999 ;
471 - ac_cv_c_clip_negative=yes,
472 - ac_cv_c_clip_negative=no,
473 - ac_cv_c_clip_negative=unknown
476 +default_ofile=libtool
477 +can_build_shared=yes
480 +# All known linkers require a `.a' archive for static linking (except MSVC,
481 +# which needs '.lib').
483 +ltmain="$ac_aux_dir/ltmain.sh"
484 +ofile="$default_ofile"
485 +with_gnu_ld="$lt_cv_prog_gnu_ld"
487 -if test $ac_cv_c_clip_positive = yes ; then
488 - ac_cv_c_clip_positive=1
490 - ac_cv_c_clip_positive=0
492 +AC_CHECK_TOOL(AR, ar, false)
493 +AC_CHECK_TOOL(RANLIB, ranlib, :)
494 +AC_CHECK_TOOL(STRIP, strip, :)
496 -if test $ac_cv_c_clip_negative = yes ; then
497 - ac_cv_c_clip_negative=1
499 - ac_cv_c_clip_negative=0
502 +old_CFLAGS="$CFLAGS"
505 -case "$ac_cv_c_clip_positive$ac_cv_c_clip_negative" in
507 - ac_cv_c_clip_type="none"
510 - ac_cv_c_clip_type="positive"
513 - ac_cv_c_clip_type="negative"
516 - ac_cv_c_clip_type="both"
520 +# Set sane defaults for various variables
521 +test -z "$AR" && AR=ar
522 +test -z "$AR_FLAGS" && AR_FLAGS=cru
523 +test -z "$AS" && AS=as
524 +test -z "$CC" && CC=cc
525 +test -z "$LTCC" && LTCC=$CC
526 +test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
527 +test -z "$DLLTOOL" && DLLTOOL=dlltool
528 +test -z "$LD" && LD=ld
529 +test -z "$LN_S" && LN_S="ln -s"
530 +test -z "$MAGIC_CMD" && MAGIC_CMD=file
531 +test -z "$NM" && NM=nm
532 +test -z "$SED" && SED=sed
533 +test -z "$OBJDUMP" && OBJDUMP=objdump
534 +test -z "$RANLIB" && RANLIB=:
535 +test -z "$STRIP" && STRIP=:
536 +test -z "$ac_objext" && ac_objext=o
540 +# Determine commands to create old-style static archives.
541 +old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
542 +old_postinstall_cmds='chmod 644 $oldlib'
543 +old_postuninstall_cmds=
546 +if test -n "$RANLIB"; then
549 + old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
552 + old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
555 + old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
558 +_LT_CC_BASENAME([$compiler])
560 +# Only perform the check for file, if the check method requires it
561 +case $deplibs_check_method in
563 + if test "$file_magic_cmd" = '$MAGIC_CMD'; then
569 +AC_PROVIDE_IFELSE([AC_LIBTOOL_DLOPEN], enable_dlopen=yes, enable_dlopen=no)
570 +AC_PROVIDE_IFELSE([AC_LIBTOOL_WIN32_DLL],
571 +enable_win32_dll=yes, enable_win32_dll=no)
574 +AC_ARG_ENABLE([libtool-lock],
575 + [AC_HELP_STRING([--disable-libtool-lock],
576 + [avoid locking (might break parallel builds)])])
577 +test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
579 - Do not edit or modify anything in this comment block.
580 - The arch-tag line is a file identity tag for the GNU Arch
581 - revision control system.
583 + [AC_HELP_STRING([--with-pic],
584 + [try to use only PIC/non-PIC objects @<:@default=use both@:>@])],
585 + [pic_mode="$withval"],
586 + [pic_mode=default])
587 +test -z "$pic_mode" && pic_mode=default
589 - arch-tag: 6db7c287-8971-4074-a193-468446194fd0
590 +# Use C for the default configuration in the libtool script
592 +AC_LIBTOOL_LANG_C_CONFIG
594 +])# AC_LIBTOOL_SETUP
598 +# _LT_AC_SYS_COMPILER
599 +# -------------------
600 +AC_DEFUN([_LT_AC_SYS_COMPILER],
601 +[AC_REQUIRE([AC_PROG_CC])dnl
603 -# Do all the work for Automake. -*- Autoconf -*-
604 +# If no C compiler was specified, use CC.
607 -# This macro actually does too much some checks are only needed if
608 -# your package does certain things. But this isn't really a big deal.
609 +# If no C compiler flags were specified, use CFLAGS.
610 +LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
612 -# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003
613 -# Free Software Foundation, Inc.
614 +# Allow CC to be a program name with arguments.
616 +])# _LT_AC_SYS_COMPILER
618 -# This program is free software; you can redistribute it and/or modify
619 -# it under the terms of the GNU General Public License as published by
620 -# the Free Software Foundation; either version 2, or (at your option)
621 -# any later version.
623 -# This program is distributed in the hope that it will be useful,
624 -# but WITHOUT ANY WARRANTY; without even the implied warranty of
625 -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
626 -# GNU General Public License for more details.
627 +# _LT_CC_BASENAME(CC)
628 +# -------------------
629 +# Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
630 +AC_DEFUN([_LT_CC_BASENAME],
631 +[for cc_temp in $1""; do
633 + compile | *[[\\/]]compile | ccache | *[[\\/]]ccache ) ;;
634 + distcc | *[[\\/]]distcc | purify | *[[\\/]]purify ) ;;
639 +cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
642 -# You should have received a copy of the GNU General Public License
643 -# along with this program; if not, write to the Free Software
644 -# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
648 +# _LT_COMPILER_BOILERPLATE
649 +# ------------------------
650 +# Check for compiler boilerplate output or warnings with
651 +# the simple compiler test code.
652 +AC_DEFUN([_LT_COMPILER_BOILERPLATE],
653 +[ac_outfile=conftest.$ac_objext
654 +printf "$lt_simple_compile_test_code" >conftest.$ac_ext
655 +eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
656 +_lt_compiler_boilerplate=`cat conftest.err`
658 +])# _LT_COMPILER_BOILERPLATE
662 -# Autoconf 2.50 wants to disallow AM_ names. We explicitly allow
663 -# the ones we care about.
664 -m4_pattern_allow([^AM_[A-Z]+FLAGS$])dnl
665 +# _LT_LINKER_BOILERPLATE
666 +# ----------------------
667 +# Check for linker boilerplate output or warnings with
668 +# the simple link test code.
669 +AC_DEFUN([_LT_LINKER_BOILERPLATE],
670 +[ac_outfile=conftest.$ac_objext
671 +printf "$lt_simple_link_test_code" >conftest.$ac_ext
672 +eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
673 +_lt_linker_boilerplate=`cat conftest.err`
675 +])# _LT_LINKER_BOILERPLATE
677 -# AM_INIT_AUTOMAKE(PACKAGE, VERSION, [NO-DEFINE])
678 -# AM_INIT_AUTOMAKE([OPTIONS])
679 -# -----------------------------------------------
680 -# The call with PACKAGE and VERSION arguments is the old style
681 -# call (pre autoconf-2.50), which is being phased out. PACKAGE
682 -# and VERSION should now be passed to AC_INIT and removed from
683 -# the call to AM_INIT_AUTOMAKE.
684 -# We support both call styles for the transition. After
685 -# the next Automake release, Autoconf can make the AC_INIT
686 -# arguments mandatory, and then we can depend on a new Autoconf
687 -# release and drop the old call support.
688 -AC_DEFUN([AM_INIT_AUTOMAKE],
689 -[AC_REQUIRE([AM_SET_CURRENT_AUTOMAKE_VERSION])dnl
690 - AC_REQUIRE([AC_PROG_INSTALL])dnl
691 -# test to see if srcdir already configured
692 -if test "`cd $srcdir && pwd`" != "`pwd`" &&
693 - test -f $srcdir/config.status; then
694 - AC_MSG_ERROR([source directory already configured; run "make distclean" there first])
697 -# test whether we have cygpath
698 -if test -z "$CYGPATH_W"; then
699 - if (cygpath --version) >/dev/null 2>/dev/null; then
700 - CYGPATH_W='cygpath -w'
705 -AC_SUBST([CYGPATH_W])
707 -# Define the identity of the package.
708 -dnl Distinguish between old-style and new-style calls.
710 -[m4_ifval([$3], [_AM_SET_OPTION([no-define])])dnl
711 - AC_SUBST([PACKAGE], [$1])dnl
712 - AC_SUBST([VERSION], [$2])],
713 -[_AM_SET_OPTIONS([$1])dnl
714 - AC_SUBST([PACKAGE], ['AC_PACKAGE_TARNAME'])dnl
715 - AC_SUBST([VERSION], ['AC_PACKAGE_VERSION'])])dnl
716 +# _LT_AC_SYS_LIBPATH_AIX
717 +# ----------------------
718 +# Links a minimal program and checks the executable
719 +# for the system default hardcoded library path. In most cases,
720 +# this is /usr/lib:/lib, but when the MPI compilers are used
721 +# the location of the communication and MPI libs are included too.
722 +# If we don't find anything, use the default library path according
723 +# to the aix ld manual.
724 +AC_DEFUN([_LT_AC_SYS_LIBPATH_AIX],
725 +[AC_LINK_IFELSE(AC_LANG_PROGRAM,[
726 +aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
728 +# Check for a 64-bit object if we didn't find anything.
729 +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; }
731 +if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
732 +])# _LT_AC_SYS_LIBPATH_AIX
734 -_AM_IF_OPTION([no-define],,
735 -[AC_DEFINE_UNQUOTED(PACKAGE, "$PACKAGE", [Name of package])
736 - AC_DEFINE_UNQUOTED(VERSION, "$VERSION", [Version number of package])])dnl
738 -# Some tools Automake needs.
739 -AC_REQUIRE([AM_SANITY_CHECK])dnl
740 -AC_REQUIRE([AC_ARG_PROGRAM])dnl
741 -AM_MISSING_PROG(ACLOCAL, aclocal-${am__api_version})
742 -AM_MISSING_PROG(AUTOCONF, autoconf)
743 -AM_MISSING_PROG(AUTOMAKE, automake-${am__api_version})
744 -AM_MISSING_PROG(AUTOHEADER, autoheader)
745 -AM_MISSING_PROG(MAKEINFO, makeinfo)
746 -AM_MISSING_PROG(AMTAR, tar)
748 -AM_PROG_INSTALL_STRIP
749 -# We need awk for the "check" target. The system "awk" is bad on
751 -AC_REQUIRE([AC_PROG_AWK])dnl
752 -AC_REQUIRE([AC_PROG_MAKE_SET])dnl
753 -AC_REQUIRE([AM_SET_LEADING_DOT])dnl
754 +# _LT_AC_SHELL_INIT(ARG)
755 +# ----------------------
756 +AC_DEFUN([_LT_AC_SHELL_INIT],
757 +[ifdef([AC_DIVERSION_NOTICE],
758 + [AC_DIVERT_PUSH(AC_DIVERSION_NOTICE)],
759 + [AC_DIVERT_PUSH(NOTICE)])
762 +])# _LT_AC_SHELL_INIT
764 -_AM_IF_OPTION([no-dependencies],,
765 -[AC_PROVIDE_IFELSE([AC_PROG_CC],
766 - [_AM_DEPENDENCIES(CC)],
767 - [define([AC_PROG_CC],
768 - defn([AC_PROG_CC])[_AM_DEPENDENCIES(CC)])])dnl
769 -AC_PROVIDE_IFELSE([AC_PROG_CXX],
770 - [_AM_DEPENDENCIES(CXX)],
771 - [define([AC_PROG_CXX],
772 - defn([AC_PROG_CXX])[_AM_DEPENDENCIES(CXX)])])dnl
776 +# _LT_AC_PROG_ECHO_BACKSLASH
777 +# --------------------------
778 +# Add some code to the start of the generated configure script which
779 +# will find an echo command which doesn't interpret backslashes.
780 +AC_DEFUN([_LT_AC_PROG_ECHO_BACKSLASH],
781 +[_LT_AC_SHELL_INIT([
782 +# Check that we are running under the correct shell.
783 +SHELL=${CONFIG_SHELL-/bin/sh}
785 -# When config.status generates a header, we must update the stamp-h file.
786 -# This file resides in the same directory as the config header
787 -# that is generated. The stamp files are numbered to have different names.
790 + # Remove one level of quotation (which was required for Make).
791 + ECHO=`echo "$ECHO" | sed 's,\\\\\[$]\\[$]0,'[$]0','`
795 -# Autoconf calls _AC_AM_CONFIG_HEADER_HOOK (when defined) in the
796 -# loop where config.status creates the headers, so we can generate
797 -# our stamp files there.
798 -AC_DEFUN([_AC_AM_CONFIG_HEADER_HOOK],
799 -[# Compute $1's index in $config_headers.
801 -for _am_header in $config_headers :; do
802 - case $_am_header in
806 - _am_stamp_count=`expr $_am_stamp_count + 1` ;;
809 -echo "timestamp for $1" >`AS_DIRNAME([$1])`/stamp-h[]$_am_stamp_count])
811 +if test "X[$]1" = X--no-reexec; then
812 + # Discard the --no-reexec flag, and continue.
814 +elif test "X[$]1" = X--fallback-echo; then
815 + # Avoid inline document here, it may be left over
817 +elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
818 + # Yippee, $echo works!
821 + # Restart under the correct shell.
822 + exec $SHELL "[$]0" --no-reexec ${1+"[$]@"}
825 -# Copyright 2002 Free Software Foundation, Inc.
826 +if test "X[$]1" = X--fallback-echo; then
827 + # used as fallback echo
835 -# This program is free software; you can redistribute it and/or modify
836 -# it under the terms of the GNU General Public License as published by
837 -# the Free Software Foundation; either version 2, or (at your option)
838 -# any later version.
839 +# The HP-UX ksh and POSIX shell print the target directory to stdout
841 +(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
843 -# This program is distributed in the hope that it will be useful,
844 -# but WITHOUT ANY WARRANTY; without even the implied warranty of
845 -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
846 -# GNU General Public License for more details.
847 +if test -z "$ECHO"; then
848 +if test "X${echo_test_string+set}" != Xset; then
849 +# find a string as large as possible, as long as the shell can cope with it
850 + for cmd in 'sed 50q "[$]0"' 'sed 20q "[$]0"' 'sed 10q "[$]0"' 'sed 2q "[$]0"' 'echo test'; do
851 + # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
852 + if (echo_test_string=`eval $cmd`) 2>/dev/null &&
853 + echo_test_string=`eval $cmd` &&
854 + (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
861 -# You should have received a copy of the GNU General Public License
862 -# along with this program; if not, write to the Free Software
863 -# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
864 +if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
865 + echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
866 + test "X$echo_testing_string" = "X$echo_test_string"; then
869 + # The Solaris, AIX, and Digital Unix default echo programs unquote
870 + # backslashes. This makes it impossible to quote backslashes using
871 + # echo "$something" | sed 's/\\/\\\\/g'
873 + # So, first we look for a working echo in the user's PATH.
875 -# AM_AUTOMAKE_VERSION(VERSION)
876 -# ----------------------------
877 -# Automake X.Y traces this macro to ensure aclocal.m4 has been
878 -# generated from the m4 files accompanying Automake X.Y.
879 -AC_DEFUN([AM_AUTOMAKE_VERSION],[am__api_version="1.7"])
880 + lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
881 + for dir in $PATH /usr/ucb; do
883 + if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
884 + test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
885 + echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
886 + test "X$echo_testing_string" = "X$echo_test_string"; then
893 -# AM_SET_CURRENT_AUTOMAKE_VERSION
894 -# -------------------------------
895 -# Call AM_AUTOMAKE_VERSION so it can be traced.
896 -# This function is AC_REQUIREd by AC_INIT_AUTOMAKE.
897 -AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION],
898 - [AM_AUTOMAKE_VERSION([1.7.9])])
899 + if test "X$echo" = Xecho; then
900 + # We didn't find a better echo, so look for alternatives.
901 + if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
902 + echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
903 + test "X$echo_testing_string" = "X$echo_test_string"; then
904 + # This shell has a builtin print -r that does the trick.
906 + elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
907 + test "X$CONFIG_SHELL" != X/bin/ksh; then
908 + # If we have ksh, try running configure again with it.
909 + ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
910 + export ORIGINAL_CONFIG_SHELL
911 + CONFIG_SHELL=/bin/ksh
912 + export CONFIG_SHELL
913 + exec $CONFIG_SHELL "[$]0" --no-reexec ${1+"[$]@"}
915 + # Try using printf.
917 + if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
918 + echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
919 + test "X$echo_testing_string" = "X$echo_test_string"; then
920 + # Cool, printf works
922 + elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "[$]0" --fallback-echo '\t') 2>/dev/null` &&
923 + test "X$echo_testing_string" = 'X\t' &&
924 + echo_testing_string=`($ORIGINAL_CONFIG_SHELL "[$]0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
925 + test "X$echo_testing_string" = "X$echo_test_string"; then
926 + CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
927 + export CONFIG_SHELL
928 + SHELL="$CONFIG_SHELL"
930 + echo="$CONFIG_SHELL [$]0 --fallback-echo"
931 + elif echo_testing_string=`($CONFIG_SHELL "[$]0" --fallback-echo '\t') 2>/dev/null` &&
932 + test "X$echo_testing_string" = 'X\t' &&
933 + echo_testing_string=`($CONFIG_SHELL "[$]0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
934 + test "X$echo_testing_string" = "X$echo_test_string"; then
935 + echo="$CONFIG_SHELL [$]0 --fallback-echo"
937 + # maybe with a smaller string...
940 -# Helper functions for option handling. -*- Autoconf -*-
941 + for cmd in 'echo test' 'sed 2q "[$]0"' 'sed 10q "[$]0"' 'sed 20q "[$]0"' 'sed 50q "[$]0"'; do
942 + if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
949 -# Copyright 2001, 2002 Free Software Foundation, Inc.
950 + if test "$prev" != 'sed 50q "[$]0"'; then
951 + echo_test_string=`eval $prev`
952 + export echo_test_string
953 + exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "[$]0" ${1+"[$]@"}
955 + # Oops. We lost completely, so just stick with echo.
964 -# This program is free software; you can redistribute it and/or modify
965 -# it under the terms of the GNU General Public License as published by
966 -# the Free Software Foundation; either version 2, or (at your option)
967 -# any later version.
968 +# Copy echo and quote the copy suitably for passing to libtool from
969 +# the Makefile, instead of quoting the original, which is used later.
971 +if test "X$ECHO" = "X$CONFIG_SHELL [$]0 --fallback-echo"; then
972 + ECHO="$CONFIG_SHELL \\\$\[$]0 --fallback-echo"
975 -# This program is distributed in the hope that it will be useful,
976 -# but WITHOUT ANY WARRANTY; without even the implied warranty of
977 -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
978 -# GNU General Public License for more details.
980 +])])# _LT_AC_PROG_ECHO_BACKSLASH
982 -# You should have received a copy of the GNU General Public License
983 -# along with this program; if not, write to the Free Software
984 -# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
990 +AC_DEFUN([_LT_AC_LOCK],
991 +[AC_ARG_ENABLE([libtool-lock],
992 + [AC_HELP_STRING([--disable-libtool-lock],
993 + [avoid locking (might break parallel builds)])])
994 +test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
996 -# _AM_MANGLE_OPTION(NAME)
997 -# -----------------------
998 -AC_DEFUN([_AM_MANGLE_OPTION],
999 -[[_AM_OPTION_]m4_bpatsubst($1, [[^a-zA-Z0-9_]], [_])])
1001 -# _AM_SET_OPTION(NAME)
1002 -# ------------------------------
1003 -# Set option NAME. Presently that only means defining a flag for this option.
1004 -AC_DEFUN([_AM_SET_OPTION],
1005 -[m4_define(_AM_MANGLE_OPTION([$1]), 1)])
1006 +# Some flags need to be propagated to the compiler or linker for good
1010 + # Find out which ABI we are using.
1011 + echo 'int i;' > conftest.$ac_ext
1012 + if AC_TRY_EVAL(ac_compile); then
1013 + case `/usr/bin/file conftest.$ac_objext` in
1015 + HPUX_IA64_MODE="32"
1018 + HPUX_IA64_MODE="64"
1025 + # Find out which ABI we are using.
1026 + echo '[#]line __oline__ "configure"' > conftest.$ac_ext
1027 + if AC_TRY_EVAL(ac_compile); then
1028 + if test "$lt_cv_prog_gnu_ld" = yes; then
1029 + case `/usr/bin/file conftest.$ac_objext` in
1031 + LD="${LD-ld} -melf32bsmip"
1034 + LD="${LD-ld} -melf32bmipn32"
1037 + LD="${LD-ld} -melf64bmip"
1041 + case `/usr/bin/file conftest.$ac_objext` in
1046 + LD="${LD-ld} -n32"
1057 -# _AM_SET_OPTIONS(OPTIONS)
1058 -# ----------------------------------
1059 -# OPTIONS is a space-separated list of Automake options.
1060 -AC_DEFUN([_AM_SET_OPTIONS],
1061 -[AC_FOREACH([_AM_Option], [$1], [_AM_SET_OPTION(_AM_Option)])])
1062 +x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
1063 + # Find out which ABI we are using.
1064 + echo 'int i;' > conftest.$ac_ext
1065 + if AC_TRY_EVAL(ac_compile); then
1066 + case `/usr/bin/file conftest.o` in
1070 + LD="${LD-ld} -m elf_i386"
1072 + ppc64-*linux*|powerpc64-*linux*)
1073 + LD="${LD-ld} -m elf32ppclinux"
1076 + LD="${LD-ld} -m elf_s390"
1079 + LD="${LD-ld} -m elf32_sparc"
1086 + LD="${LD-ld} -m elf_x86_64"
1088 + ppc*-*linux*|powerpc*-*linux*)
1089 + LD="${LD-ld} -m elf64ppc"
1092 + LD="${LD-ld} -m elf64_s390"
1095 + LD="${LD-ld} -m elf64_sparc"
1104 -# _AM_IF_OPTION(OPTION, IF-SET, [IF-NOT-SET])
1105 -# -------------------------------------------
1106 -# Execute IF-SET if OPTION is set, IF-NOT-SET otherwise.
1107 -AC_DEFUN([_AM_IF_OPTION],
1108 -[m4_ifset(_AM_MANGLE_OPTION([$1]), [$2], [$3])])
1110 + # On SCO OpenServer 5, we need -belf to get full-featured binaries.
1111 + SAVE_CFLAGS="$CFLAGS"
1112 + CFLAGS="$CFLAGS -belf"
1113 + AC_CACHE_CHECK([whether the C compiler needs -belf], lt_cv_cc_needs_belf,
1115 + AC_TRY_LINK([],[],[lt_cv_cc_needs_belf=yes],[lt_cv_cc_needs_belf=no])
1117 + if test x"$lt_cv_cc_needs_belf" != x"yes"; then
1118 + # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
1119 + CFLAGS="$SAVE_CFLAGS"
1123 + # Find out which ABI we are using.
1124 + echo 'int i;' > conftest.$ac_ext
1125 + if AC_TRY_EVAL(ac_compile); then
1126 + case `/usr/bin/file conftest.o` in
1128 + case $lt_cv_prog_gnu_ld in
1129 + yes*) LD="${LD-ld} -m elf64_sparc" ;;
1130 + *) LD="${LD-ld} -64" ;;
1139 -# Check to make sure that the build environment is sane.
1141 +AC_PROVIDE_IFELSE([AC_LIBTOOL_WIN32_DLL],
1142 +[*-*-cygwin* | *-*-mingw* | *-*-pw32*)
1143 + AC_CHECK_TOOL(DLLTOOL, dlltool, false)
1144 + AC_CHECK_TOOL(AS, as, false)
1145 + AC_CHECK_TOOL(OBJDUMP, objdump, false)
1150 -# Copyright 1996, 1997, 2000, 2001 Free Software Foundation, Inc.
1151 +need_locks="$enable_libtool_lock"
1153 -# This program is free software; you can redistribute it and/or modify
1154 -# it under the terms of the GNU General Public License as published by
1155 -# the Free Software Foundation; either version 2, or (at your option)
1156 -# any later version.
1159 -# This program is distributed in the hope that it will be useful,
1160 -# but WITHOUT ANY WARRANTY; without even the implied warranty of
1161 -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
1162 -# GNU General Public License for more details.
1164 -# You should have received a copy of the GNU General Public License
1165 -# along with this program; if not, write to the Free Software
1166 -# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
1168 +# AC_LIBTOOL_COMPILER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS,
1169 +# [OUTPUT-FILE], [ACTION-SUCCESS], [ACTION-FAILURE])
1170 +# ----------------------------------------------------------------
1171 +# Check whether the given compiler option works
1172 +AC_DEFUN([AC_LIBTOOL_COMPILER_OPTION],
1173 +[AC_REQUIRE([LT_AC_PROG_SED])
1174 +AC_CACHE_CHECK([$1], [$2],
1176 + ifelse([$4], , [ac_outfile=conftest.$ac_objext], [ac_outfile=$4])
1177 + printf "$lt_simple_compile_test_code" > conftest.$ac_ext
1178 + lt_compiler_flag="$3"
1179 + # Insert the option either (1) after the last *FLAGS variable, or
1180 + # (2) before a word containing "conftest.", or (3) at the end.
1181 + # Note that $ac_compile itself does not contain backslashes and begins
1182 + # with a dollar sign (not a hyphen), so the echo should work correctly.
1183 + # The option is referenced via a variable to avoid confusing sed.
1184 + lt_compile=`echo "$ac_compile" | $SED \
1185 + -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
1186 + -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \
1187 + -e 's:$: $lt_compiler_flag:'`
1188 + (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&AS_MESSAGE_LOG_FD)
1189 + (eval "$lt_compile" 2>conftest.err)
1191 + cat conftest.err >&AS_MESSAGE_LOG_FD
1192 + echo "$as_me:__oline__: \$? = $ac_status" >&AS_MESSAGE_LOG_FD
1193 + if (exit $ac_status) && test -s "$ac_outfile"; then
1194 + # The compiler can only warn and ignore the option if not recognized
1195 + # So say no if there are warnings other than the usual output.
1196 + $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
1197 + $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
1198 + if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
1206 +if test x"[$]$2" = xyes; then
1207 + ifelse([$5], , :, [$5])
1209 + ifelse([$6], , :, [$6])
1211 +])# AC_LIBTOOL_COMPILER_OPTION
1215 -AC_DEFUN([AM_SANITY_CHECK],
1216 -[AC_MSG_CHECKING([whether build environment is sane])
1219 -echo timestamp > conftest.file
1220 -# Do `set' in a subshell so we don't clobber the current shell's
1221 -# arguments. Must try -L first in case configure is actually a
1222 -# symlink; some systems play weird games with the mod time of symlinks
1223 -# (eg FreeBSD returns the mod time of the symlink's containing
1226 - set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1227 - if test "$[*]" = "X"; then
1229 - set X `ls -t $srcdir/configure conftest.file`
1231 - rm -f conftest.file
1232 - if test "$[*]" != "X $srcdir/configure conftest.file" \
1233 - && test "$[*]" != "X conftest.file $srcdir/configure"; then
1235 - # If neither matched, then we have a broken ls. This can happen
1236 - # if, for instance, CONFIG_SHELL is bash and it inherits a
1237 - # broken ls alias from the environment. This has actually
1238 - # happened. Such a system could not be considered "sane".
1239 - AC_MSG_ERROR([ls -t appears to fail. Make sure there is not a broken
1240 -alias in your environment])
1241 +# AC_LIBTOOL_LINKER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS,
1242 +# [ACTION-SUCCESS], [ACTION-FAILURE])
1243 +# ------------------------------------------------------------
1244 +# Check whether the given compiler option works
1245 +AC_DEFUN([AC_LIBTOOL_LINKER_OPTION],
1246 +[AC_CACHE_CHECK([$1], [$2],
1248 + save_LDFLAGS="$LDFLAGS"
1249 + LDFLAGS="$LDFLAGS $3"
1250 + printf "$lt_simple_link_test_code" > conftest.$ac_ext
1251 + if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
1252 + # The linker can only warn and ignore the option if not recognized
1253 + # So say no if there are warnings
1254 + if test -s conftest.err; then
1255 + # Append any errors to the config.log.
1256 + cat conftest.err 1>&AS_MESSAGE_LOG_FD
1257 + $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
1258 + $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
1259 + if diff conftest.exp conftest.er2 >/dev/null; then
1267 + LDFLAGS="$save_LDFLAGS"
1270 - test "$[2]" = conftest.file
1275 +if test x"[$]$2" = xyes; then
1276 + ifelse([$4], , :, [$4])
1278 - AC_MSG_ERROR([newly created file is older than distributed files!
1279 -Check your system clock])
1280 + ifelse([$5], , :, [$5])
1282 -AC_MSG_RESULT(yes)])
1285 +])# AC_LIBTOOL_LINKER_OPTION
1288 -# Copyright 1997, 1999, 2000, 2001 Free Software Foundation, Inc.
1289 +# AC_LIBTOOL_SYS_MAX_CMD_LEN
1290 +# --------------------------
1291 +AC_DEFUN([AC_LIBTOOL_SYS_MAX_CMD_LEN],
1292 +[# find the maximum length of command line arguments
1293 +AC_MSG_CHECKING([the maximum length of command line arguments])
1294 +AC_CACHE_VAL([lt_cv_sys_max_cmd_len], [dnl
1298 -# This program is free software; you can redistribute it and/or modify
1299 -# it under the terms of the GNU General Public License as published by
1300 -# the Free Software Foundation; either version 2, or (at your option)
1301 -# any later version.
1303 -# This program is distributed in the hope that it will be useful,
1304 -# but WITHOUT ANY WARRANTY; without even the implied warranty of
1305 -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
1306 -# GNU General Public License for more details.
1308 -# You should have received a copy of the GNU General Public License
1309 -# along with this program; if not, write to the Free Software
1310 -# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
1314 + # On DJGPP, this test can blow up pretty badly due to problems in libc
1315 + # (any single argument exceeding 2000 bytes causes a buffer overrun
1316 + # during glob expansion). Even if it were fixed, the result of this
1317 + # check would be larger than it should be.
1318 + lt_cv_sys_max_cmd_len=12288; # 12K is about right
1323 + # Under GNU Hurd, this test is not required because there is
1324 + # no limit to the length of command line arguments.
1325 + # Libtool will interpret -1 as no limit whatsoever
1326 + lt_cv_sys_max_cmd_len=-1;
1329 -# AM_MISSING_PROG(NAME, PROGRAM)
1330 -# ------------------------------
1331 -AC_DEFUN([AM_MISSING_PROG],
1332 -[AC_REQUIRE([AM_MISSING_HAS_RUN])
1333 -$1=${$1-"${am_missing_run}$2"}
1336 + # On Win9x/ME, this test blows up -- it succeeds, but takes
1337 + # about 5 minutes as the teststring grows exponentially.
1338 + # Worse, since 9x/ME are not pre-emptively multitasking,
1339 + # you end up with a "frozen" computer, even though with patience
1340 + # the test eventually succeeds (with a max line length of 256k).
1341 + # Instead, let's just punt: use the minimum linelength reported by
1342 + # all of the supported platforms: 8192 (on NT/2K/XP).
1343 + lt_cv_sys_max_cmd_len=8192;
1347 + # On AmigaOS with pdksh, this test takes hours, literally.
1348 + # So we just punt and use a minimum line length of 8192.
1349 + lt_cv_sys_max_cmd_len=8192;
1352 -# AM_MISSING_HAS_RUN
1353 -# ------------------
1354 -# Define MISSING if not defined so far and test if it supports --run.
1355 -# If it does, set am_missing_run to use it, otherwise, to nothing.
1356 -AC_DEFUN([AM_MISSING_HAS_RUN],
1357 -[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
1358 -test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1359 -# Use eval to expand $SHELL
1360 -if eval "$MISSING --run true"; then
1361 - am_missing_run="$MISSING --run "
1362 + netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
1363 + # This has been around since 386BSD, at least. Likely further.
1364 + if test -x /sbin/sysctl; then
1365 + lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
1366 + elif test -x /usr/sbin/sysctl; then
1367 + lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
1369 + lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
1371 + # And add a safety zone
1372 + lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
1373 + lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
1377 + # We know the value 262144 and hardcode it with a safety zone (like BSD)
1378 + lt_cv_sys_max_cmd_len=196608
1382 + # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
1383 + # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
1384 + # nice to cause kernel panics so lets avoid the loop below.
1385 + # First set a reasonable default.
1386 + lt_cv_sys_max_cmd_len=16384
1388 + if test -x /sbin/sysconfig; then
1389 + case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
1390 + *1*) lt_cv_sys_max_cmd_len=-1 ;;
1395 + lt_cv_sys_max_cmd_len=102400
1397 + sysv5* | sco5v6* | sysv4.2uw2*)
1398 + kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
1399 + if test -n "$kargmax"; then
1400 + lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[[ ]]//'`
1402 + lt_cv_sys_max_cmd_len=32768
1406 + # If test is not a shell built-in, we'll probably end up computing a
1407 + # maximum length that is only half of the actual maximum length, but
1409 + SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
1410 + while (test "X"`$SHELL [$]0 --fallback-echo "X$teststring" 2>/dev/null` \
1411 + = "XX$teststring") >/dev/null 2>&1 &&
1412 + new_result=`expr "X$teststring" : ".*" 2>&1` &&
1413 + lt_cv_sys_max_cmd_len=$new_result &&
1414 + test $i != 17 # 1/2 MB should be enough
1417 + teststring=$teststring$teststring
1420 + # Add a significant safety factor because C++ compilers can tack on massive
1421 + # amounts of additional arguments before passing them to the linker.
1422 + # It appears as though 1/2 is a usable value.
1423 + lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
1427 +if test -n $lt_cv_sys_max_cmd_len ; then
1428 + AC_MSG_RESULT($lt_cv_sys_max_cmd_len)
1431 - AC_MSG_WARN([`missing' script is too old or missing])
1432 + AC_MSG_RESULT(none)
1435 +])# AC_LIBTOOL_SYS_MAX_CMD_LEN
1437 -# AM_AUX_DIR_EXPAND
1439 -# Copyright 2001 Free Software Foundation, Inc.
1440 +# _LT_AC_CHECK_DLFCN
1441 +# ------------------
1442 +AC_DEFUN([_LT_AC_CHECK_DLFCN],
1443 +[AC_CHECK_HEADERS(dlfcn.h)dnl
1444 +])# _LT_AC_CHECK_DLFCN
1446 -# This program is free software; you can redistribute it and/or modify
1447 -# it under the terms of the GNU General Public License as published by
1448 -# the Free Software Foundation; either version 2, or (at your option)
1449 -# any later version.
1451 -# This program is distributed in the hope that it will be useful,
1452 -# but WITHOUT ANY WARRANTY; without even the implied warranty of
1453 -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
1454 -# GNU General Public License for more details.
1455 +# _LT_AC_TRY_DLOPEN_SELF (ACTION-IF-TRUE, ACTION-IF-TRUE-W-USCORE,
1456 +# ACTION-IF-FALSE, ACTION-IF-CROSS-COMPILING)
1457 +# ---------------------------------------------------------------------
1458 +AC_DEFUN([_LT_AC_TRY_DLOPEN_SELF],
1459 +[AC_REQUIRE([_LT_AC_CHECK_DLFCN])dnl
1460 +if test "$cross_compiling" = yes; then :
1463 + lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
1464 + lt_status=$lt_dlunknown
1465 + cat > conftest.$ac_ext <<EOF
1466 +[#line __oline__ "configure"
1467 +#include "confdefs.h"
1469 -# You should have received a copy of the GNU General Public License
1470 -# along with this program; if not, write to the Free Software
1471 -# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
1477 -# For projects using AC_CONFIG_AUX_DIR([foo]), Autoconf sets
1478 -# $ac_aux_dir to `$srcdir/foo'. In other projects, it is set to
1479 -# `$srcdir', `$srcdir/..', or `$srcdir/../..'.
1481 -# Of course, Automake must honor this variable whenever it calls a
1482 -# tool from the auxiliary directory. The problem is that $srcdir (and
1483 -# therefore $ac_aux_dir as well) can be either absolute or relative,
1484 -# depending on how configure is run. This is pretty annoying, since
1485 -# it makes $ac_aux_dir quite unusable in subdirectories: in the top
1486 -# source directory, any form will work fine, but in subdirectories a
1487 -# relative path needs to be adjusted first.
1489 -# $ac_aux_dir/missing
1490 -# fails when called from a subdirectory if $ac_aux_dir is relative
1491 -# $top_srcdir/$ac_aux_dir/missing
1492 -# fails if $ac_aux_dir is absolute,
1493 -# fails when called from a subdirectory in a VPATH build with
1494 -# a relative $ac_aux_dir
1496 -# The reason of the latter failure is that $top_srcdir and $ac_aux_dir
1497 -# are both prefixed by $srcdir. In an in-source build this is usually
1498 -# harmless because $srcdir is `.', but things will broke when you
1499 -# start a VPATH build or use an absolute $srcdir.
1501 -# So we could use something similar to $top_srcdir/$ac_aux_dir/missing,
1502 -# iff we strip the leading $srcdir from $ac_aux_dir. That would be:
1503 -# am_aux_dir='\$(top_srcdir)/'`expr "$ac_aux_dir" : "$srcdir//*\(.*\)"`
1504 -# and then we would define $MISSING as
1505 -# MISSING="\${SHELL} $am_aux_dir/missing"
1506 -# This will work as long as MISSING is not called from configure, because
1507 -# unfortunately $(top_srcdir) has no meaning in configure.
1508 -# However there are other variables, like CC, which are often used in
1509 -# configure, and could therefore not use this "fixed" $ac_aux_dir.
1511 -# Another solution, used here, is to always expand $ac_aux_dir to an
1512 -# absolute PATH. The drawback is that using absolute paths prevent a
1513 -# configured tree to be moved without reconfiguration.
1516 -# Rely on autoconf to set up CDPATH properly.
1519 +# define LT_DLGLOBAL RTLD_GLOBAL
1522 +# define LT_DLGLOBAL DL_GLOBAL
1524 +# define LT_DLGLOBAL 0
1528 -AC_DEFUN([AM_AUX_DIR_EXPAND], [
1529 -# expand $ac_aux_dir to an absolute path
1530 -am_aux_dir=`cd $ac_aux_dir && pwd`
1532 +/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
1533 + find out it does not work in some platform. */
1534 +#ifndef LT_DLLAZY_OR_NOW
1536 +# define LT_DLLAZY_OR_NOW RTLD_LAZY
1539 +# define LT_DLLAZY_OR_NOW DL_LAZY
1542 +# define LT_DLLAZY_OR_NOW RTLD_NOW
1545 +# define LT_DLLAZY_OR_NOW DL_NOW
1547 +# define LT_DLLAZY_OR_NOW 0
1554 -# AM_PROG_INSTALL_SH
1555 -# ------------------
1556 -# Define $install_sh.
1558 +extern "C" void exit (int);
1561 -# Copyright 2001 Free Software Foundation, Inc.
1562 +void fnord() { int i=42;}
1565 + void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
1566 + int status = $lt_dlunknown;
1568 -# This program is free software; you can redistribute it and/or modify
1569 -# it under the terms of the GNU General Public License as published by
1570 -# the Free Software Foundation; either version 2, or (at your option)
1571 -# any later version.
1574 + if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
1575 + else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
1576 + /* dlclose (self); */
1579 + puts (dlerror ());
1581 -# This program is distributed in the hope that it will be useful,
1582 -# but WITHOUT ANY WARRANTY; without even the implied warranty of
1583 -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
1584 -# GNU General Public License for more details.
1588 + if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext} 2>/dev/null; then
1589 + (./conftest; exit; ) >&AS_MESSAGE_LOG_FD 2>/dev/null
1591 + case x$lt_status in
1592 + x$lt_dlno_uscore) $1 ;;
1593 + x$lt_dlneed_uscore) $2 ;;
1594 + x$lt_dlunknown|x*) $3 ;;
1597 + # compilation failed
1602 +])# _LT_AC_TRY_DLOPEN_SELF
1604 -# You should have received a copy of the GNU General Public License
1605 -# along with this program; if not, write to the Free Software
1606 -# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
1609 -AC_DEFUN([AM_PROG_INSTALL_SH],
1610 -[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
1611 -install_sh=${install_sh-"$am_aux_dir/install-sh"}
1612 -AC_SUBST(install_sh)])
1613 +# AC_LIBTOOL_DLOPEN_SELF
1614 +# ----------------------
1615 +AC_DEFUN([AC_LIBTOOL_DLOPEN_SELF],
1616 +[AC_REQUIRE([_LT_AC_CHECK_DLFCN])dnl
1617 +if test "x$enable_dlopen" != xyes; then
1618 + enable_dlopen=unknown
1619 + enable_dlopen_self=unknown
1620 + enable_dlopen_self_static=unknown
1623 + lt_cv_dlopen_libs=
1625 -# AM_PROG_INSTALL_STRIP
1628 + lt_cv_dlopen="load_add_on"
1629 + lt_cv_dlopen_libs=
1630 + lt_cv_dlopen_self=yes
1633 -# Copyright 2001 Free Software Foundation, Inc.
1635 + lt_cv_dlopen="LoadLibrary"
1636 + lt_cv_dlopen_libs=
1639 -# This program is free software; you can redistribute it and/or modify
1640 -# it under the terms of the GNU General Public License as published by
1641 -# the Free Software Foundation; either version 2, or (at your option)
1642 -# any later version.
1644 + lt_cv_dlopen="dlopen"
1645 + lt_cv_dlopen_libs=
1648 -# This program is distributed in the hope that it will be useful,
1649 -# but WITHOUT ANY WARRANTY; without even the implied warranty of
1650 -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
1651 -# GNU General Public License for more details.
1653 + # if libdl is installed we need to link against it
1654 + AC_CHECK_LIB([dl], [dlopen],
1655 + [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"],[
1656 + lt_cv_dlopen="dyld"
1657 + lt_cv_dlopen_libs=
1658 + lt_cv_dlopen_self=yes
1662 -# You should have received a copy of the GNU General Public License
1663 -# along with this program; if not, write to the Free Software
1664 -# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
1667 + AC_CHECK_FUNC([shl_load],
1668 + [lt_cv_dlopen="shl_load"],
1669 + [AC_CHECK_LIB([dld], [shl_load],
1670 + [lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"],
1671 + [AC_CHECK_FUNC([dlopen],
1672 + [lt_cv_dlopen="dlopen"],
1673 + [AC_CHECK_LIB([dl], [dlopen],
1674 + [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"],
1675 + [AC_CHECK_LIB([svld], [dlopen],
1676 + [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"],
1677 + [AC_CHECK_LIB([dld], [dld_link],
1678 + [lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"])
1687 -# One issue with vendor `install' (even GNU) is that you can't
1688 -# specify the program used to strip binaries. This is especially
1689 -# annoying in cross-compiling environments, where the build's strip
1690 -# is unlikely to handle the host's binaries.
1691 -# Fortunately install-sh will honor a STRIPPROG variable, so we
1692 -# always use install-sh in `make install-strip', and initialize
1693 -# STRIPPROG with the value of the STRIP variable (set by the user).
1694 -AC_DEFUN([AM_PROG_INSTALL_STRIP],
1695 -[AC_REQUIRE([AM_PROG_INSTALL_SH])dnl
1696 -# Installed binaries are usually stripped using `strip' when the user
1697 -# run `make install-strip'. However `strip' might not be the right
1698 -# tool to use in cross-compilation environments, therefore Automake
1699 -# will honor the `STRIP' environment variable to overrule this program.
1700 -dnl Don't test for $cross_compiling = yes, because it might be `maybe'.
1701 -if test "$cross_compiling" != no; then
1702 - AC_CHECK_TOOL([STRIP], [strip], :)
1704 -INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
1705 -AC_SUBST([INSTALL_STRIP_PROGRAM])])
1706 + if test "x$lt_cv_dlopen" != xno; then
1713 -# Copyright (C) 2003 Free Software Foundation, Inc.
1714 + case $lt_cv_dlopen in
1716 + save_CPPFLAGS="$CPPFLAGS"
1717 + test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
1719 -# This program is free software; you can redistribute it and/or modify
1720 -# it under the terms of the GNU General Public License as published by
1721 -# the Free Software Foundation; either version 2, or (at your option)
1722 -# any later version.
1723 + save_LDFLAGS="$LDFLAGS"
1724 + wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
1726 -# This program is distributed in the hope that it will be useful,
1727 -# but WITHOUT ANY WARRANTY; without even the implied warranty of
1728 -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
1729 -# GNU General Public License for more details.
1731 + LIBS="$lt_cv_dlopen_libs $LIBS"
1733 -# You should have received a copy of the GNU General Public License
1734 -# along with this program; if not, write to the Free Software
1735 -# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
1737 + AC_CACHE_CHECK([whether a program can dlopen itself],
1738 + lt_cv_dlopen_self, [dnl
1739 + _LT_AC_TRY_DLOPEN_SELF(
1740 + lt_cv_dlopen_self=yes, lt_cv_dlopen_self=yes,
1741 + lt_cv_dlopen_self=no, lt_cv_dlopen_self=cross)
1745 + if test "x$lt_cv_dlopen_self" = xyes; then
1746 + wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
1747 + AC_CACHE_CHECK([whether a statically linked program can dlopen itself],
1748 + lt_cv_dlopen_self_static, [dnl
1749 + _LT_AC_TRY_DLOPEN_SELF(
1750 + lt_cv_dlopen_self_static=yes, lt_cv_dlopen_self_static=yes,
1751 + lt_cv_dlopen_self_static=no, lt_cv_dlopen_self_static=cross)
1755 -# Check whether the underlying file-system supports filenames
1756 -# with a leading dot. For instance MS-DOS doesn't.
1757 -AC_DEFUN([AM_SET_LEADING_DOT],
1758 -[rm -rf .tst 2>/dev/null
1759 -mkdir .tst 2>/dev/null
1760 -if test -d .tst; then
1765 -rmdir .tst 2>/dev/null
1766 -AC_SUBST([am__leading_dot])])
1767 + CPPFLAGS="$save_CPPFLAGS"
1768 + LDFLAGS="$save_LDFLAGS"
1773 -# serial 5 -*- Autoconf -*-
1774 + case $lt_cv_dlopen_self in
1775 + yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
1776 + *) enable_dlopen_self=unknown ;;
1779 -# Copyright (C) 1999, 2000, 2001, 2002, 2003 Free Software Foundation, Inc.
1780 + case $lt_cv_dlopen_self_static in
1781 + yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
1782 + *) enable_dlopen_self_static=unknown ;;
1785 +])# AC_LIBTOOL_DLOPEN_SELF
1787 -# This program is free software; you can redistribute it and/or modify
1788 -# it under the terms of the GNU General Public License as published by
1789 -# the Free Software Foundation; either version 2, or (at your option)
1790 -# any later version.
1792 -# This program is distributed in the hope that it will be useful,
1793 -# but WITHOUT ANY WARRANTY; without even the implied warranty of
1794 -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
1795 -# GNU General Public License for more details.
1796 +# AC_LIBTOOL_PROG_CC_C_O([TAGNAME])
1797 +# ---------------------------------
1798 +# Check to see if options -c and -o are simultaneously supported by compiler
1799 +AC_DEFUN([AC_LIBTOOL_PROG_CC_C_O],
1800 +[AC_REQUIRE([_LT_AC_SYS_COMPILER])dnl
1801 +AC_CACHE_CHECK([if $compiler supports -c -o file.$ac_objext],
1802 + [_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)],
1803 + [_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)=no
1804 + $rm -r conftest 2>/dev/null
1808 + printf "$lt_simple_compile_test_code" > conftest.$ac_ext
1810 -# You should have received a copy of the GNU General Public License
1811 -# along with this program; if not, write to the Free Software
1812 -# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
1814 + lt_compiler_flag="-o out/conftest2.$ac_objext"
1815 + # Insert the option either (1) after the last *FLAGS variable, or
1816 + # (2) before a word containing "conftest.", or (3) at the end.
1817 + # Note that $ac_compile itself does not contain backslashes and begins
1818 + # with a dollar sign (not a hyphen), so the echo should work correctly.
1819 + lt_compile=`echo "$ac_compile" | $SED \
1820 + -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
1821 + -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \
1822 + -e 's:$: $lt_compiler_flag:'`
1823 + (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&AS_MESSAGE_LOG_FD)
1824 + (eval "$lt_compile" 2>out/conftest.err)
1826 + cat out/conftest.err >&AS_MESSAGE_LOG_FD
1827 + echo "$as_me:__oline__: \$? = $ac_status" >&AS_MESSAGE_LOG_FD
1828 + if (exit $ac_status) && test -s out/conftest2.$ac_objext
1830 + # The compiler can only warn and ignore the option if not recognized
1831 + # So say no if there are warnings
1832 + $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
1833 + $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
1834 + if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
1835 + _LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes
1838 + chmod u+w . 2>&AS_MESSAGE_LOG_FD
1840 + # SGI C++ compiler will create directory out/ii_files/ for
1841 + # template instantiation
1842 + test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
1843 + $rm out/* && rmdir out
1848 +])# AC_LIBTOOL_PROG_CC_C_O
1851 -# There are a few dirty hacks below to avoid letting `AC_PROG_CC' be
1852 -# written in clear, in which case automake, when reading aclocal.m4,
1853 -# will think it sees a *use*, and therefore will trigger all it's
1854 -# C support machinery. Also note that it means that autoscan, seeing
1855 -# CC etc. in the Makefile, will ask for an AC_PROG_CC use...
1856 +# AC_LIBTOOL_SYS_HARD_LINK_LOCKS([TAGNAME])
1857 +# -----------------------------------------
1858 +# Check to see if we can do hard links to lock some files if needed
1859 +AC_DEFUN([AC_LIBTOOL_SYS_HARD_LINK_LOCKS],
1860 +[AC_REQUIRE([_LT_AC_LOCK])dnl
1862 +hard_links="nottested"
1863 +if test "$_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)" = no && test "$need_locks" != no; then
1864 + # do not overwrite the value of need_locks provided by the user
1865 + AC_MSG_CHECKING([if we can lock with hard links])
1868 + ln conftest.a conftest.b 2>/dev/null && hard_links=no
1870 + ln conftest.a conftest.b 2>&5 || hard_links=no
1871 + ln conftest.a conftest.b 2>/dev/null && hard_links=no
1872 + AC_MSG_RESULT([$hard_links])
1873 + if test "$hard_links" = no; then
1874 + AC_MSG_WARN([`$CC' does not support `-c -o', so `make -j' may be unsafe])
1880 +])# AC_LIBTOOL_SYS_HARD_LINK_LOCKS
1883 -# _AM_DEPENDENCIES(NAME)
1884 -# ----------------------
1885 -# See how the compiler implements dependency checking.
1886 -# NAME is "CC", "CXX", "GCJ", or "OBJC".
1887 -# We try a few techniques and use that to set a single cache variable.
1889 -# We don't AC_REQUIRE the corresponding AC_PROG_CC since the latter was
1890 -# modified to invoke _AM_DEPENDENCIES(CC); we would have a circular
1891 -# dependency, and given that the user is not expected to run this macro,
1892 -# just rely on AC_PROG_CC.
1893 -AC_DEFUN([_AM_DEPENDENCIES],
1894 -[AC_REQUIRE([AM_SET_DEPDIR])dnl
1895 -AC_REQUIRE([AM_OUTPUT_DEPENDENCY_COMMANDS])dnl
1896 -AC_REQUIRE([AM_MAKE_INCLUDE])dnl
1897 -AC_REQUIRE([AM_DEP_TRACK])dnl
1898 +# AC_LIBTOOL_OBJDIR
1899 +# -----------------
1900 +AC_DEFUN([AC_LIBTOOL_OBJDIR],
1901 +[AC_CACHE_CHECK([for objdir], [lt_cv_objdir],
1902 +[rm -f .libs 2>/dev/null
1903 +mkdir .libs 2>/dev/null
1904 +if test -d .libs; then
1905 + lt_cv_objdir=.libs
1907 + # MS-DOS does not allow filenames that begin with a dot.
1908 + lt_cv_objdir=_libs
1910 +rmdir .libs 2>/dev/null])
1911 +objdir=$lt_cv_objdir
1912 +])# AC_LIBTOOL_OBJDIR
1914 -ifelse([$1], CC, [depcc="$CC" am_compiler_list=],
1915 - [$1], CXX, [depcc="$CXX" am_compiler_list=],
1916 - [$1], OBJC, [depcc="$OBJC" am_compiler_list='gcc3 gcc'],
1917 - [$1], GCJ, [depcc="$GCJ" am_compiler_list='gcc3 gcc'],
1918 - [depcc="$$1" am_compiler_list=])
1920 -AC_CACHE_CHECK([dependency style of $depcc],
1921 - [am_cv_$1_dependencies_compiler_type],
1922 -[if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
1923 - # We make a subdir and do the tests there. Otherwise we can end up
1924 - # making bogus files that we don't know about and never remove. For
1925 - # instance it was reported that on HP-UX the gcc test will end up
1926 - # making a dummy file named `D' -- because `-MD' means `put the output
1928 - mkdir conftest.dir
1929 - # Copy depcomp to subdir because otherwise we won't find it if we're
1930 - # using a relative directory.
1931 - cp "$am_depcomp" conftest.dir
1933 - # We will build objects and dependencies in a subdirectory because
1934 - # it helps to detect inapplicable dependency modes. For instance
1935 - # both Tru64's cc and ICC support -MD to output dependencies as a
1936 - # side effect of compilation, but ICC will put the dependencies in
1937 - # the current directory while Tru64 will put them in the object
1940 +# AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH([TAGNAME])
1941 +# ----------------------------------------------
1942 +# Check hardcoding attributes.
1943 +AC_DEFUN([AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH],
1944 +[AC_MSG_CHECKING([how to hardcode library paths into programs])
1945 +_LT_AC_TAGVAR(hardcode_action, $1)=
1946 +if test -n "$_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)" || \
1947 + test -n "$_LT_AC_TAGVAR(runpath_var, $1)" || \
1948 + test "X$_LT_AC_TAGVAR(hardcode_automatic, $1)" = "Xyes" ; then
1950 - am_cv_$1_dependencies_compiler_type=none
1951 - if test "$am_compiler_list" = ""; then
1952 - am_compiler_list=`sed -n ['s/^#*\([a-zA-Z0-9]*\))$/\1/p'] < ./depcomp`
1954 - for depmode in $am_compiler_list; do
1955 - # Setup a source with many dependencies, because some compilers
1956 - # like to wrap large dependency lists on column 80 (with \), and
1957 - # we should not choose a depcomp mode which is confused by this.
1959 - # We need to recreate these files for each test, as the compiler may
1960 - # overwrite some of them when testing with obscure command lines.
1961 - # This happens at least with the AIX C compiler.
1962 - : > sub/conftest.c
1963 - for i in 1 2 3 4 5 6; do
1964 - echo '#include "conftst'$i'.h"' >> sub/conftest.c
1965 - : > sub/conftst$i.h
1967 - echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
1971 - # after this tag, mechanisms are not by side-effect, so they'll
1972 - # only be used when explicitly requested
1973 - if test "x$enable_dependency_tracking" = xyes; then
1981 - # We check with `-c' and `-o' for the sake of the "dashmstdout"
1982 - # mode. It turns out that the SunPro C++ compiler does not properly
1983 - # handle `-M -o', and we need to detect this.
1984 - if depmode=$depmode \
1985 - source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
1986 - depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
1987 - $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
1988 - >/dev/null 2>conftest.err &&
1989 - grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
1990 - grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
1991 - ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
1992 - # icc doesn't choke on unknown options, it will just issue warnings
1993 - # (even with -Werror). So we grep stderr for any message
1994 - # that says an option was ignored.
1995 - if grep 'ignoring option' conftest.err >/dev/null 2>&1; then :; else
1996 - am_cv_$1_dependencies_compiler_type=$depmode
2003 - rm -rf conftest.dir
2004 + # We can hardcode non-existant directories.
2005 + if test "$_LT_AC_TAGVAR(hardcode_direct, $1)" != no &&
2006 + # If the only mechanism to avoid hardcoding is shlibpath_var, we
2007 + # have to relink, otherwise we might link with an installed library
2008 + # when we should be linking with a yet-to-be-installed one
2009 + ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)" != no &&
2010 + test "$_LT_AC_TAGVAR(hardcode_minus_L, $1)" != no; then
2011 + # Linking always hardcodes the temporary library directory.
2012 + _LT_AC_TAGVAR(hardcode_action, $1)=relink
2014 + # We can link without hardcoding, and we can hardcode nonexisting dirs.
2015 + _LT_AC_TAGVAR(hardcode_action, $1)=immediate
2018 - am_cv_$1_dependencies_compiler_type=none
2019 + # We cannot hardcode anything, or else we can only hardcode existing
2021 + _LT_AC_TAGVAR(hardcode_action, $1)=unsupported
2024 -AC_SUBST([$1DEPMODE], [depmode=$am_cv_$1_dependencies_compiler_type])
2025 -AM_CONDITIONAL([am__fastdep$1], [
2026 - test "x$enable_dependency_tracking" != xno \
2027 - && test "$am_cv_$1_dependencies_compiler_type" = gcc3])
2030 +AC_MSG_RESULT([$_LT_AC_TAGVAR(hardcode_action, $1)])
2034 -# Choose a directory name for dependency files.
2035 -# This macro is AC_REQUIREd in _AM_DEPENDENCIES
2036 -AC_DEFUN([AM_SET_DEPDIR],
2037 -[AC_REQUIRE([AM_SET_LEADING_DOT])dnl
2038 -AC_SUBST([DEPDIR], ["${am__leading_dot}deps"])dnl
2040 +if test "$_LT_AC_TAGVAR(hardcode_action, $1)" = relink; then
2041 + # Fast installation is not supported
2042 + enable_fast_install=no
2043 +elif test "$shlibpath_overrides_runpath" = yes ||
2044 + test "$enable_shared" = no; then
2045 + # Fast installation is not necessary
2046 + enable_fast_install=needless
2048 +])# AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH
2053 -AC_DEFUN([AM_DEP_TRACK],
2054 -[AC_ARG_ENABLE(dependency-tracking,
2055 -[ --disable-dependency-tracking Speeds up one-time builds
2056 - --enable-dependency-tracking Do not reject slow dependency extractors])
2057 -if test "x$enable_dependency_tracking" != xno; then
2058 - am_depcomp="$ac_aux_dir/depcomp"
2059 - AMDEPBACKSLASH='\'
2060 +# AC_LIBTOOL_SYS_LIB_STRIP
2061 +# ------------------------
2062 +AC_DEFUN([AC_LIBTOOL_SYS_LIB_STRIP],
2065 +AC_MSG_CHECKING([whether stripping libraries is possible])
2066 +if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
2067 + test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
2068 + test -z "$striplib" && striplib="$STRIP --strip-unneeded"
2069 + AC_MSG_RESULT([yes])
2071 +# FIXME - insert some real tests, host_os isn't really good enough
2074 + if test -n "$STRIP" ; then
2075 + striplib="$STRIP -x"
2076 + AC_MSG_RESULT([yes])
2078 + AC_MSG_RESULT([no])
2080 -AM_CONDITIONAL([AMDEP], [test "x$enable_dependency_tracking" != xno])
2081 -AC_SUBST([AMDEPBACKSLASH])
2084 -# Generate code to set up dependency tracking. -*- Autoconf -*-
2087 + AC_MSG_RESULT([no])
2091 +])# AC_LIBTOOL_SYS_LIB_STRIP
2093 -# Copyright 1999, 2000, 2001, 2002 Free Software Foundation, Inc.
2095 -# This program is free software; you can redistribute it and/or modify
2096 -# it under the terms of the GNU General Public License as published by
2097 -# the Free Software Foundation; either version 2, or (at your option)
2098 -# any later version.
2099 +# AC_LIBTOOL_SYS_DYNAMIC_LINKER
2100 +# -----------------------------
2101 +# PORTME Fill in your ld.so characteristics
2102 +AC_DEFUN([AC_LIBTOOL_SYS_DYNAMIC_LINKER],
2103 +[AC_MSG_CHECKING([dynamic linker characteristics])
2104 +library_names_spec=
2105 +libname_spec='lib$name'
2109 +postuninstall_cmds=
2113 +shlibpath_overrides_runpath=unknown
2115 +dynamic_linker="$host_os ld.so"
2116 +sys_lib_dlsearch_path_spec="/lib /usr/lib"
2117 +if test "$GCC" = yes; then
2118 + sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
2119 + if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
2120 + # if the path contains ";" then we assume it to be the separator
2121 + # otherwise default to the standard path separator (i.e. ":") - it is
2122 + # assumed that no part of a normal pathname contains ";" but that should
2123 + # okay in the real world where ";" in dirpaths is itself problematic.
2124 + sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
2126 + sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
2129 + sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
2131 +need_lib_prefix=unknown
2132 +hardcode_into_libs=no
2134 -# This program is distributed in the hope that it will be useful,
2135 -# but WITHOUT ANY WARRANTY; without even the implied warranty of
2136 -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
2137 -# GNU General Public License for more details.
2138 +# when you set need_version to no, make sure it does not cause -set_version
2139 +# flags to be left without arguments
2140 +need_version=unknown
2142 -# You should have received a copy of the GNU General Public License
2143 -# along with this program; if not, write to the Free Software
2144 -# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
2148 + version_type=linux
2149 + library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
2150 + shlibpath_var=LIBPATH
2153 + # AIX 3 has no versioning support, so we append a major version to the name.
2154 + soname_spec='${libname}${release}${shared_ext}$major'
2157 -# _AM_OUTPUT_DEPENDENCY_COMMANDS
2158 -# ------------------------------
2159 -AC_DEFUN([_AM_OUTPUT_DEPENDENCY_COMMANDS],
2160 -[for mf in $CONFIG_FILES; do
2161 - # Strip MF so we end up with the name of the file.
2162 - mf=`echo "$mf" | sed -e 's/:.*$//'`
2163 - # Check whether this is an Automake generated Makefile or not.
2164 - # We used to match only the files named `Makefile.in', but
2165 - # some people rename them; so instead we look at the file content.
2166 - # Grep'ing the first line is not enough: some people post-process
2167 - # each Makefile.in and add a new line on top of each file to say so.
2168 - # So let's grep whole file.
2169 - if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
2170 - dirpart=`AS_DIRNAME("$mf")`
2172 + version_type=linux
2173 + need_lib_prefix=no
2175 + hardcode_into_libs=yes
2176 + if test "$host_cpu" = ia64; then
2177 + # AIX 5 supports IA64
2178 + library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
2179 + shlibpath_var=LD_LIBRARY_PATH
2182 + # With GCC up to 2.95.x, collect2 would create an import file
2183 + # for dependence libraries. The import file would start with
2184 + # the line `#! .'. This would cause the generated library to
2185 + # depend on `.', always an invalid library. This was fixed in
2186 + # development snapshots of GCC prior to 3.0.
2188 + aix4 | aix4.[[01]] | aix4.[[01]].*)
2189 + if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
2191 + echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
2194 + can_build_shared=no
2198 + # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
2199 + # soname into executable. Probably we can add versioning support to
2200 + # collect2, so additional links can be useful in future.
2201 + if test "$aix_use_runtimelinking" = yes; then
2202 + # If using run time linking (on AIX 4.2 or later) use lib<name>.so
2203 + # instead of lib<name>.a to let people know that these are not
2204 + # typical AIX shared libraries.
2205 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
2207 + # We preserve .a as extension for shared libraries through AIX4.2
2208 + # and later when we are not doing run time linking.
2209 + library_names_spec='${libname}${release}.a $libname.a'
2210 + soname_spec='${libname}${release}${shared_ext}$major'
2212 + shlibpath_var=LIBPATH
2214 - grep '^DEP_FILES *= *[[^ @%:@]]' < "$mf" > /dev/null || continue
2215 - # Extract the definition of DEP_FILES from the Makefile without
2217 - DEPDIR=`sed -n -e '/^DEPDIR = / s///p' < "$mf"`
2218 - test -z "$DEPDIR" && continue
2219 - # When using ansi2knr, U may be empty or an underscore; expand it
2220 - U=`sed -n -e '/^U = / s///p' < "$mf"`
2221 - test -d "$dirpart/$DEPDIR" || mkdir "$dirpart/$DEPDIR"
2222 - # We invoke sed twice because it is the simplest approach to
2223 - # changing $(DEPDIR) to its actual value in the expansion.
2224 - for file in `sed -n -e '
2225 - /^DEP_FILES = .*\\\\$/ {
2234 - /^DEP_FILES = / s/^DEP_FILES = //p' < "$mf" | \
2235 - sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
2236 - # Make sure the directory exists.
2237 - test -f "$dirpart/$file" && continue
2238 - fdir=`AS_DIRNAME(["$file"])`
2239 - AS_MKDIR_P([$dirpart/$fdir])
2240 - # echo "creating $dirpart/$file"
2241 - echo '# dummy' > "$dirpart/$file"
2244 -])# _AM_OUTPUT_DEPENDENCY_COMMANDS
2248 + library_names_spec='$libname.ixlibrary $libname.a'
2249 + # Create ${libname}_ixlibrary.a entries in /sys/libs.
2250 + 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'
2253 -# AM_OUTPUT_DEPENDENCY_COMMANDS
2254 -# -----------------------------
2255 -# This macro should only be invoked once -- use via AC_REQUIRE.
2257 -# This code is only required when automatic dependency tracking
2258 -# is enabled. FIXME. This creates each `.P' file that we will
2259 -# need in order to bootstrap the dependency handling code.
2260 -AC_DEFUN([AM_OUTPUT_DEPENDENCY_COMMANDS],
2261 -[AC_CONFIG_COMMANDS([depfiles],
2262 - [test x"$AMDEP_TRUE" != x"" || _AM_OUTPUT_DEPENDENCY_COMMANDS],
2263 - [AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"])
2266 -# Check to see how 'make' treats includes. -*- Autoconf -*-
2268 -# Copyright (C) 2001, 2002, 2003 Free Software Foundation, Inc.
2270 + library_names_spec='${libname}${shared_ext}'
2271 + dynamic_linker="$host_os ld.so"
2272 + shlibpath_var=LIBRARY_PATH
2275 -# This program is free software; you can redistribute it and/or modify
2276 -# it under the terms of the GNU General Public License as published by
2277 -# the Free Software Foundation; either version 2, or (at your option)
2278 -# any later version.
2280 + version_type=linux
2282 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
2283 + soname_spec='${libname}${release}${shared_ext}$major'
2284 + finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
2285 + shlibpath_var=LD_LIBRARY_PATH
2286 + sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
2287 + sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
2288 + # the default ld.so.conf also contains /usr/contrib/lib and
2289 + # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
2290 + # libtool to hard-code these into programs
2293 -# This program is distributed in the hope that it will be useful,
2294 -# but WITHOUT ANY WARRANTY; without even the implied warranty of
2295 -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
2296 -# GNU General Public License for more details.
2297 +cygwin* | mingw* | pw32*)
2298 + version_type=windows
2299 + shrext_cmds=".dll"
2301 + need_lib_prefix=no
2303 -# You should have received a copy of the GNU General Public License
2304 -# along with this program; if not, write to the Free Software
2305 -# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
2307 + case $GCC,$host_os in
2308 + yes,cygwin* | yes,mingw* | yes,pw32*)
2309 + library_names_spec='$libname.dll.a'
2310 + # DLL is installed to $(libdir)/../bin by postinstall_cmds
2311 + postinstall_cmds='base_file=`basename \${file}`~
2312 + dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
2313 + dldir=$destdir/`dirname \$dlpath`~
2314 + test -d \$dldir || mkdir -p \$dldir~
2315 + $install_prog $dir/$dlname \$dldir/$dlname~
2316 + chmod a+x \$dldir/$dlname'
2317 + postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
2318 + dlpath=$dir/\$dldll~
2320 + shlibpath_overrides_runpath=yes
2325 + # Cygwin DLLs use 'cyg' prefix rather than 'lib'
2326 + soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
2327 + sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
2330 + # MinGW DLLs use traditional 'lib' prefix
2331 + soname_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
2332 + sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
2333 + if echo "$sys_lib_search_path_spec" | [grep ';[c-zC-Z]:/' >/dev/null]; then
2334 + # It is most probably a Windows format PATH printed by
2335 + # mingw gcc, but we are running on Cygwin. Gcc prints its search
2336 + # path with ; separators, and with drive letters. We can handle the
2337 + # drive letters (cygwin fileutils understands them), so leave them,
2338 + # especially as we might pass files found there to a mingw objdump,
2339 + # which wouldn't understand a cygwinified path. Ahh.
2340 + sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
2342 + sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
2346 + # pw32 DLLs use 'pw' prefix rather than 'lib'
2347 + library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
2352 -# AM_MAKE_INCLUDE()
2353 -# -----------------
2354 -# Check to see how make treats includes.
2355 -AC_DEFUN([AM_MAKE_INCLUDE],
2356 -[am_make=${MAKE-make}
2357 -cat > confinc << 'END'
2362 -# If we don't find an include directive, just comment out the code.
2363 -AC_MSG_CHECKING([for style of include used by $am_make])
2367 -# First try GNU make style include.
2368 -echo "include confinc" > confmf
2369 -# We grep out `Entering directory' and `Leaving directory'
2370 -# messages which can occur if `w' ends up in MAKEFLAGS.
2371 -# In particular we don't look at `^make:' because GNU make might
2372 -# be invoked under some other name (usually "gmake"), in which
2373 -# case it prints its new name instead of `make'.
2374 -if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2375 - am__include=include
2379 -# Now try BSD make style include.
2380 -if test "$am__include" = "#"; then
2381 - echo '.include "confinc"' > confmf
2382 - if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2383 - am__include=.include
2388 -AC_SUBST([am__include])
2389 -AC_SUBST([am__quote])
2390 -AC_MSG_RESULT([$_am_result])
2391 -rm -f confinc confmf
2394 + library_names_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext} $libname.lib'
2397 + dynamic_linker='Win32 ld.exe'
2398 + # FIXME: first we should search . and the directory the executable is in
2399 + shlibpath_var=PATH
2402 -# AM_CONDITIONAL -*- Autoconf -*-
2403 +darwin* | rhapsody*)
2404 + dynamic_linker="$host_os dyld"
2405 + version_type=darwin
2406 + need_lib_prefix=no
2408 + library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
2409 + soname_spec='${libname}${release}${major}$shared_ext'
2410 + shlibpath_overrides_runpath=yes
2411 + shlibpath_var=DYLD_LIBRARY_PATH
2412 + shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
2413 + # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
2414 + if test "$GCC" = yes; then
2415 + 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"`
2417 + sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
2419 + sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
2422 -# Copyright 1997, 2000, 2001 Free Software Foundation, Inc.
2424 + version_type=linux
2425 + need_lib_prefix=no
2427 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
2428 + soname_spec='${libname}${release}${shared_ext}$major'
2429 + shlibpath_var=LD_LIBRARY_PATH
2432 -# This program is free software; you can redistribute it and/or modify
2433 -# it under the terms of the GNU General Public License as published by
2434 -# the Free Software Foundation; either version 2, or (at your option)
2435 -# any later version.
2440 -# This program is distributed in the hope that it will be useful,
2441 -# but WITHOUT ANY WARRANTY; without even the implied warranty of
2442 -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
2443 -# GNU General Public License for more details.
2444 +freebsd* | dragonfly*)
2445 + # DragonFly does not have aout. When/if they implement a new
2446 + # versioning mechanism, adjust this.
2447 + if test -x /usr/bin/objformat; then
2448 + objformat=`/usr/bin/objformat`
2451 + freebsd[[123]]*) objformat=aout ;;
2452 + *) objformat=elf ;;
2455 + version_type=freebsd-$objformat
2456 + case $version_type in
2458 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
2460 + need_lib_prefix=no
2463 + library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
2467 + shlibpath_var=LD_LIBRARY_PATH
2470 + shlibpath_overrides_runpath=yes
2472 + freebsd3.[[01]]* | freebsdelf3.[[01]]*)
2473 + shlibpath_overrides_runpath=yes
2474 + hardcode_into_libs=yes
2476 + freebsd3.[[2-9]]* | freebsdelf3.[[2-9]]* | \
2477 + freebsd4.[[0-5]] | freebsdelf4.[[0-5]] | freebsd4.1.1 | freebsdelf4.1.1)
2478 + shlibpath_overrides_runpath=no
2479 + hardcode_into_libs=yes
2481 + freebsd*) # from 4.6 on
2482 + shlibpath_overrides_runpath=yes
2483 + hardcode_into_libs=yes
2488 -# You should have received a copy of the GNU General Public License
2489 -# along with this program; if not, write to the Free Software
2490 -# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
2493 + version_type=linux
2494 + need_lib_prefix=no
2496 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
2497 + soname_spec='${libname}${release}${shared_ext}$major'
2498 + shlibpath_var=LD_LIBRARY_PATH
2499 + hardcode_into_libs=yes
2503 +hpux9* | hpux10* | hpux11*)
2504 + # Give a soname corresponding to the major version so that dld.sl refuses to
2505 + # link against other versions.
2506 + version_type=sunos
2507 + need_lib_prefix=no
2512 + hardcode_into_libs=yes
2513 + dynamic_linker="$host_os dld.so"
2514 + shlibpath_var=LD_LIBRARY_PATH
2515 + shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
2516 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
2517 + soname_spec='${libname}${release}${shared_ext}$major'
2518 + if test "X$HPUX_IA64_MODE" = X32; then
2519 + sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
2521 + sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
2523 + sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
2527 + hardcode_into_libs=yes
2528 + dynamic_linker="$host_os dld.sl"
2529 + shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
2530 + shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
2531 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
2532 + soname_spec='${libname}${release}${shared_ext}$major'
2533 + sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
2534 + sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
2538 + dynamic_linker="$host_os dld.sl"
2539 + shlibpath_var=SHLIB_PATH
2540 + shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
2541 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
2542 + soname_spec='${libname}${release}${shared_ext}$major'
2545 + # HP-UX runs *really* slowly unless shared libraries are mode 555.
2546 + postinstall_cmds='chmod 555 $lib'
2551 + version_type=linux
2552 + need_lib_prefix=no
2554 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
2555 + soname_spec='${libname}${release}${shared_ext}$major'
2556 + dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
2557 + shlibpath_var=LD_LIBRARY_PATH
2558 + shlibpath_overrides_runpath=no
2559 + hardcode_into_libs=yes
2562 -# AM_CONDITIONAL(NAME, SHELL-CONDITION)
2563 -# -------------------------------------
2564 -# Define a conditional.
2565 -AC_DEFUN([AM_CONDITIONAL],
2566 -[ifelse([$1], [TRUE], [AC_FATAL([$0: invalid condition: $1])],
2567 - [$1], [FALSE], [AC_FATAL([$0: invalid condition: $1])])dnl
2568 -AC_SUBST([$1_TRUE])
2569 -AC_SUBST([$1_FALSE])
2577 -AC_CONFIG_COMMANDS_PRE(
2578 -[if test -z "${$1_TRUE}" && test -z "${$1_FALSE}"; then
2579 - AC_MSG_ERROR([conditional "$1" was never defined.
2580 -Usually this means the macro was only invoked conditionally.])
2583 -# Like AC_CONFIG_HEADER, but automatically create stamp file. -*- Autoconf -*-
2584 +irix5* | irix6* | nonstopux*)
2586 + nonstopux*) version_type=nonstopux ;;
2588 + if test "$lt_cv_prog_gnu_ld" = yes; then
2589 + version_type=linux
2594 + need_lib_prefix=no
2596 + soname_spec='${libname}${release}${shared_ext}$major'
2597 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
2599 + irix5* | nonstopux*)
2600 + libsuff= shlibsuff=
2603 + case $LD in # libtool.m4 will add one of these switches to LD
2604 + *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
2605 + libsuff= shlibsuff= libmagic=32-bit;;
2606 + *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
2607 + libsuff=32 shlibsuff=N32 libmagic=N32;;
2608 + *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
2609 + libsuff=64 shlibsuff=64 libmagic=64-bit;;
2610 + *) libsuff= shlibsuff= libmagic=never-match;;
2614 + shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
2615 + shlibpath_overrides_runpath=no
2616 + sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
2617 + sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
2618 + hardcode_into_libs=yes
2621 -# Copyright 1996, 1997, 2000, 2001 Free Software Foundation, Inc.
2622 +# No shared lib support for Linux oldld, aout, or coff.
2623 +linux*oldld* | linux*aout* | linux*coff*)
2627 -# This program is free software; you can redistribute it and/or modify
2628 -# it under the terms of the GNU General Public License as published by
2629 -# the Free Software Foundation; either version 2, or (at your option)
2630 -# any later version.
2631 +# This must be Linux ELF.
2632 +linux* | k*bsd*-gnu)
2633 + version_type=linux
2634 + need_lib_prefix=no
2636 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
2637 + soname_spec='${libname}${release}${shared_ext}$major'
2638 + finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
2639 + shlibpath_var=LD_LIBRARY_PATH
2640 + shlibpath_overrides_runpath=no
2641 + # This implies no fast_install, which is unacceptable.
2642 + # Some rework will be needed to allow for fast_install
2643 + # before this can be enabled.
2644 + hardcode_into_libs=yes
2646 -# This program is distributed in the hope that it will be useful,
2647 -# but WITHOUT ANY WARRANTY; without even the implied warranty of
2648 -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
2649 -# GNU General Public License for more details.
2650 + # Append ld.so.conf contents to the search path
2651 + if test -f /etc/ld.so.conf; then
2652 + lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \[$]2)); skip = 1; } { if (!skip) print \[$]0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
2653 + sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
2656 -# You should have received a copy of the GNU General Public License
2657 -# along with this program; if not, write to the Free Software
2658 -# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
2660 + # We used to test for /lib/ld.so.1 and disable shared libraries on
2661 + # powerpc, because MkLinux only supported shared libraries with the
2662 + # GNU dynamic linker. Since this was broken with cross compilers,
2663 + # most powerpc-linux boxes support dynamic linking these days and
2664 + # people can always --disable-shared, the test was removed, and we
2665 + # assume the GNU/Linux dynamic linker is in use.
2666 + dynamic_linker='GNU/Linux ld.so'
2671 + version_type=linux
2672 + need_lib_prefix=no
2674 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
2675 + soname_spec='${libname}${release}${shared_ext}$major'
2676 + shlibpath_var=LD_LIBRARY_PATH
2677 + shlibpath_overrides_runpath=no
2678 + hardcode_into_libs=yes
2679 + dynamic_linker='NetBSD ld.elf_so'
2684 + version_type=sunos
2685 + need_lib_prefix=no
2687 + if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
2688 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
2689 + finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
2690 + dynamic_linker='NetBSD (a.out) ld.so'
2692 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
2693 + soname_spec='${libname}${release}${shared_ext}$major'
2694 + dynamic_linker='NetBSD ld.elf_so'
2696 + shlibpath_var=LD_LIBRARY_PATH
2697 + shlibpath_overrides_runpath=yes
2698 + hardcode_into_libs=yes
2701 -# AM_CONFIG_HEADER is obsolete. It has been replaced by AC_CONFIG_HEADERS.
2702 -AU_DEFUN([AM_CONFIG_HEADER], [AC_CONFIG_HEADERS($@)])
2704 + version_type=linux
2705 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
2706 + shlibpath_var=LD_LIBRARY_PATH
2707 + shlibpath_overrides_runpath=yes
2710 -# libtool.m4 - Configure libtool for the host system. -*-Autoconf-*-
2712 + version_type=linux
2713 + need_lib_prefix=no
2715 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
2716 + soname_spec='${libname}${release}${shared_ext}$major'
2717 + shlibpath_var=LD_LIBRARY_PATH
2718 + shlibpath_overrides_runpath=yes
2721 -# serial 47 AC_PROG_LIBTOOL
2722 -# Debian $Rev: 214 $
2724 + version_type=sunos
2725 + sys_lib_dlsearch_path_spec="/usr/lib"
2726 + need_lib_prefix=no
2727 + # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
2729 + openbsd3.3 | openbsd3.3.*) need_version=yes ;;
2730 + *) need_version=no ;;
2732 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
2733 + finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
2734 + shlibpath_var=LD_LIBRARY_PATH
2735 + if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
2737 + openbsd2.[[89]] | openbsd2.[[89]].*)
2738 + shlibpath_overrides_runpath=no
2741 + shlibpath_overrides_runpath=yes
2745 + shlibpath_overrides_runpath=yes
2750 + libname_spec='$name'
2751 + shrext_cmds=".dll"
2752 + need_lib_prefix=no
2753 + library_names_spec='$libname${shared_ext} $libname.a'
2754 + dynamic_linker='OS/2 ld.exe'
2755 + shlibpath_var=LIBPATH
2758 -# AC_PROVIDE_IFELSE(MACRO-NAME, IF-PROVIDED, IF-NOT-PROVIDED)
2759 -# -----------------------------------------------------------
2760 -# If this macro is not defined by Autoconf, define it here.
2761 -m4_ifdef([AC_PROVIDE_IFELSE],
2763 - [m4_define([AC_PROVIDE_IFELSE],
2764 - [m4_ifdef([AC_PROVIDE_$1],
2766 +osf3* | osf4* | osf5*)
2768 + need_lib_prefix=no
2770 + soname_spec='${libname}${release}${shared_ext}$major'
2771 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
2772 + shlibpath_var=LD_LIBRARY_PATH
2773 + sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
2774 + sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
2778 + version_type=linux
2779 + need_lib_prefix=no
2781 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
2782 + soname_spec='${libname}${release}${shared_ext}$major'
2783 + shlibpath_var=LD_LIBRARY_PATH
2784 + shlibpath_overrides_runpath=yes
2785 + hardcode_into_libs=yes
2786 + # ldd complains unless libraries are executable
2787 + postinstall_cmds='chmod +x $lib'
2792 -AC_DEFUN([AC_PROG_LIBTOOL],
2793 -[AC_REQUIRE([_AC_PROG_LIBTOOL])dnl
2794 -dnl If AC_PROG_CXX has already been expanded, run AC_LIBTOOL_CXX
2795 -dnl immediately, otherwise, hook it in at the end of AC_PROG_CXX.
2796 - AC_PROVIDE_IFELSE([AC_PROG_CXX],
2798 - [define([AC_PROG_CXX], defn([AC_PROG_CXX])[AC_LIBTOOL_CXX
2800 -dnl And a similar setup for Fortran 77 support
2801 - AC_PROVIDE_IFELSE([AC_PROG_F77],
2803 - [define([AC_PROG_F77], defn([AC_PROG_F77])[AC_LIBTOOL_F77
2806 + version_type=sunos
2807 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
2808 + finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
2809 + shlibpath_var=LD_LIBRARY_PATH
2810 + shlibpath_overrides_runpath=yes
2811 + if test "$with_gnu_ld" = yes; then
2812 + need_lib_prefix=no
2817 -dnl Quote A][M_PROG_GCJ so that aclocal doesn't bring it in needlessly.
2818 -dnl If either AC_PROG_GCJ or A][M_PROG_GCJ have already been expanded, run
2819 -dnl AC_LIBTOOL_GCJ immediately, otherwise, hook it in at the end of both.
2820 - AC_PROVIDE_IFELSE([AC_PROG_GCJ],
2822 - [AC_PROVIDE_IFELSE([A][M_PROG_GCJ],
2824 - [AC_PROVIDE_IFELSE([LT_AC_PROG_GCJ],
2826 - [ifdef([AC_PROG_GCJ],
2827 - [define([AC_PROG_GCJ], defn([AC_PROG_GCJ])[AC_LIBTOOL_GCJ])])
2828 - ifdef([A][M_PROG_GCJ],
2829 - [define([A][M_PROG_GCJ], defn([A][M_PROG_GCJ])[AC_LIBTOOL_GCJ])])
2830 - ifdef([LT_AC_PROG_GCJ],
2831 - [define([LT_AC_PROG_GCJ],
2832 - defn([LT_AC_PROG_GCJ])[AC_LIBTOOL_GCJ])])])])
2833 -])])# AC_PROG_LIBTOOL
2835 + version_type=linux
2836 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
2837 + soname_spec='${libname}${release}${shared_ext}$major'
2838 + shlibpath_var=LD_LIBRARY_PATH
2839 + case $host_vendor in
2841 + shlibpath_overrides_runpath=no
2842 + need_lib_prefix=no
2843 + export_dynamic_flag_spec='${wl}-Blargedynsym'
2844 + runpath_var=LD_RUN_PATH
2847 + need_lib_prefix=no
2850 + need_lib_prefix=no
2852 + shlibpath_overrides_runpath=no
2853 + sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
2859 + if test -d /usr/nec ;then
2860 + version_type=linux
2861 + library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
2862 + soname_spec='$libname${shared_ext}.$major'
2863 + shlibpath_var=LD_LIBRARY_PATH
2869 -AC_DEFUN([_AC_PROG_LIBTOOL],
2870 -[AC_REQUIRE([AC_LIBTOOL_SETUP])dnl
2871 -AC_BEFORE([$0],[AC_LIBTOOL_CXX])dnl
2872 -AC_BEFORE([$0],[AC_LIBTOOL_F77])dnl
2873 -AC_BEFORE([$0],[AC_LIBTOOL_GCJ])dnl
2874 +sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
2875 + version_type=freebsd-elf
2876 + need_lib_prefix=no
2878 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
2879 + soname_spec='${libname}${release}${shared_ext}$major'
2880 + shlibpath_var=LD_LIBRARY_PATH
2881 + hardcode_into_libs=yes
2882 + if test "$with_gnu_ld" = yes; then
2883 + sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
2884 + shlibpath_overrides_runpath=no
2886 + sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
2887 + shlibpath_overrides_runpath=yes
2890 + sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
2894 + sys_lib_dlsearch_path_spec='/usr/lib'
2897 -# This can be used to rebuild libtool when needed
2898 -LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
2900 + version_type=linux
2901 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
2902 + soname_spec='${libname}${release}${shared_ext}$major'
2903 + shlibpath_var=LD_LIBRARY_PATH
2906 -# Always use our own libtool.
2907 -LIBTOOL='$(SHELL) $(top_builddir)/libtool'
2908 -AC_SUBST(LIBTOOL)dnl
2913 +AC_MSG_RESULT([$dynamic_linker])
2914 +test "$dynamic_linker" = no && can_build_shared=no
2916 -# Prevent multiple expansion
2917 -define([AC_PROG_LIBTOOL], [])
2918 -])# _AC_PROG_LIBTOOL
2919 +variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
2920 +if test "$GCC" = yes; then
2921 + variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
2923 +])# AC_LIBTOOL_SYS_DYNAMIC_LINKER
2929 -AC_DEFUN([AC_LIBTOOL_SETUP],
2930 -[AC_PREREQ(2.50)dnl
2931 -AC_REQUIRE([AC_ENABLE_SHARED])dnl
2932 -AC_REQUIRE([AC_ENABLE_STATIC])dnl
2933 -AC_REQUIRE([AC_ENABLE_FAST_INSTALL])dnl
2934 -AC_REQUIRE([AC_CANONICAL_HOST])dnl
2935 -AC_REQUIRE([AC_CANONICAL_BUILD])dnl
2936 -AC_REQUIRE([AC_PROG_CC])dnl
2937 -AC_REQUIRE([AC_PROG_LD])dnl
2938 -AC_REQUIRE([AC_PROG_LD_RELOAD_FLAG])dnl
2939 -AC_REQUIRE([AC_PROG_NM])dnl
2941 -AC_REQUIRE([AC_PROG_LN_S])dnl
2942 -AC_REQUIRE([AC_DEPLIBS_CHECK_METHOD])dnl
2943 -# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
2944 -AC_REQUIRE([AC_OBJEXT])dnl
2945 -AC_REQUIRE([AC_EXEEXT])dnl
2948 -AC_LIBTOOL_SYS_MAX_CMD_LEN
2949 -AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE
2952 -AC_REQUIRE([_LT_AC_SYS_COMPILER])dnl
2953 -_LT_AC_PROG_ECHO_BACKSLASH
2954 +AC_DEFUN([_LT_AC_TAGCONFIG],
2955 +[AC_ARG_WITH([tags],
2956 + [AC_HELP_STRING([--with-tags@<:@=TAGS@:>@],
2957 + [include additional configurations @<:@automatic@:>@])],
2958 + [tagnames="$withval"])
2962 - # AIX sometimes has problems with the GCC collect2 program. For some
2963 - # reason, if we set the COLLECT_NAMES environment variable, the problems
2964 - # vanish in a puff of smoke.
2965 - if test "X${COLLECT_NAMES+set}" != Xset; then
2967 - export COLLECT_NAMES
2968 +if test -f "$ltmain" && test -n "$tagnames"; then
2969 + if test ! -f "${ofile}"; then
2970 + AC_MSG_WARN([output file `$ofile' does not exist])
2975 -# Sed substitution that helps us do robust quoting. It backslashifies
2976 -# metacharacters that are still active within double-quoted strings.
2977 -Xsed='sed -e s/^X//'
2978 -[sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g']
2980 -# Same as above, but do not quote variable references.
2981 -[double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g']
2982 + if test -z "$LTCC"; then
2983 + eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
2984 + if test -z "$LTCC"; then
2985 + AC_MSG_WARN([output file `$ofile' does not look like a libtool script])
2987 + AC_MSG_WARN([using `LTCC=$LTCC', extracted from `$ofile'])
2990 + if test -z "$LTCFLAGS"; then
2991 + eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
2994 -# Sed substitution to delay expansion of an escaped shell variable in a
2995 -# double_quote_subst'ed string.
2996 -delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
2997 + # Extract list of available tagged configurations in $ofile.
2998 + # Note that this assumes the entire list is on one line.
2999 + available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
3001 -# Sed substitution to avoid accidental globbing in evaled expressions
3002 -no_glob_subst='s/\*/\\\*/g'
3003 + lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3004 + for tagname in $tagnames; do
3005 + IFS="$lt_save_ifs"
3006 + # Check whether tagname contains only valid characters
3007 + case `$echo "X$tagname" | $Xsed -e 's:[[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]]::g'` in
3009 + *) AC_MSG_ERROR([invalid tag name: $tagname])
3015 + if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
3017 + AC_MSG_ERROR([tag name \"$tagname\" already exists])
3020 -# Global variables:
3021 -default_ofile=libtool
3022 -can_build_shared=yes
3023 + # Update the list of available tags.
3024 + if test -n "$tagname"; then
3025 + echo appending configuration tag \"$tagname\" to $ofile
3027 -# All known linkers require a `.a' archive for static linking (except M$VC,
3028 -# which needs '.lib').
3030 -ltmain="$ac_aux_dir/ltmain.sh"
3031 -ofile="$default_ofile"
3032 -with_gnu_ld="$lt_cv_prog_gnu_ld"
3035 + if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
3036 + ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
3037 + (test "X$CXX" != "Xg++"))) ; then
3038 + AC_LIBTOOL_LANG_CXX_CONFIG
3044 -AC_CHECK_TOOL(AR, ar, false)
3045 -AC_CHECK_TOOL(RANLIB, ranlib, :)
3046 -AC_CHECK_TOOL(STRIP, strip, :)
3048 + if test -n "$F77" && test "X$F77" != "Xno"; then
3049 + AC_LIBTOOL_LANG_F77_CONFIG
3056 -old_CFLAGS="$CFLAGS"
3058 + if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
3059 + AC_LIBTOOL_LANG_GCJ_CONFIG
3065 -# Set sane defaults for various variables
3066 -test -z "$AR" && AR=ar
3067 -test -z "$AR_FLAGS" && AR_FLAGS=cru
3068 -test -z "$AS" && AS=as
3069 -test -z "$CC" && CC=cc
3070 -test -z "$LTCC" && LTCC=$CC
3071 -test -z "$DLLTOOL" && DLLTOOL=dlltool
3072 -test -z "$LD" && LD=ld
3073 -test -z "$LN_S" && LN_S="ln -s"
3074 -test -z "$MAGIC_CMD" && MAGIC_CMD=file
3075 -test -z "$NM" && NM=nm
3076 -test -z "$SED" && SED=sed
3077 -test -z "$OBJDUMP" && OBJDUMP=objdump
3078 -test -z "$RANLIB" && RANLIB=:
3079 -test -z "$STRIP" && STRIP=:
3080 -test -z "$ac_objext" && ac_objext=o
3082 + AC_LIBTOOL_LANG_RC_CONFIG
3085 -# Determine commands to create old-style static archives.
3086 -old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
3087 -old_postinstall_cmds='chmod 644 $oldlib'
3088 -old_postuninstall_cmds=
3090 + AC_MSG_ERROR([Unsupported tag name: $tagname])
3094 -if test -n "$RANLIB"; then
3097 - old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
3100 - old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
3103 - old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
3105 + # Append the new tag name to the list of available tags.
3106 + if test -n "$tagname" ; then
3107 + available_tags="$available_tags $tagname"
3111 + IFS="$lt_save_ifs"
3113 -# Only perform the check for file, if the check method requires it
3114 -case $deplibs_check_method in
3116 - if test "$file_magic_cmd" = '$MAGIC_CMD'; then
3118 + # Now substitute the updated list of available tags.
3119 + if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
3120 + mv "${ofile}T" "$ofile"
3124 + AC_MSG_ERROR([unable to update list of available tagged configurations.])
3129 +])# _LT_AC_TAGCONFIG
3131 -AC_PROVIDE_IFELSE([AC_LIBTOOL_DLOPEN], enable_dlopen=yes, enable_dlopen=no)
3132 -AC_PROVIDE_IFELSE([AC_LIBTOOL_WIN32_DLL],
3133 -enable_win32_dll=yes, enable_win32_dll=no)
3135 -AC_ARG_ENABLE([libtool-lock],
3136 - [AC_HELP_STRING([--disable-libtool-lock],
3137 - [avoid locking (might break parallel builds)])])
3138 -test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
3139 +# AC_LIBTOOL_DLOPEN
3140 +# -----------------
3141 +# enable checks for dlopen support
3142 +AC_DEFUN([AC_LIBTOOL_DLOPEN],
3143 + [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])
3144 +])# AC_LIBTOOL_DLOPEN
3147 - [AC_HELP_STRING([--with-pic],
3148 - [try to use only PIC/non-PIC objects @<:@default=use both@:>@])],
3149 - [pic_mode="$withval"],
3150 - [pic_mode=default])
3151 -test -z "$pic_mode" && pic_mode=default
3153 -# Use C for the default configuration in the libtool script
3155 -AC_LIBTOOL_LANG_C_CONFIG
3157 -])# AC_LIBTOOL_SETUP
3158 +# AC_LIBTOOL_WIN32_DLL
3159 +# --------------------
3160 +# declare package support for building win32 DLLs
3161 +AC_DEFUN([AC_LIBTOOL_WIN32_DLL],
3162 +[AC_BEFORE([$0], [AC_LIBTOOL_SETUP])
3163 +])# AC_LIBTOOL_WIN32_DLL
3166 -# _LT_AC_SYS_COMPILER
3167 -# -------------------
3168 -AC_DEFUN([_LT_AC_SYS_COMPILER],
3169 -[AC_REQUIRE([AC_PROG_CC])dnl
3170 +# AC_ENABLE_SHARED([DEFAULT])
3171 +# ---------------------------
3172 +# implement the --enable-shared flag
3173 +# DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'.
3174 +AC_DEFUN([AC_ENABLE_SHARED],
3175 +[define([AC_ENABLE_SHARED_DEFAULT], ifelse($1, no, no, yes))dnl
3176 +AC_ARG_ENABLE([shared],
3177 + [AC_HELP_STRING([--enable-shared@<:@=PKGS@:>@],
3178 + [build shared libraries @<:@default=]AC_ENABLE_SHARED_DEFAULT[@:>@])],
3179 + [p=${PACKAGE-default}
3180 + case $enableval in
3181 + yes) enable_shared=yes ;;
3182 + no) enable_shared=no ;;
3185 + # Look at the argument we got. We use all the common list separators.
3186 + lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3187 + for pkg in $enableval; do
3188 + IFS="$lt_save_ifs"
3189 + if test "X$pkg" = "X$p"; then
3193 + IFS="$lt_save_ifs"
3196 + [enable_shared=]AC_ENABLE_SHARED_DEFAULT)
3197 +])# AC_ENABLE_SHARED
3199 -# If no C compiler was specified, use CC.
3202 -# Allow CC to be a program name with arguments.
3204 -])# _LT_AC_SYS_COMPILER
3205 +# AC_DISABLE_SHARED
3206 +# -----------------
3207 +# set the default shared flag to --disable-shared
3208 +AC_DEFUN([AC_DISABLE_SHARED],
3209 +[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
3210 +AC_ENABLE_SHARED(no)
3211 +])# AC_DISABLE_SHARED
3214 -# _LT_AC_SYS_LIBPATH_AIX
3215 -# ----------------------
3216 -# Links a minimal program and checks the executable
3217 -# for the system default hardcoded library path. In most cases,
3218 -# this is /usr/lib:/lib, but when the MPI compilers are used
3219 -# the location of the communication and MPI libs are included too.
3220 -# If we don't find anything, use the default library path according
3221 -# to the aix ld manual.
3222 -AC_DEFUN([_LT_AC_SYS_LIBPATH_AIX],
3223 -[AC_LINK_IFELSE(AC_LANG_PROGRAM,[
3224 -aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
3226 -# Check for a 64-bit object if we didn't find anything.
3227 -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; }
3229 -if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
3230 -])# _LT_AC_SYS_LIBPATH_AIX
3231 +# AC_ENABLE_STATIC([DEFAULT])
3232 +# ---------------------------
3233 +# implement the --enable-static flag
3234 +# DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'.
3235 +AC_DEFUN([AC_ENABLE_STATIC],
3236 +[define([AC_ENABLE_STATIC_DEFAULT], ifelse($1, no, no, yes))dnl
3237 +AC_ARG_ENABLE([static],
3238 + [AC_HELP_STRING([--enable-static@<:@=PKGS@:>@],
3239 + [build static libraries @<:@default=]AC_ENABLE_STATIC_DEFAULT[@:>@])],
3240 + [p=${PACKAGE-default}
3241 + case $enableval in
3242 + yes) enable_static=yes ;;
3243 + no) enable_static=no ;;
3246 + # Look at the argument we got. We use all the common list separators.
3247 + lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3248 + for pkg in $enableval; do
3249 + IFS="$lt_save_ifs"
3250 + if test "X$pkg" = "X$p"; then
3254 + IFS="$lt_save_ifs"
3257 + [enable_static=]AC_ENABLE_STATIC_DEFAULT)
3258 +])# AC_ENABLE_STATIC
3261 -# _LT_AC_SHELL_INIT(ARG)
3262 -# ----------------------
3263 -AC_DEFUN([_LT_AC_SHELL_INIT],
3264 -[ifdef([AC_DIVERSION_NOTICE],
3265 - [AC_DIVERT_PUSH(AC_DIVERSION_NOTICE)],
3266 - [AC_DIVERT_PUSH(NOTICE)])
3269 -])# _LT_AC_SHELL_INIT
3270 +# AC_DISABLE_STATIC
3271 +# -----------------
3272 +# set the default static flag to --disable-static
3273 +AC_DEFUN([AC_DISABLE_STATIC],
3274 +[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
3275 +AC_ENABLE_STATIC(no)
3276 +])# AC_DISABLE_STATIC
3279 -# _LT_AC_PROG_ECHO_BACKSLASH
3280 -# --------------------------
3281 -# Add some code to the start of the generated configure script which
3282 -# will find an echo command which doesn't interpret backslashes.
3283 -AC_DEFUN([_LT_AC_PROG_ECHO_BACKSLASH],
3284 -[_LT_AC_SHELL_INIT([
3285 -# Check that we are running under the correct shell.
3286 -SHELL=${CONFIG_SHELL-/bin/sh}
3287 +# AC_ENABLE_FAST_INSTALL([DEFAULT])
3288 +# ---------------------------------
3289 +# implement the --enable-fast-install flag
3290 +# DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'.
3291 +AC_DEFUN([AC_ENABLE_FAST_INSTALL],
3292 +[define([AC_ENABLE_FAST_INSTALL_DEFAULT], ifelse($1, no, no, yes))dnl
3293 +AC_ARG_ENABLE([fast-install],
3294 + [AC_HELP_STRING([--enable-fast-install@<:@=PKGS@:>@],
3295 + [optimize for fast installation @<:@default=]AC_ENABLE_FAST_INSTALL_DEFAULT[@:>@])],
3296 + [p=${PACKAGE-default}
3297 + case $enableval in
3298 + yes) enable_fast_install=yes ;;
3299 + no) enable_fast_install=no ;;
3301 + enable_fast_install=no
3302 + # Look at the argument we got. We use all the common list separators.
3303 + lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3304 + for pkg in $enableval; do
3305 + IFS="$lt_save_ifs"
3306 + if test "X$pkg" = "X$p"; then
3307 + enable_fast_install=yes
3310 + IFS="$lt_save_ifs"
3313 + [enable_fast_install=]AC_ENABLE_FAST_INSTALL_DEFAULT)
3314 +])# AC_ENABLE_FAST_INSTALL
3318 - # Remove one level of quotation (which was required for Make).
3319 - ECHO=`echo "$ECHO" | sed 's,\\\\\[$]\\[$]0,'[$]0','`
3324 -if test "X[$]1" = X--no-reexec; then
3325 - # Discard the --no-reexec flag, and continue.
3327 -elif test "X[$]1" = X--fallback-echo; then
3328 - # Avoid inline document here, it may be left over
3330 -elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
3331 - # Yippee, $echo works!
3334 - # Restart under the correct shell.
3335 - exec $SHELL "[$]0" --no-reexec ${1+"[$]@"}
3337 +# AC_DISABLE_FAST_INSTALL
3338 +# -----------------------
3339 +# set the default to --disable-fast-install
3340 +AC_DEFUN([AC_DISABLE_FAST_INSTALL],
3341 +[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
3342 +AC_ENABLE_FAST_INSTALL(no)
3343 +])# AC_DISABLE_FAST_INSTALL
3345 -if test "X[$]1" = X--fallback-echo; then
3346 - # used as fallback echo
3354 -# The HP-UX ksh and POSIX shell print the target directory to stdout
3355 -# if CDPATH is set.
3356 -if test "X${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
3357 +# AC_LIBTOOL_PICMODE([MODE])
3358 +# --------------------------
3359 +# implement the --with-pic flag
3360 +# MODE is either `yes' or `no'. If omitted, it defaults to `both'.
3361 +AC_DEFUN([AC_LIBTOOL_PICMODE],
3362 +[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
3363 +pic_mode=ifelse($#,1,$1,default)
3364 +])# AC_LIBTOOL_PICMODE
3366 -if test -z "$ECHO"; then
3367 -if test "X${echo_test_string+set}" != Xset; then
3368 -# find a string as large as possible, as long as the shell can cope with it
3369 - for cmd in 'sed 50q "[$]0"' 'sed 20q "[$]0"' 'sed 10q "[$]0"' 'sed 2q "[$]0"' 'echo test'; do
3370 - # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
3371 - if (echo_test_string="`eval $cmd`") 2>/dev/null &&
3372 - echo_test_string="`eval $cmd`" &&
3373 - (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
3380 -if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
3381 - echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
3382 - test "X$echo_testing_string" = "X$echo_test_string"; then
3385 - # The Solaris, AIX, and Digital Unix default echo programs unquote
3386 - # backslashes. This makes it impossible to quote backslashes using
3387 - # echo "$something" | sed 's/\\/\\\\/g'
3389 - # So, first we look for a working echo in the user's PATH.
3392 +# This is predefined starting with Autoconf 2.54, so this conditional
3393 +# definition can be removed once we require Autoconf 2.54 or later.
3394 +m4_ifndef([AC_PROG_EGREP], [AC_DEFUN([AC_PROG_EGREP],
3395 +[AC_CACHE_CHECK([for egrep], [ac_cv_prog_egrep],
3396 + [if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3397 + then ac_cv_prog_egrep='grep -E'
3398 + else ac_cv_prog_egrep='egrep'
3400 + EGREP=$ac_cv_prog_egrep
3405 +# AC_PATH_TOOL_PREFIX
3406 +# -------------------
3407 +# find a file program which can recognise shared library
3408 +AC_DEFUN([AC_PATH_TOOL_PREFIX],
3409 +[AC_REQUIRE([AC_PROG_EGREP])dnl
3410 +AC_MSG_CHECKING([for $1])
3411 +AC_CACHE_VAL(lt_cv_path_MAGIC_CMD,
3412 +[case $MAGIC_CMD in
3413 +[[\\/*] | ?:[\\/]*])
3414 + lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
3417 + lt_save_MAGIC_CMD="$MAGIC_CMD"
3418 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3419 - for dir in $PATH /usr/ucb; do
3420 +dnl $ac_dummy forces splitting on constant user-supplied paths.
3421 +dnl POSIX.2 word splitting is done only on the output of word expansions,
3422 +dnl not every word. This closes a longstanding sh security hole.
3423 + ac_dummy="ifelse([$2], , $PATH, [$2])"
3424 + for ac_dir in $ac_dummy; do
3426 - if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
3427 - test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
3428 - echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
3429 - test "X$echo_testing_string" = "X$echo_test_string"; then
3434 - IFS="$lt_save_ifs"
3436 - if test "X$echo" = Xecho; then
3437 - # We didn't find a better echo, so look for alternatives.
3438 - if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
3439 - echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
3440 - test "X$echo_testing_string" = "X$echo_test_string"; then
3441 - # This shell has a builtin print -r that does the trick.
3443 - elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
3444 - test "X$CONFIG_SHELL" != X/bin/ksh; then
3445 - # If we have ksh, try running configure again with it.
3446 - ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
3447 - export ORIGINAL_CONFIG_SHELL
3448 - CONFIG_SHELL=/bin/ksh
3449 - export CONFIG_SHELL
3450 - exec $CONFIG_SHELL "[$]0" --no-reexec ${1+"[$]@"}
3452 - # Try using printf.
3453 - echo='printf %s\n'
3454 - if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
3455 - echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
3456 - test "X$echo_testing_string" = "X$echo_test_string"; then
3457 - # Cool, printf works
3459 - elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "[$]0" --fallback-echo '\t') 2>/dev/null` &&
3460 - test "X$echo_testing_string" = 'X\t' &&
3461 - echo_testing_string=`($ORIGINAL_CONFIG_SHELL "[$]0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
3462 - test "X$echo_testing_string" = "X$echo_test_string"; then
3463 - CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
3464 - export CONFIG_SHELL
3465 - SHELL="$CONFIG_SHELL"
3467 - echo="$CONFIG_SHELL [$]0 --fallback-echo"
3468 - elif echo_testing_string=`($CONFIG_SHELL "[$]0" --fallback-echo '\t') 2>/dev/null` &&
3469 - test "X$echo_testing_string" = 'X\t' &&
3470 - echo_testing_string=`($CONFIG_SHELL "[$]0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
3471 - test "X$echo_testing_string" = "X$echo_test_string"; then
3472 - echo="$CONFIG_SHELL [$]0 --fallback-echo"
3474 - # maybe with a smaller string...
3476 + test -z "$ac_dir" && ac_dir=.
3477 + if test -f $ac_dir/$1; then
3478 + lt_cv_path_MAGIC_CMD="$ac_dir/$1"
3479 + if test -n "$file_magic_test_file"; then
3480 + case $deplibs_check_method in
3482 + file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
3483 + MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
3484 + if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
3485 + $EGREP "$file_magic_regex" > /dev/null; then
3490 - for cmd in 'echo test' 'sed 2q "[$]0"' 'sed 10q "[$]0"' 'sed 20q "[$]0"' 'sed 50q "[$]0"'; do
3491 - if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
3497 +*** Warning: the command libtool uses to detect shared libraries,
3498 +*** $file_magic_cmd, produces output that libtool cannot recognize.
3499 +*** The result is that libtool may fail to recognize shared libraries
3500 +*** as such. This will affect the creation of libtool libraries that
3501 +*** depend on shared libraries, but programs linked with such libtool
3502 +*** libraries will work regardless of this problem. Nevertheless, you
3503 +*** may want to report the problem to your system manager and/or to
3504 +*** bug-libtool@gnu.org
3506 - if test "$prev" != 'sed 50q "[$]0"'; then
3507 - echo_test_string=`eval $prev`
3508 - export echo_test_string
3509 - exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "[$]0" ${1+"[$]@"}
3511 - # Oops. We lost completely, so just stick with echo.
3523 + IFS="$lt_save_ifs"
3524 + MAGIC_CMD="$lt_save_MAGIC_CMD"
3527 +MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
3528 +if test -n "$MAGIC_CMD"; then
3529 + AC_MSG_RESULT($MAGIC_CMD)
3533 +])# AC_PATH_TOOL_PREFIX
3535 -# Copy echo and quote the copy suitably for passing to libtool from
3536 -# the Makefile, instead of quoting the original, which is used later.
3538 -if test "X$ECHO" = "X$CONFIG_SHELL [$]0 --fallback-echo"; then
3539 - ECHO="$CONFIG_SHELL \\\$\[$]0 --fallback-echo"
3543 +# find a file program which can recognise a shared library
3544 +AC_DEFUN([AC_PATH_MAGIC],
3545 +[AC_PATH_TOOL_PREFIX(${ac_tool_prefix}file, /usr/bin$PATH_SEPARATOR$PATH)
3546 +if test -z "$lt_cv_path_MAGIC_CMD"; then
3547 + if test -n "$ac_tool_prefix"; then
3548 + AC_PATH_TOOL_PREFIX(file, /usr/bin$PATH_SEPARATOR$PATH)
3556 -])])# _LT_AC_PROG_ECHO_BACKSLASH
3560 +# find the pathname to the GNU or non-GNU linker
3561 +AC_DEFUN([AC_PROG_LD],
3562 +[AC_ARG_WITH([gnu-ld],
3563 + [AC_HELP_STRING([--with-gnu-ld],
3564 + [assume the C compiler uses GNU ld @<:@default=no@:>@])],
3565 + [test "$withval" = no || with_gnu_ld=yes],
3567 +AC_REQUIRE([LT_AC_PROG_SED])dnl
3568 +AC_REQUIRE([AC_PROG_CC])dnl
3569 +AC_REQUIRE([AC_CANONICAL_HOST])dnl
3570 +AC_REQUIRE([AC_CANONICAL_BUILD])dnl
3572 +if test "$GCC" = yes; then
3573 + # Check if gcc -print-prog-name=ld gives a path.
3574 + AC_MSG_CHECKING([for ld used by $CC])
3577 + # gcc leaves a trailing carriage return which upsets mingw
3578 + ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3580 + ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3583 + # Accept absolute paths.
3584 + [[\\/]]* | ?:[[\\/]]*)
3585 + re_direlt='/[[^/]][[^/]]*/\.\./'
3586 + # Canonicalize the pathname of ld
3587 + ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
3588 + while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
3589 + ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
3591 + test -z "$LD" && LD="$ac_prog"
3594 + # If it fails, then pretend we aren't using GCC.
3598 + # If it is relative, then search for the first ld in PATH.
3599 + with_gnu_ld=unknown
3602 +elif test "$with_gnu_ld" = yes; then
3603 + AC_MSG_CHECKING([for GNU ld])
3605 + AC_MSG_CHECKING([for non-GNU ld])
3607 +AC_CACHE_VAL(lt_cv_path_LD,
3608 +[if test -z "$LD"; then
3609 + lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3610 + for ac_dir in $PATH; do
3611 + IFS="$lt_save_ifs"
3612 + test -z "$ac_dir" && ac_dir=.
3613 + if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3614 + lt_cv_path_LD="$ac_dir/$ac_prog"
3615 + # Check to see if the program is GNU ld. I'd rather use --version,
3616 + # but apparently some variants of GNU ld only accept -v.
3617 + # Break only if it was the GNU/non-GNU ld that we prefer.
3618 + case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
3619 + *GNU* | *'with BFD'*)
3620 + test "$with_gnu_ld" != no && break
3623 + test "$with_gnu_ld" != yes && break
3628 + IFS="$lt_save_ifs"
3630 + lt_cv_path_LD="$LD" # Let the user override the test with a path.
3632 +LD="$lt_cv_path_LD"
3633 +if test -n "$LD"; then
3634 + AC_MSG_RESULT($LD)
3638 +test -z "$LD" && AC_MSG_ERROR([no acceptable ld found in \$PATH])
3644 -AC_DEFUN([_LT_AC_LOCK],
3645 -[AC_ARG_ENABLE([libtool-lock],
3646 - [AC_HELP_STRING([--disable-libtool-lock],
3647 - [avoid locking (might break parallel builds)])])
3648 -test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
3650 -# Some flags need to be propagated to the compiler or linker for good
3654 - # Find out which ABI we are using.
3655 - echo 'int i;' > conftest.$ac_ext
3656 - if AC_TRY_EVAL(ac_compile); then
3657 - case `/usr/bin/file conftest.$ac_objext` in
3659 - HPUX_IA64_MODE="32"
3662 - HPUX_IA64_MODE="64"
3669 +AC_DEFUN([AC_PROG_LD_GNU],
3670 +[AC_REQUIRE([AC_PROG_EGREP])dnl
3671 +AC_CACHE_CHECK([if the linker ($LD) is GNU ld], lt_cv_prog_gnu_ld,
3672 +[# I'd rather use --version here, but apparently some GNU lds only accept -v.
3673 +case `$LD -v 2>&1 </dev/null` in
3674 +*GNU* | *'with BFD'*)
3675 + lt_cv_prog_gnu_ld=yes
3678 - # Find out which ABI we are using.
3679 - echo '[#]line __oline__ "configure"' > conftest.$ac_ext
3680 - if AC_TRY_EVAL(ac_compile); then
3681 - if test "$lt_cv_prog_gnu_ld" = yes; then
3682 - case `/usr/bin/file conftest.$ac_objext` in
3684 - LD="${LD-ld} -melf32bsmip"
3687 - LD="${LD-ld} -melf32bmipn32"
3690 - LD="${LD-ld} -melf64bmip"
3694 - case `/usr/bin/file conftest.$ac_objext` in
3699 - LD="${LD-ld} -n32"
3709 + lt_cv_prog_gnu_ld=no
3712 +with_gnu_ld=$lt_cv_prog_gnu_ld
3715 -x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
3716 - # Find out which ABI we are using.
3717 - echo 'int i;' > conftest.$ac_ext
3718 - if AC_TRY_EVAL(ac_compile); then
3719 - case "`/usr/bin/file conftest.o`" in
3723 - LD="${LD-ld} -m elf_i386"
3725 - ppc64-*linux*|powerpc64-*linux*)
3726 - LD="${LD-ld} -m elf32ppclinux"
3729 - LD="${LD-ld} -m elf_s390"
3732 - LD="${LD-ld} -m elf32_sparc"
3739 - LD="${LD-ld} -m elf_x86_64"
3741 - ppc*-*linux*|powerpc*-*linux*)
3742 - LD="${LD-ld} -m elf64ppc"
3745 - LD="${LD-ld} -m elf64_s390"
3748 - LD="${LD-ld} -m elf64_sparc"
3758 - # On SCO OpenServer 5, we need -belf to get full-featured binaries.
3759 - SAVE_CFLAGS="$CFLAGS"
3760 - CFLAGS="$CFLAGS -belf"
3761 - AC_CACHE_CHECK([whether the C compiler needs -belf], lt_cv_cc_needs_belf,
3763 - AC_TRY_LINK([],[],[lt_cv_cc_needs_belf=yes],[lt_cv_cc_needs_belf=no])
3765 - if test x"$lt_cv_cc_needs_belf" != x"yes"; then
3766 - # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
3767 - CFLAGS="$SAVE_CFLAGS"
3770 -AC_PROVIDE_IFELSE([AC_LIBTOOL_WIN32_DLL],
3771 -[*-*-cygwin* | *-*-mingw* | *-*-pw32*)
3772 - AC_CHECK_TOOL(DLLTOOL, dlltool, false)
3773 - AC_CHECK_TOOL(AS, as, false)
3774 - AC_CHECK_TOOL(OBJDUMP, objdump, false)
3777 +# AC_PROG_LD_RELOAD_FLAG
3778 +# ----------------------
3779 +# find reload flag for linker
3780 +# -- PORTME Some linkers may need a different reload flag.
3781 +AC_DEFUN([AC_PROG_LD_RELOAD_FLAG],
3782 +[AC_CACHE_CHECK([for $LD option to reload object files],
3783 + lt_cv_ld_reload_flag,
3784 + [lt_cv_ld_reload_flag='-r'])
3785 +reload_flag=$lt_cv_ld_reload_flag
3786 +case $reload_flag in
3788 +*) reload_flag=" $reload_flag" ;;
3790 +reload_cmds='$LD$reload_flag -o $output$reload_objs'
3793 + if test "$GCC" = yes; then
3794 + reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
3796 + reload_cmds='$LD$reload_flag -o $output$reload_objs'
3800 +])# AC_PROG_LD_RELOAD_FLAG
3802 -need_locks="$enable_libtool_lock"
3805 +# AC_DEPLIBS_CHECK_METHOD
3806 +# -----------------------
3807 +# how to check for library dependencies
3808 +# -- PORTME fill in with the dynamic library characteristics
3809 +AC_DEFUN([AC_DEPLIBS_CHECK_METHOD],
3810 +[AC_CACHE_CHECK([how to recognise dependent libraries],
3811 +lt_cv_deplibs_check_method,
3812 +[lt_cv_file_magic_cmd='$MAGIC_CMD'
3813 +lt_cv_file_magic_test_file=
3814 +lt_cv_deplibs_check_method='unknown'
3815 +# Need to set the preceding variable on all platforms that support
3816 +# interlibrary dependencies.
3817 +# 'none' -- dependencies not supported.
3818 +# `unknown' -- same as none, but documents that we really don't know.
3819 +# 'pass_all' -- all dependencies passed with no checks.
3820 +# 'test_compile' -- check by making test program.
3821 +# 'file_magic [[regex]]' -- check by looking for files in library path
3822 +# which responds to the $file_magic_cmd with a given extended regex.
3823 +# If you have `file' or equivalent on your system and you're not sure
3824 +# whether `pass_all' will *always* work, you probably want this one.
3828 + lt_cv_deplibs_check_method=pass_all
3831 -# AC_LIBTOOL_COMPILER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS,
3832 -# [OUTPUT-FILE], [ACTION-SUCCESS], [ACTION-FAILURE])
3833 -# ----------------------------------------------------------------
3834 -# Check whether the given compiler option works
3835 -AC_DEFUN([AC_LIBTOOL_COMPILER_OPTION],
3836 -[AC_REQUIRE([LT_AC_PROG_SED])
3837 -AC_CACHE_CHECK([$1], [$2],
3839 - ifelse([$4], , [ac_outfile=conftest.$ac_objext], [ac_outfile=$4])
3840 - printf "$lt_simple_compile_test_code" > conftest.$ac_ext
3841 - lt_compiler_flag="$3"
3842 - # Insert the option either (1) after the last *FLAGS variable, or
3843 - # (2) before a word containing "conftest.", or (3) at the end.
3844 - # Note that $ac_compile itself does not contain backslashes and begins
3845 - # with a dollar sign (not a hyphen), so the echo should work correctly.
3846 - # The option is referenced via a variable to avoid confusing sed.
3847 - lt_compile=`echo "$ac_compile" | $SED \
3848 - -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
3849 - -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \
3850 - -e 's:$: $lt_compiler_flag:'`
3851 - (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&AS_MESSAGE_LOG_FD)
3852 - (eval "$lt_compile" 2>conftest.err)
3854 - cat conftest.err >&AS_MESSAGE_LOG_FD
3855 - echo "$as_me:__oline__: \$? = $ac_status" >&AS_MESSAGE_LOG_FD
3856 - if (exit $ac_status) && test -s "$ac_outfile"; then
3857 - # The compiler can only warn and ignore the option if not recognized
3858 - # So say no if there are warnings
3859 - if test ! -s conftest.err; then
3866 + lt_cv_deplibs_check_method=pass_all
3869 -if test x"[$]$2" = xyes; then
3870 - ifelse([$5], , :, [$5])
3872 - ifelse([$6], , :, [$6])
3874 -])# AC_LIBTOOL_COMPILER_OPTION
3876 + lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (shared object|dynamic lib)'
3877 + lt_cv_file_magic_cmd='/usr/bin/file -L'
3878 + lt_cv_file_magic_test_file=/shlib/libc.so
3882 + # func_win32_libid is a shell function defined in ltmain.sh
3883 + lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
3884 + lt_cv_file_magic_cmd='func_win32_libid'
3887 -# AC_LIBTOOL_LINKER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS,
3888 -# [ACTION-SUCCESS], [ACTION-FAILURE])
3889 -# ------------------------------------------------------------
3890 -# Check whether the given compiler option works
3891 -AC_DEFUN([AC_LIBTOOL_LINKER_OPTION],
3892 -[AC_CACHE_CHECK([$1], [$2],
3894 - save_LDFLAGS="$LDFLAGS"
3895 - LDFLAGS="$LDFLAGS $3"
3896 - printf "$lt_simple_link_test_code" > conftest.$ac_ext
3897 - if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
3898 - # The compiler can only warn and ignore the option if not recognized
3899 - # So say no if there are warnings
3900 - if test -s conftest.err; then
3901 - # Append any errors to the config.log.
3902 - cat conftest.err 1>&AS_MESSAGE_LOG_FD
3908 - LDFLAGS="$save_LDFLAGS"
3911 + # Base MSYS/MinGW do not provide the 'file' command needed by
3912 + # func_win32_libid shell function, so use a weaker test based on 'objdump'.
3913 + lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
3914 + lt_cv_file_magic_cmd='$OBJDUMP -f'
3917 -if test x"[$]$2" = xyes; then
3918 - ifelse([$4], , :, [$4])
3920 - ifelse([$5], , :, [$5])
3922 -])# AC_LIBTOOL_LINKER_OPTION
3923 +darwin* | rhapsody*)
3924 + lt_cv_deplibs_check_method=pass_all
3927 +freebsd* | dragonfly*)
3928 + if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3931 + # Not sure whether the presence of OpenBSD here was a mistake.
3932 + # Let's accept both of them until this is cleared up.
3933 + lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[[3-9]]86 (compact )?demand paged shared library'
3934 + lt_cv_file_magic_cmd=/usr/bin/file
3935 + lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3939 + lt_cv_deplibs_check_method=pass_all
3943 -# AC_LIBTOOL_SYS_MAX_CMD_LEN
3944 -# --------------------------
3945 -AC_DEFUN([AC_LIBTOOL_SYS_MAX_CMD_LEN],
3946 -[# find the maximum length of command line arguments
3947 -AC_MSG_CHECKING([the maximum length of command line arguments])
3948 -AC_CACHE_VAL([lt_cv_sys_max_cmd_len], [dnl
3952 + lt_cv_deplibs_check_method=pass_all
3957 - # On DJGPP, this test can blow up pretty badly due to problems in libc
3958 - # (any single argument exceeding 2000 bytes causes a buffer overrun
3959 - # during glob expansion). Even if it were fixed, the result of this
3960 - # check would be larger than it should be.
3961 - lt_cv_sys_max_cmd_len=12288; # 12K is about right
3962 +hpux10.20* | hpux11*)
3963 + lt_cv_file_magic_cmd=/usr/bin/file
3966 + lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|ELF-[[0-9]][[0-9]]) shared object file - IA64'
3967 + lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
3971 - # Under GNU Hurd, this test is not required because there is
3972 - # no limit to the length of command line arguments.
3973 - # Libtool will interpret -1 as no limit whatsoever
3974 - lt_cv_sys_max_cmd_len=-1;
3976 + [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]']
3977 + lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
3981 - # On Win9x/ME, this test blows up -- it succeeds, but takes
3982 - # about 5 minutes as the teststring grows exponentially.
3983 - # Worse, since 9x/ME are not pre-emptively multitasking,
3984 - # you end up with a "frozen" computer, even though with patience
3985 - # the test eventually succeeds (with a max line length of 256k).
3986 - # Instead, let's just punt: use the minimum linelength reported by
3987 - # all of the supported platforms: 8192 (on NT/2K/XP).
3988 - lt_cv_sys_max_cmd_len=8192;
3990 + lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|PA-RISC[[0-9]].[[0-9]]) shared library'
3991 + lt_cv_file_magic_test_file=/usr/lib/libc.sl
3997 - # On AmigaOS with pdksh, this test takes hours, literally.
3998 - # So we just punt and use a minimum line length of 8192.
3999 - lt_cv_sys_max_cmd_len=8192;
4002 + # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
4003 + lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so|\.a)$'
4007 - # If test is not a shell built-in, we'll probably end up computing a
4008 - # maximum length that is only half of the actual maximum length, but
4010 - while (test "X"`$CONFIG_SHELL [$]0 --fallback-echo "X$teststring" 2>/dev/null` \
4011 - = "XX$teststring") >/dev/null 2>&1 &&
4012 - new_result=`expr "X$teststring" : ".*" 2>&1` &&
4013 - lt_cv_sys_max_cmd_len=$new_result &&
4014 - test $i != 17 # 1/2 MB should be enough
4017 - teststring=$teststring$teststring
4020 - # Add a significant safety factor because C++ compilers can tack on massive
4021 - # amounts of additional arguments before passing them to the linker.
4022 - # It appears as though 1/2 is a usable value.
4023 - lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
4025 +irix5* | irix6* | nonstopux*)
4027 + *-32|*"-32 ") libmagic=32-bit;;
4028 + *-n32|*"-n32 ") libmagic=N32;;
4029 + *-64|*"-64 ") libmagic=64-bit;;
4030 + *) libmagic=never-match;;
4033 -if test -n $lt_cv_sys_max_cmd_len ; then
4034 - AC_MSG_RESULT($lt_cv_sys_max_cmd_len)
4036 - AC_MSG_RESULT(none)
4038 -])# AC_LIBTOOL_SYS_MAX_CMD_LEN
4041 -# _LT_AC_CHECK_DLFCN
4042 -# --------------------
4043 -AC_DEFUN([_LT_AC_CHECK_DLFCN],
4044 -[AC_CHECK_HEADERS(dlfcn.h)dnl
4045 -])# _LT_AC_CHECK_DLFCN
4047 + lt_cv_deplibs_check_method=pass_all
4050 -# _LT_AC_TRY_DLOPEN_SELF (ACTION-IF-TRUE, ACTION-IF-TRUE-W-USCORE,
4051 -# ACTION-IF-FALSE, ACTION-IF-CROSS-COMPILING)
4052 -# ------------------------------------------------------------------
4053 -AC_DEFUN([_LT_AC_TRY_DLOPEN_SELF],
4054 -[AC_REQUIRE([_LT_AC_CHECK_DLFCN])dnl
4055 -if test "$cross_compiling" = yes; then :
4058 - lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
4059 - lt_status=$lt_dlunknown
4060 - cat > conftest.$ac_ext <<EOF
4061 -[#line __oline__ "configure"
4062 -#include "confdefs.h"
4063 +# This must be Linux ELF.
4064 +linux* | k*bsd*-gnu)
4065 + lt_cv_deplibs_check_method=pass_all
4071 +netbsd* | netbsdelf*-gnu)
4072 + if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4073 + lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$'
4075 + lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so|_pic\.a)$'
4081 + lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (executable|dynamic lib)'
4082 + lt_cv_file_magic_cmd=/usr/bin/file
4083 + lt_cv_file_magic_test_file=/usr/lib/libnls.so
4087 -# define LT_DLGLOBAL RTLD_GLOBAL
4090 -# define LT_DLGLOBAL DL_GLOBAL
4092 -# define LT_DLGLOBAL 0
4096 + lt_cv_deplibs_check_method=unknown
4099 -/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
4100 - find out it does not work in some platform. */
4101 -#ifndef LT_DLLAZY_OR_NOW
4103 -# define LT_DLLAZY_OR_NOW RTLD_LAZY
4106 -# define LT_DLLAZY_OR_NOW DL_LAZY
4109 -# define LT_DLLAZY_OR_NOW RTLD_NOW
4112 -# define LT_DLLAZY_OR_NOW DL_NOW
4114 -# define LT_DLLAZY_OR_NOW 0
4121 + if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4122 + lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|\.so|_pic\.a)$'
4124 + lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$'
4129 -extern "C" void exit (int);
4131 +osf3* | osf4* | osf5*)
4132 + lt_cv_deplibs_check_method=pass_all
4135 -void fnord() { int i=42;}
4138 - void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
4139 - int status = $lt_dlunknown;
4141 + lt_cv_deplibs_check_method=pass_all
4146 - if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
4147 - else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
4148 - /* dlclose (self); */
4151 + case $host_vendor in
4153 + 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]]'
4154 + lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4157 + lt_cv_deplibs_check_method=pass_all
4160 + lt_cv_file_magic_cmd='/bin/file'
4161 + lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB (shared object|dynamic lib )'
4164 + lt_cv_file_magic_cmd='/bin/file'
4165 + lt_cv_deplibs_check_method="file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB dynamic lib"
4166 + lt_cv_file_magic_test_file=/lib/libc.so
4169 + lt_cv_deplibs_check_method=pass_all
4172 + lt_cv_deplibs_check_method=pass_all
4180 - if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext} 2>/dev/null; then
4181 - (./conftest; exit; ) 2>/dev/null
4183 - case x$lt_status in
4184 - x$lt_dlno_uscore) $1 ;;
4185 - x$lt_dlneed_uscore) $2 ;;
4186 - x$lt_unknown|x*) $3 ;;
4189 - # compilation failed
4194 -])# _LT_AC_TRY_DLOPEN_SELF
4195 +sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
4196 + lt_cv_deplibs_check_method=pass_all
4200 +file_magic_cmd=$lt_cv_file_magic_cmd
4201 +deplibs_check_method=$lt_cv_deplibs_check_method
4202 +test -z "$deplibs_check_method" && deplibs_check_method=unknown
4203 +])# AC_DEPLIBS_CHECK_METHOD
4206 -# AC_LIBTOOL_DLOPEN_SELF
4207 -# -------------------
4208 -AC_DEFUN([AC_LIBTOOL_DLOPEN_SELF],
4209 -[AC_REQUIRE([_LT_AC_CHECK_DLFCN])dnl
4210 -if test "x$enable_dlopen" != xyes; then
4211 - enable_dlopen=unknown
4212 - enable_dlopen_self=unknown
4213 - enable_dlopen_self_static=unknown
4216 +# find the pathname to a BSD-compatible name lister
4217 +AC_DEFUN([AC_PROG_NM],
4218 +[AC_CACHE_CHECK([for BSD-compatible nm], lt_cv_path_NM,
4219 +[if test -n "$NM"; then
4220 + # Let the user override the test.
4221 + lt_cv_path_NM="$NM"
4224 - lt_cv_dlopen_libs=
4225 + lt_nm_to_check="${ac_tool_prefix}nm"
4226 + if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4227 + lt_nm_to_check="$lt_nm_to_check nm"
4229 + for lt_tmp_nm in $lt_nm_to_check; do
4230 + lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4231 + for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4232 + IFS="$lt_save_ifs"
4233 + test -z "$ac_dir" && ac_dir=.
4234 + tmp_nm="$ac_dir/$lt_tmp_nm"
4235 + if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4236 + # Check to see if the nm accepts a BSD-compat flag.
4237 + # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4238 + # nm: unknown option "B" ignored
4239 + # Tru64's nm complains that /dev/null is an invalid object file
4240 + case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4241 + */dev/null* | *'Invalid file or object type'*)
4242 + lt_cv_path_NM="$tmp_nm -B"
4246 + case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4248 + lt_cv_path_NM="$tmp_nm -p"
4252 + lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4253 + continue # so that we can try to find one that supports BSD flags
4260 + IFS="$lt_save_ifs"
4262 + test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
4264 +NM="$lt_cv_path_NM"
4269 - lt_cv_dlopen="load_add_on"
4270 - lt_cv_dlopen_libs=
4271 - lt_cv_dlopen_self=yes
4275 - lt_cv_dlopen="LoadLibrary"
4276 - lt_cv_dlopen_libs=
4280 +# check for math library
4281 +AC_DEFUN([AC_CHECK_LIBM],
4282 +[AC_REQUIRE([AC_CANONICAL_HOST])dnl
4285 +*-*-beos* | *-*-cygwin* | *-*-pw32* | *-*-darwin*)
4286 + # These system don't have libm, or don't need it
4289 + AC_CHECK_LIB(mw, _mwvalidcheckl, LIBM="-lmw")
4290 + AC_CHECK_LIB(m, cos, LIBM="$LIBM -lm")
4293 + AC_CHECK_LIB(m, cos, LIBM="-lm")
4299 - lt_cv_dlopen="dlopen"
4300 - lt_cv_dlopen_libs=
4304 - # if libdl is installed we need to link against it
4305 - AC_CHECK_LIB([dl], [dlopen],
4306 - [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"],[
4307 - lt_cv_dlopen="dyld"
4308 - lt_cv_dlopen_libs=
4309 - lt_cv_dlopen_self=yes
4314 - AC_CHECK_FUNC([shl_load],
4315 - [lt_cv_dlopen="shl_load"],
4316 - [AC_CHECK_LIB([dld], [shl_load],
4317 - [lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"],
4318 - [AC_CHECK_FUNC([dlopen],
4319 - [lt_cv_dlopen="dlopen"],
4320 - [AC_CHECK_LIB([dl], [dlopen],
4321 - [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"],
4322 - [AC_CHECK_LIB([svld], [dlopen],
4323 - [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"],
4324 - [AC_CHECK_LIB([dld], [dld_link],
4325 - [lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"])
4332 +# AC_LIBLTDL_CONVENIENCE([DIRECTORY])
4333 +# -----------------------------------
4334 +# sets LIBLTDL to the link flags for the libltdl convenience library and
4335 +# LTDLINCL to the include flags for the libltdl header and adds
4336 +# --enable-ltdl-convenience to the configure arguments. Note that
4337 +# AC_CONFIG_SUBDIRS is not called here. If DIRECTORY is not provided,
4338 +# it is assumed to be `libltdl'. LIBLTDL will be prefixed with
4339 +# '${top_builddir}/' and LTDLINCL will be prefixed with '${top_srcdir}/'
4340 +# (note the single quotes!). If your package is not flat and you're not
4341 +# using automake, define top_builddir and top_srcdir appropriately in
4343 +AC_DEFUN([AC_LIBLTDL_CONVENIENCE],
4344 +[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
4345 + case $enable_ltdl_convenience in
4346 + no) AC_MSG_ERROR([this package needs a convenience libltdl]) ;;
4347 + "") enable_ltdl_convenience=yes
4348 + ac_configure_args="$ac_configure_args --enable-ltdl-convenience" ;;
4350 + LIBLTDL='${top_builddir}/'ifelse($#,1,[$1],['libltdl'])/libltdlc.la
4351 + LTDLINCL='-I${top_srcdir}/'ifelse($#,1,[$1],['libltdl'])
4352 + # For backwards non-gettext consistent compatibility...
4353 + INCLTDL="$LTDLINCL"
4354 +])# AC_LIBLTDL_CONVENIENCE
4356 - if test "x$lt_cv_dlopen" != xno; then
4359 +# AC_LIBLTDL_INSTALLABLE([DIRECTORY])
4360 +# -----------------------------------
4361 +# sets LIBLTDL to the link flags for the libltdl installable library and
4362 +# LTDLINCL to the include flags for the libltdl header and adds
4363 +# --enable-ltdl-install to the configure arguments. Note that
4364 +# AC_CONFIG_SUBDIRS is not called here. If DIRECTORY is not provided,
4365 +# and an installed libltdl is not found, it is assumed to be `libltdl'.
4366 +# LIBLTDL will be prefixed with '${top_builddir}/'# and LTDLINCL with
4367 +# '${top_srcdir}/' (note the single quotes!). If your package is not
4368 +# flat and you're not using automake, define top_builddir and top_srcdir
4369 +# appropriately in the Makefiles.
4370 +# In the future, this macro may have to be called after AC_PROG_LIBTOOL.
4371 +AC_DEFUN([AC_LIBLTDL_INSTALLABLE],
4372 +[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
4373 + AC_CHECK_LIB(ltdl, lt_dlinit,
4374 + [test x"$enable_ltdl_install" != xyes && enable_ltdl_install=no],
4375 + [if test x"$enable_ltdl_install" = xno; then
4376 + AC_MSG_WARN([libltdl not installed, but installation disabled])
4378 + enable_ltdl_install=yes
4381 + if test x"$enable_ltdl_install" = x"yes"; then
4382 + ac_configure_args="$ac_configure_args --enable-ltdl-install"
4383 + LIBLTDL='${top_builddir}/'ifelse($#,1,[$1],['libltdl'])/libltdl.la
4384 + LTDLINCL='-I${top_srcdir}/'ifelse($#,1,[$1],['libltdl'])
4387 + ac_configure_args="$ac_configure_args --enable-ltdl-install=no"
4391 + # For backwards non-gettext consistent compatibility...
4392 + INCLTDL="$LTDLINCL"
4393 +])# AC_LIBLTDL_INSTALLABLE
4395 - case $lt_cv_dlopen in
4397 - save_CPPFLAGS="$CPPFLAGS"
4398 - test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
4400 - save_LDFLAGS="$LDFLAGS"
4401 - eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
4404 +# enable support for C++ libraries
4405 +AC_DEFUN([AC_LIBTOOL_CXX],
4406 +[AC_REQUIRE([_LT_AC_LANG_CXX])
4410 - LIBS="$lt_cv_dlopen_libs $LIBS"
4412 - AC_CACHE_CHECK([whether a program can dlopen itself],
4413 - lt_cv_dlopen_self, [dnl
4414 - _LT_AC_TRY_DLOPEN_SELF(
4415 - lt_cv_dlopen_self=yes, lt_cv_dlopen_self=yes,
4416 - lt_cv_dlopen_self=no, lt_cv_dlopen_self=cross)
4420 +AC_DEFUN([_LT_AC_LANG_CXX],
4421 +[AC_REQUIRE([AC_PROG_CXX])
4422 +AC_REQUIRE([_LT_AC_PROG_CXXCPP])
4423 +_LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}CXX])
4424 +])# _LT_AC_LANG_CXX
4426 - if test "x$lt_cv_dlopen_self" = xyes; then
4427 - LDFLAGS="$LDFLAGS $link_static_flag"
4428 - AC_CACHE_CHECK([whether a statically linked program can dlopen itself],
4429 - lt_cv_dlopen_self_static, [dnl
4430 - _LT_AC_TRY_DLOPEN_SELF(
4431 - lt_cv_dlopen_self_static=yes, lt_cv_dlopen_self_static=yes,
4432 - lt_cv_dlopen_self_static=no, lt_cv_dlopen_self_static=cross)
4435 +# _LT_AC_PROG_CXXCPP
4436 +# ------------------
4437 +AC_DEFUN([_LT_AC_PROG_CXXCPP],
4439 +AC_REQUIRE([AC_PROG_CXX])
4440 +if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
4441 + ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
4442 + (test "X$CXX" != "Xg++"))) ; then
4445 +])# _LT_AC_PROG_CXXCPP
4447 - CPPFLAGS="$save_CPPFLAGS"
4448 - LDFLAGS="$save_LDFLAGS"
4454 +# enable support for Fortran 77 libraries
4455 +AC_DEFUN([AC_LIBTOOL_F77],
4456 +[AC_REQUIRE([_LT_AC_LANG_F77])
4459 - case $lt_cv_dlopen_self in
4460 - yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
4461 - *) enable_dlopen_self=unknown ;;
4464 - case $lt_cv_dlopen_self_static in
4465 - yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
4466 - *) enable_dlopen_self_static=unknown ;;
4469 -])# AC_LIBTOOL_DLOPEN_SELF
4472 +AC_DEFUN([_LT_AC_LANG_F77],
4473 +[AC_REQUIRE([AC_PROG_F77])
4474 +_LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}F77])
4475 +])# _LT_AC_LANG_F77
4478 -# AC_LIBTOOL_PROG_CC_C_O([TAGNAME])
4479 -# ---------------------------------
4480 -# Check to see if options -c and -o are simultaneously supported by compiler
4481 -AC_DEFUN([AC_LIBTOOL_PROG_CC_C_O],
4482 -[AC_REQUIRE([_LT_AC_SYS_COMPILER])dnl
4483 -AC_CACHE_CHECK([if $compiler supports -c -o file.$ac_objext],
4484 - [_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)],
4485 - [_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)=no
4486 - $rm -r conftest 2>/dev/null
4490 - printf "$lt_simple_compile_test_code" > conftest.$ac_ext
4493 +# enable support for GCJ libraries
4494 +AC_DEFUN([AC_LIBTOOL_GCJ],
4495 +[AC_REQUIRE([_LT_AC_LANG_GCJ])
4498 - lt_compiler_flag="-o out/conftest2.$ac_objext"
4499 - # Insert the option either (1) after the last *FLAGS variable, or
4500 - # (2) before a word containing "conftest.", or (3) at the end.
4501 - # Note that $ac_compile itself does not contain backslashes and begins
4502 - # with a dollar sign (not a hyphen), so the echo should work correctly.
4503 - lt_compile=`echo "$ac_compile" | $SED \
4504 - -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
4505 - -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \
4506 - -e 's:$: $lt_compiler_flag:'`
4507 - (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&AS_MESSAGE_LOG_FD)
4508 - (eval "$lt_compile" 2>out/conftest.err)
4510 - cat out/conftest.err >&AS_MESSAGE_LOG_FD
4511 - echo "$as_me:__oline__: \$? = $ac_status" >&AS_MESSAGE_LOG_FD
4512 - if (exit $ac_status) && test -s out/conftest2.$ac_objext
4514 - # The compiler can only warn and ignore the option if not recognized
4515 - # So say no if there are warnings
4516 - if test ! -s out/conftest.err; then
4517 - _LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes
4522 - # SGI C++ compiler will create directory out/ii_files/ for
4523 - # template instantiation
4524 - test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
4525 - $rm out/* && rmdir out
4530 -])# AC_LIBTOOL_PROG_CC_C_O
4534 +AC_DEFUN([_LT_AC_LANG_GCJ],
4535 +[AC_PROVIDE_IFELSE([AC_PROG_GCJ],[],
4536 + [AC_PROVIDE_IFELSE([A][M_PROG_GCJ],[],
4537 + [AC_PROVIDE_IFELSE([LT_AC_PROG_GCJ],[],
4538 + [ifdef([AC_PROG_GCJ],[AC_REQUIRE([AC_PROG_GCJ])],
4539 + [ifdef([A][M_PROG_GCJ],[AC_REQUIRE([A][M_PROG_GCJ])],
4540 + [AC_REQUIRE([A][C_PROG_GCJ_OR_A][M_PROG_GCJ])])])])])])
4541 +_LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}GCJ])
4542 +])# _LT_AC_LANG_GCJ
4544 -# AC_LIBTOOL_SYS_HARD_LINK_LOCKS([TAGNAME])
4545 -# -----------------------------------------
4546 -# Check to see if we can do hard links to lock some files if needed
4547 -AC_DEFUN([AC_LIBTOOL_SYS_HARD_LINK_LOCKS],
4548 -[AC_REQUIRE([_LT_AC_LOCK])dnl
4550 -hard_links="nottested"
4551 -if test "$_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)" = no && test "$need_locks" != no; then
4552 - # do not overwrite the value of need_locks provided by the user
4553 - AC_MSG_CHECKING([if we can lock with hard links])
4556 - ln conftest.a conftest.b 2>/dev/null && hard_links=no
4558 - ln conftest.a conftest.b 2>&5 || hard_links=no
4559 - ln conftest.a conftest.b 2>/dev/null && hard_links=no
4560 - AC_MSG_RESULT([$hard_links])
4561 - if test "$hard_links" = no; then
4562 - AC_MSG_WARN([`$CC' does not support `-c -o', so `make -j' may be unsafe])
4568 -])# AC_LIBTOOL_SYS_HARD_LINK_LOCKS
4571 +# enable support for Windows resource files
4572 +AC_DEFUN([AC_LIBTOOL_RC],
4573 +[AC_REQUIRE([LT_AC_PROG_RC])
4574 +_LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}RC])
4578 -# AC_LIBTOOL_OBJDIR
4579 -# -----------------
4580 -AC_DEFUN([AC_LIBTOOL_OBJDIR],
4581 -[AC_CACHE_CHECK([for objdir], [lt_cv_objdir],
4582 -[rm -f .libs 2>/dev/null
4583 -mkdir .libs 2>/dev/null
4584 -if test -d .libs; then
4585 - lt_cv_objdir=.libs
4587 - # MS-DOS does not allow filenames that begin with a dot.
4588 - lt_cv_objdir=_libs
4590 -rmdir .libs 2>/dev/null])
4591 -objdir=$lt_cv_objdir
4592 -])# AC_LIBTOOL_OBJDIR
4593 +# AC_LIBTOOL_LANG_C_CONFIG
4594 +# ------------------------
4595 +# Ensure that the configuration vars for the C compiler are
4596 +# suitably defined. Those variables are subsequently used by
4597 +# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
4598 +AC_DEFUN([AC_LIBTOOL_LANG_C_CONFIG], [_LT_AC_LANG_C_CONFIG])
4599 +AC_DEFUN([_LT_AC_LANG_C_CONFIG],
4603 +# Source file extension for C test sources.
4606 -# AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH([TAGNAME])
4607 -# ----------------------------------------------
4608 -# Check hardcoding attributes.
4609 -AC_DEFUN([AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH],
4610 -[AC_MSG_CHECKING([how to hardcode library paths into programs])
4611 -_LT_AC_TAGVAR(hardcode_action, $1)=
4612 -if test -n "$_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)" || \
4613 - test -n "$_LT_AC_TAGVAR(runpath_var $1)" || \
4614 - test "X$_LT_AC_TAGVAR(hardcode_automatic, $1)"="Xyes" ; then
4615 +# Object file extension for compiled C test sources.
4617 +_LT_AC_TAGVAR(objext, $1)=$objext
4619 - # We can hardcode non-existant directories.
4620 - if test "$_LT_AC_TAGVAR(hardcode_direct, $1)" != no &&
4621 - # If the only mechanism to avoid hardcoding is shlibpath_var, we
4622 - # have to relink, otherwise we might link with an installed library
4623 - # when we should be linking with a yet-to-be-installed one
4624 - ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)" != no &&
4625 - test "$_LT_AC_TAGVAR(hardcode_minus_L, $1)" != no; then
4626 - # Linking always hardcodes the temporary library directory.
4627 - _LT_AC_TAGVAR(hardcode_action, $1)=relink
4629 - # We can link without hardcoding, and we can hardcode nonexisting dirs.
4630 - _LT_AC_TAGVAR(hardcode_action, $1)=immediate
4633 - # We cannot hardcode anything, or else we can only hardcode existing
4635 - _LT_AC_TAGVAR(hardcode_action, $1)=unsupported
4637 -AC_MSG_RESULT([$_LT_AC_TAGVAR(hardcode_action, $1)])
4638 +# Code to be used in simple compile tests
4639 +lt_simple_compile_test_code="int some_variable = 0;\n"
4641 -if test "$_LT_AC_TAGVAR(hardcode_action, $1)" = relink; then
4642 - # Fast installation is not supported
4643 - enable_fast_install=no
4644 -elif test "$shlibpath_overrides_runpath" = yes ||
4645 - test "$enable_shared" = no; then
4646 - # Fast installation is not necessary
4647 - enable_fast_install=needless
4649 -])# AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH
4650 +# Code to be used in simple link tests
4651 +lt_simple_link_test_code='int main(){return(0);}\n'
4653 +_LT_AC_SYS_COMPILER
4655 -# AC_LIBTOOL_SYS_LIB_STRIP
4656 -# ------------------------
4657 -AC_DEFUN([AC_LIBTOOL_SYS_LIB_STRIP],
4660 -AC_MSG_CHECKING([whether stripping libraries is possible])
4661 -if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
4662 - test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
4663 - test -z "$striplib" && striplib="$STRIP --strip-unneeded"
4664 - AC_MSG_RESULT([yes])
4666 -# FIXME - insert some real tests, host_os isn't really good enough
4669 - if test -n "$STRIP" ; then
4670 - striplib="$STRIP -x"
4671 - AC_MSG_RESULT([yes])
4673 - AC_MSG_RESULT([no])
4677 - AC_MSG_RESULT([no])
4681 -])# AC_LIBTOOL_SYS_LIB_STRIP
4682 +# save warnings/boilerplate of simple test code
4683 +_LT_COMPILER_BOILERPLATE
4684 +_LT_LINKER_BOILERPLATE
4686 +AC_LIBTOOL_PROG_COMPILER_NO_RTTI($1)
4687 +AC_LIBTOOL_PROG_COMPILER_PIC($1)
4688 +AC_LIBTOOL_PROG_CC_C_O($1)
4689 +AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1)
4690 +AC_LIBTOOL_PROG_LD_SHLIBS($1)
4691 +AC_LIBTOOL_SYS_DYNAMIC_LINKER($1)
4692 +AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1)
4693 +AC_LIBTOOL_SYS_LIB_STRIP
4694 +AC_LIBTOOL_DLOPEN_SELF
4696 -# AC_LIBTOOL_SYS_DYNAMIC_LINKER
4697 -# -----------------------------
4698 -# PORTME Fill in your ld.so characteristics
4699 -AC_DEFUN([AC_LIBTOOL_SYS_DYNAMIC_LINKER],
4700 -[AC_MSG_CHECKING([dynamic linker characteristics])
4701 -library_names_spec=
4702 -libname_spec='lib$name'
4706 -postuninstall_cmds=
4710 -shlibpath_overrides_runpath=unknown
4712 -dynamic_linker="$host_os ld.so"
4713 -sys_lib_dlsearch_path_spec="/lib /usr/lib"
4714 -if test "$GCC" = yes; then
4715 - sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
4716 - if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
4717 - # if the path contains ";" then we assume it to be the separator
4718 - # otherwise default to the standard path separator (i.e. ":") - it is
4719 - # assumed that no part of a normal pathname contains ";" but that should
4720 - # okay in the real world where ";" in dirpaths is itself problematic.
4721 - sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
4723 - sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
4726 - sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
4728 -need_lib_prefix=unknown
4729 -hardcode_into_libs=no
4730 +# Report which library types will actually be built
4731 +AC_MSG_CHECKING([if libtool supports shared libraries])
4732 +AC_MSG_RESULT([$can_build_shared])
4734 -# when you set need_version to no, make sure it does not cause -set_version
4735 -# flags to be left without arguments
4736 -need_version=unknown
4737 +AC_MSG_CHECKING([whether to build shared libraries])
4738 +test "$can_build_shared" = "no" && enable_shared=no
4740 +# On AIX, shared libraries and static libraries use the same namespace, and
4741 +# are all built from PIC.
4744 - version_type=linux
4745 - library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
4746 - shlibpath_var=LIBPATH
4748 - # AIX 3 has no versioning support, so we append a major version to the name.
4749 - soname_spec='${libname}${release}${shared_ext}$major'
4750 + test "$enable_shared" = yes && enable_static=no
4751 + if test -n "$RANLIB"; then
4752 + archive_cmds="$archive_cmds~\$RANLIB \$lib"
4753 + postinstall_cmds='$RANLIB $lib'
4758 - version_type=linux
4759 - need_lib_prefix=no
4761 - hardcode_into_libs=yes
4762 - if test "$host_cpu" = ia64; then
4763 - # AIX 5 supports IA64
4764 - library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
4765 - shlibpath_var=LD_LIBRARY_PATH
4767 - # With GCC up to 2.95.x, collect2 would create an import file
4768 - # for dependence libraries. The import file would start with
4769 - # the line `#! .'. This would cause the generated library to
4770 - # depend on `.', always an invalid library. This was fixed in
4771 - # development snapshots of GCC prior to 3.0.
4773 - aix4 | aix4.[[01]] | aix4.[[01]].*)
4774 - if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
4776 - echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
4779 - can_build_shared=no
4783 - # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
4784 - # soname into executable. Probably we can add versioning support to
4785 - # collect2, so additional links can be useful in future.
4786 - if test "$aix_use_runtimelinking" = yes; then
4787 - # If using run time linking (on AIX 4.2 or later) use lib<name>.so
4788 - # instead of lib<name>.a to let people know that these are not
4789 - # typical AIX shared libraries.
4790 - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
4792 - # We preserve .a as extension for shared libraries through AIX4.2
4793 - # and later when we are not doing run time linking.
4794 - library_names_spec='${libname}${release}.a $libname.a'
4795 - soname_spec='${libname}${release}${shared_ext}$major'
4797 - shlibpath_var=LIBPATH
4798 + if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
4799 + test "$enable_shared" = yes && enable_static=no
4804 - library_names_spec='$libname.ixlibrary $libname.a'
4805 - # Create ${libname}_ixlibrary.a entries in /sys/libs.
4806 - 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'
4810 +AC_MSG_RESULT([$enable_shared])
4813 - library_names_spec='${libname}${shared_ext}'
4814 - dynamic_linker="$host_os ld.so"
4815 - shlibpath_var=LIBRARY_PATH
4817 +AC_MSG_CHECKING([whether to build static libraries])
4818 +# Make sure either enable_shared or enable_static is yes.
4819 +test "$enable_shared" = yes || enable_static=yes
4820 +AC_MSG_RESULT([$enable_static])
4823 - version_type=linux
4825 - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
4826 - soname_spec='${libname}${release}${shared_ext}$major'
4827 - finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
4828 - shlibpath_var=LD_LIBRARY_PATH
4829 - sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
4830 - sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
4831 - # the default ld.so.conf also contains /usr/contrib/lib and
4832 - # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
4833 - # libtool to hard-code these into programs
4835 +AC_LIBTOOL_CONFIG($1)
4837 -cygwin* | mingw* | pw32*)
4838 - version_type=windows
4839 - shrext_cmds=".dll"
4841 - need_lib_prefix=no
4844 +])# AC_LIBTOOL_LANG_C_CONFIG
4846 - case $GCC,$host_os in
4847 - yes,cygwin* | yes,mingw* | yes,pw32*)
4848 - library_names_spec='$libname.dll.a'
4849 - # DLL is installed to $(libdir)/../bin by postinstall_cmds
4850 - postinstall_cmds='base_file=`basename \${file}`~
4851 - dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
4852 - dldir=$destdir/`dirname \$dlpath`~
4853 - test -d \$dldir || mkdir -p \$dldir~
4854 - $install_prog $dir/$dlname \$dldir/$dlname'
4855 - postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
4856 - dlpath=$dir/\$dldll~
4858 - shlibpath_overrides_runpath=yes
4862 - # Cygwin DLLs use 'cyg' prefix rather than 'lib'
4863 - soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
4864 - sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
4867 - # MinGW DLLs use traditional 'lib' prefix
4868 - soname_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
4869 - sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
4870 - if echo "$sys_lib_search_path_spec" | [grep ';[c-zC-Z]:/' >/dev/null]; then
4871 - # It is most probably a Windows format PATH printed by
4872 - # mingw gcc, but we are running on Cygwin. Gcc prints its search
4873 - # path with ; separators, and with drive letters. We can handle the
4874 - # drive letters (cygwin fileutils understands them), so leave them,
4875 - # especially as we might pass files found there to a mingw objdump,
4876 - # which wouldn't understand a cygwinified path. Ahh.
4877 - sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
4879 - sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
4883 - # pw32 DLLs use 'pw' prefix rather than 'lib'
4884 - library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
4888 +# AC_LIBTOOL_LANG_CXX_CONFIG
4889 +# --------------------------
4890 +# Ensure that the configuration vars for the C compiler are
4891 +# suitably defined. Those variables are subsequently used by
4892 +# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
4893 +AC_DEFUN([AC_LIBTOOL_LANG_CXX_CONFIG], [_LT_AC_LANG_CXX_CONFIG(CXX)])
4894 +AC_DEFUN([_LT_AC_LANG_CXX_CONFIG],
4896 +AC_REQUIRE([AC_PROG_CXX])
4897 +AC_REQUIRE([_LT_AC_PROG_CXXCPP])
4900 - library_names_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext} $libname.lib'
4903 - dynamic_linker='Win32 ld.exe'
4904 - # FIXME: first we should search . and the directory the executable is in
4905 - shlibpath_var=PATH
4907 +_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
4908 +_LT_AC_TAGVAR(allow_undefined_flag, $1)=
4909 +_LT_AC_TAGVAR(always_export_symbols, $1)=no
4910 +_LT_AC_TAGVAR(archive_expsym_cmds, $1)=
4911 +_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)=
4912 +_LT_AC_TAGVAR(hardcode_direct, $1)=no
4913 +_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=
4914 +_LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
4915 +_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
4916 +_LT_AC_TAGVAR(hardcode_minus_L, $1)=no
4917 +_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
4918 +_LT_AC_TAGVAR(hardcode_automatic, $1)=no
4919 +_LT_AC_TAGVAR(module_cmds, $1)=
4920 +_LT_AC_TAGVAR(module_expsym_cmds, $1)=
4921 +_LT_AC_TAGVAR(link_all_deplibs, $1)=unknown
4922 +_LT_AC_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
4923 +_LT_AC_TAGVAR(no_undefined_flag, $1)=
4924 +_LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
4925 +_LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=no
4927 -darwin* | rhapsody*)
4928 - dynamic_linker="$host_os dyld"
4929 - version_type=darwin
4930 - need_lib_prefix=no
4932 - library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
4933 - soname_spec='${libname}${release}${major}$shared_ext'
4934 - shlibpath_overrides_runpath=yes
4935 - shlibpath_var=DYLD_LIBRARY_PATH
4936 - shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
4937 - # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
4938 - if test "$GCC" = yes; then
4939 - 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"`
4941 - sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
4943 - sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
4945 +# Dependencies to place before and after the object being linked:
4946 +_LT_AC_TAGVAR(predep_objects, $1)=
4947 +_LT_AC_TAGVAR(postdep_objects, $1)=
4948 +_LT_AC_TAGVAR(predeps, $1)=
4949 +_LT_AC_TAGVAR(postdeps, $1)=
4950 +_LT_AC_TAGVAR(compiler_lib_search_path, $1)=
4953 - version_type=linux
4954 - need_lib_prefix=no
4956 - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
4957 - soname_spec='${libname}${release}${shared_ext}$major'
4958 - shlibpath_var=LD_LIBRARY_PATH
4960 +# Source file extension for C++ test sources.
4966 +# Object file extension for compiled C++ test sources.
4968 +_LT_AC_TAGVAR(objext, $1)=$objext
4971 - version_type=linux
4972 - need_lib_prefix=no
4974 - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
4975 - soname_spec='${libname}${release}${shared_ext}$major'
4976 - shlibpath_var=LD_LIBRARY_PATH
4977 - shlibpath_overrides_runpath=no
4978 - hardcode_into_libs=yes
4979 - dynamic_linker='GNU ld.so'
4981 +# Code to be used in simple compile tests
4982 +lt_simple_compile_test_code="int some_variable = 0;\n"
4985 - objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
4986 - version_type=freebsd-$objformat
4987 - case $version_type in
4989 - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
4991 - need_lib_prefix=no
4994 - library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
4998 - shlibpath_var=LD_LIBRARY_PATH
5001 - shlibpath_overrides_runpath=yes
5003 - freebsd3.[01]* | freebsdelf3.[01]*)
5004 - shlibpath_overrides_runpath=yes
5005 - hardcode_into_libs=yes
5008 - shlibpath_overrides_runpath=no
5009 - hardcode_into_libs=yes
5013 +# Code to be used in simple link tests
5014 +lt_simple_link_test_code='int main(int, char *[[]]) { return(0); }\n'
5017 - version_type=linux
5018 - need_lib_prefix=no
5020 - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
5021 - soname_spec='${libname}${release}${shared_ext}$major'
5022 - shlibpath_var=LD_LIBRARY_PATH
5023 - hardcode_into_libs=yes
5025 +# ltmain only uses $CC for tagged configurations so make sure $CC is set.
5026 +_LT_AC_SYS_COMPILER
5028 -hpux9* | hpux10* | hpux11*)
5029 - # Give a soname corresponding to the major version so that dld.sl refuses to
5030 - # link against other versions.
5031 - version_type=sunos
5032 - need_lib_prefix=no
5034 - case "$host_cpu" in
5037 - hardcode_into_libs=yes
5038 - dynamic_linker="$host_os dld.so"
5039 - shlibpath_var=LD_LIBRARY_PATH
5040 - shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
5041 - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
5042 - soname_spec='${libname}${release}${shared_ext}$major'
5043 - if test "X$HPUX_IA64_MODE" = X32; then
5044 - sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
5046 - sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
5048 - sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
5052 - hardcode_into_libs=yes
5053 - dynamic_linker="$host_os dld.sl"
5054 - shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
5055 - shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
5056 - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
5057 - soname_spec='${libname}${release}${shared_ext}$major'
5058 - sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
5059 - sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
5063 - dynamic_linker="$host_os dld.sl"
5064 - shlibpath_var=SHLIB_PATH
5065 - shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
5066 - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
5067 - soname_spec='${libname}${release}${shared_ext}$major'
5070 - # HP-UX runs *really* slowly unless shared libraries are mode 555.
5071 - postinstall_cmds='chmod 555 $lib'
5073 +# save warnings/boilerplate of simple test code
5074 +_LT_COMPILER_BOILERPLATE
5075 +_LT_LINKER_BOILERPLATE
5077 -irix5* | irix6* | nonstopux*)
5079 - nonstopux*) version_type=nonstopux ;;
5081 - if test "$lt_cv_prog_gnu_ld" = yes; then
5082 - version_type=linux
5087 - need_lib_prefix=no
5089 - soname_spec='${libname}${release}${shared_ext}$major'
5090 - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
5092 - irix5* | nonstopux*)
5093 - libsuff= shlibsuff=
5096 - case $LD in # libtool.m4 will add one of these switches to LD
5097 - *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
5098 - libsuff= shlibsuff= libmagic=32-bit;;
5099 - *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
5100 - libsuff=32 shlibsuff=N32 libmagic=N32;;
5101 - *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
5102 - libsuff=64 shlibsuff=64 libmagic=64-bit;;
5103 - *) libsuff= shlibsuff= libmagic=never-match;;
5107 - shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
5108 - shlibpath_overrides_runpath=no
5109 - sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
5110 - sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
5111 - hardcode_into_libs=yes
5113 +# Allow CC to be a program name with arguments.
5118 +lt_save_with_gnu_ld=$with_gnu_ld
5119 +lt_save_path_LD=$lt_cv_path_LD
5120 +if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
5121 + lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
5123 + $as_unset lt_cv_prog_gnu_ld
5125 +if test -n "${lt_cv_path_LDCXX+set}"; then
5126 + lt_cv_path_LD=$lt_cv_path_LDCXX
5128 + $as_unset lt_cv_path_LD
5130 +test -z "${LDCXX+set}" || LD=$LDCXX
5133 +_LT_AC_TAGVAR(compiler, $1)=$CC
5134 +_LT_CC_BASENAME([$compiler])
5136 -# No shared lib support for Linux oldld, aout, or coff.
5137 -linux*oldld* | linux*aout* | linux*coff*)
5140 +# We don't want -fno-exception wen compiling C++ code, so set the
5141 +# no_builtin_flag separately
5142 +if test "$GXX" = yes; then
5143 + _LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin'
5145 + _LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=
5148 -# This must be Linux ELF.
5150 - version_type=linux
5151 - need_lib_prefix=no
5153 - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
5154 - soname_spec='${libname}${release}${shared_ext}$major'
5155 - finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
5156 - shlibpath_var=LD_LIBRARY_PATH
5157 - shlibpath_overrides_runpath=no
5158 - # This implies no fast_install, which is unacceptable.
5159 - # Some rework will be needed to allow for fast_install
5160 - # before this can be enabled.
5161 - hardcode_into_libs=yes
5162 +if test "$GXX" = yes; then
5163 + # Set up default GNU C++ configuration
5165 - # Append ld.so.conf contents to the search path
5166 - if test -f /etc/ld.so.conf; then
5167 - lt_ld_extra=`$SED -e 's/[:,\t]/ /g;s/=[^=]*$//;s/=[^= ]* / /g' /etc/ld.so.conf | tr '\n' ' '`
5168 - sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
5172 - # We used to test for /lib/ld.so.1 and disable shared libraries on
5173 - # powerpc, because MkLinux only supported shared libraries with the
5174 - # GNU dynamic linker. Since this was broken with cross compilers,
5175 - # most powerpc-linux boxes support dynamic linking these days and
5176 - # people can always --disable-shared, the test was removed, and we
5177 - # assume the GNU/Linux dynamic linker is in use.
5178 - dynamic_linker='GNU/Linux ld.so'
5180 + # Check if GNU C++ uses GNU ld as the underlying linker, since the
5181 + # archiving commands below assume that GNU ld is being used.
5182 + if test "$with_gnu_ld" = yes; then
5183 + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
5184 + _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'
5187 - version_type=linux
5188 - need_lib_prefix=no
5190 - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
5191 - soname_spec='${libname}${release}${shared_ext}$major'
5192 - shlibpath_var=LD_LIBRARY_PATH
5193 - shlibpath_overrides_runpath=no
5194 - hardcode_into_libs=yes
5195 - dynamic_linker='NetBSD ld.elf_so'
5197 + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir'
5198 + _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
5201 - version_type=linux
5202 - need_lib_prefix=no
5204 - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
5205 - soname_spec='${libname}${release}${shared_ext}$major'
5206 - shlibpath_var=LD_LIBRARY_PATH
5207 - shlibpath_overrides_runpath=no
5208 - hardcode_into_libs=yes
5209 - dynamic_linker='GNU ld.so'
5211 + # If archive_cmds runs LD, not CC, wlarc should be empty
5212 + # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
5213 + # investigate it a little bit more. (MM)
5217 - version_type=sunos
5218 - need_lib_prefix=no
5220 - if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
5221 - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
5222 - finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
5223 - dynamic_linker='NetBSD (a.out) ld.so'
5224 + # ancient GNU ld didn't support --whole-archive et. al.
5225 + if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
5226 + grep 'no-whole-archive' > /dev/null; then
5227 + _LT_AC_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
5229 + _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
5232 - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
5233 - soname_spec='${libname}${release}${shared_ext}$major'
5234 - dynamic_linker='NetBSD ld.elf_so'
5238 + # A generic and very simple default shared library creation
5239 + # command for GNU C++ for the case where it uses the native
5240 + # linker, instead of GNU ld. If possible, this setting should
5241 + # overridden to take advantage of the native linker features on
5242 + # the platform it is being used on.
5243 + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
5245 - shlibpath_var=LD_LIBRARY_PATH
5246 - shlibpath_overrides_runpath=yes
5247 - hardcode_into_libs=yes
5251 - version_type=linux
5252 - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
5253 - shlibpath_var=LD_LIBRARY_PATH
5254 - shlibpath_overrides_runpath=yes
5256 + # Commands to make compiler produce verbose output that lists
5257 + # what "hidden" libraries, object files and flags are used when
5258 + # linking a shared library.
5259 + output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
5262 - version_type=linux
5263 - need_lib_prefix=no
5265 - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
5266 - soname_spec='${libname}${release}${shared_ext}$major'
5267 - shlibpath_var=LD_LIBRARY_PATH
5268 - shlibpath_overrides_runpath=yes
5277 - version_type=sunos
5278 - need_lib_prefix=no
5280 - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
5281 - finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
5282 - shlibpath_var=LD_LIBRARY_PATH
5283 - if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5285 - openbsd2.[[89]] | openbsd2.[[89]].*)
5286 - shlibpath_overrides_runpath=no
5289 - shlibpath_overrides_runpath=yes
5290 +# PORTME: fill in a description of your system's C++ link characteristics
5291 +AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries])
5292 +_LT_AC_TAGVAR(ld_shlibs, $1)=yes
5295 + # FIXME: insert proper C++ library support
5296 + _LT_AC_TAGVAR(ld_shlibs, $1)=no
5299 + if test "$host_cpu" = ia64; then
5300 + # On IA64, the linker does run time linking by default, so we don't
5301 + # have to do anything special.
5302 + aix_use_runtimelinking=no
5303 + exp_sym_flag='-Bexport'
5306 + aix_use_runtimelinking=no
5308 + # Test if we are trying to use run time linking or normal
5309 + # AIX style linking. If -brtl is somewhere in LDFLAGS, we
5310 + # need to do runtime linking.
5311 + case $host_os in aix4.[[23]]|aix4.[[23]].*|aix5*)
5312 + for ld_flag in $LDFLAGS; do
5315 + aix_use_runtimelinking=yes
5323 - shlibpath_overrides_runpath=yes
5328 - libname_spec='$name'
5329 - shrext_cmds=".dll"
5330 - need_lib_prefix=no
5331 - library_names_spec='$libname${shared_ext} $libname.a'
5332 - dynamic_linker='OS/2 ld.exe'
5333 - shlibpath_var=LIBPATH
5336 -osf3* | osf4* | osf5*)
5338 - need_lib_prefix=no
5340 - soname_spec='${libname}${release}${shared_ext}$major'
5341 - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
5342 - shlibpath_var=LD_LIBRARY_PATH
5343 - sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
5344 - sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
5346 + exp_sym_flag='-bexport'
5347 + no_entry_flag='-bnoentry'
5352 - soname_spec='${libname}${release}${shared_ext}$major'
5353 - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
5354 - shlibpath_var=LD_LIBRARY_PATH
5356 + # When large executables or shared objects are built, AIX ld can
5357 + # have problems creating the table of contents. If linking a library
5358 + # or program results in "error TOC overflow" add -mminimal-toc to
5359 + # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
5360 + # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
5363 - version_type=linux
5364 - need_lib_prefix=no
5366 - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
5367 - soname_spec='${libname}${release}${shared_ext}$major'
5368 - shlibpath_var=LD_LIBRARY_PATH
5369 - shlibpath_overrides_runpath=yes
5370 - hardcode_into_libs=yes
5371 - # ldd complains unless libraries are executable
5372 - postinstall_cmds='chmod +x $lib'
5374 + _LT_AC_TAGVAR(archive_cmds, $1)=''
5375 + _LT_AC_TAGVAR(hardcode_direct, $1)=yes
5376 + _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=':'
5377 + _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
5380 - version_type=sunos
5381 - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
5382 - finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
5383 - shlibpath_var=LD_LIBRARY_PATH
5384 - shlibpath_overrides_runpath=yes
5385 - if test "$with_gnu_ld" = yes; then
5386 - need_lib_prefix=no
5390 + if test "$GXX" = yes; then
5391 + case $host_os in aix4.[[012]]|aix4.[[012]].*)
5392 + # We only want to do this on AIX 4.2 and lower, the check
5393 + # below for broken collect2 doesn't work under 4.3+
5394 + collect2name=`${CC} -print-prog-name=collect2`
5395 + if test -f "$collect2name" && \
5396 + strings "$collect2name" | grep resolve_lib_name >/dev/null
5398 + # We have reworked collect2
5399 + _LT_AC_TAGVAR(hardcode_direct, $1)=yes
5401 + # We have old collect2
5402 + _LT_AC_TAGVAR(hardcode_direct, $1)=unsupported
5403 + # It fails to find uninstalled libraries when the uninstalled
5404 + # path is not listed in the libpath. Setting hardcode_minus_L
5405 + # to unsupported forces relinking
5406 + _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
5407 + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
5408 + _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
5412 + shared_flag='-shared'
5413 + if test "$aix_use_runtimelinking" = yes; then
5414 + shared_flag="$shared_flag "'${wl}-G'
5418 + if test "$host_cpu" = ia64; then
5419 + # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
5420 + # chokes on -Wl,-G. The following line is correct:
5423 + if test "$aix_use_runtimelinking" = yes; then
5424 + shared_flag='${wl}-G'
5426 + shared_flag='${wl}-bM:SRE'
5431 -sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
5432 - version_type=linux
5433 - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
5434 - soname_spec='${libname}${release}${shared_ext}$major'
5435 - shlibpath_var=LD_LIBRARY_PATH
5436 - case $host_vendor in
5438 - shlibpath_overrides_runpath=no
5439 - need_lib_prefix=no
5440 - export_dynamic_flag_spec='${wl}-Blargedynsym'
5441 - runpath_var=LD_RUN_PATH
5444 - need_lib_prefix=no
5447 - need_lib_prefix=no
5449 - shlibpath_overrides_runpath=no
5450 - sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
5454 + # It seems that -bexpall does not export symbols beginning with
5455 + # underscore (_), so it is better to generate a list of symbols to export.
5456 + _LT_AC_TAGVAR(always_export_symbols, $1)=yes
5457 + if test "$aix_use_runtimelinking" = yes; then
5458 + # Warning - without using the other runtime loading flags (-brtl),
5459 + # -berok will link without error, but may produce a broken library.
5460 + _LT_AC_TAGVAR(allow_undefined_flag, $1)='-berok'
5461 + # Determine the default libpath from the value encoded in an empty executable.
5462 + _LT_AC_SYS_LIBPATH_AIX
5463 + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
5466 - if test -d /usr/nec ;then
5467 - version_type=linux
5468 - library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
5469 - soname_spec='$libname${shared_ext}.$major'
5470 - shlibpath_var=LD_LIBRARY_PATH
5475 - version_type=linux
5476 - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
5477 - soname_spec='${libname}${release}${shared_ext}$major'
5478 - shlibpath_var=LD_LIBRARY_PATH
5485 -AC_MSG_RESULT([$dynamic_linker])
5486 -test "$dynamic_linker" = no && can_build_shared=no
5487 -])# AC_LIBTOOL_SYS_DYNAMIC_LINKER
5492 -AC_DEFUN([_LT_AC_TAGCONFIG],
5493 -[AC_ARG_WITH([tags],
5494 - [AC_HELP_STRING([--with-tags@<:@=TAGS@:>@],
5495 - [include additional configurations @<:@automatic@:>@])],
5496 - [tagnames="$withval"])
5498 -if test -f "$ltmain" && test -n "$tagnames"; then
5499 - if test ! -f "${ofile}"; then
5500 - AC_MSG_WARN([output file `$ofile' does not exist])
5502 + _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
5504 + if test "$host_cpu" = ia64; then
5505 + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib'
5506 + _LT_AC_TAGVAR(allow_undefined_flag, $1)="-z nodefs"
5507 + _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
5509 + # Determine the default libpath from the value encoded in an empty executable.
5510 + _LT_AC_SYS_LIBPATH_AIX
5511 + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
5512 + # Warning - without using the other run time loading flags,
5513 + # -berok will link without error, but may produce a broken library.
5514 + _LT_AC_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok'
5515 + _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok'
5516 + # Exported symbols can be pulled into shared objects from archives
5517 + _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='$convenience'
5518 + _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes
5519 + # This is similar to how AIX traditionally builds its shared libraries.
5520 + _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
5525 - if test -z "$LTCC"; then
5526 - eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
5527 - if test -z "$LTCC"; then
5528 - AC_MSG_WARN([output file `$ofile' does not look like a libtool script])
5530 + if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
5531 + _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
5532 + # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
5533 + # support --undefined. This deserves some investigation. FIXME
5534 + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5536 - AC_MSG_WARN([using `LTCC=$LTCC', extracted from `$ofile'])
5537 + _LT_AC_TAGVAR(ld_shlibs, $1)=no
5541 - # Extract list of available tagged configurations in $ofile.
5542 - # Note that this assumes the entire list is on one line.
5543 - available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
5546 - lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
5547 - for tagname in $tagnames; do
5548 - IFS="$lt_save_ifs"
5549 - # Check whether tagname contains only valid characters
5550 - case `$echo "X$tagname" | $Xsed -e 's:[[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]]::g'` in
5552 - *) AC_MSG_ERROR([invalid tag name: $tagname])
5554 + case $cc_basename in
5556 + # FIXME: insert proper C++ library support
5557 + _LT_AC_TAGVAR(ld_shlibs, $1)=no
5562 - if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
5564 - AC_MSG_ERROR([tag name \"$tagname\" already exists])
5565 + cygwin* | mingw* | pw32*)
5566 + # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless,
5567 + # as there is no search path for DLLs.
5568 + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
5569 + _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
5570 + _LT_AC_TAGVAR(always_export_symbols, $1)=no
5571 + _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
5573 + if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
5574 + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
5575 + # If the export-symbols file already is a .def file (1st line
5576 + # is EXPORTS), use it as is; otherwise, prepend...
5577 + _LT_AC_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
5578 + cp $export_symbols $output_objdir/$soname.def;
5580 + echo EXPORTS > $output_objdir/$soname.def;
5581 + cat $export_symbols >> $output_objdir/$soname.def;
5583 + $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
5585 + _LT_AC_TAGVAR(ld_shlibs, $1)=no
5588 + darwin* | rhapsody*)
5590 + rhapsody* | darwin1.[[012]])
5591 + _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-undefined ${wl}suppress'
5593 + *) # Darwin 1.3 on
5594 + if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
5595 + _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
5597 + case ${MACOSX_DEPLOYMENT_TARGET} in
5599 + _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
5602 + _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-undefined ${wl}dynamic_lookup'
5608 + _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
5609 + _LT_AC_TAGVAR(hardcode_direct, $1)=no
5610 + _LT_AC_TAGVAR(hardcode_automatic, $1)=yes
5611 + _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
5612 + _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=''
5613 + _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
5615 - # Update the list of available tags.
5616 - if test -n "$tagname"; then
5617 - echo appending configuration tag \"$tagname\" to $ofile
5618 + if test "$GXX" = yes ; then
5619 + lt_int_apple_cc_single_mod=no
5620 + output_verbose_link_cmd='echo'
5621 + if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
5622 + lt_int_apple_cc_single_mod=yes
5624 + if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
5625 + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
5627 + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
5629 + _LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
5630 + # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
5631 + if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
5632 + _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}'
5634 + _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
5636 + _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}'
5638 + case $cc_basename in
5640 + output_verbose_link_cmd='echo'
5641 + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
5642 + _LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
5643 + # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
5644 + _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
5645 + _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}'
5648 + _LT_AC_TAGVAR(ld_shlibs, $1)=no
5656 - if test -n "$CXX" && test "X$CXX" != "Xno"; then
5657 - AC_LIBTOOL_LANG_CXX_CONFIG
5662 + case $cc_basename in
5664 + # FIXME: insert proper C++ library support
5665 + _LT_AC_TAGVAR(ld_shlibs, $1)=no
5669 - if test -n "$F77" && test "X$F77" != "Xno"; then
5670 - AC_LIBTOOL_LANG_F77_CONFIG
5675 + # Green Hills C++ Compiler
5676 + # FIXME: insert proper C++ library support
5677 + _LT_AC_TAGVAR(ld_shlibs, $1)=no
5681 - if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
5682 - AC_LIBTOOL_LANG_GCJ_CONFIG
5687 + # FIXME: insert proper C++ library support
5688 + _LT_AC_TAGVAR(ld_shlibs, $1)=no
5693 + # C++ shared libraries reported to be fairly broken before switch to ELF
5694 + _LT_AC_TAGVAR(ld_shlibs, $1)=no
5697 + _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
5699 + freebsd* | dragonfly*)
5700 + # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
5702 + _LT_AC_TAGVAR(ld_shlibs, $1)=yes
5707 + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
5708 + _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
5709 + _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
5710 + _LT_AC_TAGVAR(hardcode_direct, $1)=yes
5711 + _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH,
5712 + # but as the default
5713 + # location of the library.
5716 - AC_LIBTOOL_LANG_RC_CONFIG
5718 + case $cc_basename in
5720 + # FIXME: insert proper C++ library support
5721 + _LT_AC_TAGVAR(ld_shlibs, $1)=no
5724 + _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'
5725 + # Commands to make compiler produce verbose output that lists
5726 + # what "hidden" libraries, object files and flags are used when
5727 + # linking a shared library.
5729 + # There doesn't appear to be a way to prevent this compiler from
5730 + # explicitly linking system object files so we need to strip them
5731 + # from the output so that they don't get included in the library
5733 + 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'
5736 + if test "$GXX" = yes; then
5737 + _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'
5739 + # FIXME: insert proper C++ library support
5740 + _LT_AC_TAGVAR(ld_shlibs, $1)=no
5746 + if test $with_gnu_ld = no; then
5747 + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
5748 + _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
5752 + _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='+b $libdir'
5755 - AC_MSG_ERROR([Unsupported tag name: $tagname])
5757 + _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
5761 - # Append the new tag name to the list of available tags.
5762 - if test -n "$tagname" ; then
5763 - available_tags="$available_tags $tagname"
5767 - IFS="$lt_save_ifs"
5769 - # Now substitute the updated list of available tags.
5770 - if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
5771 - mv "${ofile}T" "$ofile"
5775 - AC_MSG_ERROR([unable to update list of available tagged configurations.])
5778 -])# _LT_AC_TAGCONFIG
5781 -# AC_LIBTOOL_DLOPEN
5782 -# -----------------
5783 -# enable checks for dlopen support
5784 -AC_DEFUN([AC_LIBTOOL_DLOPEN],
5785 - [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])
5786 -])# AC_LIBTOOL_DLOPEN
5789 -# AC_LIBTOOL_WIN32_DLL
5790 -# --------------------
5791 -# declare package support for building win32 dll's
5792 -AC_DEFUN([AC_LIBTOOL_WIN32_DLL],
5793 -[AC_BEFORE([$0], [AC_LIBTOOL_SETUP])
5794 -])# AC_LIBTOOL_WIN32_DLL
5797 + _LT_AC_TAGVAR(hardcode_direct, $1)=no
5798 + _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
5801 + _LT_AC_TAGVAR(hardcode_direct, $1)=yes
5802 + _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH,
5803 + # but as the default
5804 + # location of the library.
5808 + case $cc_basename in
5810 + # FIXME: insert proper C++ library support
5811 + _LT_AC_TAGVAR(ld_shlibs, $1)=no
5816 + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
5819 + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
5822 + _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'
5825 + # Commands to make compiler produce verbose output that lists
5826 + # what "hidden" libraries, object files and flags are used when
5827 + # linking a shared library.
5829 + # There doesn't appear to be a way to prevent this compiler from
5830 + # explicitly linking system object files so we need to strip them
5831 + # from the output so that they don't get included in the library
5833 + 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'
5836 + if test "$GXX" = yes; then
5837 + if test $with_gnu_ld = no; then
5840 + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
5843 + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
5846 + _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'
5851 + # FIXME: insert proper C++ library support
5852 + _LT_AC_TAGVAR(ld_shlibs, $1)=no
5858 + _LT_AC_TAGVAR(hardcode_direct, $1)=no
5859 + _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
5860 + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
5861 + _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
5862 + # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
5863 + # Instead, shared libraries are loaded at an image base (0x10000000 by
5864 + # default) and relocated if they conflict, which is a slow very memory
5865 + # consuming and fragmenting process. To avoid this, we pick a random,
5866 + # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
5867 + # time. Moving up from 0x10000000 also allows more sbrk(2) space.
5868 + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
5869 + _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
5872 + case $cc_basename in
5875 + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
5877 -# AC_ENABLE_SHARED([DEFAULT])
5878 -# ---------------------------
5879 -# implement the --enable-shared flag
5880 -# DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'.
5881 -AC_DEFUN([AC_ENABLE_SHARED],
5882 -[define([AC_ENABLE_SHARED_DEFAULT], ifelse($1, no, no, yes))dnl
5883 -AC_ARG_ENABLE([shared],
5884 - [AC_HELP_STRING([--enable-shared@<:@=PKGS@:>@],
5885 - [build shared libraries @<:@default=]AC_ENABLE_SHARED_DEFAULT[@:>@])],
5886 - [p=${PACKAGE-default}
5887 - case $enableval in
5888 - yes) enable_shared=yes ;;
5889 - no) enable_shared=no ;;
5892 - # Look at the argument we got. We use all the common list separators.
5893 - lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
5894 - for pkg in $enableval; do
5895 - IFS="$lt_save_ifs"
5896 - if test "X$pkg" = "X$p"; then
5898 + # Archives containing C++ object files must be created using
5899 + # "CC -ar", where "CC" is the IRIX C++ compiler. This is
5900 + # necessary to make sure instantiated templates are included
5902 + _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -ar -WR,-u -o $oldlib $oldobjs'
5905 + if test "$GXX" = yes; then
5906 + if test "$with_gnu_ld" = no; then
5907 + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
5909 + _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'
5913 - IFS="$lt_save_ifs"
5916 - [enable_shared=]AC_ENABLE_SHARED_DEFAULT)
5917 -])# AC_ENABLE_SHARED
5918 + _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
5921 + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
5922 + _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
5924 + linux* | k*bsd*-gnu)
5925 + case $cc_basename in
5927 + # Kuck and Associates, Inc. (KAI) C++ Compiler
5929 + # KCC will only create a shared library if the output file
5930 + # ends with ".so" (or ".sl" for HP-UX), so rename the library
5931 + # to its proper name (with version) after linking.
5932 + _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'
5933 + _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'
5934 + # Commands to make compiler produce verbose output that lists
5935 + # what "hidden" libraries, object files and flags are used when
5936 + # linking a shared library.
5938 + # There doesn't appear to be a way to prevent this compiler from
5939 + # explicitly linking system object files so we need to strip them
5940 + # from the output so that they don't get included in the library
5942 + 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'
5944 -# AC_DISABLE_SHARED
5945 -# -----------------
5946 -#- set the default shared flag to --disable-shared
5947 -AC_DEFUN([AC_DISABLE_SHARED],
5948 -[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
5949 -AC_ENABLE_SHARED(no)
5950 -])# AC_DISABLE_SHARED
5951 + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath,$libdir'
5952 + _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
5954 + # Archives containing C++ object files must be created using
5955 + # "CC -Bstatic", where "CC" is the KAI C++ compiler.
5956 + _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs'
5961 + # version 8.0 and above of icpc choke on multiply defined symbols
5962 + # if we add $predep_objects and $postdep_objects, however 7.1 and
5963 + # earlier do not add the objects themselves.
5964 + case `$CC -V 2>&1` in
5966 + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
5967 + _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'
5969 + *) # Version 8.0 or newer
5972 + ia64*) tmp_idyn=' -i_dynamic';;
5974 + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5975 + _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
5978 + _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
5979 + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
5980 + _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
5981 + _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
5984 + # Portland Group C++ compiler
5985 + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
5986 + _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
5988 -# AC_ENABLE_STATIC([DEFAULT])
5989 -# ---------------------------
5990 -# implement the --enable-static flag
5991 -# DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'.
5992 -AC_DEFUN([AC_ENABLE_STATIC],
5993 -[define([AC_ENABLE_STATIC_DEFAULT], ifelse($1, no, no, yes))dnl
5994 -AC_ARG_ENABLE([static],
5995 - [AC_HELP_STRING([--enable-static@<:@=PKGS@:>@],
5996 - [build static libraries @<:@default=]AC_ENABLE_STATIC_DEFAULT[@:>@])],
5997 - [p=${PACKAGE-default}
5998 - case $enableval in
5999 - yes) enable_static=yes ;;
6000 - no) enable_static=no ;;
6003 - # Look at the argument we got. We use all the common list separators.
6004 - lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6005 - for pkg in $enableval; do
6006 - IFS="$lt_save_ifs"
6007 - if test "X$pkg" = "X$p"; then
6011 - IFS="$lt_save_ifs"
6014 - [enable_static=]AC_ENABLE_STATIC_DEFAULT)
6015 -])# AC_ENABLE_STATIC
6016 + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir'
6017 + _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
6018 + _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
6022 + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
6023 + _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'
6025 + runpath_var=LD_RUN_PATH
6026 + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
6027 + _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
6029 -# AC_DISABLE_STATIC
6030 -# -----------------
6031 -# set the default static flag to --disable-static
6032 -AC_DEFUN([AC_DISABLE_STATIC],
6033 -[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
6034 -AC_ENABLE_STATIC(no)
6035 -])# AC_DISABLE_STATIC
6036 + # Commands to make compiler produce verbose output that lists
6037 + # what "hidden" libraries, object files and flags are used when
6038 + # linking a shared library.
6040 + # There doesn't appear to be a way to prevent this compiler from
6041 + # explicitly linking system object files so we need to strip them
6042 + # from the output so that they don't get included in the library
6044 + 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'
6049 + # FIXME: insert proper C++ library support
6050 + _LT_AC_TAGVAR(ld_shlibs, $1)=no
6053 + # FIXME: insert proper C++ library support
6054 + _LT_AC_TAGVAR(ld_shlibs, $1)=no
6057 + case $cc_basename in
6059 + # FIXME: insert proper C++ library support
6060 + _LT_AC_TAGVAR(ld_shlibs, $1)=no
6063 + # FIXME: insert proper C++ library support
6064 + _LT_AC_TAGVAR(ld_shlibs, $1)=no
6068 + netbsd* | netbsdelf*-gnu)
6069 + if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6070 + _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
6072 + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
6073 + _LT_AC_TAGVAR(hardcode_direct, $1)=yes
6074 + _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
6076 + # Workaround some broken pre-1.5 toolchains
6077 + output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
6080 + # C++ shared libraries are fairly broken
6081 + _LT_AC_TAGVAR(ld_shlibs, $1)=no
6084 + _LT_AC_TAGVAR(hardcode_direct, $1)=yes
6085 + _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
6086 + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
6087 + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
6088 + if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6089 + _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
6090 + _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
6091 + _LT_AC_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
6093 + output_verbose_link_cmd='echo'
6096 + case $cc_basename in
6098 + # Kuck and Associates, Inc. (KAI) C++ Compiler
6100 + # KCC will only create a shared library if the output file
6101 + # ends with ".so" (or ".sl" for HP-UX), so rename the library
6102 + # to its proper name (with version) after linking.
6103 + _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'
6105 -# AC_ENABLE_FAST_INSTALL([DEFAULT])
6106 -# ---------------------------------
6107 -# implement the --enable-fast-install flag
6108 -# DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'.
6109 -AC_DEFUN([AC_ENABLE_FAST_INSTALL],
6110 -[define([AC_ENABLE_FAST_INSTALL_DEFAULT], ifelse($1, no, no, yes))dnl
6111 -AC_ARG_ENABLE([fast-install],
6112 - [AC_HELP_STRING([--enable-fast-install@<:@=PKGS@:>@],
6113 - [optimize for fast installation @<:@default=]AC_ENABLE_FAST_INSTALL_DEFAULT[@:>@])],
6114 - [p=${PACKAGE-default}
6115 - case $enableval in
6116 - yes) enable_fast_install=yes ;;
6117 - no) enable_fast_install=no ;;
6119 - enable_fast_install=no
6120 - # Look at the argument we got. We use all the common list separators.
6121 - lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6122 - for pkg in $enableval; do
6123 - IFS="$lt_save_ifs"
6124 - if test "X$pkg" = "X$p"; then
6125 - enable_fast_install=yes
6128 - IFS="$lt_save_ifs"
6131 - [enable_fast_install=]AC_ENABLE_FAST_INSTALL_DEFAULT)
6132 -])# AC_ENABLE_FAST_INSTALL
6133 + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
6134 + _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
6136 + # Archives containing C++ object files must be created using
6137 + # "CC -Bstatic", where "CC" is the KAI C++ compiler.
6138 + _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs'
6140 -# AC_DISABLE_FAST_INSTALL
6141 -# -----------------------
6142 -# set the default to --disable-fast-install
6143 -AC_DEFUN([AC_DISABLE_FAST_INSTALL],
6144 -[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
6145 -AC_ENABLE_FAST_INSTALL(no)
6146 -])# AC_DISABLE_FAST_INSTALL
6149 + # Rational C++ 2.4.1
6150 + # FIXME: insert proper C++ library support
6151 + _LT_AC_TAGVAR(ld_shlibs, $1)=no
6154 + _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
6155 + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && echo ${wl}-set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
6157 + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
6158 + _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
6160 -# AC_LIBTOOL_PICMODE([MODE])
6161 -# --------------------------
6162 -# implement the --with-pic flag
6163 -# MODE is either `yes' or `no'. If omitted, it defaults to `both'.
6164 -AC_DEFUN([AC_LIBTOOL_PICMODE],
6165 -[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
6166 -pic_mode=ifelse($#,1,$1,default)
6167 -])# AC_LIBTOOL_PICMODE
6168 + # Commands to make compiler produce verbose output that lists
6169 + # what "hidden" libraries, object files and flags are used when
6170 + # linking a shared library.
6172 + # There doesn't appear to be a way to prevent this compiler from
6173 + # explicitly linking system object files so we need to strip them
6174 + # from the output so that they don't get included in the library
6176 + 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'
6179 + if test "$GXX" = yes && test "$with_gnu_ld" = no; then
6180 + _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
6181 + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
6183 + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
6184 + _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
6188 -# This is predefined starting with Autoconf 2.54, so this conditional
6189 -# definition can be removed once we require Autoconf 2.54 or later.
6190 -m4_ifndef([AC_PROG_EGREP], [AC_DEFUN([AC_PROG_EGREP],
6191 -[AC_CACHE_CHECK([for egrep], [ac_cv_prog_egrep],
6192 - [if echo a | (grep -E '(a|b)') >/dev/null 2>&1
6193 - then ac_cv_prog_egrep='grep -E'
6194 - else ac_cv_prog_egrep='egrep'
6196 - EGREP=$ac_cv_prog_egrep
6199 + # Commands to make compiler produce verbose output that lists
6200 + # what "hidden" libraries, object files and flags are used when
6201 + # linking a shared library.
6202 + output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
6205 + # FIXME: insert proper C++ library support
6206 + _LT_AC_TAGVAR(ld_shlibs, $1)=no
6212 + case $cc_basename in
6214 + # Kuck and Associates, Inc. (KAI) C++ Compiler
6216 -# AC_PATH_TOOL_PREFIX
6217 -# -------------------
6218 -# find a file program which can recognise shared library
6219 -AC_DEFUN([AC_PATH_TOOL_PREFIX],
6220 -[AC_REQUIRE([AC_PROG_EGREP])dnl
6221 -AC_MSG_CHECKING([for $1])
6222 -AC_CACHE_VAL(lt_cv_path_MAGIC_CMD,
6223 -[case $MAGIC_CMD in
6224 -[[\\/*] | ?:[\\/]*])
6225 - lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6228 - lt_save_MAGIC_CMD="$MAGIC_CMD"
6229 - lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6230 -dnl $ac_dummy forces splitting on constant user-supplied paths.
6231 -dnl POSIX.2 word splitting is done only on the output of word expansions,
6232 -dnl not every word. This closes a longstanding sh security hole.
6233 - ac_dummy="ifelse([$2], , $PATH, [$2])"
6234 - for ac_dir in $ac_dummy; do
6235 - IFS="$lt_save_ifs"
6236 - test -z "$ac_dir" && ac_dir=.
6237 - if test -f $ac_dir/$1; then
6238 - lt_cv_path_MAGIC_CMD="$ac_dir/$1"
6239 - if test -n "$file_magic_test_file"; then
6240 - case $deplibs_check_method in
6242 - file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
6243 - MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6244 - if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6245 - $EGREP "$file_magic_regex" > /dev/null; then
6249 + # KCC will only create a shared library if the output file
6250 + # ends with ".so" (or ".sl" for HP-UX), so rename the library
6251 + # to its proper name (with version) after linking.
6252 + _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'
6254 -*** Warning: the command libtool uses to detect shared libraries,
6255 -*** $file_magic_cmd, produces output that libtool cannot recognize.
6256 -*** The result is that libtool may fail to recognize shared libraries
6257 -*** as such. This will affect the creation of libtool libraries that
6258 -*** depend on shared libraries, but programs linked with such libtool
6259 -*** libraries will work regardless of this problem. Nevertheless, you
6260 -*** may want to report the problem to your system manager and/or to
6261 -*** bug-libtool@gnu.org
6262 + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
6263 + _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
6272 - IFS="$lt_save_ifs"
6273 - MAGIC_CMD="$lt_save_MAGIC_CMD"
6276 -MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6277 -if test -n "$MAGIC_CMD"; then
6278 - AC_MSG_RESULT($MAGIC_CMD)
6282 -])# AC_PATH_TOOL_PREFIX
6283 + # Archives containing C++ object files must be created using
6284 + # the KAI C++ compiler.
6285 + _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -o $oldlib $oldobjs'
6288 + # Rational C++ 2.4.1
6289 + # FIXME: insert proper C++ library support
6290 + _LT_AC_TAGVAR(ld_shlibs, $1)=no
6293 + _LT_AC_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
6294 + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
6295 + _LT_AC_TAGVAR(archive_expsym_cmds, $1)='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
6296 + echo "-hidden">> $lib.exp~
6297 + $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname -Wl,-input -Wl,$lib.exp `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~
6300 + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
6301 + _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
6305 -# find a file program which can recognise a shared library
6306 -AC_DEFUN([AC_PATH_MAGIC],
6307 -[AC_PATH_TOOL_PREFIX(${ac_tool_prefix}file, /usr/bin$PATH_SEPARATOR$PATH)
6308 -if test -z "$lt_cv_path_MAGIC_CMD"; then
6309 - if test -n "$ac_tool_prefix"; then
6310 - AC_PATH_TOOL_PREFIX(file, /usr/bin$PATH_SEPARATOR$PATH)
6316 + # Commands to make compiler produce verbose output that lists
6317 + # what "hidden" libraries, object files and flags are used when
6318 + # linking a shared library.
6320 + # There doesn't appear to be a way to prevent this compiler from
6321 + # explicitly linking system object files so we need to strip them
6322 + # from the output so that they don't get included in the library
6324 + 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'
6327 + if test "$GXX" = yes && test "$with_gnu_ld" = no; then
6328 + _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
6329 + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
6331 + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
6332 + _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
6336 -# find the pathname to the GNU or non-GNU linker
6337 -AC_DEFUN([AC_PROG_LD],
6338 -[AC_ARG_WITH([gnu-ld],
6339 - [AC_HELP_STRING([--with-gnu-ld],
6340 - [assume the C compiler uses GNU ld @<:@default=no@:>@])],
6341 - [test "$withval" = no || with_gnu_ld=yes],
6343 -AC_REQUIRE([LT_AC_PROG_SED])dnl
6344 -AC_REQUIRE([AC_PROG_CC])dnl
6345 -AC_REQUIRE([AC_CANONICAL_HOST])dnl
6346 -AC_REQUIRE([AC_CANONICAL_BUILD])dnl
6348 -if test "$GCC" = yes; then
6349 - # Check if gcc -print-prog-name=ld gives a path.
6350 - AC_MSG_CHECKING([for ld used by $CC])
6353 - # gcc leaves a trailing carriage return which upsets mingw
6354 - ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
6356 - ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
6359 - # Accept absolute paths.
6360 - [[\\/]]* | ?:[[\\/]]*)
6361 - re_direlt='/[[^/]][[^/]]*/\.\./'
6362 - # Canonicalize the pathname of ld
6363 - ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
6364 - while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
6365 - ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
6367 - test -z "$LD" && LD="$ac_prog"
6370 - # If it fails, then pretend we aren't using GCC.
6372 + # Commands to make compiler produce verbose output that lists
6373 + # what "hidden" libraries, object files and flags are used when
6374 + # linking a shared library.
6375 + output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
6378 + # FIXME: insert proper C++ library support
6379 + _LT_AC_TAGVAR(ld_shlibs, $1)=no
6385 - # If it is relative, then search for the first ld in PATH.
6386 - with_gnu_ld=unknown
6388 + # FIXME: insert proper C++ library support
6389 + _LT_AC_TAGVAR(ld_shlibs, $1)=no
6392 -elif test "$with_gnu_ld" = yes; then
6393 - AC_MSG_CHECKING([for GNU ld])
6395 - AC_MSG_CHECKING([for non-GNU ld])
6397 -AC_CACHE_VAL(lt_cv_path_LD,
6398 -[if test -z "$LD"; then
6399 - lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6400 - for ac_dir in $PATH; do
6401 - IFS="$lt_save_ifs"
6402 - test -z "$ac_dir" && ac_dir=.
6403 - if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
6404 - lt_cv_path_LD="$ac_dir/$ac_prog"
6405 - # Check to see if the program is GNU ld. I'd rather use --version,
6406 - # but apparently some GNU ld's only accept -v.
6407 - # Break only if it was the GNU/non-GNU ld that we prefer.
6408 - case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
6409 - *GNU* | *'with BFD'*)
6410 - test "$with_gnu_ld" != no && break
6413 - test "$with_gnu_ld" != yes && break
6418 - IFS="$lt_save_ifs"
6420 - lt_cv_path_LD="$LD" # Let the user override the test with a path.
6422 -LD="$lt_cv_path_LD"
6423 -if test -n "$LD"; then
6424 - AC_MSG_RESULT($LD)
6428 -test -z "$LD" && AC_MSG_ERROR([no acceptable ld found in \$PATH])
6435 -AC_DEFUN([AC_PROG_LD_GNU],
6436 -[AC_REQUIRE([AC_PROG_EGREP])dnl
6437 -AC_CACHE_CHECK([if the linker ($LD) is GNU ld], lt_cv_prog_gnu_ld,
6438 -[# I'd rather use --version here, but apparently some GNU ld's only accept -v.
6439 -case `$LD -v 2>&1 </dev/null` in
6440 -*GNU* | *'with BFD'*)
6441 - lt_cv_prog_gnu_ld=yes
6444 - lt_cv_prog_gnu_ld=no
6447 -with_gnu_ld=$lt_cv_prog_gnu_ld
6451 -# AC_PROG_LD_RELOAD_FLAG
6452 -# ----------------------
6453 -# find reload flag for linker
6454 -# -- PORTME Some linkers may need a different reload flag.
6455 -AC_DEFUN([AC_PROG_LD_RELOAD_FLAG],
6456 -[AC_CACHE_CHECK([for $LD option to reload object files],
6457 - lt_cv_ld_reload_flag,
6458 - [lt_cv_ld_reload_flag='-r'])
6459 -reload_flag=$lt_cv_ld_reload_flag
6460 -case $reload_flag in
6462 -*) reload_flag=" $reload_flag" ;;
6464 -reload_cmds='$LD$reload_flag -o $output$reload_objs'
6465 -])# AC_PROG_LD_RELOAD_FLAG
6468 -# AC_DEPLIBS_CHECK_METHOD
6469 -# -----------------------
6470 -# how to check for library dependencies
6471 -# -- PORTME fill in with the dynamic library characteristics
6472 -AC_DEFUN([AC_DEPLIBS_CHECK_METHOD],
6473 -[AC_CACHE_CHECK([how to recognise dependent libraries],
6474 -lt_cv_deplibs_check_method,
6475 -[lt_cv_file_magic_cmd='$MAGIC_CMD'
6476 -lt_cv_file_magic_test_file=
6477 -lt_cv_deplibs_check_method='unknown'
6478 -# Need to set the preceding variable on all platforms that support
6479 -# interlibrary dependencies.
6480 -# 'none' -- dependencies not supported.
6481 -# `unknown' -- same as none, but documents that we really don't know.
6482 -# 'pass_all' -- all dependencies passed with no checks.
6483 -# 'test_compile' -- check by making test program.
6484 -# 'file_magic [[regex]]' -- check by looking for files in library path
6485 -# which responds to the $file_magic_cmd with a given extended regex.
6486 -# If you have `file' or equivalent on your system and you're not sure
6487 -# whether `pass_all' will *always* work, you probably want this one.
6489 + case $cc_basename in
6492 + # FIXME: insert proper C++ library support
6493 + _LT_AC_TAGVAR(ld_shlibs, $1)=no
6497 + # FIXME: insert proper C++ library support
6498 + _LT_AC_TAGVAR(ld_shlibs, $1)=no
6501 + # FIXME: insert proper C++ library support
6502 + _LT_AC_TAGVAR(ld_shlibs, $1)=no
6507 + case $cc_basename in
6509 + # Sun C++ 4.2, 5.x and Centerline C++
6510 + _LT_AC_TAGVAR(archive_cmds_need_lc,$1)=yes
6511 + _LT_AC_TAGVAR(no_undefined_flag, $1)=' -zdefs'
6512 + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
6513 + _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
6514 + $CC -G${allow_undefined_flag} ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
6518 - lt_cv_deplibs_check_method=pass_all
6520 + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
6521 + _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
6523 + solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
6525 + # The C++ compiler is used as linker so we must use $wl
6526 + # flag to pass the commands to the underlying system
6527 + # linker. We must also pass each convience library through
6528 + # to the system linker between allextract/defaultextract.
6529 + # The C++ compiler will combine linker options so we
6530 + # cannot just pass the convience library names through
6532 + # Supported since Solaris 2.6 (maybe 2.5.1?)
6533 + _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract'
6536 + _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
6539 - lt_cv_deplibs_check_method=pass_all
6541 + output_verbose_link_cmd='echo'
6544 - lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (shared object|dynamic lib)'
6545 - lt_cv_file_magic_cmd='/usr/bin/file -L'
6546 - lt_cv_file_magic_test_file=/shlib/libc.so
6548 + # Archives containing C++ object files must be created using
6549 + # "CC -xar", where "CC" is the Sun C++ compiler. This is
6550 + # necessary to make sure instantiated templates are included
6552 + _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs'
6555 + # Green Hills C++ Compiler
6556 + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
6559 - # func_win32_libid is a shell function defined in ltmain.sh
6560 - lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6561 - lt_cv_file_magic_cmd='func_win32_libid'
6563 + # The C++ compiler must be used to create the archive.
6564 + _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
6567 + # GNU C++ compiler with Solaris linker
6568 + if test "$GXX" = yes && test "$with_gnu_ld" = no; then
6569 + _LT_AC_TAGVAR(no_undefined_flag, $1)=' ${wl}-z ${wl}defs'
6570 + if $CC --version | grep -v '^2\.7' > /dev/null; then
6571 + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
6572 + _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
6573 + $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
6576 - # Base MSYS/MinGW do not provide the 'file' command needed by
6577 - # func_win32_libid shell function, so use a weaker test based on 'objdump'.
6578 - lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
6579 - lt_cv_file_magic_cmd='$OBJDUMP -f'
6581 + # Commands to make compiler produce verbose output that lists
6582 + # what "hidden" libraries, object files and flags are used when
6583 + # linking a shared library.
6584 + output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
6586 + # g++ 2.7 appears to require `-G' NOT `-shared' on this
6588 + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
6589 + _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
6590 + $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
6592 -darwin* | rhapsody*)
6593 - lt_cv_deplibs_check_method=pass_all
6595 + # Commands to make compiler produce verbose output that lists
6596 + # what "hidden" libraries, object files and flags are used when
6597 + # linking a shared library.
6598 + output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
6601 -freebsd* | kfreebsd*-gnu)
6602 - if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
6605 - # Not sure whether the presence of OpenBSD here was a mistake.
6606 - # Let's accept both of them until this is cleared up.
6607 - lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[[3-9]]86 (compact )?demand paged shared library'
6608 - lt_cv_file_magic_cmd=/usr/bin/file
6609 - lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6611 + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $wl$libdir'
6616 - lt_cv_deplibs_check_method=pass_all
6620 + sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7* | sco3.2v5.0.[[024]]*)
6621 + _LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
6622 + _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
6623 + _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
6624 + runpath_var='LD_RUN_PATH'
6627 - lt_cv_deplibs_check_method=pass_all
6629 + case $cc_basename in
6631 + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
6632 + _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
6635 + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
6636 + _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
6640 + sysv5* | sco3.2v5* | sco5v6*)
6641 + # Note: We can NOT use -z defs as we might desire, because we do not
6642 + # link with -lc, and that would cause any symbols used from libc to
6643 + # always be unresolved, which means just about no library would
6644 + # ever link correctly. If we're not using GNU ld we use -z text
6645 + # though, which does catch some bad symbols but isn't as heavy-handed
6647 + # For security reasons, it is highly recommended that you always
6648 + # use absolute paths for naming shared libraries, and exclude the
6649 + # DT_RUNPATH tag from executables and libraries. But doing so
6650 + # requires that you compile everything twice, which is a pain.
6651 + # So that behaviour is only enabled if SCOABSPATH is set to a
6652 + # non-empty value in the environment. Most likely only useful for
6653 + # creating official distributions of packages.
6654 + # This is a hack until libtool officially supports absolute path
6655 + # names for shared libraries.
6656 + _LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
6657 + _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-z,nodefs'
6658 + _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
6659 + _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
6660 + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
6661 + _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=':'
6662 + _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
6663 + _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport'
6664 + runpath_var='LD_RUN_PATH'
6666 -hpux10.20* | hpux11*)
6667 - lt_cv_file_magic_cmd=/usr/bin/file
6668 - case "$host_cpu" in
6670 - lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|ELF-[[0-9]][[0-9]]) shared object file - IA64'
6671 - lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6672 + case $cc_basename in
6674 + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
6675 + _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
6678 + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
6679 + _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
6684 - [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]']
6685 - lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6687 + case $cc_basename in
6689 + # NonStop-UX NCC 3.20
6690 + # FIXME: insert proper C++ library support
6691 + _LT_AC_TAGVAR(ld_shlibs, $1)=no
6694 + # FIXME: insert proper C++ library support
6695 + _LT_AC_TAGVAR(ld_shlibs, $1)=no
6700 + # FIXME: insert proper C++ library support
6701 + _LT_AC_TAGVAR(ld_shlibs, $1)=no
6704 - lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|PA-RISC[[0-9]].[[0-9]]) shared library'
6705 - lt_cv_file_magic_test_file=/usr/lib/libc.sl
6706 + # FIXME: insert proper C++ library support
6707 + _LT_AC_TAGVAR(ld_shlibs, $1)=no
6712 +AC_MSG_RESULT([$_LT_AC_TAGVAR(ld_shlibs, $1)])
6713 +test "$_LT_AC_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no
6715 -irix5* | irix6* | nonstopux*)
6717 - *-32|*"-32 ") libmagic=32-bit;;
6718 - *-n32|*"-n32 ") libmagic=N32;;
6719 - *-64|*"-64 ") libmagic=64-bit;;
6720 - *) libmagic=never-match;;
6722 - lt_cv_deplibs_check_method=pass_all
6724 +_LT_AC_TAGVAR(GCC, $1)="$GXX"
6725 +_LT_AC_TAGVAR(LD, $1)="$LD"
6727 -# This must be Linux ELF.
6729 - lt_cv_deplibs_check_method=pass_all
6731 +AC_LIBTOOL_POSTDEP_PREDEP($1)
6732 +AC_LIBTOOL_PROG_COMPILER_PIC($1)
6733 +AC_LIBTOOL_PROG_CC_C_O($1)
6734 +AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1)
6735 +AC_LIBTOOL_PROG_LD_SHLIBS($1)
6736 +AC_LIBTOOL_SYS_DYNAMIC_LINKER($1)
6737 +AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1)
6739 -netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
6740 - if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
6741 - lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$'
6743 - lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so|_pic\.a)$'
6746 +AC_LIBTOOL_CONFIG($1)
6749 - lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (executable|dynamic lib)'
6750 - lt_cv_file_magic_cmd=/usr/bin/file
6751 - lt_cv_file_magic_test_file=/usr/lib/libnls.so
6758 +with_gnu_ldcxx=$with_gnu_ld
6759 +with_gnu_ld=$lt_save_with_gnu_ld
6760 +lt_cv_path_LDCXX=$lt_cv_path_LD
6761 +lt_cv_path_LD=$lt_save_path_LD
6762 +lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
6763 +lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
6764 +])# AC_LIBTOOL_LANG_CXX_CONFIG
6767 - lt_cv_deplibs_check_method=unknown
6769 +# AC_LIBTOOL_POSTDEP_PREDEP([TAGNAME])
6770 +# ------------------------------------
6771 +# Figure out "hidden" library dependencies from verbose
6772 +# compiler output when linking a shared library.
6773 +# Parse the compiler output and extract the necessary
6774 +# objects, libraries and library flags.
6775 +AC_DEFUN([AC_LIBTOOL_POSTDEP_PREDEP],[
6776 +dnl we can't use the lt_simple_compile_test_code here,
6777 +dnl because it contains code intended for an executable,
6778 +dnl not a library. It's possible we should let each
6779 +dnl tag define a new lt_????_link_test_code variable,
6780 +dnl but it's only used here...
6781 +ifelse([$1],[],[cat > conftest.$ac_ext <<EOF
6783 +void foo (void) { a = 0; }
6785 +],[$1],[CXX],[cat > conftest.$ac_ext <<EOF
6789 + Foo (void) { a = 0; }
6794 +],[$1],[F77],[cat > conftest.$ac_ext <<EOF
6802 +],[$1],[GCJ],[cat > conftest.$ac_ext <<EOF
6805 + public void bar (void) {
6811 +dnl Parse the compiler output and extract the necessary
6812 +dnl objects, libraries and library flags.
6813 +if AC_TRY_EVAL(ac_compile); then
6814 + # Parse the compiler output and extract the necessary
6815 + # objects, libraries and library flags.
6818 - lt_cv_file_magic_cmd=/usr/bin/file
6819 - lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6820 - if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6821 - lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB shared object'
6823 - lt_cv_deplibs_check_method='file_magic OpenBSD.* shared library'
6826 + # Sentinel used to keep track of whether or not we are before
6827 + # the conftest object file.
6828 + pre_test_object_deps_done=no
6830 -osf3* | osf4* | osf5*)
6831 - lt_cv_deplibs_check_method=pass_all
6833 + # The `*' in the case matches for architectures that use `case' in
6834 + # $output_verbose_cmd can trigger glob expansion during the loop
6835 + # eval without this substitution.
6836 + output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
6839 - lt_cv_deplibs_check_method=pass_all
6841 + for p in `eval $output_verbose_link_cmd`; do
6845 - lt_cv_deplibs_check_method=pass_all
6848 + # Some compilers place space between "-{L,R}" and the path.
6849 + # Remove the space.
6850 + if test $p = "-L" \
6851 + || test $p = "-R"; then
6858 -sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
6859 - case $host_vendor in
6861 - 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]]'
6862 - lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6865 - lt_cv_deplibs_check_method=pass_all
6868 - lt_cv_file_magic_cmd='/bin/file'
6869 - lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB (shared object|dynamic lib )'
6872 - lt_cv_file_magic_cmd='/bin/file'
6873 - lt_cv_deplibs_check_method="file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB dynamic lib"
6874 - lt_cv_file_magic_test_file=/lib/libc.so
6877 - lt_cv_deplibs_check_method=pass_all
6881 + if test "$pre_test_object_deps_done" = no; then
6884 + # Internal compiler library paths should come after those
6885 + # provided the user. The postdeps already come after the
6886 + # user supplied libs so there is no need to process them.
6887 + if test -z "$_LT_AC_TAGVAR(compiler_lib_search_path, $1)"; then
6888 + _LT_AC_TAGVAR(compiler_lib_search_path, $1)="${prev}${p}"
6890 + _LT_AC_TAGVAR(compiler_lib_search_path, $1)="${_LT_AC_TAGVAR(compiler_lib_search_path, $1)} ${prev}${p}"
6893 + # The "-l" case would never come before the object being
6894 + # linked, so don't bother handling this case.
6897 + if test -z "$_LT_AC_TAGVAR(postdeps, $1)"; then
6898 + _LT_AC_TAGVAR(postdeps, $1)="${prev}${p}"
6900 + _LT_AC_TAGVAR(postdeps, $1)="${_LT_AC_TAGVAR(postdeps, $1)} ${prev}${p}"
6905 -sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[[78]]* | unixware7* | sysv4*uw2*)
6906 - lt_cv_deplibs_check_method=pass_all
6910 -file_magic_cmd=$lt_cv_file_magic_cmd
6911 -deplibs_check_method=$lt_cv_deplibs_check_method
6912 -test -z "$deplibs_check_method" && deplibs_check_method=unknown
6913 -])# AC_DEPLIBS_CHECK_METHOD
6915 + # This assumes that the test object file only shows up
6916 + # once in the compiler output.
6917 + if test "$p" = "conftest.$objext"; then
6918 + pre_test_object_deps_done=yes
6922 + if test "$pre_test_object_deps_done" = no; then
6923 + if test -z "$_LT_AC_TAGVAR(predep_objects, $1)"; then
6924 + _LT_AC_TAGVAR(predep_objects, $1)="$p"
6926 + _LT_AC_TAGVAR(predep_objects, $1)="$_LT_AC_TAGVAR(predep_objects, $1) $p"
6929 + if test -z "$_LT_AC_TAGVAR(postdep_objects, $1)"; then
6930 + _LT_AC_TAGVAR(postdep_objects, $1)="$p"
6932 + _LT_AC_TAGVAR(postdep_objects, $1)="$_LT_AC_TAGVAR(postdep_objects, $1) $p"
6939 -# find the pathname to a BSD-compatible name lister
6940 -AC_DEFUN([AC_PROG_NM],
6941 -[AC_CACHE_CHECK([for BSD-compatible nm], lt_cv_path_NM,
6942 -[if test -n "$NM"; then
6943 - # Let the user override the test.
6944 - lt_cv_path_NM="$NM"
6946 - lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6947 - for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
6948 - IFS="$lt_save_ifs"
6949 - test -z "$ac_dir" && ac_dir=.
6950 - tmp_nm="$ac_dir/${ac_tool_prefix}nm"
6951 - if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6952 - # Check to see if the nm accepts a BSD-compat flag.
6953 - # Adding the `sed 1q' prevents false positives on HP-UX, which says:
6954 - # nm: unknown option "B" ignored
6955 - # Tru64's nm complains that /dev/null is an invalid object file
6956 - case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6957 - */dev/null* | *'Invalid file or object type'*)
6958 - lt_cv_path_NM="$tmp_nm -B"
6962 - case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6964 - lt_cv_path_NM="$tmp_nm -p"
6968 - lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6969 - continue # so that we can try to find one that supports BSD flags
6974 + *) ;; # Ignore the rest.
6978 - IFS="$lt_save_ifs"
6979 - test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
6981 -NM="$lt_cv_path_NM"
6987 + echo "libtool.m4: error: problem compiling $1 test program"
6992 -# check for math library
6993 -AC_DEFUN([AC_CHECK_LIBM],
6994 -[AC_REQUIRE([AC_CANONICAL_HOST])dnl
6997 -*-*-beos* | *-*-cygwin* | *-*-pw32* | *-*-darwin*)
6998 - # These system don't have libm, or don't need it
7001 - AC_CHECK_LIB(mw, _mwvalidcheckl, LIBM="-lmw")
7002 - AC_CHECK_LIB(m, cos, LIBM="$LIBM -lm")
7005 - AC_CHECK_LIB(m, cos, LIBM="-lm")
7009 +$rm -f confest.$objext
7011 +# PORTME: override above test on systems where it is broken
7015 + # Interix 3.5 installs completely hosed .la files for C++, so rather than
7016 + # hack all around it, let's just trust "g++" to DTRT.
7017 + _LT_AC_TAGVAR(predep_objects,$1)=
7018 + _LT_AC_TAGVAR(postdep_objects,$1)=
7019 + _LT_AC_TAGVAR(postdeps,$1)=
7022 -# AC_LIBLTDL_CONVENIENCE([DIRECTORY])
7023 -# -----------------------------------
7024 -# sets LIBLTDL to the link flags for the libltdl convenience library and
7025 -# LTDLINCL to the include flags for the libltdl header and adds
7026 -# --enable-ltdl-convenience to the configure arguments. Note that LIBLTDL
7027 -# and LTDLINCL are not AC_SUBSTed, nor is AC_CONFIG_SUBDIRS called. If
7028 -# DIRECTORY is not provided, it is assumed to be `libltdl'. LIBLTDL will
7029 -# be prefixed with '${top_builddir}/' and LTDLINCL will be prefixed with
7030 -# '${top_srcdir}/' (note the single quotes!). If your package is not
7031 -# flat and you're not using automake, define top_builddir and
7032 -# top_srcdir appropriately in the Makefiles.
7033 -AC_DEFUN([AC_LIBLTDL_CONVENIENCE],
7034 -[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
7035 - case $enable_ltdl_convenience in
7036 - no) AC_MSG_ERROR([this package needs a convenience libltdl]) ;;
7037 - "") enable_ltdl_convenience=yes
7038 - ac_configure_args="$ac_configure_args --enable-ltdl-convenience" ;;
7040 + case $cc_basename in
7042 + # Adding this requires a known-good setup of shared libraries for
7043 + # Sun compiler versions before 5.6, else PIC objects from an old
7044 + # archive will be linked into the output, leading to subtle bugs.
7045 + _LT_AC_TAGVAR(postdeps,$1)='-lCstd -lCrun'
7048 - LIBLTDL='${top_builddir}/'ifelse($#,1,[$1],['libltdl'])/libltdlc.la
7049 - LTDLINCL='-I${top_srcdir}/'ifelse($#,1,[$1],['libltdl'])
7050 - # For backwards non-gettext consistent compatibility...
7051 - INCLTDL="$LTDLINCL"
7052 -])# AC_LIBLTDL_CONVENIENCE
7057 +case " $_LT_AC_TAGVAR(postdeps, $1) " in
7058 +*" -lc "*) _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no ;;
7060 +])# AC_LIBTOOL_POSTDEP_PREDEP
7062 -# AC_LIBLTDL_INSTALLABLE([DIRECTORY])
7063 -# -----------------------------------
7064 -# sets LIBLTDL to the link flags for the libltdl installable library and
7065 -# LTDLINCL to the include flags for the libltdl header and adds
7066 -# --enable-ltdl-install to the configure arguments. Note that LIBLTDL
7067 -# and LTDLINCL are not AC_SUBSTed, nor is AC_CONFIG_SUBDIRS called. If
7068 -# DIRECTORY is not provided and an installed libltdl is not found, it is
7069 -# assumed to be `libltdl'. LIBLTDL will be prefixed with '${top_builddir}/'
7070 -# and LTDLINCL will be prefixed with '${top_srcdir}/' (note the single
7071 -# quotes!). If your package is not flat and you're not using automake,
7072 -# define top_builddir and top_srcdir appropriately in the Makefiles.
7073 -# In the future, this macro may have to be called after AC_PROG_LIBTOOL.
7074 -AC_DEFUN([AC_LIBLTDL_INSTALLABLE],
7075 -[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
7076 - AC_CHECK_LIB(ltdl, lt_dlinit,
7077 - [test x"$enable_ltdl_install" != xyes && enable_ltdl_install=no],
7078 - [if test x"$enable_ltdl_install" = xno; then
7079 - AC_MSG_WARN([libltdl not installed, but installation disabled])
7081 - enable_ltdl_install=yes
7084 - if test x"$enable_ltdl_install" = x"yes"; then
7085 - ac_configure_args="$ac_configure_args --enable-ltdl-install"
7086 - LIBLTDL='${top_builddir}/'ifelse($#,1,[$1],['libltdl'])/libltdl.la
7087 - LTDLINCL='-I${top_srcdir}/'ifelse($#,1,[$1],['libltdl'])
7089 - ac_configure_args="$ac_configure_args --enable-ltdl-install=no"
7093 - # For backwards non-gettext consistent compatibility...
7094 - INCLTDL="$LTDLINCL"
7095 -])# AC_LIBLTDL_INSTALLABLE
7100 -# enable support for C++ libraries
7101 -AC_DEFUN([AC_LIBTOOL_CXX],
7102 -[AC_REQUIRE([_LT_AC_LANG_CXX])
7108 -AC_DEFUN([_LT_AC_LANG_CXX],
7109 -[AC_REQUIRE([AC_PROG_CXX])
7110 -AC_REQUIRE([AC_PROG_CXXCPP])
7111 -_LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}CXX])
7112 -])# _LT_AC_LANG_CXX
7117 -# enable support for Fortran 77 libraries
7118 -AC_DEFUN([AC_LIBTOOL_F77],
7119 -[AC_REQUIRE([_LT_AC_LANG_F77])
7125 -AC_DEFUN([_LT_AC_LANG_F77],
7126 -[AC_REQUIRE([AC_PROG_F77])
7127 -_LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}F77])
7128 -])# _LT_AC_LANG_F77
7133 -# enable support for GCJ libraries
7134 -AC_DEFUN([AC_LIBTOOL_GCJ],
7135 -[AC_REQUIRE([_LT_AC_LANG_GCJ])
7141 -AC_DEFUN([_LT_AC_LANG_GCJ],
7142 -[AC_PROVIDE_IFELSE([AC_PROG_GCJ],[],
7143 - [AC_PROVIDE_IFELSE([A][M_PROG_GCJ],[],
7144 - [AC_PROVIDE_IFELSE([LT_AC_PROG_GCJ],[],
7145 - [ifdef([AC_PROG_GCJ],[AC_REQUIRE([AC_PROG_GCJ])],
7146 - [ifdef([A][M_PROG_GCJ],[AC_REQUIRE([A][M_PROG_GCJ])],
7147 - [AC_REQUIRE([A][C_PROG_GCJ_OR_A][M_PROG_GCJ])])])])])])
7148 -_LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}GCJ])
7149 -])# _LT_AC_LANG_GCJ
7154 -# enable support for Windows resource files
7155 -AC_DEFUN([AC_LIBTOOL_RC],
7156 -[AC_REQUIRE([LT_AC_PROG_RC])
7157 -_LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}RC])
7161 -# AC_LIBTOOL_LANG_C_CONFIG
7162 -# ------------------------
7163 +# AC_LIBTOOL_LANG_F77_CONFIG
7164 +# --------------------------
7165 # Ensure that the configuration vars for the C compiler are
7166 # suitably defined. Those variables are subsequently used by
7167 # AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
7168 -AC_DEFUN([AC_LIBTOOL_LANG_C_CONFIG], [_LT_AC_LANG_C_CONFIG])
7169 -AC_DEFUN([_LT_AC_LANG_C_CONFIG],
7172 +AC_DEFUN([AC_LIBTOOL_LANG_F77_CONFIG], [_LT_AC_LANG_F77_CONFIG(F77)])
7173 +AC_DEFUN([_LT_AC_LANG_F77_CONFIG],
7174 +[AC_REQUIRE([AC_PROG_F77])
7175 +AC_LANG_PUSH(Fortran 77)
7177 -# Source file extension for C test sources.
7179 +_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
7180 +_LT_AC_TAGVAR(allow_undefined_flag, $1)=
7181 +_LT_AC_TAGVAR(always_export_symbols, $1)=no
7182 +_LT_AC_TAGVAR(archive_expsym_cmds, $1)=
7183 +_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)=
7184 +_LT_AC_TAGVAR(hardcode_direct, $1)=no
7185 +_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=
7186 +_LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
7187 +_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
7188 +_LT_AC_TAGVAR(hardcode_minus_L, $1)=no
7189 +_LT_AC_TAGVAR(hardcode_automatic, $1)=no
7190 +_LT_AC_TAGVAR(module_cmds, $1)=
7191 +_LT_AC_TAGVAR(module_expsym_cmds, $1)=
7192 +_LT_AC_TAGVAR(link_all_deplibs, $1)=unknown
7193 +_LT_AC_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
7194 +_LT_AC_TAGVAR(no_undefined_flag, $1)=
7195 +_LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
7196 +_LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=no
7198 -# Object file extension for compiled C test sources.
7199 +# Source file extension for f77 test sources.
7202 +# Object file extension for compiled f77 test sources.
7204 _LT_AC_TAGVAR(objext, $1)=$objext
7206 # Code to be used in simple compile tests
7207 -lt_simple_compile_test_code="int some_variable = 0;\n"
7208 +lt_simple_compile_test_code=" subroutine t\n return\n end\n"
7210 # Code to be used in simple link tests
7211 -lt_simple_link_test_code='int main(){return(0);}\n'
7212 +lt_simple_link_test_code=" program t\n end\n"
7214 +# ltmain only uses $CC for tagged configurations so make sure $CC is set.
7218 -# Check for any special shared library compilation flags.
7220 -_LT_AC_TAGVAR(lt_prog_cc_shlib, $1)=
7221 -if test "$GCC" = no; then
7224 - _LT_AC_TAGVAR(lt_prog_cc_shlib, $1)='-belf'
7228 -if test -n "$_LT_AC_TAGVAR(lt_prog_cc_shlib, $1)"; then
7229 - AC_MSG_WARN([`$CC' requires `$_LT_AC_TAGVAR(lt_prog_cc_shlib, $1)' to build shared libraries])
7230 - if echo "$old_CC $old_CFLAGS " | grep "[[ ]]$_LT_AC_TAGVAR(lt_prog_cc_shlib, $1)[[ ]]" >/dev/null; then :
7232 - AC_MSG_WARN([add `$_LT_AC_TAGVAR(lt_prog_cc_shlib, $1)' to the CC or CFLAGS env variable and reconfigure])
7233 - _LT_AC_TAGVAR(lt_cv_prog_cc_can_build_shared, $1)=no
7239 -# Check to make sure the static flag actually works.
7241 -AC_LIBTOOL_LINKER_OPTION([if $compiler static flag $_LT_AC_TAGVAR(lt_prog_compiler_static, $1) works],
7242 - _LT_AC_TAGVAR(lt_prog_compiler_static_works, $1),
7243 - $_LT_AC_TAGVAR(lt_prog_compiler_static, $1),
7245 - [_LT_AC_TAGVAR(lt_prog_compiler_static, $1)=])
7246 +# save warnings/boilerplate of simple test code
7247 +_LT_COMPILER_BOILERPLATE
7248 +_LT_LINKER_BOILERPLATE
7250 +# Allow CC to be a program name with arguments.
7254 +_LT_AC_TAGVAR(compiler, $1)=$CC
7255 +_LT_CC_BASENAME([$compiler])
7257 -AC_LIBTOOL_PROG_COMPILER_NO_RTTI($1)
7258 -AC_LIBTOOL_PROG_COMPILER_PIC($1)
7259 -AC_LIBTOOL_PROG_CC_C_O($1)
7260 -AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1)
7261 -AC_LIBTOOL_PROG_LD_SHLIBS($1)
7262 -AC_LIBTOOL_SYS_DYNAMIC_LINKER($1)
7263 -AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1)
7264 -AC_LIBTOOL_SYS_LIB_STRIP
7265 -AC_LIBTOOL_DLOPEN_SELF($1)
7267 -# Report which librarie types wil actually be built
7268 AC_MSG_CHECKING([if libtool supports shared libraries])
7269 AC_MSG_RESULT([$can_build_shared])
7271 @@ -3781,7 +3940,7 @@
7273 # On AIX, shared libraries and static libraries use the same namespace, and
7274 # are all built from PIC.
7278 test "$enable_shared" = yes && enable_static=no
7279 if test -n "$RANLIB"; then
7280 @@ -3789,49 +3948,11 @@
7281 postinstall_cmds='$RANLIB $lib'
7286 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
7287 test "$enable_shared" = yes && enable_static=no
7290 - darwin* | rhapsody*)
7291 - if test "$GCC" = yes; then
7292 - _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
7293 - case "$host_os" in
7294 - rhapsody* | darwin1.[[012]])
7295 - _LT_AC_TAGVAR(allow_undefined_flag, $1)='-undefined suppress'
7297 - *) # Darwin 1.3 on
7298 - if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
7299 - _LT_AC_TAGVAR(allow_undefined_flag, $1)='-flat_namespace -undefined suppress'
7301 - case ${MACOSX_DEPLOYMENT_TARGET} in
7303 - _LT_AC_TAGVAR(allow_undefined_flag, $1)='-flat_namespace -undefined suppress'
7306 - _LT_AC_TAGVAR(allow_undefined_flag, $1)='-undefined dynamic_lookup'
7312 - output_verbose_link_cmd='echo'
7313 - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags -install_name $rpath/$soname $verstring'
7314 - _LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
7315 - # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
7316 - _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}'
7317 - _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}'
7318 - _LT_AC_TAGVAR(hardcode_direct, $1)=no
7319 - _LT_AC_TAGVAR(hardcode_automatic, $1)=yes
7320 - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
7321 - _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='-all_load $convenience'
7322 - _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
7324 - _LT_AC_TAGVAR(ld_shlibs, $1)=no
7328 AC_MSG_RESULT([$enable_shared])
7330 @@ -3840,3399 +3961,3430 @@
7331 test "$enable_shared" = yes || enable_static=yes
7332 AC_MSG_RESULT([$enable_static])
7334 +_LT_AC_TAGVAR(GCC, $1)="$G77"
7335 +_LT_AC_TAGVAR(LD, $1)="$LD"
7337 +AC_LIBTOOL_PROG_COMPILER_PIC($1)
7338 +AC_LIBTOOL_PROG_CC_C_O($1)
7339 +AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1)
7340 +AC_LIBTOOL_PROG_LD_SHLIBS($1)
7341 +AC_LIBTOOL_SYS_DYNAMIC_LINKER($1)
7342 +AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1)
7344 AC_LIBTOOL_CONFIG($1)
7348 -])# AC_LIBTOOL_LANG_C_CONFIG
7349 +])# AC_LIBTOOL_LANG_F77_CONFIG
7352 -# AC_LIBTOOL_LANG_CXX_CONFIG
7353 +# AC_LIBTOOL_LANG_GCJ_CONFIG
7354 # --------------------------
7355 # Ensure that the configuration vars for the C compiler are
7356 # suitably defined. Those variables are subsequently used by
7357 # AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
7358 -AC_DEFUN([AC_LIBTOOL_LANG_CXX_CONFIG], [_LT_AC_LANG_CXX_CONFIG(CXX)])
7359 -AC_DEFUN([_LT_AC_LANG_CXX_CONFIG],
7361 -AC_REQUIRE([AC_PROG_CXX])
7362 -AC_REQUIRE([AC_PROG_CXXCPP])
7364 -_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
7365 -_LT_AC_TAGVAR(allow_undefined_flag, $1)=
7366 -_LT_AC_TAGVAR(always_export_symbols, $1)=no
7367 -_LT_AC_TAGVAR(archive_expsym_cmds, $1)=
7368 -_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)=
7369 -_LT_AC_TAGVAR(hardcode_direct, $1)=no
7370 -_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=
7371 -_LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
7372 -_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
7373 -_LT_AC_TAGVAR(hardcode_minus_L, $1)=no
7374 -_LT_AC_TAGVAR(hardcode_automatic, $1)=no
7375 -_LT_AC_TAGVAR(module_cmds, $1)=
7376 -_LT_AC_TAGVAR(module_expsym_cmds, $1)=
7377 -_LT_AC_TAGVAR(link_all_deplibs, $1)=unknown
7378 -_LT_AC_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
7379 -_LT_AC_TAGVAR(no_undefined_flag, $1)=
7380 -_LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
7381 -_LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=no
7383 -# Dependencies to place before and after the object being linked:
7384 -_LT_AC_TAGVAR(predep_objects, $1)=
7385 -_LT_AC_TAGVAR(postdep_objects, $1)=
7386 -_LT_AC_TAGVAR(predeps, $1)=
7387 -_LT_AC_TAGVAR(postdeps, $1)=
7388 -_LT_AC_TAGVAR(compiler_lib_search_path, $1)=
7389 +AC_DEFUN([AC_LIBTOOL_LANG_GCJ_CONFIG], [_LT_AC_LANG_GCJ_CONFIG(GCJ)])
7390 +AC_DEFUN([_LT_AC_LANG_GCJ_CONFIG],
7393 -# Source file extension for C++ test sources.
7395 +# Source file extension for Java test sources.
7398 -# Object file extension for compiled C++ test sources.
7399 +# Object file extension for compiled Java test sources.
7401 _LT_AC_TAGVAR(objext, $1)=$objext
7403 # Code to be used in simple compile tests
7404 -lt_simple_compile_test_code="int some_variable = 0;\n"
7405 +lt_simple_compile_test_code="class foo {}\n"
7407 # Code to be used in simple link tests
7408 -lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n'
7409 +lt_simple_link_test_code='public class conftest { public static void main(String[[]] argv) {}; }\n'
7411 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
7414 +# save warnings/boilerplate of simple test code
7415 +_LT_COMPILER_BOILERPLATE
7416 +_LT_LINKER_BOILERPLATE
7418 # Allow CC to be a program name with arguments.
7423 -lt_save_with_gnu_ld=$with_gnu_ld
7424 -lt_save_path_LD=$lt_cv_path_LD
7425 -if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
7426 - lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
7428 - unset lt_cv_prog_gnu_ld
7430 -if test -n "${lt_cv_path_LDCXX+set}"; then
7431 - lt_cv_path_LD=$lt_cv_path_LDCXX
7433 - unset lt_cv_path_LD
7435 -test -z "${LDCXX+set}" || LD=$LDCXX
7440 _LT_AC_TAGVAR(compiler, $1)=$CC
7441 -cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
7442 +_LT_CC_BASENAME([$compiler])
7444 -# We don't want -fno-exception wen compiling C++ code, so set the
7445 -# no_builtin_flag separately
7446 -if test "$GXX" = yes; then
7447 - _LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin'
7449 - _LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=
7452 -if test "$GXX" = yes; then
7453 - # Set up default GNU C++ configuration
7457 - # Check if GNU C++ uses GNU ld as the underlying linker, since the
7458 - # archiving commands below assume that GNU ld is being used.
7459 - if test "$with_gnu_ld" = yes; then
7460 - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
7461 - _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'
7463 - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir'
7464 - _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
7465 +# GCJ did not exist at the time GCC didn't implicitly link libc in.
7466 +_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
7468 - # If archive_cmds runs LD, not CC, wlarc should be empty
7469 - # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
7470 - # investigate it a little bit more. (MM)
7472 +_LT_AC_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
7474 - # ancient GNU ld didn't support --whole-archive et. al.
7475 - if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
7476 - grep 'no-whole-archive' > /dev/null; then
7477 - _LT_AC_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
7479 - _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
7484 +AC_LIBTOOL_PROG_COMPILER_NO_RTTI($1)
7485 +AC_LIBTOOL_PROG_COMPILER_PIC($1)
7486 +AC_LIBTOOL_PROG_CC_C_O($1)
7487 +AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1)
7488 +AC_LIBTOOL_PROG_LD_SHLIBS($1)
7489 +AC_LIBTOOL_SYS_DYNAMIC_LINKER($1)
7490 +AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1)
7492 - # A generic and very simple default shared library creation
7493 - # command for GNU C++ for the case where it uses the native
7494 - # linker, instead of GNU ld. If possible, this setting should
7495 - # overridden to take advantage of the native linker features on
7496 - # the platform it is being used on.
7497 - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
7499 +AC_LIBTOOL_CONFIG($1)
7501 - # Commands to make compiler produce verbose output that lists
7502 - # what "hidden" libraries, object files and flags are used when
7503 - # linking a shared library.
7504 - output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
7507 +])# AC_LIBTOOL_LANG_GCJ_CONFIG
7515 -# PORTME: fill in a description of your system's C++ link characteristics
7516 -AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries])
7517 -_LT_AC_TAGVAR(ld_shlibs, $1)=yes
7520 - # FIXME: insert proper C++ library support
7521 - _LT_AC_TAGVAR(ld_shlibs, $1)=no
7524 - if test "$host_cpu" = ia64; then
7525 - # On IA64, the linker does run time linking by default, so we don't
7526 - # have to do anything special.
7527 - aix_use_runtimelinking=no
7528 - exp_sym_flag='-Bexport'
7531 - aix_use_runtimelinking=no
7532 +# AC_LIBTOOL_LANG_RC_CONFIG
7533 +# -------------------------
7534 +# Ensure that the configuration vars for the Windows resource compiler are
7535 +# suitably defined. Those variables are subsequently used by
7536 +# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
7537 +AC_DEFUN([AC_LIBTOOL_LANG_RC_CONFIG], [_LT_AC_LANG_RC_CONFIG(RC)])
7538 +AC_DEFUN([_LT_AC_LANG_RC_CONFIG],
7541 - # Test if we are trying to use run time linking or normal
7542 - # AIX style linking. If -brtl is somewhere in LDFLAGS, we
7543 - # need to do runtime linking.
7544 - case $host_os in aix4.[[23]]|aix4.[[23]].*|aix5*)
7545 - for ld_flag in $LDFLAGS; do
7548 - aix_use_runtimelinking=yes
7554 +# Source file extension for RC test sources.
7557 - exp_sym_flag='-bexport'
7558 - no_entry_flag='-bnoentry'
7560 +# Object file extension for compiled RC test sources.
7562 +_LT_AC_TAGVAR(objext, $1)=$objext
7564 - # When large executables or shared objects are built, AIX ld can
7565 - # have problems creating the table of contents. If linking a library
7566 - # or program results in "error TOC overflow" add -mminimal-toc to
7567 - # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
7568 - # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
7569 +# Code to be used in simple compile tests
7570 +lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
7572 - _LT_AC_TAGVAR(archive_cmds, $1)=''
7573 - _LT_AC_TAGVAR(hardcode_direct, $1)=yes
7574 - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=':'
7575 - _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
7576 +# Code to be used in simple link tests
7577 +lt_simple_link_test_code="$lt_simple_compile_test_code"
7579 - if test "$GXX" = yes; then
7580 - case $host_os in aix4.[012]|aix4.[012].*)
7581 - # We only want to do this on AIX 4.2 and lower, the check
7582 - # below for broken collect2 doesn't work under 4.3+
7583 - collect2name=`${CC} -print-prog-name=collect2`
7584 - if test -f "$collect2name" && \
7585 - strings "$collect2name" | grep resolve_lib_name >/dev/null
7587 - # We have reworked collect2
7588 - _LT_AC_TAGVAR(hardcode_direct, $1)=yes
7590 - # We have old collect2
7591 - _LT_AC_TAGVAR(hardcode_direct, $1)=unsupported
7592 - # It fails to find uninstalled libraries when the uninstalled
7593 - # path is not listed in the libpath. Setting hardcode_minus_L
7594 - # to unsupported forces relinking
7595 - _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
7596 - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
7597 - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
7600 - shared_flag='-shared'
7603 - if test "$host_cpu" = ia64; then
7604 - # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
7605 - # chokes on -Wl,-G. The following line is correct:
7608 - if test "$aix_use_runtimelinking" = yes; then
7609 - shared_flag='${wl}-G'
7611 - shared_flag='${wl}-bM:SRE'
7615 +# ltmain only uses $CC for tagged configurations so make sure $CC is set.
7616 +_LT_AC_SYS_COMPILER
7618 - # It seems that -bexpall does not export symbols beginning with
7619 - # underscore (_), so it is better to generate a list of symbols to export.
7620 - _LT_AC_TAGVAR(always_export_symbols, $1)=yes
7621 - if test "$aix_use_runtimelinking" = yes; then
7622 - # Warning - without using the other runtime loading flags (-brtl),
7623 - # -berok will link without error, but may produce a broken library.
7624 - _LT_AC_TAGVAR(allow_undefined_flag, $1)='-berok'
7625 - # Determine the default libpath from the value encoded in an empty executable.
7626 - _LT_AC_SYS_LIBPATH_AIX
7627 - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
7628 +# save warnings/boilerplate of simple test code
7629 +_LT_COMPILER_BOILERPLATE
7630 +_LT_LINKER_BOILERPLATE
7632 - _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"
7634 - if test "$host_cpu" = ia64; then
7635 - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib'
7636 - _LT_AC_TAGVAR(allow_undefined_flag, $1)="-z nodefs"
7637 - _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"
7639 - # Determine the default libpath from the value encoded in an empty executable.
7640 - _LT_AC_SYS_LIBPATH_AIX
7641 - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
7642 - # Warning - without using the other run time loading flags,
7643 - # -berok will link without error, but may produce a broken library.
7644 - _LT_AC_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok'
7645 - _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok'
7646 - # -bexpall does not export symbols beginning with underscore (_)
7647 - _LT_AC_TAGVAR(always_export_symbols, $1)=yes
7648 - # Exported symbols can be pulled into shared objects from archives
7649 - _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=' '
7650 - _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes
7651 - # This is similar to how AIX traditionally builds it's shared libraries.
7652 - _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'
7657 - case $cc_basename in
7659 - # FIXME: insert proper C++ library support
7660 - _LT_AC_TAGVAR(ld_shlibs, $1)=no
7664 +# Allow CC to be a program name with arguments.
7668 +_LT_AC_TAGVAR(compiler, $1)=$CC
7669 +_LT_CC_BASENAME([$compiler])
7670 +_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes
7672 - cygwin* | mingw* | pw32*)
7673 - # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless,
7674 - # as there is no search path for DLLs.
7675 - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
7676 - _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
7677 - _LT_AC_TAGVAR(always_export_symbols, $1)=no
7678 - _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
7679 +AC_LIBTOOL_CONFIG($1)
7681 - if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
7682 - _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'
7683 - # If the export-symbols file already is a .def file (1st line
7684 - # is EXPORTS), use it as is; otherwise, prepend...
7685 - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
7686 - cp $export_symbols $output_objdir/$soname.def;
7688 - echo EXPORTS > $output_objdir/$soname.def;
7689 - cat $export_symbols >> $output_objdir/$soname.def;
7691 - $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'
7693 - _LT_AC_TAGVAR(ld_shlibs, $1)=no
7698 +])# AC_LIBTOOL_LANG_RC_CONFIG
7700 - darwin* | rhapsody*)
7701 - if test "$GXX" = yes; then
7702 - _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
7703 - case "$host_os" in
7704 - rhapsody* | darwin1.[[012]])
7705 - _LT_AC_TAGVAR(allow_undefined_flag, $1)='-undefined suppress'
7707 - *) # Darwin 1.3 on
7708 - if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
7709 - _LT_AC_TAGVAR(allow_undefined_flag, $1)='-flat_namespace -undefined suppress'
7711 - case ${MACOSX_DEPLOYMENT_TARGET} in
7713 - _LT_AC_TAGVAR(allow_undefined_flag, $1)='-flat_namespace -undefined suppress'
7716 - _LT_AC_TAGVAR(allow_undefined_flag, $1)='-undefined dynamic_lookup'
7722 - lt_int_apple_cc_single_mod=no
7723 - output_verbose_link_cmd='echo'
7724 - if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
7725 - lt_int_apple_cc_single_mod=yes
7727 - if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
7728 - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
7730 - _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'
7732 - _LT_AC_TAGVAR(module_cmds, $1)='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
7734 - # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
7735 - if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
7736 - _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}'
7738 - _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}'
7740 - _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}'
7741 - _LT_AC_TAGVAR(hardcode_direct, $1)=no
7742 - _LT_AC_TAGVAR(hardcode_automatic, $1)=yes
7743 - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
7744 - _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='-all_load $convenience'
7745 - _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
7747 - _LT_AC_TAGVAR(ld_shlibs, $1)=no
7748 +# AC_LIBTOOL_CONFIG([TAGNAME])
7749 +# ----------------------------
7750 +# If TAGNAME is not passed, then create an initial libtool script
7751 +# with a default configuration from the untagged config vars. Otherwise
7752 +# add code to config.status for appending the configuration named by
7753 +# TAGNAME from the matching tagged config vars.
7754 +AC_DEFUN([AC_LIBTOOL_CONFIG],
7755 +[# The else clause should only fire when bootstrapping the
7756 +# libtool distribution, otherwise you forgot to ship ltmain.sh
7757 +# with your package, and you will get complaints that there are
7758 +# no rules to generate ltmain.sh.
7759 +if test -f "$ltmain"; then
7760 + # See if we are running on zsh, and set the options which allow our commands through
7761 + # without removal of \ escapes.
7762 + if test -n "${ZSH_VERSION+set}" ; then
7763 + setopt NO_GLOB_SUBST
7768 - case $cc_basename in
7770 - # FIXME: insert proper C++ library support
7771 - _LT_AC_TAGVAR(ld_shlibs, $1)=no
7774 - # Green Hills C++ Compiler
7775 - # FIXME: insert proper C++ library support
7776 - _LT_AC_TAGVAR(ld_shlibs, $1)=no
7779 - # FIXME: insert proper C++ library support
7780 - _LT_AC_TAGVAR(ld_shlibs, $1)=no
7785 - # C++ shared libraries reported to be fairly broken before switch to ELF
7786 - _LT_AC_TAGVAR(ld_shlibs, $1)=no
7789 - _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
7791 - freebsd* | kfreebsd*-gnu)
7792 - # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
7794 - _LT_AC_TAGVAR(ld_shlibs, $1)=yes
7799 - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
7800 - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
7801 - _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
7802 - _LT_AC_TAGVAR(hardcode_direct, $1)=yes
7803 - _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH,
7804 - # but as the default
7805 - # location of the library.
7806 + # Now quote all the things that may contain metacharacters while being
7807 + # careful not to overquote the AC_SUBSTed values. We take copies of the
7808 + # variables and quote the copies for generation of the libtool script.
7809 + for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
7811 + libname_spec library_names_spec soname_spec extract_expsyms_cmds \
7812 + old_striplib striplib file_magic_cmd finish_cmds finish_eval \
7813 + deplibs_check_method reload_flag reload_cmds need_locks \
7814 + lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
7815 + lt_cv_sys_global_symbol_to_c_name_address \
7816 + sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
7817 + old_postinstall_cmds old_postuninstall_cmds \
7818 + _LT_AC_TAGVAR(compiler, $1) \
7819 + _LT_AC_TAGVAR(CC, $1) \
7820 + _LT_AC_TAGVAR(LD, $1) \
7821 + _LT_AC_TAGVAR(lt_prog_compiler_wl, $1) \
7822 + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1) \
7823 + _LT_AC_TAGVAR(lt_prog_compiler_static, $1) \
7824 + _LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1) \
7825 + _LT_AC_TAGVAR(export_dynamic_flag_spec, $1) \
7826 + _LT_AC_TAGVAR(thread_safe_flag_spec, $1) \
7827 + _LT_AC_TAGVAR(whole_archive_flag_spec, $1) \
7828 + _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1) \
7829 + _LT_AC_TAGVAR(old_archive_cmds, $1) \
7830 + _LT_AC_TAGVAR(old_archive_from_new_cmds, $1) \
7831 + _LT_AC_TAGVAR(predep_objects, $1) \
7832 + _LT_AC_TAGVAR(postdep_objects, $1) \
7833 + _LT_AC_TAGVAR(predeps, $1) \
7834 + _LT_AC_TAGVAR(postdeps, $1) \
7835 + _LT_AC_TAGVAR(compiler_lib_search_path, $1) \
7836 + _LT_AC_TAGVAR(archive_cmds, $1) \
7837 + _LT_AC_TAGVAR(archive_expsym_cmds, $1) \
7838 + _LT_AC_TAGVAR(postinstall_cmds, $1) \
7839 + _LT_AC_TAGVAR(postuninstall_cmds, $1) \
7840 + _LT_AC_TAGVAR(old_archive_from_expsyms_cmds, $1) \
7841 + _LT_AC_TAGVAR(allow_undefined_flag, $1) \
7842 + _LT_AC_TAGVAR(no_undefined_flag, $1) \
7843 + _LT_AC_TAGVAR(export_symbols_cmds, $1) \
7844 + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1) \
7845 + _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1) \
7846 + _LT_AC_TAGVAR(hardcode_libdir_separator, $1) \
7847 + _LT_AC_TAGVAR(hardcode_automatic, $1) \
7848 + _LT_AC_TAGVAR(module_cmds, $1) \
7849 + _LT_AC_TAGVAR(module_expsym_cmds, $1) \
7850 + _LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1) \
7851 + _LT_AC_TAGVAR(exclude_expsyms, $1) \
7852 + _LT_AC_TAGVAR(include_expsyms, $1); do
7854 - case $cc_basename in
7856 - # FIXME: insert proper C++ library support
7857 - _LT_AC_TAGVAR(ld_shlibs, $1)=no
7860 - _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'
7861 - # Commands to make compiler produce verbose output that lists
7862 - # what "hidden" libraries, object files and flags are used when
7863 - # linking a shared library.
7865 - # There doesn't appear to be a way to prevent this compiler from
7866 - # explicitly linking system object files so we need to strip them
7867 - # from the output so that they don't get included in the library
7869 - 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'
7872 - if test "$GXX" = yes; then
7873 - _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'
7875 - # FIXME: insert proper C++ library support
7876 - _LT_AC_TAGVAR(ld_shlibs, $1)=no
7882 - if test $with_gnu_ld = no; then
7883 - case "$host_cpu" in
7885 - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
7886 - _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='+b $libdir'
7887 - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
7890 - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
7893 - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
7894 - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
7895 - _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
7899 - case "$host_cpu" in
7901 - _LT_AC_TAGVAR(hardcode_direct, $1)=no
7902 - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
7905 - _LT_AC_TAGVAR(hardcode_direct, $1)=no
7906 - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
7907 - _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH,
7908 - # but as the default
7909 - # location of the library.
7911 + _LT_AC_TAGVAR(old_archive_cmds, $1) | \
7912 + _LT_AC_TAGVAR(old_archive_from_new_cmds, $1) | \
7913 + _LT_AC_TAGVAR(archive_cmds, $1) | \
7914 + _LT_AC_TAGVAR(archive_expsym_cmds, $1) | \
7915 + _LT_AC_TAGVAR(module_cmds, $1) | \
7916 + _LT_AC_TAGVAR(module_expsym_cmds, $1) | \
7917 + _LT_AC_TAGVAR(old_archive_from_expsyms_cmds, $1) | \
7918 + _LT_AC_TAGVAR(export_symbols_cmds, $1) | \
7919 + extract_expsyms_cmds | reload_cmds | finish_cmds | \
7920 + postinstall_cmds | postuninstall_cmds | \
7921 + old_postinstall_cmds | old_postuninstall_cmds | \
7922 + sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
7923 + # Double-quote double-evaled strings.
7924 + eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
7927 - _LT_AC_TAGVAR(hardcode_direct, $1)=yes
7928 - _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH,
7929 - # but as the default
7930 - # location of the library.
7931 + eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
7936 - case $cc_basename in
7938 - # FIXME: insert proper C++ library support
7939 - _LT_AC_TAGVAR(ld_shlibs, $1)=no
7942 - case "$host_cpu" in
7944 - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
7947 - _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'
7950 - # Commands to make compiler produce verbose output that lists
7951 - # what "hidden" libraries, object files and flags are used when
7952 - # linking a shared library.
7954 - # There doesn't appear to be a way to prevent this compiler from
7955 - # explicitly linking system object files so we need to strip them
7956 - # from the output so that they don't get included in the library
7958 - 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'
7961 - if test "$GXX" = yes; then
7962 - if test $with_gnu_ld = no; then
7963 - case "$host_cpu" in
7965 - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
7968 - _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'
7973 - # FIXME: insert proper C++ library support
7974 - _LT_AC_TAGVAR(ld_shlibs, $1)=no
7980 - case $cc_basename in
7983 - _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'
7985 - # Archives containing C++ object files must be created using
7986 - # "CC -ar", where "CC" is the IRIX C++ compiler. This is
7987 - # necessary to make sure instantiated templates are included
7989 - _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -ar -WR,-u -o $oldlib $oldobjs'
7992 - if test "$GXX" = yes; then
7993 - if test "$with_gnu_ld" = no; then
7994 - _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'
7996 - _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'
7999 - _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
8002 - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
8003 - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
8005 + *'\[$]0 --fallback-echo"')
8006 + lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\[$]0 --fallback-echo"[$]/[$]0 --fallback-echo"/'`
8009 - case $cc_basename in
8011 - # Kuck and Associates, Inc. (KAI) C++ Compiler
8013 - # KCC will only create a shared library if the output file
8014 - # ends with ".so" (or ".sl" for HP-UX), so rename the library
8015 - # to its proper name (with version) after linking.
8016 - _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'
8017 - _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'
8018 - # Commands to make compiler produce verbose output that lists
8019 - # what "hidden" libraries, object files and flags are used when
8020 - # linking a shared library.
8022 - # There doesn't appear to be a way to prevent this compiler from
8023 - # explicitly linking system object files so we need to strip them
8024 - # from the output so that they don't get included in the library
8026 - 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'
8029 - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath,$libdir'
8030 - _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
8032 + [cfgfile="${ofile}T"
8033 + trap "$rm \"$cfgfile\"; exit 1" 1 2 15
8035 + AC_MSG_NOTICE([creating $ofile])],
8036 + [cfgfile="$ofile"])
8038 - # Archives containing C++ object files must be created using
8039 - # "CC -Bstatic", where "CC" is the KAI C++ compiler.
8040 - _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs'
8045 - _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
8046 - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
8047 - _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'
8048 - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
8049 - _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
8050 - _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
8054 - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
8055 - _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'
8056 + cat <<__EOF__ >> "$cfgfile"
8060 - runpath_var=LD_RUN_PATH
8061 - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
8062 - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
8063 +# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
8064 +# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
8065 +# NOTE: Changes made to this file will be lost: look at ltmain.sh.
8067 +# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
8068 +# Free Software Foundation, Inc.
8070 +# This file is part of GNU Libtool:
8071 +# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
8073 +# This program is free software; you can redistribute it and/or modify
8074 +# it under the terms of the GNU General Public License as published by
8075 +# the Free Software Foundation; either version 2 of the License, or
8076 +# (at your option) any later version.
8078 +# This program is distributed in the hope that it will be useful, but
8079 +# WITHOUT ANY WARRANTY; without even the implied warranty of
8080 +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
8081 +# General Public License for more details.
8083 +# You should have received a copy of the GNU General Public License
8084 +# along with this program; if not, write to the Free Software
8085 +# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
8087 +# As a special exception to the GNU General Public License, if you
8088 +# distribute this file as part of a program that contains a
8089 +# configuration script generated by Autoconf, you may include it under
8090 +# the same distribution terms that you use for the rest of that program.
8092 - # Commands to make compiler produce verbose output that lists
8093 - # what "hidden" libraries, object files and flags are used when
8094 - # linking a shared library.
8096 - # There doesn't appear to be a way to prevent this compiler from
8097 - # explicitly linking system object files so we need to strip them
8098 - # from the output so that they don't get included in the library
8100 - 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'
8105 - # FIXME: insert proper C++ library support
8106 - _LT_AC_TAGVAR(ld_shlibs, $1)=no
8109 - # FIXME: insert proper C++ library support
8110 - _LT_AC_TAGVAR(ld_shlibs, $1)=no
8113 - case $cc_basename in
8115 - # FIXME: insert proper C++ library support
8116 - _LT_AC_TAGVAR(ld_shlibs, $1)=no
8119 - # FIXME: insert proper C++ library support
8120 - _LT_AC_TAGVAR(ld_shlibs, $1)=no
8124 - netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
8125 - if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8126 - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
8128 - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
8129 - _LT_AC_TAGVAR(hardcode_direct, $1)=yes
8130 - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
8132 - # Workaround some broken pre-1.5 toolchains
8133 - output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
8136 - case $cc_basename in
8138 - # Kuck and Associates, Inc. (KAI) C++ Compiler
8139 +# A sed program that does not truncate output.
8142 - # KCC will only create a shared library if the output file
8143 - # ends with ".so" (or ".sl" for HP-UX), so rename the library
8144 - # to its proper name (with version) after linking.
8145 - _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'
8146 +# Sed that helps us avoid accidentally triggering echo(1) options like -n.
8147 +Xsed="$SED -e 1s/^X//"
8149 - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
8150 - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
8151 +# The HP-UX ksh and POSIX shell print the target directory to stdout
8152 +# if CDPATH is set.
8153 +(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
8155 - # Archives containing C++ object files must be created using
8156 - # "CC -Bstatic", where "CC" is the KAI C++ compiler.
8157 - _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs'
8158 +# The names of the tagged configurations supported by this script.
8163 - # Rational C++ 2.4.1
8164 - # FIXME: insert proper C++ library support
8165 - _LT_AC_TAGVAR(ld_shlibs, $1)=no
8168 - _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
8169 - _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'
8170 +# ### BEGIN LIBTOOL CONFIG],
8171 +[# ### BEGIN LIBTOOL TAG CONFIG: $tagname])
8173 - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
8174 - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
8175 +# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
8177 - # Commands to make compiler produce verbose output that lists
8178 - # what "hidden" libraries, object files and flags are used when
8179 - # linking a shared library.
8181 - # There doesn't appear to be a way to prevent this compiler from
8182 - # explicitly linking system object files so we need to strip them
8183 - # from the output so that they don't get included in the library
8185 - 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'
8188 - if test "$GXX" = yes && test "$with_gnu_ld" = no; then
8189 - _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
8190 - _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'
8191 +# Shell to use when invoking shell scripts.
8194 - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
8195 - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
8196 +# Whether or not to build shared libraries.
8197 +build_libtool_libs=$enable_shared
8199 - # Commands to make compiler produce verbose output that lists
8200 - # what "hidden" libraries, object files and flags are used when
8201 - # linking a shared library.
8202 - output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
8203 +# Whether or not to build static libraries.
8204 +build_old_libs=$enable_static
8207 - # FIXME: insert proper C++ library support
8208 - _LT_AC_TAGVAR(ld_shlibs, $1)=no
8214 - case $cc_basename in
8216 - # Kuck and Associates, Inc. (KAI) C++ Compiler
8217 +# Whether or not to add -lc for building shared libraries.
8218 +build_libtool_need_lc=$_LT_AC_TAGVAR(archive_cmds_need_lc, $1)
8220 - # KCC will only create a shared library if the output file
8221 - # ends with ".so" (or ".sl" for HP-UX), so rename the library
8222 - # to its proper name (with version) after linking.
8223 - _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'
8224 +# Whether or not to disallow shared libs when runtime libs are static
8225 +allow_libtool_libs_with_static_runtimes=$_LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)
8227 - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
8228 - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
8229 +# Whether or not to optimize for fast installation.
8230 +fast_install=$enable_fast_install
8232 - # Archives containing C++ object files must be created using
8233 - # the KAI C++ compiler.
8234 - _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -o $oldlib $oldobjs'
8237 - # Rational C++ 2.4.1
8238 - # FIXME: insert proper C++ library support
8239 - _LT_AC_TAGVAR(ld_shlibs, $1)=no
8242 - _LT_AC_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
8243 - _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'
8244 - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
8245 - echo "-hidden">> $lib.exp~
8246 - $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~
8249 +host_alias=$host_alias
8253 - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
8254 - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
8255 +# The build system.
8256 +build_alias=$build_alias
8260 - # Commands to make compiler produce verbose output that lists
8261 - # what "hidden" libraries, object files and flags are used when
8262 - # linking a shared library.
8264 - # There doesn't appear to be a way to prevent this compiler from
8265 - # explicitly linking system object files so we need to strip them
8266 - # from the output so that they don't get included in the library
8268 - 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'
8271 - if test "$GXX" = yes && test "$with_gnu_ld" = no; then
8272 - _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
8273 - _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'
8274 +# An echo program that does not interpret backslashes.
8277 - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
8278 - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
8281 +AR_FLAGS=$lt_AR_FLAGS
8283 - # Commands to make compiler produce verbose output that lists
8284 - # what "hidden" libraries, object files and flags are used when
8285 - # linking a shared library.
8286 - output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
8291 - # FIXME: insert proper C++ library support
8292 - _LT_AC_TAGVAR(ld_shlibs, $1)=no
8298 - # FIXME: insert proper C++ library support
8299 - _LT_AC_TAGVAR(ld_shlibs, $1)=no
8302 - _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
8303 - case $cc_basename in
8305 - # FIXME: insert proper C++ library support
8306 - _LT_AC_TAGVAR(ld_shlibs, $1)=no
8309 - # FIXME: insert proper C++ library support
8310 - _LT_AC_TAGVAR(ld_shlibs, $1)=no
8315 - case $cc_basename in
8318 - # FIXME: insert proper C++ library support
8319 - _LT_AC_TAGVAR(ld_shlibs, $1)=no
8323 - # FIXME: insert proper C++ library support
8324 - _LT_AC_TAGVAR(ld_shlibs, $1)=no
8327 - # FIXME: insert proper C++ library support
8328 - _LT_AC_TAGVAR(ld_shlibs, $1)=no
8333 - case $cc_basename in
8335 - # Sun C++ 4.2, 5.x and Centerline C++
8336 - _LT_AC_TAGVAR(no_undefined_flag, $1)=' -zdefs'
8337 - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -nolib -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
8338 - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8339 - $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'
8340 +# LTCC compiler flags.
8341 +LTCFLAGS=$lt_LTCFLAGS
8343 - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
8344 - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
8346 - solaris2.[0-5] | solaris2.[0-5].*) ;;
8348 - # The C++ compiler is used as linker so we must use $wl
8349 - # flag to pass the commands to the underlying system
8351 - # Supported since Solaris 2.6 (maybe 2.5.1?)
8352 - _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
8355 - _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
8356 +# A language-specific compiler.
8357 +CC=$lt_[]_LT_AC_TAGVAR(compiler, $1)
8359 - # Commands to make compiler produce verbose output that lists
8360 - # what "hidden" libraries, object files and flags are used when
8361 - # linking a shared library.
8363 - # There doesn't appear to be a way to prevent this compiler from
8364 - # explicitly linking system object files so we need to strip them
8365 - # from the output so that they don't get included in the library
8367 - 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'
8368 +# Is the compiler the GNU C compiler?
8369 +with_gcc=$_LT_AC_TAGVAR(GCC, $1)
8371 - # Archives containing C++ object files must be created using
8372 - # "CC -xar", where "CC" is the Sun C++ compiler. This is
8373 - # necessary to make sure instantiated templates are included
8375 - _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs'
8378 - # Green Hills C++ Compiler
8379 - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
8383 - # The C++ compiler must be used to create the archive.
8384 - _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
8387 - # GNU C++ compiler with Solaris linker
8388 - if test "$GXX" = yes && test "$with_gnu_ld" = no; then
8389 - _LT_AC_TAGVAR(no_undefined_flag, $1)=' ${wl}-z ${wl}defs'
8390 - if $CC --version | grep -v '^2\.7' > /dev/null; then
8391 - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
8392 - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8393 - $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
8394 +# The linker used to build libraries.
8395 +LD=$lt_[]_LT_AC_TAGVAR(LD, $1)
8397 - # Commands to make compiler produce verbose output that lists
8398 - # what "hidden" libraries, object files and flags are used when
8399 - # linking a shared library.
8400 - output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
8402 - # g++ 2.7 appears to require `-G' NOT `-shared' on this
8404 - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
8405 - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8406 - $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
8407 +# Whether we need hard or soft links.
8410 - # Commands to make compiler produce verbose output that lists
8411 - # what "hidden" libraries, object files and flags are used when
8412 - # linking a shared library.
8413 - output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
8415 +# A BSD-compatible nm program.
8418 - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $wl$libdir'
8423 - sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[[78]]* | unixware7*)
8424 - _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
8427 - case $cc_basename in
8429 - # NonStop-UX NCC 3.20
8430 - # FIXME: insert proper C++ library support
8431 - _LT_AC_TAGVAR(ld_shlibs, $1)=no
8434 - # FIXME: insert proper C++ library support
8435 - _LT_AC_TAGVAR(ld_shlibs, $1)=no
8440 - # FIXME: insert proper C++ library support
8441 - _LT_AC_TAGVAR(ld_shlibs, $1)=no
8444 - # FIXME: insert proper C++ library support
8445 - _LT_AC_TAGVAR(ld_shlibs, $1)=no
8448 -AC_MSG_RESULT([$_LT_AC_TAGVAR(ld_shlibs, $1)])
8449 -test "$_LT_AC_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no
8450 +# A symbol stripping program
8453 -_LT_AC_TAGVAR(GCC, $1)="$GXX"
8454 -_LT_AC_TAGVAR(LD, $1)="$LD"
8455 +# Used to examine libraries when file_magic_cmd begins "file"
8456 +MAGIC_CMD=$MAGIC_CMD
8458 -AC_LIBTOOL_POSTDEP_PREDEP($1)
8459 -AC_LIBTOOL_PROG_COMPILER_PIC($1)
8460 -AC_LIBTOOL_PROG_CC_C_O($1)
8461 -AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1)
8462 -AC_LIBTOOL_PROG_LD_SHLIBS($1)
8463 -AC_LIBTOOL_SYS_DYNAMIC_LINKER($1)
8464 -AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1)
8465 -AC_LIBTOOL_SYS_LIB_STRIP
8466 -AC_LIBTOOL_DLOPEN_SELF($1)
8467 +# Used on cygwin: DLL creation program.
8470 -AC_LIBTOOL_CONFIG($1)
8471 +# Used on cygwin: object dumper.
8479 -with_gnu_ldcxx=$with_gnu_ld
8480 -with_gnu_ld=$lt_save_with_gnu_ld
8481 -lt_cv_path_LDCXX=$lt_cv_path_LD
8482 -lt_cv_path_LD=$lt_save_path_LD
8483 -lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
8484 -lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
8485 -])# AC_LIBTOOL_LANG_CXX_CONFIG
8486 +# Used on cygwin: assembler.
8489 -# AC_LIBTOOL_POSTDEP_PREDEP([TAGNAME])
8490 -# ------------------------
8491 -# Figure out "hidden" library dependencies from verbose
8492 -# compiler output when linking a shared library.
8493 -# Parse the compiler output and extract the necessary
8494 -# objects, libraries and library flags.
8495 -AC_DEFUN([AC_LIBTOOL_POSTDEP_PREDEP],[
8496 -dnl we can't use the lt_simple_compile_test_code here,
8497 -dnl because it contains code intended for an executable,
8498 -dnl not a library. It's possible we should let each
8499 -dnl tag define a new lt_????_link_test_code variable,
8500 -dnl but it's only used here...
8501 -ifelse([$1],[],[cat > conftest.$ac_ext <<EOF
8503 -void foo (void) { a = 0; }
8505 -],[$1],[CXX],[cat > conftest.$ac_ext <<EOF
8509 - Foo (void) { a = 0; }
8514 -],[$1],[F77],[cat > conftest.$ac_ext <<EOF
8522 -],[$1],[GCJ],[cat > conftest.$ac_ext <<EOF
8525 - public void bar (void) {
8531 -dnl Parse the compiler output and extract the necessary
8532 -dnl objects, libraries and library flags.
8533 -if AC_TRY_EVAL(ac_compile); then
8534 - # Parse the compiler output and extract the necessary
8535 - # objects, libraries and library flags.
8536 +# The name of the directory that contains temporary libtool files.
8539 - # Sentinel used to keep track of whether or not we are before
8540 - # the conftest object file.
8541 - pre_test_object_deps_done=no
8542 +# How to create reloadable object files.
8543 +reload_flag=$lt_reload_flag
8544 +reload_cmds=$lt_reload_cmds
8546 - # The `*' in the case matches for architectures that use `case' in
8547 - # $output_verbose_cmd can trigger glob expansion during the loop
8548 - # eval without this substitution.
8549 - output_verbose_link_cmd="`$echo \"X$output_verbose_link_cmd\" | $Xsed -e \"$no_glob_subst\"`"
8550 +# How to pass a linker flag through the compiler.
8551 +wl=$lt_[]_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)
8553 - for p in `eval $output_verbose_link_cmd`; do
8555 +# Object file suffix (normally "o").
8556 +objext="$ac_objext"
8559 - # Some compilers place space between "-{L,R}" and the path.
8560 - # Remove the space.
8561 - if test $p = "-L" \
8562 - || test $p = "-R"; then
8568 +# Old archive suffix (normally "a").
8571 - if test "$pre_test_object_deps_done" = no; then
8574 - # Internal compiler library paths should come after those
8575 - # provided the user. The postdeps already come after the
8576 - # user supplied libs so there is no need to process them.
8577 - if test -z "$_LT_AC_TAGVAR(compiler_lib_search_path, $1)"; then
8578 - _LT_AC_TAGVAR(compiler_lib_search_path, $1)="${prev}${p}"
8580 - _LT_AC_TAGVAR(compiler_lib_search_path, $1)="${_LT_AC_TAGVAR(compiler_lib_search_path, $1)} ${prev}${p}"
8583 - # The "-l" case would never come before the object being
8584 - # linked, so don't bother handling this case.
8587 - if test -z "$_LT_AC_TAGVAR(postdeps, $1)"; then
8588 - _LT_AC_TAGVAR(postdeps, $1)="${prev}${p}"
8590 - _LT_AC_TAGVAR(postdeps, $1)="${_LT_AC_TAGVAR(postdeps, $1)} ${prev}${p}"
8594 +# Shared library suffix (normally ".so").
8595 +shrext_cmds='$shrext_cmds'
8598 - # This assumes that the test object file only shows up
8599 - # once in the compiler output.
8600 - if test "$p" = "conftest.$objext"; then
8601 - pre_test_object_deps_done=yes
8604 +# Executable file suffix (normally "").
8607 - if test "$pre_test_object_deps_done" = no; then
8608 - if test -z "$_LT_AC_TAGVAR(predep_objects, $1)"; then
8609 - _LT_AC_TAGVAR(predep_objects, $1)="$p"
8611 - _LT_AC_TAGVAR(predep_objects, $1)="$_LT_AC_TAGVAR(predep_objects, $1) $p"
8614 - if test -z "$_LT_AC_TAGVAR(postdep_objects, $1)"; then
8615 - _LT_AC_TAGVAR(postdep_objects, $1)="$p"
8617 - _LT_AC_TAGVAR(postdep_objects, $1)="$_LT_AC_TAGVAR(postdep_objects, $1) $p"
8621 +# Additional compiler flags for building library objects.
8622 +pic_flag=$lt_[]_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)
8625 - *) ;; # Ignore the rest.
8626 +# What is the maximum length of a command?
8627 +max_cmd_len=$lt_cv_sys_max_cmd_len
8631 +# Does compiler simultaneously support -c and -o options?
8632 +compiler_c_o=$lt_[]_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)
8637 - echo "libtool.m4: error: problem compiling $1 test program"
8639 +# Must we lock files when doing compilation?
8640 +need_locks=$lt_need_locks
8642 -$rm -f confest.$objext
8643 +# Do we need the lib prefix for modules?
8644 +need_lib_prefix=$need_lib_prefix
8646 -case " $_LT_AC_TAGVAR(postdeps, $1) " in
8647 -*" -lc "*) _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no ;;
8649 -])# AC_LIBTOOL_POSTDEP_PREDEP
8650 +# Do we need a version for libraries?
8651 +need_version=$need_version
8653 -# AC_LIBTOOL_LANG_F77_CONFIG
8654 -# ------------------------
8655 -# Ensure that the configuration vars for the C compiler are
8656 -# suitably defined. Those variables are subsequently used by
8657 -# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
8658 -AC_DEFUN([AC_LIBTOOL_LANG_F77_CONFIG], [_LT_AC_LANG_F77_CONFIG(F77)])
8659 -AC_DEFUN([_LT_AC_LANG_F77_CONFIG],
8660 -[AC_REQUIRE([AC_PROG_F77])
8661 -AC_LANG_PUSH(Fortran 77)
8662 +# Whether dlopen is supported.
8663 +dlopen_support=$enable_dlopen
8665 -_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
8666 -_LT_AC_TAGVAR(allow_undefined_flag, $1)=
8667 -_LT_AC_TAGVAR(always_export_symbols, $1)=no
8668 -_LT_AC_TAGVAR(archive_expsym_cmds, $1)=
8669 -_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)=
8670 -_LT_AC_TAGVAR(hardcode_direct, $1)=no
8671 -_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=
8672 -_LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
8673 -_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
8674 -_LT_AC_TAGVAR(hardcode_minus_L, $1)=no
8675 -_LT_AC_TAGVAR(hardcode_automatic, $1)=no
8676 -_LT_AC_TAGVAR(module_cmds, $1)=
8677 -_LT_AC_TAGVAR(module_expsym_cmds, $1)=
8678 -_LT_AC_TAGVAR(link_all_deplibs, $1)=unknown
8679 -_LT_AC_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
8680 -_LT_AC_TAGVAR(no_undefined_flag, $1)=
8681 -_LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
8682 -_LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=no
8683 +# Whether dlopen of programs is supported.
8684 +dlopen_self=$enable_dlopen_self
8686 -# Source file extension for f77 test sources.
8688 +# Whether dlopen of statically linked programs is supported.
8689 +dlopen_self_static=$enable_dlopen_self_static
8691 -# Object file extension for compiled f77 test sources.
8693 -_LT_AC_TAGVAR(objext, $1)=$objext
8694 +# Compiler flag to prevent dynamic linking.
8695 +link_static_flag=$lt_[]_LT_AC_TAGVAR(lt_prog_compiler_static, $1)
8697 -# Code to be used in simple compile tests
8698 -lt_simple_compile_test_code=" subroutine t\n return\n end\n"
8699 +# Compiler flag to turn off builtin functions.
8700 +no_builtin_flag=$lt_[]_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)
8702 -# Code to be used in simple link tests
8703 -lt_simple_link_test_code=" program t\n end\n"
8704 +# Compiler flag to allow reflexive dlopens.
8705 +export_dynamic_flag_spec=$lt_[]_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)
8707 -# ltmain only uses $CC for tagged configurations so make sure $CC is set.
8708 -_LT_AC_SYS_COMPILER
8709 +# Compiler flag to generate shared objects directly from archives.
8710 +whole_archive_flag_spec=$lt_[]_LT_AC_TAGVAR(whole_archive_flag_spec, $1)
8712 -# Allow CC to be a program name with arguments.
8716 -_LT_AC_TAGVAR(compiler, $1)=$CC
8717 -cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
8718 +# Compiler flag to generate thread-safe objects.
8719 +thread_safe_flag_spec=$lt_[]_LT_AC_TAGVAR(thread_safe_flag_spec, $1)
8721 -AC_MSG_CHECKING([if libtool supports shared libraries])
8722 -AC_MSG_RESULT([$can_build_shared])
8723 +# Library versioning type.
8724 +version_type=$version_type
8726 -AC_MSG_CHECKING([whether to build shared libraries])
8727 -test "$can_build_shared" = "no" && enable_shared=no
8728 +# Format of library name prefix.
8729 +libname_spec=$lt_libname_spec
8731 -# On AIX, shared libraries and static libraries use the same namespace, and
8732 -# are all built from PIC.
8735 - test "$enable_shared" = yes && enable_static=no
8736 - if test -n "$RANLIB"; then
8737 - archive_cmds="$archive_cmds~\$RANLIB \$lib"
8738 - postinstall_cmds='$RANLIB $lib'
8742 - test "$enable_shared" = yes && enable_static=no
8745 -AC_MSG_RESULT([$enable_shared])
8746 +# List of archive names. First name is the real one, the rest are links.
8747 +# The last name is the one that the linker finds with -lNAME.
8748 +library_names_spec=$lt_library_names_spec
8750 -AC_MSG_CHECKING([whether to build static libraries])
8751 -# Make sure either enable_shared or enable_static is yes.
8752 -test "$enable_shared" = yes || enable_static=yes
8753 -AC_MSG_RESULT([$enable_static])
8754 +# The coded name of the library, if different from the real name.
8755 +soname_spec=$lt_soname_spec
8757 -test "$_LT_AC_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no
8758 +# Commands used to build and install an old-style archive.
8760 +old_archive_cmds=$lt_[]_LT_AC_TAGVAR(old_archive_cmds, $1)
8761 +old_postinstall_cmds=$lt_old_postinstall_cmds
8762 +old_postuninstall_cmds=$lt_old_postuninstall_cmds
8764 -_LT_AC_TAGVAR(GCC, $1)="$G77"
8765 -_LT_AC_TAGVAR(LD, $1)="$LD"
8766 +# Create an old-style archive from a shared archive.
8767 +old_archive_from_new_cmds=$lt_[]_LT_AC_TAGVAR(old_archive_from_new_cmds, $1)
8769 -AC_LIBTOOL_PROG_COMPILER_PIC($1)
8770 -AC_LIBTOOL_PROG_CC_C_O($1)
8771 -AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1)
8772 -AC_LIBTOOL_PROG_LD_SHLIBS($1)
8773 -AC_LIBTOOL_SYS_DYNAMIC_LINKER($1)
8774 -AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1)
8775 -AC_LIBTOOL_SYS_LIB_STRIP
8776 +# Create a temporary old-style archive to link instead of a shared archive.
8777 +old_archive_from_expsyms_cmds=$lt_[]_LT_AC_TAGVAR(old_archive_from_expsyms_cmds, $1)
8779 +# Commands used to build and install a shared archive.
8780 +archive_cmds=$lt_[]_LT_AC_TAGVAR(archive_cmds, $1)
8781 +archive_expsym_cmds=$lt_[]_LT_AC_TAGVAR(archive_expsym_cmds, $1)
8782 +postinstall_cmds=$lt_postinstall_cmds
8783 +postuninstall_cmds=$lt_postuninstall_cmds
8785 -AC_LIBTOOL_CONFIG($1)
8786 +# Commands used to build a loadable module (assumed same as above if empty)
8787 +module_cmds=$lt_[]_LT_AC_TAGVAR(module_cmds, $1)
8788 +module_expsym_cmds=$lt_[]_LT_AC_TAGVAR(module_expsym_cmds, $1)
8792 -])# AC_LIBTOOL_LANG_F77_CONFIG
8793 +# Commands to strip libraries.
8794 +old_striplib=$lt_old_striplib
8795 +striplib=$lt_striplib
8797 +# Dependencies to place before the objects being linked to create a
8799 +predep_objects=$lt_[]_LT_AC_TAGVAR(predep_objects, $1)
8801 -# AC_LIBTOOL_LANG_GCJ_CONFIG
8802 -# --------------------------
8803 -# Ensure that the configuration vars for the C compiler are
8804 -# suitably defined. Those variables are subsequently used by
8805 -# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
8806 -AC_DEFUN([AC_LIBTOOL_LANG_GCJ_CONFIG], [_LT_AC_LANG_GCJ_CONFIG(GCJ)])
8807 -AC_DEFUN([_LT_AC_LANG_GCJ_CONFIG],
8809 +# Dependencies to place after the objects being linked to create a
8811 +postdep_objects=$lt_[]_LT_AC_TAGVAR(postdep_objects, $1)
8813 -# Source file extension for Java test sources.
8815 +# Dependencies to place before the objects being linked to create a
8817 +predeps=$lt_[]_LT_AC_TAGVAR(predeps, $1)
8819 -# Object file extension for compiled Java test sources.
8821 -_LT_AC_TAGVAR(objext, $1)=$objext
8822 +# Dependencies to place after the objects being linked to create a
8824 +postdeps=$lt_[]_LT_AC_TAGVAR(postdeps, $1)
8826 -# Code to be used in simple compile tests
8827 -lt_simple_compile_test_code="class foo {}\n"
8828 +# The library search path used internally by the compiler when linking
8829 +# a shared library.
8830 +compiler_lib_search_path=$lt_[]_LT_AC_TAGVAR(compiler_lib_search_path, $1)
8832 -# Code to be used in simple link tests
8833 -lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
8834 +# Method to check whether dependent libraries are shared objects.
8835 +deplibs_check_method=$lt_deplibs_check_method
8837 -# ltmain only uses $CC for tagged configurations so make sure $CC is set.
8838 -_LT_AC_SYS_COMPILER
8839 +# Command to use when deplibs_check_method == file_magic.
8840 +file_magic_cmd=$lt_file_magic_cmd
8842 -# Allow CC to be a program name with arguments.
8846 -_LT_AC_TAGVAR(compiler, $1)=$CC
8847 +# Flag that allows shared libraries with undefined symbols to be built.
8848 +allow_undefined_flag=$lt_[]_LT_AC_TAGVAR(allow_undefined_flag, $1)
8850 -# GCJ did not exist at the time GCC didn't implicitly link libc in.
8851 -_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
8852 +# Flag that forces no undefined symbols.
8853 +no_undefined_flag=$lt_[]_LT_AC_TAGVAR(no_undefined_flag, $1)
8855 -AC_LIBTOOL_PROG_COMPILER_NO_RTTI($1)
8856 -AC_LIBTOOL_PROG_COMPILER_PIC($1)
8857 -AC_LIBTOOL_PROG_CC_C_O($1)
8858 -AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1)
8859 -AC_LIBTOOL_PROG_LD_SHLIBS($1)
8860 -AC_LIBTOOL_SYS_DYNAMIC_LINKER($1)
8861 -AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1)
8862 -AC_LIBTOOL_SYS_LIB_STRIP
8863 -AC_LIBTOOL_DLOPEN_SELF($1)
8864 +# Commands used to finish a libtool library installation in a directory.
8865 +finish_cmds=$lt_finish_cmds
8867 -AC_LIBTOOL_CONFIG($1)
8868 +# Same as above, but a single script fragment to be evaled but not shown.
8869 +finish_eval=$lt_finish_eval
8873 -])# AC_LIBTOOL_LANG_GCJ_CONFIG
8874 +# Take the output of nm and produce a listing of raw symbols and C names.
8875 +global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
8877 +# Transform the output of nm in a proper C declaration
8878 +global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
8880 -# AC_LIBTOOL_LANG_RC_CONFIG
8881 -# --------------------------
8882 -# Ensure that the configuration vars for the Windows resource compiler are
8883 -# suitably defined. Those variables are subsequently used by
8884 -# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
8885 -AC_DEFUN([AC_LIBTOOL_LANG_RC_CONFIG], [_LT_AC_LANG_RC_CONFIG(RC)])
8886 -AC_DEFUN([_LT_AC_LANG_RC_CONFIG],
8888 +# Transform the output of nm in a C name address pair
8889 +global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
8891 -# Source file extension for RC test sources.
8893 +# This is the shared library runtime path variable.
8894 +runpath_var=$runpath_var
8896 -# Object file extension for compiled RC test sources.
8898 -_LT_AC_TAGVAR(objext, $1)=$objext
8899 +# This is the shared library path variable.
8900 +shlibpath_var=$shlibpath_var
8902 -# Code to be used in simple compile tests
8903 -lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
8904 +# Is shlibpath searched before the hard-coded library search path?
8905 +shlibpath_overrides_runpath=$shlibpath_overrides_runpath
8907 -# Code to be used in simple link tests
8908 -lt_simple_link_test_code="$lt_simple_compile_test_code"
8909 +# How to hardcode a shared library path into an executable.
8910 +hardcode_action=$_LT_AC_TAGVAR(hardcode_action, $1)
8912 -# ltmain only uses $CC for tagged configurations so make sure $CC is set.
8913 -_LT_AC_SYS_COMPILER
8914 +# Whether we should hardcode library paths into libraries.
8915 +hardcode_into_libs=$hardcode_into_libs
8917 -# Allow CC to be a program name with arguments.
8921 -_LT_AC_TAGVAR(compiler, $1)=$CC
8922 -_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes
8923 +# Flag to hardcode \$libdir into a binary during linking.
8924 +# This must work even if \$libdir does not exist.
8925 +hardcode_libdir_flag_spec=$lt_[]_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)
8927 -AC_LIBTOOL_CONFIG($1)
8928 +# If ld is used when linking, flag to hardcode \$libdir into
8929 +# a binary during linking. This must work even if \$libdir does
8931 +hardcode_libdir_flag_spec_ld=$lt_[]_LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)
8935 -])# AC_LIBTOOL_LANG_RC_CONFIG
8936 +# Whether we need a single -rpath flag with a separated argument.
8937 +hardcode_libdir_separator=$lt_[]_LT_AC_TAGVAR(hardcode_libdir_separator, $1)
8939 +# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
8940 +# resulting binary.
8941 +hardcode_direct=$_LT_AC_TAGVAR(hardcode_direct, $1)
8943 -# AC_LIBTOOL_CONFIG([TAGNAME])
8944 -# ----------------------------
8945 -# If TAGNAME is not passed, then create an initial libtool script
8946 -# with a default configuration from the untagged config vars. Otherwise
8947 -# add code to config.status for appending the configuration named by
8948 -# TAGNAME from the matching tagged config vars.
8949 -AC_DEFUN([AC_LIBTOOL_CONFIG],
8950 -[# The else clause should only fire when bootstrapping the
8951 -# libtool distribution, otherwise you forgot to ship ltmain.sh
8952 -# with your package, and you will get complaints that there are
8953 -# no rules to generate ltmain.sh.
8954 -if test -f "$ltmain"; then
8955 - # See if we are running on zsh, and set the options which allow our commands through
8956 - # without removal of \ escapes.
8957 - if test -n "${ZSH_VERSION+set}" ; then
8958 - setopt NO_GLOB_SUBST
8960 - # Now quote all the things that may contain metacharacters while being
8961 - # careful not to overquote the AC_SUBSTed values. We take copies of the
8962 - # variables and quote the copies for generation of the libtool script.
8963 - for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
8965 - libname_spec library_names_spec soname_spec extract_expsyms_cmds \
8966 - old_striplib striplib file_magic_cmd finish_cmds finish_eval \
8967 - deplibs_check_method reload_flag reload_cmds need_locks \
8968 - lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
8969 - lt_cv_sys_global_symbol_to_c_name_address \
8970 - sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
8971 - old_postinstall_cmds old_postuninstall_cmds \
8972 - _LT_AC_TAGVAR(compiler, $1) \
8973 - _LT_AC_TAGVAR(CC, $1) \
8974 - _LT_AC_TAGVAR(LD, $1) \
8975 - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1) \
8976 - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1) \
8977 - _LT_AC_TAGVAR(lt_prog_compiler_static, $1) \
8978 - _LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1) \
8979 - _LT_AC_TAGVAR(export_dynamic_flag_spec, $1) \
8980 - _LT_AC_TAGVAR(thread_safe_flag_spec, $1) \
8981 - _LT_AC_TAGVAR(whole_archive_flag_spec, $1) \
8982 - _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1) \
8983 - _LT_AC_TAGVAR(old_archive_cmds, $1) \
8984 - _LT_AC_TAGVAR(old_archive_from_new_cmds, $1) \
8985 - _LT_AC_TAGVAR(predep_objects, $1) \
8986 - _LT_AC_TAGVAR(postdep_objects, $1) \
8987 - _LT_AC_TAGVAR(predeps, $1) \
8988 - _LT_AC_TAGVAR(postdeps, $1) \
8989 - _LT_AC_TAGVAR(compiler_lib_search_path, $1) \
8990 - _LT_AC_TAGVAR(archive_cmds, $1) \
8991 - _LT_AC_TAGVAR(archive_expsym_cmds, $1) \
8992 - _LT_AC_TAGVAR(postinstall_cmds, $1) \
8993 - _LT_AC_TAGVAR(postuninstall_cmds, $1) \
8994 - _LT_AC_TAGVAR(old_archive_from_expsyms_cmds, $1) \
8995 - _LT_AC_TAGVAR(allow_undefined_flag, $1) \
8996 - _LT_AC_TAGVAR(no_undefined_flag, $1) \
8997 - _LT_AC_TAGVAR(export_symbols_cmds, $1) \
8998 - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1) \
8999 - _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1) \
9000 - _LT_AC_TAGVAR(hardcode_libdir_separator, $1) \
9001 - _LT_AC_TAGVAR(hardcode_automatic, $1) \
9002 - _LT_AC_TAGVAR(module_cmds, $1) \
9003 - _LT_AC_TAGVAR(module_expsym_cmds, $1) \
9004 - _LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1) \
9005 - _LT_AC_TAGVAR(exclude_expsyms, $1) \
9006 - _LT_AC_TAGVAR(include_expsyms, $1); do
9007 +# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
9008 +# resulting binary.
9009 +hardcode_minus_L=$_LT_AC_TAGVAR(hardcode_minus_L, $1)
9012 - _LT_AC_TAGVAR(old_archive_cmds, $1) | \
9013 - _LT_AC_TAGVAR(old_archive_from_new_cmds, $1) | \
9014 - _LT_AC_TAGVAR(archive_cmds, $1) | \
9015 - _LT_AC_TAGVAR(archive_expsym_cmds, $1) | \
9016 - _LT_AC_TAGVAR(module_cmds, $1) | \
9017 - _LT_AC_TAGVAR(module_expsym_cmds, $1) | \
9018 - _LT_AC_TAGVAR(old_archive_from_expsyms_cmds, $1) | \
9019 - _LT_AC_TAGVAR(export_symbols_cmds, $1) | \
9020 - extract_expsyms_cmds | reload_cmds | finish_cmds | \
9021 - postinstall_cmds | postuninstall_cmds | \
9022 - old_postinstall_cmds | old_postuninstall_cmds | \
9023 - sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
9024 - # Double-quote double-evaled strings.
9025 - eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
9028 - eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
9032 +# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
9033 +# the resulting binary.
9034 +hardcode_shlibpath_var=$_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)
9037 - *'\[$]0 --fallback-echo"')
9038 - lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\[$]0 --fallback-echo"[$]/[$]0 --fallback-echo"/'`
9041 +# Set to yes if building a shared library automatically hardcodes DIR into the library
9042 +# and all subsequent libraries and executables linked against it.
9043 +hardcode_automatic=$_LT_AC_TAGVAR(hardcode_automatic, $1)
9046 - [cfgfile="${ofile}T"
9047 - trap "$rm \"$cfgfile\"; exit 1" 1 2 15
9049 - AC_MSG_NOTICE([creating $ofile])],
9050 - [cfgfile="$ofile"])
9051 +# Variables whose values should be saved in libtool wrapper scripts and
9052 +# restored at relink time.
9053 +variables_saved_for_relink="$variables_saved_for_relink"
9055 - cat <<__EOF__ >> "$cfgfile"
9058 +# Whether libtool must link a program against all its dependency libraries.
9059 +link_all_deplibs=$_LT_AC_TAGVAR(link_all_deplibs, $1)
9061 -# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
9062 -# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
9063 -# NOTE: Changes made to this file will be lost: look at ltmain.sh.
9065 -# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
9066 -# Free Software Foundation, Inc.
9068 -# This file is part of GNU Libtool:
9069 -# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
9071 -# This program is free software; you can redistribute it and/or modify
9072 -# it under the terms of the GNU General Public License as published by
9073 -# the Free Software Foundation; either version 2 of the License, or
9074 -# (at your option) any later version.
9076 -# This program is distributed in the hope that it will be useful, but
9077 -# WITHOUT ANY WARRANTY; without even the implied warranty of
9078 -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
9079 -# General Public License for more details.
9081 -# You should have received a copy of the GNU General Public License
9082 -# along with this program; if not, write to the Free Software
9083 -# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
9085 -# As a special exception to the GNU General Public License, if you
9086 -# distribute this file as part of a program that contains a
9087 -# configuration script generated by Autoconf, you may include it under
9088 -# the same distribution terms that you use for the rest of that program.
9089 +# Compile-time system search path for libraries
9090 +sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
9092 -# A sed program that does not truncate output.
9094 +# Run-time system search path for libraries
9095 +sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
9097 -# Sed that helps us avoid accidentally triggering echo(1) options like -n.
9098 -Xsed="$SED -e s/^X//"
9099 +# Fix the shell variable \$srcfile for the compiler.
9100 +fix_srcfile_path="$_LT_AC_TAGVAR(fix_srcfile_path, $1)"
9102 -# The HP-UX ksh and POSIX shell print the target directory to stdout
9103 -# if CDPATH is set.
9104 -if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
9105 +# Set to yes if exported symbols are required.
9106 +always_export_symbols=$_LT_AC_TAGVAR(always_export_symbols, $1)
9108 -# The names of the tagged configurations supported by this script.
9110 +# The commands to list exported symbols.
9111 +export_symbols_cmds=$lt_[]_LT_AC_TAGVAR(export_symbols_cmds, $1)
9113 -# ### BEGIN LIBTOOL CONFIG],
9114 -[# ### BEGIN LIBTOOL TAG CONFIG: $tagname])
9115 +# The commands to extract the exported symbol list from a shared archive.
9116 +extract_expsyms_cmds=$lt_extract_expsyms_cmds
9118 -# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
9119 +# Symbols that should not be listed in the preloaded symbols.
9120 +exclude_expsyms=$lt_[]_LT_AC_TAGVAR(exclude_expsyms, $1)
9122 -# Shell to use when invoking shell scripts.
9124 +# Symbols that must always be exported.
9125 +include_expsyms=$lt_[]_LT_AC_TAGVAR(include_expsyms, $1)
9127 -# Whether or not to build shared libraries.
9128 -build_libtool_libs=$enable_shared
9130 +[# ### END LIBTOOL CONFIG],
9131 +[# ### END LIBTOOL TAG CONFIG: $tagname])
9133 -# Whether or not to build static libraries.
9134 -build_old_libs=$enable_static
9137 -# Whether or not to add -lc for building shared libraries.
9138 -build_libtool_need_lc=$_LT_AC_TAGVAR(archive_cmds_need_lc, $1)
9142 + cat <<\EOF >> "$cfgfile"
9144 -# Whether or not to disallow shared libs when runtime libs are static
9145 -allow_libtool_libs_with_static_runtimes=$_LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)
9146 +# AIX sometimes has problems with the GCC collect2 program. For some
9147 +# reason, if we set the COLLECT_NAMES environment variable, the problems
9148 +# vanish in a puff of smoke.
9149 +if test "X${COLLECT_NAMES+set}" != Xset; then
9151 + export COLLECT_NAMES
9157 -# Whether or not to optimize for fast installation.
9158 -fast_install=$enable_fast_install
9159 + # We use sed instead of cat because bash on DJGPP gets confused if
9160 + # if finds mixed CR/LF and LF-only lines. Since sed operates in
9161 + # text mode, it properly converts lines to CR/LF. This bash problem
9162 + # is reportedly fixed, but why not run on old versions too?
9163 + sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
9166 -host_alias=$host_alias
9168 + mv -f "$cfgfile" "$ofile" || \
9169 + (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
9173 + # If there is no Makefile yet, we rely on a make rule to execute
9174 + # `config.status --recheck' to rerun these tests and create the
9175 + # libtool script then.
9176 + ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
9177 + if test -f "$ltmain_in"; then
9178 + test -f Makefile && make "$ltmain"
9181 +])# AC_LIBTOOL_CONFIG
9183 -# An echo program that does not interpret backslashes.
9188 -AR_FLAGS=$lt_AR_FLAGS
9189 +# AC_LIBTOOL_PROG_COMPILER_NO_RTTI([TAGNAME])
9190 +# -------------------------------------------
9191 +AC_DEFUN([AC_LIBTOOL_PROG_COMPILER_NO_RTTI],
9192 +[AC_REQUIRE([_LT_AC_SYS_COMPILER])dnl
9196 +_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=
9198 -# A language-specific compiler.
9199 -CC=$lt_[]_LT_AC_TAGVAR(compiler, $1)
9200 +if test "$GCC" = yes; then
9201 + _LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin'
9203 -# Is the compiler the GNU C compiler?
9204 -with_gcc=$_LT_AC_TAGVAR(GCC, $1)
9205 + AC_LIBTOOL_COMPILER_OPTION([if $compiler supports -fno-rtti -fno-exceptions],
9206 + lt_cv_prog_compiler_rtti_exceptions,
9207 + [-fno-rtti -fno-exceptions], [],
9208 + [_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)="$_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1) -fno-rtti -fno-exceptions"])
9210 +])# AC_LIBTOOL_PROG_COMPILER_NO_RTTI
9215 -# The linker used to build libraries.
9216 -LD=$lt_[]_LT_AC_TAGVAR(LD, $1)
9217 +# AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE
9218 +# ---------------------------------
9219 +AC_DEFUN([AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE],
9220 +[AC_REQUIRE([AC_CANONICAL_HOST])
9221 +AC_REQUIRE([AC_PROG_NM])
9222 +AC_REQUIRE([AC_OBJEXT])
9223 +# Check for command to grab the raw symbol name followed by C symbol from nm.
9224 +AC_MSG_CHECKING([command to parse $NM output from $compiler object])
9225 +AC_CACHE_VAL([lt_cv_sys_global_symbol_pipe],
9227 +# These are sane defaults that work on at least a few old systems.
9228 +# [They come from Ultrix. What could be older than Ultrix?!! ;)]
9230 -# Whether we need hard or soft links.
9232 +# Character class describing NM global symbol codes.
9233 +symcode='[[BCDEGRST]]'
9235 -# A BSD-compatible nm program.
9237 +# Regexp to match symbols that can be accessed directly from C.
9238 +sympat='\([[_A-Za-z]][[_A-Za-z0-9]]*\)'
9240 -# A symbol stripping program
9242 +# Transform an extracted symbol line into a proper C declaration
9243 +lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
9245 -# Used to examine libraries when file_magic_cmd begins "file"
9246 -MAGIC_CMD=$MAGIC_CMD
9248 -# Used on cygwin: DLL creation program.
9251 -# Used on cygwin: object dumper.
9254 -# Used on cygwin: assembler.
9257 -# The name of the directory that contains temporary libtool files.
9260 -# How to create reloadable object files.
9261 -reload_flag=$lt_reload_flag
9262 -reload_cmds=$lt_reload_cmds
9264 -# How to pass a linker flag through the compiler.
9265 -wl=$lt_[]_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)
9267 -# Object file suffix (normally "o").
9268 -objext="$ac_objext"
9270 -# Old archive suffix (normally "a").
9273 -# Shared library suffix (normally ".so").
9274 -shrext_cmds='$shrext_cmds'
9276 -# Executable file suffix (normally "").
9279 -# Additional compiler flags for building library objects.
9280 -pic_flag=$lt_[]_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)
9283 -# What is the maximum length of a command?
9284 -max_cmd_len=$lt_cv_sys_max_cmd_len
9286 -# Does compiler simultaneously support -c and -o options?
9287 -compiler_c_o=$lt_[]_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)
9289 -# Must we lock files when doing compilation ?
9290 -need_locks=$lt_need_locks
9292 -# Do we need the lib prefix for modules?
9293 -need_lib_prefix=$need_lib_prefix
9294 +# Transform an extracted symbol line into symbol name and symbol address
9295 +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'"
9297 -# Do we need a version for libraries?
9298 -need_version=$need_version
9299 +# Define system-specific variables.
9302 + symcode='[[BCDT]]'
9304 +cygwin* | mingw* | pw32*)
9305 + symcode='[[ABCDGISTW]]'
9307 +hpux*) # Its linker distinguishes data from code symbols
9308 + if test "$host_cpu" = ia64; then
9309 + symcode='[[ABCDEGRST]]'
9311 + lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9312 + 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'"
9314 +linux* | k*bsd*-gnu)
9315 + if test "$host_cpu" = ia64; then
9316 + symcode='[[ABCDGIRSTW]]'
9317 + lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9318 + 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'"
9321 +irix* | nonstopux*)
9322 + symcode='[[BCDEGRST]]'
9325 + symcode='[[BCDEGQRST]]'
9328 + symcode='[[BDRT]]'
9336 +sysv5* | sco5v6* | unixware* | OpenUNIX*)
9337 + symcode='[[ABDT]]'
9340 + symcode='[[DFNSTU]]'
9344 -# Whether dlopen is supported.
9345 -dlopen_support=$enable_dlopen
9346 +# Handle CRLF in mingw tool chain
9350 + opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
9354 -# Whether dlopen of programs is supported.
9355 -dlopen_self=$enable_dlopen_self
9356 +# If we're using GNU nm, then use its standard symbol codes.
9357 +case `$NM -V 2>&1` in
9358 +*GNU* | *'with BFD'*)
9359 + symcode='[[ABCDGIRSTW]]' ;;
9362 -# Whether dlopen of statically linked programs is supported.
9363 -dlopen_self_static=$enable_dlopen_self_static
9364 +# Try without a prefix undercore, then with it.
9365 +for ac_symprfx in "" "_"; do
9367 -# Compiler flag to prevent dynamic linking.
9368 -link_static_flag=$lt_[]_LT_AC_TAGVAR(lt_prog_compiler_static, $1)
9369 + # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
9370 + symxfrm="\\1 $ac_symprfx\\2 \\2"
9372 -# Compiler flag to turn off builtin functions.
9373 -no_builtin_flag=$lt_[]_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)
9374 + # Write the raw and C identifiers.
9375 + lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[[ ]]\($symcode$symcode*\)[[ ]][[ ]]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
9377 -# Compiler flag to allow reflexive dlopens.
9378 -export_dynamic_flag_spec=$lt_[]_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)
9379 + # Check to see that the pipe works correctly.
9382 -# Compiler flag to generate shared objects directly from archives.
9383 -whole_archive_flag_spec=$lt_[]_LT_AC_TAGVAR(whole_archive_flag_spec, $1)
9385 + cat > conftest.$ac_ext <<EOF
9390 +void nm_test_func(){}
9394 +int main(){nm_test_var='a';nm_test_func();return(0);}
9397 -# Compiler flag to generate thread-safe objects.
9398 -thread_safe_flag_spec=$lt_[]_LT_AC_TAGVAR(thread_safe_flag_spec, $1)
9399 + if AC_TRY_EVAL(ac_compile); then
9400 + # Now try to grab the symbols.
9402 + if AC_TRY_EVAL(NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) && test -s "$nlist"; then
9403 + # Try sorting and uniquifying the output.
9404 + if sort "$nlist" | uniq > "$nlist"T; then
9405 + mv -f "$nlist"T "$nlist"
9410 -# Library versioning type.
9411 -version_type=$version_type
9412 + # Make sure that we snagged all the symbols we need.
9413 + if grep ' nm_test_var$' "$nlist" >/dev/null; then
9414 + if grep ' nm_test_func$' "$nlist" >/dev/null; then
9415 + cat <<EOF > conftest.$ac_ext
9420 -# Format of library name prefix.
9421 -libname_spec=$lt_libname_spec
9423 + # Now generate the symbol file.
9424 + eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
9426 -# List of archive names. First name is the real one, the rest are links.
9427 -# The last name is the one that the linker finds with -lNAME.
9428 -library_names_spec=$lt_library_names_spec
9429 + cat <<EOF >> conftest.$ac_ext
9430 +#if defined (__STDC__) && __STDC__
9431 +# define lt_ptr_t void *
9433 +# define lt_ptr_t char *
9437 -# The coded name of the library, if different from the real name.
9438 -soname_spec=$lt_soname_spec
9439 +/* The mapping between symbol names and symbols. */
9444 +lt_preloaded_symbols[[]] =
9447 + $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
9448 + cat <<\EOF >> conftest.$ac_ext
9452 -# Commands used to build and install an old-style archive.
9454 -old_archive_cmds=$lt_[]_LT_AC_TAGVAR(old_archive_cmds, $1)
9455 -old_postinstall_cmds=$lt_old_postinstall_cmds
9456 -old_postuninstall_cmds=$lt_old_postuninstall_cmds
9461 + # Now try linking the two files.
9462 + mv conftest.$ac_objext conftstm.$ac_objext
9463 + lt_save_LIBS="$LIBS"
9464 + lt_save_CFLAGS="$CFLAGS"
9465 + LIBS="conftstm.$ac_objext"
9466 + CFLAGS="$CFLAGS$_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)"
9467 + if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext}; then
9470 + LIBS="$lt_save_LIBS"
9471 + CFLAGS="$lt_save_CFLAGS"
9473 + echo "cannot find nm_test_func in $nlist" >&AS_MESSAGE_LOG_FD
9476 + echo "cannot find nm_test_var in $nlist" >&AS_MESSAGE_LOG_FD
9479 + echo "cannot run $lt_cv_sys_global_symbol_pipe" >&AS_MESSAGE_LOG_FD
9482 + echo "$progname: failed program was:" >&AS_MESSAGE_LOG_FD
9483 + cat conftest.$ac_ext >&5
9485 + rm -f conftest* conftst*
9487 -# Create an old-style archive from a shared archive.
9488 -old_archive_from_new_cmds=$lt_[]_LT_AC_TAGVAR(old_archive_from_new_cmds, $1)
9489 + # Do not use the global_symbol_pipe unless it works.
9490 + if test "$pipe_works" = yes; then
9493 + lt_cv_sys_global_symbol_pipe=
9497 +if test -z "$lt_cv_sys_global_symbol_pipe"; then
9498 + lt_cv_sys_global_symbol_to_cdecl=
9500 +if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
9501 + AC_MSG_RESULT(failed)
9505 +]) # AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE
9507 -# Create a temporary old-style archive to link instead of a shared archive.
9508 -old_archive_from_expsyms_cmds=$lt_[]_LT_AC_TAGVAR(old_archive_from_expsyms_cmds, $1)
9510 -# Commands used to build and install a shared archive.
9511 -archive_cmds=$lt_[]_LT_AC_TAGVAR(archive_cmds, $1)
9512 -archive_expsym_cmds=$lt_[]_LT_AC_TAGVAR(archive_expsym_cmds, $1)
9513 -postinstall_cmds=$lt_postinstall_cmds
9514 -postuninstall_cmds=$lt_postuninstall_cmds
9515 +# AC_LIBTOOL_PROG_COMPILER_PIC([TAGNAME])
9516 +# ---------------------------------------
9517 +AC_DEFUN([AC_LIBTOOL_PROG_COMPILER_PIC],
9518 +[_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)=
9519 +_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
9520 +_LT_AC_TAGVAR(lt_prog_compiler_static, $1)=
9522 -# Commands used to build a loadable module (assumed same as above if empty)
9523 -module_cmds=$lt_[]_LT_AC_TAGVAR(module_cmds, $1)
9524 -module_expsym_cmds=$lt_[]_LT_AC_TAGVAR(module_expsym_cmds, $1)
9525 +AC_MSG_CHECKING([for $compiler option to produce PIC])
9526 + ifelse([$1],[CXX],[
9527 + # C++ specific cases for pic, static, wl, etc.
9528 + if test "$GXX" = yes; then
9529 + _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
9530 + _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static'
9532 -# Commands to strip libraries.
9533 -old_striplib=$lt_old_striplib
9534 -striplib=$lt_striplib
9537 + # All AIX code is PIC.
9538 + if test "$host_cpu" = ia64; then
9539 + # AIX 5 now supports IA64 processor
9540 + _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
9544 + # FIXME: we need at least 68020 code to build shared libraries, but
9545 + # adding the `-m68020' flag to GCC prevents building anything better,
9547 + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4'
9549 + beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9550 + # PIC is the default for these OSes.
9552 + mingw* | os2* | pw32*)
9553 + # This hack is so that the source file can tell whether it is being
9554 + # built for inclusion in a dll (and should export symbols for example).
9555 + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'
9557 + darwin* | rhapsody*)
9558 + # PIC is the default on this platform
9559 + # Common symbols not allowed in MH_DYLIB files
9560 + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common'
9563 + # DJGPP does not support shared libraries at all
9564 + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
9567 + # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9568 + # Instead, we relocate shared libraries at runtime.
9571 + if test -d /usr/nec; then
9572 + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic
9576 + # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9577 + # not for PA HP-UX.
9582 + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
9587 + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
9593 + # All AIX code is PIC.
9594 + if test "$host_cpu" = ia64; then
9595 + # AIX 5 now supports IA64 processor
9596 + _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
9598 + _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp'
9602 + case $cc_basename in
9604 + # Green Hills C++ Compiler
9605 + # _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"
9610 + # PIC is the default on this platform
9611 + # Common symbols not allowed in MH_DYLIB files
9612 + case $cc_basename in
9614 + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-qnocommon'
9615 + _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
9620 + case $cc_basename in
9622 + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
9625 + # Green Hills C++ Compiler
9626 + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
9632 + freebsd* | dragonfly*)
9633 + # FreeBSD uses GNU C++
9635 + hpux9* | hpux10* | hpux11*)
9636 + case $cc_basename in
9638 + _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
9639 + _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
9640 + if test "$host_cpu" != ia64; then
9641 + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
9645 + _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
9646 + _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
9652 + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
9661 + # This is c89, which is MS Visual C++ (no shared libs)
9662 + # Anyone wants to do a port?
9664 + irix5* | irix6* | nonstopux*)
9665 + case $cc_basename in
9667 + _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
9668 + _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
9669 + # CC pic flag -KPIC is the default.
9675 + linux* | k*bsd*-gnu)
9676 + case $cc_basename in
9678 + # KAI C++ Compiler
9679 + _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,'
9680 + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
9684 + _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
9685 + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
9686 + _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static'
9689 + # Portland Group C++ compiler.
9690 + _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
9691 + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fpic'
9692 + _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
9696 + # Make sure the PIC flag is empty. It appears that all Alpha
9697 + # Linux and Compaq Tru64 Unix objects are PIC.
9698 + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
9699 + _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
9710 + case $cc_basename in
9712 + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-W c,exportall'
9718 + netbsd* | netbsdelf*-gnu)
9720 + osf3* | osf4* | osf5*)
9721 + case $cc_basename in
9723 + _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,'
9726 + # Rational C++ 2.4.1
9727 + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
9730 + # Digital/Compaq C++
9731 + _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
9732 + # Make sure the PIC flag is empty. It appears that all Alpha
9733 + # Linux and Compaq Tru64 Unix objects are PIC.
9734 + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
9735 + _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
9744 + case $cc_basename in
9746 + # Sun C++ 4.2, 5.x and Centerline C++
9747 + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
9748 + _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
9749 + _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
9752 + # Green Hills C++ Compiler
9753 + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-PIC'
9760 + case $cc_basename in
9763 + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
9764 + _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
9768 + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
9775 + case $cc_basename in
9777 + # NonStop-UX NCC 3.20
9778 + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
9784 + sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9785 + case $cc_basename in
9787 + _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
9788 + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
9789 + _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
9796 + _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
9802 + if test "$GCC" = yes; then
9803 + _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
9804 + _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static'
9806 -# Dependencies to place before the objects being linked to create a
9808 -predep_objects=$lt_[]_LT_AC_TAGVAR(predep_objects, $1)
9811 + # All AIX code is PIC.
9812 + if test "$host_cpu" = ia64; then
9813 + # AIX 5 now supports IA64 processor
9814 + _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
9818 -# Dependencies to place after the objects being linked to create a
9820 -postdep_objects=$lt_[]_LT_AC_TAGVAR(postdep_objects, $1)
9822 + # FIXME: we need at least 68020 code to build shared libraries, but
9823 + # adding the `-m68020' flag to GCC prevents building anything better,
9825 + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4'
9828 -# Dependencies to place before the objects being linked to create a
9830 -predeps=$lt_[]_LT_AC_TAGVAR(predeps, $1)
9831 + beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9832 + # PIC is the default for these OSes.
9835 -# Dependencies to place after the objects being linked to create a
9837 -postdeps=$lt_[]_LT_AC_TAGVAR(postdeps, $1)
9838 + mingw* | pw32* | os2*)
9839 + # This hack is so that the source file can tell whether it is being
9840 + # built for inclusion in a dll (and should export symbols for example).
9841 + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'
9844 -# The library search path used internally by the compiler when linking
9845 -# a shared library.
9846 -compiler_lib_search_path=$lt_[]_LT_AC_TAGVAR(compiler_lib_search_path, $1)
9847 + darwin* | rhapsody*)
9848 + # PIC is the default on this platform
9849 + # Common symbols not allowed in MH_DYLIB files
9850 + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common'
9853 -# Method to check whether dependent libraries are shared objects.
9854 -deplibs_check_method=$lt_deplibs_check_method
9856 + # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9857 + # Instead, we relocate shared libraries at runtime.
9860 -# Command to use when deplibs_check_method == file_magic.
9861 -file_magic_cmd=$lt_file_magic_cmd
9863 + # Just because we use GCC doesn't mean we suddenly get shared libraries
9864 + # on systems that don't support them.
9865 + _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
9869 -# Flag that allows shared libraries with undefined symbols to be built.
9870 -allow_undefined_flag=$lt_[]_LT_AC_TAGVAR(allow_undefined_flag, $1)
9872 + if test -d /usr/nec; then
9873 + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic
9877 -# Flag that forces no undefined symbols.
9878 -no_undefined_flag=$lt_[]_LT_AC_TAGVAR(no_undefined_flag, $1)
9880 + # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9881 + # not for PA HP-UX.
9887 + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
9892 -# Commands used to finish a libtool library installation in a directory.
9893 -finish_cmds=$lt_finish_cmds
9895 + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
9899 + # PORTME Check for flag to pass linker flags through the system compiler.
9902 + _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
9903 + if test "$host_cpu" = ia64; then
9904 + # AIX 5 now supports IA64 processor
9905 + _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
9907 + _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp'
9911 + # PIC is the default on this platform
9912 + # Common symbols not allowed in MH_DYLIB files
9913 + case $cc_basename in
9915 + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-qnocommon'
9916 + _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
9921 -# Same as above, but a single script fragment to be evaled but not shown.
9922 -finish_eval=$lt_finish_eval
9923 + mingw* | pw32* | os2*)
9924 + # This hack is so that the source file can tell whether it is being
9925 + # built for inclusion in a dll (and should export symbols for example).
9926 + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'
9929 -# Take the output of nm and produce a listing of raw symbols and C names.
9930 -global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
9931 + hpux9* | hpux10* | hpux11*)
9932 + _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
9933 + # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9934 + # not for PA HP-UX.
9940 + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
9943 + # Is there a better lt_prog_compiler_static that works with the bundled CC?
9944 + _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
9947 -# Transform the output of nm in a proper C declaration
9948 -global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
9949 + irix5* | irix6* | nonstopux*)
9950 + _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
9951 + # PIC (with -KPIC) is the default.
9952 + _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
9955 -# Transform the output of nm in a C name address pair
9956 -global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
9958 + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
9959 + _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
9962 -# This is the shared library runtime path variable.
9963 -runpath_var=$runpath_var
9964 + linux* | k*bsd*-gnu)
9965 + case $cc_basename in
9967 + _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
9968 + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
9969 + _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static'
9971 + pgcc* | pgf77* | pgf90* | pgf95*)
9972 + # Portland Group compilers (*not* the Pentium gcc compiler,
9973 + # which looks to be a dead project)
9974 + _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
9975 + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fpic'
9976 + _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
9979 + _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
9980 + # All Alpha code is PIC.
9981 + _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
9986 -# This is the shared library path variable.
9987 -shlibpath_var=$shlibpath_var
9988 + osf3* | osf4* | osf5*)
9989 + _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
9990 + # All OSF/1 code is PIC.
9991 + _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
9994 -# Is shlibpath searched before the hard-coded library search path?
9995 -shlibpath_overrides_runpath=$shlibpath_overrides_runpath
9997 + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
9998 + _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
9999 + case $cc_basename in
10000 + f77* | f90* | f95*)
10001 + _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ';;
10003 + _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,';;
10007 -# How to hardcode a shared library path into an executable.
10008 -hardcode_action=$_LT_AC_TAGVAR(hardcode_action, $1)
10010 + _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
10011 + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-PIC'
10012 + _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
10015 -# Whether we should hardcode library paths into libraries.
10016 -hardcode_into_libs=$hardcode_into_libs
10017 + sysv4 | sysv4.2uw2* | sysv4.3*)
10018 + _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
10019 + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
10020 + _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
10023 -# Flag to hardcode \$libdir into a binary during linking.
10024 -# This must work even if \$libdir does not exist.
10025 -hardcode_libdir_flag_spec=$lt_[]_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)
10027 + if test -d /usr/nec ;then
10028 + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-Kconform_pic'
10029 + _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
10033 + sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
10034 + _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
10035 + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
10036 + _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
10040 + _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
10041 + _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
10045 + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
10046 + _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
10050 + _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
10055 +AC_MSG_RESULT([$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)])
10058 +# Check to make sure the PIC flag actually works.
10060 +if test -n "$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)"; then
10061 + AC_LIBTOOL_COMPILER_OPTION([if $compiler PIC flag $_LT_AC_TAGVAR(lt_prog_compiler_pic, $1) works],
10062 + _LT_AC_TAGVAR(lt_prog_compiler_pic_works, $1),
10063 + [$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)ifelse([$1],[],[ -DPIC],[ifelse([$1],[CXX],[ -DPIC],[])])], [],
10064 + [case $_LT_AC_TAGVAR(lt_prog_compiler_pic, $1) in
10066 + *) _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=" $_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)" ;;
10068 + [_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
10069 + _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no])
10072 + # For platforms which do not support PIC, -DPIC is meaningless:
10074 + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
10077 + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)="$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)ifelse([$1],[],[ -DPIC],[ifelse([$1],[CXX],[ -DPIC],[])])"
10081 -# If ld is used when linking, flag to hardcode \$libdir into
10082 -# a binary during linking. This must work even if \$libdir does
10084 -hardcode_libdir_flag_spec_ld=$lt_[]_LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)
10086 +# Check to make sure the static flag actually works.
10088 +wl=$_LT_AC_TAGVAR(lt_prog_compiler_wl, $1) eval lt_tmp_static_flag=\"$_LT_AC_TAGVAR(lt_prog_compiler_static, $1)\"
10089 +AC_LIBTOOL_LINKER_OPTION([if $compiler static flag $lt_tmp_static_flag works],
10090 + _LT_AC_TAGVAR(lt_prog_compiler_static_works, $1),
10091 + $lt_tmp_static_flag,
10093 + [_LT_AC_TAGVAR(lt_prog_compiler_static, $1)=])
10096 -# Whether we need a single -rpath flag with a separated argument.
10097 -hardcode_libdir_separator=$lt_[]_LT_AC_TAGVAR(hardcode_libdir_separator, $1)
10099 -# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
10100 -# resulting binary.
10101 -hardcode_direct=$_LT_AC_TAGVAR(hardcode_direct, $1)
10102 +# AC_LIBTOOL_PROG_LD_SHLIBS([TAGNAME])
10103 +# ------------------------------------
10104 +# See if the linker supports building shared libraries.
10105 +AC_DEFUN([AC_LIBTOOL_PROG_LD_SHLIBS],
10106 +[AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries])
10107 +ifelse([$1],[CXX],[
10108 + _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10111 + # If we're using GNU nm, then we don't want the "-C" option.
10112 + # -C means demangle to AIX nm, but means don't demangle with GNU nm
10113 + if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
10114 + _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'
10116 + _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'
10120 + _LT_AC_TAGVAR(export_symbols_cmds, $1)="$ltdll_cmds"
10122 + cygwin* | mingw*)
10123 + _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGRS]] /s/.* \([[^ ]]*\)/\1 DATA/;/^.* __nm__/s/^.* __nm__\([[^ ]]*\) [[^ ]]*/\1 DATA/;/^I /d;/^[[AITW]] /s/.* //'\'' | sort | uniq > $export_symbols'
10125 + linux* | k*bsd*-gnu)
10126 + _LT_AC_TAGVAR(link_all_deplibs, $1)=no
10129 + _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10134 + _LT_AC_TAGVAR(allow_undefined_flag, $1)=
10135 + _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=no
10136 + _LT_AC_TAGVAR(archive_cmds, $1)=
10137 + _LT_AC_TAGVAR(archive_expsym_cmds, $1)=
10138 + _LT_AC_TAGVAR(old_archive_From_new_cmds, $1)=
10139 + _LT_AC_TAGVAR(old_archive_from_expsyms_cmds, $1)=
10140 + _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)=
10141 + _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
10142 + _LT_AC_TAGVAR(thread_safe_flag_spec, $1)=
10143 + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=
10144 + _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
10145 + _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
10146 + _LT_AC_TAGVAR(hardcode_direct, $1)=no
10147 + _LT_AC_TAGVAR(hardcode_minus_L, $1)=no
10148 + _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
10149 + _LT_AC_TAGVAR(link_all_deplibs, $1)=unknown
10150 + _LT_AC_TAGVAR(hardcode_automatic, $1)=no
10151 + _LT_AC_TAGVAR(module_cmds, $1)=
10152 + _LT_AC_TAGVAR(module_expsym_cmds, $1)=
10153 + _LT_AC_TAGVAR(always_export_symbols, $1)=no
10154 + _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10155 + # include_expsyms should be a list of space-separated symbols to be *always*
10156 + # included in the symbol list
10157 + _LT_AC_TAGVAR(include_expsyms, $1)=
10158 + # exclude_expsyms can be an extended regexp of symbols to exclude
10159 + # it will be wrapped by ` (' and `)$', so one must not match beginning or
10160 + # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
10161 + # as well as any symbol that contains `d'.
10162 + _LT_AC_TAGVAR(exclude_expsyms, $1)="_GLOBAL_OFFSET_TABLE_"
10163 + # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
10164 + # platforms (ab)use it in PIC code, but their linkers get confused if
10165 + # the symbol is explicitly referenced. Since portable code cannot
10166 + # rely on this symbol name, it's probably fine to never include it in
10167 + # preloaded symbol tables.
10168 + extract_expsyms_cmds=
10169 + # Just being paranoid about ensuring that cc_basename is set.
10170 + _LT_CC_BASENAME([$compiler])
10172 + cygwin* | mingw* | pw32*)
10173 + # FIXME: the MSVC++ port hasn't been tested in a loooong time
10174 + # When not using gcc, we currently assume that we are using
10175 + # Microsoft Visual C++.
10176 + if test "$GCC" != yes; then
10181 + # we just hope/assume this is gcc and not c89 (= MSVC++)
10189 -# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
10190 -# resulting binary.
10191 -hardcode_minus_L=$_LT_AC_TAGVAR(hardcode_minus_L, $1)
10192 + _LT_AC_TAGVAR(ld_shlibs, $1)=yes
10193 + if test "$with_gnu_ld" = yes; then
10194 + # If archive_cmds runs LD, not CC, wlarc should be empty
10197 -# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
10198 -# the resulting binary.
10199 -hardcode_shlibpath_var=$_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)
10200 + # Set some defaults for GNU ld with shared library support. These
10201 + # are reset later if shared libraries are not supported. Putting them
10202 + # here allows them to be overridden if necessary.
10203 + runpath_var=LD_RUN_PATH
10204 + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir'
10205 + _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
10206 + # ancient GNU ld didn't support --whole-archive et. al.
10207 + if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
10208 + _LT_AC_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10210 + _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
10212 + supports_anon_versioning=no
10213 + case `$LD -v 2>/dev/null` in
10214 + *\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.10.*) ;; # catch versions < 2.11
10215 + *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
10216 + *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
10217 + *\ 2.11.*) ;; # other 2.11 versions
10218 + *) supports_anon_versioning=yes ;;
10221 -# Set to yes if building a shared library automatically hardcodes DIR into the library
10222 -# and all subsequent libraries and executables linked against it.
10223 -hardcode_automatic=$_LT_AC_TAGVAR(hardcode_automatic, $1)
10224 + # See if GNU ld supports shared libraries.
10226 + aix3* | aix4* | aix5*)
10227 + # On AIX/PPC, the GNU linker is very broken
10228 + if test "$host_cpu" != ia64; then
10229 + _LT_AC_TAGVAR(ld_shlibs, $1)=no
10232 -# Variables whose values should be saved in libtool wrapper scripts and
10233 -# restored at relink time.
10234 -variables_saved_for_relink="$variables_saved_for_relink"
10235 +*** Warning: the GNU linker, at least up to release 2.9.1, is reported
10236 +*** to be unable to reliably create shared libraries on AIX.
10237 +*** Therefore, libtool is disabling shared libraries support. If you
10238 +*** really care for shared libraries, you may want to modify your PATH
10239 +*** so that a non-GNU linker is found, and then restart.
10241 -# Whether libtool must link a program against all its dependency libraries.
10242 -link_all_deplibs=$_LT_AC_TAGVAR(link_all_deplibs, $1)
10247 -# Compile-time system search path for libraries
10248 -sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
10250 + _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)'
10251 + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
10252 + _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
10254 -# Run-time system search path for libraries
10255 -sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
10256 + # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
10257 + # that the semantics of dynamic libraries on AmigaOS, at least up
10258 + # to version 4, is to share data among multiple programs linked
10259 + # with the same dynamic library. Since this doesn't match the
10260 + # behavior of shared libraries on other platforms, we can't use
10262 + _LT_AC_TAGVAR(ld_shlibs, $1)=no
10265 -# Fix the shell variable \$srcfile for the compiler.
10266 -fix_srcfile_path="$_LT_AC_TAGVAR(fix_srcfile_path, $1)"
10268 + if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
10269 + _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
10270 + # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
10271 + # support --undefined. This deserves some investigation. FIXME
10272 + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10274 + _LT_AC_TAGVAR(ld_shlibs, $1)=no
10278 -# Set to yes if exported symbols are required.
10279 -always_export_symbols=$_LT_AC_TAGVAR(always_export_symbols, $1)
10280 + cygwin* | mingw* | pw32*)
10281 + # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless,
10282 + # as there is no search path for DLLs.
10283 + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
10284 + _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
10285 + _LT_AC_TAGVAR(always_export_symbols, $1)=no
10286 + _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
10287 + _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGRS]] /s/.* \([[^ ]]*\)/\1 DATA/'\'' | $SED -e '\''/^[[AITW]] /s/.* //'\'' | sort | uniq > $export_symbols'
10289 -# The commands to list exported symbols.
10290 -export_symbols_cmds=$lt_[]_LT_AC_TAGVAR(export_symbols_cmds, $1)
10291 + if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
10292 + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10293 + # If the export-symbols file already is a .def file (1st line
10294 + # is EXPORTS), use it as is; otherwise, prepend...
10295 + _LT_AC_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10296 + cp $export_symbols $output_objdir/$soname.def;
10298 + echo EXPORTS > $output_objdir/$soname.def;
10299 + cat $export_symbols >> $output_objdir/$soname.def;
10301 + $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10303 + _LT_AC_TAGVAR(ld_shlibs, $1)=no
10307 -# The commands to extract the exported symbol list from a shared archive.
10308 -extract_expsyms_cmds=$lt_extract_expsyms_cmds
10310 + _LT_AC_TAGVAR(hardcode_direct, $1)=no
10311 + _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
10312 + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
10313 + _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
10314 + # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
10315 + # Instead, shared libraries are loaded at an image base (0x10000000 by
10316 + # default) and relocated if they conflict, which is a slow very memory
10317 + # consuming and fragmenting process. To avoid this, we pick a random,
10318 + # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
10319 + # time. Moving up from 0x10000000 also allows more sbrk(2) space.
10320 + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
10321 + _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
10324 -# Symbols that should not be listed in the preloaded symbols.
10325 -exclude_expsyms=$lt_[]_LT_AC_TAGVAR(exclude_expsyms, $1)
10326 + linux* | k*bsd*-gnu)
10327 + if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
10329 + case $cc_basename,$host_cpu in
10330 + pgcc*) # Portland Group C compiler
10331 + _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
10332 + tmp_addflag=' $pic_flag'
10334 + pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
10335 + _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
10336 + tmp_addflag=' $pic_flag -Mnomain' ;;
10337 + ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
10338 + tmp_addflag=' -i_dynamic' ;;
10339 + efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
10340 + tmp_addflag=' -i_dynamic -nofor_main' ;;
10341 + ifc* | ifort*) # Intel Fortran compiler
10342 + tmp_addflag=' -nofor_main' ;;
10344 + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10346 -# Symbols that must always be exported.
10347 -include_expsyms=$lt_[]_LT_AC_TAGVAR(include_expsyms, $1)
10348 + if test $supports_anon_versioning = yes; then
10349 + _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $output_objdir/$libname.ver~
10350 + cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10351 + $echo "local: *; };" >> $output_objdir/$libname.ver~
10352 + $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
10354 + _LT_AC_TAGVAR(link_all_deplibs, $1)=no
10356 + _LT_AC_TAGVAR(ld_shlibs, $1)=no
10361 -[# ### END LIBTOOL CONFIG],
10362 -[# ### END LIBTOOL TAG CONFIG: $tagname])
10363 + netbsd* | netbsdelf*-gnu)
10364 + if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
10365 + _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
10368 + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10369 + _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'
10375 + if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
10376 + _LT_AC_TAGVAR(ld_shlibs, $1)=no
10382 - cat <<\EOF >> "$cfgfile"
10383 +*** Warning: The releases 2.8.* of the GNU linker cannot reliably
10384 +*** create shared libraries on Solaris systems. Therefore, libtool
10385 +*** is disabling shared libraries support. We urge you to upgrade GNU
10386 +*** binutils to release 2.9.1 or newer. Another option is to modify
10387 +*** your PATH or compiler configuration so that the native linker is
10388 +*** used, and then restart.
10390 -# AIX sometimes has problems with the GCC collect2 program. For some
10391 -# reason, if we set the COLLECT_NAMES environment variable, the problems
10392 -# vanish in a puff of smoke.
10393 -if test "X${COLLECT_NAMES+set}" != Xset; then
10395 - export COLLECT_NAMES
10400 + elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
10401 + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10402 + _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'
10404 + _LT_AC_TAGVAR(ld_shlibs, $1)=no
10408 - # We use sed instead of cat because bash on DJGPP gets confused if
10409 - # if finds mixed CR/LF and LF-only lines. Since sed operates in
10410 - # text mode, it properly converts lines to CR/LF. This bash problem
10411 - # is reportedly fixed, but why not run on old versions too?
10412 - sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
10413 + sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
10414 + case `$LD -v 2>&1` in
10415 + *\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.1[[0-5]].*)
10416 + _LT_AC_TAGVAR(ld_shlibs, $1)=no
10417 + cat <<_LT_EOF 1>&2
10419 +*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
10420 +*** reliably create shared libraries on SCO systems. Therefore, libtool
10421 +*** is disabling shared libraries support. We urge you to upgrade GNU
10422 +*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
10423 +*** your PATH or compiler configuration so that the native linker is
10424 +*** used, and then restart.
10426 - mv -f "$cfgfile" "$ofile" || \
10427 - (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
10428 - chmod +x "$ofile"
10431 - # If there is no Makefile yet, we rely on a make rule to execute
10432 - # `config.status --recheck' to rerun these tests and create the
10433 - # libtool script then.
10434 - ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
10435 - if test -f "$ltmain_in"; then
10436 - test -f Makefile && make "$ltmain"
10439 -])# AC_LIBTOOL_CONFIG
10443 + if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
10444 + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
10445 + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
10446 + _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
10448 + _LT_AC_TAGVAR(ld_shlibs, $1)=no
10455 + _LT_AC_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10457 + _LT_AC_TAGVAR(hardcode_direct, $1)=yes
10458 + _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
10461 -# AC_LIBTOOL_PROG_COMPILER_NO_RTTI([TAGNAME])
10462 -# -------------------------------------------
10463 -AC_DEFUN([AC_LIBTOOL_PROG_COMPILER_NO_RTTI],
10464 -[AC_REQUIRE([_LT_AC_SYS_COMPILER])dnl
10466 + if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
10467 + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10468 + _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'
10470 + _LT_AC_TAGVAR(ld_shlibs, $1)=no
10475 -_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=
10476 + if test "$_LT_AC_TAGVAR(ld_shlibs, $1)" = no; then
10478 + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=
10479 + _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)=
10480 + _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
10483 + # PORTME fill in a description of your system's linker (not GNU ld)
10486 + _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
10487 + _LT_AC_TAGVAR(always_export_symbols, $1)=yes
10488 + _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'
10489 + # Note: this linker hardcodes the directories in LIBPATH if there
10490 + # are no directories specified by -L.
10491 + _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
10492 + if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
10493 + # Neither direct hardcoding nor static linking is supported with a
10494 + # broken collect2.
10495 + _LT_AC_TAGVAR(hardcode_direct, $1)=unsupported
10499 -if test "$GCC" = yes; then
10500 - _LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin'
10502 + if test "$host_cpu" = ia64; then
10503 + # On IA64, the linker does run time linking by default, so we don't
10504 + # have to do anything special.
10505 + aix_use_runtimelinking=no
10506 + exp_sym_flag='-Bexport'
10509 + # If we're using GNU nm, then we don't want the "-C" option.
10510 + # -C means demangle to AIX nm, but means don't demangle with GNU nm
10511 + if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
10512 + _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'
10514 + _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'
10516 + aix_use_runtimelinking=no
10518 - AC_LIBTOOL_COMPILER_OPTION([if $compiler supports -fno-rtti -fno-exceptions],
10519 - lt_cv_prog_compiler_rtti_exceptions,
10520 - [-fno-rtti -fno-exceptions], [],
10521 - [_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)="$_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1) -fno-rtti -fno-exceptions"])
10523 -])# AC_LIBTOOL_PROG_COMPILER_NO_RTTI
10524 + # Test if we are trying to use run time linking or normal
10525 + # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10526 + # need to do runtime linking.
10527 + case $host_os in aix4.[[23]]|aix4.[[23]].*|aix5*)
10528 + for ld_flag in $LDFLAGS; do
10529 + if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
10530 + aix_use_runtimelinking=yes
10537 + exp_sym_flag='-bexport'
10538 + no_entry_flag='-bnoentry'
10541 -# AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE
10542 -# ---------------------------------
10543 -AC_DEFUN([AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE],
10544 -[AC_REQUIRE([AC_CANONICAL_HOST])
10545 -AC_REQUIRE([AC_PROG_NM])
10546 -AC_REQUIRE([AC_OBJEXT])
10547 -# Check for command to grab the raw symbol name followed by C symbol from nm.
10548 -AC_MSG_CHECKING([command to parse $NM output from $compiler object])
10549 -AC_CACHE_VAL([lt_cv_sys_global_symbol_pipe],
10551 -# These are sane defaults that work on at least a few old systems.
10552 -# [They come from Ultrix. What could be older than Ultrix?!! ;)]
10553 + # When large executables or shared objects are built, AIX ld can
10554 + # have problems creating the table of contents. If linking a library
10555 + # or program results in "error TOC overflow" add -mminimal-toc to
10556 + # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
10557 + # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10559 -# Character class describing NM global symbol codes.
10560 -symcode='[[BCDEGRST]]'
10561 + _LT_AC_TAGVAR(archive_cmds, $1)=''
10562 + _LT_AC_TAGVAR(hardcode_direct, $1)=yes
10563 + _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=':'
10564 + _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
10566 -# Regexp to match symbols that can be accessed directly from C.
10567 -sympat='\([[_A-Za-z]][[_A-Za-z0-9]]*\)'
10568 + if test "$GCC" = yes; then
10569 + case $host_os in aix4.[[012]]|aix4.[[012]].*)
10570 + # We only want to do this on AIX 4.2 and lower, the check
10571 + # below for broken collect2 doesn't work under 4.3+
10572 + collect2name=`${CC} -print-prog-name=collect2`
10573 + if test -f "$collect2name" && \
10574 + strings "$collect2name" | grep resolve_lib_name >/dev/null
10576 + # We have reworked collect2
10577 + _LT_AC_TAGVAR(hardcode_direct, $1)=yes
10579 + # We have old collect2
10580 + _LT_AC_TAGVAR(hardcode_direct, $1)=unsupported
10581 + # It fails to find uninstalled libraries when the uninstalled
10582 + # path is not listed in the libpath. Setting hardcode_minus_L
10583 + # to unsupported forces relinking
10584 + _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
10585 + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
10586 + _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
10590 + shared_flag='-shared'
10591 + if test "$aix_use_runtimelinking" = yes; then
10592 + shared_flag="$shared_flag "'${wl}-G'
10596 + if test "$host_cpu" = ia64; then
10597 + # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10598 + # chokes on -Wl,-G. The following line is correct:
10601 + if test "$aix_use_runtimelinking" = yes; then
10602 + shared_flag='${wl}-G'
10604 + shared_flag='${wl}-bM:SRE'
10609 -# Transform the above into a raw symbol and a C symbol.
10610 -symxfrm='\1 \2\3 \3'
10611 + # It seems that -bexpall does not export symbols beginning with
10612 + # underscore (_), so it is better to generate a list of symbols to export.
10613 + _LT_AC_TAGVAR(always_export_symbols, $1)=yes
10614 + if test "$aix_use_runtimelinking" = yes; then
10615 + # Warning - without using the other runtime loading flags (-brtl),
10616 + # -berok will link without error, but may produce a broken library.
10617 + _LT_AC_TAGVAR(allow_undefined_flag, $1)='-berok'
10618 + # Determine the default libpath from the value encoded in an empty executable.
10619 + _LT_AC_SYS_LIBPATH_AIX
10620 + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
10621 + _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
10623 + if test "$host_cpu" = ia64; then
10624 + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib'
10625 + _LT_AC_TAGVAR(allow_undefined_flag, $1)="-z nodefs"
10626 + _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
10628 + # Determine the default libpath from the value encoded in an empty executable.
10629 + _LT_AC_SYS_LIBPATH_AIX
10630 + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
10631 + # Warning - without using the other run time loading flags,
10632 + # -berok will link without error, but may produce a broken library.
10633 + _LT_AC_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok'
10634 + _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok'
10635 + # Exported symbols can be pulled into shared objects from archives
10636 + _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='$convenience'
10637 + _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes
10638 + # This is similar to how AIX traditionally builds its shared libraries.
10639 + _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
10644 -# Transform an extracted symbol line into a proper C declaration
10645 -lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
10647 + _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)'
10648 + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
10649 + _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
10650 + # see comment about different semantics on the GNU ld section
10651 + _LT_AC_TAGVAR(ld_shlibs, $1)=no
10654 -# Transform an extracted symbol line into symbol name and symbol address
10655 -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'"
10657 + _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)=-rdynamic
10660 -# Define system-specific variables.
10663 - symcode='[[BCDT]]'
10665 -cygwin* | mingw* | pw32*)
10666 - symcode='[[ABCDGISTW]]'
10668 -hpux*) # Its linker distinguishes data from code symbols
10669 - if test "$host_cpu" = ia64; then
10670 - symcode='[[ABCDEGRST]]'
10672 - lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
10673 - 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'"
10675 -irix* | nonstopux*)
10676 - symcode='[[BCDEGRST]]'
10679 - symcode='[[BCDEGQRST]]'
10681 -solaris* | sysv5*)
10682 - symcode='[[BDRT]]'
10685 - symcode='[[DFNSTU]]'
10688 + cygwin* | mingw* | pw32*)
10689 + # When not using gcc, we currently assume that we are using
10690 + # Microsoft Visual C++.
10691 + # hardcode_libdir_flag_spec is actually meaningless, as there is
10692 + # no search path for DLLs.
10693 + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=' '
10694 + _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
10695 + # Tell ltmain to make .lib files, not .a files.
10697 + # Tell ltmain to make .dll files, not .so files.
10698 + shrext_cmds=".dll"
10699 + # FIXME: Setting linknames here is a bad hack.
10700 + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
10701 + # The linker will automatically build a .lib file if we build a DLL.
10702 + _LT_AC_TAGVAR(old_archive_From_new_cmds, $1)='true'
10703 + # FIXME: Should let the user specify the lib program.
10704 + _LT_AC_TAGVAR(old_archive_cmds, $1)='lib /OUT:$oldlib$oldobjs$old_deplibs'
10705 + _LT_AC_TAGVAR(fix_srcfile_path, $1)='`cygpath -w "$srcfile"`'
10706 + _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
10709 -# Handle CRLF in mingw tool chain
10713 - opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
10716 + darwin* | rhapsody*)
10718 + rhapsody* | darwin1.[[012]])
10719 + _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-undefined ${wl}suppress'
10721 + *) # Darwin 1.3 on
10722 + if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
10723 + _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
10725 + case ${MACOSX_DEPLOYMENT_TARGET} in
10727 + _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
10730 + _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-undefined ${wl}dynamic_lookup'
10736 + _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
10737 + _LT_AC_TAGVAR(hardcode_direct, $1)=no
10738 + _LT_AC_TAGVAR(hardcode_automatic, $1)=yes
10739 + _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
10740 + _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=''
10741 + _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
10742 + if test "$GCC" = yes ; then
10743 + output_verbose_link_cmd='echo'
10744 + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
10745 + _LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
10746 + # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
10747 + _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}'
10748 + _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}'
10750 + case $cc_basename in
10752 + output_verbose_link_cmd='echo'
10753 + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
10754 + _LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
10755 + # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
10756 + _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
10757 + _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}'
10760 + _LT_AC_TAGVAR(ld_shlibs, $1)=no
10766 -# If we're using GNU nm, then use its standard symbol codes.
10767 -case `$NM -V 2>&1` in
10768 -*GNU* | *'with BFD'*)
10769 - symcode='[[ABCDGIRSTW]]' ;;
10772 + _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10773 + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
10774 + _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
10777 -# Try without a prefix undercore, then with it.
10778 -for ac_symprfx in "" "_"; do
10780 + _LT_AC_TAGVAR(ld_shlibs, $1)=no
10783 - # Write the raw and C identifiers.
10784 - lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[[ ]]\($symcode$symcode*\)[[ ]][[ ]]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
10785 + # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10786 + # support. Future versions do this automatically, but an explicit c++rt0.o
10787 + # does not break anything, and helps significantly (at the cost of a little
10790 + _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10791 + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
10792 + _LT_AC_TAGVAR(hardcode_direct, $1)=yes
10793 + _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
10796 - # Check to see that the pipe works correctly.
10798 + # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10800 + _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10801 + _LT_AC_TAGVAR(hardcode_direct, $1)=yes
10802 + _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
10803 + _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
10807 - cat > conftest.$ac_ext <<EOF
10808 -#ifdef __cplusplus
10812 -void nm_test_func(){}
10813 -#ifdef __cplusplus
10816 -int main(){nm_test_var='a';nm_test_func();return(0);}
10818 + # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10819 + freebsd* | dragonfly*)
10820 + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
10821 + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
10822 + _LT_AC_TAGVAR(hardcode_direct, $1)=yes
10823 + _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
10826 - if AC_TRY_EVAL(ac_compile); then
10827 - # Now try to grab the symbols.
10828 - nlist=conftest.nm
10829 - if AC_TRY_EVAL(NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) && test -s "$nlist"; then
10830 - # Try sorting and uniquifying the output.
10831 - if sort "$nlist" | uniq > "$nlist"T; then
10832 - mv -f "$nlist"T "$nlist"
10834 + if test "$GCC" = yes; then
10835 + _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'
10838 + _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'
10840 + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
10841 + _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
10842 + _LT_AC_TAGVAR(hardcode_direct, $1)=yes
10844 - # Make sure that we snagged all the symbols we need.
10845 - if grep ' nm_test_var$' "$nlist" >/dev/null; then
10846 - if grep ' nm_test_func$' "$nlist" >/dev/null; then
10847 - cat <<EOF > conftest.$ac_ext
10848 -#ifdef __cplusplus
10853 - # Now generate the symbol file.
10854 - eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
10856 - cat <<EOF >> conftest.$ac_ext
10857 -#if defined (__STDC__) && __STDC__
10858 -# define lt_ptr_t void *
10860 -# define lt_ptr_t char *
10864 -/* The mapping between symbol names and symbols. */
10866 - const char *name;
10867 - lt_ptr_t address;
10869 -lt_preloaded_symbols[[]] =
10872 - $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
10873 - cat <<\EOF >> conftest.$ac_ext
10874 - {0, (lt_ptr_t) 0}
10876 + # hardcode_minus_L: Not really in the search PATH,
10877 + # but as the default location of the library.
10878 + _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
10879 + _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
10882 -#ifdef __cplusplus
10886 - # Now try linking the two files.
10887 - mv conftest.$ac_objext conftstm.$ac_objext
10888 - lt_save_LIBS="$LIBS"
10889 - lt_save_CFLAGS="$CFLAGS"
10890 - LIBS="conftstm.$ac_objext"
10891 - CFLAGS="$CFLAGS$_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)"
10892 - if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext}; then
10895 - LIBS="$lt_save_LIBS"
10896 - CFLAGS="$lt_save_CFLAGS"
10898 - echo "cannot find nm_test_func in $nlist" >&AS_MESSAGE_LOG_FD
10901 + if test "$GCC" = yes -a "$with_gnu_ld" = no; then
10902 + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10904 - echo "cannot find nm_test_var in $nlist" >&AS_MESSAGE_LOG_FD
10905 + _LT_AC_TAGVAR(archive_cmds, $1)='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10908 - echo "cannot run $lt_cv_sys_global_symbol_pipe" >&AS_MESSAGE_LOG_FD
10911 - echo "$progname: failed program was:" >&AS_MESSAGE_LOG_FD
10912 - cat conftest.$ac_ext >&5
10914 - rm -f conftest* conftst*
10915 + if test "$with_gnu_ld" = no; then
10916 + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
10917 + _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
10919 - # Do not use the global_symbol_pipe unless it works.
10920 - if test "$pipe_works" = yes; then
10923 - lt_cv_sys_global_symbol_pipe=
10927 -if test -z "$lt_cv_sys_global_symbol_pipe"; then
10928 - lt_cv_sys_global_symbol_to_cdecl=
10930 -if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
10931 - AC_MSG_RESULT(failed)
10933 - AC_MSG_RESULT(ok)
10935 -]) # AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE
10936 + _LT_AC_TAGVAR(hardcode_direct, $1)=yes
10937 + _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
10939 + # hardcode_minus_L: Not really in the search PATH,
10940 + # but as the default location of the library.
10941 + _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
10945 -# AC_LIBTOOL_PROG_COMPILER_PIC([TAGNAME])
10946 -# ---------------------------------------
10947 -AC_DEFUN([AC_LIBTOOL_PROG_COMPILER_PIC],
10948 -[_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)=
10949 -_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
10950 -_LT_AC_TAGVAR(lt_prog_compiler_static, $1)=
10952 + if test "$GCC" = yes -a "$with_gnu_ld" = no; then
10953 + case $host_cpu in
10955 + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10958 + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10961 + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10965 + case $host_cpu in
10967 + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10970 + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10973 + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10977 + if test "$with_gnu_ld" = no; then
10978 + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
10979 + _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
10981 -AC_MSG_CHECKING([for $compiler option to produce PIC])
10982 - ifelse([$1],[CXX],[
10983 - # C++ specific cases for pic, static, wl, etc.
10984 - if test "$GXX" = yes; then
10985 - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
10986 - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static'
10987 + case $host_cpu in
10989 + _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='+b $libdir'
10990 + _LT_AC_TAGVAR(hardcode_direct, $1)=no
10991 + _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
10994 + _LT_AC_TAGVAR(hardcode_direct, $1)=yes
10995 + _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
10999 - # All AIX code is PIC.
11000 - if test "$host_cpu" = ia64; then
11001 - # AIX 5 now supports IA64 processor
11002 - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
11003 + # hardcode_minus_L: Not really in the search PATH,
11004 + # but as the default location of the library.
11005 + _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
11011 - # FIXME: we need at least 68020 code to build shared libraries, but
11012 - # adding the `-m68020' flag to GCC prevents building anything better,
11013 - # like `-m68040'.
11014 - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4'
11016 - beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
11017 - # PIC is the default for these OSes.
11019 - mingw* | os2* | pw32*)
11020 - # This hack is so that the source file can tell whether it is being
11021 - # built for inclusion in a dll (and should export symbols for example).
11022 - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'
11024 + irix5* | irix6* | nonstopux*)
11025 + if test "$GCC" = yes; then
11026 + _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'
11028 + _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'
11029 + _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='-rpath $libdir'
11031 + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
11032 + _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
11033 + _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
11035 - darwin* | rhapsody*)
11036 - # PIC is the default on this platform
11037 - # Common symbols not allowed in MH_DYLIB files
11038 - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common'
11040 + netbsd* | netbsdelf*-gnu)
11041 + if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
11042 + _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
11044 + _LT_AC_TAGVAR(archive_cmds, $1)='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
11046 + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
11047 + _LT_AC_TAGVAR(hardcode_direct, $1)=yes
11048 + _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
11051 - # DJGPP does not support shared libraries at all
11052 - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
11055 + _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11056 + _LT_AC_TAGVAR(hardcode_direct, $1)=yes
11057 + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
11058 + _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
11059 + _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
11062 - if test -d /usr/nec; then
11063 - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic
11066 + _LT_AC_TAGVAR(hardcode_direct, $1)=yes
11067 + _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
11068 + if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11069 + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11070 + _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
11071 + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
11072 + _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
11075 + openbsd[[01]].* | openbsd2.[[0-7]] | openbsd2.[[0-7]].*)
11076 + _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11077 + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
11080 + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11081 + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
11087 - # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
11088 - # not for PA HP-UX.
11089 - case "$host_cpu" in
11093 - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
11098 - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
11101 + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
11102 + _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
11103 + _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
11104 + _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'
11105 + _LT_AC_TAGVAR(old_archive_From_new_cmds, $1)='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
11111 - # All AIX code is PIC.
11112 - if test "$host_cpu" = ia64; then
11113 - # AIX 5 now supports IA64 processor
11114 - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
11116 - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp'
11120 - case $cc_basename in
11122 - # Green Hills C++ Compiler
11123 - # _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"
11128 - case $cc_basename in
11130 - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
11133 - # Green Hills C++ Compiler
11134 - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
11140 - freebsd* | kfreebsd*-gnu)
11141 - # FreeBSD uses GNU C++
11143 - hpux9* | hpux10* | hpux11*)
11144 - case $cc_basename in
11146 - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
11147 - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
11148 - if test "$host_cpu" != ia64; then
11149 - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
11153 - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
11154 - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
11155 - case "$host_cpu" in
11160 - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
11168 - irix5* | irix6* | nonstopux*)
11169 - case $cc_basename in
11171 - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
11172 - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
11173 - # CC pic flag -KPIC is the default.
11180 - case $cc_basename in
11182 - # KAI C++ Compiler
11183 - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,'
11184 - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
11188 - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
11189 - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
11190 - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static'
11194 - # Make sure the PIC flag is empty. It appears that all Alpha
11195 - # Linux and Compaq Tru64 Unix objects are PIC.
11196 - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
11197 - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
11208 - case $cc_basename in
11210 - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-W c,exportall'
11216 - netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
11218 - osf3* | osf4* | osf5*)
11219 - case $cc_basename in
11221 - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,'
11224 - # Rational C++ 2.4.1
11225 - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
11228 - # Digital/Compaq C++
11229 - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
11230 - # Make sure the PIC flag is empty. It appears that all Alpha
11231 - # Linux and Compaq Tru64 Unix objects are PIC.
11232 - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
11233 - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
11242 - case $cc_basename in
11244 - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
11251 - case $cc_basename in
11253 - # Sun C++ 4.2, 5.x and Centerline C++
11254 - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
11255 - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
11256 - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
11259 - # Green Hills C++ Compiler
11260 - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-PIC'
11267 - case $cc_basename in
11270 - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
11271 - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
11275 - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
11282 - case $cc_basename in
11284 - # NonStop-UX NCC 3.20
11285 - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
11296 - _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
11302 - if test "$GCC" = yes; then
11303 - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
11304 - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static'
11308 - # All AIX code is PIC.
11309 - if test "$host_cpu" = ia64; then
11310 - # AIX 5 now supports IA64 processor
11311 - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
11313 + if test "$GCC" = yes; then
11314 + _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
11315 + _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'
11317 + _LT_AC_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
11318 + _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'
11320 + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
11321 + _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
11325 - # FIXME: we need at least 68020 code to build shared libraries, but
11326 - # adding the `-m68020' flag to GCC prevents building anything better,
11327 - # like `-m68040'.
11328 - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4'
11329 + osf4* | osf5*) # as osf3* with the addition of -msym flag
11330 + if test "$GCC" = yes; then
11331 + _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
11332 + _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'
11333 + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
11335 + _LT_AC_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
11336 + _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'
11337 + _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~
11338 + $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
11340 + # Both c and cxx compiler support -rpath directly
11341 + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
11343 + _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
11346 - beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
11347 - # PIC is the default for these OSes.
11349 + _LT_AC_TAGVAR(no_undefined_flag, $1)=' -z text'
11350 + if test "$GCC" = yes; then
11352 + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
11353 + _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11354 + $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
11357 + _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
11358 + _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11359 + $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
11361 + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
11362 + _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
11364 + solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
11366 + # The compiler driver will combine linker options so we
11367 + # cannot just pass the convience library names through
11368 + # without $wl, iff we do not link with $LD.
11369 + # Luckily, gcc supports the same syntax we need for Sun Studio.
11370 + # Supported since Solaris 2.6 (maybe 2.5.1?)
11373 + _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract' ;;
11375 + _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
11378 + _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
11381 - mingw* | pw32* | os2*)
11382 - # This hack is so that the source file can tell whether it is being
11383 - # built for inclusion in a dll (and should export symbols for example).
11384 - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'
11386 + if test "x$host_vendor" = xsequent; then
11387 + # Use $CC to link under sequent, because it throws in some extra .o
11388 + # files that make .init and .fini sections work.
11389 + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
11391 + _LT_AC_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
11393 + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
11394 + _LT_AC_TAGVAR(hardcode_direct, $1)=yes
11395 + _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
11396 + _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
11399 - darwin* | rhapsody*)
11400 - # PIC is the default on this platform
11401 - # Common symbols not allowed in MH_DYLIB files
11402 - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common'
11404 + case $host_vendor in
11406 + _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11407 + _LT_AC_TAGVAR(hardcode_direct, $1)=yes # is this really true???
11410 + ## LD is ld it makes a PLAMLIB
11411 + ## CC just makes a GrossModule.
11412 + _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -o $lib $libobjs $deplibs $linker_flags'
11413 + _LT_AC_TAGVAR(reload_cmds, $1)='$CC -r -o $output$reload_objs'
11414 + _LT_AC_TAGVAR(hardcode_direct, $1)=no
11417 + _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11418 + _LT_AC_TAGVAR(hardcode_direct, $1)=no #Motorola manual says yes, but my tests say they lie
11421 + runpath_var='LD_RUN_PATH'
11422 + _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
11426 - # Just because we use GCC doesn't mean we suddenly get shared libraries
11427 - # on systems that don't support them.
11428 - _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
11431 + _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11432 + _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
11433 + _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='-Bexport'
11437 if test -d /usr/nec; then
11438 - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic
11439 + _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11440 + _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
11441 + runpath_var=LD_RUN_PATH
11442 + hardcode_runpath_var=yes
11443 + _LT_AC_TAGVAR(ld_shlibs, $1)=yes
11448 - # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
11449 - # not for PA HP-UX.
11450 - case "$host_cpu" in
11455 - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
11459 + sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7*)
11460 + _LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
11461 + _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
11462 + _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
11463 + runpath_var='LD_RUN_PATH'
11466 - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
11470 - # PORTME Check for flag to pass linker flags through the system compiler.
11473 - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
11474 - if test "$host_cpu" = ia64; then
11475 - # AIX 5 now supports IA64 processor
11476 - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
11477 + if test "$GCC" = yes; then
11478 + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11479 + _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11481 - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp'
11482 + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11483 + _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11487 - mingw* | pw32* | os2*)
11488 - # This hack is so that the source file can tell whether it is being
11489 - # built for inclusion in a dll (and should export symbols for example).
11490 - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'
11492 + sysv5* | sco3.2v5* | sco5v6*)
11493 + # Note: We can NOT use -z defs as we might desire, because we do not
11494 + # link with -lc, and that would cause any symbols used from libc to
11495 + # always be unresolved, which means just about no library would
11496 + # ever link correctly. If we're not using GNU ld we use -z text
11497 + # though, which does catch some bad symbols but isn't as heavy-handed
11499 + _LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
11500 + _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-z,nodefs'
11501 + _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
11502 + _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
11503 + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
11504 + _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=':'
11505 + _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
11506 + _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport'
11507 + runpath_var='LD_RUN_PATH'
11509 - hpux9* | hpux10* | hpux11*)
11510 - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
11511 - # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
11512 - # not for PA HP-UX.
11513 - case "$host_cpu" in
11518 - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
11521 - # Is there a better lt_prog_compiler_static that works with the bundled CC?
11522 - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
11523 + if test "$GCC" = yes; then
11524 + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11525 + _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11527 + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11528 + _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11532 - irix5* | irix6* | nonstopux*)
11533 - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
11534 - # PIC (with -KPIC) is the default.
11535 - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
11537 + _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11538 + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
11539 + _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
11543 - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
11544 - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
11546 + _LT_AC_TAGVAR(ld_shlibs, $1)=no
11551 +AC_MSG_RESULT([$_LT_AC_TAGVAR(ld_shlibs, $1)])
11552 +test "$_LT_AC_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no
11557 - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
11558 - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
11559 - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static'
11562 - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
11563 - # All Alpha code is PIC.
11564 - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
11568 +# Do we need to explicitly link libc?
11570 +case "x$_LT_AC_TAGVAR(archive_cmds_need_lc, $1)" in
11572 + # Assume -lc should be added
11573 + _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes
11575 + if test "$enable_shared" = yes && test "$GCC" = yes; then
11576 + case $_LT_AC_TAGVAR(archive_cmds, $1) in
11578 + # FIXME: we may have to deal with multi-command sequences.
11581 + # Test whether the compiler implicitly links with -lc since on some
11582 + # systems, -lgcc has to come before -lc. If gcc already passes -lc
11583 + # to ld, don't add -lc before -lgcc.
11584 + AC_MSG_CHECKING([whether -lc should be explicitly linked in])
11586 + printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11588 - osf3* | osf4* | osf5*)
11589 - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
11590 - # All OSF/1 code is PIC.
11591 - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
11592 + if AC_TRY_EVAL(ac_compile) 2>conftest.err; then
11595 + libobjs=conftest.$ac_objext
11597 + wl=$_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)
11598 + pic_flag=$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)
11599 + compiler_flags=-v
11604 + lt_save_allow_undefined_flag=$_LT_AC_TAGVAR(allow_undefined_flag, $1)
11605 + _LT_AC_TAGVAR(allow_undefined_flag, $1)=
11606 + if AC_TRY_EVAL(_LT_AC_TAGVAR(archive_cmds, $1) 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1)
11608 + _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
11610 + _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes
11612 + _LT_AC_TAGVAR(allow_undefined_flag, $1)=$lt_save_allow_undefined_flag
11614 + cat conftest.err 1>&5
11617 + AC_MSG_RESULT([$_LT_AC_TAGVAR(archive_cmds_need_lc, $1)])
11623 +])# AC_LIBTOOL_PROG_LD_SHLIBS
11626 +# _LT_AC_FILE_LTDLL_C
11627 +# -------------------
11628 +# Be careful that the start marker always follows a newline.
11629 +AC_DEFUN([_LT_AC_FILE_LTDLL_C], [
11630 +# /* ltdll.c starts here */
11631 +# #define WIN32_LEAN_AND_MEAN
11632 +# #include <windows.h>
11633 +# #undef WIN32_LEAN_AND_MEAN
11634 +# #include <stdio.h>
11636 +# #ifndef __CYGWIN__
11637 +# # ifdef __CYGWIN32__
11638 +# # define __CYGWIN__ __CYGWIN32__
11642 +# #ifdef __cplusplus
11645 +# BOOL APIENTRY DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved);
11646 +# #ifdef __cplusplus
11650 +# #ifdef __CYGWIN__
11651 +# #include <cygwin/cygwin_dll.h>
11652 +# DECLARE_CYGWIN_DLL( DllMain );
11654 +# HINSTANCE __hDllInstance_base;
11657 +# DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved)
11659 +# __hDllInstance_base = hInst;
11662 +# /* ltdll.c ends here */
11663 +])# _LT_AC_FILE_LTDLL_C
11666 - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-Kpic'
11667 - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-dn'
11671 - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
11672 - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
11673 - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
11675 +# _LT_AC_TAGVAR(VARNAME, [TAGNAME])
11676 +# ---------------------------------
11677 +AC_DEFUN([_LT_AC_TAGVAR], [ifelse([$2], [], [$1], [$1_$2])])
11680 - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
11681 - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-PIC'
11682 - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
11685 - sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11686 - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
11687 - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
11688 - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
11691 +AC_DEFUN([AM_PROG_LIBTOOL], [AC_PROG_LIBTOOL])
11692 +AC_DEFUN([AM_ENABLE_SHARED], [AC_ENABLE_SHARED($@)])
11693 +AC_DEFUN([AM_ENABLE_STATIC], [AC_ENABLE_STATIC($@)])
11694 +AC_DEFUN([AM_DISABLE_SHARED], [AC_DISABLE_SHARED($@)])
11695 +AC_DEFUN([AM_DISABLE_STATIC], [AC_DISABLE_STATIC($@)])
11696 +AC_DEFUN([AM_PROG_LD], [AC_PROG_LD])
11697 +AC_DEFUN([AM_PROG_NM], [AC_PROG_NM])
11700 - if test -d /usr/nec ;then
11701 - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-Kconform_pic'
11702 - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
11705 +# This is just to silence aclocal about the macro not being used
11706 +ifelse([AC_DISABLE_FAST_INSTALL])
11709 - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
11710 - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
11712 +AC_DEFUN([LT_AC_PROG_GCJ],
11713 +[AC_CHECK_TOOL(GCJ, gcj, no)
11714 + test "x${GCJFLAGS+set}" = xset || GCJFLAGS="-g -O2"
11715 + AC_SUBST(GCJFLAGS)
11719 - _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
11722 +AC_DEFUN([LT_AC_PROG_RC],
11723 +[AC_CHECK_TOOL(RC, windres, no)
11726 +# NOTE: This macro has been submitted for inclusion into #
11727 +# GNU Autoconf as AC_PROG_SED. When it is available in #
11728 +# a released version of Autoconf we should remove this #
11729 +# macro and use it instead. #
11732 +# Check for a fully-functional sed program, that truncates
11733 +# as few characters as possible. Prefer GNU sed if found.
11734 +AC_DEFUN([LT_AC_PROG_SED],
11735 +[AC_MSG_CHECKING([for a sed that does not truncate output])
11736 +AC_CACHE_VAL(lt_cv_path_SED,
11737 +[# Loop through the user's path and test for sed and gsed.
11738 +# Then use that list of sed's as ones to test for truncation.
11739 +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11740 +for as_dir in $PATH
11743 + test -z "$as_dir" && as_dir=.
11744 + for lt_ac_prog in sed gsed; do
11745 + for ac_exec_ext in '' $ac_executable_extensions; do
11746 + if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
11747 + lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
11754 +# Add /usr/xpg4/bin/sed as it is typically found on Solaris
11755 +# along with /bin/sed that truncates output.
11756 +for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
11757 + test ! -f $lt_ac_sed && continue
11758 + cat /dev/null > conftest.in
11760 + echo $ECHO_N "0123456789$ECHO_C" >conftest.in
11761 + # Check for GNU sed and select it if it is found.
11762 + if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
11763 + lt_cv_path_SED=$lt_ac_sed
11767 + cat conftest.in conftest.in >conftest.tmp
11768 + mv conftest.tmp conftest.in
11769 + cp conftest.in conftest.nl
11770 + echo >>conftest.nl
11771 + $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
11772 + cmp -s conftest.out conftest.nl || break
11773 + # 10000 chars as input seems more than enough
11774 + test $lt_ac_count -gt 10 && break
11775 + lt_ac_count=`expr $lt_ac_count + 1`
11776 + if test $lt_ac_count -gt $lt_ac_max; then
11777 + lt_ac_max=$lt_ac_count
11778 + lt_cv_path_SED=$lt_ac_sed
11783 +SED=$lt_cv_path_SED
11784 +AC_MSG_RESULT([$SED])
11786 -AC_MSG_RESULT([$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)])
11788 +# pkg.m4 - Macros to locate and utilise pkg-config. -*- Autoconf -*-
11790 +# Copyright © 2004 Scott James Remnant <scott@netsplit.com>.
11792 -# Check to make sure the PIC flag actually works.
11793 +# This program is free software; you can redistribute it and/or modify
11794 +# it under the terms of the GNU General Public License as published by
11795 +# the Free Software Foundation; either version 2 of the License, or
11796 +# (at your option) any later version.
11798 -if test -n "$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)"; then
11799 - AC_LIBTOOL_COMPILER_OPTION([if $compiler PIC flag $_LT_AC_TAGVAR(lt_prog_compiler_pic, $1) works],
11800 - _LT_AC_TAGVAR(lt_prog_compiler_pic_works, $1),
11801 - [$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)ifelse([$1],[],[ -DPIC],[ifelse([$1],[CXX],[ -DPIC],[])])], [],
11802 - [case $_LT_AC_TAGVAR(lt_prog_compiler_pic, $1) in
11804 - *) _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=" $_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)" ;;
11806 - [_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
11807 - _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no])
11809 -case "$host_os" in
11810 - # For platforms which do not support PIC, -DPIC is meaningless:
11812 - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
11815 - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)="$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)ifelse([$1],[],[ -DPIC],[ifelse([$1],[CXX],[ -DPIC],[])])"
11819 +# This program is distributed in the hope that it will be useful, but
11820 +# WITHOUT ANY WARRANTY; without even the implied warranty of
11821 +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
11822 +# General Public License for more details.
11824 +# You should have received a copy of the GNU General Public License
11825 +# along with this program; if not, write to the Free Software
11826 +# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
11828 +# As a special exception to the GNU General Public License, if you
11829 +# distribute this file as part of a program that contains a
11830 +# configuration script generated by Autoconf, you may include it under
11831 +# the same distribution terms that you use for the rest of that program.
11833 +# PKG_PROG_PKG_CONFIG([MIN-VERSION])
11834 +# ----------------------------------
11835 +AC_DEFUN([PKG_PROG_PKG_CONFIG],
11836 +[m4_pattern_forbid([^_?PKG_[A-Z_]+$])
11837 +m4_pattern_allow([^PKG_CONFIG(_PATH)?$])
11838 +AC_ARG_VAR([PKG_CONFIG], [path to pkg-config utility])dnl
11839 +if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
11840 + AC_PATH_TOOL([PKG_CONFIG], [pkg-config])
11842 +if test -n "$PKG_CONFIG"; then
11843 + _pkg_min_version=m4_default([$1], [0.9.0])
11844 + AC_MSG_CHECKING([pkg-config is at least version $_pkg_min_version])
11845 + if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
11846 + AC_MSG_RESULT([yes])
11848 + AC_MSG_RESULT([no])
11853 +])# PKG_PROG_PKG_CONFIG
11855 -# AC_LIBTOOL_PROG_LD_SHLIBS([TAGNAME])
11856 -# ------------------------------------
11857 -# See if the linker supports building shared libraries.
11858 -AC_DEFUN([AC_LIBTOOL_PROG_LD_SHLIBS],
11859 -[AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries])
11860 -ifelse([$1],[CXX],[
11861 - _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11864 - # If we're using GNU nm, then we don't want the "-C" option.
11865 - # -C means demangle to AIX nm, but means don't demangle with GNU nm
11866 - if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
11867 - _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'
11868 +# PKG_CHECK_EXISTS(MODULES, [ACTION-IF-FOUND], [ACTION-IF-NOT-FOUND])
11870 +# Check to see whether a particular set of modules exists. Similar
11871 +# to PKG_CHECK_MODULES(), but does not set variables or print errors.
11874 +# Similar to PKG_CHECK_MODULES, make sure that the first instance of
11875 +# this or PKG_CHECK_MODULES is called, or make sure to call
11876 +# PKG_CHECK_EXISTS manually
11877 +# --------------------------------------------------------------
11878 +AC_DEFUN([PKG_CHECK_EXISTS],
11879 +[AC_REQUIRE([PKG_PROG_PKG_CONFIG])dnl
11880 +if test -n "$PKG_CONFIG" && \
11881 + AC_RUN_LOG([$PKG_CONFIG --exists --print-errors "$1"]); then
11882 + m4_ifval([$2], [$2], [:])
11883 +m4_ifvaln([$3], [else
11888 +# _PKG_CONFIG([VARIABLE], [COMMAND], [MODULES])
11889 +# ---------------------------------------------
11890 +m4_define([_PKG_CONFIG],
11891 +[if test -n "$PKG_CONFIG"; then
11892 + if test -n "$$1"; then
11893 + pkg_cv_[]$1="$$1"
11895 - _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'
11896 + PKG_CHECK_EXISTS([$3],
11897 + [pkg_cv_[]$1=`$PKG_CONFIG --[]$2 "$3" 2>/dev/null`],
11898 + [pkg_failed=yes])
11902 - _LT_AC_TAGVAR(export_symbols_cmds, $1)="$ltdll_cmds"
11904 - cygwin* | mingw*)
11905 - _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'
11908 - _LT_AC_TAGVAR(link_all_deplibs, $1)=no
11911 - _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11916 - _LT_AC_TAGVAR(allow_undefined_flag, $1)=
11917 - _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=no
11918 - _LT_AC_TAGVAR(archive_cmds, $1)=
11919 - _LT_AC_TAGVAR(archive_expsym_cmds, $1)=
11920 - _LT_AC_TAGVAR(old_archive_From_new_cmds, $1)=
11921 - _LT_AC_TAGVAR(old_archive_from_expsyms_cmds, $1)=
11922 - _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)=
11923 - _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
11924 - _LT_AC_TAGVAR(thread_safe_flag_spec, $1)=
11925 - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=
11926 - _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
11927 - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
11928 - _LT_AC_TAGVAR(hardcode_direct, $1)=no
11929 - _LT_AC_TAGVAR(hardcode_minus_L, $1)=no
11930 - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
11931 - _LT_AC_TAGVAR(link_all_deplibs, $1)=unknown
11932 - _LT_AC_TAGVAR(hardcode_automatic, $1)=no
11933 - _LT_AC_TAGVAR(module_cmds, $1)=
11934 - _LT_AC_TAGVAR(module_expsym_cmds, $1)=
11935 - _LT_AC_TAGVAR(always_export_symbols, $1)=no
11936 - _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11937 - # include_expsyms should be a list of space-separated symbols to be *always*
11938 - # included in the symbol list
11939 - _LT_AC_TAGVAR(include_expsyms, $1)=
11940 - # exclude_expsyms can be an extended regexp of symbols to exclude
11941 - # it will be wrapped by ` (' and `)$', so one must not match beginning or
11942 - # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
11943 - # as well as any symbol that contains `d'.
11944 - _LT_AC_TAGVAR(exclude_expsyms, $1)="_GLOBAL_OFFSET_TABLE_"
11945 - # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
11946 - # platforms (ab)use it in PIC code, but their linkers get confused if
11947 - # the symbol is explicitly referenced. Since portable code cannot
11948 - # rely on this symbol name, it's probably fine to never include it in
11949 - # preloaded symbol tables.
11950 - extract_expsyms_cmds=
11952 + pkg_failed=untried
11957 - cygwin* | mingw* | pw32*)
11958 - # FIXME: the MSVC++ port hasn't been tested in a loooong time
11959 - # When not using gcc, we currently assume that we are using
11960 - # Microsoft Visual C++.
11961 - if test "$GCC" != yes; then
11969 +# _PKG_SHORT_ERRORS_SUPPORTED
11970 +# -----------------------------
11971 +AC_DEFUN([_PKG_SHORT_ERRORS_SUPPORTED],
11972 +[AC_REQUIRE([PKG_PROG_PKG_CONFIG])
11973 +if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
11974 + _pkg_short_errors_supported=yes
11976 + _pkg_short_errors_supported=no
11978 +])# _PKG_SHORT_ERRORS_SUPPORTED
11980 - _LT_AC_TAGVAR(ld_shlibs, $1)=yes
11981 - if test "$with_gnu_ld" = yes; then
11982 - # If archive_cmds runs LD, not CC, wlarc should be empty
11985 - # See if GNU ld supports shared libraries.
11987 - aix3* | aix4* | aix5*)
11988 - # On AIX/PPC, the GNU linker is very broken
11989 - if test "$host_cpu" != ia64; then
11990 - _LT_AC_TAGVAR(ld_shlibs, $1)=no
11992 +# PKG_CHECK_MODULES(VARIABLE-PREFIX, MODULES, [ACTION-IF-FOUND],
11993 +# [ACTION-IF-NOT-FOUND])
11996 +# Note that if there is a possibility the first call to
11997 +# PKG_CHECK_MODULES might not happen, you should be sure to include an
11998 +# explicit call to PKG_PROG_PKG_CONFIG in your configure.ac
12001 +# --------------------------------------------------------------
12002 +AC_DEFUN([PKG_CHECK_MODULES],
12003 +[AC_REQUIRE([PKG_PROG_PKG_CONFIG])dnl
12004 +AC_ARG_VAR([$1][_CFLAGS], [C compiler flags for $1, overriding pkg-config])dnl
12005 +AC_ARG_VAR([$1][_LIBS], [linker flags for $1, overriding pkg-config])dnl
12008 +AC_MSG_CHECKING([for $1])
12010 +_PKG_CONFIG([$1][_CFLAGS], [cflags], [$2])
12011 +_PKG_CONFIG([$1][_LIBS], [libs], [$2])
12013 +m4_define([_PKG_TEXT], [Alternatively, you may set the environment variables $1[]_CFLAGS
12014 +and $1[]_LIBS to avoid the need to call pkg-config.
12015 +See the pkg-config man page for more details.])
12017 +if test $pkg_failed = yes; then
12018 + _PKG_SHORT_ERRORS_SUPPORTED
12019 + if test $_pkg_short_errors_supported = yes; then
12020 + $1[]_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "$2"`
12022 + $1[]_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$2"`
12024 + # Put the nasty error message in config.log where it belongs
12025 + echo "$$1[]_PKG_ERRORS" >&AS_MESSAGE_LOG_FD
12027 -*** Warning: the GNU linker, at least up to release 2.9.1, is reported
12028 -*** to be unable to reliably create shared libraries on AIX.
12029 -*** Therefore, libtool is disabling shared libraries support. If you
12030 -*** really care for shared libraries, you may want to modify your PATH
12031 -*** so that a non-GNU linker is found, and then restart.
12032 + ifelse([$4], , [AC_MSG_ERROR(dnl
12033 +[Package requirements ($2) were not met:
12041 - _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)'
12042 - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
12043 - _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
12044 +Consider adjusting the PKG_CONFIG_PATH environment variable if you
12045 +installed software in a non-standard prefix.
12049 + [AC_MSG_RESULT([no])
12051 +elif test $pkg_failed = untried; then
12052 + ifelse([$4], , [AC_MSG_FAILURE(dnl
12053 +[The pkg-config script could not be found or is too old. Make sure it
12054 +is in your PATH or set the PKG_CONFIG environment variable to the full
12055 +path to pkg-config.
12057 - # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
12058 - # that the semantics of dynamic libraries on AmigaOS, at least up
12059 - # to version 4, is to share data among multiple programs linked
12060 - # with the same dynamic library. Since this doesn't match the
12061 - # behavior of shared libraries on other platforms, we can't use
12063 - _LT_AC_TAGVAR(ld_shlibs, $1)=no
12068 - if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
12069 - _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
12070 - # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12071 - # support --undefined. This deserves some investigation. FIXME
12072 - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12074 - _LT_AC_TAGVAR(ld_shlibs, $1)=no
12077 +To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>.])],
12080 + $1[]_CFLAGS=$pkg_cv_[]$1[]_CFLAGS
12081 + $1[]_LIBS=$pkg_cv_[]$1[]_LIBS
12082 + AC_MSG_RESULT([yes])
12083 + ifelse([$3], , :, [$3])
12085 +])# PKG_CHECK_MODULES
12087 - cygwin* | mingw* | pw32*)
12088 - # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless,
12089 - # as there is no search path for DLLs.
12090 - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
12091 - _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
12092 - _LT_AC_TAGVAR(always_export_symbols, $1)=no
12093 - _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
12094 - _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'
12095 +# Copyright (C) 2002, 2003, 2005 Free Software Foundation, Inc.
12097 +# This file is free software; the Free Software Foundation
12098 +# gives unlimited permission to copy and/or distribute it,
12099 +# with or without modifications, as long as this notice is preserved.
12101 - if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
12102 - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
12103 - # If the export-symbols file already is a .def file (1st line
12104 - # is EXPORTS), use it as is; otherwise, prepend...
12105 - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12106 - cp $export_symbols $output_objdir/$soname.def;
12108 - echo EXPORTS > $output_objdir/$soname.def;
12109 - cat $export_symbols >> $output_objdir/$soname.def;
12111 - $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
12116 +# AM_AUTOMAKE_VERSION(VERSION)
12117 +# ----------------------------
12118 +# Automake X.Y traces this macro to ensure aclocal.m4 has been
12119 +# generated from the m4 files accompanying Automake X.Y.
12120 +AC_DEFUN([AM_AUTOMAKE_VERSION], [am__api_version="1.9"])
12122 - netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
12123 - if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12124 - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
12127 - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12128 - _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'
12131 +# AM_SET_CURRENT_AUTOMAKE_VERSION
12132 +# -------------------------------
12133 +# Call AM_AUTOMAKE_VERSION so it can be traced.
12134 +# This function is AC_REQUIREd by AC_INIT_AUTOMAKE.
12135 +AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION],
12136 + [AM_AUTOMAKE_VERSION([1.9.6])])
12138 - solaris* | sysv5*)
12139 - if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
12140 - _LT_AC_TAGVAR(ld_shlibs, $1)=no
12142 +# AM_AUX_DIR_EXPAND -*- Autoconf -*-
12144 -*** Warning: The releases 2.8.* of the GNU linker cannot reliably
12145 -*** create shared libraries on Solaris systems. Therefore, libtool
12146 -*** is disabling shared libraries support. We urge you to upgrade GNU
12147 -*** binutils to release 2.9.1 or newer. Another option is to modify
12148 -*** your PATH or compiler configuration so that the native linker is
12149 -*** used, and then restart.
12150 +# Copyright (C) 2001, 2003, 2005 Free Software Foundation, Inc.
12152 +# This file is free software; the Free Software Foundation
12153 +# gives unlimited permission to copy and/or distribute it,
12154 +# with or without modifications, as long as this notice is preserved.
12157 - elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
12158 - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12159 - _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'
12161 - _LT_AC_TAGVAR(ld_shlibs, $1)=no
12164 +# For projects using AC_CONFIG_AUX_DIR([foo]), Autoconf sets
12165 +# $ac_aux_dir to `$srcdir/foo'. In other projects, it is set to
12166 +# `$srcdir', `$srcdir/..', or `$srcdir/../..'.
12168 +# Of course, Automake must honor this variable whenever it calls a
12169 +# tool from the auxiliary directory. The problem is that $srcdir (and
12170 +# therefore $ac_aux_dir as well) can be either absolute or relative,
12171 +# depending on how configure is run. This is pretty annoying, since
12172 +# it makes $ac_aux_dir quite unusable in subdirectories: in the top
12173 +# source directory, any form will work fine, but in subdirectories a
12174 +# relative path needs to be adjusted first.
12176 +# $ac_aux_dir/missing
12177 +# fails when called from a subdirectory if $ac_aux_dir is relative
12178 +# $top_srcdir/$ac_aux_dir/missing
12179 +# fails if $ac_aux_dir is absolute,
12180 +# fails when called from a subdirectory in a VPATH build with
12181 +# a relative $ac_aux_dir
12183 +# The reason of the latter failure is that $top_srcdir and $ac_aux_dir
12184 +# are both prefixed by $srcdir. In an in-source build this is usually
12185 +# harmless because $srcdir is `.', but things will broke when you
12186 +# start a VPATH build or use an absolute $srcdir.
12188 +# So we could use something similar to $top_srcdir/$ac_aux_dir/missing,
12189 +# iff we strip the leading $srcdir from $ac_aux_dir. That would be:
12190 +# am_aux_dir='\$(top_srcdir)/'`expr "$ac_aux_dir" : "$srcdir//*\(.*\)"`
12191 +# and then we would define $MISSING as
12192 +# MISSING="\${SHELL} $am_aux_dir/missing"
12193 +# This will work as long as MISSING is not called from configure, because
12194 +# unfortunately $(top_srcdir) has no meaning in configure.
12195 +# However there are other variables, like CC, which are often used in
12196 +# configure, and could therefore not use this "fixed" $ac_aux_dir.
12198 +# Another solution, used here, is to always expand $ac_aux_dir to an
12199 +# absolute PATH. The drawback is that using absolute paths prevent a
12200 +# configured tree to be moved without reconfiguration.
12203 - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12205 - _LT_AC_TAGVAR(hardcode_direct, $1)=yes
12206 - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
12208 +AC_DEFUN([AM_AUX_DIR_EXPAND],
12209 +[dnl Rely on autoconf to set up CDPATH properly.
12210 +AC_PREREQ([2.50])dnl
12211 +# expand $ac_aux_dir to an absolute path
12212 +am_aux_dir=`cd $ac_aux_dir && pwd`
12216 - if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
12217 - tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12218 - _LT_AC_TAGVAR(archive_cmds, $1)="$tmp_archive_cmds"
12219 - supports_anon_versioning=no
12220 - case `$LD -v 2>/dev/null` in
12221 - *\ [01].* | *\ 2.[[0-9]].* | *\ 2.10.*) ;; # catch versions < 2.11
12222 - *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
12223 - *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
12224 - *\ 2.11.*) ;; # other 2.11 versions
12225 - *) supports_anon_versioning=yes ;;
12227 - if test $supports_anon_versioning = yes; then
12228 - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $output_objdir/$libname.ver~
12229 -cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12230 -$echo "local: *; };" >> $output_objdir/$libname.ver~
12231 - $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
12233 - _LT_AC_TAGVAR(archive_expsym_cmds, $1)="$tmp_archive_cmds"
12235 - _LT_AC_TAGVAR(link_all_deplibs, $1)=no
12237 - _LT_AC_TAGVAR(ld_shlibs, $1)=no
12240 +# AM_CONDITIONAL -*- Autoconf -*-
12243 - if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
12244 - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12245 - _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'
12247 - _LT_AC_TAGVAR(ld_shlibs, $1)=no
12251 +# Copyright (C) 1997, 2000, 2001, 2003, 2004, 2005
12252 +# Free Software Foundation, Inc.
12254 +# This file is free software; the Free Software Foundation
12255 +# gives unlimited permission to copy and/or distribute it,
12256 +# with or without modifications, as long as this notice is preserved.
12258 - if test "$_LT_AC_TAGVAR(ld_shlibs, $1)" = yes; then
12259 - runpath_var=LD_RUN_PATH
12260 - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir'
12261 - _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
12262 - # ancient GNU ld didn't support --whole-archive et. al.
12263 - if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
12264 - _LT_AC_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12266 - _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
12270 - # PORTME fill in a description of your system's linker (not GNU ld)
12273 - _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
12274 - _LT_AC_TAGVAR(always_export_symbols, $1)=yes
12275 - _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'
12276 - # Note: this linker hardcodes the directories in LIBPATH if there
12277 - # are no directories specified by -L.
12278 - _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
12279 - if test "$GCC" = yes && test -z "$link_static_flag"; then
12280 - # Neither direct hardcoding nor static linking is supported with a
12281 - # broken collect2.
12282 - _LT_AC_TAGVAR(hardcode_direct, $1)=unsupported
12288 - if test "$host_cpu" = ia64; then
12289 - # On IA64, the linker does run time linking by default, so we don't
12290 - # have to do anything special.
12291 - aix_use_runtimelinking=no
12292 - exp_sym_flag='-Bexport'
12295 - # If we're using GNU nm, then we don't want the "-C" option.
12296 - # -C means demangle to AIX nm, but means don't demangle with GNU nm
12297 - if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
12298 - _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'
12300 - _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'
12302 - aix_use_runtimelinking=no
12303 +# AM_CONDITIONAL(NAME, SHELL-CONDITION)
12304 +# -------------------------------------
12305 +# Define a conditional.
12306 +AC_DEFUN([AM_CONDITIONAL],
12307 +[AC_PREREQ(2.52)dnl
12308 + ifelse([$1], [TRUE], [AC_FATAL([$0: invalid condition: $1])],
12309 + [$1], [FALSE], [AC_FATAL([$0: invalid condition: $1])])dnl
12310 +AC_SUBST([$1_TRUE])
12311 +AC_SUBST([$1_FALSE])
12319 +AC_CONFIG_COMMANDS_PRE(
12320 +[if test -z "${$1_TRUE}" && test -z "${$1_FALSE}"; then
12321 + AC_MSG_ERROR([[conditional "$1" was never defined.
12322 +Usually this means the macro was only invoked conditionally.]])
12325 - # Test if we are trying to use run time linking or normal
12326 - # AIX style linking. If -brtl is somewhere in LDFLAGS, we
12327 - # need to do runtime linking.
12328 - case $host_os in aix4.[[23]]|aix4.[[23]].*|aix5*)
12329 - for ld_flag in $LDFLAGS; do
12330 - if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
12331 - aix_use_runtimelinking=yes
12337 - exp_sym_flag='-bexport'
12338 - no_entry_flag='-bnoentry'
12340 +# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005
12341 +# Free Software Foundation, Inc.
12343 +# This file is free software; the Free Software Foundation
12344 +# gives unlimited permission to copy and/or distribute it,
12345 +# with or without modifications, as long as this notice is preserved.
12349 +# There are a few dirty hacks below to avoid letting `AC_PROG_CC' be
12350 +# written in clear, in which case automake, when reading aclocal.m4,
12351 +# will think it sees a *use*, and therefore will trigger all it's
12352 +# C support machinery. Also note that it means that autoscan, seeing
12353 +# CC etc. in the Makefile, will ask for an AC_PROG_CC use...
12356 +# _AM_DEPENDENCIES(NAME)
12357 +# ----------------------
12358 +# See how the compiler implements dependency checking.
12359 +# NAME is "CC", "CXX", "GCJ", or "OBJC".
12360 +# We try a few techniques and use that to set a single cache variable.
12362 +# We don't AC_REQUIRE the corresponding AC_PROG_CC since the latter was
12363 +# modified to invoke _AM_DEPENDENCIES(CC); we would have a circular
12364 +# dependency, and given that the user is not expected to run this macro,
12365 +# just rely on AC_PROG_CC.
12366 +AC_DEFUN([_AM_DEPENDENCIES],
12367 +[AC_REQUIRE([AM_SET_DEPDIR])dnl
12368 +AC_REQUIRE([AM_OUTPUT_DEPENDENCY_COMMANDS])dnl
12369 +AC_REQUIRE([AM_MAKE_INCLUDE])dnl
12370 +AC_REQUIRE([AM_DEP_TRACK])dnl
12372 - # When large executables or shared objects are built, AIX ld can
12373 - # have problems creating the table of contents. If linking a library
12374 - # or program results in "error TOC overflow" add -mminimal-toc to
12375 - # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
12376 - # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12377 +ifelse([$1], CC, [depcc="$CC" am_compiler_list=],
12378 + [$1], CXX, [depcc="$CXX" am_compiler_list=],
12379 + [$1], OBJC, [depcc="$OBJC" am_compiler_list='gcc3 gcc'],
12380 + [$1], GCJ, [depcc="$GCJ" am_compiler_list='gcc3 gcc'],
12381 + [depcc="$$1" am_compiler_list=])
12383 - _LT_AC_TAGVAR(archive_cmds, $1)=''
12384 - _LT_AC_TAGVAR(hardcode_direct, $1)=yes
12385 - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=':'
12386 - _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
12387 +AC_CACHE_CHECK([dependency style of $depcc],
12388 + [am_cv_$1_dependencies_compiler_type],
12389 +[if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
12390 + # We make a subdir and do the tests there. Otherwise we can end up
12391 + # making bogus files that we don't know about and never remove. For
12392 + # instance it was reported that on HP-UX the gcc test will end up
12393 + # making a dummy file named `D' -- because `-MD' means `put the output
12395 + mkdir conftest.dir
12396 + # Copy depcomp to subdir because otherwise we won't find it if we're
12397 + # using a relative directory.
12398 + cp "$am_depcomp" conftest.dir
12400 + # We will build objects and dependencies in a subdirectory because
12401 + # it helps to detect inapplicable dependency modes. For instance
12402 + # both Tru64's cc and ICC support -MD to output dependencies as a
12403 + # side effect of compilation, but ICC will put the dependencies in
12404 + # the current directory while Tru64 will put them in the object
12408 - if test "$GCC" = yes; then
12409 - case $host_os in aix4.[012]|aix4.[012].*)
12410 - # We only want to do this on AIX 4.2 and lower, the check
12411 - # below for broken collect2 doesn't work under 4.3+
12412 - collect2name=`${CC} -print-prog-name=collect2`
12413 - if test -f "$collect2name" && \
12414 - strings "$collect2name" | grep resolve_lib_name >/dev/null
12416 - # We have reworked collect2
12417 - _LT_AC_TAGVAR(hardcode_direct, $1)=yes
12419 - # We have old collect2
12420 - _LT_AC_TAGVAR(hardcode_direct, $1)=unsupported
12421 - # It fails to find uninstalled libraries when the uninstalled
12422 - # path is not listed in the libpath. Setting hardcode_minus_L
12423 - # to unsupported forces relinking
12424 - _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
12425 - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
12426 - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
12429 - shared_flag='-shared'
12432 - if test "$host_cpu" = ia64; then
12433 - # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12434 - # chokes on -Wl,-G. The following line is correct:
12437 - if test "$aix_use_runtimelinking" = yes; then
12438 - shared_flag='${wl}-G'
12440 - shared_flag='${wl}-bM:SRE'
12444 + am_cv_$1_dependencies_compiler_type=none
12445 + if test "$am_compiler_list" = ""; then
12446 + am_compiler_list=`sed -n ['s/^#*\([a-zA-Z0-9]*\))$/\1/p'] < ./depcomp`
12448 + for depmode in $am_compiler_list; do
12449 + # Setup a source with many dependencies, because some compilers
12450 + # like to wrap large dependency lists on column 80 (with \), and
12451 + # we should not choose a depcomp mode which is confused by this.
12453 + # We need to recreate these files for each test, as the compiler may
12454 + # overwrite some of them when testing with obscure command lines.
12455 + # This happens at least with the AIX C compiler.
12456 + : > sub/conftest.c
12457 + for i in 1 2 3 4 5 6; do
12458 + echo '#include "conftst'$i'.h"' >> sub/conftest.c
12459 + # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
12460 + # Solaris 8's {/usr,}/bin/sh.
12461 + touch sub/conftst$i.h
12463 + echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
12465 - # It seems that -bexpall does not export symbols beginning with
12466 - # underscore (_), so it is better to generate a list of symbols to export.
12467 - _LT_AC_TAGVAR(always_export_symbols, $1)=yes
12468 - if test "$aix_use_runtimelinking" = yes; then
12469 - # Warning - without using the other runtime loading flags (-brtl),
12470 - # -berok will link without error, but may produce a broken library.
12471 - _LT_AC_TAGVAR(allow_undefined_flag, $1)='-berok'
12472 - # Determine the default libpath from the value encoded in an empty executable.
12473 - _LT_AC_SYS_LIBPATH_AIX
12474 - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
12475 - _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"
12477 - if test "$host_cpu" = ia64; then
12478 - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib'
12479 - _LT_AC_TAGVAR(allow_undefined_flag, $1)="-z nodefs"
12480 - _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"
12482 - # Determine the default libpath from the value encoded in an empty executable.
12483 - _LT_AC_SYS_LIBPATH_AIX
12484 - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
12485 - # Warning - without using the other run time loading flags,
12486 - # -berok will link without error, but may produce a broken library.
12487 - _LT_AC_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok'
12488 - _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok'
12489 - # -bexpall does not export symbols beginning with underscore (_)
12490 - _LT_AC_TAGVAR(always_export_symbols, $1)=yes
12491 - # Exported symbols can be pulled into shared objects from archives
12492 - _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=' '
12493 - _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes
12494 - # This is similar to how AIX traditionally builds it's shared libraries.
12495 - _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'
12499 + # after this tag, mechanisms are not by side-effect, so they'll
12500 + # only be used when explicitly requested
12501 + if test "x$enable_dependency_tracking" = xyes; then
12509 + # We check with `-c' and `-o' for the sake of the "dashmstdout"
12510 + # mode. It turns out that the SunPro C++ compiler does not properly
12511 + # handle `-M -o', and we need to detect this.
12512 + if depmode=$depmode \
12513 + source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
12514 + depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
12515 + $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
12516 + >/dev/null 2>conftest.err &&
12517 + grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
12518 + grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
12519 + ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
12520 + # icc doesn't choke on unknown options, it will just issue warnings
12521 + # or remarks (even with -Werror). So we grep stderr for any message
12522 + # that says an option was ignored or not supported.
12523 + # When given -MP, icc 7.0 and 7.1 complain thusly:
12524 + # icc: Command line warning: ignoring option '-M'; no argument required
12525 + # The diagnosis changed in icc 8.0:
12526 + # icc: Command line remark: option '-MP' not supported
12527 + if (grep 'ignoring option' conftest.err ||
12528 + grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
12529 + am_cv_$1_dependencies_compiler_type=$depmode
12536 - _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)'
12537 - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
12538 - _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
12539 - # see comment about different semantics on the GNU ld section
12540 - _LT_AC_TAGVAR(ld_shlibs, $1)=no
12543 + rm -rf conftest.dir
12545 + am_cv_$1_dependencies_compiler_type=none
12548 +AC_SUBST([$1DEPMODE], [depmode=$am_cv_$1_dependencies_compiler_type])
12549 +AM_CONDITIONAL([am__fastdep$1], [
12550 + test "x$enable_dependency_tracking" != xno \
12551 + && test "$am_cv_$1_dependencies_compiler_type" = gcc3])
12555 - _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)=-rdynamic
12558 - cygwin* | mingw* | pw32*)
12559 - # When not using gcc, we currently assume that we are using
12560 - # Microsoft Visual C++.
12561 - # hardcode_libdir_flag_spec is actually meaningless, as there is
12562 - # no search path for DLLs.
12563 - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=' '
12564 - _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
12565 - # Tell ltmain to make .lib files, not .a files.
12567 - # Tell ltmain to make .dll files, not .so files.
12568 - shrext_cmds=".dll"
12569 - # FIXME: Setting linknames here is a bad hack.
12570 - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
12571 - # The linker will automatically build a .lib file if we build a DLL.
12572 - _LT_AC_TAGVAR(old_archive_From_new_cmds, $1)='true'
12573 - # FIXME: Should let the user specify the lib program.
12574 - _LT_AC_TAGVAR(old_archive_cmds, $1)='lib /OUT:$oldlib$oldobjs$old_deplibs'
12575 - fix_srcfile_path='`cygpath -w "$srcfile"`'
12576 - _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
12580 +# Choose a directory name for dependency files.
12581 +# This macro is AC_REQUIREd in _AM_DEPENDENCIES
12582 +AC_DEFUN([AM_SET_DEPDIR],
12583 +[AC_REQUIRE([AM_SET_LEADING_DOT])dnl
12584 +AC_SUBST([DEPDIR], ["${am__leading_dot}deps"])dnl
12587 - darwin* | rhapsody*)
12588 - if test "$GXX" = yes ; then
12589 - _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
12590 - case "$host_os" in
12591 - rhapsody* | darwin1.[[012]])
12592 - _LT_AC_TAGVAR(allow_undefined_flag, $1)='-undefined suppress'
12594 - *) # Darwin 1.3 on
12595 - if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
12596 - _LT_AC_TAGVAR(allow_undefined_flag, $1)='-flat_namespace -undefined suppress'
12598 - case ${MACOSX_DEPLOYMENT_TARGET} in
12600 - _LT_AC_TAGVAR(allow_undefined_flag, $1)='-flat_namespace -undefined suppress'
12603 - _LT_AC_TAGVAR(allow_undefined_flag, $1)='-undefined dynamic_lookup'
12609 - lt_int_apple_cc_single_mod=no
12610 - output_verbose_link_cmd='echo'
12611 - if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
12612 - lt_int_apple_cc_single_mod=yes
12614 - if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
12615 - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
12617 - _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'
12619 - _LT_AC_TAGVAR(module_cmds, $1)='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
12620 - # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
12621 - if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
12622 - _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}'
12624 - _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}'
12626 - _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}'
12627 - _LT_AC_TAGVAR(hardcode_direct, $1)=no
12628 - _LT_AC_TAGVAR(hardcode_automatic, $1)=yes
12629 - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
12630 - _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='-all_load $convenience'
12631 - _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
12633 - _LT_AC_TAGVAR(ld_shlibs, $1)=no
12638 - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12639 - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
12640 - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
12644 +AC_DEFUN([AM_DEP_TRACK],
12645 +[AC_ARG_ENABLE(dependency-tracking,
12646 +[ --disable-dependency-tracking speeds up one-time build
12647 + --enable-dependency-tracking do not reject slow dependency extractors])
12648 +if test "x$enable_dependency_tracking" != xno; then
12649 + am_depcomp="$ac_aux_dir/depcomp"
12650 + AMDEPBACKSLASH='\'
12652 +AM_CONDITIONAL([AMDEP], [test "x$enable_dependency_tracking" != xno])
12653 +AC_SUBST([AMDEPBACKSLASH])
12657 - _LT_AC_TAGVAR(ld_shlibs, $1)=no
12659 +# Generate code to set up dependency tracking. -*- Autoconf -*-
12661 - # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
12662 - # support. Future versions do this automatically, but an explicit c++rt0.o
12663 - # does not break anything, and helps significantly (at the cost of a little
12666 - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
12667 - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
12668 - _LT_AC_TAGVAR(hardcode_direct, $1)=yes
12669 - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
12671 +# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005
12672 +# Free Software Foundation, Inc.
12674 +# This file is free software; the Free Software Foundation
12675 +# gives unlimited permission to copy and/or distribute it,
12676 +# with or without modifications, as long as this notice is preserved.
12680 +# _AM_OUTPUT_DEPENDENCY_COMMANDS
12681 +# ------------------------------
12682 +AC_DEFUN([_AM_OUTPUT_DEPENDENCY_COMMANDS],
12683 +[for mf in $CONFIG_FILES; do
12684 + # Strip MF so we end up with the name of the file.
12685 + mf=`echo "$mf" | sed -e 's/:.*$//'`
12686 + # Check whether this is an Automake generated Makefile or not.
12687 + # We used to match only the files named `Makefile.in', but
12688 + # some people rename them; so instead we look at the file content.
12689 + # Grep'ing the first line is not enough: some people post-process
12690 + # each Makefile.in and add a new line on top of each file to say so.
12691 + # So let's grep whole file.
12692 + if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
12693 + dirpart=`AS_DIRNAME("$mf")`
12697 + # Extract the definition of DEPDIR, am__include, and am__quote
12698 + # from the Makefile without running `make'.
12699 + DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
12700 + test -z "$DEPDIR" && continue
12701 + am__include=`sed -n 's/^am__include = //p' < "$mf"`
12702 + test -z "am__include" && continue
12703 + am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
12704 + # When using ansi2knr, U may be empty or an underscore; expand it
12705 + U=`sed -n 's/^U = //p' < "$mf"`
12706 + # Find all dependency output files, they are included files with
12707 + # $(DEPDIR) in their names. We invoke sed twice because it is the
12708 + # simplest approach to changing $(DEPDIR) to its actual value in the
12710 + for file in `sed -n "
12711 + s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
12712 + sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
12713 + # Make sure the directory exists.
12714 + test -f "$dirpart/$file" && continue
12715 + fdir=`AS_DIRNAME(["$file"])`
12716 + AS_MKDIR_P([$dirpart/$fdir])
12717 + # echo "creating $dirpart/$file"
12718 + echo '# dummy' > "$dirpart/$file"
12721 +])# _AM_OUTPUT_DEPENDENCY_COMMANDS
12723 - # Unfortunately, older versions of FreeBSD 2 do not have this feature.
12725 - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12726 - _LT_AC_TAGVAR(hardcode_direct, $1)=yes
12727 - _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
12728 - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
12731 - # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
12732 - freebsd* | kfreebsd*-gnu)
12733 - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
12734 - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
12735 - _LT_AC_TAGVAR(hardcode_direct, $1)=yes
12736 - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
12738 +# AM_OUTPUT_DEPENDENCY_COMMANDS
12739 +# -----------------------------
12740 +# This macro should only be invoked once -- use via AC_REQUIRE.
12742 +# This code is only required when automatic dependency tracking
12743 +# is enabled. FIXME. This creates each `.P' file that we will
12744 +# need in order to bootstrap the dependency handling code.
12745 +AC_DEFUN([AM_OUTPUT_DEPENDENCY_COMMANDS],
12746 +[AC_CONFIG_COMMANDS([depfiles],
12747 + [test x"$AMDEP_TRUE" != x"" || _AM_OUTPUT_DEPENDENCY_COMMANDS],
12748 + [AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"])
12752 - if test "$GCC" = yes; then
12753 - _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'
12755 - _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'
12757 - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
12758 - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
12759 - _LT_AC_TAGVAR(hardcode_direct, $1)=yes
12760 +# Copyright (C) 1996, 1997, 2000, 2001, 2003, 2005
12761 +# Free Software Foundation, Inc.
12763 +# This file is free software; the Free Software Foundation
12764 +# gives unlimited permission to copy and/or distribute it,
12765 +# with or without modifications, as long as this notice is preserved.
12767 - # hardcode_minus_L: Not really in the search PATH,
12768 - # but as the default location of the library.
12769 - _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
12770 - _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
12774 - hpux10* | hpux11*)
12775 - if test "$GCC" = yes -a "$with_gnu_ld" = no; then
12776 - case "$host_cpu" in
12778 - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
12781 - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
12785 - case "$host_cpu" in
12787 - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
12790 - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
12794 - if test "$with_gnu_ld" = no; then
12795 - case "$host_cpu" in
12797 - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
12798 - _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='+b $libdir'
12799 - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
12800 - _LT_AC_TAGVAR(hardcode_direct, $1)=no
12801 - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
12804 - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
12805 - _LT_AC_TAGVAR(hardcode_direct, $1)=no
12806 - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
12807 +# AM_CONFIG_HEADER is obsolete. It has been replaced by AC_CONFIG_HEADERS.
12808 +AU_DEFUN([AM_CONFIG_HEADER], [AC_CONFIG_HEADERS($@)])
12810 - # hardcode_minus_L: Not really in the search PATH,
12811 - # but as the default location of the library.
12812 - _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
12815 - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
12816 - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
12817 - _LT_AC_TAGVAR(hardcode_direct, $1)=yes
12818 - _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
12819 +# Do all the work for Automake. -*- Autoconf -*-
12821 - # hardcode_minus_L: Not really in the search PATH,
12822 - # but as the default location of the library.
12823 - _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
12828 +# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005
12829 +# Free Software Foundation, Inc.
12831 +# This file is free software; the Free Software Foundation
12832 +# gives unlimited permission to copy and/or distribute it,
12833 +# with or without modifications, as long as this notice is preserved.
12835 - irix5* | irix6* | nonstopux*)
12836 - if test "$GCC" = yes; then
12837 - _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'
12839 - _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'
12840 - _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='-rpath $libdir'
12842 - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
12843 - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
12844 - _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
12848 - netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
12849 - if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12850 - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
12852 - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
12854 - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
12855 - _LT_AC_TAGVAR(hardcode_direct, $1)=yes
12856 - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
12858 +# This macro actually does too much. Some checks are only needed if
12859 +# your package does certain things. But this isn't really a big deal.
12862 - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12863 - _LT_AC_TAGVAR(hardcode_direct, $1)=yes
12864 - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
12865 - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
12866 - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
12868 +# AM_INIT_AUTOMAKE(PACKAGE, VERSION, [NO-DEFINE])
12869 +# AM_INIT_AUTOMAKE([OPTIONS])
12870 +# -----------------------------------------------
12871 +# The call with PACKAGE and VERSION arguments is the old style
12872 +# call (pre autoconf-2.50), which is being phased out. PACKAGE
12873 +# and VERSION should now be passed to AC_INIT and removed from
12874 +# the call to AM_INIT_AUTOMAKE.
12875 +# We support both call styles for the transition. After
12876 +# the next Automake release, Autoconf can make the AC_INIT
12877 +# arguments mandatory, and then we can depend on a new Autoconf
12878 +# release and drop the old call support.
12879 +AC_DEFUN([AM_INIT_AUTOMAKE],
12880 +[AC_PREREQ([2.58])dnl
12881 +dnl Autoconf wants to disallow AM_ names. We explicitly allow
12882 +dnl the ones we care about.
12883 +m4_pattern_allow([^AM_[A-Z]+FLAGS$])dnl
12884 +AC_REQUIRE([AM_SET_CURRENT_AUTOMAKE_VERSION])dnl
12885 +AC_REQUIRE([AC_PROG_INSTALL])dnl
12886 +# test to see if srcdir already configured
12887 +if test "`cd $srcdir && pwd`" != "`pwd`" &&
12888 + test -f $srcdir/config.status; then
12889 + AC_MSG_ERROR([source directory already configured; run "make distclean" there first])
12893 - _LT_AC_TAGVAR(hardcode_direct, $1)=yes
12894 - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
12895 - if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12896 - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
12897 - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
12898 - _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
12901 - openbsd[[01]].* | openbsd2.[[0-7]] | openbsd2.[[0-7]].*)
12902 - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12903 - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
12906 - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
12907 - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
12912 +# test whether we have cygpath
12913 +if test -z "$CYGPATH_W"; then
12914 + if (cygpath --version) >/dev/null 2>/dev/null; then
12915 + CYGPATH_W='cygpath -w'
12920 +AC_SUBST([CYGPATH_W])
12923 - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
12924 - _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
12925 - _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
12926 - _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'
12927 - _LT_AC_TAGVAR(old_archive_From_new_cmds, $1)='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
12929 +# Define the identity of the package.
12930 +dnl Distinguish between old-style and new-style calls.
12932 +[m4_ifval([$3], [_AM_SET_OPTION([no-define])])dnl
12933 + AC_SUBST([PACKAGE], [$1])dnl
12934 + AC_SUBST([VERSION], [$2])],
12935 +[_AM_SET_OPTIONS([$1])dnl
12936 + AC_SUBST([PACKAGE], ['AC_PACKAGE_TARNAME'])dnl
12937 + AC_SUBST([VERSION], ['AC_PACKAGE_VERSION'])])dnl
12940 - if test "$GCC" = yes; then
12941 - _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
12942 - _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'
12944 - _LT_AC_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
12945 - _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'
12947 - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
12948 - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
12950 +_AM_IF_OPTION([no-define],,
12951 +[AC_DEFINE_UNQUOTED(PACKAGE, "$PACKAGE", [Name of package])
12952 + AC_DEFINE_UNQUOTED(VERSION, "$VERSION", [Version number of package])])dnl
12954 - osf4* | osf5*) # as osf3* with the addition of -msym flag
12955 - if test "$GCC" = yes; then
12956 - _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
12957 - _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'
12958 - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
12960 - _LT_AC_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
12961 - _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'
12962 - _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~
12963 - $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'
12964 +# Some tools Automake needs.
12965 +AC_REQUIRE([AM_SANITY_CHECK])dnl
12966 +AC_REQUIRE([AC_ARG_PROGRAM])dnl
12967 +AM_MISSING_PROG(ACLOCAL, aclocal-${am__api_version})
12968 +AM_MISSING_PROG(AUTOCONF, autoconf)
12969 +AM_MISSING_PROG(AUTOMAKE, automake-${am__api_version})
12970 +AM_MISSING_PROG(AUTOHEADER, autoheader)
12971 +AM_MISSING_PROG(MAKEINFO, makeinfo)
12972 +AM_PROG_INSTALL_SH
12973 +AM_PROG_INSTALL_STRIP
12974 +AC_REQUIRE([AM_PROG_MKDIR_P])dnl
12975 +# We need awk for the "check" target. The system "awk" is bad on
12977 +AC_REQUIRE([AC_PROG_AWK])dnl
12978 +AC_REQUIRE([AC_PROG_MAKE_SET])dnl
12979 +AC_REQUIRE([AM_SET_LEADING_DOT])dnl
12980 +_AM_IF_OPTION([tar-ustar], [_AM_PROG_TAR([ustar])],
12981 + [_AM_IF_OPTION([tar-pax], [_AM_PROG_TAR([pax])],
12982 + [_AM_PROG_TAR([v7])])])
12983 +_AM_IF_OPTION([no-dependencies],,
12984 +[AC_PROVIDE_IFELSE([AC_PROG_CC],
12985 + [_AM_DEPENDENCIES(CC)],
12986 + [define([AC_PROG_CC],
12987 + defn([AC_PROG_CC])[_AM_DEPENDENCIES(CC)])])dnl
12988 +AC_PROVIDE_IFELSE([AC_PROG_CXX],
12989 + [_AM_DEPENDENCIES(CXX)],
12990 + [define([AC_PROG_CXX],
12991 + defn([AC_PROG_CXX])[_AM_DEPENDENCIES(CXX)])])dnl
12995 - # Both c and cxx compiler support -rpath directly
12996 - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
12998 - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
13002 - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13003 - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
13004 - _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport'
13005 - runpath_var=LD_RUN_PATH
13006 - hardcode_runpath_var=yes
13008 +# When config.status generates a header, we must update the stamp-h file.
13009 +# This file resides in the same directory as the config header
13010 +# that is generated. The stamp files are numbered to have different names.
13013 - _LT_AC_TAGVAR(no_undefined_flag, $1)=' -z text'
13014 - if test "$GCC" = yes; then
13015 - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13016 - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13017 - $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
13019 - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
13020 - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13021 - $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
13023 - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
13024 - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
13026 - solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
13027 - *) # Supported since Solaris 2.6 (maybe 2.5.1?)
13028 - _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract' ;;
13030 - _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
13032 +# Autoconf calls _AC_AM_CONFIG_HEADER_HOOK (when defined) in the
13033 +# loop where config.status creates the headers, so we can generate
13034 +# our stamp files there.
13035 +AC_DEFUN([_AC_AM_CONFIG_HEADER_HOOK],
13036 +[# Compute $1's index in $config_headers.
13038 +for _am_header in $config_headers :; do
13039 + case $_am_header in
13043 + _am_stamp_count=`expr $_am_stamp_count + 1` ;;
13046 +echo "timestamp for $1" >`AS_DIRNAME([$1])`/stamp-h[]$_am_stamp_count])
13049 - if test "x$host_vendor" = xsequent; then
13050 - # Use $CC to link under sequent, because it throws in some extra .o
13051 - # files that make .init and .fini sections work.
13052 - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
13054 - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
13056 - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
13057 - _LT_AC_TAGVAR(hardcode_direct, $1)=yes
13058 - _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
13059 - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
13061 +# Copyright (C) 2001, 2003, 2005 Free Software Foundation, Inc.
13063 +# This file is free software; the Free Software Foundation
13064 +# gives unlimited permission to copy and/or distribute it,
13065 +# with or without modifications, as long as this notice is preserved.
13068 - case $host_vendor in
13070 - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13071 - _LT_AC_TAGVAR(hardcode_direct, $1)=yes # is this really true???
13074 - ## LD is ld it makes a PLAMLIB
13075 - ## CC just makes a GrossModule.
13076 - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -o $lib $libobjs $deplibs $linker_flags'
13077 - _LT_AC_TAGVAR(reload_cmds, $1)='$CC -r -o $output$reload_objs'
13078 - _LT_AC_TAGVAR(hardcode_direct, $1)=no
13081 - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13082 - _LT_AC_TAGVAR(hardcode_direct, $1)=no #Motorola manual says yes, but my tests say they lie
13085 - runpath_var='LD_RUN_PATH'
13086 - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
13088 +# AM_PROG_INSTALL_SH
13089 +# ------------------
13090 +# Define $install_sh.
13091 +AC_DEFUN([AM_PROG_INSTALL_SH],
13092 +[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
13093 +install_sh=${install_sh-"$am_aux_dir/install-sh"}
13094 +AC_SUBST(install_sh)])
13097 - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13098 - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
13099 - _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='-Bexport'
13101 +# Copyright (C) 2003, 2005 Free Software Foundation, Inc.
13103 +# This file is free software; the Free Software Foundation
13104 +# gives unlimited permission to copy and/or distribute it,
13105 +# with or without modifications, as long as this notice is preserved.
13108 - if test -d /usr/nec; then
13109 - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13110 - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
13111 - runpath_var=LD_RUN_PATH
13112 - hardcode_runpath_var=yes
13113 - _LT_AC_TAGVAR(ld_shlibs, $1)=yes
13119 - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -o $lib $libobjs $deplibs $linker_flags'
13120 - _LT_AC_TAGVAR(hardcode_direct, $1)=yes
13121 - _LT_AC_TAGVAR(hardcode_minus_L, $1)=no
13122 - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
13123 - hardcode_runpath_var=yes
13124 - runpath_var=LD_RUN_PATH
13126 +# Check whether the underlying file-system supports filenames
13127 +# with a leading dot. For instance MS-DOS doesn't.
13128 +AC_DEFUN([AM_SET_LEADING_DOT],
13129 +[rm -rf .tst 2>/dev/null
13130 +mkdir .tst 2>/dev/null
13131 +if test -d .tst; then
13132 + am__leading_dot=.
13134 + am__leading_dot=_
13136 +rmdir .tst 2>/dev/null
13137 +AC_SUBST([am__leading_dot])])
13139 - sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[[78]]* | unixware7*)
13140 - _LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z ${wl}text'
13141 - if test "$GCC" = yes; then
13142 - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13144 - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13146 - runpath_var='LD_RUN_PATH'
13147 - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
13149 +# Check to see how 'make' treats includes. -*- Autoconf -*-
13152 - _LT_AC_TAGVAR(no_undefined_flag, $1)=' -z text'
13153 - # $CC -shared without GNU ld will not create a library from C++
13154 - # object files and a static libstdc++, better avoid it by now
13155 - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
13156 - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13157 - $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
13158 - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=
13159 - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
13160 - runpath_var='LD_RUN_PATH'
13162 +# Copyright (C) 2001, 2002, 2003, 2005 Free Software Foundation, Inc.
13164 +# This file is free software; the Free Software Foundation
13165 +# gives unlimited permission to copy and/or distribute it,
13166 +# with or without modifications, as long as this notice is preserved.
13169 - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13170 - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
13171 - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
13176 - _LT_AC_TAGVAR(ld_shlibs, $1)=no
13180 +# AM_MAKE_INCLUDE()
13181 +# -----------------
13182 +# Check to see how make treats includes.
13183 +AC_DEFUN([AM_MAKE_INCLUDE],
13184 +[am_make=${MAKE-make}
13185 +cat > confinc << 'END'
13190 +# If we don't find an include directive, just comment out the code.
13191 +AC_MSG_CHECKING([for style of include used by $am_make])
13195 +# First try GNU make style include.
13196 +echo "include confinc" > confmf
13197 +# We grep out `Entering directory' and `Leaving directory'
13198 +# messages which can occur if `w' ends up in MAKEFLAGS.
13199 +# In particular we don't look at `^make:' because GNU make might
13200 +# be invoked under some other name (usually "gmake"), in which
13201 +# case it prints its new name instead of `make'.
13202 +if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
13203 + am__include=include
13207 +# Now try BSD make style include.
13208 +if test "$am__include" = "#"; then
13209 + echo '.include "confinc"' > confmf
13210 + if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
13211 + am__include=.include
13216 +AC_SUBST([am__include])
13217 +AC_SUBST([am__quote])
13218 +AC_MSG_RESULT([$_am_result])
13219 +rm -f confinc confmf
13221 -AC_MSG_RESULT([$_LT_AC_TAGVAR(ld_shlibs, $1)])
13222 -test "$_LT_AC_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no
13224 -variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13225 -if test "$GCC" = yes; then
13226 - variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13228 +# Fake the existence of programs that GNU maintainers use. -*- Autoconf -*-
13230 +# Copyright (C) 1997, 1999, 2000, 2001, 2003, 2005
13231 +# Free Software Foundation, Inc.
13233 -# Do we need to explicitly link libc?
13235 -case "x$_LT_AC_TAGVAR(archive_cmds_need_lc, $1)" in
13237 - # Assume -lc should be added
13238 - _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes
13239 +# This file is free software; the Free Software Foundation
13240 +# gives unlimited permission to copy and/or distribute it,
13241 +# with or without modifications, as long as this notice is preserved.
13243 - if test "$enable_shared" = yes && test "$GCC" = yes; then
13244 - case $_LT_AC_TAGVAR(archive_cmds, $1) in
13246 - # FIXME: we may have to deal with multi-command sequences.
13249 - # Test whether the compiler implicitly links with -lc since on some
13250 - # systems, -lgcc has to come before -lc. If gcc already passes -lc
13251 - # to ld, don't add -lc before -lgcc.
13252 - AC_MSG_CHECKING([whether -lc should be explicitly linked in])
13254 - printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13257 - if AC_TRY_EVAL(ac_compile) 2>conftest.err; then
13260 - libobjs=conftest.$ac_objext
13262 - wl=$_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)
13263 - compiler_flags=-v
13268 - lt_save_allow_undefined_flag=$_LT_AC_TAGVAR(allow_undefined_flag, $1)
13269 - _LT_AC_TAGVAR(allow_undefined_flag, $1)=
13270 - if AC_TRY_EVAL(_LT_AC_TAGVAR(archive_cmds, $1) 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1)
13272 - _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
13274 - _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes
13276 - _LT_AC_TAGVAR(allow_undefined_flag, $1)=$lt_save_allow_undefined_flag
13278 - cat conftest.err 1>&5
13281 - AC_MSG_RESULT([$_LT_AC_TAGVAR(archive_cmds_need_lc, $1)])
13287 -])# AC_LIBTOOL_PROG_LD_SHLIBS
13288 +# AM_MISSING_PROG(NAME, PROGRAM)
13289 +# ------------------------------
13290 +AC_DEFUN([AM_MISSING_PROG],
13291 +[AC_REQUIRE([AM_MISSING_HAS_RUN])
13292 +$1=${$1-"${am_missing_run}$2"}
13296 +# AM_MISSING_HAS_RUN
13297 +# ------------------
13298 +# Define MISSING if not defined so far and test if it supports --run.
13299 +# If it does, set am_missing_run to use it, otherwise, to nothing.
13300 +AC_DEFUN([AM_MISSING_HAS_RUN],
13301 +[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
13302 +test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
13303 +# Use eval to expand $SHELL
13304 +if eval "$MISSING --run true"; then
13305 + am_missing_run="$MISSING --run "
13308 + AC_MSG_WARN([`missing' script is too old or missing])
13312 +# Copyright (C) 2003, 2004, 2005 Free Software Foundation, Inc.
13314 +# This file is free software; the Free Software Foundation
13315 +# gives unlimited permission to copy and/or distribute it,
13316 +# with or without modifications, as long as this notice is preserved.
13318 -# _LT_AC_FILE_LTDLL_C
13319 -# -------------------
13320 -# Be careful that the start marker always follows a newline.
13321 -AC_DEFUN([_LT_AC_FILE_LTDLL_C], [
13322 -# /* ltdll.c starts here */
13323 -# #define WIN32_LEAN_AND_MEAN
13324 -# #include <windows.h>
13325 -# #undef WIN32_LEAN_AND_MEAN
13326 -# #include <stdio.h>
13329 +# Check whether `mkdir -p' is supported, fallback to mkinstalldirs otherwise.
13331 -# #ifndef __CYGWIN__
13332 -# # ifdef __CYGWIN32__
13333 -# # define __CYGWIN__ __CYGWIN32__
13336 +# Automake 1.8 used `mkdir -m 0755 -p --' to ensure that directories
13337 +# created by `make install' are always world readable, even if the
13338 +# installer happens to have an overly restrictive umask (e.g. 077).
13339 +# This was a mistake. There are at least two reasons why we must not
13341 +# - it causes special bits like SGID to be ignored,
13342 +# - it may be too restrictive (some setups expect 775 directories).
13344 -# #ifdef __cplusplus
13347 -# BOOL APIENTRY DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved);
13348 -# #ifdef __cplusplus
13351 +# Do not use -m 0755 and let people choose whatever they expect by
13354 -# #ifdef __CYGWIN__
13355 -# #include <cygwin/cygwin_dll.h>
13356 -# DECLARE_CYGWIN_DLL( DllMain );
13358 -# HINSTANCE __hDllInstance_base;
13359 +# We cannot accept any implementation of `mkdir' that recognizes `-p'.
13360 +# Some implementations (such as Solaris 8's) are not thread-safe: if a
13361 +# parallel make tries to run `mkdir -p a/b' and `mkdir -p a/c'
13362 +# concurrently, both version can detect that a/ is missing, but only
13363 +# one can create it and the other will error out. Consequently we
13364 +# restrict ourselves to GNU make (using the --version option ensures
13366 +AC_DEFUN([AM_PROG_MKDIR_P],
13367 +[if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
13368 + # We used to keeping the `.' as first argument, in order to
13369 + # allow $(mkdir_p) to be used without argument. As in
13370 + # $(mkdir_p) $(somedir)
13371 + # where $(somedir) is conditionally defined. However this is wrong
13372 + # for two reasons:
13373 + # 1. if the package is installed by a user who cannot write `.'
13374 + # make install will fail,
13375 + # 2. the above comment should most certainly read
13376 + # $(mkdir_p) $(DESTDIR)$(somedir)
13377 + # so it does not work when $(somedir) is undefined and
13378 + # $(DESTDIR) is not.
13379 + # To support the latter case, we have to write
13380 + # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
13381 + # so the `.' trick is pointless.
13382 + mkdir_p='mkdir -p --'
13384 + # On NextStep and OpenStep, the `mkdir' command does not
13385 + # recognize any option. It will interpret all options as
13386 + # directories to create, and then abort because `.' already
13388 + for d in ./-p ./--version;
13390 + test -d $d && rmdir $d
13392 + # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
13393 + if test -f "$ac_aux_dir/mkinstalldirs"; then
13394 + mkdir_p='$(mkinstalldirs)'
13396 + mkdir_p='$(install_sh) -d'
13399 +AC_SUBST([mkdir_p])])
13401 +# Helper functions for option handling. -*- Autoconf -*-
13403 +# Copyright (C) 2001, 2002, 2003, 2005 Free Software Foundation, Inc.
13406 -# DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved)
13408 -# __hDllInstance_base = hInst;
13411 -# /* ltdll.c ends here */
13412 -])# _LT_AC_FILE_LTDLL_C
13413 +# This file is free software; the Free Software Foundation
13414 +# gives unlimited permission to copy and/or distribute it,
13415 +# with or without modifications, as long as this notice is preserved.
13419 -# _LT_AC_TAGVAR(VARNAME, [TAGNAME])
13420 -# ---------------------------------
13421 -AC_DEFUN([_LT_AC_TAGVAR], [ifelse([$2], [], [$1], [$1_$2])])
13422 +# _AM_MANGLE_OPTION(NAME)
13423 +# -----------------------
13424 +AC_DEFUN([_AM_MANGLE_OPTION],
13425 +[[_AM_OPTION_]m4_bpatsubst($1, [[^a-zA-Z0-9_]], [_])])
13427 +# _AM_SET_OPTION(NAME)
13428 +# ------------------------------
13429 +# Set option NAME. Presently that only means defining a flag for this option.
13430 +AC_DEFUN([_AM_SET_OPTION],
13431 +[m4_define(_AM_MANGLE_OPTION([$1]), 1)])
13434 -AC_DEFUN([AM_PROG_LIBTOOL], [AC_PROG_LIBTOOL])
13435 -AC_DEFUN([AM_ENABLE_SHARED], [AC_ENABLE_SHARED($@)])
13436 -AC_DEFUN([AM_ENABLE_STATIC], [AC_ENABLE_STATIC($@)])
13437 -AC_DEFUN([AM_DISABLE_SHARED], [AC_DISABLE_SHARED($@)])
13438 -AC_DEFUN([AM_DISABLE_STATIC], [AC_DISABLE_STATIC($@)])
13439 -AC_DEFUN([AM_PROG_LD], [AC_PROG_LD])
13440 -AC_DEFUN([AM_PROG_NM], [AC_PROG_NM])
13441 +# _AM_SET_OPTIONS(OPTIONS)
13442 +# ----------------------------------
13443 +# OPTIONS is a space-separated list of Automake options.
13444 +AC_DEFUN([_AM_SET_OPTIONS],
13445 +[AC_FOREACH([_AM_Option], [$1], [_AM_SET_OPTION(_AM_Option)])])
13447 -# This is just to silence aclocal about the macro not being used
13448 -ifelse([AC_DISABLE_FAST_INSTALL])
13449 +# _AM_IF_OPTION(OPTION, IF-SET, [IF-NOT-SET])
13450 +# -------------------------------------------
13451 +# Execute IF-SET if OPTION is set, IF-NOT-SET otherwise.
13452 +AC_DEFUN([_AM_IF_OPTION],
13453 +[m4_ifset(_AM_MANGLE_OPTION([$1]), [$2], [$3])])
13455 -AC_DEFUN([LT_AC_PROG_GCJ],
13456 -[AC_CHECK_TOOL(GCJ, gcj, no)
13457 - test "x${GCJFLAGS+set}" = xset || GCJFLAGS="-g -O2"
13458 - AC_SUBST(GCJFLAGS)
13460 +# Check to make sure that the build environment is sane. -*- Autoconf -*-
13462 -AC_DEFUN([LT_AC_PROG_RC],
13463 -[AC_CHECK_TOOL(RC, windres, no)
13465 +# Copyright (C) 1996, 1997, 2000, 2001, 2003, 2005
13466 +# Free Software Foundation, Inc.
13468 +# This file is free software; the Free Software Foundation
13469 +# gives unlimited permission to copy and/or distribute it,
13470 +# with or without modifications, as long as this notice is preserved.
13472 -# NOTE: This macro has been submitted for inclusion into #
13473 -# GNU Autoconf as AC_PROG_SED. When it is available in #
13474 -# a released version of Autoconf we should remove this #
13475 -# macro and use it instead. #
13478 -# Check for a fully-functional sed program, that truncates
13479 -# as few characters as possible. Prefer GNU sed if found.
13480 -AC_DEFUN([LT_AC_PROG_SED],
13481 -[AC_MSG_CHECKING([for a sed that does not truncate output])
13482 -AC_CACHE_VAL(lt_cv_path_SED,
13483 -[# Loop through the user's path and test for sed and gsed.
13484 -# Then use that list of sed's as ones to test for truncation.
13485 -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13486 -for as_dir in $PATH
13489 - test -z "$as_dir" && as_dir=.
13490 - for lt_ac_prog in sed gsed; do
13491 - for ac_exec_ext in '' $ac_executable_extensions; do
13492 - if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
13493 - lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
13500 -# Add /usr/xpg4/bin/sed as it is typically found on Solaris
13501 -# along with /bin/sed that truncates output.
13502 -for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
13503 - test ! -f $lt_ac_sed && break
13504 - cat /dev/null > conftest.in
13506 - echo $ECHO_N "0123456789$ECHO_C" >conftest.in
13507 - # Check for GNU sed and select it if it is found.
13508 - if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
13509 - lt_cv_path_SED=$lt_ac_sed
13513 - cat conftest.in conftest.in >conftest.tmp
13514 - mv conftest.tmp conftest.in
13515 - cp conftest.in conftest.nl
13516 - echo >>conftest.nl
13517 - $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
13518 - cmp -s conftest.out conftest.nl || break
13519 - # 10000 chars as input seems more than enough
13520 - test $lt_ac_count -gt 10 && break
13521 - lt_ac_count=`expr $lt_ac_count + 1`
13522 - if test $lt_ac_count -gt $lt_ac_max; then
13523 - lt_ac_max=$lt_ac_count
13524 - lt_cv_path_SED=$lt_ac_sed
13528 -SED=$lt_cv_path_SED
13530 -AC_MSG_RESULT([$SED])
13536 +AC_DEFUN([AM_SANITY_CHECK],
13537 +[AC_MSG_CHECKING([whether build environment is sane])
13540 +echo timestamp > conftest.file
13541 +# Do `set' in a subshell so we don't clobber the current shell's
13542 +# arguments. Must try -L first in case configure is actually a
13543 +# symlink; some systems play weird games with the mod time of symlinks
13544 +# (eg FreeBSD returns the mod time of the symlink's containing
13547 + set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
13548 + if test "$[*]" = "X"; then
13549 + # -L didn't work.
13550 + set X `ls -t $srcdir/configure conftest.file`
13552 + rm -f conftest.file
13553 + if test "$[*]" != "X $srcdir/configure conftest.file" \
13554 + && test "$[*]" != "X conftest.file $srcdir/configure"; then
13556 -dnl PKG_CHECK_MODULES(GSTUFF, gtk+-2.0 >= 1.3 glib = 1.3.4, action-if, action-not)
13557 -dnl defines GSTUFF_LIBS, GSTUFF_CFLAGS, see pkg-config man page
13558 -dnl also defines GSTUFF_PKG_ERRORS on error
13559 -AC_DEFUN(PKG_CHECK_MODULES, [
13562 - if test -z "$PKG_CONFIG"; then
13563 - AC_PATH_PROG(PKG_CONFIG, pkg-config, no)
13565 + # If neither matched, then we have a broken ls. This can happen
13566 + # if, for instance, CONFIG_SHELL is bash and it inherits a
13567 + # broken ls alias from the environment. This has actually
13568 + # happened. Such a system could not be considered "sane".
13569 + AC_MSG_ERROR([ls -t appears to fail. Make sure there is not a broken
13570 +alias in your environment])
13573 - if test "$PKG_CONFIG" = "no" ; then
13574 - echo "*** The pkg-config script could not be found. Make sure it is"
13575 - echo "*** in your path, or set the PKG_CONFIG environment variable"
13576 - echo "*** to the full path to pkg-config."
13577 - echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
13579 - PKG_CONFIG_MIN_VERSION=0.9.0
13580 - if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
13581 - AC_MSG_CHECKING(for $2)
13583 - if $PKG_CONFIG --exists "$2" ; then
13584 - AC_MSG_RESULT(yes)
13587 - AC_MSG_CHECKING($1_CFLAGS)
13588 - $1_CFLAGS=`$PKG_CONFIG --cflags "$2"`
13589 - AC_MSG_RESULT($$1_CFLAGS)
13591 - AC_MSG_CHECKING($1_LIBS)
13592 - $1_LIBS=`$PKG_CONFIG --libs "$2"`
13593 - AC_MSG_RESULT($$1_LIBS)
13597 - ## If we have a custom action on failure, don't print errors, but
13598 - ## do set a variable so people can do so.
13599 - $1_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$2"`
13600 - ifelse([$4], ,echo $$1_PKG_ERRORS,)
13602 + test "$[2]" = conftest.file
13608 + AC_MSG_ERROR([newly created file is older than distributed files!
13609 +Check your system clock])
13611 +AC_MSG_RESULT(yes)])
13613 - AC_SUBST($1_CFLAGS)
13614 - AC_SUBST($1_LIBS)
13616 - echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
13617 - echo "*** See http://www.freedesktop.org/software/pkgconfig"
13620 +# Copyright (C) 2001, 2003, 2005 Free Software Foundation, Inc.
13622 +# This file is free software; the Free Software Foundation
13623 +# gives unlimited permission to copy and/or distribute it,
13624 +# with or without modifications, as long as this notice is preserved.
13626 - if test $succeeded = yes; then
13627 - ifelse([$3], , :, [$3])
13629 - ifelse([$4], , AC_MSG_ERROR([Library requirements ($2) not met; consider adjusting the PKG_CONFIG_PATH environment variable if your libraries are in a nonstandard prefix so pkg-config can find them.]), [$4])
13632 +# AM_PROG_INSTALL_STRIP
13633 +# ---------------------
13634 +# One issue with vendor `install' (even GNU) is that you can't
13635 +# specify the program used to strip binaries. This is especially
13636 +# annoying in cross-compiling environments, where the build's strip
13637 +# is unlikely to handle the host's binaries.
13638 +# Fortunately install-sh will honor a STRIPPROG variable, so we
13639 +# always use install-sh in `make install-strip', and initialize
13640 +# STRIPPROG with the value of the STRIP variable (set by the user).
13641 +AC_DEFUN([AM_PROG_INSTALL_STRIP],
13642 +[AC_REQUIRE([AM_PROG_INSTALL_SH])dnl
13643 +# Installed binaries are usually stripped using `strip' when the user
13644 +# run `make install-strip'. However `strip' might not be the right
13645 +# tool to use in cross-compilation environments, therefore Automake
13646 +# will honor the `STRIP' environment variable to overrule this program.
13647 +dnl Don't test for $cross_compiling = yes, because it might be `maybe'.
13648 +if test "$cross_compiling" != no; then
13649 + AC_CHECK_TOOL([STRIP], [strip], :)
13651 +INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
13652 +AC_SUBST([INSTALL_STRIP_PROGRAM])])
13654 +# Check how to create a tarball. -*- Autoconf -*-
13656 +# Copyright (C) 2004, 2005 Free Software Foundation, Inc.
13658 +# This file is free software; the Free Software Foundation
13659 +# gives unlimited permission to copy and/or distribute it,
13660 +# with or without modifications, as long as this notice is preserved.
13664 +# _AM_PROG_TAR(FORMAT)
13665 +# --------------------
13666 +# Check how to create a tarball in format FORMAT.
13667 +# FORMAT should be one of `v7', `ustar', or `pax'.
13669 +# Substitute a variable $(am__tar) that is a command
13670 +# writing to stdout a FORMAT-tarball containing the directory
13672 +# tardir=directory && $(am__tar) > result.tar
13674 +# Substitute a variable $(am__untar) that extract such
13675 +# a tarball read from stdin.
13676 +# $(am__untar) < result.tar
13677 +AC_DEFUN([_AM_PROG_TAR],
13678 +[# Always define AMTAR for backward compatibility.
13679 +AM_MISSING_PROG([AMTAR], [tar])
13681 + [am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'],
13682 + [m4_case([$1], [ustar],, [pax],,
13683 + [m4_fatal([Unknown tar format])])
13684 +AC_MSG_CHECKING([how to create a $1 tar archive])
13685 +# Loop over all known methods to create a tar archive until one works.
13686 +_am_tools='gnutar m4_if([$1], [ustar], [plaintar]) pax cpio none'
13687 +_am_tools=${am_cv_prog_tar_$1-$_am_tools}
13688 +# Do not fold the above two line into one, because Tru64 sh and
13689 +# Solaris sh will not grok spaces in the rhs of `-'.
13690 +for _am_tool in $_am_tools
13692 + case $_am_tool in
13694 + for _am_tar in tar gnutar gtar;
13696 + AM_RUN_LOG([$_am_tar --version]) && break
13698 + am__tar="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$$tardir"'
13699 + am__tar_="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$tardir"'
13700 + am__untar="$_am_tar -xf -"
13703 + # Must skip GNU tar: if it does not support --format= it doesn't create
13704 + # ustar tarball either.
13705 + (tar --version) >/dev/null 2>&1 && continue
13706 + am__tar='tar chf - "$$tardir"'
13707 + am__tar_='tar chf - "$tardir"'
13708 + am__untar='tar xf -'
13711 + am__tar='pax -L -x $1 -w "$$tardir"'
13712 + am__tar_='pax -L -x $1 -w "$tardir"'
13713 + am__untar='pax -r'
13716 + am__tar='find "$$tardir" -print | cpio -o -H $1 -L'
13717 + am__tar_='find "$tardir" -print | cpio -o -H $1 -L'
13718 + am__untar='cpio -i -H $1 -d'
13727 + # If the value was cached, stop now. We just wanted to have am__tar
13728 + # and am__untar set.
13729 + test -n "${am_cv_prog_tar_$1}" && break
13731 + # tar/untar a dummy directory, and stop if the command works
13732 + rm -rf conftest.dir
13733 + mkdir conftest.dir
13734 + echo GrepMe > conftest.dir/file
13735 + AM_RUN_LOG([tardir=conftest.dir && eval $am__tar_ >conftest.tar])
13736 + rm -rf conftest.dir
13737 + if test -s conftest.tar; then
13738 + AM_RUN_LOG([$am__untar <conftest.tar])
13739 + grep GrepMe conftest.dir/file >/dev/null 2>&1 && break
13742 +rm -rf conftest.dir
13744 +AC_CACHE_VAL([am_cv_prog_tar_$1], [am_cv_prog_tar_$1=$_am_tool])
13745 +AC_MSG_RESULT([$am_cv_prog_tar_$1])])
13746 +AC_SUBST([am__tar])
13747 +AC_SUBST([am__untar])
13750 +m4_include([acinclude.m4])
13751 diff -urN libsamplerate.old/ltmain.sh libsamplerate.dev/ltmain.sh
13752 --- libsamplerate.old/ltmain.sh 2007-11-07 23:58:24.448610386 +0100
13753 +++ libsamplerate.dev/ltmain.sh 2006-03-22 01:06:55.000000000 +0100
13755 # ltmain.sh - Provide generalized library-building support services.
13756 # NOTE: Changing this file will not affect anything until you rerun configure.
13758 -# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004
13759 +# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005
13760 # Free Software Foundation, Inc.
13761 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
13765 # You should have received a copy of the GNU General Public License
13766 # along with this program; if not, write to the Free Software
13767 -# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
13768 +# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
13770 # As a special exception to the GNU General Public License, if you
13771 # distribute this file as part of a program that contains a
13777 -TIMESTAMP=" (1.1220.2.95 2004/04/11 05:50:42) Debian$Rev: 215 $"
13778 +VERSION="1.5.22 Debian 1.5.22-4"
13779 +TIMESTAMP=" (1.1220.2.365 2005/12/18 22:14:06)"
13781 +# See if we are running on zsh, and set the options which allow our
13782 +# commands through without removal of \ escapes.
13783 +if test -n "${ZSH_VERSION+set}" ; then
13784 + setopt NO_GLOB_SUBST
13787 # Check that we have a working $echo.
13788 if test "X$1" = X--no-reexec; then
13789 @@ -83,14 +88,15 @@
13790 Xsed="${SED}"' -e 1s/^X//'
13791 sed_quote_subst='s/\([\\`\\"$\\\\]\)/\\\1/g'
13792 # test EBCDIC or ASCII
13793 -case `echo A|tr A '\301'` in
13794 - A) # EBCDIC based system
13795 - SP2NL="tr '\100' '\n'"
13796 - NL2SP="tr '\r\n' '\100\100'"
13797 +case `echo X|tr X '\101'` in
13798 + A) # ASCII based system
13799 + # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
13800 + SP2NL='tr \040 \012'
13801 + NL2SP='tr \015\012 \040\040'
13803 - *) # Assume ASCII based system
13804 - SP2NL="tr '\040' '\012'"
13805 - NL2SP="tr '\015\012' '\040\040'"
13806 + *) # EBCDIC based system
13807 + SP2NL='tr \100 \n'
13808 + NL2SP='tr \r\n \100\100'
13812 @@ -107,8 +113,9 @@
13815 # Make sure IFS has a sensible default
13822 if test "$build_libtool_libs" != yes && test "$build_old_libs" != yes; then
13823 $echo "$modename: not configured to build any kind of library" 1>&2
13824 @@ -125,6 +132,8 @@
13830 lo2o="s/\\.lo\$/.${objext}/"
13831 o2lo="s/\\.${objext}\$/.lo/"
13833 @@ -132,13 +141,51 @@
13834 # Shell function definitions:
13835 # This seems to be the best place for them
13837 +# func_mktempdir [string]
13838 +# Make a temporary directory that won't clash with other running
13839 +# libtool processes, and avoids race conditions if possible. If
13840 +# given, STRING is the basename for that directory.
13843 + my_template="${TMPDIR-/tmp}/${1-$progname}"
13845 + if test "$run" = ":"; then
13846 + # Return a directory name, but don't create it in dry-run mode
13847 + my_tmpdir="${my_template}-$$"
13850 + # If mktemp works, use that first and foremost
13851 + my_tmpdir=`mktemp -d "${my_template}-XXXXXXXX" 2>/dev/null`
13853 + if test ! -d "$my_tmpdir"; then
13854 + # Failing that, at least try and use $RANDOM to avoid a race
13855 + my_tmpdir="${my_template}-${RANDOM-0}$$"
13857 + save_mktempdir_umask=`umask`
13859 + $mkdir "$my_tmpdir"
13860 + umask $save_mktempdir_umask
13863 + # If we're not in dry-run mode, bomb out on failure
13864 + test -d "$my_tmpdir" || {
13865 + $echo "cannot create temporary directory \`$my_tmpdir'" 1>&2
13866 + exit $EXIT_FAILURE
13870 + $echo "X$my_tmpdir" | $Xsed
13874 # func_win32_libid arg
13875 # return the library type of file 'arg'
13877 # Need a lot of goo to handle *both* DLLs and import libs
13878 # Has to be a shell function in order to 'eat' the argument
13879 # that is supplied when $file_magic_command is called.
13880 -func_win32_libid () {
13881 +func_win32_libid ()
13883 win32_libid_type="unknown"
13884 win32_fileres=`file -L $1 2>/dev/null`
13885 case $win32_fileres in
13886 @@ -149,12 +196,11 @@
13887 if eval $OBJDUMP -f $1 | $SED -e '10q' 2>/dev/null | \
13888 $EGREP -e 'file format pe-i386(.*architecture: i386)?' >/dev/null ; then
13889 win32_nmres=`eval $NM -f posix -A $1 | \
13890 - sed -n -e '1,100{/ I /{x;/import/!{s/^/import/;h;p;};x;};}'`
13891 - if test "X$win32_nmres" = "Ximport" ; then
13892 - win32_libid_type="x86 archive import"
13894 - win32_libid_type="x86 archive static"
13896 + $SED -n -e '1,100{/ I /{s,.*,import,;p;q;};}'`
13897 + case $win32_nmres in
13898 + import*) win32_libid_type="x86 archive import";;
13899 + *) win32_libid_type="x86 archive static";;
13904 @@ -178,7 +224,8 @@
13905 # Only attempt this if the compiler in the base compile
13906 # command doesn't match the default compiler.
13907 # arg is usually of the form 'gcc ...'
13908 -func_infer_tag () {
13911 if test -n "$available_tags" && test -z "$tagname"; then
13914 @@ -235,12 +282,116 @@
13920 +# func_extract_an_archive dir oldlib
13921 +func_extract_an_archive ()
13923 + f_ex_an_ar_dir="$1"; shift
13924 + f_ex_an_ar_oldlib="$1"
13926 + $show "(cd $f_ex_an_ar_dir && $AR x $f_ex_an_ar_oldlib)"
13927 + $run eval "(cd \$f_ex_an_ar_dir && $AR x \$f_ex_an_ar_oldlib)" || exit $?
13928 + if ($AR t "$f_ex_an_ar_oldlib" | sort | sort -uc >/dev/null 2>&1); then
13931 + $echo "$modename: ERROR: object name conflicts: $f_ex_an_ar_dir/$f_ex_an_ar_oldlib" 1>&2
13932 + exit $EXIT_FAILURE
13936 +# func_extract_archives gentop oldlib ...
13937 +func_extract_archives ()
13939 + my_gentop="$1"; shift
13940 + my_oldlibs=${1+"$@"}
13947 + $show "${rm}r $my_gentop"
13948 + $run ${rm}r "$my_gentop"
13949 + $show "$mkdir $my_gentop"
13950 + $run $mkdir "$my_gentop"
13952 + if test "$my_status" -ne 0 && test ! -d "$my_gentop"; then
13956 + for my_xlib in $my_oldlibs; do
13957 + # Extract the objects.
13959 + [\\/]* | [A-Za-z]:[\\/]*) my_xabs="$my_xlib" ;;
13960 + *) my_xabs=`pwd`"/$my_xlib" ;;
13962 + my_xlib=`$echo "X$my_xlib" | $Xsed -e 's%^.*/%%'`
13963 + my_xdir="$my_gentop/$my_xlib"
13965 + $show "${rm}r $my_xdir"
13966 + $run ${rm}r "$my_xdir"
13967 + $show "$mkdir $my_xdir"
13968 + $run $mkdir "$my_xdir"
13970 + if test "$exit_status" -ne 0 && test ! -d "$my_xdir"; then
13971 + exit $exit_status
13975 + $show "Extracting $my_xabs"
13976 + # Do not bother doing anything if just a dry run
13977 + if test -z "$run"; then
13978 + darwin_orig_dir=`pwd`
13979 + cd $my_xdir || exit $?
13980 + darwin_archive=$my_xabs
13981 + darwin_curdir=`pwd`
13982 + darwin_base_archive=`$echo "X$darwin_archive" | $Xsed -e 's%^.*/%%'`
13983 + darwin_arches=`lipo -info "$darwin_archive" 2>/dev/null | $EGREP Architectures 2>/dev/null`
13984 + if test -n "$darwin_arches"; then
13985 + darwin_arches=`echo "$darwin_arches" | $SED -e 's/.*are://'`
13987 + $show "$darwin_base_archive has multiple architectures $darwin_arches"
13988 + for darwin_arch in $darwin_arches ; do
13989 + mkdir -p "unfat-$$/${darwin_base_archive}-${darwin_arch}"
13990 + lipo -thin $darwin_arch -output "unfat-$$/${darwin_base_archive}-${darwin_arch}/${darwin_base_archive}" "${darwin_archive}"
13991 + cd "unfat-$$/${darwin_base_archive}-${darwin_arch}"
13992 + func_extract_an_archive "`pwd`" "${darwin_base_archive}"
13993 + cd "$darwin_curdir"
13994 + $rm "unfat-$$/${darwin_base_archive}-${darwin_arch}/${darwin_base_archive}"
13995 + done # $darwin_arches
13996 + ## Okay now we have a bunch of thin objects, gotta fatten them up :)
13997 + darwin_filelist=`find unfat-$$ -type f -name \*.o -print -o -name \*.lo -print| xargs basename | sort -u | $NL2SP`
14000 + for darwin_file in $darwin_filelist; do
14001 + darwin_files=`find unfat-$$ -name $darwin_file -print | $NL2SP`
14002 + lipo -create -output "$darwin_file" $darwin_files
14003 + done # $darwin_filelist
14005 + cd "$darwin_orig_dir"
14007 + cd "$darwin_orig_dir"
14008 + func_extract_an_archive "$my_xdir" "$my_xabs"
14009 + fi # $darwin_arches
14013 + func_extract_an_archive "$my_xdir" "$my_xabs"
14016 + my_oldobjs="$my_oldobjs "`find $my_xdir -name \*.$objext -print -o -name \*.lo -print | $NL2SP`
14018 + func_extract_archives_result="$my_oldobjs"
14020 # End of Shell function definitions
14021 #####################################
14024 eval std_shrext=\"$shrext_cmds\"
14028 # Parse our command line options once, thoroughly.
14029 while test "$#" -gt 0
14031 @@ -305,10 +456,10 @@
14033 $echo "$PROGRAM (GNU $PACKAGE) $VERSION$TIMESTAMP"
14035 - $echo "Copyright (C) 2003 Free Software Foundation, Inc."
14036 + $echo "Copyright (C) 2005 Free Software Foundation, Inc."
14037 $echo "This is free software; see the source for copying conditions. There is NO"
14038 $echo "warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE."
14039 - exit $EXIT_SUCCESS
14044 @@ -317,7 +468,7 @@
14045 for tagname in $taglist; do
14046 ${SED} -n -e "/^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$/,/^# ### END LIBTOOL TAG CONFIG: $tagname$/p" < "$progpath"
14048 - exit $EXIT_SUCCESS
14053 @@ -342,7 +493,7 @@
14055 $echo "disable static libraries"
14057 - exit $EXIT_SUCCESS
14061 --finish) mode="finish" ;;
14062 @@ -357,7 +508,11 @@
14063 preserve_args="$preserve_args $arg"
14066 - --tag) prevopt="--tag" prev=tag ;;
14070 + preserve_args="$preserve_args --tag"
14073 set tag "$optarg" ${1+"$@"}
14075 @@ -389,6 +544,18 @@
14079 +case $disable_libs in
14083 + build_libtool_libs=no
14084 + build_old_libs=yes
14087 + build_old_libs=`case $build_libtool_libs in yes) echo no;; *) echo yes;; esac`
14091 # If this variable is set in any of the actions, the command in it
14092 # will be execed at the end. This prevents here-documents from being
14093 # left over by shells.
14094 @@ -399,7 +566,7 @@
14095 # Infer the operation mode.
14096 if test -z "$mode"; then
14097 $echo "*** Warning: inferring the mode of operation is deprecated." 1>&2
14098 - $echo "*** Future versions of Libtool will require -mode=MODE be specified." 1>&2
14099 + $echo "*** Future versions of Libtool will require --mode=MODE be specified." 1>&2
14101 *cc | cc* | *++ | gcc* | *-gcc* | g++* | xlc*)
14103 @@ -465,7 +632,7 @@
14107 - case "$arg_mode" in
14108 + case $arg_mode in
14110 # do not "continue". Instead, add this to base_compile
14112 @@ -547,7 +714,10 @@
14114 # Double-quote args containing other shell metacharacters.
14115 # Many Bourne shells cannot handle close brackets correctly
14116 - # in scan sets, so we specify it separately.
14117 + # in scan sets, and some SunOS ksh mistreat backslash-escaping
14118 + # in scan sets (worked around with variable expansion),
14119 + # and furthermore cannot handle '|' '&' '(' ')' in scan sets
14120 + # at all, so we specify them separately.
14121 *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
14122 lastarg="\"$lastarg\""
14124 @@ -621,6 +791,14 @@
14128 + qlibobj=`$echo "X$libobj" | $Xsed -e "$sed_quote_subst"`
14130 + *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
14131 + qlibobj="\"$qlibobj\"" ;;
14133 + test "X$libobj" != "X$qlibobj" \
14134 + && $echo "X$libobj" | grep '[]~#^*{};<>?"'"'"' &()|`$[]' \
14135 + && $echo "$modename: libobj name \`$libobj' may not contain shell special characters."
14136 objname=`$echo "X$obj" | $Xsed -e 's%^.*/%%'`
14137 xdir=`$echo "X$obj" | $Xsed -e 's%/[^/]*$%%'`
14138 if test "X$xdir" = "X$obj"; then
14139 @@ -693,12 +871,17 @@
14140 $run $rm $removelist
14143 - $echo $srcfile > "$lockfile"
14144 + $echo "$srcfile" > "$lockfile"
14147 if test -n "$fix_srcfile_path"; then
14148 eval srcfile=\"$fix_srcfile_path\"
14150 + qsrcfile=`$echo "X$srcfile" | $Xsed -e "$sed_quote_subst"`
14151 + case $qsrcfile in
14152 + *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
14153 + qsrcfile="\"$qsrcfile\"" ;;
14156 $run $rm "$libobj" "${libobj}T"
14158 @@ -720,18 +903,18 @@
14159 fbsd_hideous_sh_bug=$base_compile
14161 if test "$pic_mode" != no; then
14162 - command="$base_compile $srcfile $pic_flag"
14163 + command="$base_compile $qsrcfile $pic_flag"
14165 # Don't build PIC code
14166 - command="$base_compile $srcfile"
14167 + command="$base_compile $qsrcfile"
14170 if test ! -d "${xdir}$objdir"; then
14171 $show "$mkdir ${xdir}$objdir"
14172 $run $mkdir ${xdir}$objdir
14174 - if test "$status" -ne 0 && test ! -d "${xdir}$objdir"; then
14177 + if test "$exit_status" -ne 0 && test ! -d "${xdir}$objdir"; then
14178 + exit $exit_status
14182 @@ -803,9 +986,9 @@
14183 if test "$build_old_libs" = yes; then
14184 if test "$pic_mode" != yes; then
14185 # Don't build PIC code
14186 - command="$base_compile $srcfile"
14187 + command="$base_compile $qsrcfile"
14189 - command="$base_compile $srcfile $pic_flag"
14190 + command="$base_compile $qsrcfile $pic_flag"
14192 if test "$compiler_c_o" = yes; then
14193 command="$command -o $obj"
14194 @@ -934,6 +1117,7 @@
14198 + notinst_path= # paths that contain not-installed libtool libraries
14199 precious_files_regex=
14200 prefer_static_libs=no
14202 @@ -962,14 +1146,15 @@
14203 if test -n "$link_static_flag"; then
14204 dlopen_self=$dlopen_self_static
14206 + prefer_static_libs=yes
14208 if test -z "$pic_flag" && test -n "$link_static_flag"; then
14209 dlopen_self=$dlopen_self_static
14211 + prefer_static_libs=built
14213 build_libtool_libs=no
14215 - prefer_static_libs=yes
14219 @@ -1144,6 +1329,11 @@
14220 if test -z "$pic_object" || test "$pic_object" = none ; then
14221 arg="$non_pic_object"
14224 + # If the PIC object exists, use it instead.
14225 + # $xdir was prepended to $pic_object above.
14226 + non_pic_object="$pic_object"
14227 + non_pic_objects="$non_pic_objects $non_pic_object"
14230 # Only an error if not doing a dry-run.
14231 @@ -1227,6 +1417,13 @@
14235 + darwin_framework|darwin_framework_skip)
14236 + test "$prev" = "darwin_framework" && compiler_flags="$compiler_flags $arg"
14237 + compile_command="$compile_command $arg"
14238 + finalize_command="$finalize_command $arg"
14243 eval "$prev=\"\$arg\""
14245 @@ -1285,6 +1482,18 @@
14249 + -framework|-arch|-isysroot)
14251 + *" ${arg} ${1} "* | *" ${arg} ${1} "*)
14252 + prev=darwin_framework_skip ;;
14253 + *) compiler_flags="$compiler_flags $arg"
14254 + prev=darwin_framework ;;
14256 + compile_command="$compile_command $arg"
14257 + finalize_command="$finalize_command $arg"
14264 @@ -1311,7 +1520,8 @@
14265 absdir=`cd "$dir" && pwd`
14266 if test -z "$absdir"; then
14267 $echo "$modename: cannot determine absolute directory name of \`$dir'" 1>&2
14268 - exit $EXIT_FAILURE
14270 + notinst_path="$notinst_path $dir"
14274 @@ -1325,10 +1535,15 @@
14277 *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2*)
14278 + testbindir=`$echo "X$dir" | $Xsed -e 's*/lib$*/bin*'`
14279 case :$dllsearchpath: in
14281 *) dllsearchpath="$dllsearchpath:$dir";;
14283 + case :$dllsearchpath: in
14284 + *":$testbindir:"*) ;;
14285 + *) dllsearchpath="$dllsearchpath:$testbindir";;
14290 @@ -1337,15 +1552,15 @@
14292 if test "X$arg" = "X-lc" || test "X$arg" = "X-lm"; then
14294 - *-*-cygwin* | *-*-pw32* | *-*-beos*)
14295 + *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-beos*)
14296 # These systems don't actually have a C or math library (as such)
14299 - *-*-mingw* | *-*-os2*)
14301 # These systems don't actually have a C library (as such)
14302 test "X$arg" = "X-lc" && continue
14304 - *-*-openbsd* | *-*-freebsd*)
14305 + *-*-openbsd* | *-*-freebsd* | *-*-dragonfly*)
14306 # Do not include libc due to us having libc/libc_r.
14307 test "X$arg" = "X-lc" && continue
14309 @@ -1353,10 +1568,19 @@
14310 # Rhapsody C and math libraries are in the System framework
14311 deplibs="$deplibs -framework System"
14314 + *-*-sco3.2v5* | *-*-sco5v6*)
14315 + # Causes problems with __ctype
14316 + test "X$arg" = "X-lc" && continue
14318 + *-*-sysv4.2uw2* | *-*-sysv5* | *-*-unixware* | *-*-OpenUNIX*)
14319 + # Compiler inserts libc in the correct place for threads to work
14320 + test "X$arg" = "X-lc" && continue
14323 elif test "X$arg" = "X-lc_r"; then
14325 - *-*-openbsd* | *-*-freebsd*)
14326 + *-*-openbsd* | *-*-freebsd* | *-*-dragonfly*)
14327 # Do not include libc_r directly, use -pthread flag.
14330 @@ -1366,8 +1590,20 @@
14334 + # Tru64 UNIX uses -model [arg] to determine the layout of C++
14335 + # classes, name mangling, and exception handling.
14337 + compile_command="$compile_command $arg"
14338 + compiler_flags="$compiler_flags $arg"
14339 + finalize_command="$finalize_command $arg"
14344 -mt|-mthreads|-kthread|-Kthread|-pthread|-pthreads|--thread-safe)
14345 - deplibs="$deplibs $arg"
14346 + compiler_flags="$compiler_flags $arg"
14347 + compile_command="$compile_command $arg"
14348 + finalize_command="$finalize_command $arg"
14352 @@ -1376,13 +1612,19 @@
14356 - # gcc -m* arguments should be passed to the linker via $compiler_flags
14357 - # in order to pass architecture information to the linker
14358 - # (e.g. 32 vs 64-bit). This may also be accomplished via -Wl,-mfoo
14359 - # but this is not reliable with gcc because gcc may use -mfoo to
14360 - # select a different linker, different libraries, etc, while
14361 - # -Wl,-mfoo simply passes -mfoo to the linker.
14363 + # -64, -mips[0-9] enable 64-bit mode on the SGI compiler
14364 + # -r[0-9][0-9]* specifies the processor on the SGI compiler
14365 + # -xarch=*, -xtarget=* enable 64-bit mode on the Sun compiler
14366 + # +DA*, +DD* enable 64-bit mode on the HP compiler
14367 + # -q* pass through compiler args for the IBM compiler
14368 + # -m* pass through architecture-specific compiler args for GCC
14369 + # -m*, -t[45]*, -txscale* pass through architecture-specific
14370 + # compiler args for GCC
14371 + # -pg pass through profiling flag for GCC
14372 + # @file GCC response files
14373 + -64|-mips[0-9]|-r[0-9][0-9]*|-xarch=*|-xtarget=*|+DA*|+DD*|-q*|-m*|-pg| \
14374 + -t[45]*|-txscale*|@*)
14376 # Unknown arguments in both finalize_command and compile_command need
14377 # to be aesthetically quoted because they are evaled later.
14378 arg=`$echo "X$arg" | $Xsed -e "$sed_quote_subst"`
14379 @@ -1393,9 +1635,7 @@
14381 compile_command="$compile_command $arg"
14382 finalize_command="$finalize_command $arg"
14383 - if test "$with_gcc" = "yes" ; then
14384 - compiler_flags="$compiler_flags $arg"
14386 + compiler_flags="$compiler_flags $arg"
14390 @@ -1633,6 +1873,11 @@
14391 if test -z "$pic_object" || test "$pic_object" = none ; then
14392 arg="$non_pic_object"
14395 + # If the PIC object exists, use it instead.
14396 + # $xdir was prepended to $pic_object above.
14397 + non_pic_object="$pic_object"
14398 + non_pic_objects="$non_pic_objects $non_pic_object"
14401 # Only an error if not doing a dry-run.
14402 @@ -1738,9 +1983,9 @@
14403 if test ! -d "$output_objdir"; then
14404 $show "$mkdir $output_objdir"
14405 $run $mkdir $output_objdir
14407 - if test "$status" -ne 0 && test ! -d "$output_objdir"; then
14410 + if test "$exit_status" -ne 0 && test ! -d "$output_objdir"; then
14411 + exit $exit_status
14415 @@ -1803,7 +2048,6 @@
14416 newlib_search_path=
14417 need_relink=no # whether we're linking any uninstalled libtool libraries
14418 notinst_deplibs= # not-installed libtool libraries
14419 - notinst_path= # paths that contain not-installed libtool libraries
14423 @@ -1858,7 +2102,7 @@
14424 compile_deplibs="$deplib $compile_deplibs"
14425 finalize_deplibs="$deplib $finalize_deplibs"
14427 - deplibs="$deplib $deplibs"
14428 + compiler_flags="$compiler_flags $deplib"
14432 @@ -1867,10 +2111,6 @@
14433 $echo "$modename: warning: \`-l' is ignored for archives/objects" 1>&2
14436 - if test "$pass" = conv; then
14437 - deplibs="$deplib $deplibs"
14440 name=`$echo "X$deplib" | $Xsed -e 's/^-l//'`
14441 for searchdir in $newlib_search_path $lib_search_path $sys_lib_search_path $shlib_search_path; do
14442 for search_ext in .la $std_shrext .so .a; do
14443 @@ -1981,7 +2221,22 @@
14447 - if test "$deplibs_check_method" != pass_all; then
14449 + case $deplibs_check_method in
14451 + set dummy $deplibs_check_method
14452 + match_pattern_regex=`expr "$deplibs_check_method" : "$2 \(.*\)"`
14453 + if eval $echo \"$deplib\" 2>/dev/null \
14455 + | $EGREP "$match_pattern_regex" > /dev/null; then
14463 + if test "$valid_a_lib" != yes; then
14465 $echo "*** Warning: Trying to link with static lib archive $deplib."
14466 $echo "*** I have the capability to make that library automatically link in when"
14467 @@ -2031,7 +2286,7 @@
14468 esac # case $deplib
14469 if test "$found" = yes || test -f "$lib"; then :
14471 - $echo "$modename: cannot find the library \`$lib'" 1>&2
14472 + $echo "$modename: cannot find the library \`$lib' or unhandled argument \`$deplib'" 1>&2
14476 @@ -2055,6 +2310,8 @@
14477 # it will not redefine variables installed, or shouldnotlink
14483 # Read the .la file
14485 @@ -2153,11 +2410,19 @@
14489 + test "X$hardcode_automatic" = Xyes && avoidtemprpath=yes
14491 - dir="$ladir/$objdir"
14492 - absdir="$abs_ladir/$objdir"
14493 - # Remove this search path later
14494 - notinst_path="$notinst_path $abs_ladir"
14495 + if test ! -f "$ladir/$objdir/$linklib" && test -f "$abs_ladir/$linklib"; then
14497 + absdir="$abs_ladir"
14498 + # Remove this search path later
14499 + notinst_path="$notinst_path $abs_ladir"
14501 + dir="$ladir/$objdir"
14502 + absdir="$abs_ladir/$objdir"
14503 + # Remove this search path later
14504 + notinst_path="$notinst_path $abs_ladir"
14506 fi # $installed = yes
14507 name=`$echo "X$laname" | $Xsed -e 's/\.la$//' -e 's/^lib//'`
14509 @@ -2230,12 +2495,12 @@
14510 if test -n "$library_names" &&
14511 { test "$prefer_static_libs" = no || test -z "$old_library"; }; then
14512 # We need to hardcode the library path
14513 - if test -n "$shlibpath_var"; then
14514 + if test -n "$shlibpath_var" && test -z "$avoidtemprpath" ; then
14515 # Make sure the rpath contains only unique directories.
14516 case "$temp_rpath " in
14519 - *) temp_rpath="$temp_rpath $dir" ;;
14520 + *) temp_rpath="$temp_rpath $absdir" ;;
14524 @@ -2272,8 +2537,12 @@
14527 link_static=no # Whether the deplib will be linked statically
14528 + use_static_libs=$prefer_static_libs
14529 + if test "$use_static_libs" = built && test "$installed" = yes ; then
14530 + use_static_libs=no
14532 if test -n "$library_names" &&
14533 - { test "$prefer_static_libs" = no || test -z "$old_library"; }; then
14534 + { test "$use_static_libs" = no || test -z "$old_library"; }; then
14535 if test "$installed" = no; then
14536 notinst_deplibs="$notinst_deplibs $lib"
14538 @@ -2386,11 +2655,15 @@
14539 if test "$hardcode_direct" = no; then
14540 add="$dir/$linklib"
14542 - *-*-sco3.2v5* ) add_dir="-L$dir" ;;
14543 + *-*-sco3.2v5.0.[024]*) add_dir="-L$dir" ;;
14544 + *-*-sysv4*uw2*) add_dir="-L$dir" ;;
14545 + *-*-sysv5OpenUNIX* | *-*-sysv5UnixWare7.[01].[10]* | \
14546 + *-*-unixware7*) add_dir="-L$dir" ;;
14548 # if the lib is a module then we can not link against
14549 # it, someone is ignoring the new warnings I added
14550 - if /usr/bin/file -L $add 2> /dev/null | $EGREP "bundle" >/dev/null ; then
14551 + if /usr/bin/file -L $add 2> /dev/null |
14552 + $EGREP ": [^:]* bundle" >/dev/null ; then
14553 $echo "** Warning, lib $linklib is a module, not a shared library"
14554 if test -z "$old_library" ; then
14556 @@ -2421,7 +2694,7 @@
14558 # Try looking first in the location we're being installed to.
14559 if test -n "$inst_prefix_dir"; then
14560 - case "$libdir" in
14563 add_dir="$add_dir -L$inst_prefix_dir$libdir"
14565 @@ -2494,7 +2767,7 @@
14566 add_dir="-L$libdir"
14567 # Try looking first in the location we're being installed to.
14568 if test -n "$inst_prefix_dir"; then
14569 - case "$libdir" in
14572 add_dir="$add_dir -L$inst_prefix_dir$libdir"
14574 @@ -2555,8 +2828,6 @@
14578 - convenience="$convenience $dir/$old_library"
14579 - old_convenience="$old_convenience $dir/$old_library"
14580 deplibs="$dir/$old_library $deplibs"
14583 @@ -2674,12 +2945,12 @@
14586 case " $deplibs " in
14587 - *" $depdepl "*) ;;
14588 - *) deplibs="$depdepl $deplibs" ;;
14590 + *) deplibs="$path $deplibs" ;;
14592 case " $deplibs " in
14594 - *) deplibs="$deplibs $path" ;;
14595 + *" $depdepl "*) ;;
14596 + *) deplibs="$depdepl $deplibs" ;;
14599 fi # link_all_deplibs != no
14600 @@ -2949,27 +3220,27 @@
14602 # Check that each of the things are valid numbers.
14604 - 0 | [1-9] | [1-9][0-9] | [1-9][0-9][0-9]) ;;
14605 + 0|[1-9]|[1-9][0-9]|[1-9][0-9][0-9]|[1-9][0-9][0-9][0-9]|[1-9][0-9][0-9][0-9][0-9]) ;;
14607 - $echo "$modename: CURRENT \`$current' is not a nonnegative integer" 1>&2
14608 + $echo "$modename: CURRENT \`$current' must be a nonnegative integer" 1>&2
14609 $echo "$modename: \`$vinfo' is not valid version information" 1>&2
14615 - 0 | [1-9] | [1-9][0-9] | [1-9][0-9][0-9]) ;;
14616 + 0|[1-9]|[1-9][0-9]|[1-9][0-9][0-9]|[1-9][0-9][0-9][0-9]|[1-9][0-9][0-9][0-9][0-9]) ;;
14618 - $echo "$modename: REVISION \`$revision' is not a nonnegative integer" 1>&2
14619 + $echo "$modename: REVISION \`$revision' must be a nonnegative integer" 1>&2
14620 $echo "$modename: \`$vinfo' is not valid version information" 1>&2
14626 - 0 | [1-9] | [1-9][0-9] | [1-9][0-9][0-9]) ;;
14627 + 0|[1-9]|[1-9][0-9]|[1-9][0-9][0-9]|[1-9][0-9][0-9][0-9]|[1-9][0-9][0-9][0-9][0-9]) ;;
14629 - $echo "$modename: AGE \`$age' is not a nonnegative integer" 1>&2
14630 + $echo "$modename: AGE \`$age' must be a nonnegative integer" 1>&2
14631 $echo "$modename: \`$vinfo' is not valid version information" 1>&2
14634 @@ -2995,7 +3266,7 @@
14635 versuffix="$major.$age.$revision"
14636 # Darwin ld doesn't like 0 for these options...
14637 minor_current=`expr $current + 1`
14638 - verstring="-compatibility_version $minor_current -current_version $minor_current.$revision"
14639 + verstring="${wl}-compatibility_version ${wl}$minor_current ${wl}-current_version ${wl}$minor_current.$revision"
14643 @@ -3148,9 +3419,9 @@
14645 # Eliminate all temporary directories.
14646 for path in $notinst_path; do
14647 - lib_search_path=`$echo "$lib_search_path " | ${SED} -e 's% $path % %g'`
14648 - deplibs=`$echo "$deplibs " | ${SED} -e 's% -L$path % %g'`
14649 - dependency_libs=`$echo "$dependency_libs " | ${SED} -e 's% -L$path % %g'`
14650 + lib_search_path=`$echo "$lib_search_path " | ${SED} -e "s% $path % %g"`
14651 + deplibs=`$echo "$deplibs " | ${SED} -e "s% -L$path % %g"`
14652 + dependency_libs=`$echo "$dependency_libs " | ${SED} -e "s% -L$path % %g"`
14655 if test -n "$xrpath"; then
14656 @@ -3201,9 +3472,14 @@
14658 # Don't link with libc until the a.out ld.so is fixed.
14660 - *-*-openbsd* | *-*-freebsd*)
14661 + *-*-openbsd* | *-*-freebsd* | *-*-dragonfly*)
14662 # Do not include libc due to us having libc/libc_r.
14663 - test "X$arg" = "X-lc" && continue
14665 + *-*-sco3.2v5* | *-*-sco5v6*)
14666 + # Causes problems with __ctype
14668 + *-*-sysv4.2uw2* | *-*-sysv5* | *-*-unixware* | *-*-OpenUNIX*)
14669 + # Compiler inserts libc in the correct place for threads to work
14672 # Add libc to deplibs on all other systems if necessary.
14673 @@ -3247,11 +3523,11 @@
14674 int main() { return 0; }
14677 - $LTCC -o conftest conftest.c $deplibs
14678 + $LTCC $LTCFLAGS -o conftest conftest.c $deplibs
14679 if test "$?" -eq 0 ; then
14680 ldd_output=`ldd conftest`
14681 for i in $deplibs; do
14682 - name="`expr $i : '-l\(.*\)'`"
14683 + name=`expr $i : '-l\(.*\)'`
14684 # If $name is empty we are operating on a -L argument.
14685 if test "$name" != "" && test "$name" -ne "0"; then
14686 if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then
14687 @@ -3288,11 +3564,11 @@
14688 # Error occurred in the first compile. Let's try to salvage
14689 # the situation: Compile a separate program for each library.
14690 for i in $deplibs; do
14691 - name="`expr $i : '-l\(.*\)'`"
14692 + name=`expr $i : '-l\(.*\)'`
14693 # If $name is empty we are operating on a -L argument.
14694 if test "$name" != "" && test "$name" != "0"; then
14696 - $LTCC -o conftest conftest.c $i
14697 + $LTCC $LTCFLAGS -o conftest conftest.c $i
14699 if test "$?" -eq 0 ; then
14700 ldd_output=`ldd conftest`
14701 @@ -3340,7 +3616,7 @@
14702 set dummy $deplibs_check_method
14703 file_magic_regex=`expr "$deplibs_check_method" : "$2 \(.*\)"`
14704 for a_deplib in $deplibs; do
14705 - name="`expr $a_deplib : '-l\(.*\)'`"
14706 + name=`expr $a_deplib : '-l\(.*\)'`
14707 # If $name is empty we are operating on a -L argument.
14708 if test "$name" != "" && test "$name" != "0"; then
14709 if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then
14710 @@ -3409,7 +3685,7 @@
14711 set dummy $deplibs_check_method
14712 match_pattern_regex=`expr "$deplibs_check_method" : "$2 \(.*\)"`
14713 for a_deplib in $deplibs; do
14714 - name="`expr $a_deplib : '-l\(.*\)'`"
14715 + name=`expr $a_deplib : '-l\(.*\)'`
14716 # If $name is empty we are operating on a -L argument.
14717 if test -n "$name" && test "$name" != "0"; then
14718 if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then
14719 @@ -3539,6 +3815,35 @@
14720 deplibs=$newdeplibs
14724 + # move library search paths that coincide with paths to not yet
14725 + # installed libraries to the beginning of the library search list
14727 + for path in $notinst_path; do
14728 + case " $new_libs " in
14729 + *" -L$path/$objdir "*) ;;
14731 + case " $deplibs " in
14732 + *" -L$path/$objdir "*)
14733 + new_libs="$new_libs -L$path/$objdir" ;;
14738 + for deplib in $deplibs; do
14741 + case " $new_libs " in
14742 + *" $deplib "*) ;;
14743 + *) new_libs="$new_libs $deplib" ;;
14746 + *) new_libs="$new_libs $deplib" ;;
14749 + deplibs="$new_libs"
14752 # All the library-specific variables (install_libdir is set above).
14755 @@ -3622,6 +3927,7 @@
14758 lib="$output_objdir/$realname"
14762 linknames="$linknames $link"
14763 @@ -3650,6 +3956,9 @@
14764 # The command line is too long to execute in one step.
14765 $show "using reloadable object file for export list..."
14767 + # Break out early, otherwise skipped_export may be
14768 + # set to false by a later but shorter cmd.
14773 @@ -3683,67 +3992,13 @@
14774 eval libobjs=\"\$libobjs $whole_archive_flag_spec\"
14776 gentop="$output_objdir/${outputname}x"
14777 - $show "${rm}r $gentop"
14778 - $run ${rm}r "$gentop"
14779 - $show "$mkdir $gentop"
14780 - $run $mkdir "$gentop"
14782 - if test "$status" -ne 0 && test ! -d "$gentop"; then
14785 generated="$generated $gentop"
14787 - for xlib in $convenience; do
14788 - # Extract the objects.
14790 - [\\/]* | [A-Za-z]:[\\/]*) xabs="$xlib" ;;
14791 - *) xabs=`pwd`"/$xlib" ;;
14793 - xlib=`$echo "X$xlib" | $Xsed -e 's%^.*/%%'`
14794 - xdir="$gentop/$xlib"
14796 - $show "${rm}r $xdir"
14797 - $run ${rm}r "$xdir"
14798 - $show "$mkdir $xdir"
14799 - $run $mkdir "$xdir"
14801 - if test "$status" -ne 0 && test ! -d "$xdir"; then
14804 - # We will extract separately just the conflicting names and we will no
14805 - # longer touch any unique names. It is faster to leave these extract
14806 - # automatically by $AR in one run.
14807 - $show "(cd $xdir && $AR x $xabs)"
14808 - $run eval "(cd \$xdir && $AR x \$xabs)" || exit $?
14809 - if ($AR t "$xabs" | sort | sort -uc >/dev/null 2>&1); then
14812 - $echo "$modename: warning: object name conflicts; renaming object files" 1>&2
14813 - $echo "$modename: warning: to ensure that they will not overwrite" 1>&2
14814 - $AR t "$xabs" | sort | uniq -cd | while read -r count name
14817 - while test "$i" -le "$count"
14819 - # Put our $i before any first dot (extension)
14820 - # Never overwrite any file
14822 - while test "X$name_to" = "X$name" || test -f "$xdir/$name_to"
14824 - name_to=`$echo "X$name_to" | $Xsed -e "s/\([^.]*\)/\1-$i/"`
14826 - $show "(cd $xdir && $AR xN $i $xabs '$name' && $mv '$name' '$name_to')"
14827 - $run eval "(cd \$xdir && $AR xN $i \$xabs '$name' && $mv '$name' '$name_to')" || exit $?
14833 - libobjs="$libobjs "`find $xdir -name \*.$objext -print -o -name \*.lo -print | $NL2SP`
14835 + func_extract_archives $gentop $convenience
14836 + libobjs="$libobjs $func_extract_archives_result"
14841 if test "$thread_safe" = yes && test -n "$thread_safe_flag_spec"; then
14842 eval flag=\"$thread_safe_flag_spec\"
14843 linker_flags="$linker_flags $flag"
14844 @@ -3773,7 +4028,8 @@
14848 - if test "X$skipped_export" != "X:" && len=`expr "X$test_cmds" : ".*"` &&
14849 + if test "X$skipped_export" != "X:" &&
14850 + len=`expr "X$test_cmds" : ".*" 2>/dev/null` &&
14851 test "$len" -le "$max_cmd_len" || test "$max_cmd_len" -le -1; then
14854 @@ -3792,6 +4048,7 @@
14855 save_libobjs=$libobjs
14857 save_output=$output
14858 + output_la=`$echo "X$output" | $Xsed -e "$basename"`
14860 # Clear the reloadable object creation command queue and
14861 # initialize k to one.
14862 @@ -3801,13 +4058,13 @@
14866 - output=$output_objdir/$save_output-${k}.$objext
14867 + output=$output_objdir/$output_la-${k}.$objext
14868 # Loop over the list of objects to be linked.
14869 for obj in $save_libobjs
14871 eval test_cmds=\"$reload_cmds $objlist $last_robj\"
14872 if test "X$objlist" = X ||
14873 - { len=`expr "X$test_cmds" : ".*"` &&
14874 + { len=`expr "X$test_cmds" : ".*" 2>/dev/null` &&
14875 test "$len" -le "$max_cmd_len"; }; then
14876 objlist="$objlist $obj"
14878 @@ -3821,9 +4078,9 @@
14879 # the last one created.
14880 eval concat_cmds=\"\$concat_cmds~$reload_cmds $objlist $last_robj\"
14882 - last_robj=$output_objdir/$save_output-${k}.$objext
14883 + last_robj=$output_objdir/$output_la-${k}.$objext
14885 - output=$output_objdir/$save_output-${k}.$objext
14886 + output=$output_objdir/$output_la-${k}.$objext
14890 @@ -3843,13 +4100,13 @@
14891 eval concat_cmds=\"\$concat_cmds~$export_symbols_cmds\"
14894 - # Set up a command to remove the reloadale object files
14895 + # Set up a command to remove the reloadable object files
14896 # after they are used.
14898 while test "$i" -lt "$k"
14901 - delfiles="$delfiles $output_objdir/$save_output-${i}.$objext"
14902 + delfiles="$delfiles $output_objdir/$output_la-${i}.$objext"
14905 $echo "creating a temporary reloadable object file: $output"
14906 @@ -3897,13 +4154,30 @@
14910 - $run eval "$cmd" || exit $?
14911 + $run eval "$cmd" || {
14914 + # Restore the uninstalled library and exit
14915 + if test "$mode" = relink; then
14916 + $run eval '(cd $output_objdir && $rm ${realname}T && $mv ${realname}U $realname)'
14924 # Restore the uninstalled library and exit
14925 if test "$mode" = relink; then
14926 $run eval '(cd $output_objdir && $rm ${realname}T && $mv $realname ${realname}T && $mv "$realname"U $realname)' || exit $?
14928 + if test -n "$convenience"; then
14929 + if test -z "$whole_archive_flag_spec"; then
14930 + $show "${rm}r $gentop"
14931 + $run ${rm}r "$gentop"
14938 @@ -3981,64 +4255,10 @@
14939 eval reload_conv_objs=\"\$reload_objs $whole_archive_flag_spec\"
14941 gentop="$output_objdir/${obj}x"
14942 - $show "${rm}r $gentop"
14943 - $run ${rm}r "$gentop"
14944 - $show "$mkdir $gentop"
14945 - $run $mkdir "$gentop"
14947 - if test "$status" -ne 0 && test ! -d "$gentop"; then
14950 generated="$generated $gentop"
14952 - for xlib in $convenience; do
14953 - # Extract the objects.
14955 - [\\/]* | [A-Za-z]:[\\/]*) xabs="$xlib" ;;
14956 - *) xabs=`pwd`"/$xlib" ;;
14958 - xlib=`$echo "X$xlib" | $Xsed -e 's%^.*/%%'`
14959 - xdir="$gentop/$xlib"
14961 - $show "${rm}r $xdir"
14962 - $run ${rm}r "$xdir"
14963 - $show "$mkdir $xdir"
14964 - $run $mkdir "$xdir"
14966 - if test "$status" -ne 0 && test ! -d "$xdir"; then
14969 - # We will extract separately just the conflicting names and we will no
14970 - # longer touch any unique names. It is faster to leave these extract
14971 - # automatically by $AR in one run.
14972 - $show "(cd $xdir && $AR x $xabs)"
14973 - $run eval "(cd \$xdir && $AR x \$xabs)" || exit $?
14974 - if ($AR t "$xabs" | sort | sort -uc >/dev/null 2>&1); then
14977 - $echo "$modename: warning: object name conflicts; renaming object files" 1>&2
14978 - $echo "$modename: warning: to ensure that they will not overwrite" 1>&2
14979 - $AR t "$xabs" | sort | uniq -cd | while read -r count name
14982 - while test "$i" -le "$count"
14984 - # Put our $i before any first dot (extension)
14985 - # Never overwrite any file
14987 - while test "X$name_to" = "X$name" || test -f "$xdir/$name_to"
14989 - name_to=`$echo "X$name_to" | $Xsed -e "s/\([^.]*\)/\1-$i/"`
14991 - $show "(cd $xdir && $AR xN $i $xabs '$name' && $mv '$name' '$name_to')"
14992 - $run eval "(cd \$xdir && $AR xN $i \$xabs '$name' && $mv '$name' '$name_to')" || exit $?
14998 - reload_conv_objs="$reload_objs "`find $xdir -name \*.$objext -print -o -name \*.lo -print | $NL2SP`
15000 + func_extract_archives $gentop $convenience
15001 + reload_conv_objs="$reload_objs $func_extract_archives_result"
15005 @@ -4139,6 +4359,35 @@
15010 + # move library search paths that coincide with paths to not yet
15011 + # installed libraries to the beginning of the library search list
15013 + for path in $notinst_path; do
15014 + case " $new_libs " in
15015 + *" -L$path/$objdir "*) ;;
15017 + case " $compile_deplibs " in
15018 + *" -L$path/$objdir "*)
15019 + new_libs="$new_libs -L$path/$objdir" ;;
15024 + for deplib in $compile_deplibs; do
15027 + case " $new_libs " in
15028 + *" $deplib "*) ;;
15029 + *) new_libs="$new_libs $deplib" ;;
15032 + *) new_libs="$new_libs $deplib" ;;
15035 + compile_deplibs="$new_libs"
15038 compile_command="$compile_command $compile_deplibs"
15039 finalize_command="$finalize_command $finalize_deplibs"
15041 @@ -4183,10 +4432,15 @@
15044 *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2*)
15045 + testbindir=`$echo "X$libdir" | $Xsed -e 's*/lib$*/bin*'`
15046 case :$dllsearchpath: in
15048 *) dllsearchpath="$dllsearchpath:$libdir";;
15050 + case :$dllsearchpath: in
15051 + *":$testbindir:"*) ;;
15052 + *) dllsearchpath="$dllsearchpath:$testbindir";;
15057 @@ -4300,13 +4554,25 @@
15059 # Prepare the list of exported symbols
15060 if test -z "$export_symbols"; then
15061 - export_symbols="$output_objdir/$output.exp"
15062 + export_symbols="$output_objdir/$outputname.exp"
15063 $run $rm $export_symbols
15064 - $run eval "${SED} -n -e '/^: @PROGRAM@$/d' -e 's/^.* \(.*\)$/\1/p' "'< "$nlist" > "$export_symbols"'
15065 + $run eval "${SED} -n -e '/^: @PROGRAM@ $/d' -e 's/^.* \(.*\)$/\1/p' "'< "$nlist" > "$export_symbols"'
15067 + *cygwin* | *mingw* )
15068 + $run eval "echo EXPORTS "'> "$output_objdir/$outputname.def"'
15069 + $run eval 'cat "$export_symbols" >> "$output_objdir/$outputname.def"'
15073 - $run eval "${SED} -e 's/\([][.*^$]\)/\\\1/g' -e 's/^/ /' -e 's/$/$/'"' < "$export_symbols" > "$output_objdir/$output.exp"'
15074 - $run eval 'grep -f "$output_objdir/$output.exp" < "$nlist" > "$nlist"T'
15075 + $run eval "${SED} -e 's/\([].[*^$]\)/\\\\\1/g' -e 's/^/ /' -e 's/$/$/'"' < "$export_symbols" > "$output_objdir/$outputname.exp"'
15076 + $run eval 'grep -f "$output_objdir/$outputname.exp" < "$nlist" > "$nlist"T'
15077 $run eval 'mv "$nlist"T "$nlist"'
15079 + *cygwin* | *mingw* )
15080 + $run eval "echo EXPORTS "'> "$output_objdir/$outputname.def"'
15081 + $run eval 'cat "$nlist" >> "$output_objdir/$outputname.def"'
15087 @@ -4357,7 +4623,26 @@
15090 /* The mapping between symbol names and symbols. */
15094 + *cygwin* | *mingw* )
15095 + $echo >> "$output_objdir/$dlsyms" "\
15096 +/* DATA imports from DLLs on WIN32 can't be const, because
15097 + runtime relocations are performed -- see ld's documentation
15098 + on pseudo-relocs */
15103 + $echo >> "$output_objdir/$dlsyms" "\
15110 + $echo >> "$output_objdir/$dlsyms" "\
15114 @@ -4404,16 +4689,29 @@
15117 # Now compile the dynamic symbol file.
15118 - $show "(cd $output_objdir && $LTCC -c$no_builtin_flag$pic_flag_for_symtable \"$dlsyms\")"
15119 - $run eval '(cd $output_objdir && $LTCC -c$no_builtin_flag$pic_flag_for_symtable "$dlsyms")' || exit $?
15120 + $show "(cd $output_objdir && $LTCC $LTCFLAGS -c$no_builtin_flag$pic_flag_for_symtable \"$dlsyms\")"
15121 + $run eval '(cd $output_objdir && $LTCC $LTCFLAGS -c$no_builtin_flag$pic_flag_for_symtable "$dlsyms")' || exit $?
15123 # Clean up the generated files.
15124 $show "$rm $output_objdir/$dlsyms $nlist ${nlist}S ${nlist}T"
15125 $run $rm "$output_objdir/$dlsyms" "$nlist" "${nlist}S" "${nlist}T"
15127 # Transform the symbol file into the correct name.
15128 - compile_command=`$echo "X$compile_command" | $Xsed -e "s%@SYMFILE@%$output_objdir/${outputname}S.${objext}%"`
15129 - finalize_command=`$echo "X$finalize_command" | $Xsed -e "s%@SYMFILE@%$output_objdir/${outputname}S.${objext}%"`
15131 + *cygwin* | *mingw* )
15132 + if test -f "$output_objdir/${outputname}.def" ; then
15133 + compile_command=`$echo "X$compile_command" | $Xsed -e "s%@SYMFILE@%$output_objdir/${outputname}.def $output_objdir/${outputname}S.${objext}%"`
15134 + finalize_command=`$echo "X$finalize_command" | $Xsed -e "s%@SYMFILE@%$output_objdir/${outputname}.def $output_objdir/${outputname}S.${objext}%"`
15136 + compile_command=`$echo "X$compile_command" | $Xsed -e "s%@SYMFILE@%$output_objdir/${outputname}S.${objext}%"`
15137 + finalize_command=`$echo "X$finalize_command" | $Xsed -e "s%@SYMFILE@%$output_objdir/${outputname}S.${objext}%"`
15141 + compile_command=`$echo "X$compile_command" | $Xsed -e "s%@SYMFILE@%$output_objdir/${outputname}S.${objext}%"`
15142 + finalize_command=`$echo "X$finalize_command" | $Xsed -e "s%@SYMFILE@%$output_objdir/${outputname}S.${objext}%"`
15147 $echo "$modename: unknown suffix for \`$dlsyms'" 1>&2
15148 @@ -4438,7 +4736,7 @@
15149 # We have no uninstalled library dependencies, so finalize right now.
15150 $show "$link_command"
15151 $run eval "$link_command"
15155 # Delete the generated files.
15156 if test -n "$dlsyms"; then
15157 @@ -4446,7 +4744,7 @@
15158 $run $rm "$output_objdir/${outputname}S.${objext}"
15162 + exit $exit_status
15165 if test -n "$shlibpath_var"; then
15166 @@ -4586,10 +4884,12 @@
15169 *cygwin* | *mingw* )
15170 - cwrappersource=`$echo ${objdir}/lt-${output}.c`
15171 - cwrapper=`$echo ${output}.exe`
15172 - $rm $cwrappersource $cwrapper
15173 - trap "$rm $cwrappersource $cwrapper; exit $EXIT_FAILURE" 1 2 15
15174 + output_name=`basename $output`
15175 + output_path=`dirname $output`
15176 + cwrappersource="$output_path/$objdir/lt-$output_name.c"
15177 + cwrapper="$output_path/$output_name.exe"
15178 + $rm $cwrappersource $cwrapper
15179 + trap "$rm $cwrappersource $cwrapper; exit $EXIT_FAILURE" 1 2 15
15181 cat > $cwrappersource <<EOF
15183 @@ -4614,6 +4914,9 @@
15184 #include <malloc.h>
15185 #include <stdarg.h>
15186 #include <assert.h>
15187 +#include <string.h>
15188 +#include <ctype.h>
15189 +#include <sys/stat.h>
15191 #if defined(PATH_MAX)
15192 # define LT_PATHMAX PATH_MAX
15193 @@ -4624,15 +4927,19 @@
15196 #ifndef DIR_SEPARATOR
15197 -#define DIR_SEPARATOR '/'
15198 +# define DIR_SEPARATOR '/'
15199 +# define PATH_SEPARATOR ':'
15202 #if defined (_WIN32) || defined (__MSDOS__) || defined (__DJGPP__) || \
15204 -#define HAVE_DOS_BASED_FILE_SYSTEM
15205 -#ifndef DIR_SEPARATOR_2
15206 -#define DIR_SEPARATOR_2 '\\'
15208 +# define HAVE_DOS_BASED_FILE_SYSTEM
15209 +# ifndef DIR_SEPARATOR_2
15210 +# define DIR_SEPARATOR_2 '\\'
15212 +# ifndef PATH_SEPARATOR_2
15213 +# define PATH_SEPARATOR_2 ';'
15217 #ifndef DIR_SEPARATOR_2
15218 @@ -4642,17 +4949,32 @@
15219 (((ch) == DIR_SEPARATOR) || ((ch) == DIR_SEPARATOR_2))
15220 #endif /* DIR_SEPARATOR_2 */
15222 +#ifndef PATH_SEPARATOR_2
15223 +# define IS_PATH_SEPARATOR(ch) ((ch) == PATH_SEPARATOR)
15224 +#else /* PATH_SEPARATOR_2 */
15225 +# define IS_PATH_SEPARATOR(ch) ((ch) == PATH_SEPARATOR_2)
15226 +#endif /* PATH_SEPARATOR_2 */
15228 #define XMALLOC(type, num) ((type *) xmalloc ((num) * sizeof(type)))
15229 #define XFREE(stale) do { \
15230 if (stale) { free ((void *) stale); stale = 0; } \
15233 +/* -DDEBUG is fairly common in CFLAGS. */
15235 +#if defined DEBUGWRAPPER
15236 +# define DEBUG(format, ...) fprintf(stderr, format, __VA_ARGS__)
15238 +# define DEBUG(format, ...)
15241 const char *program_name = NULL;
15243 void * xmalloc (size_t num);
15244 char * xstrdup (const char *string);
15245 -char * basename (const char *name);
15246 -char * fnqualify(const char *path);
15247 +const char * base_name (const char *name);
15248 +char * find_executable(const char *wrapper);
15249 +int check_executable(const char *path);
15250 char * strendzap(char *str, const char *pat);
15251 void lt_fatal (const char *message, ...);
15253 @@ -4662,29 +4984,51 @@
15257 - program_name = (char *) xstrdup ((char *) basename (argv[0]));
15258 + program_name = (char *) xstrdup (base_name (argv[0]));
15259 + DEBUG("(main) argv[0] : %s\n",argv[0]);
15260 + DEBUG("(main) program_name : %s\n",program_name);
15261 newargz = XMALLOC(char *, argc+2);
15264 - cat >> $cwrappersource <<EOF
15265 - newargz[0] = "$SHELL";
15266 + cat >> $cwrappersource <<EOF
15267 + newargz[0] = (char *) xstrdup("$SHELL");
15270 - cat >> $cwrappersource <<"EOF"
15271 - newargz[1] = fnqualify(argv[0]);
15272 + cat >> $cwrappersource <<"EOF"
15273 + newargz[1] = find_executable(argv[0]);
15274 + if (newargz[1] == NULL)
15275 + lt_fatal("Couldn't find %s", argv[0]);
15276 + DEBUG("(main) found exe at : %s\n",newargz[1]);
15277 /* we know the script has the same name, without the .exe */
15278 /* so make sure newargz[1] doesn't end in .exe */
15279 strendzap(newargz[1],".exe");
15280 for (i = 1; i < argc; i++)
15281 newargz[i+1] = xstrdup(argv[i]);
15282 newargz[argc+1] = NULL;
15284 + for (i=0; i<argc+1; i++)
15286 + DEBUG("(main) newargz[%d] : %s\n",i,newargz[i]);
15292 - cat >> $cwrappersource <<EOF
15295 + cat >> $cwrappersource <<EOF
15296 + execv("$SHELL",(char const **)newargz);
15300 + cat >> $cwrappersource <<EOF
15301 execv("$SHELL",newargz);
15306 - cat >> $cwrappersource <<"EOF"
15307 + cat >> $cwrappersource <<"EOF"
15312 @@ -4704,48 +5048,148 @@
15317 -basename (const char *name)
15319 +base_name (const char *name)
15323 #if defined (HAVE_DOS_BASED_FILE_SYSTEM)
15324 /* Skip over the disk name in MSDOS pathnames. */
15325 - if (isalpha (name[0]) && name[1] == ':')
15326 + if (isalpha ((unsigned char)name[0]) && name[1] == ':')
15330 for (base = name; *name; name++)
15331 if (IS_DIR_SEPARATOR (*name))
15333 - return (char *) base;
15338 +check_executable(const char * path)
15342 + DEBUG("(check_executable) : %s\n", path ? (*path ? path : "EMPTY!") : "NULL!");
15343 + if ((!path) || (!*path))
15346 + if ((stat (path, &st) >= 0) &&
15348 + /* MinGW & native WIN32 do not support S_IXOTH or S_IXGRP */
15349 +#if defined (S_IXOTH)
15350 + ((st.st_mode & S_IXOTH) == S_IXOTH) ||
15352 +#if defined (S_IXGRP)
15353 + ((st.st_mode & S_IXGRP) == S_IXGRP) ||
15355 + ((st.st_mode & S_IXUSR) == S_IXUSR))
15362 +/* Searches for the full path of the wrapper. Returns
15363 + newly allocated full path name if found, NULL otherwise */
15365 -fnqualify(const char *path)
15366 +find_executable (const char* wrapper)
15370 + int has_slash = 0;
15372 + const char* p_next;
15373 + /* static buffer for getcwd */
15374 char tmp[LT_PATHMAX + 1];
15376 + char* concat_name;
15378 - assert(path != NULL);
15379 + DEBUG("(find_executable) : %s\n", wrapper ? (*wrapper ? wrapper : "EMPTY!") : "NULL!");
15381 - /* Is it qualified already? */
15382 + if ((wrapper == NULL) || (*wrapper == '\0'))
15385 + /* Absolute path? */
15386 #if defined (HAVE_DOS_BASED_FILE_SYSTEM)
15387 - if (isalpha (path[0]) && path[1] == ':')
15388 - return xstrdup (path);
15389 + if (isalpha ((unsigned char)wrapper[0]) && wrapper[1] == ':')
15391 + concat_name = xstrdup (wrapper);
15392 + if (check_executable(concat_name))
15393 + return concat_name;
15394 + XFREE(concat_name);
15399 + if (IS_DIR_SEPARATOR (wrapper[0]))
15401 + concat_name = xstrdup (wrapper);
15402 + if (check_executable(concat_name))
15403 + return concat_name;
15404 + XFREE(concat_name);
15406 +#if defined (HAVE_DOS_BASED_FILE_SYSTEM)
15409 - if (IS_DIR_SEPARATOR (path[0]))
15410 - return xstrdup (path);
15412 - /* prepend the current directory */
15413 - /* doesn't handle '~' */
15414 + for (p = wrapper; *p; p++)
15422 + /* no slashes; search PATH */
15423 + const char* path = getenv ("PATH");
15424 + if (path != NULL)
15426 + for (p = path; *p; p = p_next)
15430 + for (q = p; *q; q++)
15431 + if (IS_PATH_SEPARATOR(*q))
15434 + p_next = (*q == '\0' ? q : q + 1);
15437 + /* empty path: current directory */
15438 + if (getcwd (tmp, LT_PATHMAX) == NULL)
15439 + lt_fatal ("getcwd failed");
15440 + tmp_len = strlen(tmp);
15441 + concat_name = XMALLOC(char, tmp_len + 1 + strlen(wrapper) + 1);
15442 + memcpy (concat_name, tmp, tmp_len);
15443 + concat_name[tmp_len] = '/';
15444 + strcpy (concat_name + tmp_len + 1, wrapper);
15448 + concat_name = XMALLOC(char, p_len + 1 + strlen(wrapper) + 1);
15449 + memcpy (concat_name, p, p_len);
15450 + concat_name[p_len] = '/';
15451 + strcpy (concat_name + p_len + 1, wrapper);
15453 + if (check_executable(concat_name))
15454 + return concat_name;
15455 + XFREE(concat_name);
15458 + /* not found in PATH; assume curdir */
15460 + /* Relative path | not found in path: prepend cwd */
15461 if (getcwd (tmp, LT_PATHMAX) == NULL)
15462 lt_fatal ("getcwd failed");
15463 - size = strlen(tmp) + 1 + strlen(path) + 1; /* +2 for '/' and '\0' */
15464 - p = XMALLOC(char, size);
15465 - sprintf(p, "%s%c%s", tmp, DIR_SEPARATOR, path);
15467 + tmp_len = strlen(tmp);
15468 + concat_name = XMALLOC(char, tmp_len + 1 + strlen(wrapper) + 1);
15469 + memcpy (concat_name, tmp, tmp_len);
15470 + concat_name[tmp_len] = '/';
15471 + strcpy (concat_name + tmp_len + 1, wrapper);
15473 + if (check_executable(concat_name))
15474 + return concat_name;
15475 + XFREE(concat_name);
15480 @@ -4789,16 +5233,16 @@
15484 - # we should really use a build-platform specific compiler
15485 - # here, but OTOH, the wrappers (shell script and this C one)
15486 - # are only useful if you want to execute the "real" binary.
15487 - # Since the "real" binary is built for $host, then this
15488 - # wrapper might as well be built for $host, too.
15489 - $run $LTCC -s -o $cwrapper $cwrappersource
15493 - trap "$rm $output; exit $EXIT_FAILURE" 1 2 15
15494 + # we should really use a build-platform specific compiler
15495 + # here, but OTOH, the wrappers (shell script and this C one)
15496 + # are only useful if you want to execute the "real" binary.
15497 + # Since the "real" binary is built for $host, then this
15498 + # wrapper might as well be built for $host, too.
15499 + $run $LTCC $LTCFLAGS -s -o $cwrapper $cwrappersource
15503 + trap "$rm $output; exit $EXIT_FAILURE" 1 2 15
15507 @@ -4819,7 +5263,7 @@
15509 # The HP-UX ksh and POSIX shell print the target directory to stdout
15510 # if CDPATH is set.
15511 -if test \"\${CDPATH+set}\" = set; then CDPATH=:; export CDPATH; fi
15512 +(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15514 relink_command=\"$relink_command\"
15516 @@ -4948,13 +5392,13 @@
15517 # Backslashes separate directories on plain windows
15518 *-*-mingw | *-*-os2*)
15519 $echo >> $output "\
15520 - exec \$progdir\\\\\$program \${1+\"\$@\"}
15521 + exec \"\$progdir\\\\\$program\" \${1+\"\$@\"}
15526 $echo >> $output "\
15527 - exec \$progdir/\$program \${1+\"\$@\"}
15528 + exec \"\$progdir/\$program\" \${1+\"\$@\"}
15532 @@ -4964,7 +5408,7 @@
15535 # The program doesn't exist.
15536 - \$echo \"\$0: error: \$progdir/\$program does not exist\" 1>&2
15537 + \$echo \"\$0: error: \\\`\$progdir/\$program' does not exist\" 1>&2
15538 \$echo \"This script is just a wrapper for \$program.\" 1>&2
15539 $echo \"See the $PACKAGE documentation for more information.\" 1>&2
15541 @@ -4996,71 +5440,73 @@
15543 if test -n "$addlibs"; then
15544 gentop="$output_objdir/${outputname}x"
15545 - $show "${rm}r $gentop"
15546 - $run ${rm}r "$gentop"
15547 - $show "$mkdir $gentop"
15548 - $run $mkdir "$gentop"
15550 - if test "$status" -ne 0 && test ! -d "$gentop"; then
15553 generated="$generated $gentop"
15555 - # Add in members from convenience archives.
15556 - for xlib in $addlibs; do
15557 - # Extract the objects.
15559 - [\\/]* | [A-Za-z]:[\\/]*) xabs="$xlib" ;;
15560 - *) xabs=`pwd`"/$xlib" ;;
15562 - xlib=`$echo "X$xlib" | $Xsed -e 's%^.*/%%'`
15563 - xdir="$gentop/$xlib"
15565 - $show "${rm}r $xdir"
15566 - $run ${rm}r "$xdir"
15567 - $show "$mkdir $xdir"
15568 - $run $mkdir "$xdir"
15570 - if test "$status" -ne 0 && test ! -d "$xdir"; then
15573 - # We will extract separately just the conflicting names and we will no
15574 - # longer touch any unique names. It is faster to leave these extract
15575 - # automatically by $AR in one run.
15576 - $show "(cd $xdir && $AR x $xabs)"
15577 - $run eval "(cd \$xdir && $AR x \$xabs)" || exit $?
15578 - if ($AR t "$xabs" | sort | sort -uc >/dev/null 2>&1); then
15581 - $echo "$modename: warning: object name conflicts; renaming object files" 1>&2
15582 - $echo "$modename: warning: to ensure that they will not overwrite" 1>&2
15583 - $AR t "$xabs" | sort | uniq -cd | while read -r count name
15586 - while test "$i" -le "$count"
15588 - # Put our $i before any first dot (extension)
15589 - # Never overwrite any file
15591 - while test "X$name_to" = "X$name" || test -f "$xdir/$name_to"
15593 - name_to=`$echo "X$name_to" | $Xsed -e "s/\([^.]*\)/\1-$i/"`
15595 - $show "(cd $xdir && $AR xN $i $xabs '$name' && $mv '$name' '$name_to')"
15596 - $run eval "(cd \$xdir && $AR xN $i \$xabs '$name' && $mv '$name' '$name_to')" || exit $?
15602 - oldobjs="$oldobjs "`find $xdir -name \*.${objext} -print -o -name \*.lo -print | $NL2SP`
15604 + func_extract_archives $gentop $addlibs
15605 + oldobjs="$oldobjs $func_extract_archives_result"
15608 # Do each command in the archive commands.
15609 if test -n "$old_archive_from_new_cmds" && test "$build_libtool_libs" = yes; then
15610 cmds=$old_archive_from_new_cmds
15612 + # POSIX demands no paths to be encoded in archives. We have
15613 + # to avoid creating archives with duplicate basenames if we
15614 + # might have to extract them afterwards, e.g., when creating a
15615 + # static archive out of a convenience library, or when linking
15616 + # the entirety of a libtool archive into another (currently
15617 + # not supported by libtool).
15618 + if (for obj in $oldobjs
15620 + $echo "X$obj" | $Xsed -e 's%^.*/%%'
15621 + done | sort | sort -uc >/dev/null 2>&1); then
15624 + $echo "copying selected object files to avoid basename conflicts..."
15626 + if test -z "$gentop"; then
15627 + gentop="$output_objdir/${outputname}x"
15628 + generated="$generated $gentop"
15630 + $show "${rm}r $gentop"
15631 + $run ${rm}r "$gentop"
15632 + $show "$mkdir $gentop"
15633 + $run $mkdir "$gentop"
15635 + if test "$exit_status" -ne 0 && test ! -d "$gentop"; then
15636 + exit $exit_status
15640 + save_oldobjs=$oldobjs
15643 + for obj in $save_oldobjs
15645 + objbase=`$echo "X$obj" | $Xsed -e 's%^.*/%%'`
15646 + case " $oldobjs " in
15647 + " ") oldobjs=$obj ;;
15648 + *[\ /]"$objbase "*)
15650 + # Make sure we don't pick an alternate name that also
15652 + newobj=lt$counter-$objbase
15653 + counter=`expr $counter + 1`
15654 + case " $oldobjs " in
15655 + *[\ /]"$newobj "*) ;;
15656 + *) if test ! -f "$gentop/$newobj"; then break; fi ;;
15659 + $show "ln $obj $gentop/$newobj || cp $obj $gentop/$newobj"
15660 + $run ln "$obj" "$gentop/$newobj" ||
15661 + $run cp "$obj" "$gentop/$newobj"
15662 + oldobjs="$oldobjs $gentop/$newobj"
15664 + *) oldobjs="$oldobjs $obj" ;;
15669 eval cmds=\"$old_archive_cmds\"
15671 if len=`expr "X$cmds" : ".*"` &&
15672 @@ -5074,20 +5520,7 @@
15675 save_oldobjs=$oldobjs
15676 - # GNU ar 2.10+ was changed to match POSIX; thus no paths are
15677 - # encoded into archives. This makes 'ar r' malfunction in
15678 - # this piecewise linking case whenever conflicting object
15679 - # names appear in distinct ar calls; check, warn and compensate.
15680 - if (for obj in $save_oldobjs
15682 - $echo "X$obj" | $Xsed -e 's%^.*/%%'
15683 - done | sort | sort -uc >/dev/null 2>&1); then
15686 - $echo "$modename: warning: object name conflicts; overriding AR_FLAGS to 'cq'" 1>&2
15687 - $echo "$modename: warning: to ensure that POSIX-compatible ar will work" 1>&2
15691 # Is there a better way of finding the last object in the list?
15692 for obj in $save_oldobjs
15694 @@ -5098,7 +5531,7 @@
15695 oldobjs="$objlist $obj"
15696 objlist="$objlist $obj"
15697 eval test_cmds=\"$old_archive_cmds\"
15698 - if len=`expr "X$test_cmds" : ".*"` &&
15699 + if len=`expr "X$test_cmds" : ".*" 2>/dev/null` &&
15700 test "$len" -le "$max_cmd_len"; then
15703 @@ -5295,11 +5728,11 @@
15704 # install_prog (especially on Windows NT).
15705 if test "$nonopt" = "$SHELL" || test "$nonopt" = /bin/sh ||
15706 # Allow the use of GNU shtool's install command.
15707 - $echo "X$nonopt" | $Xsed | grep shtool > /dev/null; then
15708 + $echo "X$nonopt" | grep shtool > /dev/null; then
15709 # Aesthetically quote it.
15710 arg=`$echo "X$nonopt" | $Xsed -e "$sed_quote_subst"`
15712 - *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*)
15713 + *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
15717 @@ -5308,14 +5741,14 @@
15725 # The real first argument should be the name of the installation program.
15726 # Aesthetically quote it.
15727 arg=`$echo "X$arg" | $Xsed -e "$sed_quote_subst"`
15729 - *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*)
15730 + *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
15734 @@ -5333,28 +5766,31 @@
15736 if test -n "$dest"; then
15737 files="$files $dest"
15750 + case " $install_prog " in
15751 + *[\\\ /]cp\ *) ;;
15755 + -g | -m | -o) prev=$arg ;;
15765 # If the previous option needed an argument, then skip it.
15766 if test -n "$prev"; then
15774 @@ -5363,7 +5799,7 @@
15775 # Aesthetically quote the argument.
15776 arg=`$echo "X$arg" | $Xsed -e "$sed_quote_subst"`
15778 - *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*)
15779 + *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
15783 @@ -5532,11 +5968,14 @@
15785 if test "$#" -gt 0; then
15786 # Delete the old symlinks, and create new ones.
15787 + # Try `ln -sf' first, because the `ln' binary might depend on
15788 + # the symlink we replace! Solaris /bin/ln does not understand -f,
15789 + # so we also need to try rm && ln -s.
15792 if test "$linkname" != "$realname"; then
15793 - $show "(cd $destdir && $rm $linkname && $LN_S $realname $linkname)"
15794 - $run eval "(cd $destdir && $rm $linkname && $LN_S $realname $linkname)"
15795 + $show "(cd $destdir && { $LN_S -f $realname $linkname || { $rm $linkname && $LN_S $realname $linkname; }; })"
15796 + $run eval "(cd $destdir && { $LN_S -f $realname $linkname || { $rm $linkname && $LN_S $realname $linkname; }; })"
15800 @@ -5549,7 +5988,16 @@
15804 - $run eval "$cmd" || exit $?
15805 + $run eval "$cmd" || {
15808 + # Restore the uninstalled library and exit
15809 + if test "$mode" = relink; then
15810 + $run eval '(cd $output_objdir && $rm ${realname}T && $mv ${realname}U $realname)'
15818 @@ -5643,17 +6091,15 @@
15822 - # To insure that "foo" is sourced, and not "foo.exe",
15823 - # finese the cygwin/MSYS system by explicitly sourcing "foo."
15824 - # which disallows the automatic-append-.exe behavior.
15826 - *cygwin* | *mingw*) wrapperdot=${wrapper}. ;;
15827 - *) wrapperdot=${wrapper} ;;
15829 + # Note that it is not necessary on cygwin/mingw to append a dot to
15830 + # foo even if both foo and FILE.exe exist: automatic-append-.exe
15831 + # behavior happens only for exec(3), not for open(2)! Also, sourcing
15832 + # `FILE.' does not work on cygwin managed mounts.
15834 # If there is no directory component, then add one.
15836 - */* | *\\*) . ${wrapperdot} ;;
15837 - *) . ./${wrapperdot} ;;
15839 + */* | *\\*) . ${wrapper} ;;
15840 + *) . ./${wrapper} ;;
15843 # Check the variables that should have been set.
15844 @@ -5681,34 +6127,21 @@
15848 - # To insure that "foo" is sourced, and not "foo.exe",
15849 - # finese the cygwin/MSYS system by explicitly sourcing "foo."
15850 - # which disallows the automatic-append-.exe behavior.
15852 - *cygwin* | *mingw*) wrapperdot=${wrapper}. ;;
15853 - *) wrapperdot=${wrapper} ;;
15855 + # Note that it is not necessary on cygwin/mingw to append a dot to
15856 + # foo even if both foo and FILE.exe exist: automatic-append-.exe
15857 + # behavior happens only for exec(3), not for open(2)! Also, sourcing
15858 + # `FILE.' does not work on cygwin managed mounts.
15860 # If there is no directory component, then add one.
15862 - */* | *\\*) . ${wrapperdot} ;;
15863 - *) . ./${wrapperdot} ;;
15865 + */* | *\\*) . ${wrapper} ;;
15866 + *) . ./${wrapper} ;;
15870 if test "$fast_install" = no && test -n "$relink_command"; then
15871 if test "$finalize" = yes && test -z "$run"; then
15873 - test -n "$TMPDIR" && tmpdir="$TMPDIR"
15874 - tmpdir="$tmpdir/libtool-$$"
15875 - save_umask=`umask`
15877 - if $mkdir "$tmpdir"; then
15878 - umask $save_umask
15880 - umask $save_umask
15881 - $echo "$modename: error: cannot create temporary directory \`$tmpdir'" 1>&2
15884 + tmpdir=`func_mktempdir`
15885 file=`$echo "X$file$stripped_ext" | $Xsed -e 's%^.*/%%'`
15886 outputname="$tmpdir/$file"
15887 # Replace the output file specification.
15888 @@ -5732,7 +6165,7 @@
15891 # remove .exe since cygwin /usr/bin/install will append another
15894 case $install_prog,$host in
15895 */usr/bin/install*,*cygwin*)
15896 case $file:$destfile in
15897 @@ -5832,7 +6265,7 @@
15898 # Exit here if they wanted silent mode.
15899 test "$show" = : && exit $EXIT_SUCCESS
15901 - $echo "----------------------------------------------------------------------"
15902 + $echo "X----------------------------------------------------------------------" | $Xsed
15903 $echo "Libraries have been installed in:"
15904 for libdir in $libdirs; do
15906 @@ -5865,7 +6298,7 @@
15908 $echo "See any operating system documentation about shared libraries for"
15909 $echo "more information, such as the ld(1) and ld.so(8) manual pages."
15910 - $echo "----------------------------------------------------------------------"
15911 + $echo "X----------------------------------------------------------------------" | $Xsed
15915 @@ -6082,9 +6515,17 @@
15916 rmfiles="$rmfiles $objdir/$n"
15918 test -n "$old_library" && rmfiles="$rmfiles $objdir/$old_library"
15919 - test "$mode" = clean && rmfiles="$rmfiles $objdir/$name $objdir/${name}i"
15921 - if test "$mode" = uninstall; then
15924 + case " $library_names " in
15925 + # " " in the beginning catches empty $dlname
15926 + *" $dlname "*) ;;
15927 + *) rmfiles="$rmfiles $objdir/$dlname" ;;
15929 + test -n "$libdir" && rmfiles="$rmfiles $objdir/$name $objdir/${name}i"
15932 if test -n "$library_names"; then
15933 # Do each command in the postuninstall commands.
15934 cmds=$postuninstall_cmds
15935 @@ -6117,7 +6558,8 @@
15938 # FIXME: should reinstall the best remaining shared library.
15945 @@ -6402,7 +6844,7 @@
15947 $echo "Try \`$modename --help' for more information about other modes."
15949 -exit $EXIT_SUCCESS
15952 # The TAGs below are defined such that we never get into a situation
15953 # in which we disable both kinds of libraries. Given conflicting
15954 @@ -6416,12 +6858,11 @@
15955 # configuration. But we'll never go from static-only to shared-only.
15957 # ### BEGIN LIBTOOL TAG CONFIG: disable-shared
15958 -build_libtool_libs=no
15959 -build_old_libs=yes
15960 +disable_libs=shared
15961 # ### END LIBTOOL TAG CONFIG: disable-shared
15963 # ### BEGIN LIBTOOL TAG CONFIG: disable-static
15964 -build_old_libs=`case $build_libtool_libs in yes) $echo no;; *) $echo yes;; esac`
15965 +disable_libs=static
15966 # ### END LIBTOOL TAG CONFIG: disable-static