cleanups and fixes for libsamplerate and libsndfile
[openwrt/svn-archive/archive.git] / libs / libsamplerate / patches / 100-libtoolize.patch
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
4 @@ -1,7 +1,7 @@
5 -# generated automatically by aclocal 1.7.9 -*- Autoconf -*-
6 +# generated automatically by aclocal 1.9.6 -*- Autoconf -*-
7
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
17 # PARTICULAR PURPOSE.
18
19 -dnl @synopsis AC_C_FIND_ENDIAN
20 -dnl
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>
24 -dnl
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.
28 -dnl
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.
34 -
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.
40 -
41 -AC_DEFUN([AC_C_FIND_ENDIAN],
42 -[AC_CACHE_CHECK(processor byte ordering,
43 - ac_cv_c_byte_order,
44 -
45 -# Initialize to unknown
46 -ac_cv_c_byte_order=unknown
47 -
48 -if test x$ac_cv_header_endian_h = xyes ; then
49 -
50 - # First try <endian.h> which should set BYTE_ORDER.
51 -
52 - [AC_TRY_LINK([
53 - #include <endian.h>
54 - #if BYTE_ORDER != LITTLE_ENDIAN
55 - not big endian
56 - #endif
57 - ], return 0 ;,
58 - ac_cv_c_byte_order=little
59 - )]
60 -
61 - [AC_TRY_LINK([
62 - #include <endian.h>
63 - #if BYTE_ORDER != BIG_ENDIAN
64 - not big endian
65 - #endif
66 - ], return 0 ;,
67 - ac_cv_c_byte_order=big
68 - )]
69 -
70 - fi
71 -
72 -if test $ac_cv_c_byte_order = unknown ; then
73 +# libtool.m4 - Configure libtool for the host system. -*-Autoconf-*-
74
75 - [AC_TRY_LINK([
76 - #include <sys/types.h>
77 - #include <sys/param.h>
78 - #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
79 - bogus endian macros
80 - #endif
81 - ], return 0 ;,
82 -
83 - [AC_TRY_LINK([
84 - #include <sys/types.h>
85 - #include <sys/param.h>
86 - #if BYTE_ORDER != LITTLE_ENDIAN
87 - not big endian
88 - #endif
89 - ], return 0 ;,
90 - ac_cv_c_byte_order=little
91 - )]
92 -
93 - [AC_TRY_LINK([
94 - #include <sys/types.h>
95 - #include <sys/param.h>
96 - #if BYTE_ORDER != LITTLE_ENDIAN
97 - not big endian
98 - #endif
99 - ], return 0 ;,
100 - ac_cv_c_byte_order=little
101 - )]
102 -
103 - )]
104 -
105 - fi
106 -
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.
111 - [
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
116 - ;;
117 -
118 - m68* | mips* | powerpc* | hppa* | sparc*)
119 - ac_cv_c_big_endian=1
120 - ac_cv_c_little_endian=0
121 - ;;
122 -
123 - esac
124 - ]
125 - else
126 - AC_TRY_RUN(
127 - [[
128 - int main (void)
129 - { /* Are we little or big endian? From Harbison&Steele. */
130 - union
131 - { long l ;
132 - char c [sizeof (long)] ;
133 - } u ;
134 - u.l = 1 ;
135 - return (u.c [sizeof (long) - 1] == 1);
136 - }
137 - ]], , ac_cv_c_byte_order=big,
138 - ac_cv_c_byte_order=unknown
139 - )
140 -
141 - AC_TRY_RUN(
142 - [[int main (void)
143 - { /* Are we little or big endian? From Harbison&Steele. */
144 - union
145 - { long l ;
146 - char c [sizeof (long)] ;
147 - } u ;
148 - u.l = 1 ;
149 - return (u.c [0] == 1);
150 - }]], , ac_cv_c_byte_order=little,
151 - ac_cv_c_byte_order=unknown
152 - )
153 - fi
154 - fi
155 +# serial 48 Debian 1.5.22-4 AC_PROG_LIBTOOL
156
157 -)
158 -]
159
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
166 -else
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],
173 + [],
174 + [m4_define([AC_PROVIDE_IFELSE],
175 + [m4_ifdef([AC_PROVIDE_$1],
176 + [$2], [$3])])])
177
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([[*****************************************************************]])
183 - fi
184
185 -)# AC_C_FIND_ENDIAN
186 +# AC_PROG_LIBTOOL
187 +# ---------------
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],
193 + [AC_LIBTOOL_CXX],
194 + [define([AC_PROG_CXX], defn([AC_PROG_CXX])[AC_LIBTOOL_CXX
195 + ])])
196 +dnl And a similar setup for Fortran 77 support
197 + AC_PROVIDE_IFELSE([AC_PROG_F77],
198 + [AC_LIBTOOL_F77],
199 + [define([AC_PROG_F77], defn([AC_PROG_F77])[AC_LIBTOOL_F77
200 +])])
201
202 -dnl @synopsis AC_C99_FUNC_LRINT
203 -dnl
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>
207 -dnl
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.
213 -dnl
214 -AC_DEFUN([AC_C99_FUNC_LRINT],
215 -[AC_CACHE_CHECK(for lrint,
216 - ac_cv_c99_lrint,
217 -[
218 -lrint_save_CFLAGS=$CFLAGS
219 -CFLAGS="-O2 -lm"
220 -AC_TRY_LINK([
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],
229 + [AC_LIBTOOL_GCJ],
230 + [AC_PROVIDE_IFELSE([A][M_PROG_GCJ],
231 + [AC_LIBTOOL_GCJ],
232 + [AC_PROVIDE_IFELSE([LT_AC_PROG_GCJ],
233 + [AC_LIBTOOL_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
242
243 -#include <math.h>
244 -], if (!lrint(3.14159)) lrint(2.7183);, ac_cv_c99_lrint=yes, ac_cv_c99_lrint=no)
245
246 -CFLAGS=$lrint_save_CFLAGS
247 +# _AC_PROG_LIBTOOL
248 +# ----------------
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
254
255 -])
256 +# This can be used to rebuild libtool when needed
257 +LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
258
259 -if test "$ac_cv_c99_lrint" = yes; then
260 - AC_DEFINE(HAVE_LRINT, 1,
261 - [Define if you have C99's lrint function.])
262 -fi
263 -])# AC_C99_FUNC_LRINT
264 -dnl @synopsis AC_C99_FUNC_LRINTF
265 -dnl
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>
269 -dnl
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.
275 -dnl
276 -AC_DEFUN([AC_C99_FUNC_LRINTF],
277 -[AC_CACHE_CHECK(for lrintf,
278 - ac_cv_c99_lrintf,
279 -[
280 -lrintf_save_CFLAGS=$CFLAGS
281 -CFLAGS="-O2 -lm"
282 -AC_TRY_LINK([
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
290
291 -#include <math.h>
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
296
297 -CFLAGS=$lrintf_save_CFLAGS
298
299 -])
300 +# AC_LIBTOOL_SETUP
301 +# ----------------
302 +AC_DEFUN([AC_LIBTOOL_SETUP],
303 +[AC_PREREQ(2.50)dnl
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
313
314 -if test "$ac_cv_c99_lrintf" = yes; then
315 - AC_DEFINE(HAVE_LRINTF, 1,
316 - [Define if you have C99's lrintf function.])
317 -fi
318 -])# AC_C99_FUNC_LRINTF
319 -dnl @synopsis AC_C99_FUNC_LLRINT
320 -dnl
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>
324 -dnl
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
335 dnl
336 -AC_DEFUN([AC_C99_FUNC_LLRINT],
337 -[AC_CACHE_CHECK(for llrint,
338 - ac_cv_c99_llrint,
339 -[
340 -llrint_save_CFLAGS=$CFLAGS
341 -CFLAGS="-O2 -lm"
342 -AC_TRY_LINK([
343 -#define _ISOC9X_SOURCE 1
344 -#define _ISOC99_SOURCE 1
345 -#define __USE_ISOC99 1
346 -#define __USE_ISOC9X 1
347 -
348 -#include <math.h>
349 -#include <stdint.h>
350 -], int64_t x ; x = llrint(3.14159) ;, ac_cv_c99_llrint=yes, ac_cv_c99_llrint=no)
351
352 -CFLAGS=$llrint_save_CFLAGS
353 +AC_LIBTOOL_SYS_MAX_CMD_LEN
354 +AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE
355 +AC_LIBTOOL_OBJDIR
356
357 -])
358 +AC_REQUIRE([_LT_AC_SYS_COMPILER])dnl
359 +_LT_AC_PROG_ECHO_BACKSLASH
360
361 -if test "$ac_cv_c99_llrint" = yes; then
362 - AC_DEFINE(HAVE_LLRINT, 1,
363 - [Define if you have C99's llrint function.])
364 -fi
365 -])# AC_C99_FUNC_LLRINT
366 +case $host_os in
367 +aix3*)
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
372 + COLLECT_NAMES=
373 + export COLLECT_NAMES
374 + fi
375 + ;;
376 +esac
377
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']
382
383 +# Same as above, but do not quote variable references.
384 +[double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g']
385
386 -dnl @synopsis AC_C_CLIP_MODE
387 -dnl
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>
391 -dnl
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'
400
401 +# Sed substitution to avoid accidental globbing in evaled expressions
402 +no_glob_subst='s/\*/\\\*/g'
403
404 +# Constants:
405 +rm="rm -f"
406
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.
410 -
411 -AC_DEFUN([AC_C_CLIP_MODE],
412 -[AC_CACHE_CHECK(processor clipping capabilities,
413 - ac_cv_c_clip_type,
414 -
415 -# Initialize to unknown
416 -ac_cv_c_clip_positive=unknown
417 -ac_cv_c_clip_negative=unknown
418 -
419 -if test $ac_cv_c_clip_positive = unknown ; then
420 - AC_TRY_RUN(
421 - [[
422 - #define _ISOC9X_SOURCE 1
423 - #define _ISOC99_SOURCE 1
424 - #define __USE_ISOC99 1
425 - #define __USE_ISOC9X 1
426 - #include <math.h>
427 - int main (void)
428 - { double fval ;
429 - int k, ival ;
430 -
431 - fval = 1.0 * 0x7FFFFFFF ;
432 - for (k = 0 ; k < 100 ; k++)
433 - { ival = (lrint (fval)) >> 24 ;
434 - if (ival != 127)
435 - return 1 ;
436 -
437 - fval *= 1.2499999 ;
438 - } ;
439 -
440 - return 0 ;
441 - }
442 - ]],
443 - ac_cv_c_clip_positive=yes,
444 - ac_cv_c_clip_positive=no,
445 - ac_cv_c_clip_positive=unknown
446 - )
447 -
448 - AC_TRY_RUN(
449 - [[
450 - #define _ISOC9X_SOURCE 1
451 - #define _ISOC99_SOURCE 1
452 - #define __USE_ISOC99 1
453 - #define __USE_ISOC9X 1
454 - #include <math.h>
455 - int main (void)
456 - { double fval ;
457 - int k, ival ;
458 -
459 - fval = -8.0 * 0x10000000 ;
460 - for (k = 0 ; k < 100 ; k++)
461 - { ival = (lrint (fval)) >> 24 ;
462 - if (ival != -128)
463 - return 1 ;
464 -
465 - fval *= 1.2499999 ;
466 - } ;
467 -
468 - return 0 ;
469 - }
470 - ]],
471 - ac_cv_c_clip_negative=yes,
472 - ac_cv_c_clip_negative=no,
473 - ac_cv_c_clip_negative=unknown
474 - )
475 +# Global variables:
476 +default_ofile=libtool
477 +can_build_shared=yes
478
479 - fi
480 +# All known linkers require a `.a' archive for static linking (except MSVC,
481 +# which needs '.lib').
482 +libext=a
483 +ltmain="$ac_aux_dir/ltmain.sh"
484 +ofile="$default_ofile"
485 +with_gnu_ld="$lt_cv_prog_gnu_ld"
486
487 -if test $ac_cv_c_clip_positive = yes ; then
488 - ac_cv_c_clip_positive=1
489 -else
490 - ac_cv_c_clip_positive=0
491 - fi
492 +AC_CHECK_TOOL(AR, ar, false)
493 +AC_CHECK_TOOL(RANLIB, ranlib, :)
494 +AC_CHECK_TOOL(STRIP, strip, :)
495
496 -if test $ac_cv_c_clip_negative = yes ; then
497 - ac_cv_c_clip_negative=1
498 -else
499 - ac_cv_c_clip_negative=0
500 - fi
501 +old_CC="$CC"
502 +old_CFLAGS="$CFLAGS"
503
504 -[[
505 -case "$ac_cv_c_clip_positive$ac_cv_c_clip_negative" in
506 - "00")
507 - ac_cv_c_clip_type="none"
508 - ;;
509 - "10")
510 - ac_cv_c_clip_type="positive"
511 - ;;
512 - "01")
513 - ac_cv_c_clip_type="negative"
514 - ;;
515 - "11")
516 - ac_cv_c_clip_type="both"
517 - ;;
518 - esac
519 - ]]
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
537
538 -)
539 -]
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=
544
545 -)# AC_C_CLIP_MODE
546 +if test -n "$RANLIB"; then
547 + case $host_os in
548 + openbsd*)
549 + old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
550 + ;;
551 + *)
552 + old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
553 + ;;
554 + esac
555 + old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
556 +fi
557
558 +_LT_CC_BASENAME([$compiler])
559
560 +# Only perform the check for file, if the check method requires it
561 +case $deplibs_check_method in
562 +file_magic*)
563 + if test "$file_magic_cmd" = '$MAGIC_CMD'; then
564 + AC_PATH_MAGIC
565 + fi
566 + ;;
567 +esac
568
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)
572
573 -ifelse(dnl
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
578
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.
582 +AC_ARG_WITH([pic],
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
588
589 - arch-tag: 6db7c287-8971-4074-a193-468446194fd0
590 +# Use C for the default configuration in the libtool script
591 +tagname=
592 +AC_LIBTOOL_LANG_C_CONFIG
593 +_LT_AC_TAGCONFIG
594 +])# AC_LIBTOOL_SETUP
595
596 -)dnl
597
598 +# _LT_AC_SYS_COMPILER
599 +# -------------------
600 +AC_DEFUN([_LT_AC_SYS_COMPILER],
601 +[AC_REQUIRE([AC_PROG_CC])dnl
602
603 -# Do all the work for Automake. -*- Autoconf -*-
604 +# If no C compiler was specified, use CC.
605 +LTCC=${LTCC-"$CC"}
606
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"}
611
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.
615 +compiler=$CC
616 +])# _LT_AC_SYS_COMPILER
617
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.
622
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
632 + case $cc_temp in
633 + compile | *[[\\/]]compile | ccache | *[[\\/]]ccache ) ;;
634 + distcc | *[[\\/]]distcc | purify | *[[\\/]]purify ) ;;
635 + \-*) ;;
636 + *) break;;
637 + esac
638 +done
639 +cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
640 +])
641
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
645 -# 02111-1307, USA.
646
647 -# serial 10
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`
657 +$rm conftest*
658 +])# _LT_COMPILER_BOILERPLATE
659
660 -AC_PREREQ([2.54])
661
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`
674 +$rm conftest*
675 +])# _LT_LINKER_BOILERPLATE
676
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])
695 -fi
696
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'
701 - else
702 - CYGPATH_W=echo
703 - fi
704 -fi
705 -AC_SUBST([CYGPATH_W])
706 -
707 -# Define the identity of the package.
708 -dnl Distinguish between old-style and new-style calls.
709 -m4_ifval([$2],
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; }
727 +}'`
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; }
730 +}'`; fi],[])
731 +if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
732 +])# _LT_AC_SYS_LIBPATH_AIX
733
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
737
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)
747 -AM_PROG_INSTALL_SH
748 -AM_PROG_INSTALL_STRIP
749 -# We need awk for the "check" target. The system "awk" is bad on
750 -# some platforms.
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)])
760 +$1
761 +AC_DIVERT_POP
762 +])# _LT_AC_SHELL_INIT
763
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
773 -])
774 -])
775
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}
784
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.
788 +case X$ECHO in
789 +X*--fallback-echo)
790 + # Remove one level of quotation (which was required for Make).
791 + ECHO=`echo "$ECHO" | sed 's,\\\\\[$]\\[$]0,'[$]0','`
792 + ;;
793 +esac
794
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.
800 -_am_stamp_count=1
801 -for _am_header in $config_headers :; do
802 - case $_am_header in
803 - $1 | $1:* )
804 - break ;;
805 - * )
806 - _am_stamp_count=`expr $_am_stamp_count + 1` ;;
807 - esac
808 -done
809 -echo "timestamp for $1" >`AS_DIRNAME([$1])`/stamp-h[]$_am_stamp_count])
810 +echo=${ECHO-echo}
811 +if test "X[$]1" = X--no-reexec; then
812 + # Discard the --no-reexec flag, and continue.
813 + shift
814 +elif test "X[$]1" = X--fallback-echo; then
815 + # Avoid inline document here, it may be left over
816 + :
817 +elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
818 + # Yippee, $echo works!
819 + :
820 +else
821 + # Restart under the correct shell.
822 + exec $SHELL "[$]0" --no-reexec ${1+"[$]@"}
823 +fi
824
825 -# Copyright 2002 Free Software Foundation, Inc.
826 +if test "X[$]1" = X--fallback-echo; then
827 + # used as fallback echo
828 + shift
829 + cat <<EOF
830 +[$]*
831 +EOF
832 + exit 0
833 +fi
834
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
840 +# if CDPATH is set.
841 +(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
842
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
855 + then
856 + break
857 + fi
858 + done
859 +fi
860
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
867 + :
868 +else
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'
872 + #
873 + # So, first we look for a working echo in the user's PATH.
874
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
882 + IFS="$lt_save_ifs"
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
887 + echo="$dir/echo"
888 + break
889 + fi
890 + done
891 + IFS="$lt_save_ifs"
892
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.
905 + echo='print -r'
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+"[$]@"}
914 + else
915 + # Try using printf.
916 + echo='printf %s\n'
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
921 + :
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"
929 + export 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"
936 + else
937 + # maybe with a smaller string...
938 + prev=:
939
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
943 + then
944 + break
945 + fi
946 + prev="$cmd"
947 + done
948
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+"[$]@"}
954 + else
955 + # Oops. We lost completely, so just stick with echo.
956 + echo=echo
957 + fi
958 + fi
959 + fi
960 + fi
961 +fi
962 +fi
963
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.
970 +ECHO=$echo
971 +if test "X$ECHO" = "X$CONFIG_SHELL [$]0 --fallback-echo"; then
972 + ECHO="$CONFIG_SHELL \\\$\[$]0 --fallback-echo"
973 +fi
974
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.
979 +AC_SUBST(ECHO)
980 +])])# _LT_AC_PROG_ECHO_BACKSLASH
981
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
985 -# 02111-1307, USA.
986
987 -# serial 2
988 +# _LT_AC_LOCK
989 +# -----------
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
995
996 -# _AM_MANGLE_OPTION(NAME)
997 -# -----------------------
998 -AC_DEFUN([_AM_MANGLE_OPTION],
999 -[[_AM_OPTION_]m4_bpatsubst($1, [[^a-zA-Z0-9_]], [_])])
1000 -
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
1007 +# libtool support.
1008 +case $host in
1009 +ia64-*-hpux*)
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
1014 + *ELF-32*)
1015 + HPUX_IA64_MODE="32"
1016 + ;;
1017 + *ELF-64*)
1018 + HPUX_IA64_MODE="64"
1019 + ;;
1020 + esac
1021 + fi
1022 + rm -rf conftest*
1023 + ;;
1024 +*-*-irix6*)
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
1030 + *32-bit*)
1031 + LD="${LD-ld} -melf32bsmip"
1032 + ;;
1033 + *N32*)
1034 + LD="${LD-ld} -melf32bmipn32"
1035 + ;;
1036 + *64-bit*)
1037 + LD="${LD-ld} -melf64bmip"
1038 + ;;
1039 + esac
1040 + else
1041 + case `/usr/bin/file conftest.$ac_objext` in
1042 + *32-bit*)
1043 + LD="${LD-ld} -32"
1044 + ;;
1045 + *N32*)
1046 + LD="${LD-ld} -n32"
1047 + ;;
1048 + *64-bit*)
1049 + LD="${LD-ld} -64"
1050 + ;;
1051 + esac
1052 + fi
1053 + fi
1054 + rm -rf conftest*
1055 + ;;
1056
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
1067 + *32-bit*)
1068 + case $host in
1069 + x86_64-*linux*)
1070 + LD="${LD-ld} -m elf_i386"
1071 + ;;
1072 + ppc64-*linux*|powerpc64-*linux*)
1073 + LD="${LD-ld} -m elf32ppclinux"
1074 + ;;
1075 + s390x-*linux*)
1076 + LD="${LD-ld} -m elf_s390"
1077 + ;;
1078 + sparc64-*linux*)
1079 + LD="${LD-ld} -m elf32_sparc"
1080 + ;;
1081 + esac
1082 + ;;
1083 + *64-bit*)
1084 + case $host in
1085 + x86_64-*linux*)
1086 + LD="${LD-ld} -m elf_x86_64"
1087 + ;;
1088 + ppc*-*linux*|powerpc*-*linux*)
1089 + LD="${LD-ld} -m elf64ppc"
1090 + ;;
1091 + s390*-*linux*)
1092 + LD="${LD-ld} -m elf64_s390"
1093 + ;;
1094 + sparc*-*linux*)
1095 + LD="${LD-ld} -m elf64_sparc"
1096 + ;;
1097 + esac
1098 + ;;
1099 + esac
1100 + fi
1101 + rm -rf conftest*
1102 + ;;
1103
1104 -# _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])])
1109 +*-*-sco3.2v5*)
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,
1114 + [AC_LANG_PUSH(C)
1115 + AC_TRY_LINK([],[],[lt_cv_cc_needs_belf=yes],[lt_cv_cc_needs_belf=no])
1116 + AC_LANG_POP])
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"
1120 + fi
1121 + ;;
1122 +sparc*-*solaris*)
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
1127 + *64-bit*)
1128 + case $lt_cv_prog_gnu_ld in
1129 + yes*) LD="${LD-ld} -m elf64_sparc" ;;
1130 + *) LD="${LD-ld} -64" ;;
1131 + esac
1132 + ;;
1133 + esac
1134 + fi
1135 + rm -rf conftest*
1136 + ;;
1137
1138 -#
1139 -# Check to make sure that the build environment is sane.
1140 -#
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)
1146 + ;;
1147 + ])
1148 +esac
1149
1150 -# Copyright 1996, 1997, 2000, 2001 Free Software Foundation, Inc.
1151 +need_locks="$enable_libtool_lock"
1152
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.
1157 +])# _LT_AC_LOCK
1158
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.
1163
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
1167 -# 02111-1307, USA.
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],
1175 + [$2=no
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)
1190 + ac_status=$?
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
1199 + $2=yes
1200 + fi
1201 + fi
1202 + $rm conftest*
1203 +])
1204
1205 -# serial 3
1206 +if test x"[$]$2" = xyes; then
1207 + ifelse([$5], , :, [$5])
1208 +else
1209 + ifelse([$6], , :, [$6])
1210 +fi
1211 +])# AC_LIBTOOL_COMPILER_OPTION
1212
1213 -# AM_SANITY_CHECK
1214 -# ---------------
1215 -AC_DEFUN([AM_SANITY_CHECK],
1216 -[AC_MSG_CHECKING([whether build environment is sane])
1217 -# Just in case
1218 -sleep 1
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
1224 -# directory).
1225 -if (
1226 - set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1227 - if test "$[*]" = "X"; then
1228 - # -L didn't work.
1229 - set X `ls -t $srcdir/configure conftest.file`
1230 - fi
1231 - rm -f conftest.file
1232 - if test "$[*]" != "X $srcdir/configure conftest.file" \
1233 - && test "$[*]" != "X conftest.file $srcdir/configure"; then
1234
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],
1247 + [$2=no
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
1260 + $2=yes
1261 + fi
1262 + else
1263 + $2=yes
1264 + fi
1265 fi
1266 + $rm conftest*
1267 + LDFLAGS="$save_LDFLAGS"
1268 +])
1269
1270 - test "$[2]" = conftest.file
1271 - )
1272 -then
1273 - # Ok.
1274 - :
1275 +if test x"[$]$2" = xyes; then
1276 + ifelse([$4], , :, [$4])
1277 else
1278 - AC_MSG_ERROR([newly created file is older than distributed files!
1279 -Check your system clock])
1280 + ifelse([$5], , :, [$5])
1281 fi
1282 -AC_MSG_RESULT(yes)])
1283 -
1284 -# -*- Autoconf -*-
1285 +])# AC_LIBTOOL_LINKER_OPTION
1286
1287
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
1295 + i=0
1296 + teststring="ABCD"
1297
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.
1302 -
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.
1307 -
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
1311 -# 02111-1307, USA.
1312 + case $build_os in
1313 + msdosdjgpp*)
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
1319 + ;;
1320
1321 -# serial 3
1322 + gnu*)
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;
1327 + ;;
1328
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"}
1334 -AC_SUBST($1)])
1335 + cygwin* | mingw*)
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;
1344 + ;;
1345
1346 + amigaos*)
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;
1350 + ;;
1351
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`
1368 + else
1369 + lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
1370 + fi
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`
1374 + ;;
1375 +
1376 + interix*)
1377 + # We know the value 262144 and hardcode it with a safety zone (like BSD)
1378 + lt_cv_sys_max_cmd_len=196608
1379 + ;;
1380 +
1381 + osf*)
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
1387 + #
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 ;;
1391 + esac
1392 + fi
1393 + ;;
1394 + sco3.2v5*)
1395 + lt_cv_sys_max_cmd_len=102400
1396 + ;;
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/.*[[ ]]//'`
1401 + else
1402 + lt_cv_sys_max_cmd_len=32768
1403 + fi
1404 + ;;
1405 + *)
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
1408 + # we can't tell.
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
1415 + do
1416 + i=`expr $i + 1`
1417 + teststring=$teststring$teststring
1418 + done
1419 + 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`
1424 + ;;
1425 + esac
1426 +])
1427 +if test -n $lt_cv_sys_max_cmd_len ; then
1428 + AC_MSG_RESULT($lt_cv_sys_max_cmd_len)
1429 else
1430 - am_missing_run=
1431 - AC_MSG_WARN([`missing' script is too old or missing])
1432 + AC_MSG_RESULT(none)
1433 fi
1434 -])
1435 +])# AC_LIBTOOL_SYS_MAX_CMD_LEN
1436
1437 -# AM_AUX_DIR_EXPAND
1438
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
1445
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.
1450
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 :
1461 + [$4]
1462 +else
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"
1468
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
1472 -# 02111-1307, USA.
1473 +#if HAVE_DLFCN_H
1474 +#include <dlfcn.h>
1475 +#endif
1476
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/../..'.
1480 -#
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.
1488 -#
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
1495 -#
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.
1500 -#
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.
1510 -#
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.
1514 +#include <stdio.h>
1515
1516 -# Rely on autoconf to set up CDPATH properly.
1517 -AC_PREREQ([2.50])
1518 +#ifdef RTLD_GLOBAL
1519 +# define LT_DLGLOBAL RTLD_GLOBAL
1520 +#else
1521 +# ifdef DL_GLOBAL
1522 +# define LT_DLGLOBAL DL_GLOBAL
1523 +# else
1524 +# define LT_DLGLOBAL 0
1525 +# endif
1526 +#endif
1527
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`
1531 -])
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
1535 +# ifdef RTLD_LAZY
1536 +# define LT_DLLAZY_OR_NOW RTLD_LAZY
1537 +# else
1538 +# ifdef DL_LAZY
1539 +# define LT_DLLAZY_OR_NOW DL_LAZY
1540 +# else
1541 +# ifdef RTLD_NOW
1542 +# define LT_DLLAZY_OR_NOW RTLD_NOW
1543 +# else
1544 +# ifdef DL_NOW
1545 +# define LT_DLLAZY_OR_NOW DL_NOW
1546 +# else
1547 +# define LT_DLLAZY_OR_NOW 0
1548 +# endif
1549 +# endif
1550 +# endif
1551 +# endif
1552 +#endif
1553
1554 -# AM_PROG_INSTALL_SH
1555 -# ------------------
1556 -# Define $install_sh.
1557 +#ifdef __cplusplus
1558 +extern "C" void exit (int);
1559 +#endif
1560
1561 -# Copyright 2001 Free Software Foundation, Inc.
1562 +void fnord() { int i=42;}
1563 +int main ()
1564 +{
1565 + void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
1566 + int status = $lt_dlunknown;
1567
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.
1572 + if (self)
1573 + {
1574 + if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
1575 + else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
1576 + /* dlclose (self); */
1577 + }
1578 + else
1579 + puts (dlerror ());
1580
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.
1585 + exit (status);
1586 +}]
1587 +EOF
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
1590 + lt_status=$?
1591 + case x$lt_status in
1592 + x$lt_dlno_uscore) $1 ;;
1593 + x$lt_dlneed_uscore) $2 ;;
1594 + x$lt_dlunknown|x*) $3 ;;
1595 + esac
1596 + else :
1597 + # compilation failed
1598 + $3
1599 + fi
1600 +fi
1601 +rm -fr conftest*
1602 +])# _LT_AC_TRY_DLOPEN_SELF
1603
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
1607 -# 02111-1307, USA.
1608
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
1621 +else
1622 + lt_cv_dlopen=no
1623 + lt_cv_dlopen_libs=
1624
1625 -# AM_PROG_INSTALL_STRIP
1626 + case $host_os in
1627 + beos*)
1628 + lt_cv_dlopen="load_add_on"
1629 + lt_cv_dlopen_libs=
1630 + lt_cv_dlopen_self=yes
1631 + ;;
1632
1633 -# Copyright 2001 Free Software Foundation, Inc.
1634 + mingw* | pw32*)
1635 + lt_cv_dlopen="LoadLibrary"
1636 + lt_cv_dlopen_libs=
1637 + ;;
1638
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.
1643 + cygwin*)
1644 + lt_cv_dlopen="dlopen"
1645 + lt_cv_dlopen_libs=
1646 + ;;
1647
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.
1652 + darwin*)
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
1659 + ])
1660 + ;;
1661
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
1665 -# 02111-1307, USA.
1666 + *)
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"])
1679 + ])
1680 + ])
1681 + ])
1682 + ])
1683 + ])
1684 + ;;
1685 + esac
1686
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], :)
1703 -fi
1704 -INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
1705 -AC_SUBST([INSTALL_STRIP_PROGRAM])])
1706 + if test "x$lt_cv_dlopen" != xno; then
1707 + enable_dlopen=yes
1708 + else
1709 + enable_dlopen=no
1710 + fi
1711
1712 -# -*- Autoconf -*-
1713 -# Copyright (C) 2003 Free Software Foundation, Inc.
1714 + case $lt_cv_dlopen in
1715 + dlopen)
1716 + save_CPPFLAGS="$CPPFLAGS"
1717 + test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
1718
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\"
1725
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.
1730 + save_LIBS="$LIBS"
1731 + LIBS="$lt_cv_dlopen_libs $LIBS"
1732
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
1736 -# 02111-1307, USA.
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)
1742 + ])
1743
1744 -# serial 1
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)
1752 + ])
1753 + fi
1754
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
1761 - am__leading_dot=.
1762 -else
1763 - am__leading_dot=_
1764 -fi
1765 -rmdir .tst 2>/dev/null
1766 -AC_SUBST([am__leading_dot])])
1767 + CPPFLAGS="$save_CPPFLAGS"
1768 + LDFLAGS="$save_LDFLAGS"
1769 + LIBS="$save_LIBS"
1770 + ;;
1771 + esac
1772
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 ;;
1777 + esac
1778
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 ;;
1783 + esac
1784 +fi
1785 +])# AC_LIBTOOL_DLOPEN_SELF
1786
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.
1791
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
1805 + mkdir conftest
1806 + cd conftest
1807 + mkdir out
1808 + printf "$lt_simple_compile_test_code" > conftest.$ac_ext
1809
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
1813 -# 02111-1307, USA.
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)
1825 + ac_status=$?
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
1829 + then
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
1836 + fi
1837 + fi
1838 + chmod u+w . 2>&AS_MESSAGE_LOG_FD
1839 + $rm conftest*
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
1844 + cd ..
1845 + rmdir conftest
1846 + $rm conftest*
1847 +])
1848 +])# AC_LIBTOOL_PROG_CC_C_O
1849
1850
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
1861
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])
1866 + hard_links=yes
1867 + $rm conftest*
1868 + ln conftest.a conftest.b 2>/dev/null && hard_links=no
1869 + touch conftest.a
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])
1875 + need_locks=warn
1876 + fi
1877 +else
1878 + need_locks=no
1879 +fi
1880 +])# AC_LIBTOOL_SYS_HARD_LINK_LOCKS
1881
1882
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.
1888 -#
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
1906 +else
1907 + # MS-DOS does not allow filenames that begin with a dot.
1908 + lt_cv_objdir=_libs
1909 +fi
1910 +rmdir .libs 2>/dev/null])
1911 +objdir=$lt_cv_objdir
1912 +])# AC_LIBTOOL_OBJDIR
1913
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=])
1919
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
1927 - # in D'.
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
1932 - cd 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
1938 - # directory.
1939 - mkdir sub
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
1949
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`
1953 - fi
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.
1958 - #
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
1966 - done
1967 - echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
1968 -
1969 - case $depmode in
1970 - nosideeffect)
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
1974 - continue
1975 - else
1976 - break
1977 - fi
1978 - ;;
1979 - none) break ;;
1980 - esac
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
1997 - break
1998 - fi
1999 - fi
2000 - done
2001 -
2002 - cd ..
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
2013 + else
2014 + # We can link without hardcoding, and we can hardcode nonexisting dirs.
2015 + _LT_AC_TAGVAR(hardcode_action, $1)=immediate
2016 + fi
2017 else
2018 - am_cv_$1_dependencies_compiler_type=none
2019 + # We cannot hardcode anything, or else we can only hardcode existing
2020 + # directories.
2021 + _LT_AC_TAGVAR(hardcode_action, $1)=unsupported
2022 fi
2023 -])
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])
2028 -])
2029 -
2030 +AC_MSG_RESULT([$_LT_AC_TAGVAR(hardcode_action, $1)])
2031
2032 -# AM_SET_DEPDIR
2033 -# -------------
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
2039 -])
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
2047 +fi
2048 +])# AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH
2049
2050
2051 -# AM_DEP_TRACK
2052 -# ------------
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],
2063 +[striplib=
2064 +old_striplib=
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])
2070 +else
2071 +# FIXME - insert some real tests, host_os isn't really good enough
2072 + case $host_os in
2073 + darwin*)
2074 + if test -n "$STRIP" ; then
2075 + striplib="$STRIP -x"
2076 + AC_MSG_RESULT([yes])
2077 + else
2078 + AC_MSG_RESULT([no])
2079 fi
2080 -AM_CONDITIONAL([AMDEP], [test "x$enable_dependency_tracking" != xno])
2081 -AC_SUBST([AMDEPBACKSLASH])
2082 -])
2083 -
2084 -# Generate code to set up dependency tracking. -*- Autoconf -*-
2085 + ;;
2086 + *)
2087 + AC_MSG_RESULT([no])
2088 + ;;
2089 + esac
2090 +fi
2091 +])# AC_LIBTOOL_SYS_LIB_STRIP
2092
2093 -# Copyright 1999, 2000, 2001, 2002 Free Software Foundation, Inc.
2094
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'
2106 +soname_spec=
2107 +shrext_cmds=".so"
2108 +postinstall_cmds=
2109 +postuninstall_cmds=
2110 +finish_cmds=
2111 +finish_eval=
2112 +shlibpath_var=
2113 +shlibpath_overrides_runpath=unknown
2114 +version_type=none
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'`
2125 + else
2126 + sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
2127 + fi
2128 +else
2129 + sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
2130 +fi
2131 +need_lib_prefix=unknown
2132 +hardcode_into_libs=no
2133
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
2141
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
2145 -# 02111-1307, USA.
2146 +case $host_os in
2147 +aix3*)
2148 + version_type=linux
2149 + library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
2150 + shlibpath_var=LIBPATH
2151
2152 -#serial 2
2153 + # AIX 3 has no versioning support, so we append a major version to the name.
2154 + soname_spec='${libname}${release}${shared_ext}$major'
2155 + ;;
2156
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")`
2171 +aix4* | aix5*)
2172 + version_type=linux
2173 + need_lib_prefix=no
2174 + need_version=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
2180 else
2181 - continue
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.
2187 + case $host_os in
2188 + aix4 | aix4.[[01]] | aix4.[[01]].*)
2189 + if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
2190 + echo ' yes '
2191 + echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
2192 + :
2193 + else
2194 + can_build_shared=no
2195 + fi
2196 + ;;
2197 + esac
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}'
2206 + else
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'
2211 + fi
2212 + shlibpath_var=LIBPATH
2213 fi
2214 - grep '^DEP_FILES *= *[[^ @%:@]]' < "$mf" > /dev/null || continue
2215 - # Extract the definition of DEP_FILES from the Makefile without
2216 - # running `make'.
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 = .*\\\\$/ {
2226 - s/^DEP_FILES = //
2227 - :loop
2228 - s/\\\\$//
2229 - p
2230 - n
2231 - /\\\\$/ b loop
2232 - p
2233 - }
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"
2242 - done
2243 -done
2244 -])# _AM_OUTPUT_DEPENDENCY_COMMANDS
2245 + ;;
2246
2247 +amigaos*)
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'
2251 + ;;
2252
2253 -# AM_OUTPUT_DEPENDENCY_COMMANDS
2254 -# -----------------------------
2255 -# This macro should only be invoked once -- use via AC_REQUIRE.
2256 -#
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"])
2264 -])
2265 -
2266 -# Check to see how 'make' treats includes. -*- Autoconf -*-
2267 -
2268 -# Copyright (C) 2001, 2002, 2003 Free Software Foundation, Inc.
2269 +beos*)
2270 + library_names_spec='${libname}${shared_ext}'
2271 + dynamic_linker="$host_os ld.so"
2272 + shlibpath_var=LIBRARY_PATH
2273 + ;;
2274
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.
2279 +bsdi[[45]]*)
2280 + version_type=linux
2281 + need_version=no
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
2291 + ;;
2292
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"
2300 + need_version=no
2301 + need_lib_prefix=no
2302
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
2306 -# 02111-1307, USA.
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~
2319 + $rm \$dlpath'
2320 + shlibpath_overrides_runpath=yes
2321
2322 -# serial 2
2323 + case $host_os in
2324 + cygwin*)
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"
2328 + ;;
2329 + mingw*)
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'`
2341 + else
2342 + sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
2343 + fi
2344 + ;;
2345 + pw32*)
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}'
2348 + ;;
2349 + esac
2350 + ;;
2351
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'
2358 -am__doit:
2359 - @echo done
2360 -.PHONY: am__doit
2361 -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])
2364 -am__include="#"
2365 -am__quote=
2366 -_am_result=none
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
2376 - am__quote=
2377 - _am_result=GNU
2378 -fi
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
2384 - am__quote="\""
2385 - _am_result=BSD
2386 - fi
2387 -fi
2388 -AC_SUBST([am__include])
2389 -AC_SUBST([am__quote])
2390 -AC_MSG_RESULT([$_am_result])
2391 -rm -f confinc confmf
2392 -])
2393 + *)
2394 + library_names_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext} $libname.lib'
2395 + ;;
2396 + esac
2397 + dynamic_linker='Win32 ld.exe'
2398 + # FIXME: first we should search . and the directory the executable is in
2399 + shlibpath_var=PATH
2400 + ;;
2401
2402 -# AM_CONDITIONAL -*- Autoconf -*-
2403 +darwin* | rhapsody*)
2404 + dynamic_linker="$host_os dyld"
2405 + version_type=darwin
2406 + need_lib_prefix=no
2407 + need_version=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"`
2416 + else
2417 + sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
2418 + fi
2419 + sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
2420 + ;;
2421
2422 -# Copyright 1997, 2000, 2001 Free Software Foundation, Inc.
2423 +dgux*)
2424 + version_type=linux
2425 + need_lib_prefix=no
2426 + need_version=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
2430 + ;;
2431
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.
2436 +freebsd1*)
2437 + dynamic_linker=no
2438 + ;;
2439
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`
2449 + else
2450 + case $host_os in
2451 + freebsd[[123]]*) objformat=aout ;;
2452 + *) objformat=elf ;;
2453 + esac
2454 + fi
2455 + version_type=freebsd-$objformat
2456 + case $version_type in
2457 + freebsd-elf*)
2458 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
2459 + need_version=no
2460 + need_lib_prefix=no
2461 + ;;
2462 + freebsd-*)
2463 + library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
2464 + need_version=yes
2465 + ;;
2466 + esac
2467 + shlibpath_var=LD_LIBRARY_PATH
2468 + case $host_os in
2469 + freebsd2*)
2470 + shlibpath_overrides_runpath=yes
2471 + ;;
2472 + freebsd3.[[01]]* | freebsdelf3.[[01]]*)
2473 + shlibpath_overrides_runpath=yes
2474 + hardcode_into_libs=yes
2475 + ;;
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
2480 + ;;
2481 + freebsd*) # from 4.6 on
2482 + shlibpath_overrides_runpath=yes
2483 + hardcode_into_libs=yes
2484 + ;;
2485 + esac
2486 + ;;
2487
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
2491 -# 02111-1307, USA.
2492 +gnu*)
2493 + version_type=linux
2494 + need_lib_prefix=no
2495 + need_version=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
2500 + ;;
2501
2502 -# serial 5
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
2508 + need_version=no
2509 + case $host_cpu in
2510 + ia64*)
2511 + shrext_cmds='.so'
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"
2520 + else
2521 + sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
2522 + fi
2523 + sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
2524 + ;;
2525 + hppa*64*)
2526 + shrext_cmds='.sl'
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
2535 + ;;
2536 + *)
2537 + shrext_cmds='.sl'
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'
2543 + ;;
2544 + esac
2545 + # HP-UX runs *really* slowly unless shared libraries are mode 555.
2546 + postinstall_cmds='chmod 555 $lib'
2547 + ;;
2548
2549 -AC_PREREQ(2.52)
2550 +interix3*)
2551 + version_type=linux
2552 + need_lib_prefix=no
2553 + need_version=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
2560 + ;;
2561
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])
2570 -if $2; then
2571 - $1_TRUE=
2572 - $1_FALSE='#'
2573 -else
2574 - $1_TRUE='#'
2575 - $1_FALSE=
2576 -fi
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.])
2581 -fi])])
2582 -
2583 -# Like AC_CONFIG_HEADER, but automatically create stamp file. -*- Autoconf -*-
2584 +irix5* | irix6* | nonstopux*)
2585 + case $host_os in
2586 + nonstopux*) version_type=nonstopux ;;
2587 + *)
2588 + if test "$lt_cv_prog_gnu_ld" = yes; then
2589 + version_type=linux
2590 + else
2591 + version_type=irix
2592 + fi ;;
2593 + esac
2594 + need_lib_prefix=no
2595 + need_version=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}'
2598 + case $host_os in
2599 + irix5* | nonstopux*)
2600 + libsuff= shlibsuff=
2601 + ;;
2602 + *)
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;;
2611 + esac
2612 + ;;
2613 + esac
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
2619 + ;;
2620
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*)
2624 + dynamic_linker=no
2625 + ;;
2626
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
2635 + need_version=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
2645
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"
2654 + fi
2655
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
2659 -# 02111-1307, USA.
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'
2667 + ;;
2668
2669 -AC_PREREQ([2.52])
2670 +netbsdelf*-gnu)
2671 + version_type=linux
2672 + need_lib_prefix=no
2673 + need_version=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'
2680 + ;;
2681
2682 -# serial 6
2683 +netbsd*)
2684 + version_type=sunos
2685 + need_lib_prefix=no
2686 + need_version=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'
2691 + else
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'
2695 + fi
2696 + shlibpath_var=LD_LIBRARY_PATH
2697 + shlibpath_overrides_runpath=yes
2698 + hardcode_into_libs=yes
2699 + ;;
2700
2701 -# AM_CONFIG_HEADER is obsolete. It has been replaced by AC_CONFIG_HEADERS.
2702 -AU_DEFUN([AM_CONFIG_HEADER], [AC_CONFIG_HEADERS($@)])
2703 +newsos6)
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
2708 + ;;
2709
2710 -# libtool.m4 - Configure libtool for the host system. -*-Autoconf-*-
2711 +nto-qnx*)
2712 + version_type=linux
2713 + need_lib_prefix=no
2714 + need_version=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
2719 + ;;
2720
2721 -# serial 47 AC_PROG_LIBTOOL
2722 -# Debian $Rev: 214 $
2723 +openbsd*)
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.
2728 + case $host_os in
2729 + openbsd3.3 | openbsd3.3.*) need_version=yes ;;
2730 + *) need_version=no ;;
2731 + esac
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
2736 + case $host_os in
2737 + openbsd2.[[89]] | openbsd2.[[89]].*)
2738 + shlibpath_overrides_runpath=no
2739 + ;;
2740 + *)
2741 + shlibpath_overrides_runpath=yes
2742 + ;;
2743 + esac
2744 + else
2745 + shlibpath_overrides_runpath=yes
2746 + fi
2747 + ;;
2748
2749 +os2*)
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
2756 + ;;
2757
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],
2762 - [],
2763 - [m4_define([AC_PROVIDE_IFELSE],
2764 - [m4_ifdef([AC_PROVIDE_$1],
2765 - [$2], [$3])])])
2766 +osf3* | osf4* | osf5*)
2767 + version_type=osf
2768 + need_lib_prefix=no
2769 + need_version=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"
2775 + ;;
2776
2777 +solaris*)
2778 + version_type=linux
2779 + need_lib_prefix=no
2780 + need_version=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'
2788 + ;;
2789
2790 -# AC_PROG_LIBTOOL
2791 -# ---------------
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],
2797 - [AC_LIBTOOL_CXX],
2798 - [define([AC_PROG_CXX], defn([AC_PROG_CXX])[AC_LIBTOOL_CXX
2799 - ])])
2800 -dnl And a similar setup for Fortran 77 support
2801 - AC_PROVIDE_IFELSE([AC_PROG_F77],
2802 - [AC_LIBTOOL_F77],
2803 - [define([AC_PROG_F77], defn([AC_PROG_F77])[AC_LIBTOOL_F77
2804 -])])
2805 +sunos4*)
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
2813 + fi
2814 + need_version=yes
2815 + ;;
2816
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],
2821 - [AC_LIBTOOL_GCJ],
2822 - [AC_PROVIDE_IFELSE([A][M_PROG_GCJ],
2823 - [AC_LIBTOOL_GCJ],
2824 - [AC_PROVIDE_IFELSE([LT_AC_PROG_GCJ],
2825 - [AC_LIBTOOL_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
2834 +sysv4 | sysv4.3*)
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
2840 + sni)
2841 + shlibpath_overrides_runpath=no
2842 + need_lib_prefix=no
2843 + export_dynamic_flag_spec='${wl}-Blargedynsym'
2844 + runpath_var=LD_RUN_PATH
2845 + ;;
2846 + siemens)
2847 + need_lib_prefix=no
2848 + ;;
2849 + motorola)
2850 + need_lib_prefix=no
2851 + need_version=no
2852 + shlibpath_overrides_runpath=no
2853 + sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
2854 + ;;
2855 + esac
2856 + ;;
2857
2858 +sysv4*MP*)
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
2864 + fi
2865 + ;;
2866
2867 -# _AC_PROG_LIBTOOL
2868 -# ----------------
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
2877 + need_version=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
2885 + else
2886 + sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
2887 + shlibpath_overrides_runpath=yes
2888 + case $host_os in
2889 + sco3.2v5*)
2890 + sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
2891 + ;;
2892 + esac
2893 + fi
2894 + sys_lib_dlsearch_path_spec='/usr/lib'
2895 + ;;
2896
2897 -# This can be used to rebuild libtool when needed
2898 -LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
2899 +uts4*)
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
2904 + ;;
2905
2906 -# Always use our own libtool.
2907 -LIBTOOL='$(SHELL) $(top_builddir)/libtool'
2908 -AC_SUBST(LIBTOOL)dnl
2909 +*)
2910 + dynamic_linker=no
2911 + ;;
2912 +esac
2913 +AC_MSG_RESULT([$dynamic_linker])
2914 +test "$dynamic_linker" = no && can_build_shared=no
2915
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"
2922 +fi
2923 +])# AC_LIBTOOL_SYS_DYNAMIC_LINKER
2924
2925
2926 -# AC_LIBTOOL_SETUP
2927 +# _LT_AC_TAGCONFIG
2928 # ----------------
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
2940 -
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
2946 -dnl
2947 -
2948 -AC_LIBTOOL_SYS_MAX_CMD_LEN
2949 -AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE
2950 -AC_LIBTOOL_OBJDIR
2951 -
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"])
2959
2960 -case $host_os in
2961 -aix3*)
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
2966 - COLLECT_NAMES=
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])
2971 fi
2972 - ;;
2973 -esac
2974 -
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']
2979
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])
2986 + else
2987 + AC_MSG_WARN([using `LTCC=$LTCC', extracted from `$ofile'])
2988 + fi
2989 + fi
2990 + if test -z "$LTCFLAGS"; then
2991 + eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
2992 + fi
2993
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'`
3000
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
3008 + "") ;;
3009 + *) AC_MSG_ERROR([invalid tag name: $tagname])
3010 + ;;
3011 + esac
3012
3013 -# Constants:
3014 -rm="rm -f"
3015 + if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
3016 + then
3017 + AC_MSG_ERROR([tag name \"$tagname\" already exists])
3018 + fi
3019
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
3026
3027 -# All known linkers require a `.a' archive for static linking (except M$VC,
3028 -# which needs '.lib').
3029 -libext=a
3030 -ltmain="$ac_aux_dir/ltmain.sh"
3031 -ofile="$default_ofile"
3032 -with_gnu_ld="$lt_cv_prog_gnu_ld"
3033 + case $tagname in
3034 + CXX)
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
3039 + else
3040 + tagname=""
3041 + fi
3042 + ;;
3043
3044 -AC_CHECK_TOOL(AR, ar, false)
3045 -AC_CHECK_TOOL(RANLIB, ranlib, :)
3046 -AC_CHECK_TOOL(STRIP, strip, :)
3047 + F77)
3048 + if test -n "$F77" && test "X$F77" != "Xno"; then
3049 + AC_LIBTOOL_LANG_F77_CONFIG
3050 + else
3051 + tagname=""
3052 + fi
3053 + ;;
3054
3055 -old_CC="$CC"
3056 -old_CFLAGS="$CFLAGS"
3057 + GCJ)
3058 + if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
3059 + AC_LIBTOOL_LANG_GCJ_CONFIG
3060 + else
3061 + tagname=""
3062 + fi
3063 + ;;
3064
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
3081 + RC)
3082 + AC_LIBTOOL_LANG_RC_CONFIG
3083 + ;;
3084
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=
3089 + *)
3090 + AC_MSG_ERROR([Unsupported tag name: $tagname])
3091 + ;;
3092 + esac
3093
3094 -if test -n "$RANLIB"; then
3095 - case $host_os in
3096 - openbsd*)
3097 - old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
3098 - ;;
3099 - *)
3100 - old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
3101 - ;;
3102 - esac
3103 - old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
3104 -fi
3105 + # Append the new tag name to the list of available tags.
3106 + if test -n "$tagname" ; then
3107 + available_tags="$available_tags $tagname"
3108 + fi
3109 + fi
3110 + done
3111 + IFS="$lt_save_ifs"
3112
3113 -# Only perform the check for file, if the check method requires it
3114 -case $deplibs_check_method in
3115 -file_magic*)
3116 - if test "$file_magic_cmd" = '$MAGIC_CMD'; then
3117 - AC_PATH_MAGIC
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"
3121 + chmod +x "$ofile"
3122 + else
3123 + rm -f "${ofile}T"
3124 + AC_MSG_ERROR([unable to update list of available tagged configurations.])
3125 fi
3126 - ;;
3127 -esac
3128 +fi
3129 +])# _LT_AC_TAGCONFIG
3130
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)
3134
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
3145
3146 -AC_ARG_WITH([pic],
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
3152
3153 -# Use C for the default configuration in the libtool script
3154 -tagname=
3155 -AC_LIBTOOL_LANG_C_CONFIG
3156 -_LT_AC_TAGCONFIG
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
3164
3165
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 ;;
3183 + *)
3184 + 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
3190 + enable_shared=yes
3191 + fi
3192 + done
3193 + IFS="$lt_save_ifs"
3194 + ;;
3195 + esac],
3196 + [enable_shared=]AC_ENABLE_SHARED_DEFAULT)
3197 +])# AC_ENABLE_SHARED
3198
3199 -# If no C compiler was specified, use CC.
3200 -LTCC=${LTCC-"$CC"}
3201
3202 -# Allow CC to be a program name with arguments.
3203 -compiler=$CC
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
3212
3213
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; }
3225 -}'`
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; }
3228 -}'`; fi],[])
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 ;;
3244 + *)
3245 + 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
3251 + enable_static=yes
3252 + fi
3253 + done
3254 + IFS="$lt_save_ifs"
3255 + ;;
3256 + esac],
3257 + [enable_static=]AC_ENABLE_STATIC_DEFAULT)
3258 +])# AC_ENABLE_STATIC
3259
3260
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)])
3267 -$1
3268 -AC_DIVERT_POP
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
3277
3278
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 ;;
3300 + *)
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
3308 + fi
3309 + done
3310 + IFS="$lt_save_ifs"
3311 + ;;
3312 + esac],
3313 + [enable_fast_install=]AC_ENABLE_FAST_INSTALL_DEFAULT)
3314 +])# AC_ENABLE_FAST_INSTALL
3315
3316 -case X$ECHO in
3317 -X*--fallback-echo)
3318 - # Remove one level of quotation (which was required for Make).
3319 - ECHO=`echo "$ECHO" | sed 's,\\\\\[$]\\[$]0,'[$]0','`
3320 - ;;
3321 -esac
3322
3323 -echo=${ECHO-echo}
3324 -if test "X[$]1" = X--no-reexec; then
3325 - # Discard the --no-reexec flag, and continue.
3326 - shift
3327 -elif test "X[$]1" = X--fallback-echo; then
3328 - # Avoid inline document here, it may be left over
3329 - :
3330 -elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
3331 - # Yippee, $echo works!
3332 - :
3333 -else
3334 - # Restart under the correct shell.
3335 - exec $SHELL "[$]0" --no-reexec ${1+"[$]@"}
3336 -fi
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
3344
3345 -if test "X[$]1" = X--fallback-echo; then
3346 - # used as fallback echo
3347 - shift
3348 - cat <<EOF
3349 -[$]*
3350 -EOF
3351 - exit 0
3352 -fi
3353
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
3365
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
3374 - then
3375 - break
3376 - fi
3377 - done
3378 -fi
3379
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
3383 - :
3384 -else
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'
3388 - #
3389 - # So, first we look for a working echo in the user's PATH.
3390 +# AC_PROG_EGREP
3391 +# -------------
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'
3399 + fi])
3400 + EGREP=$ac_cv_prog_egrep
3401 + AC_SUBST([EGREP])
3402 +])])
3403
3404 +
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.
3415 + ;;
3416 +*)
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
3425 IFS="$lt_save_ifs"
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
3430 - echo="$dir/echo"
3431 - break
3432 - fi
3433 - done
3434 - IFS="$lt_save_ifs"
3435 -
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.
3442 - echo='print -r'
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+"[$]@"}
3451 - else
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
3458 - :
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"
3466 - export 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"
3473 - else
3474 - # maybe with a smaller string...
3475 - prev=:
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
3481 + "file_magic "*)
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
3486 + :
3487 + else
3488 + cat <<EOF 1>&2
3489
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
3492 - then
3493 - break
3494 - fi
3495 - prev="$cmd"
3496 - done
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
3505
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+"[$]@"}
3510 - else
3511 - # Oops. We lost completely, so just stick with echo.
3512 - echo=echo
3513 - fi
3514 +EOF
3515 + fi ;;
3516 + esac
3517 fi
3518 + break
3519 fi
3520 - fi
3521 -fi
3522 + done
3523 + IFS="$lt_save_ifs"
3524 + MAGIC_CMD="$lt_save_MAGIC_CMD"
3525 + ;;
3526 +esac])
3527 +MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
3528 +if test -n "$MAGIC_CMD"; then
3529 + AC_MSG_RESULT($MAGIC_CMD)
3530 +else
3531 + AC_MSG_RESULT(no)
3532 fi
3533 +])# AC_PATH_TOOL_PREFIX
3534
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.
3537 -ECHO=$echo
3538 -if test "X$ECHO" = "X$CONFIG_SHELL [$]0 --fallback-echo"; then
3539 - ECHO="$CONFIG_SHELL \\\$\[$]0 --fallback-echo"
3540 +
3541 +# AC_PATH_MAGIC
3542 +# -------------
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)
3549 + else
3550 + MAGIC_CMD=:
3551 + fi
3552 fi
3553 +])# AC_PATH_MAGIC
3554
3555 -AC_SUBST(ECHO)
3556 -])])# _LT_AC_PROG_ECHO_BACKSLASH
3557
3558 +# AC_PROG_LD
3559 +# ----------
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],
3566 + [with_gnu_ld=no])
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
3571 +ac_prog=ld
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])
3575 + case $host in
3576 + *-*-mingw*)
3577 + # gcc leaves a trailing carriage return which upsets mingw