/[pcsx2_0.9.7]/trunk/3rdparty/portaudio/aclocal.m4
ViewVC logotype

Annotation of /trunk/3rdparty/portaudio/aclocal.m4

Parent Directory Parent Directory | Revision Log Revision Log


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