/[svn]/linuxsampler/tags/v0_1_0/aclocal.m4
ViewVC logotype

Annotation of /linuxsampler/tags/v0_1_0/aclocal.m4

Parent Directory Parent Directory | Revision Log Revision Log


Revision 9 - (hide annotations) (download)
Wed Nov 5 14:47:10 2003 UTC (20 years, 5 months ago) by schoenebeck
Original Path: linuxsampler/trunk/aclocal.m4
File size: 238321 byte(s)
* transition from plain Makefile to autotools, source files moved to src/
* configure.in: added test for x86 architecture
* src/voice.h: x86 specific asm optimization for double to int casts only
  if compiling for x86 architecture

1 schoenebeck 9 # aclocal.m4t 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     # Like AC_CONFIG_HEADER, but automatically create stamp file. -*- Autoconf -*-
15    
16     # Copyright 1996, 1997, 2000, 2001 Free Software Foundation, Inc.
17    
18     # This program is free software; you can redistribute it and/or modify
19     # it under the terms of the GNU General Public License as published by
20     # the Free Software Foundation; either version 2, or (at your option)
21     # any later version.
22    
23     # This program is distributed in the hope that it will be useful,
24     # but WITHOUT ANY WARRANTY; without even the implied warranty of
25     # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
26     # GNU General Public License for more details.
27    
28     # You should have received a copy of the GNU General Public License
29     # along with this program; if not, write to the Free Software
30     # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
31     # 02111-1307, USA.
32    
33     AC_PREREQ([2.52])
34    
35     # serial 6
36    
37     # When config.status generates a header, we must update the stamp-h file.
38     # This file resides in the same directory as the config header
39     # that is generated. We must strip everything past the first ":",
40     # and everything past the last "/".
41    
42     # _AM_DIRNAME(PATH)
43     # -----------------
44     # Like AS_DIRNAME, only do it during macro expansion
45     AC_DEFUN([_AM_DIRNAME],
46     [m4_if(regexp([$1], [^.*[^/]//*[^/][^/]*/*$]), -1,
47     m4_if(regexp([$1], [^//\([^/]\|$\)]), -1,
48     m4_if(regexp([$1], [^/.*]), -1,
49     [.],
50     patsubst([$1], [^\(/\).*], [\1])),
51     patsubst([$1], [^\(//\)\([^/].*\|$\)], [\1])),
52     patsubst([$1], [^\(.*[^/]\)//*[^/][^/]*/*$], [\1]))[]dnl
53     ])# _AM_DIRNAME
54    
55    
56     # The stamp files are numbered to have different names.
57     # We could number them on a directory basis, but that's additional
58     # complications, let's have a unique counter.
59     m4_define([_AM_STAMP_Count], [0])
60    
61    
62     # _AM_STAMP(HEADER)
63     # -----------------
64     # The name of the stamp file for HEADER.
65     AC_DEFUN([_AM_STAMP],
66     [m4_define([_AM_STAMP_Count], m4_incr(_AM_STAMP_Count))dnl
67     AS_ESCAPE(_AM_DIRNAME(patsubst([$1],
68     [:.*])))/stamp-h[]_AM_STAMP_Count])
69    
70    
71     # _AM_CONFIG_HEADER(HEADER[:SOURCES], COMMANDS, INIT-COMMANDS)
72     # ------------------------------------------------------------
73     # We used to try to get a real timestamp in stamp-h. But the fear is that
74     # that will cause unnecessary cvs conflicts.
75     AC_DEFUN([_AM_CONFIG_HEADER],
76     [# Add the stamp file to the list of files AC keeps track of,
77     # along with our hook.
78     AC_CONFIG_HEADERS([$1],
79     [# update the timestamp
80     echo 'timestamp for $1' >"_AM_STAMP([$1])"
81     $2],
82     [$3])
83     ])# _AM_CONFIG_HEADER
84    
85    
86     # AM_CONFIG_HEADER(HEADER[:SOURCES]..., COMMANDS, INIT-COMMANDS)
87     # --------------------------------------------------------------
88     AC_DEFUN([AM_CONFIG_HEADER],
89     [AC_FOREACH([_AM_File], [$1], [_AM_CONFIG_HEADER(_AM_File, [$2], [$3])])
90     ])# AM_CONFIG_HEADER
91    
92     # Do all the work for Automake. -*- Autoconf -*-
93    
94     # This macro actually does too much some checks are only needed if
95     # your package does certain things. But this isn't really a big deal.
96    
97     # Copyright 1996, 1997, 1998, 1999, 2000, 2001, 2002
98     # Free Software Foundation, Inc.
99    
100     # This program is free software; you can redistribute it and/or modify
101     # it under the terms of the GNU General Public License as published by
102     # the Free Software Foundation; either version 2, or (at your option)
103     # any later version.
104    
105     # This program is distributed in the hope that it will be useful,
106     # but WITHOUT ANY WARRANTY; without even the implied warranty of
107     # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
108     # GNU General Public License for more details.
109    
110     # You should have received a copy of the GNU General Public License
111     # along with this program; if not, write to the Free Software
112     # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
113     # 02111-1307, USA.
114    
115     # serial 8
116    
117     # There are a few dirty hacks below to avoid letting `AC_PROG_CC' be
118     # written in clear, in which case automake, when reading aclocal.m4,
119     # will think it sees a *use*, and therefore will trigger all it's
120     # C support machinery. Also note that it means that autoscan, seeing
121     # CC etc. in the Makefile, will ask for an AC_PROG_CC use...
122    
123    
124     AC_PREREQ([2.52])
125    
126     # Autoconf 2.50 wants to disallow AM_ names. We explicitly allow
127     # the ones we care about.
128     m4_pattern_allow([^AM_[A-Z]+FLAGS$])dnl
129    
130     # AM_INIT_AUTOMAKE(PACKAGE, VERSION, [NO-DEFINE])
131     # AM_INIT_AUTOMAKE([OPTIONS])
132     # -----------------------------------------------
133     # The call with PACKAGE and VERSION arguments is the old style
134     # call (pre autoconf-2.50), which is being phased out. PACKAGE
135     # and VERSION should now be passed to AC_INIT and removed from
136     # the call to AM_INIT_AUTOMAKE.
137     # We support both call styles for the transition. After
138     # the next Automake release, Autoconf can make the AC_INIT
139     # arguments mandatory, and then we can depend on a new Autoconf
140     # release and drop the old call support.
141     AC_DEFUN([AM_INIT_AUTOMAKE],
142     [AC_REQUIRE([AM_SET_CURRENT_AUTOMAKE_VERSION])dnl
143     AC_REQUIRE([AC_PROG_INSTALL])dnl
144     # test to see if srcdir already configured
145     if test "`cd $srcdir && pwd`" != "`pwd`" &&
146     test -f $srcdir/config.status; then
147     AC_MSG_ERROR([source directory already configured; run "make distclean" there first])
148     fi
149    
150     # Define the identity of the package.
151     dnl Distinguish between old-style and new-style calls.
152     m4_ifval([$2],
153     [m4_ifval([$3], [_AM_SET_OPTION([no-define])])dnl
154     AC_SUBST([PACKAGE], [$1])dnl
155     AC_SUBST([VERSION], [$2])],
156     [_AM_SET_OPTIONS([$1])dnl
157     AC_SUBST([PACKAGE], [AC_PACKAGE_TARNAME])dnl
158     AC_SUBST([VERSION], [AC_PACKAGE_VERSION])])dnl
159    
160     _AM_IF_OPTION([no-define],,
161     [AC_DEFINE_UNQUOTED(PACKAGE, "$PACKAGE", [Name of package])
162     AC_DEFINE_UNQUOTED(VERSION, "$VERSION", [Version number of package])])dnl
163    
164     # Some tools Automake needs.
165     AC_REQUIRE([AM_SANITY_CHECK])dnl
166     AC_REQUIRE([AC_ARG_PROGRAM])dnl
167     AM_MISSING_PROG(ACLOCAL, aclocal-${am__api_version})
168     AM_MISSING_PROG(AUTOCONF, autoconf)
169     AM_MISSING_PROG(AUTOMAKE, automake-${am__api_version})
170     AM_MISSING_PROG(AUTOHEADER, autoheader)
171     AM_MISSING_PROG(MAKEINFO, makeinfo)
172     AM_MISSING_PROG(AMTAR, tar)
173     AM_PROG_INSTALL_SH
174     AM_PROG_INSTALL_STRIP
175     # We need awk for the "check" target. The system "awk" is bad on
176     # some platforms.
177     AC_REQUIRE([AC_PROG_AWK])dnl
178     AC_REQUIRE([AC_PROG_MAKE_SET])dnl
179    
180     _AM_IF_OPTION([no-dependencies],,
181     [AC_PROVIDE_IFELSE([AC_PROG_][CC],
182     [_AM_DEPENDENCIES(CC)],
183     [define([AC_PROG_][CC],
184     defn([AC_PROG_][CC])[_AM_DEPENDENCIES(CC)])])dnl
185     AC_PROVIDE_IFELSE([AC_PROG_][CXX],
186     [_AM_DEPENDENCIES(CXX)],
187     [define([AC_PROG_][CXX],
188     defn([AC_PROG_][CXX])[_AM_DEPENDENCIES(CXX)])])dnl
189     ])
190     ])
191    
192     # Copyright 2002 Free Software Foundation, Inc.
193    
194     # This program is free software; you can redistribute it and/or modify
195     # it under the terms of the GNU General Public License as published by
196     # the Free Software Foundation; either version 2, or (at your option)
197     # any later version.
198    
199     # This program is distributed in the hope that it will be useful,
200     # but WITHOUT ANY WARRANTY; without even the implied warranty of
201     # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
202     # GNU General Public License for more details.
203    
204     # You should have received a copy of the GNU General Public License
205     # along with this program; if not, write to the Free Software
206     # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
207    
208     # AM_AUTOMAKE_VERSION(VERSION)
209     # ----------------------------
210     # Automake X.Y traces this macro to ensure aclocal.m4 has been
211     # generated from the m4 files accompanying Automake X.Y.
212     AC_DEFUN([AM_AUTOMAKE_VERSION],[am__api_version="1.6"])
213    
214     # AM_SET_CURRENT_AUTOMAKE_VERSION
215     # -------------------------------
216     # Call AM_AUTOMAKE_VERSION so it can be traced.
217     # This function is AC_REQUIREd by AC_INIT_AUTOMAKE.
218     AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION],
219     [AM_AUTOMAKE_VERSION([1.6.3])])
220    
221     # Helper functions for option handling. -*- Autoconf -*-
222    
223     # Copyright 2001, 2002 Free Software Foundation, Inc.
224    
225     # This program is free software; you can redistribute it and/or modify
226     # it under the terms of the GNU General Public License as published by
227     # the Free Software Foundation; either version 2, or (at your option)
228     # any later version.
229    
230     # This program is distributed in the hope that it will be useful,
231     # but WITHOUT ANY WARRANTY; without even the implied warranty of
232     # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
233     # GNU General Public License for more details.
234    
235     # You should have received a copy of the GNU General Public License
236     # along with this program; if not, write to the Free Software
237     # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
238     # 02111-1307, USA.
239    
240     # serial 2
241    
242     # _AM_MANGLE_OPTION(NAME)
243     # -----------------------
244     AC_DEFUN([_AM_MANGLE_OPTION],
245     [[_AM_OPTION_]m4_bpatsubst($1, [[^a-zA-Z0-9_]], [_])])
246    
247     # _AM_SET_OPTION(NAME)
248     # ------------------------------
249     # Set option NAME. Presently that only means defining a flag for this option.
250     AC_DEFUN([_AM_SET_OPTION],
251     [m4_define(_AM_MANGLE_OPTION([$1]), 1)])
252    
253     # _AM_SET_OPTIONS(OPTIONS)
254     # ----------------------------------
255     # OPTIONS is a space-separated list of Automake options.
256     AC_DEFUN([_AM_SET_OPTIONS],
257     [AC_FOREACH([_AM_Option], [$1], [_AM_SET_OPTION(_AM_Option)])])
258    
259     # _AM_IF_OPTION(OPTION, IF-SET, [IF-NOT-SET])
260     # -------------------------------------------
261     # Execute IF-SET if OPTION is set, IF-NOT-SET otherwise.
262     AC_DEFUN([_AM_IF_OPTION],
263     [m4_ifset(_AM_MANGLE_OPTION([$1]), [$2], [$3])])
264    
265     #
266     # Check to make sure that the build environment is sane.
267     #
268    
269     # Copyright 1996, 1997, 2000, 2001 Free Software Foundation, Inc.
270    
271     # This program is free software; you can redistribute it and/or modify
272     # it under the terms of the GNU General Public License as published by
273     # the Free Software Foundation; either version 2, or (at your option)
274     # any later version.
275    
276     # This program is distributed in the hope that it will be useful,
277     # but WITHOUT ANY WARRANTY; without even the implied warranty of
278     # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
279     # GNU General Public License for more details.
280    
281     # You should have received a copy of the GNU General Public License
282     # along with this program; if not, write to the Free Software
283     # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
284     # 02111-1307, USA.
285    
286     # serial 3
287    
288     # AM_SANITY_CHECK
289     # ---------------
290     AC_DEFUN([AM_SANITY_CHECK],
291     [AC_MSG_CHECKING([whether build environment is sane])
292     # Just in case
293     sleep 1
294     echo timestamp > conftest.file
295     # Do `set' in a subshell so we don't clobber the current shell's
296     # arguments. Must try -L first in case configure is actually a
297     # symlink; some systems play weird games with the mod time of symlinks
298     # (eg FreeBSD returns the mod time of the symlink's containing
299     # directory).
300     if (
301     set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
302     if test "$[*]" = "X"; then
303     # -L didn't work.
304     set X `ls -t $srcdir/configure conftest.file`
305     fi
306     rm -f conftest.file
307     if test "$[*]" != "X $srcdir/configure conftest.file" \
308     && test "$[*]" != "X conftest.file $srcdir/configure"; then
309    
310     # If neither matched, then we have a broken ls. This can happen
311     # if, for instance, CONFIG_SHELL is bash and it inherits a
312     # broken ls alias from the environment. This has actually
313     # happened. Such a system could not be considered "sane".
314     AC_MSG_ERROR([ls -t appears to fail. Make sure there is not a broken
315     alias in your environment])
316     fi
317    
318     test "$[2]" = conftest.file
319     )
320     then
321     # Ok.
322     :
323     else
324     AC_MSG_ERROR([newly created file is older than distributed files!
325     Check your system clock])
326     fi
327     AC_MSG_RESULT(yes)])
328    
329     # -*- Autoconf -*-
330    
331    
332     # Copyright 1997, 1999, 2000, 2001 Free Software Foundation, Inc.
333    
334     # This program is free software; you can redistribute it and/or modify
335     # it under the terms of the GNU General Public License as published by
336     # the Free Software Foundation; either version 2, or (at your option)
337     # any later version.
338    
339     # This program is distributed in the hope that it will be useful,
340     # but WITHOUT ANY WARRANTY; without even the implied warranty of
341     # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
342     # GNU General Public License for more details.
343    
344     # You should have received a copy of the GNU General Public License
345     # along with this program; if not, write to the Free Software
346     # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
347     # 02111-1307, USA.
348    
349     # serial 3
350    
351     # AM_MISSING_PROG(NAME, PROGRAM)
352     # ------------------------------
353     AC_DEFUN([AM_MISSING_PROG],
354     [AC_REQUIRE([AM_MISSING_HAS_RUN])
355     $1=${$1-"${am_missing_run}$2"}
356     AC_SUBST($1)])
357    
358    
359     # AM_MISSING_HAS_RUN
360     # ------------------
361     # Define MISSING if not defined so far and test if it supports --run.
362     # If it does, set am_missing_run to use it, otherwise, to nothing.
363     AC_DEFUN([AM_MISSING_HAS_RUN],
364     [AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
365     test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
366     # Use eval to expand $SHELL
367     if eval "$MISSING --run true"; then
368     am_missing_run="$MISSING --run "
369     else
370     am_missing_run=
371     AC_MSG_WARN([`missing' script is too old or missing])
372     fi
373     ])
374    
375     # AM_AUX_DIR_EXPAND
376    
377     # Copyright 2001 Free Software Foundation, Inc.
378    
379     # This program is free software; you can redistribute it and/or modify
380     # it under the terms of the GNU General Public License as published by
381     # the Free Software Foundation; either version 2, or (at your option)
382     # any later version.
383    
384     # This program is distributed in the hope that it will be useful,
385     # but WITHOUT ANY WARRANTY; without even the implied warranty of
386     # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
387     # GNU General Public License for more details.
388    
389     # You should have received a copy of the GNU General Public License
390     # along with this program; if not, write to the Free Software
391     # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
392     # 02111-1307, USA.
393    
394     # For projects using AC_CONFIG_AUX_DIR([foo]), Autoconf sets
395     # $ac_aux_dir to `$srcdir/foo'. In other projects, it is set to
396     # `$srcdir', `$srcdir/..', or `$srcdir/../..'.
397     #
398     # Of course, Automake must honor this variable whenever it calls a
399     # tool from the auxiliary directory. The problem is that $srcdir (and
400     # therefore $ac_aux_dir as well) can be either absolute or relative,
401     # depending on how configure is run. This is pretty annoying, since
402     # it makes $ac_aux_dir quite unusable in subdirectories: in the top
403     # source directory, any form will work fine, but in subdirectories a
404     # relative path needs to be adjusted first.
405     #
406     # $ac_aux_dir/missing
407     # fails when called from a subdirectory if $ac_aux_dir is relative
408     # $top_srcdir/$ac_aux_dir/missing
409     # fails if $ac_aux_dir is absolute,
410     # fails when called from a subdirectory in a VPATH build with
411     # a relative $ac_aux_dir
412     #
413     # The reason of the latter failure is that $top_srcdir and $ac_aux_dir
414     # are both prefixed by $srcdir. In an in-source build this is usually
415     # harmless because $srcdir is `.', but things will broke when you
416     # start a VPATH build or use an absolute $srcdir.
417     #
418     # So we could use something similar to $top_srcdir/$ac_aux_dir/missing,
419     # iff we strip the leading $srcdir from $ac_aux_dir. That would be:
420     # am_aux_dir='\$(top_srcdir)/'`expr "$ac_aux_dir" : "$srcdir//*\(.*\)"`
421     # and then we would define $MISSING as
422     # MISSING="\${SHELL} $am_aux_dir/missing"
423     # This will work as long as MISSING is not called from configure, because
424     # unfortunately $(top_srcdir) has no meaning in configure.
425     # However there are other variables, like CC, which are often used in
426     # configure, and could therefore not use this "fixed" $ac_aux_dir.
427     #
428     # Another solution, used here, is to always expand $ac_aux_dir to an
429     # absolute PATH. The drawback is that using absolute paths prevent a
430     # configured tree to be moved without reconfiguration.
431    
432     # Rely on autoconf to set up CDPATH properly.
433     AC_PREREQ([2.50])
434    
435     AC_DEFUN([AM_AUX_DIR_EXPAND], [
436     # expand $ac_aux_dir to an absolute path
437     am_aux_dir=`cd $ac_aux_dir && pwd`
438     ])
439    
440     # AM_PROG_INSTALL_SH
441     # ------------------
442     # Define $install_sh.
443    
444     # Copyright 2001 Free Software Foundation, Inc.
445    
446     # This program is free software; you can redistribute it and/or modify
447     # it under the terms of the GNU General Public License as published by
448     # the Free Software Foundation; either version 2, or (at your option)
449     # any later version.
450    
451     # This program is distributed in the hope that it will be useful,
452     # but WITHOUT ANY WARRANTY; without even the implied warranty of
453     # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
454     # GNU General Public License for more details.
455    
456     # You should have received a copy of the GNU General Public License
457     # along with this program; if not, write to the Free Software
458     # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
459     # 02111-1307, USA.
460    
461     AC_DEFUN([AM_PROG_INSTALL_SH],
462     [AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
463     install_sh=${install_sh-"$am_aux_dir/install-sh"}
464     AC_SUBST(install_sh)])
465    
466     # AM_PROG_INSTALL_STRIP
467    
468     # Copyright 2001 Free Software Foundation, Inc.
469    
470     # This program is free software; you can redistribute it and/or modify
471     # it under the terms of the GNU General Public License as published by
472     # the Free Software Foundation; either version 2, or (at your option)
473     # any later version.
474    
475     # This program is distributed in the hope that it will be useful,
476     # but WITHOUT ANY WARRANTY; without even the implied warranty of
477     # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
478     # GNU General Public License for more details.
479    
480     # You should have received a copy of the GNU General Public License
481     # along with this program; if not, write to the Free Software
482     # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
483     # 02111-1307, USA.
484    
485     # One issue with vendor `install' (even GNU) is that you can't
486     # specify the program used to strip binaries. This is especially
487     # annoying in cross-compiling environments, where the build's strip
488     # is unlikely to handle the host's binaries.
489     # Fortunately install-sh will honor a STRIPPROG variable, so we
490     # always use install-sh in `make install-strip', and initialize
491     # STRIPPROG with the value of the STRIP variable (set by the user).
492     AC_DEFUN([AM_PROG_INSTALL_STRIP],
493     [AC_REQUIRE([AM_PROG_INSTALL_SH])dnl
494     # Installed binaries are usually stripped using `strip' when the user
495     # run `make install-strip'. However `strip' might not be the right
496     # tool to use in cross-compilation environments, therefore Automake
497     # will honor the `STRIP' environment variable to overrule this program.
498     dnl Don't test for $cross_compiling = yes, because it might be `maybe'.
499     if test "$cross_compiling" != no; then
500     AC_CHECK_TOOL([STRIP], [strip], :)
501     fi
502     INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
503     AC_SUBST([INSTALL_STRIP_PROGRAM])])
504    
505     # serial 4 -*- Autoconf -*-
506    
507     # Copyright 1999, 2000, 2001 Free Software Foundation, Inc.
508    
509     # This program is free software; you can redistribute it and/or modify
510     # it under the terms of the GNU General Public License as published by
511     # the Free Software Foundation; either version 2, or (at your option)
512     # any later version.
513    
514     # This program is distributed in the hope that it will be useful,
515     # but WITHOUT ANY WARRANTY; without even the implied warranty of
516     # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
517     # GNU General Public License for more details.
518    
519     # You should have received a copy of the GNU General Public License
520     # along with this program; if not, write to the Free Software
521     # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
522     # 02111-1307, USA.
523    
524    
525     # There are a few dirty hacks below to avoid letting `AC_PROG_CC' be
526     # written in clear, in which case automake, when reading aclocal.m4,
527     # will think it sees a *use*, and therefore will trigger all it's
528     # C support machinery. Also note that it means that autoscan, seeing
529     # CC etc. in the Makefile, will ask for an AC_PROG_CC use...
530    
531    
532    
533     # _AM_DEPENDENCIES(NAME)
534     # ----------------------
535     # See how the compiler implements dependency checking.
536     # NAME is "CC", "CXX", "GCJ", or "OBJC".
537     # We try a few techniques and use that to set a single cache variable.
538     #
539     # We don't AC_REQUIRE the corresponding AC_PROG_CC since the latter was
540     # modified to invoke _AM_DEPENDENCIES(CC); we would have a circular
541     # dependency, and given that the user is not expected to run this macro,
542     # just rely on AC_PROG_CC.
543     AC_DEFUN([_AM_DEPENDENCIES],
544     [AC_REQUIRE([AM_SET_DEPDIR])dnl
545     AC_REQUIRE([AM_OUTPUT_DEPENDENCY_COMMANDS])dnl
546     AC_REQUIRE([AM_MAKE_INCLUDE])dnl
547     AC_REQUIRE([AM_DEP_TRACK])dnl
548    
549     ifelse([$1], CC, [depcc="$CC" am_compiler_list=],
550     [$1], CXX, [depcc="$CXX" am_compiler_list=],
551     [$1], OBJC, [depcc="$OBJC" am_compiler_list='gcc3 gcc'],
552     [$1], GCJ, [depcc="$GCJ" am_compiler_list='gcc3 gcc'],
553     [depcc="$$1" am_compiler_list=])
554    
555     AC_CACHE_CHECK([dependency style of $depcc],
556     [am_cv_$1_dependencies_compiler_type],
557     [if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
558     # We make a subdir and do the tests there. Otherwise we can end up
559     # making bogus files that we don't know about and never remove. For
560     # instance it was reported that on HP-UX the gcc test will end up
561     # making a dummy file named `D' -- because `-MD' means `put the output
562     # in D'.
563     mkdir conftest.dir
564     # Copy depcomp to subdir because otherwise we won't find it if we're
565     # using a relative directory.
566     cp "$am_depcomp" conftest.dir
567     cd conftest.dir
568    
569     am_cv_$1_dependencies_compiler_type=none
570     if test "$am_compiler_list" = ""; then
571     am_compiler_list=`sed -n ['s/^#*\([a-zA-Z0-9]*\))$/\1/p'] < ./depcomp`
572     fi
573     for depmode in $am_compiler_list; do
574     # We need to recreate these files for each test, as the compiler may
575     # overwrite some of them when testing with obscure command lines.
576     # This happens at least with the AIX C compiler.
577     echo '#include "conftest.h"' > conftest.c
578     echo 'int i;' > conftest.h
579     echo "${am__include} ${am__quote}conftest.Po${am__quote}" > confmf
580    
581     case $depmode in
582     nosideeffect)
583     # after this tag, mechanisms are not by side-effect, so they'll
584     # only be used when explicitly requested
585     if test "x$enable_dependency_tracking" = xyes; then
586     continue
587     else
588     break
589     fi
590     ;;
591     none) break ;;
592     esac
593     # We check with `-c' and `-o' for the sake of the "dashmstdout"
594     # mode. It turns out that the SunPro C++ compiler does not properly
595     # handle `-M -o', and we need to detect this.
596     if depmode=$depmode \
597     source=conftest.c object=conftest.o \
598     depfile=conftest.Po tmpdepfile=conftest.TPo \
599     $SHELL ./depcomp $depcc -c conftest.c -o conftest.o >/dev/null 2>&1 &&
600     grep conftest.h conftest.Po > /dev/null 2>&1 &&
601     ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
602     am_cv_$1_dependencies_compiler_type=$depmode
603     break
604     fi
605     done
606    
607     cd ..
608     rm -rf conftest.dir
609     else
610     am_cv_$1_dependencies_compiler_type=none
611     fi
612     ])
613     AC_SUBST([$1DEPMODE], [depmode=$am_cv_$1_dependencies_compiler_type])
614     ])
615    
616    
617     # AM_SET_DEPDIR
618     # -------------
619     # Choose a directory name for dependency files.
620     # This macro is AC_REQUIREd in _AM_DEPENDENCIES
621     AC_DEFUN([AM_SET_DEPDIR],
622     [rm -f .deps 2>/dev/null
623     mkdir .deps 2>/dev/null
624     if test -d .deps; then
625     DEPDIR=.deps
626     else
627     # MS-DOS does not allow filenames that begin with a dot.
628     DEPDIR=_deps
629     fi
630     rmdir .deps 2>/dev/null
631     AC_SUBST([DEPDIR])
632     ])
633    
634    
635     # AM_DEP_TRACK
636     # ------------
637     AC_DEFUN([AM_DEP_TRACK],
638     [AC_ARG_ENABLE(dependency-tracking,
639     [ --disable-dependency-tracking Speeds up one-time builds
640     --enable-dependency-tracking Do not reject slow dependency extractors])
641     if test "x$enable_dependency_tracking" != xno; then
642     am_depcomp="$ac_aux_dir/depcomp"
643     AMDEPBACKSLASH='\'
644     fi
645     AM_CONDITIONAL([AMDEP], [test "x$enable_dependency_tracking" != xno])
646     AC_SUBST([AMDEPBACKSLASH])
647     ])
648    
649     # Generate code to set up dependency tracking. -*- Autoconf -*-
650    
651     # Copyright 1999, 2000, 2001, 2002 Free Software Foundation, Inc.
652    
653     # This program is free software; you can redistribute it and/or modify
654     # it under the terms of the GNU General Public License as published by
655     # the Free Software Foundation; either version 2, or (at your option)
656     # any later version.
657    
658     # This program is distributed in the hope that it will be useful,
659     # but WITHOUT ANY WARRANTY; without even the implied warranty of
660     # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
661     # GNU General Public License for more details.
662    
663     # You should have received a copy of the GNU General Public License
664     # along with this program; if not, write to the Free Software
665     # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
666     # 02111-1307, USA.
667    
668     #serial 2
669    
670     # _AM_OUTPUT_DEPENDENCY_COMMANDS
671     # ------------------------------
672     AC_DEFUN([_AM_OUTPUT_DEPENDENCY_COMMANDS],
673     [for mf in $CONFIG_FILES; do
674     # Strip MF so we end up with the name of the file.
675     mf=`echo "$mf" | sed -e 's/:.*$//'`
676     # Check whether this is an Automake generated Makefile or not.
677     # We used to match only the files named `Makefile.in', but
678     # some people rename them; so instead we look at the file content.
679     # Grep'ing the first line is not enough: some people post-process
680     # each Makefile.in and add a new line on top of each file to say so.
681     # So let's grep whole file.
682     if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
683     dirpart=`AS_DIRNAME("$mf")`
684     else
685     continue
686     fi
687     grep '^DEP_FILES *= *[[^ @%:@]]' < "$mf" > /dev/null || continue
688     # Extract the definition of DEP_FILES from the Makefile without
689     # running `make'.
690     DEPDIR=`sed -n -e '/^DEPDIR = / s///p' < "$mf"`
691     test -z "$DEPDIR" && continue
692     # When using ansi2knr, U may be empty or an underscore; expand it
693     U=`sed -n -e '/^U = / s///p' < "$mf"`
694     test -d "$dirpart/$DEPDIR" || mkdir "$dirpart/$DEPDIR"
695     # We invoke sed twice because it is the simplest approach to
696     # changing $(DEPDIR) to its actual value in the expansion.
697     for file in `sed -n -e '
698     /^DEP_FILES = .*\\\\$/ {
699     s/^DEP_FILES = //
700     :loop
701     s/\\\\$//
702     p
703     n
704     /\\\\$/ b loop
705     p
706     }
707     /^DEP_FILES = / s/^DEP_FILES = //p' < "$mf" | \
708     sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
709     # Make sure the directory exists.
710     test -f "$dirpart/$file" && continue
711     fdir=`AS_DIRNAME(["$file"])`
712     AS_MKDIR_P([$dirpart/$fdir])
713     # echo "creating $dirpart/$file"
714     echo '# dummy' > "$dirpart/$file"
715     done
716     done
717     ])# _AM_OUTPUT_DEPENDENCY_COMMANDS
718    
719    
720     # AM_OUTPUT_DEPENDENCY_COMMANDS
721     # -----------------------------
722     # This macro should only be invoked once -- use via AC_REQUIRE.
723     #
724     # This code is only required when automatic dependency tracking
725     # is enabled. FIXME. This creates each `.P' file that we will
726     # need in order to bootstrap the dependency handling code.
727     AC_DEFUN([AM_OUTPUT_DEPENDENCY_COMMANDS],
728     [AC_CONFIG_COMMANDS([depfiles],
729     [test x"$AMDEP_TRUE" != x"" || _AM_OUTPUT_DEPENDENCY_COMMANDS],
730     [AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"])
731     ])
732    
733     # Copyright 2001 Free Software Foundation, Inc. -*- Autoconf -*-
734    
735     # This program is free software; you can redistribute it and/or modify
736     # it under the terms of the GNU General Public License as published by
737     # the Free Software Foundation; either version 2, or (at your option)
738     # any later version.
739    
740     # This program is distributed in the hope that it will be useful,
741     # but WITHOUT ANY WARRANTY; without even the implied warranty of
742     # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
743     # GNU General Public License for more details.
744    
745     # You should have received a copy of the GNU General Public License
746     # along with this program; if not, write to the Free Software
747     # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
748     # 02111-1307, USA.
749    
750     # serial 2
751    
752     # AM_MAKE_INCLUDE()
753     # -----------------
754     # Check to see how make treats includes.
755     AC_DEFUN([AM_MAKE_INCLUDE],
756     [am_make=${MAKE-make}
757     cat > confinc << 'END'
758     doit:
759     @echo done
760     END
761     # If we don't find an include directive, just comment out the code.
762     AC_MSG_CHECKING([for style of include used by $am_make])
763     am__include="#"
764     am__quote=
765     _am_result=none
766     # First try GNU make style include.
767     echo "include confinc" > confmf
768     # We grep out `Entering directory' and `Leaving directory'
769     # messages which can occur if `w' ends up in MAKEFLAGS.
770     # In particular we don't look at `^make:' because GNU make might
771     # be invoked under some other name (usually "gmake"), in which
772     # case it prints its new name instead of `make'.
773     if test "`$am_make -s -f confmf 2> /dev/null | fgrep -v 'ing directory'`" = "done"; then
774     am__include=include
775     am__quote=
776     _am_result=GNU
777     fi
778     # Now try BSD make style include.
779     if test "$am__include" = "#"; then
780     echo '.include "confinc"' > confmf
781     if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
782     am__include=.include
783     am__quote="\""
784     _am_result=BSD
785     fi
786     fi
787     AC_SUBST(am__include)
788     AC_SUBST(am__quote)
789     AC_MSG_RESULT($_am_result)
790     rm -f confinc confmf
791     ])
792    
793     # AM_CONDITIONAL -*- Autoconf -*-
794    
795     # Copyright 1997, 2000, 2001 Free Software Foundation, Inc.
796    
797     # This program is free software; you can redistribute it and/or modify
798     # it under the terms of the GNU General Public License as published by
799     # the Free Software Foundation; either version 2, or (at your option)
800     # any later version.
801    
802     # This program is distributed in the hope that it will be useful,
803     # but WITHOUT ANY WARRANTY; without even the implied warranty of
804     # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
805     # GNU General Public License for more details.
806    
807     # You should have received a copy of the GNU General Public License
808     # along with this program; if not, write to the Free Software
809     # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
810     # 02111-1307, USA.
811    
812     # serial 5
813    
814     AC_PREREQ(2.52)
815    
816     # AM_CONDITIONAL(NAME, SHELL-CONDITION)
817     # -------------------------------------
818     # Define a conditional.
819     AC_DEFUN([AM_CONDITIONAL],
820     [ifelse([$1], [TRUE], [AC_FATAL([$0: invalid condition: $1])],
821     [$1], [FALSE], [AC_FATAL([$0: invalid condition: $1])])dnl
822     AC_SUBST([$1_TRUE])
823     AC_SUBST([$1_FALSE])
824     if $2; then
825     $1_TRUE=
826     $1_FALSE='#'
827     else
828     $1_TRUE='#'
829     $1_FALSE=
830     fi
831     AC_CONFIG_COMMANDS_PRE(
832     [if test -z "${$1_TRUE}" && test -z "${$1_FALSE}"; then
833     AC_MSG_ERROR([conditional \"$1\" was never defined.
834     Usually this means the macro was only invoked conditionally.])
835     fi])])
836    
837     # libtool.m4 - Configure libtool for the host system. -*-Autoconf-*-
838    
839     # serial 47 AC_PROG_LIBTOOL
840     # Debian $Rev: 100 $
841    
842    
843     # AC_PROVIDE_IFELSE(MACRO-NAME, IF-PROVIDED, IF-NOT-PROVIDED)
844     # -----------------------------------------------------------
845     # If this macro is not defined by Autoconf, define it here.
846     m4_ifdef([AC_PROVIDE_IFELSE],
847     [],
848     [m4_define([AC_PROVIDE_IFELSE],
849     [m4_ifdef([AC_PROVIDE_$1],
850     [$2], [$3])])])
851    
852    
853     # AC_PROG_LIBTOOL
854     # ---------------
855     AC_DEFUN([AC_PROG_LIBTOOL],
856     [AC_REQUIRE([_AC_PROG_LIBTOOL])dnl
857     dnl If AC_PROG_CXX has already been expanded, run AC_LIBTOOL_CXX
858     dnl immediately, otherwise, hook it in at the end of AC_PROG_CXX.
859     AC_PROVIDE_IFELSE([AC_PROG_CXX],
860     [AC_LIBTOOL_CXX],
861     [define([AC_PROG_CXX], defn([AC_PROG_CXX])[AC_LIBTOOL_CXX
862     ])])
863     dnl And a similar setup for Fortran 77 support
864     AC_PROVIDE_IFELSE([AC_PROG_F77],
865     [AC_LIBTOOL_F77],
866     [define([AC_PROG_F77], defn([AC_PROG_F77])[AC_LIBTOOL_F77
867     ])])
868    
869     dnl Quote A][M_PROG_GCJ so that aclocal doesn't bring it in needlessly.
870     dnl If either AC_PROG_GCJ or A][M_PROG_GCJ have already been expanded, run
871     dnl AC_LIBTOOL_GCJ immediately, otherwise, hook it in at the end of both.
872     AC_PROVIDE_IFELSE([AC_PROG_GCJ],
873     [AC_LIBTOOL_GCJ],
874     [AC_PROVIDE_IFELSE([A][M_PROG_GCJ],
875     [AC_LIBTOOL_GCJ],
876     [AC_PROVIDE_IFELSE([LT_AC_PROG_GCJ],
877     [AC_LIBTOOL_GCJ],
878     [ifdef([AC_PROG_GCJ],
879     [define([AC_PROG_GCJ], defn([AC_PROG_GCJ])[AC_LIBTOOL_GCJ])])
880     ifdef([A][M_PROG_GCJ],
881     [define([A][M_PROG_GCJ], defn([A][M_PROG_GCJ])[AC_LIBTOOL_GCJ])])
882     ifdef([LT_AC_PROG_GCJ],
883     [define([LT_AC_PROG_GCJ],
884     defn([LT_AC_PROG_GCJ])[AC_LIBTOOL_GCJ])])])])
885     ])])# AC_PROG_LIBTOOL
886    
887    
888     # _AC_PROG_LIBTOOL
889     # ----------------
890     AC_DEFUN([_AC_PROG_LIBTOOL],
891     [AC_REQUIRE([AC_LIBTOOL_SETUP])dnl
892     AC_BEFORE([$0],[AC_LIBTOOL_CXX])dnl
893     AC_BEFORE([$0],[AC_LIBTOOL_F77])dnl
894     AC_BEFORE([$0],[AC_LIBTOOL_GCJ])dnl
895    
896     # This can be used to rebuild libtool when needed
897     LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
898    
899     # Always use our own libtool.
900     LIBTOOL='$(SHELL) $(top_builddir)/libtool'
901     AC_SUBST(LIBTOOL)dnl
902    
903     # Prevent multiple expansion
904     define([AC_PROG_LIBTOOL], [])
905     ])# _AC_PROG_LIBTOOL
906    
907    
908     # AC_LIBTOOL_SETUP
909     # ----------------
910     AC_DEFUN([AC_LIBTOOL_SETUP],
911     [AC_PREREQ(2.50)dnl
912     AC_REQUIRE([AC_ENABLE_SHARED])dnl
913     AC_REQUIRE([AC_ENABLE_STATIC])dnl
914     AC_REQUIRE([AC_ENABLE_FAST_INSTALL])dnl
915     AC_REQUIRE([AC_CANONICAL_HOST])dnl
916     AC_REQUIRE([AC_CANONICAL_BUILD])dnl
917     AC_REQUIRE([AC_PROG_CC])dnl
918     AC_REQUIRE([AC_PROG_LD])dnl
919     AC_REQUIRE([AC_PROG_LD_RELOAD_FLAG])dnl
920     AC_REQUIRE([AC_PROG_NM])dnl
921    
922     AC_REQUIRE([AC_PROG_LN_S])dnl
923     AC_REQUIRE([AC_DEPLIBS_CHECK_METHOD])dnl
924     # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
925     AC_REQUIRE([AC_OBJEXT])dnl
926     AC_REQUIRE([AC_EXEEXT])dnl
927     dnl
928    
929     AC_LIBTOOL_SYS_MAX_CMD_LEN
930     AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE
931     AC_LIBTOOL_OBJDIR
932    
933     AC_REQUIRE([_LT_AC_SYS_COMPILER])dnl
934     _LT_AC_PROG_ECHO_BACKSLASH
935    
936     case $host_os in
937     aix3*)
938     # AIX sometimes has problems with the GCC collect2 program. For some
939     # reason, if we set the COLLECT_NAMES environment variable, the problems
940     # vanish in a puff of smoke.
941     if test "X${COLLECT_NAMES+set}" != Xset; then
942     COLLECT_NAMES=
943     export COLLECT_NAMES
944     fi
945     ;;
946     esac
947    
948     # Sed substitution that helps us do robust quoting. It backslashifies
949     # metacharacters that are still active within double-quoted strings.
950     Xsed='sed -e s/^X//'
951     [sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g']
952    
953     # Same as above, but do not quote variable references.
954     [double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g']
955    
956     # Sed substitution to delay expansion of an escaped shell variable in a
957     # double_quote_subst'ed string.
958     delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
959    
960     # Sed substitution to avoid accidental globbing in evaled expressions
961     no_glob_subst='s/\*/\\\*/g'
962    
963     # Constants:
964     rm="rm -f"
965    
966     # Global variables:
967     default_ofile=libtool
968     can_build_shared=yes
969    
970     # All known linkers require a `.a' archive for static linking (except M$VC,
971     # which needs '.lib').
972     libext=a
973     ltmain="$ac_aux_dir/ltmain.sh"
974     ofile="$default_ofile"
975     with_gnu_ld="$lt_cv_prog_gnu_ld"
976    
977     AC_CHECK_TOOL(AR, ar, false)
978     AC_CHECK_TOOL(RANLIB, ranlib, :)
979     AC_CHECK_TOOL(STRIP, strip, :)
980    
981     old_CC="$CC"
982     old_CFLAGS="$CFLAGS"
983    
984     # Set sane defaults for various variables
985     test -z "$AR" && AR=ar
986     test -z "$AR_FLAGS" && AR_FLAGS=cru
987     test -z "$AS" && AS=as
988     test -z "$CC" && CC=cc
989     test -z "$LTCC" && LTCC=$CC
990     test -z "$DLLTOOL" && DLLTOOL=dlltool
991     test -z "$LD" && LD=ld
992     test -z "$LN_S" && LN_S="ln -s"
993     test -z "$MAGIC_CMD" && MAGIC_CMD=file
994     test -z "$NM" && NM=nm
995     test -z "$SED" && SED=sed
996     test -z "$OBJDUMP" && OBJDUMP=objdump
997     test -z "$RANLIB" && RANLIB=:
998     test -z "$STRIP" && STRIP=:
999     test -z "$ac_objext" && ac_objext=o
1000    
1001     # Determine commands to create old-style static archives.
1002     old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
1003     old_postinstall_cmds='chmod 644 $oldlib'
1004     old_postuninstall_cmds=
1005    
1006     if test -n "$RANLIB"; then
1007     case $host_os in
1008     openbsd*)
1009     old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
1010     ;;
1011     *)
1012     old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
1013     ;;
1014     esac
1015     old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
1016     fi
1017    
1018     # Only perform the check for file, if the check method requires it
1019     case $deplibs_check_method in
1020     file_magic*)
1021     if test "$file_magic_cmd" = '$MAGIC_CMD'; then
1022     AC_PATH_MAGIC
1023     fi
1024     ;;
1025     esac
1026    
1027     AC_PROVIDE_IFELSE([AC_LIBTOOL_DLOPEN], enable_dlopen=yes, enable_dlopen=no)
1028     AC_PROVIDE_IFELSE([AC_LIBTOOL_WIN32_DLL],
1029     enable_win32_dll=yes, enable_win32_dll=no)
1030    
1031     AC_ARG_ENABLE([libtool-lock],
1032     [AC_HELP_STRING([--disable-libtool-lock],
1033     [avoid locking (might break parallel builds)])])
1034     test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
1035    
1036     AC_ARG_WITH([pic],
1037     [AC_HELP_STRING([--with-pic],
1038     [try to use only PIC/non-PIC objects @<:@default=use both@:>@])],
1039     [pic_mode="$withval"],
1040     [pic_mode=default])
1041     test -z "$pic_mode" && pic_mode=default
1042    
1043     # Use C for the default configuration in the libtool script
1044     tagname=
1045     AC_LIBTOOL_LANG_C_CONFIG
1046     _LT_AC_TAGCONFIG
1047     ])# AC_LIBTOOL_SETUP
1048    
1049    
1050     # _LT_AC_SYS_COMPILER
1051     # -------------------
1052     AC_DEFUN([_LT_AC_SYS_COMPILER],
1053     [AC_REQUIRE([AC_PROG_CC])dnl
1054    
1055     # If no C compiler was specified, use CC.
1056     LTCC=${LTCC-"$CC"}
1057    
1058     # Allow CC to be a program name with arguments.
1059     compiler=$CC
1060     ])# _LT_AC_SYS_COMPILER
1061    
1062    
1063     # _LT_AC_SYS_LIBPATH_AIX
1064     # ----------------------
1065     # Links a minimal program and checks the executable
1066     # for the system default hardcoded library path. In most cases,
1067     # this is /usr/lib:/lib, but when the MPI compilers are used
1068     # the location of the communication and MPI libs are included too.
1069     # If we don't find anything, use the default library path according
1070     # to the aix ld manual.
1071     AC_DEFUN([_LT_AC_SYS_LIBPATH_AIX],
1072     [AC_LINK_IFELSE(AC_LANG_PROGRAM,[
1073     aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
1074     }'`
1075     # Check for a 64-bit object if we didn't find anything.
1076     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; }
1077     }'`; fi],[])
1078     if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
1079     ])# _LT_AC_SYS_LIBPATH_AIX
1080    
1081    
1082     # _LT_AC_SHELL_INIT(ARG)
1083     # ----------------------
1084     AC_DEFUN([_LT_AC_SHELL_INIT],
1085     [ifdef([AC_DIVERSION_NOTICE],
1086     [AC_DIVERT_PUSH(AC_DIVERSION_NOTICE)],
1087     [AC_DIVERT_PUSH(NOTICE)])
1088     $1
1089     AC_DIVERT_POP
1090     ])# _LT_AC_SHELL_INIT
1091    
1092    
1093     # _LT_AC_PROG_ECHO_BACKSLASH
1094     # --------------------------
1095     # Add some code to the start of the generated configure script which
1096     # will find an echo command which doesn't interpret backslashes.
1097     AC_DEFUN([_LT_AC_PROG_ECHO_BACKSLASH],
1098     [_LT_AC_SHELL_INIT([
1099     # Check that we are running under the correct shell.
1100     SHELL=${CONFIG_SHELL-/bin/sh}
1101    
1102     case X$ECHO in
1103     X*--fallback-echo)
1104     # Remove one level of quotation (which was required for Make).
1105     ECHO=`echo "$ECHO" | sed 's,\\\\\[$]\\[$]0,'[$]0','`
1106     ;;
1107     esac
1108    
1109     echo=${ECHO-echo}
1110     if test "X[$]1" = X--no-reexec; then
1111     # Discard the --no-reexec flag, and continue.
1112     shift
1113     elif test "X[$]1" = X--fallback-echo; then
1114     # Avoid inline document here, it may be left over
1115     :
1116     elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
1117     # Yippee, $echo works!
1118     :
1119     else
1120     # Restart under the correct shell.
1121     exec $SHELL "[$]0" --no-reexec ${1+"[$]@"}
1122     fi
1123    
1124     if test "X[$]1" = X--fallback-echo; then
1125     # used as fallback echo
1126     shift
1127     cat <<EOF
1128     [$]*
1129     EOF
1130     exit 0
1131     fi
1132    
1133     # The HP-UX ksh and POSIX shell print the target directory to stdout
1134     # if CDPATH is set.
1135     if test "X${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
1136    
1137     if test -z "$ECHO"; then
1138     if test "X${echo_test_string+set}" != Xset; then
1139     # find a string as large as possible, as long as the shell can cope with it
1140     for cmd in 'sed 50q "[$]0"' 'sed 20q "[$]0"' 'sed 10q "[$]0"' 'sed 2q "[$]0"' 'echo test'; do
1141     # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
1142     if (echo_test_string="`eval $cmd`") 2>/dev/null &&
1143     echo_test_string="`eval $cmd`" &&
1144     (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
1145     then
1146     break
1147     fi
1148     done
1149     fi
1150    
1151     if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
1152     echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
1153     test "X$echo_testing_string" = "X$echo_test_string"; then
1154     :
1155     else
1156     # The Solaris, AIX, and Digital Unix default echo programs unquote
1157     # backslashes. This makes it impossible to quote backslashes using
1158     # echo "$something" | sed 's/\\/\\\\/g'
1159     #
1160     # So, first we look for a working echo in the user's PATH.
1161    
1162     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
1163     for dir in $PATH /usr/ucb; do
1164     IFS="$lt_save_ifs"
1165     if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
1166     test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
1167     echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
1168     test "X$echo_testing_string" = "X$echo_test_string"; then
1169     echo="$dir/echo"
1170     break
1171     fi
1172     done
1173     IFS="$lt_save_ifs"
1174    
1175     if test "X$echo" = Xecho; then
1176     # We didn't find a better echo, so look for alternatives.
1177     if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
1178     echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
1179     test "X$echo_testing_string" = "X$echo_test_string"; then
1180     # This shell has a builtin print -r that does the trick.
1181     echo='print -r'
1182     elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
1183     test "X$CONFIG_SHELL" != X/bin/ksh; then
1184     # If we have ksh, try running configure again with it.
1185     ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
1186     export ORIGINAL_CONFIG_SHELL
1187     CONFIG_SHELL=/bin/ksh
1188     export CONFIG_SHELL
1189     exec $CONFIG_SHELL "[$]0" --no-reexec ${1+"[$]@"}
1190     else
1191     # Try using printf.
1192     echo='printf %s\n'
1193     if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
1194     echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
1195     test "X$echo_testing_string" = "X$echo_test_string"; then
1196     # Cool, printf works
1197     :
1198     elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "[$]0" --fallback-echo '\t') 2>/dev/null` &&
1199     test "X$echo_testing_string" = 'X\t' &&
1200     echo_testing_string=`($ORIGINAL_CONFIG_SHELL "[$]0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
1201     test "X$echo_testing_string" = "X$echo_test_string"; then
1202     CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
1203     export CONFIG_SHELL
1204     SHELL="$CONFIG_SHELL"
1205     export SHELL
1206     echo="$CONFIG_SHELL [$]0 --fallback-echo"
1207     elif echo_testing_string=`($CONFIG_SHELL "[$]0" --fallback-echo '\t') 2>/dev/null` &&
1208     test "X$echo_testing_string" = 'X\t' &&
1209     echo_testing_string=`($CONFIG_SHELL "[$]0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
1210     test "X$echo_testing_string" = "X$echo_test_string"; then
1211     echo="$CONFIG_SHELL [$]0 --fallback-echo"
1212     else
1213     # maybe with a smaller string...
1214     prev=:
1215    
1216     for cmd in 'echo test' 'sed 2q "[$]0"' 'sed 10q "[$]0"' 'sed 20q "[$]0"' 'sed 50q "[$]0"'; do
1217     if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
1218     then
1219     break
1220     fi
1221     prev="$cmd"
1222     done
1223    
1224     if test "$prev" != 'sed 50q "[$]0"'; then
1225     echo_test_string=`eval $prev`
1226     export echo_test_string
1227     exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "[$]0" ${1+"[$]@"}
1228     else
1229     # Oops. We lost completely, so just stick with echo.
1230     echo=echo
1231     fi
1232     fi
1233     fi
1234     fi
1235     fi
1236     fi
1237    
1238     # Copy echo and quote the copy suitably for passing to libtool from
1239     # the Makefile, instead of quoting the original, which is used later.
1240     ECHO=$echo
1241     if test "X$ECHO" = "X$CONFIG_SHELL [$]0 --fallback-echo"; then
1242     ECHO="$CONFIG_SHELL \\\$\[$]0 --fallback-echo"
1243     fi
1244    
1245     AC_SUBST(ECHO)
1246     ])])# _LT_AC_PROG_ECHO_BACKSLASH
1247    
1248    
1249     # _LT_AC_LOCK
1250     # -----------
1251     AC_DEFUN([_LT_AC_LOCK],
1252     [AC_ARG_ENABLE([libtool-lock],
1253     [AC_HELP_STRING([--disable-libtool-lock],
1254     [avoid locking (might break parallel builds)])])
1255     test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
1256    
1257     # Some flags need to be propagated to the compiler or linker for good
1258     # libtool support.
1259     case $host in
1260     ia64-*-hpux*)
1261     # Find out which ABI we are using.
1262     echo 'int i;' > conftest.$ac_ext
1263     if AC_TRY_EVAL(ac_compile); then
1264     case `/usr/bin/file conftest.$ac_objext` in
1265     *ELF-32*)
1266     HPUX_IA64_MODE="32"
1267     ;;
1268     *ELF-64*)
1269     HPUX_IA64_MODE="64"
1270     ;;
1271     esac
1272     fi
1273     rm -rf conftest*
1274     ;;
1275     *-*-irix6*)
1276     # Find out which ABI we are using.
1277     echo '[#]line __oline__ "configure"' > conftest.$ac_ext
1278     if AC_TRY_EVAL(ac_compile); then
1279     if test "$lt_cv_prog_gnu_ld" = yes; then
1280     case `/usr/bin/file conftest.$ac_objext` in
1281     *32-bit*)
1282     LD="${LD-ld} -melf32bsmip"
1283     ;;
1284     *N32*)
1285     LD="${LD-ld} -melf32bmipn32"
1286     ;;
1287     *64-bit*)
1288     LD="${LD-ld} -melf64bmip"
1289     ;;
1290     esac
1291     else
1292     case `/usr/bin/file conftest.$ac_objext` in
1293     *32-bit*)
1294     LD="${LD-ld} -32"
1295     ;;
1296     *N32*)
1297     LD="${LD-ld} -n32"
1298     ;;
1299     *64-bit*)
1300     LD="${LD-ld} -64"
1301     ;;
1302     esac
1303     fi
1304     fi
1305     rm -rf conftest*
1306     ;;
1307    
1308     x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
1309     # Find out which ABI we are using.
1310     echo 'int i;' > conftest.$ac_ext
1311     if AC_TRY_EVAL(ac_compile); then
1312     case "`/usr/bin/file conftest.o`" in
1313     *32-bit*)
1314     case $host in
1315     x86_64-*linux*)
1316     LD="${LD-ld} -m elf_i386"
1317     ;;
1318     ppc64-*linux*|powerpc64-*linux*)
1319     LD="${LD-ld} -m elf32ppclinux"
1320     ;;
1321     s390x-*linux*)
1322     LD="${LD-ld} -m elf_s390"
1323     ;;
1324     sparc64-*linux*)
1325     LD="${LD-ld} -m elf32_sparc"
1326     ;;
1327     esac
1328     ;;
1329     *64-bit*)
1330     case $host in
1331     x86_64-*linux*)
1332     LD="${LD-ld} -m elf_x86_64"
1333     ;;
1334     ppc*-*linux*|powerpc*-*linux*)
1335     LD="${LD-ld} -m elf64ppc"
1336     ;;
1337     s390*-*linux*)
1338     LD="${LD-ld} -m elf64_s390"
1339     ;;
1340     sparc*-*linux*)
1341     LD="${LD-ld} -m elf64_sparc"
1342     ;;
1343     esac
1344     ;;
1345     esac
1346     fi
1347     rm -rf conftest*
1348     ;;
1349    
1350     *-*-sco3.2v5*)
1351     # On SCO OpenServer 5, we need -belf to get full-featured binaries.
1352     SAVE_CFLAGS="$CFLAGS"
1353     CFLAGS="$CFLAGS -belf"
1354     AC_CACHE_CHECK([whether the C compiler needs -belf], lt_cv_cc_needs_belf,
1355     [AC_LANG_PUSH(C)
1356     AC_TRY_LINK([],[],[lt_cv_cc_needs_belf=yes],[lt_cv_cc_needs_belf=no])
1357     AC_LANG_POP])
1358     if test x"$lt_cv_cc_needs_belf" != x"yes"; then
1359     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
1360     CFLAGS="$SAVE_CFLAGS"
1361     fi
1362     ;;
1363     AC_PROVIDE_IFELSE([AC_LIBTOOL_WIN32_DLL],
1364     [*-*-cygwin* | *-*-mingw* | *-*-pw32*)
1365     AC_CHECK_TOOL(DLLTOOL, dlltool, false)
1366     AC_CHECK_TOOL(AS, as, false)
1367     AC_CHECK_TOOL(OBJDUMP, objdump, false)
1368     ;;
1369     ])
1370     esac
1371    
1372     need_locks="$enable_libtool_lock"
1373    
1374     ])# _LT_AC_LOCK
1375    
1376    
1377     # AC_LIBTOOL_COMPILER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS,
1378     # [OUTPUT-FILE], [ACTION-SUCCESS], [ACTION-FAILURE])
1379     # ----------------------------------------------------------------
1380     # Check whether the given compiler option works
1381     AC_DEFUN([AC_LIBTOOL_COMPILER_OPTION],
1382     [AC_REQUIRE([LT_AC_PROG_SED])
1383     AC_CACHE_CHECK([$1], [$2],
1384     [$2=no
1385     ifelse([$4], , [ac_outfile=conftest.$ac_objext], [ac_outfile=$4])
1386     printf "$lt_simple_compile_test_code" > conftest.$ac_ext
1387     lt_compiler_flag="$3"
1388     # Insert the option either (1) after the last *FLAGS variable, or
1389     # (2) before a word containing "conftest.", or (3) at the end.
1390     # Note that $ac_compile itself does not contain backslashes and begins
1391     # with a dollar sign (not a hyphen), so the echo should work correctly.
1392     # The option is referenced via a variable to avoid confusing sed.
1393     lt_compile=`echo "$ac_compile" | $SED \
1394     -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
1395     -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \
1396     -e 's:$: $lt_compiler_flag:'`
1397     (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&AS_MESSAGE_LOG_FD)
1398     (eval "$lt_compile" 2>conftest.err)
1399     ac_status=$?
1400     cat conftest.err >&AS_MESSAGE_LOG_FD
1401     echo "$as_me:__oline__: \$? = $ac_status" >&AS_MESSAGE_LOG_FD
1402     if (exit $ac_status) && test -s "$ac_outfile"; then
1403     # The compiler can only warn and ignore the option if not recognized
1404     # So say no if there are warnings
1405     if test ! -s conftest.err; then
1406     $2=yes
1407     fi
1408     fi
1409     $rm conftest*
1410     ])
1411    
1412     if test x"[$]$2" = xyes; then
1413     ifelse([$5], , :, [$5])
1414     else
1415     ifelse([$6], , :, [$6])
1416     fi
1417     ])# AC_LIBTOOL_COMPILER_OPTION
1418    
1419    
1420     # AC_LIBTOOL_LINKER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS,
1421     # [ACTION-SUCCESS], [ACTION-FAILURE])
1422     # ------------------------------------------------------------
1423     # Check whether the given compiler option works
1424     AC_DEFUN([AC_LIBTOOL_LINKER_OPTION],
1425     [AC_CACHE_CHECK([$1], [$2],
1426     [$2=no
1427     save_LDFLAGS="$LDFLAGS"
1428     LDFLAGS="$LDFLAGS $3"
1429     printf "$lt_simple_link_test_code" > conftest.$ac_ext
1430     if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
1431     # The compiler can only warn and ignore the option if not recognized
1432     # So say no if there are warnings
1433     if test -s conftest.err; then
1434     # Append any errors to the config.log.
1435     cat conftest.err 1>&AS_MESSAGE_LOG_FD
1436     else
1437     $2=yes
1438     fi
1439     fi
1440     $rm conftest*
1441     LDFLAGS="$save_LDFLAGS"
1442     ])
1443    
1444     if test x"[$]$2" = xyes; then
1445     ifelse([$4], , :, [$4])
1446     else
1447     ifelse([$5], , :, [$5])
1448     fi
1449     ])# AC_LIBTOOL_LINKER_OPTION
1450    
1451    
1452     # AC_LIBTOOL_SYS_MAX_CMD_LEN
1453     # --------------------------
1454     AC_DEFUN([AC_LIBTOOL_SYS_MAX_CMD_LEN],
1455     [# find the maximum length of command line arguments
1456     AC_MSG_CHECKING([the maximum length of command line arguments])
1457     AC_CACHE_VAL([lt_cv_sys_max_cmd_len], [dnl
1458     i=0
1459     testring="ABCD"
1460    
1461     case $build_os in
1462     msdosdjgpp*)
1463     # On DJGPP, this test can blow up pretty badly due to problems in libc
1464     # (any single argument exceeding 2000 bytes causes a buffer overrun
1465     # during glob expansion). Even if it were fixed, the result of this
1466     # check would be larger than it should be.
1467     lt_cv_sys_max_cmd_len=12288; # 12K is about right
1468     ;;
1469    
1470     gnu*)
1471     # Under GNU Hurd, this test is not required because there is
1472     # no limit to the length of command line arguments.
1473     # Libtool will interpret -1 as no limit whatsoever
1474     lt_cv_sys_max_cmd_len=-1;
1475     ;;
1476    
1477     cygwin* | mingw*)
1478     # On Win9x/ME, this test blows up -- it succeeds, but takes
1479     # about 5 minutes as the teststring grows exponentially.
1480     # Worse, since 9x/ME are not pre-emptively multitasking,
1481     # you end up with a "frozen" computer, even though with patience
1482     # the test eventually succeeds (with a max line length of 256k).
1483     # Instead, let's just punt: use the minimum linelength reported by
1484     # all of the supported platforms: 8192 (on NT/2K/XP).
1485     lt_cv_sys_max_cmd_len=8192;
1486     ;;
1487    
1488     amigaos*)
1489     # On AmigaOS with pdksh, this test takes hours, literally.
1490     # So we just punt and use a minimum line length of 8192.
1491     lt_cv_sys_max_cmd_len=8192;
1492     ;;
1493    
1494     *)
1495     # If test is not a shell built-in, we'll probably end up computing a
1496     # maximum length that is only half of the actual maximum length, but
1497     # we can't tell.
1498     while (test "X"`$CONFIG_SHELL [$]0 --fallback-echo "X$testring" 2>/dev/null` \
1499     = "XX$testring") >/dev/null 2>&1 &&
1500     new_result=`expr "X$testring" : ".*" 2>&1` &&
1501     lt_cv_sys_max_cmd_len=$new_result &&
1502     test $i != 17 # 1/2 MB should be enough
1503     do
1504     i=`expr $i + 1`
1505     testring=$testring$testring
1506     done
1507     testring=
1508     # Add a significant safety factor because C++ compilers can tack on massive
1509     # amounts of additional arguments before passing them to the linker.
1510     # It appears as though 1/2 is a usable value.
1511     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
1512     ;;
1513     esac
1514     ])
1515     if test -n $lt_cv_sys_max_cmd_len ; then
1516     AC_MSG_RESULT($lt_cv_sys_max_cmd_len)
1517     else
1518     AC_MSG_RESULT(none)
1519     fi
1520     ])# AC_LIBTOOL_SYS_MAX_CMD_LEN
1521    
1522    
1523     # _LT_AC_CHECK_DLFCN
1524     # --------------------
1525     AC_DEFUN([_LT_AC_CHECK_DLFCN],
1526     [AC_CHECK_HEADERS(dlfcn.h)dnl
1527     ])# _LT_AC_CHECK_DLFCN
1528    
1529    
1530     # _LT_AC_TRY_DLOPEN_SELF (ACTION-IF-TRUE, ACTION-IF-TRUE-W-USCORE,
1531     # ACTION-IF-FALSE, ACTION-IF-CROSS-COMPILING)
1532     # ------------------------------------------------------------------
1533     AC_DEFUN([_LT_AC_TRY_DLOPEN_SELF],
1534     [AC_REQUIRE([_LT_AC_CHECK_DLFCN])dnl
1535     if test "$cross_compiling" = yes; then :
1536     [$4]
1537     else
1538     lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
1539     lt_status=$lt_dlunknown
1540     cat > conftest.$ac_ext <<EOF
1541     [#line __oline__ "configure"
1542     #include "confdefs.h"
1543    
1544     #if HAVE_DLFCN_H
1545     #include <dlfcn.h>
1546     #endif
1547    
1548     #include <stdio.h>
1549    
1550     #ifdef RTLD_GLOBAL
1551     # define LT_DLGLOBAL RTLD_GLOBAL
1552     #else
1553     # ifdef DL_GLOBAL
1554     # define LT_DLGLOBAL DL_GLOBAL
1555     # else
1556     # define LT_DLGLOBAL 0
1557     # endif
1558     #endif
1559    
1560     /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
1561     find out it does not work in some platform. */
1562     #ifndef LT_DLLAZY_OR_NOW
1563     # ifdef RTLD_LAZY
1564     # define LT_DLLAZY_OR_NOW RTLD_LAZY
1565     # else
1566     # ifdef DL_LAZY
1567     # define LT_DLLAZY_OR_NOW DL_LAZY
1568     # else
1569     # ifdef RTLD_NOW
1570     # define LT_DLLAZY_OR_NOW RTLD_NOW
1571     # else
1572     # ifdef DL_NOW
1573     # define LT_DLLAZY_OR_NOW DL_NOW
1574     # else
1575     # define LT_DLLAZY_OR_NOW 0
1576     # endif
1577     # endif
1578     # endif
1579     # endif
1580     #endif
1581    
1582     #ifdef __cplusplus
1583     extern "C" void exit (int);
1584     #endif
1585    
1586     void fnord() { int i=42;}
1587     int main ()
1588     {
1589     void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
1590     int status = $lt_dlunknown;
1591    
1592     if (self)
1593     {
1594     if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
1595     else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
1596     /* dlclose (self); */
1597     }
1598    
1599     exit (status);
1600     }]
1601     EOF
1602     if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext} 2>/dev/null; then
1603     (./conftest; exit; ) 2>/dev/null
1604     lt_status=$?
1605     case x$lt_status in
1606     x$lt_dlno_uscore) $1 ;;
1607     x$lt_dlneed_uscore) $2 ;;
1608     x$lt_unknown|x*) $3 ;;
1609     esac
1610     else :
1611     # compilation failed
1612     $3
1613     fi
1614     fi
1615     rm -fr conftest*
1616     ])# _LT_AC_TRY_DLOPEN_SELF
1617    
1618    
1619     # AC_LIBTOOL_DLOPEN_SELF
1620     # -------------------
1621     AC_DEFUN([AC_LIBTOOL_DLOPEN_SELF],
1622     [AC_REQUIRE([_LT_AC_CHECK_DLFCN])dnl
1623     if test "x$enable_dlopen" != xyes; then
1624     enable_dlopen=unknown
1625     enable_dlopen_self=unknown
1626     enable_dlopen_self_static=unknown
1627     else
1628     lt_cv_dlopen=no
1629     lt_cv_dlopen_libs=
1630    
1631     case $host_os in
1632     beos*)
1633     lt_cv_dlopen="load_add_on"
1634     lt_cv_dlopen_libs=
1635     lt_cv_dlopen_self=yes
1636     ;;
1637    
1638     mingw* | pw32*)
1639     lt_cv_dlopen="LoadLibrary"
1640     lt_cv_dlopen_libs=
1641     ;;
1642    
1643     cygwin*)
1644     lt_cv_dlopen="dlopen"
1645     lt_cv_dlopen_libs=
1646     ;;
1647    
1648     darwin*)
1649     # if libdl is installed we need to link against it
1650     AC_CHECK_LIB([dl], [dlopen],
1651     [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"],[
1652     lt_cv_dlopen="dyld"
1653     lt_cv_dlopen_libs=
1654     lt_cv_dlopen_self=yes
1655     ])
1656     ;;
1657    
1658     *)
1659     AC_CHECK_FUNC([shl_load],
1660     [lt_cv_dlopen="shl_load"],
1661     [AC_CHECK_LIB([dld], [shl_load],
1662     [lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"],
1663     [AC_CHECK_FUNC([dlopen],
1664     [lt_cv_dlopen="dlopen"],
1665     [AC_CHECK_LIB([dl], [dlopen],
1666     [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"],
1667     [AC_CHECK_LIB([svld], [dlopen],
1668     [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"],
1669     [AC_CHECK_LIB([dld], [dld_link],
1670     [lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"])
1671     ])
1672     ])
1673     ])
1674     ])
1675     ])
1676     ;;
1677     esac
1678    
1679     if test "x$lt_cv_dlopen" != xno; then
1680     enable_dlopen=yes
1681     else
1682     enable_dlopen=no
1683     fi
1684    
1685     case $lt_cv_dlopen in
1686     dlopen)
1687     save_CPPFLAGS="$CPPFLAGS"
1688     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
1689    
1690     save_LDFLAGS="$LDFLAGS"
1691     eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
1692    
1693     save_LIBS="$LIBS"
1694     LIBS="$lt_cv_dlopen_libs $LIBS"
1695    
1696     AC_CACHE_CHECK([whether a program can dlopen itself],
1697     lt_cv_dlopen_self, [dnl
1698     _LT_AC_TRY_DLOPEN_SELF(
1699     lt_cv_dlopen_self=yes, lt_cv_dlopen_self=yes,
1700     lt_cv_dlopen_self=no, lt_cv_dlopen_self=cross)
1701     ])
1702    
1703     if test "x$lt_cv_dlopen_self" = xyes; then
1704     LDFLAGS="$LDFLAGS $link_static_flag"
1705     AC_CACHE_CHECK([whether a statically linked program can dlopen itself],
1706     lt_cv_dlopen_self_static, [dnl
1707     _LT_AC_TRY_DLOPEN_SELF(
1708     lt_cv_dlopen_self_static=yes, lt_cv_dlopen_self_static=yes,
1709     lt_cv_dlopen_self_static=no, lt_cv_dlopen_self_static=cross)
1710     ])
1711     fi
1712    
1713     CPPFLAGS="$save_CPPFLAGS"
1714     LDFLAGS="$save_LDFLAGS"
1715     LIBS="$save_LIBS"
1716     ;;
1717     esac
1718    
1719     case $lt_cv_dlopen_self in
1720     yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
1721     *) enable_dlopen_self=unknown ;;
1722     esac
1723    
1724     case $lt_cv_dlopen_self_static in
1725     yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
1726     *) enable_dlopen_self_static=unknown ;;
1727     esac
1728     fi
1729     ])# AC_LIBTOOL_DLOPEN_SELF
1730    
1731    
1732     # AC_LIBTOOL_PROG_CC_C_O([TAGNAME])
1733     # ---------------------------------
1734     # Check to see if options -c and -o are simultaneously supported by compiler
1735     AC_DEFUN([AC_LIBTOOL_PROG_CC_C_O],
1736     [AC_REQUIRE([_LT_AC_SYS_COMPILER])dnl
1737     AC_CACHE_CHECK([if $compiler supports -c -o file.$ac_objext],
1738     [_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)],
1739     [_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)=no
1740     $rm -r conftest 2>/dev/null
1741     mkdir conftest
1742     cd conftest
1743     mkdir out
1744     printf "$lt_simple_compile_test_code" > conftest.$ac_ext
1745    
1746     # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
1747     # that will create temporary files in the current directory regardless of
1748     # the output directory. Thus, making CWD read-only will cause this test
1749     # to fail, enabling locking or at least warning the user not to do parallel
1750     # builds.
1751     chmod -w .
1752    
1753     lt_compiler_flag="-o out/conftest2.$ac_objext"
1754     # Insert the option either (1) after the last *FLAGS variable, or
1755     # (2) before a word containing "conftest.", or (3) at the end.
1756     # Note that $ac_compile itself does not contain backslashes and begins
1757     # with a dollar sign (not a hyphen), so the echo should work correctly.
1758     lt_compile=`echo "$ac_compile" | $SED \
1759     -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
1760     -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \
1761     -e 's:$: $lt_compiler_flag:'`
1762     (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&AS_MESSAGE_LOG_FD)
1763     (eval "$lt_compile" 2>out/conftest.err)
1764     ac_status=$?
1765     cat out/conftest.err >&AS_MESSAGE_LOG_FD
1766     echo "$as_me:__oline__: \$? = $ac_status" >&AS_MESSAGE_LOG_FD
1767     if (exit $ac_status) && test -s out/conftest2.$ac_objext
1768     then
1769     # The compiler can only warn and ignore the option if not recognized
1770     # So say no if there are warnings
1771     if test ! -s out/conftest.err; then
1772     _LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes
1773     fi
1774     fi
1775     chmod u+w .
1776     $rm conftest*
1777     # SGI C++ compiler will create directory out/ii_files/ for
1778     # template instantiation
1779     test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
1780     $rm out/* && rmdir out
1781     cd ..
1782     rmdir conftest
1783     $rm conftest*
1784     ])
1785     ])# AC_LIBTOOL_PROG_CC_C_O
1786    
1787    
1788     # AC_LIBTOOL_SYS_HARD_LINK_LOCKS([TAGNAME])
1789     # -----------------------------------------
1790     # Check to see if we can do hard links to lock some files if needed
1791     AC_DEFUN([AC_LIBTOOL_SYS_HARD_LINK_LOCKS],
1792     [AC_REQUIRE([_LT_AC_LOCK])dnl
1793    
1794     hard_links="nottested"
1795     if test "$_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)" = no && test "$need_locks" != no; then
1796     # do not overwrite the value of need_locks provided by the user
1797     AC_MSG_CHECKING([if we can lock with hard links])
1798     hard_links=yes
1799     $rm conftest*
1800     ln conftest.a conftest.b 2>/dev/null && hard_links=no
1801     touch conftest.a
1802     ln conftest.a conftest.b 2>&5 || hard_links=no
1803     ln conftest.a conftest.b 2>/dev/null && hard_links=no
1804     AC_MSG_RESULT([$hard_links])
1805     if test "$hard_links" = no; then
1806     AC_MSG_WARN([`$CC' does not support `-c -o', so `make -j' may be unsafe])
1807     need_locks=warn
1808     fi
1809     else
1810     need_locks=no
1811     fi
1812     ])# AC_LIBTOOL_SYS_HARD_LINK_LOCKS
1813    
1814    
1815     # AC_LIBTOOL_OBJDIR
1816     # -----------------
1817     AC_DEFUN([AC_LIBTOOL_OBJDIR],
1818     [AC_CACHE_CHECK([for objdir], [lt_cv_objdir],
1819     [rm -f .libs 2>/dev/null
1820     mkdir .libs 2>/dev/null
1821     if test -d .libs; then
1822     lt_cv_objdir=.libs
1823     else
1824     # MS-DOS does not allow filenames that begin with a dot.
1825     lt_cv_objdir=_libs
1826     fi
1827     rmdir .libs 2>/dev/null])
1828     objdir=$lt_cv_objdir
1829     ])# AC_LIBTOOL_OBJDIR
1830    
1831    
1832     # AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH([TAGNAME])
1833     # ----------------------------------------------
1834     # Check hardcoding attributes.
1835     AC_DEFUN([AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH],
1836     [AC_MSG_CHECKING([how to hardcode library paths into programs])
1837     _LT_AC_TAGVAR(hardcode_action, $1)=
1838     if test -n "$_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)" || \
1839     test -n "$_LT_AC_TAGVAR(runpath_var $1)" || \
1840     test "X$_LT_AC_TAGVAR(hardcode_automatic, $1)"="Xyes" ; then
1841    
1842     # We can hardcode non-existant directories.
1843     if test "$_LT_AC_TAGVAR(hardcode_direct, $1)" != no &&
1844     # If the only mechanism to avoid hardcoding is shlibpath_var, we
1845     # have to relink, otherwise we might link with an installed library
1846     # when we should be linking with a yet-to-be-installed one
1847     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)" != no &&
1848     test "$_LT_AC_TAGVAR(hardcode_minus_L, $1)" != no; then
1849     # Linking always hardcodes the temporary library directory.
1850     _LT_AC_TAGVAR(hardcode_action, $1)=relink
1851     else
1852     # We can link without hardcoding, and we can hardcode nonexisting dirs.
1853     _LT_AC_TAGVAR(hardcode_action, $1)=immediate
1854     fi
1855     else
1856     # We cannot hardcode anything, or else we can only hardcode existing
1857     # directories.
1858     _LT_AC_TAGVAR(hardcode_action, $1)=unsupported
1859     fi
1860     AC_MSG_RESULT([$_LT_AC_TAGVAR(hardcode_action, $1)])
1861    
1862     if test "$_LT_AC_TAGVAR(hardcode_action, $1)" = relink; then
1863     # Fast installation is not supported
1864     enable_fast_install=no
1865     elif test "$shlibpath_overrides_runpath" = yes ||
1866     test "$enable_shared" = no; then
1867     # Fast installation is not necessary
1868     enable_fast_install=needless
1869     fi
1870     ])# AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH
1871    
1872    
1873     # AC_LIBTOOL_SYS_LIB_STRIP
1874     # ------------------------
1875     AC_DEFUN([AC_LIBTOOL_SYS_LIB_STRIP],
1876     [striplib=
1877     old_striplib=
1878     AC_MSG_CHECKING([whether stripping libraries is possible])
1879     if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
1880     test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
1881     test -z "$striplib" && striplib="$STRIP --strip-unneeded"
1882     AC_MSG_RESULT([yes])
1883     else
1884     # FIXME - insert some real tests, host_os isn't really good enough
1885     case $host_os in
1886     darwin*)
1887     if test -n "$STRIP" ; then
1888     striplib="$STRIP -x"
1889     AC_MSG_RESULT([yes])
1890     else
1891     AC_MSG_RESULT([no])
1892     fi
1893     ;;
1894     *)
1895     AC_MSG_RESULT([no])
1896     ;;
1897     esac
1898     fi
1899     ])# AC_LIBTOOL_SYS_LIB_STRIP
1900    
1901    
1902     # AC_LIBTOOL_SYS_DYNAMIC_LINKER
1903     # -----------------------------
1904     # PORTME Fill in your ld.so characteristics
1905     AC_DEFUN([AC_LIBTOOL_SYS_DYNAMIC_LINKER],
1906     [AC_MSG_CHECKING([dynamic linker characteristics])
1907     library_names_spec=
1908     libname_spec='lib$name'
1909     soname_spec=
1910     shrext=".so"
1911     postinstall_cmds=
1912     postuninstall_cmds=
1913     finish_cmds=
1914     finish_eval=
1915     shlibpath_var=
1916     shlibpath_overrides_runpath=unknown
1917     version_type=none
1918     dynamic_linker="$host_os ld.so"
1919     sys_lib_dlsearch_path_spec="/lib /usr/lib"
1920     if test "$GCC" = yes; then
1921     sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
1922     if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
1923     # if the path contains ";" then we assume it to be the separator
1924     # otherwise default to the standard path separator (i.e. ":") - it is
1925     # assumed that no part of a normal pathname contains ";" but that should
1926     # okay in the real world where ";" in dirpaths is itself problematic.
1927     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
1928     else
1929     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
1930     fi
1931     else
1932     sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
1933     fi
1934     need_lib_prefix=unknown
1935     hardcode_into_libs=no
1936    
1937     # when you set need_version to no, make sure it does not cause -set_version
1938     # flags to be left without arguments
1939     need_version=unknown
1940    
1941     case $host_os in
1942     aix3*)
1943     version_type=linux
1944     library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
1945     shlibpath_var=LIBPATH
1946    
1947     # AIX 3 has no versioning support, so we append a major version to the name.
1948     soname_spec='${libname}${release}${shared_ext}$major'
1949     ;;
1950    
1951     aix4* | aix5*)
1952     version_type=linux
1953     need_lib_prefix=no
1954     need_version=no
1955     hardcode_into_libs=yes
1956     if test "$host_cpu" = ia64; then
1957     # AIX 5 supports IA64
1958     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
1959     shlibpath_var=LD_LIBRARY_PATH
1960     else
1961     # With GCC up to 2.95.x, collect2 would create an import file
1962     # for dependence libraries. The import file would start with
1963     # the line `#! .'. This would cause the generated library to
1964     # depend on `.', always an invalid library. This was fixed in
1965     # development snapshots of GCC prior to 3.0.
1966     case $host_os in
1967     aix4 | aix4.[[01]] | aix4.[[01]].*)
1968     if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
1969     echo ' yes '
1970     echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
1971     :
1972     else
1973     can_build_shared=no
1974     fi
1975     ;;
1976     esac
1977     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
1978     # soname into executable. Probably we can add versioning support to
1979     # collect2, so additional links can be useful in future.
1980     if test "$aix_use_runtimelinking" = yes; then
1981     # If using run time linking (on AIX 4.2 or later) use lib<name>.so
1982     # instead of lib<name>.a to let people know that these are not
1983     # typical AIX shared libraries.
1984     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
1985     else
1986     # We preserve .a as extension for shared libraries through AIX4.2
1987     # and later when we are not doing run time linking.
1988     library_names_spec='${libname}${release}.a $libname.a'
1989     soname_spec='${libname}${release}${shared_ext}$major'
1990     fi
1991     shlibpath_var=LIBPATH
1992     fi
1993     ;;
1994    
1995     amigaos*)
1996     library_names_spec='$libname.ixlibrary $libname.a'
1997     # Create ${libname}_ixlibrary.a entries in /sys/libs.
1998     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'
1999     ;;
2000    
2001     beos*)
2002     library_names_spec='${libname}${shared_ext}'
2003     dynamic_linker="$host_os ld.so"
2004     shlibpath_var=LIBRARY_PATH
2005     ;;
2006    
2007     bsdi4*)
2008     version_type=linux
2009     need_version=no
2010     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
2011     soname_spec='${libname}${release}${shared_ext}$major'
2012     finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
2013     shlibpath_var=LD_LIBRARY_PATH
2014     sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
2015     sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
2016     # the default ld.so.conf also contains /usr/contrib/lib and
2017     # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
2018     # libtool to hard-code these into programs
2019     ;;
2020    
2021     cygwin* | mingw* | pw32*)
2022     version_type=windows
2023     shrext=".dll"
2024     need_version=no
2025     need_lib_prefix=no
2026    
2027     case $GCC,$host_os in
2028     yes,cygwin* | yes,mingw* | yes,pw32*)
2029     library_names_spec='$libname.dll.a'
2030     # DLL is installed to $(libdir)/../bin by postinstall_cmds
2031     postinstall_cmds='base_file=`basename \${file}`~
2032     dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
2033     dldir=$destdir/`dirname \$dlpath`~
2034     test -d \$dldir || mkdir -p \$dldir~
2035     $install_prog $dir/$dlname \$dldir/$dlname'
2036     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
2037     dlpath=$dir/\$dldll~
2038     $rm \$dlpath'
2039     shlibpath_overrides_runpath=yes
2040    
2041     case $host_os in
2042     cygwin*)
2043     # Cygwin DLLs use 'cyg' prefix rather than 'lib'
2044     soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
2045     sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
2046     ;;
2047     mingw*)
2048     # MinGW DLLs use traditional 'lib' prefix
2049     soname_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
2050     sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
2051     if echo "$sys_lib_search_path_spec" | [grep ';[c-zC-Z]:/' >/dev/null]; then
2052     # It is most probably a Windows format PATH printed by
2053     # mingw gcc, but we are running on Cygwin. Gcc prints its search
2054     # path with ; separators, and with drive letters. We can handle the
2055     # drive letters (cygwin fileutils understands them), so leave them,
2056     # especially as we might pass files found there to a mingw objdump,
2057     # which wouldn't understand a cygwinified path. Ahh.
2058     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
2059     else
2060     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
2061     fi
2062     ;;
2063     pw32*)
2064     # pw32 DLLs use 'pw' prefix rather than 'lib'
2065     library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
2066     ;;
2067     esac
2068     ;;
2069    
2070     *)
2071     library_names_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext} $libname.lib'
2072     ;;
2073     esac
2074     dynamic_linker='Win32 ld.exe'
2075     # FIXME: first we should search . and the directory the executable is in
2076     shlibpath_var=PATH
2077     ;;
2078    
2079     darwin* | rhapsody*)
2080     dynamic_linker="$host_os dyld"
2081     version_type=darwin
2082     need_lib_prefix=no
2083     need_version=no
2084     library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
2085     soname_spec='${libname}${release}${major}$shared_ext'
2086     shlibpath_overrides_runpath=yes
2087     shlibpath_var=DYLD_LIBRARY_PATH
2088     shrext='$(test .$module = .yes && echo .so || echo .dylib)'
2089     # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
2090     if test "$GCC" = yes; then
2091     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"`
2092     else
2093     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
2094     fi
2095     sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
2096     ;;
2097    
2098     dgux*)
2099     version_type=linux
2100     need_lib_prefix=no
2101     need_version=no
2102     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
2103     soname_spec='${libname}${release}${shared_ext}$major'
2104     shlibpath_var=LD_LIBRARY_PATH
2105     ;;
2106    
2107     freebsd1*)
2108     dynamic_linker=no
2109     ;;
2110    
2111     kfreebsd*-gnu)
2112     version_type=linux
2113     need_lib_prefix=no
2114     need_version=no
2115     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
2116     soname_spec='${libname}${release}${shared_ext}$major'
2117     shlibpath_var=LD_LIBRARY_PATH
2118     shlibpath_overrides_runpath=no
2119     hardcode_into_libs=yes
2120     dynamic_linker='GNU ld.so'
2121     ;;
2122    
2123     freebsd*)
2124     objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
2125     version_type=freebsd-$objformat
2126     case $version_type in
2127     freebsd-elf*)
2128     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
2129     need_version=no
2130     need_lib_prefix=no
2131     ;;
2132     freebsd-*)
2133     library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
2134     need_version=yes
2135     ;;
2136     esac
2137     shlibpath_var=LD_LIBRARY_PATH
2138     case $host_os in
2139     freebsd2*)
2140     shlibpath_overrides_runpath=yes
2141     ;;
2142     freebsd3.[01]* | freebsdelf3.[01]*)
2143     shlibpath_overrides_runpath=yes
2144     hardcode_into_libs=yes
2145     ;;
2146     *) # from 3.2 on
2147     shlibpath_overrides_runpath=no
2148     hardcode_into_libs=yes
2149     ;;
2150     esac
2151     ;;
2152    
2153     gnu*)
2154     version_type=linux
2155     need_lib_prefix=no
2156     need_version=no
2157     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
2158     soname_spec='${libname}${release}${shared_ext}$major'
2159     shlibpath_var=LD_LIBRARY_PATH
2160     hardcode_into_libs=yes
2161     ;;
2162    
2163     hpux9* | hpux10* | hpux11*)
2164     # Give a soname corresponding to the major version so that dld.sl refuses to
2165     # link against other versions.
2166     version_type=sunos
2167     need_lib_prefix=no
2168     need_version=no
2169     case "$host_cpu" in
2170     ia64*)
2171     shrext='.so'
2172     hardcode_into_libs=yes
2173     dynamic_linker="$host_os dld.so"
2174     shlibpath_var=LD_LIBRARY_PATH
2175     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
2176     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
2177     soname_spec='${libname}${release}${shared_ext}$major'
2178     if test "X$HPUX_IA64_MODE" = X32; then
2179     sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
2180     else
2181     sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
2182     fi
2183     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
2184     ;;
2185     hppa*64*)
2186     shrext='.sl'
2187     hardcode_into_libs=yes
2188     dynamic_linker="$host_os dld.sl"
2189     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
2190     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
2191     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
2192     soname_spec='${libname}${release}${shared_ext}$major'
2193     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
2194     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
2195     ;;
2196     *)
2197     shrext='.sl'
2198     dynamic_linker="$host_os dld.sl"
2199     shlibpath_var=SHLIB_PATH
2200     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
2201     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
2202     soname_spec='${libname}${release}${shared_ext}$major'
2203     ;;
2204     esac
2205     # HP-UX runs *really* slowly unless shared libraries are mode 555.
2206     postinstall_cmds='chmod 555 $lib'
2207     ;;
2208    
2209     irix5* | irix6* | nonstopux*)
2210     case $host_os in
2211     nonstopux*) version_type=nonstopux ;;
2212     *)
2213     if test "$lt_cv_prog_gnu_ld" = yes; then
2214     version_type=linux
2215     else
2216     version_type=irix
2217     fi ;;
2218     esac
2219     need_lib_prefix=no
2220     need_version=no
2221     soname_spec='${libname}${release}${shared_ext}$major'
2222     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
2223     case $host_os in
2224     irix5* | nonstopux*)
2225     libsuff= shlibsuff=
2226     ;;
2227     *)
2228     case $LD in # libtool.m4 will add one of these switches to LD
2229     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
2230     libsuff= shlibsuff= libmagic=32-bit;;
2231     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
2232     libsuff=32 shlibsuff=N32 libmagic=N32;;
2233     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
2234     libsuff=64 shlibsuff=64 libmagic=64-bit;;
2235     *) libsuff= shlibsuff= libmagic=never-match;;
2236     esac
2237     ;;
2238     esac
2239     shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
2240     shlibpath_overrides_runpath=no
2241     sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
2242     sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
2243     hardcode_into_libs=yes
2244     ;;
2245    
2246     # No shared lib support for Linux oldld, aout, or coff.
2247     linux*oldld* | linux*aout* | linux*coff*)
2248     dynamic_linker=no
2249     ;;
2250    
2251     # This must be Linux ELF.
2252     linux*)
2253     version_type=linux
2254     need_lib_prefix=no
2255     need_version=no
2256     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
2257     soname_spec='${libname}${release}${shared_ext}$major'
2258     finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
2259     shlibpath_var=LD_LIBRARY_PATH
2260     shlibpath_overrides_runpath=no
2261     # This implies no fast_install, which is unacceptable.
2262     # Some rework will be needed to allow for fast_install
2263     # before this can be enabled.
2264     hardcode_into_libs=yes
2265    
2266     # /usr/X11R6/lib and /usr/local/lib are common enough...
2267     sys_lib_dlsearch_path_spec="/lib /usr/lib /usr/X11R6/lib /usr/local/lib"
2268    
2269     # We used to test for /lib/ld.so.1 and disable shared libraries on
2270     # powerpc, because MkLinux only supported shared libraries with the
2271     # GNU dynamic linker. Since this was broken with cross compilers,
2272     # most powerpc-linux boxes support dynamic linking these days and
2273     # people can always --disable-shared, the test was removed, and we
2274     # assume the GNU/Linux dynamic linker is in use.
2275     dynamic_linker='GNU/Linux ld.so'
2276     ;;
2277    
2278     knetbsd*-gnu)
2279     version_type=linux
2280     need_lib_prefix=no
2281     need_version=no
2282     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
2283     soname_spec='${libname}${release}${shared_ext}$major'
2284     shlibpath_var=LD_LIBRARY_PATH
2285     shlibpath_overrides_runpath=no
2286     hardcode_into_libs=yes
2287     dynamic_linker='GNU ld.so'
2288     ;;
2289    
2290     netbsd*)
2291     version_type=sunos
2292     need_lib_prefix=no
2293     need_version=no
2294     if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
2295     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
2296     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
2297     dynamic_linker='NetBSD (a.out) ld.so'
2298     else
2299     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
2300     soname_spec='${libname}${release}${shared_ext}$major'
2301     dynamic_linker='NetBSD ld.elf_so'
2302     fi
2303     shlibpath_var=LD_LIBRARY_PATH
2304     shlibpath_overrides_runpath=yes
2305     hardcode_into_libs=yes
2306     ;;
2307    
2308     newsos6)
2309     version_type=linux
2310     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
2311     shlibpath_var=LD_LIBRARY_PATH
2312     shlibpath_overrides_runpath=yes
2313     ;;
2314    
2315     nto-qnx*)
2316     version_type=linux
2317     need_lib_prefix=no
2318     need_version=no
2319     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
2320     soname_spec='${libname}${release}${shared_ext}$major'
2321     shlibpath_var=LD_LIBRARY_PATH
2322     shlibpath_overrides_runpath=yes
2323     ;;
2324    
2325     openbsd*)
2326     version_type=sunos
2327     need_lib_prefix=no
2328     need_version=yes
2329     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
2330     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
2331     shlibpath_var=LD_LIBRARY_PATH
2332     if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
2333     case $host_os in
2334     openbsd2.[[89]] | openbsd2.[[89]].*)
2335     shlibpath_overrides_runpath=no
2336     ;;
2337     *)
2338     shlibpath_overrides_runpath=yes
2339     ;;
2340     esac
2341     else
2342     shlibpath_overrides_runpath=yes
2343     fi
2344     ;;
2345    
2346     os2*)
2347     libname_spec='$name'
2348     shrext=".dll"
2349     need_lib_prefix=no
2350     library_names_spec='$libname${shared_ext} $libname.a'
2351     dynamic_linker='OS/2 ld.exe'
2352     shlibpath_var=LIBPATH
2353     ;;
2354    
2355     osf3* | osf4* | osf5*)
2356     version_type=osf
2357     need_lib_prefix=no
2358     need_version=no
2359     soname_spec='${libname}${release}${shared_ext}$major'
2360     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
2361     shlibpath_var=LD_LIBRARY_PATH
2362     sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
2363     sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
2364     ;;
2365    
2366     sco3.2v5*)
2367     version_type=osf
2368     soname_spec='${libname}${release}${shared_ext}$major'
2369     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
2370     shlibpath_var=LD_LIBRARY_PATH
2371     ;;
2372    
2373     solaris*)
2374     version_type=linux
2375     need_lib_prefix=no
2376     need_version=no
2377     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
2378     soname_spec='${libname}${release}${shared_ext}$major'
2379     shlibpath_var=LD_LIBRARY_PATH
2380     shlibpath_overrides_runpath=yes
2381     hardcode_into_libs=yes
2382     # ldd complains unless libraries are executable
2383     postinstall_cmds='chmod +x $lib'
2384     ;;
2385    
2386     sunos4*)
2387     version_type=sunos
2388     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
2389     finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
2390     shlibpath_var=LD_LIBRARY_PATH
2391     shlibpath_overrides_runpath=yes
2392     if test "$with_gnu_ld" = yes; then
2393     need_lib_prefix=no
2394     fi
2395     need_version=yes
2396     ;;
2397    
2398     sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
2399     version_type=linux
2400     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
2401     soname_spec='${libname}${release}${shared_ext}$major'
2402     shlibpath_var=LD_LIBRARY_PATH
2403     case $host_vendor in
2404     sni)
2405     shlibpath_overrides_runpath=no
2406     need_lib_prefix=no
2407     export_dynamic_flag_spec='${wl}-Blargedynsym'
2408     runpath_var=LD_RUN_PATH
2409     ;;
2410     siemens)
2411     need_lib_prefix=no
2412     ;;
2413     motorola)
2414     need_lib_prefix=no
2415     need_version=no
2416     shlibpath_overrides_runpath=no
2417     sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
2418     ;;
2419     esac
2420     ;;
2421    
2422     sysv4*MP*)
2423     if test -d /usr/nec ;then
2424     version_type=linux
2425     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
2426     soname_spec='$libname${shared_ext}.$major'
2427     shlibpath_var=LD_LIBRARY_PATH
2428     fi
2429     ;;
2430    
2431     uts4*)
2432     version_type=linux
2433     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
2434     soname_spec='${libname}${release}${shared_ext}$major'
2435     shlibpath_var=LD_LIBRARY_PATH
2436     ;;
2437    
2438     *)
2439     dynamic_linker=no
2440     ;;
2441     esac
2442     AC_MSG_RESULT([$dynamic_linker])
2443     test "$dynamic_linker" = no && can_build_shared=no
2444     ])# AC_LIBTOOL_SYS_DYNAMIC_LINKER
2445    
2446    
2447     # _LT_AC_TAGCONFIG
2448     # ----------------
2449     AC_DEFUN([_LT_AC_TAGCONFIG],
2450     [AC_ARG_WITH([tags],
2451     [AC_HELP_STRING([--with-tags@<:@=TAGS@:>@],
2452     [include additional configurations @<:@automatic@:>@])],
2453     [tagnames="$withval"])
2454    
2455     if test -f "$ltmain" && test -n "$tagnames"; then
2456     if test ! -f "${ofile}"; then
2457     AC_MSG_WARN([output file `$ofile' does not exist])
2458     fi
2459    
2460     if test -z "$LTCC"; then
2461     eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
2462     if test -z "$LTCC"; then
2463     AC_MSG_WARN([output file `$ofile' does not look like a libtool script])
2464     else
2465     AC_MSG_WARN([using `LTCC=$LTCC', extracted from `$ofile'])
2466     fi
2467     fi
2468    
2469     # Extract list of available tagged configurations in $ofile.
2470     # Note that this assumes the entire list is on one line.
2471     available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
2472    
2473     lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2474     for tagname in $tagnames; do
2475     IFS="$lt_save_ifs"
2476     # Check whether tagname contains only valid characters
2477     case `$echo "X$tagname" | $Xsed -e 's:[[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]]::g'` in
2478     "") ;;
2479     *) AC_MSG_ERROR([invalid tag name: $tagname])
2480     ;;
2481     esac
2482    
2483     if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
2484     then
2485     AC_MSG_ERROR([tag name \"$tagname\" already exists])
2486     fi
2487    
2488     # Update the list of available tags.
2489     if test -n "$tagname"; then
2490     echo appending configuration tag \"$tagname\" to $ofile
2491    
2492     case $tagname in
2493     CXX)
2494     if test -n "$CXX" && test "X$CXX" != "Xno"; then
2495     AC_LIBTOOL_LANG_CXX_CONFIG
2496     else
2497     tagname=""
2498     fi
2499     ;;
2500    
2501     F77)
2502     if test -n "$F77" && test "X$F77" != "Xno"; then
2503     AC_LIBTOOL_LANG_F77_CONFIG
2504     else
2505     tagname=""
2506     fi
2507     ;;
2508    
2509     GCJ)
2510     if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
2511     AC_LIBTOOL_LANG_GCJ_CONFIG
2512     else
2513     tagname=""
2514     fi
2515     ;;
2516    
2517     RC)
2518     AC_LIBTOOL_LANG_RC_CONFIG
2519     ;;
2520    
2521     *)
2522     AC_MSG_ERROR([Unsupported tag name: $tagname])
2523     ;;
2524     esac
2525    
2526     # Append the new tag name to the list of available tags.
2527     if test -n "$tagname" ; then
2528     available_tags="$available_tags $tagname"
2529     fi
2530     fi
2531     done
2532     IFS="$lt_save_ifs"
2533    
2534     # Now substitute the updated list of available tags.
2535     if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
2536     mv "${ofile}T" "$ofile"
2537     chmod +x "$ofile"
2538     else
2539     rm -f "${ofile}T"
2540     AC_MSG_ERROR([unable to update list of available tagged configurations.])
2541     fi
2542     fi
2543     ])# _LT_AC_TAGCONFIG
2544    
2545    
2546     # AC_LIBTOOL_DLOPEN
2547     # -----------------
2548     # enable checks for dlopen support
2549     AC_DEFUN([AC_LIBTOOL_DLOPEN],
2550     [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])
2551     ])# AC_LIBTOOL_DLOPEN
2552    
2553    
2554     # AC_LIBTOOL_WIN32_DLL
2555     # --------------------
2556     # declare package support for building win32 dll's
2557     AC_DEFUN([AC_LIBTOOL_WIN32_DLL],
2558     [AC_BEFORE([$0], [AC_LIBTOOL_SETUP])
2559     ])# AC_LIBTOOL_WIN32_DLL
2560    
2561    
2562     # AC_ENABLE_SHARED([DEFAULT])
2563     # ---------------------------
2564     # implement the --enable-shared flag
2565     # DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'.
2566     AC_DEFUN([AC_ENABLE_SHARED],
2567     [define([AC_ENABLE_SHARED_DEFAULT], ifelse($1, no, no, yes))dnl
2568     AC_ARG_ENABLE([shared],
2569     [AC_HELP_STRING([--enable-shared@<:@=PKGS@:>@],
2570     [build shared libraries @<:@default=]AC_ENABLE_SHARED_DEFAULT[@:>@])],
2571     [p=${PACKAGE-default}
2572     case $enableval in
2573     yes) enable_shared=yes ;;
2574     no) enable_shared=no ;;
2575     *)
2576     enable_shared=no
2577     # Look at the argument we got. We use all the common list separators.
2578     lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2579     for pkg in $enableval; do
2580     IFS="$lt_save_ifs"
2581     if test "X$pkg" = "X$p"; then
2582     enable_shared=yes
2583     fi
2584     done
2585     IFS="$lt_save_ifs"
2586     ;;
2587     esac],
2588     [enable_shared=]AC_ENABLE_SHARED_DEFAULT)
2589     ])# AC_ENABLE_SHARED
2590    
2591    
2592     # AC_DISABLE_SHARED
2593     # -----------------
2594     #- set the default shared flag to --disable-shared
2595     AC_DEFUN([AC_DISABLE_SHARED],
2596     [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
2597     AC_ENABLE_SHARED(no)
2598     ])# AC_DISABLE_SHARED
2599    
2600    
2601     # AC_ENABLE_STATIC([DEFAULT])
2602     # ---------------------------
2603     # implement the --enable-static flag
2604     # DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'.
2605     AC_DEFUN([AC_ENABLE_STATIC],
2606     [define([AC_ENABLE_STATIC_DEFAULT], ifelse($1, no, no, yes))dnl
2607     AC_ARG_ENABLE([static],
2608     [AC_HELP_STRING([--enable-static@<:@=PKGS@:>@],
2609     [build static libraries @<:@default=]AC_ENABLE_STATIC_DEFAULT[@:>@])],
2610     [p=${PACKAGE-default}
2611     case $enableval in
2612     yes) enable_static=yes ;;
2613     no) enable_static=no ;;
2614     *)
2615     enable_static=no
2616     # Look at the argument we got. We use all the common list separators.
2617     lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2618     for pkg in $enableval; do
2619     IFS="$lt_save_ifs"
2620     if test "X$pkg" = "X$p"; then
2621     enable_static=yes
2622     fi
2623     done
2624     IFS="$lt_save_ifs"
2625     ;;
2626     esac],
2627     [enable_static=]AC_ENABLE_STATIC_DEFAULT)
2628     ])# AC_ENABLE_STATIC
2629    
2630    
2631     # AC_DISABLE_STATIC
2632     # -----------------
2633     # set the default static flag to --disable-static
2634     AC_DEFUN([AC_DISABLE_STATIC],
2635     [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
2636     AC_ENABLE_STATIC(no)
2637     ])# AC_DISABLE_STATIC
2638    
2639    
2640     # AC_ENABLE_FAST_INSTALL([DEFAULT])
2641     # ---------------------------------
2642     # implement the --enable-fast-install flag
2643     # DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'.
2644     AC_DEFUN([AC_ENABLE_FAST_INSTALL],
2645     [define([AC_ENABLE_FAST_INSTALL_DEFAULT], ifelse($1, no, no, yes))dnl
2646     AC_ARG_ENABLE([fast-install],
2647     [AC_HELP_STRING([--enable-fast-install@<:@=PKGS@:>@],
2648     [optimize for fast installation @<:@default=]AC_ENABLE_FAST_INSTALL_DEFAULT[@:>@])],
2649     [p=${PACKAGE-default}
2650     case $enableval in
2651     yes) enable_fast_install=yes ;;
2652     no) enable_fast_install=no ;;
2653     *)
2654     enable_fast_install=no
2655     # Look at the argument we got. We use all the common list separators.
2656     lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2657     for pkg in $enableval; do
2658     IFS="$lt_save_ifs"
2659     if test "X$pkg" = "X$p"; then
2660     enable_fast_install=yes
2661     fi
2662     done
2663     IFS="$lt_save_ifs"
2664     ;;
2665     esac],
2666     [enable_fast_install=]AC_ENABLE_FAST_INSTALL_DEFAULT)
2667     ])# AC_ENABLE_FAST_INSTALL
2668    
2669    
2670     # AC_DISABLE_FAST_INSTALL
2671     # -----------------------
2672     # set the default to --disable-fast-install
2673     AC_DEFUN([AC_DISABLE_FAST_INSTALL],
2674     [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
2675     AC_ENABLE_FAST_INSTALL(no)
2676     ])# AC_DISABLE_FAST_INSTALL
2677    
2678    
2679     # AC_LIBTOOL_PICMODE([MODE])
2680     # --------------------------
2681     # implement the --with-pic flag
2682     # MODE is either `yes' or `no'. If omitted, it defaults to `both'.
2683     AC_DEFUN([AC_LIBTOOL_PICMODE],
2684     [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
2685     pic_mode=ifelse($#,1,$1,default)
2686     ])# AC_LIBTOOL_PICMODE
2687    
2688    
2689     # AC_PROG_EGREP
2690     # -------------
2691     # This is predefined starting with Autoconf 2.54, so this conditional
2692     # definition can be removed once we require Autoconf 2.54 or later.
2693     m4_ifndef([AC_PROG_EGREP], [AC_DEFUN([AC_PROG_EGREP],
2694     [AC_CACHE_CHECK([for egrep], [ac_cv_prog_egrep],
2695     [if echo a | (grep -E '(a|b)') >/dev/null 2>&1
2696     then ac_cv_prog_egrep='grep -E'
2697     else ac_cv_prog_egrep='egrep'
2698     fi])
2699     EGREP=$ac_cv_prog_egrep
2700     AC_SUBST([EGREP])
2701     ])])
2702    
2703    
2704     # AC_PATH_TOOL_PREFIX
2705     # -------------------
2706     # find a file program which can recognise shared library
2707     AC_DEFUN([AC_PATH_TOOL_PREFIX],
2708     [AC_REQUIRE([AC_PROG_EGREP])dnl
2709     AC_MSG_CHECKING([for $1])
2710     AC_CACHE_VAL(lt_cv_path_MAGIC_CMD,
2711     [case $MAGIC_CMD in
2712     [[\\/*] | ?:[\\/]*])
2713     lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
2714     ;;
2715     *)
2716     lt_save_MAGIC_CMD="$MAGIC_CMD"
2717     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
2718     dnl $ac_dummy forces splitting on constant user-supplied paths.
2719     dnl POSIX.2 word splitting is done only on the output of word expansions,
2720     dnl not every word. This closes a longstanding sh security hole.
2721     ac_dummy="ifelse([$2], , $PATH, [$2])"
2722     for ac_dir in $ac_dummy; do
2723     IFS="$lt_save_ifs"
2724     test -z "$ac_dir" && ac_dir=.
2725     if test -f $ac_dir/$1; then
2726     lt_cv_path_MAGIC_CMD="$ac_dir/$1"
2727     if test -n "$file_magic_test_file"; then
2728     case $deplibs_check_method in
2729     "file_magic "*)
2730     file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
2731     MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
2732     if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
2733     $EGREP "$file_magic_regex" > /dev/null; then
2734     :
2735     else
2736     cat <<EOF 1>&2
2737    
2738     *** Warning: the command libtool uses to detect shared libraries,
2739     *** $file_magic_cmd, produces output that libtool cannot recognize.
2740     *** The result is that libtool may fail to recognize shared libraries
2741     *** as such. This will affect the creation of libtool libraries that
2742     *** depend on shared libraries, but programs linked with such libtool
2743     *** libraries will work regardless of this problem. Nevertheless, you
2744     *** may want to report the problem to your system manager and/or to
2745     *** bug-libtool@gnu.org
2746    
2747     EOF
2748     fi ;;
2749     esac
2750     fi
2751     break
2752     fi
2753     done
2754     IFS="$lt_save_ifs"
2755     MAGIC_CMD="$lt_save_MAGIC_CMD"
2756     ;;
2757     esac])
2758     MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
2759     if test -n "$MAGIC_CMD"; then
2760     AC_MSG_RESULT($MAGIC_CMD)
2761     else
2762     AC_MSG_RESULT(no)
2763     fi
2764     ])# AC_PATH_TOOL_PREFIX
2765    
2766    
2767     # AC_PATH_MAGIC
2768     # -------------
2769     # find a file program which can recognise a shared library
2770     AC_DEFUN([AC_PATH_MAGIC],
2771     [AC_PATH_TOOL_PREFIX(${ac_tool_prefix}file, /usr/bin$PATH_SEPARATOR$PATH)
2772     if test -z "$lt_cv_path_MAGIC_CMD"; then
2773     if test -n "$ac_tool_prefix"; then
2774     AC_PATH_TOOL_PREFIX(file, /usr/bin$PATH_SEPARATOR$PATH)
2775     else
2776     MAGIC_CMD=:
2777     fi
2778     fi
2779     ])# AC_PATH_MAGIC
2780    
2781    
2782     # AC_PROG_LD
2783     # ----------
2784     # find the pathname to the GNU or non-GNU linker
2785     AC_DEFUN([AC_PROG_LD],
2786     [AC_ARG_WITH([gnu-ld],
2787     [AC_HELP_STRING([--with-gnu-ld],
2788     [assume the C compiler uses GNU ld @<:@default=no@:>@])],
2789     [test "$withval" = no || with_gnu_ld=yes],
2790     [with_gnu_ld=no])
2791     AC_REQUIRE([LT_AC_PROG_SED])dnl
2792     AC_REQUIRE([AC_PROG_CC])dnl
2793     AC_REQUIRE([AC_CANONICAL_HOST])dnl
2794     AC_REQUIRE([AC_CANONICAL_BUILD])dnl
2795     ac_prog=ld
2796     if test "$GCC" = yes; then
2797     # Check if gcc -print-prog-name=ld gives a path.
2798     AC_MSG_CHECKING([for ld used by $CC])
2799     case $host in
2800     *-*-mingw*)
2801     # gcc leaves a trailing carriage return which upsets mingw
2802     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
2803     *)
2804     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
2805     esac
2806     case $ac_prog in
2807     # Accept absolute paths.
2808     [[\\/]]* | ?:[[\\/]]*)
2809     re_direlt='/[[^/]][[^/]]*/\.\./'
2810     # Canonicalize the pathname of ld
2811     ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
2812     while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
2813     ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
2814     done
2815     test -z "$LD" && LD="$ac_prog"
2816     ;;
2817     "")
2818     # If it fails, then pretend we aren't using GCC.
2819     ac_prog=ld
2820     ;;
2821     *)
2822     # If it is relative, then search for the first ld in PATH.
2823     with_gnu_ld=unknown
2824     ;;
2825     esac
2826     elif test "$with_gnu_ld" = yes; then
2827     AC_MSG_CHECKING([for GNU ld])
2828     else
2829     AC_MSG_CHECKING([for non-GNU ld])
2830     fi
2831     AC_CACHE_VAL(lt_cv_path_LD,
2832     [if test -z "$LD"; then
2833     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
2834     for ac_dir in $PATH; do
2835     IFS="$lt_save_ifs"
2836     test -z "$ac_dir" && ac_dir=.
2837     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
2838     lt_cv_path_LD="$ac_dir/$ac_prog"
2839     # Check to see if the program is GNU ld. I'd rather use --version,
2840     # but apparently some GNU ld's only accept -v.
2841     # Break only if it was the GNU/non-GNU ld that we prefer.
2842     case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
2843     *GNU* | *'with BFD'*)
2844     test "$with_gnu_ld" != no && break
2845     ;;
2846     *)
2847     test "$with_gnu_ld" != yes && break
2848     ;;
2849     esac
2850     fi
2851     done
2852     IFS="$lt_save_ifs"
2853     else
2854     lt_cv_path_LD="$LD" # Let the user override the test with a path.
2855     fi])
2856     LD="$lt_cv_path_LD"
2857     if test -n "$LD"; then
2858     AC_MSG_RESULT($LD)
2859     else
2860     AC_MSG_RESULT(no)
2861     fi
2862     test -z "$LD" && AC_MSG_ERROR([no acceptable ld found in \$PATH])
2863     AC_PROG_LD_GNU
2864     ])# AC_PROG_LD
2865    
2866    
2867     # AC_PROG_LD_GNU
2868     # --------------
2869     AC_DEFUN([AC_PROG_LD_GNU],
2870     [AC_REQUIRE([AC_PROG_EGREP])dnl
2871     AC_CACHE_CHECK([if the linker ($LD) is GNU ld], lt_cv_prog_gnu_ld,
2872     [# I'd rather use --version here, but apparently some GNU ld's only accept -v.
2873     case `$LD -v 2>&1 </dev/null` in
2874     *GNU* | *'with BFD'*)
2875     lt_cv_prog_gnu_ld=yes
2876     ;;
2877     *)
2878     lt_cv_prog_gnu_ld=no
2879     ;;
2880     esac])
2881     with_gnu_ld=$lt_cv_prog_gnu_ld
2882     ])# AC_PROG_LD_GNU
2883    
2884    
2885     # AC_PROG_LD_RELOAD_FLAG
2886     # ----------------------
2887     # find reload flag for linker
2888     # -- PORTME Some linkers may need a different reload flag.
2889     AC_DEFUN([AC_PROG_LD_RELOAD_FLAG],
2890     [AC_CACHE_CHECK([for $LD option to reload object files],
2891     lt_cv_ld_reload_flag,
2892     [lt_cv_ld_reload_flag='-r'])
2893     reload_flag=$lt_cv_ld_reload_flag
2894     case $reload_flag in
2895     "" | " "*) ;;
2896     *) reload_flag=" $reload_flag" ;;
2897     esac
2898     reload_cmds='$LD$reload_flag -o $output$reload_objs'
2899     ])# AC_PROG_LD_RELOAD_FLAG
2900    
2901    
2902     # AC_DEPLIBS_CHECK_METHOD
2903     # -----------------------
2904     # how to check for library dependencies
2905     # -- PORTME fill in with the dynamic library characteristics
2906     AC_DEFUN([AC_DEPLIBS_CHECK_METHOD],
2907     [AC_CACHE_CHECK([how to recognise dependent libraries],
2908     lt_cv_deplibs_check_method,
2909     [lt_cv_file_magic_cmd='$MAGIC_CMD'
2910     lt_cv_file_magic_test_file=
2911     lt_cv_deplibs_check_method='unknown'
2912     # Need to set the preceding variable on all platforms that support
2913     # interlibrary dependencies.
2914     # 'none' -- dependencies not supported.
2915     # `unknown' -- same as none, but documents that we really don't know.
2916     # 'pass_all' -- all dependencies passed with no checks.
2917     # 'test_compile' -- check by making test program.
2918     # 'file_magic [[regex]]' -- check by looking for files in library path
2919     # which responds to the $file_magic_cmd with a given extended regex.
2920     # If you have `file' or equivalent on your system and you're not sure
2921     # whether `pass_all' will *always* work, you probably want this one.
2922    
2923     case $host_os in
2924     aix4* | aix5*)
2925     lt_cv_deplibs_check_method=pass_all
2926     ;;
2927    
2928     beos*)
2929     lt_cv_deplibs_check_method=pass_all
2930     ;;
2931    
2932     bsdi4*)
2933     lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (shared object|dynamic lib)'
2934     lt_cv_file_magic_cmd='/usr/bin/file -L'
2935     lt_cv_file_magic_test_file=/shlib/libc.so
2936     ;;
2937    
2938     cygwin* | mingw* | pw32*)
2939     # win32_libid is a shell function defined in ltmain.sh
2940     lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
2941     lt_cv_file_magic_cmd='win32_libid'
2942     ;;
2943    
2944     darwin* | rhapsody*)
2945     lt_cv_deplibs_check_method=pass_all
2946     ;;
2947    
2948     freebsd* | kfreebsd*-gnu)
2949     if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
2950     case $host_cpu in
2951     i*86 )
2952     # Not sure whether the presence of OpenBSD here was a mistake.
2953     # Let's accept both of them until this is cleared up.
2954     lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[[3-9]]86 (compact )?demand paged shared library'
2955     lt_cv_file_magic_cmd=/usr/bin/file
2956     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
2957     ;;
2958     esac
2959     else
2960     lt_cv_deplibs_check_method=pass_all
2961     fi
2962     ;;
2963    
2964     gnu*)
2965     lt_cv_deplibs_check_method=pass_all
2966     ;;
2967    
2968     hpux10.20* | hpux11*)
2969     lt_cv_file_magic_cmd=/usr/bin/file
2970     case "$host_cpu" in
2971     ia64*)
2972     lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|ELF-[[0-9]][[0-9]]) shared object file - IA64'
2973     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
2974     ;;
2975     hppa*64*)
2976     [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]']
2977     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
2978     ;;
2979     *)
2980     lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|PA-RISC[[0-9]].[[0-9]]) shared library'
2981     lt_cv_file_magic_test_file=/usr/lib/libc.sl
2982     ;;
2983     esac
2984     ;;
2985    
2986     irix5* | irix6* | nonstopux*)
2987     case $LD in
2988     *-32|*"-32 ") libmagic=32-bit;;
2989     *-n32|*"-n32 ") libmagic=N32;;
2990     *-64|*"-64 ") libmagic=64-bit;;
2991     *) libmagic=never-match;;
2992     esac
2993     lt_cv_deplibs_check_method=pass_all
2994     ;;
2995    
2996     # This must be Linux ELF.
2997     linux*)
2998     lt_cv_deplibs_check_method=pass_all
2999     ;;
3000    
3001     netbsd*)
3002     if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3003     lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$'
3004     else
3005     lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so|_pic\.a)$'
3006     fi
3007     ;;
3008    
3009     newos6*)
3010     lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (executable|dynamic lib)'
3011     lt_cv_file_magic_cmd=/usr/bin/file
3012     lt_cv_file_magic_test_file=/usr/lib/libnls.so
3013     ;;
3014    
3015     nto-qnx*)
3016     lt_cv_deplibs_check_method=unknown
3017     ;;
3018    
3019     openbsd*)
3020     lt_cv_file_magic_cmd=/usr/bin/file
3021     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3022     if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
3023     lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB shared object'
3024     else
3025     lt_cv_deplibs_check_method='file_magic OpenBSD.* shared library'
3026     fi
3027     ;;
3028    
3029     osf3* | osf4* | osf5*)
3030     lt_cv_deplibs_check_method=pass_all
3031     ;;
3032    
3033     sco3.2v5*)
3034     lt_cv_deplibs_check_method=pass_all
3035     ;;
3036    
3037     solaris*)
3038     lt_cv_deplibs_check_method=pass_all
3039     ;;
3040    
3041     sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
3042     case $host_vendor in
3043     motorola)
3044     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]]'
3045     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
3046     ;;
3047     ncr)
3048     lt_cv_deplibs_check_method=pass_all
3049     ;;
3050     sequent)
3051     lt_cv_file_magic_cmd='/bin/file'
3052     lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB (shared object|dynamic lib )'
3053     ;;
3054     sni)
3055     lt_cv_file_magic_cmd='/bin/file'
3056     lt_cv_deplibs_check_method="file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB dynamic lib"
3057     lt_cv_file_magic_test_file=/lib/libc.so
3058     ;;
3059     siemens)
3060     lt_cv_deplibs_check_method=pass_all
3061     ;;
3062     esac
3063     ;;
3064    
3065     sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[[78]]* | unixware7* | sysv4*uw2*)
3066     lt_cv_deplibs_check_method=pass_all
3067     ;;
3068     esac
3069     ])
3070     file_magic_cmd=$lt_cv_file_magic_cmd
3071     deplibs_check_method=$lt_cv_deplibs_check_method
3072     test -z "$deplibs_check_method" && deplibs_check_method=unknown
3073     ])# AC_DEPLIBS_CHECK_METHOD
3074    
3075    
3076     # AC_PROG_NM
3077     # ----------
3078     # find the pathname to a BSD-compatible name lister
3079     AC_DEFUN([AC_PROG_NM],
3080     [AC_CACHE_CHECK([for BSD-compatible nm], lt_cv_path_NM,
3081     [if test -n "$NM"; then
3082     # Let the user override the test.
3083     lt_cv_path_NM="$NM"
3084     else
3085     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3086     for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
3087     IFS="$lt_save_ifs"
3088     test -z "$ac_dir" && ac_dir=.
3089     tmp_nm="$ac_dir/${ac_tool_prefix}nm"
3090     if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
3091     # Check to see if the nm accepts a BSD-compat flag.
3092     # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3093     # nm: unknown option "B" ignored
3094     # Tru64's nm complains that /dev/null is an invalid object file
3095     case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
3096     */dev/null* | *'Invalid file or object type'*)
3097     lt_cv_path_NM="$tmp_nm -B"
3098     break
3099     ;;
3100     *)
3101     case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
3102     */dev/null*)
3103     lt_cv_path_NM="$tmp_nm -p"
3104     break
3105     ;;
3106     *)
3107     lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3108     continue # so that we can try to find one that supports BSD flags
3109     ;;
3110     esac
3111     esac
3112     fi
3113     done
3114     IFS="$lt_save_ifs"
3115     test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
3116     fi])
3117     NM="$lt_cv_path_NM"
3118     ])# AC_PROG_NM
3119    
3120    
3121     # AC_CHECK_LIBM
3122     # -------------
3123     # check for math library
3124     AC_DEFUN([AC_CHECK_LIBM],
3125     [AC_REQUIRE([AC_CANONICAL_HOST])dnl
3126     LIBM=
3127     case $host in
3128     *-*-beos* | *-*-cygwin* | *-*-pw32* | *-*-darwin*)
3129     # These system don't have libm, or don't need it
3130     ;;
3131     *-ncr-sysv4.3*)
3132     AC_CHECK_LIB(mw, _mwvalidcheckl, LIBM="-lmw")
3133     AC_CHECK_LIB(m, cos, LIBM="$LIBM -lm")
3134     ;;
3135     *)
3136     AC_CHECK_LIB(m, cos, LIBM="-lm")
3137     ;;
3138     esac
3139     ])# AC_CHECK_LIBM
3140    
3141    
3142     # AC_LIBLTDL_CONVENIENCE([DIRECTORY])
3143     # -----------------------------------
3144     # sets LIBLTDL to the link flags for the libltdl convenience library and
3145     # LTDLINCL to the include flags for the libltdl header and adds
3146     # --enable-ltdl-convenience to the configure arguments. Note that LIBLTDL
3147     # and LTDLINCL are not AC_SUBSTed, nor is AC_CONFIG_SUBDIRS called. If
3148     # DIRECTORY is not provided, it is assumed to be `libltdl'. LIBLTDL will
3149     # be prefixed with '${top_builddir}/' and LTDLINCL will be prefixed with
3150     # '${top_srcdir}/' (note the single quotes!). If your package is not
3151     # flat and you're not using automake, define top_builddir and
3152     # top_srcdir appropriately in the Makefiles.
3153     AC_DEFUN([AC_LIBLTDL_CONVENIENCE],
3154     [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
3155     case $enable_ltdl_convenience in
3156     no) AC_MSG_ERROR([this package needs a convenience libltdl]) ;;
3157     "") enable_ltdl_convenience=yes
3158     ac_configure_args="$ac_configure_args --enable-ltdl-convenience" ;;
3159     esac
3160     LIBLTDL='${top_builddir}/'ifelse($#,1,[$1],['libltdl'])/libltdlc.la
3161     LTDLINCL='-I${top_srcdir}/'ifelse($#,1,[$1],['libltdl'])
3162     # For backwards non-gettext consistent compatibility...
3163     INCLTDL="$LTDLINCL"
3164     ])# AC_LIBLTDL_CONVENIENCE
3165    
3166    
3167     # AC_LIBLTDL_INSTALLABLE([DIRECTORY])
3168     # -----------------------------------
3169     # sets LIBLTDL to the link flags for the libltdl installable library and
3170     # LTDLINCL to the include flags for the libltdl header and adds
3171     # --enable-ltdl-install to the configure arguments. Note that LIBLTDL
3172     # and LTDLINCL are not AC_SUBSTed, nor is AC_CONFIG_SUBDIRS called. If
3173     # DIRECTORY is not provided and an installed libltdl is not found, it is
3174     # assumed to be `libltdl'. LIBLTDL will be prefixed with '${top_builddir}/'
3175     # and LTDLINCL will be prefixed with '${top_srcdir}/' (note the single
3176     # quotes!). If your package is not flat and you're not using automake,
3177     # define top_builddir and top_srcdir appropriately in the Makefiles.
3178     # In the future, this macro may have to be called after AC_PROG_LIBTOOL.
3179     AC_DEFUN([AC_LIBLTDL_INSTALLABLE],
3180     [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
3181     AC_CHECK_LIB(ltdl, lt_dlinit,
3182     [test x"$enable_ltdl_install" != xyes && enable_ltdl_install=no],
3183     [if test x"$enable_ltdl_install" = xno; then
3184     AC_MSG_WARN([libltdl not installed, but installation disabled])
3185     else
3186     enable_ltdl_install=yes
3187     fi
3188     ])
3189     if test x"$enable_ltdl_install" = x"yes"; then
3190     ac_configure_args="$ac_configure_args --enable-ltdl-install"
3191     LIBLTDL='${top_builddir}/'ifelse($#,1,[$1],['libltdl'])/libltdl.la
3192     LTDLINCL='-I${top_srcdir}/'ifelse($#,1,[$1],['libltdl'])
3193     else
3194     ac_configure_args="$ac_configure_args --enable-ltdl-install=no"
3195     LIBLTDL="-lltdl"
3196     LTDLINCL=
3197     fi
3198     # For backwards non-gettext consistent compatibility...
3199     INCLTDL="$LTDLINCL"
3200     ])# AC_LIBLTDL_INSTALLABLE
3201    
3202    
3203     # AC_LIBTOOL_CXX
3204     # --------------
3205     # enable support for C++ libraries
3206     AC_DEFUN([AC_LIBTOOL_CXX],
3207     [AC_REQUIRE([_LT_AC_LANG_CXX])
3208     ])# AC_LIBTOOL_CXX
3209    
3210    
3211     # _LT_AC_LANG_CXX
3212     # ---------------
3213     AC_DEFUN([_LT_AC_LANG_CXX],
3214     [AC_REQUIRE([AC_PROG_CXX])
3215     AC_REQUIRE([AC_PROG_CXXCPP])
3216     _LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}CXX])
3217     ])# _LT_AC_LANG_CXX
3218    
3219    
3220     # AC_LIBTOOL_F77
3221     # --------------
3222     # enable support for Fortran 77 libraries
3223     AC_DEFUN([AC_LIBTOOL_F77],
3224     [AC_REQUIRE([_LT_AC_LANG_F77])
3225     ])# AC_LIBTOOL_F77
3226    
3227    
3228     # _LT_AC_LANG_F77
3229     # ---------------
3230     AC_DEFUN([_LT_AC_LANG_F77],
3231     [AC_REQUIRE([AC_PROG_F77])
3232     _LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}F77])
3233     ])# _LT_AC_LANG_F77
3234    
3235    
3236     # AC_LIBTOOL_GCJ
3237     # --------------
3238     # enable support for GCJ libraries
3239     AC_DEFUN([AC_LIBTOOL_GCJ],
3240     [AC_REQUIRE([_LT_AC_LANG_GCJ])
3241     ])# AC_LIBTOOL_GCJ
3242    
3243    
3244     # _LT_AC_LANG_GCJ
3245     # ---------------
3246     AC_DEFUN([_LT_AC_LANG_GCJ],
3247     [AC_PROVIDE_IFELSE([AC_PROG_GCJ],[],
3248     [AC_PROVIDE_IFELSE([A][M_PROG_GCJ],[],
3249     [AC_PROVIDE_IFELSE([LT_AC_PROG_GCJ],[],
3250     [ifdef([AC_PROG_GCJ],[AC_REQUIRE([AC_PROG_GCJ])],
3251     [ifdef([A][M_PROG_GCJ],[AC_REQUIRE([A][M_PROG_GCJ])],
3252     [AC_REQUIRE([A][C_PROG_GCJ_OR_A][M_PROG_GCJ])])])])])])
3253     _LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}GCJ])
3254     ])# _LT_AC_LANG_GCJ
3255    
3256    
3257     # AC_LIBTOOL_RC
3258     # --------------
3259     # enable support for Windows resource files
3260     AC_DEFUN([AC_LIBTOOL_RC],
3261     [AC_REQUIRE([LT_AC_PROG_RC])
3262     _LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}RC])
3263     ])# AC_LIBTOOL_RC
3264    
3265    
3266     # AC_LIBTOOL_LANG_C_CONFIG
3267     # ------------------------
3268     # Ensure that the configuration vars for the C compiler are
3269     # suitably defined. Those variables are subsequently used by
3270     # AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
3271     AC_DEFUN([AC_LIBTOOL_LANG_C_CONFIG], [_LT_AC_LANG_C_CONFIG])
3272     AC_DEFUN([_LT_AC_LANG_C_CONFIG],
3273     [lt_save_CC="$CC"
3274     AC_LANG_PUSH(C)
3275    
3276     # Source file extension for C test sources.
3277     ac_ext=c
3278    
3279     # Object file extension for compiled C test sources.
3280     objext=o
3281     _LT_AC_TAGVAR(objext, $1)=$objext
3282    
3283     # Code to be used in simple compile tests
3284     lt_simple_compile_test_code="int some_variable = 0;\n"
3285    
3286     # Code to be used in simple link tests
3287     lt_simple_link_test_code='int main(){return(0);}\n'
3288    
3289     _LT_AC_SYS_COMPILER
3290    
3291     #
3292     # Check for any special shared library compilation flags.
3293     #
3294     _LT_AC_TAGVAR(lt_prog_cc_shlib, $1)=
3295     if test "$GCC" = no; then
3296     case $host_os in
3297     sco3.2v5*)
3298     _LT_AC_TAGVAR(lt_prog_cc_shlib, $1)='-belf'
3299     ;;
3300     esac
3301     fi
3302     if test -n "$_LT_AC_TAGVAR(lt_prog_cc_shlib, $1)"; then
3303     AC_MSG_WARN([`$CC' requires `$_LT_AC_TAGVAR(lt_prog_cc_shlib, $1)' to build shared libraries])
3304     if echo "$old_CC $old_CFLAGS " | grep "[[ ]]$_LT_AC_TAGVAR(lt_prog_cc_shlib, $1)[[ ]]" >/dev/null; then :
3305     else
3306     AC_MSG_WARN([add `$_LT_AC_TAGVAR(lt_prog_cc_shlib, $1)' to the CC or CFLAGS env variable and reconfigure])
3307     _LT_AC_TAGVAR(lt_cv_prog_cc_can_build_shared, $1)=no
3308     fi
3309     fi
3310    
3311    
3312     #
3313     # Check to make sure the static flag actually works.
3314     #
3315     AC_LIBTOOL_LINKER_OPTION([if $compiler static flag $_LT_AC_TAGVAR(lt_prog_compiler_static, $1) works],
3316     _LT_AC_TAGVAR(lt_prog_compiler_static_works, $1),
3317     $_LT_AC_TAGVAR(lt_prog_compiler_static, $1),
3318     [],
3319     [_LT_AC_TAGVAR(lt_prog_compiler_static, $1)=])
3320    
3321    
3322     AC_LIBTOOL_PROG_COMPILER_NO_RTTI($1)
3323     AC_LIBTOOL_PROG_COMPILER_PIC($1)
3324     AC_LIBTOOL_PROG_CC_C_O($1)
3325     AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1)
3326     AC_LIBTOOL_PROG_LD_SHLIBS($1)
3327     AC_LIBTOOL_SYS_DYNAMIC_LINKER($1)
3328     AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1)
3329     AC_LIBTOOL_SYS_LIB_STRIP
3330     AC_LIBTOOL_DLOPEN_SELF($1)
3331    
3332     # Report which librarie types wil actually be built
3333     AC_MSG_CHECKING([if libtool supports shared libraries])
3334     AC_MSG_RESULT([$can_build_shared])
3335    
3336     AC_MSG_CHECKING([whether to build shared libraries])
3337     test "$can_build_shared" = "no" && enable_shared=no
3338    
3339     # On AIX, shared libraries and static libraries use the same namespace, and
3340     # are all built from PIC.
3341     case "$host_os" in
3342     aix3*)
3343     test "$enable_shared" = yes && enable_static=no
3344     if test -n "$RANLIB"; then
3345     archive_cmds="$archive_cmds~\$RANLIB \$lib"
3346     postinstall_cmds='$RANLIB $lib'
3347     fi
3348     ;;
3349    
3350     aix4*)
3351     if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
3352     test "$enable_shared" = yes && enable_static=no
3353     fi
3354     ;;
3355     darwin* | rhapsody*)
3356     if test "$GCC" = yes; then
3357     _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
3358     case "$host_os" in
3359     rhapsody* | darwin1.[[012]])
3360     _LT_AC_TAGVAR(allow_undefined_flag, $1)='-undefined suppress'
3361     ;;
3362     *) # Darwin 1.3 on
3363     if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
3364     _LT_AC_TAGVAR(allow_undefined_flag, $1)='-flat_namespace -undefined suppress'
3365     else
3366     case ${MACOSX_DEPLOYMENT_TARGET} in
3367     10.[[012]])
3368     _LT_AC_TAGVAR(allow_undefined_flag, $1)='-flat_namespace -undefined suppress'
3369     ;;
3370     10.*)
3371     _LT_AC_TAGVAR(allow_undefined_flag, $1)='-undefined dynamic_lookup'
3372     ;;
3373     esac
3374     fi
3375     ;;
3376     esac
3377     output_verbose_link_cmd='echo'
3378     _LT_AC_TAGVAR(archive_cmds, $1)='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags -install_name $rpath/$soname $verstring'
3379     _LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
3380     # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
3381     _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
3382     _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}'
3383     _LT_AC_TAGVAR(hardcode_direct, $1)=no
3384     _LT_AC_TAGVAR(hardcode_automatic, $1)=yes
3385     _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
3386     _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='-all_load $convenience'
3387     _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
3388     else
3389     _LT_AC_TAGVAR(ld_shlibs, $1)=no
3390     fi
3391     ;;
3392     esac
3393     AC_MSG_RESULT([$enable_shared])
3394    
3395     AC_MSG_CHECKING([whether to build static libraries])
3396     # Make sure either enable_shared or enable_static is yes.
3397     test "$enable_shared" = yes || enable_static=yes
3398     AC_MSG_RESULT([$enable_static])
3399    
3400     AC_LIBTOOL_CONFIG($1)
3401    
3402     AC_LANG_POP
3403     CC="$lt_save_CC"
3404     ])# AC_LIBTOOL_LANG_C_CONFIG
3405    
3406    
3407     # AC_LIBTOOL_LANG_CXX_CONFIG
3408     # --------------------------
3409     # Ensure that the configuration vars for the C compiler are
3410     # suitably defined. Those variables are subsequently used by
3411     # AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
3412     AC_DEFUN([AC_LIBTOOL_LANG_CXX_CONFIG], [_LT_AC_LANG_CXX_CONFIG(CXX)])
3413     AC_DEFUN([_LT_AC_LANG_CXX_CONFIG],
3414     [AC_LANG_PUSH(C++)
3415     AC_REQUIRE([AC_PROG_CXX])
3416     AC_REQUIRE([AC_PROG_CXXCPP])
3417    
3418     _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
3419     _LT_AC_TAGVAR(allow_undefined_flag, $1)=
3420     _LT_AC_TAGVAR(always_export_symbols, $1)=no
3421     _LT_AC_TAGVAR(archive_expsym_cmds, $1)=
3422     _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)=
3423     _LT_AC_TAGVAR(hardcode_direct, $1)=no
3424     _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=
3425     _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
3426     _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
3427     _LT_AC_TAGVAR(hardcode_minus_L, $1)=no
3428     _LT_AC_TAGVAR(hardcode_automatic, $1)=no
3429     _LT_AC_TAGVAR(module_cmds, $1)=
3430     _LT_AC_TAGVAR(module_expsym_cmds, $1)=
3431     _LT_AC_TAGVAR(link_all_deplibs, $1)=unknown
3432     _LT_AC_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
3433     _LT_AC_TAGVAR(no_undefined_flag, $1)=
3434     _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
3435     _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=no
3436    
3437     # Dependencies to place before and after the object being linked:
3438     _LT_AC_TAGVAR(predep_objects, $1)=
3439     _LT_AC_TAGVAR(postdep_objects, $1)=
3440     _LT_AC_TAGVAR(predeps, $1)=
3441     _LT_AC_TAGVAR(postdeps, $1)=
3442     _LT_AC_TAGVAR(compiler_lib_search_path, $1)=
3443    
3444     # Source file extension for C++ test sources.
3445     ac_ext=cc
3446    
3447     # Object file extension for compiled C++ test sources.
3448     objext=o
3449     _LT_AC_TAGVAR(objext, $1)=$objext
3450    
3451     # Code to be used in simple compile tests
3452     lt_simple_compile_test_code="int some_variable = 0;\n"
3453    
3454     # Code to be used in simple link tests
3455     lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n'
3456    
3457     # ltmain only uses $CC for tagged configurations so make sure $CC is set.
3458     _LT_AC_SYS_COMPILER
3459    
3460     # Allow CC to be a program name with arguments.
3461     lt_save_CC=$CC
3462     lt_save_LD=$LD
3463     lt_save_GCC=$GCC
3464     GCC=$GXX
3465     lt_save_with_gnu_ld=$with_gnu_ld
3466     lt_save_path_LD=$lt_cv_path_LD
3467     if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
3468     lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
3469     else
3470     unset lt_cv_prog_gnu_ld
3471     fi
3472     if test -n "${lt_cv_path_LDCXX+set}"; then
3473     lt_cv_path_LD=$lt_cv_path_LDCXX
3474     else
3475     unset lt_cv_path_LD
3476     fi
3477     test -z "${LDCXX+set}" || LD=$LDCXX
3478     CC=${CXX-"c++"}
3479     compiler=$CC
3480     _LT_AC_TAGVAR(compiler, $1)=$CC
3481     cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
3482    
3483     # We don't want -fno-exception wen compiling C++ code, so set the
3484     # no_builtin_flag separately
3485     if test "$GXX" = yes; then
3486     _LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin'
3487     else
3488     _LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=
3489     fi
3490    
3491     if test "$GXX" = yes; then
3492     # Set up default GNU C++ configuration
3493    
3494     AC_PROG_LD
3495    
3496     # Check if GNU C++ uses GNU ld as the underlying linker, since the
3497     # archiving commands below assume that GNU ld is being used.
3498     if test "$with_gnu_ld" = yes; then
3499     _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
3500     _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'
3501    
3502     _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir'
3503     _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
3504    
3505     # If archive_cmds runs LD, not CC, wlarc should be empty
3506     # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
3507     # investigate it a little bit more. (MM)
3508     wlarc='${wl}'
3509    
3510     # ancient GNU ld didn't support --whole-archive et. al.
3511     if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
3512     grep 'no-whole-archive' > /dev/null; then
3513     _LT_AC_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
3514     else
3515     _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
3516     fi
3517     else
3518     with_gnu_ld=no
3519     wlarc=
3520    
3521     # A generic and very simple default shared library creation
3522     # command for GNU C++ for the case where it uses the native
3523     # linker, instead of GNU ld. If possible, this setting should
3524     # overridden to take advantage of the native linker features on
3525     # the platform it is being used on.
3526     _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
3527     fi
3528    
3529     # Commands to make compiler produce verbose output that lists
3530     # what "hidden" libraries, object files and flags are used when
3531     # linking a shared library.
3532     output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
3533    
3534     else
3535     GXX=no
3536     with_gnu_ld=no
3537     wlarc=
3538     fi
3539    
3540     # PORTME: fill in a description of your system's C++ link characteristics
3541     AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries])
3542     _LT_AC_TAGVAR(ld_shlibs, $1)=yes
3543     case $host_os in
3544     aix3*)
3545     # FIXME: insert proper C++ library support
3546     _LT_AC_TAGVAR(ld_shlibs, $1)=no
3547     ;;
3548     aix4* | aix5*)
3549     if test "$host_cpu" = ia64; then
3550     # On IA64, the linker does run time linking by default, so we don't
3551     # have to do anything special.
3552     aix_use_runtimelinking=no
3553     exp_sym_flag='-Bexport'
3554     no_entry_flag=""
3555     else
3556     aix_use_runtimelinking=no
3557    
3558     # Test if we are trying to use run time linking or normal
3559     # AIX style linking. If -brtl is somewhere in LDFLAGS, we
3560     # need to do runtime linking.
3561     case $host_os in aix4.[[23]]|aix4.[[23]].*|aix5*)
3562     for ld_flag in $LDFLAGS; do
3563     case $ld_flag in
3564     *-brtl*)
3565     aix_use_runtimelinking=yes
3566     break
3567     ;;
3568     esac
3569     done
3570     esac
3571    
3572     exp_sym_flag='-bexport'
3573     no_entry_flag='-bnoentry'
3574     fi
3575    
3576     # When large executables or shared objects are built, AIX ld can
3577     # have problems creating the table of contents. If linking a library
3578     # or program results in "error TOC overflow" add -mminimal-toc to
3579     # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
3580     # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
3581    
3582     _LT_AC_TAGVAR(archive_cmds, $1)=''
3583     _LT_AC_TAGVAR(hardcode_direct, $1)=yes
3584     _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=':'
3585     _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
3586    
3587     if test "$GXX" = yes; then
3588     case $host_os in aix4.[012]|aix4.[012].*)
3589     # We only want to do this on AIX 4.2 and lower, the check
3590     # below for broken collect2 doesn't work under 4.3+
3591     collect2name=`${CC} -print-prog-name=collect2`
3592     if test -f "$collect2name" && \
3593     strings "$collect2name" | grep resolve_lib_name >/dev/null
3594     then
3595     # We have reworked collect2
3596     _LT_AC_TAGVAR(hardcode_direct, $1)=yes
3597     else
3598     # We have old collect2
3599     _LT_AC_TAGVAR(hardcode_direct, $1)=unsupported
3600     # It fails to find uninstalled libraries when the uninstalled
3601     # path is not listed in the libpath. Setting hardcode_minus_L
3602     # to unsupported forces relinking
3603     _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
3604     _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
3605     _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
3606     fi
3607     esac
3608     shared_flag='-shared'
3609     else
3610     # not using gcc
3611     if test "$host_cpu" = ia64; then
3612     # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
3613     # chokes on -Wl,-G. The following line is correct:
3614     shared_flag='-G'
3615     else
3616     if test "$aix_use_runtimelinking" = yes; then
3617     shared_flag='${wl}-G'
3618     else
3619     shared_flag='${wl}-bM:SRE'
3620     fi
3621     fi
3622     fi
3623    
3624     # It seems that -bexpall does not export symbols beginning with
3625     # underscore (_), so it is better to generate a list of symbols to export.
3626     _LT_AC_TAGVAR(always_export_symbols, $1)=yes
3627     if test "$aix_use_runtimelinking" = yes; then
3628     # Warning - without using the other runtime loading flags (-brtl),
3629     # -berok will link without error, but may produce a broken library.
3630     _LT_AC_TAGVAR(allow_undefined_flag, $1)='-berok'
3631     # Determine the default libpath from the value encoded in an empty executable.
3632     _LT_AC_SYS_LIBPATH_AIX
3633     _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
3634    
3635     _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
3636     else
3637     if test "$host_cpu" = ia64; then
3638     _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib'
3639     _LT_AC_TAGVAR(allow_undefined_flag, $1)="-z nodefs"
3640     _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
3641     else
3642     # Determine the default libpath from the value encoded in an empty executable.
3643     _LT_AC_SYS_LIBPATH_AIX
3644     _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
3645     # Warning - without using the other run time loading flags,
3646     # -berok will link without error, but may produce a broken library.
3647     _LT_AC_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok'
3648     _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok'
3649     # -bexpall does not export symbols beginning with underscore (_)
3650     _LT_AC_TAGVAR(always_export_symbols, $1)=yes
3651     # Exported symbols can be pulled into shared objects from archives
3652     _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=' '
3653     _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes
3654     # This is similar to how AIX traditionally builds it's shared libraries.
3655     _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
3656     fi
3657     fi
3658     ;;
3659     chorus*)
3660     case $cc_basename in
3661     *)
3662     # FIXME: insert proper C++ library support
3663     _LT_AC_TAGVAR(ld_shlibs, $1)=no
3664     ;;
3665     esac
3666     ;;
3667    
3668     cygwin* | mingw* | pw32*)
3669     # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless,
3670     # as there is no search path for DLLs.
3671     _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
3672     _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
3673     _LT_AC_TAGVAR(always_export_symbols, $1)=no
3674     _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
3675    
3676     if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
3677     _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
3678     # If the export-symbols file already is a .def file (1st line
3679     # is EXPORTS), use it as is; otherwise, prepend...
3680     _LT_AC_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
3681     cp $export_symbols $output_objdir/$soname.def;
3682     else
3683     echo EXPORTS > $output_objdir/$soname.def;
3684     cat $export_symbols >> $output_objdir/$soname.def;
3685     fi~
3686     $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
3687     else
3688     _LT_AC_TAGVAR(ld_shlibs, $1)=no
3689     fi
3690     ;;
3691    
3692     darwin* | rhapsody*)
3693     if test "$GXX" = yes; then
3694     _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
3695     case "$host_os" in
3696     rhapsody* | darwin1.[[012]])
3697     _LT_AC_TAGVAR(allow_undefined_flag, $1)='-undefined suppress'
3698     ;;
3699     *) # Darwin 1.3 on
3700     if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
3701     _LT_AC_TAGVAR(allow_undefined_flag, $1)='-flat_namespace -undefined suppress'
3702     else
3703     case ${MACOSX_DEPLOYMENT_TARGET} in
3704     10.[[012]])
3705     _LT_AC_TAGVAR(allow_undefined_flag, $1)='-flat_namespace -undefined suppress'
3706     ;;
3707     10.*)
3708     _LT_AC_TAGVAR(allow_undefined_flag, $1)='-undefined dynamic_lookup'
3709     ;;
3710     esac
3711     fi
3712     ;;
3713     esac
3714     lt_int_apple_cc_single_mod=no
3715     output_verbose_link_cmd='echo'
3716     if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
3717     lt_int_apple_cc_single_mod=yes
3718     fi
3719     if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
3720     _LT_AC_TAGVAR(archive_cmds, $1)='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
3721     else
3722     _LT_AC_TAGVAR(archive_cmds, $1)='$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
3723     fi
3724     _LT_AC_TAGVAR(module_cmds, $1)='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
3725    
3726     # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
3727     if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
3728     _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}'
3729     else
3730     _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
3731     fi
3732     _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}'
3733     _LT_AC_TAGVAR(hardcode_direct, $1)=no
3734     _LT_AC_TAGVAR(hardcode_automatic, $1)=yes
3735     _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
3736     _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='-all_load $convenience'
3737     _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
3738     else
3739     _LT_AC_TAGVAR(ld_shlibs, $1)=no
3740     fi
3741     ;;
3742    
3743     dgux*)
3744     case $cc_basename in
3745     ec++)
3746     # FIXME: insert proper C++ library support
3747     _LT_AC_TAGVAR(ld_shlibs, $1)=no
3748     ;;
3749     ghcx)
3750     # Green Hills C++ Compiler
3751     # FIXME: insert proper C++ library support
3752     _LT_AC_TAGVAR(ld_shlibs, $1)=no
3753     ;;
3754     *)
3755     # FIXME: insert proper C++ library support
3756     _LT_AC_TAGVAR(ld_shlibs, $1)=no
3757     ;;
3758     esac
3759     ;;
3760     freebsd[12]*)
3761     # C++ shared libraries reported to be fairly broken before switch to ELF
3762     _LT_AC_TAGVAR(ld_shlibs, $1)=no
3763     ;;
3764     freebsd-elf*)
3765     _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
3766     ;;
3767     freebsd* | kfreebsd*-gnu)
3768     # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
3769     # conventions
3770     _LT_AC_TAGVAR(ld_shlibs, $1)=yes
3771     ;;
3772     gnu*)
3773     ;;
3774     hpux9*)
3775     _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
3776     _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
3777     _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
3778     _LT_AC_TAGVAR(hardcode_direct, $1)=yes
3779     _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH,
3780     # but as the default
3781     # location of the library.
3782    
3783     case $cc_basename in
3784     CC)
3785     # FIXME: insert proper C++ library support
3786     _LT_AC_TAGVAR(ld_shlibs, $1)=no
3787     ;;
3788     aCC)
3789     _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'
3790     # Commands to make compiler produce verbose output that lists
3791     # what "hidden" libraries, object files and flags are used when
3792     # linking a shared library.
3793     #
3794     # There doesn't appear to be a way to prevent this compiler from
3795     # explicitly linking system object files so we need to strip them
3796     # from the output so that they don't get included in the library
3797     # dependencies.
3798     output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | egrep "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
3799     ;;
3800     *)
3801     if test "$GXX" = yes; then
3802     _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'
3803     else
3804     # FIXME: insert proper C++ library support
3805     _LT_AC_TAGVAR(ld_shlibs, $1)=no
3806     fi
3807     ;;
3808     esac
3809     ;;
3810     hpux10*|hpux11*)
3811     if test $with_gnu_ld = no; then
3812     case "$host_cpu" in
3813     hppa*64*)
3814     _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
3815     _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='+b $libdir'
3816     _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
3817     ;;
3818     ia64*)
3819     _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
3820     ;;
3821     *)
3822     _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
3823     _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
3824     _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
3825     ;;
3826     esac
3827     fi
3828     case "$host_cpu" in
3829     hppa*64*)
3830     _LT_AC_TAGVAR(hardcode_direct, $1)=no
3831     _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
3832     ;;
3833     ia64*)
3834     _LT_AC_TAGVAR(hardcode_direct, $1)=no
3835     _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
3836     _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH,
3837     # but as the default
3838     # location of the library.
3839     ;;
3840     *)
3841     _LT_AC_TAGVAR(hardcode_direct, $1)=yes
3842     _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH,
3843     # but as the default
3844     # location of the library.
3845     ;;
3846     esac
3847    
3848     case $cc_basename in
3849     CC)
3850     # FIXME: insert proper C++ library support
3851     _LT_AC_TAGVAR(ld_shlibs, $1)=no
3852     ;;
3853     aCC)
3854     case "$host_cpu" in
3855     hppa*64*|ia64*)
3856     _LT_AC_TAGVAR(archive_cmds, $1)='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
3857     ;;
3858     *)
3859     _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'
3860     ;;
3861     esac
3862     # Commands to make compiler produce verbose output that lists
3863     # what "hidden" libraries, object files and flags are used when
3864     # linking a shared library.
3865     #
3866     # There doesn't appear to be a way to prevent this compiler from
3867     # explicitly linking system object files so we need to strip them
3868     # from the output so that they don't get included in the library
3869     # dependencies.
3870     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'
3871     ;;
3872     *)
3873     if test "$GXX" = yes; then
3874     if test $with_gnu_ld = no; then
3875     case "$host_cpu" in
3876     ia64*|hppa*64*)
3877     _LT_AC_TAGVAR(archive_cmds, $1)='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
3878     ;;
3879     *)
3880     _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'
3881     ;;
3882     esac
3883     fi
3884     else
3885     # FIXME: insert proper C++ library support
3886     _LT_AC_TAGVAR(ld_shlibs, $1)=no
3887     fi
3888     ;;
3889     esac
3890     ;;
3891     irix5* | irix6*)
3892     case $cc_basename in
3893     CC)
3894     # SGI C++
3895     _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib'
3896    
3897     # Archives containing C++ object files must be created using
3898     # "CC -ar", where "CC" is the IRIX C++ compiler. This is
3899     # necessary to make sure instantiated templates are included
3900     # in the archive.
3901     _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -ar -WR,-u -o $oldlib $oldobjs'
3902     ;;
3903     *)
3904     if test "$GXX" = yes; then
3905     if test "$with_gnu_ld" = no; then
3906     _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${objdir}/so_locations -o $lib'
3907     else
3908     _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'
3909     fi
3910     fi
3911     _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
3912     ;;
3913     esac
3914     _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
3915     _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
3916     ;;
3917     linux*)
3918     case $cc_basename in
3919     KCC)
3920     # Kuck and Associates, Inc. (KAI) C++ Compiler
3921    
3922     # KCC will only create a shared library if the output file
3923     # ends with ".so" (or ".sl" for HP-UX), so rename the library
3924     # to its proper name (with version) after linking.
3925     _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'
3926     _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'
3927     # Commands to make compiler produce verbose output that lists
3928     # what "hidden" libraries, object files and flags are used when
3929     # linking a shared library.
3930     #
3931     # There doesn't appear to be a way to prevent this compiler from
3932     # explicitly linking system object files so we need to strip them
3933     # from the output so that they don't get included in the library
3934     # dependencies.
3935     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'
3936    
3937     _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath,$libdir'
3938     _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
3939    
3940     # Archives containing C++ object files must be created using
3941     # "CC -Bstatic", where "CC" is the KAI C++ compiler.
3942     _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs'
3943     ;;
3944     icpc)
3945     # Intel C++
3946     with_gnu_ld=yes
3947     _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
3948     _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
3949     _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'
3950     _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
3951     _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
3952     _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
3953     ;;
3954     cxx)
3955     # Compaq C++
3956     _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
3957     _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'
3958    
3959     runpath_var=LD_RUN_PATH
3960     _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
3961     _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
3962    
3963     # Commands to make compiler produce verbose output that lists
3964     # what "hidden" libraries, object files and flags are used when
3965     # linking a shared library.
3966     #
3967     # There doesn't appear to be a way to prevent this compiler from
3968     # explicitly linking system object files so we need to strip them
3969     # from the output so that they don't get included in the library
3970     # dependencies.
3971     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'
3972     ;;
3973     esac
3974     ;;
3975     lynxos*)
3976     # FIXME: insert proper C++ library support
3977     _LT_AC_TAGVAR(ld_shlibs, $1)=no
3978     ;;
3979     m88k*)
3980     # FIXME: insert proper C++ library support
3981     _LT_AC_TAGVAR(ld_shlibs, $1)=no
3982     ;;
3983     mvs*)
3984     case $cc_basename in
3985     cxx)
3986     # FIXME: insert proper C++ library support
3987     _LT_AC_TAGVAR(ld_shlibs, $1)=no
3988     ;;
3989     *)
3990     # FIXME: insert proper C++ library support
3991     _LT_AC_TAGVAR(ld_shlibs, $1)=no
3992     ;;
3993     esac
3994     ;;
3995     netbsd*)
3996     if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
3997     _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
3998     wlarc=
3999     _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
4000     _LT_AC_TAGVAR(hardcode_direct, $1)=yes
4001     _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
4002     fi
4003     # Workaround some broken pre-1.5 toolchains
4004     output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
4005     ;;
4006     osf3*)
4007     case $cc_basename in
4008     KCC)
4009     # Kuck and Associates, Inc. (KAI) C++ Compiler
4010    
4011     # KCC will only create a shared library if the output file
4012     # ends with ".so" (or ".sl" for HP-UX), so rename the library
4013     # to its proper name (with version) after linking.
4014     _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'
4015    
4016     _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
4017     _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
4018    
4019     # Archives containing C++ object files must be created using
4020     # "CC -Bstatic", where "CC" is the KAI C++ compiler.
4021     _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs'
4022    
4023     ;;
4024     RCC)
4025     # Rational C++ 2.4.1
4026     # FIXME: insert proper C++ library support
4027     _LT_AC_TAGVAR(ld_shlibs, $1)=no
4028     ;;
4029     cxx)
4030     _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
4031     _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && echo ${wl}-set_version $verstring` -update_registry ${objdir}/so_locations -o $lib'
4032    
4033     _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
4034     _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
4035    
4036     # Commands to make compiler produce verbose output that lists
4037     # what "hidden" libraries, object files and flags are used when
4038     # linking a shared library.
4039     #
4040     # There doesn't appear to be a way to prevent this compiler from
4041     # explicitly linking system object files so we need to strip them
4042     # from the output so that they don't get included in the library
4043     # dependencies.
4044     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'
4045     ;;
4046     *)
4047     if test "$GXX" = yes && test "$with_gnu_ld" = no; then
4048     _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
4049     _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${objdir}/so_locations -o $lib'
4050    
4051     _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
4052     _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
4053    
4054     # Commands to make compiler produce verbose output that lists
4055     # what "hidden" libraries, object files and flags are used when
4056     # linking a shared library.
4057     output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
4058    
4059     else
4060     # FIXME: insert proper C++ library support
4061     _LT_AC_TAGVAR(ld_shlibs, $1)=no
4062     fi
4063     ;;
4064     esac
4065     ;;
4066     osf4* | osf5*)
4067     case $cc_basename in
4068     KCC)
4069     # Kuck and Associates, Inc. (KAI) C++ Compiler
4070    
4071     # KCC will only create a shared library if the output file
4072     # ends with ".so" (or ".sl" for HP-UX), so rename the library
4073     # to its proper name (with version) after linking.
4074     _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'
4075    
4076     _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
4077     _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
4078    
4079     # Archives containing C++ object files must be created using
4080     # the KAI C++ compiler.
4081     _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -o $oldlib $oldobjs'
4082     ;;
4083     RCC)
4084     # Rational C++ 2.4.1
4085     # FIXME: insert proper C++ library support
4086     _LT_AC_TAGVAR(ld_shlibs, $1)=no
4087     ;;
4088     cxx)
4089     _LT_AC_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
4090     _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib'
4091     _LT_AC_TAGVAR(archive_expsym_cmds, $1)='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
4092     echo "-hidden">> $lib.exp~
4093     $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname -Wl,-input -Wl,$lib.exp `test -n "$verstring" && echo -set_version $verstring` -update_registry $objdir/so_locations -o $lib~
4094     $rm $lib.exp'
4095    
4096     _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
4097     _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
4098    
4099     # Commands to make compiler produce verbose output that lists
4100     # what "hidden" libraries, object files and flags are used when
4101     # linking a shared library.
4102     #
4103     # There doesn't appear to be a way to prevent this compiler from
4104     # explicitly linking system object files so we need to strip them
4105     # from the output so that they don't get included in the library
4106     # dependencies.
4107     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'
4108     ;;
4109     *)
4110     if test "$GXX" = yes && test "$with_gnu_ld" = no; then
4111     _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
4112     _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${objdir}/so_locations -o $lib'
4113    
4114     _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
4115     _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
4116    
4117     # Commands to make compiler produce verbose output that lists
4118     # what "hidden" libraries, object files and flags are used when
4119     # linking a shared library.
4120     output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
4121    
4122     else
4123     # FIXME: insert proper C++ library support
4124     _LT_AC_TAGVAR(ld_shlibs, $1)=no
4125     fi
4126     ;;
4127     esac
4128     ;;
4129     psos*)
4130     # FIXME: insert proper C++ library support
4131     _LT_AC_TAGVAR(ld_shlibs, $1)=no
4132     ;;
4133     sco*)
4134     _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
4135     case $cc_basename in
4136     CC)
4137     # FIXME: insert proper C++ library support
4138     _LT_AC_TAGVAR(ld_shlibs, $1)=no
4139     ;;
4140     *)
4141     # FIXME: insert proper C++ library support
4142     _LT_AC_TAGVAR(ld_shlibs, $1)=no
4143     ;;
4144     esac
4145     ;;
4146     sunos4*)
4147     case $cc_basename in
4148     CC)
4149     # Sun C++ 4.x
4150     # FIXME: insert proper C++ library support
4151     _LT_AC_TAGVAR(ld_shlibs, $1)=no
4152     ;;
4153     lcc)
4154     # Lucid
4155     # FIXME: insert proper C++ library support
4156     _LT_AC_TAGVAR(ld_shlibs, $1)=no
4157     ;;
4158     *)
4159     # FIXME: insert proper C++ library support
4160     _LT_AC_TAGVAR(ld_shlibs, $1)=no
4161     ;;
4162     esac
4163     ;;
4164     solaris*)
4165     case $cc_basename in
4166     CC)
4167     # Sun C++ 4.2, 5.x and Centerline C++
4168     _LT_AC_TAGVAR(no_undefined_flag, $1)=' -zdefs'
4169     _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -nolib -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
4170     _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
4171     $CC -G${allow_undefined_flag} -nolib ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
4172    
4173     _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
4174     _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
4175     case $host_os in
4176     solaris2.[0-5] | solaris2.[0-5].*) ;;
4177     *)
4178     # The C++ compiler is used as linker so we must use $wl
4179     # flag to pass the commands to the underlying system
4180     # linker.
4181     # Supported since Solaris 2.6 (maybe 2.5.1?)
4182     _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
4183     ;;
4184     esac
4185     _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
4186    
4187     # Commands to make compiler produce verbose output that lists
4188     # what "hidden" libraries, object files and flags are used when
4189     # linking a shared library.
4190     #
4191     # There doesn't appear to be a way to prevent this compiler from
4192     # explicitly linking system object files so we need to strip them
4193     # from the output so that they don't get included in the library
4194     # dependencies.
4195     output_verbose_link_cmd='templist=`$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep "\-[[LR]]"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
4196    
4197     # Archives containing C++ object files must be created using
4198     # "CC -xar", where "CC" is the Sun C++ compiler. This is
4199     # necessary to make sure instantiated templates are included
4200     # in the archive.
4201     _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs'
4202     ;;
4203     gcx)
4204     # Green Hills C++ Compiler
4205     _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
4206    
4207     # The C++ compiler must be used to create the archive.
4208     _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
4209     ;;
4210     *)
4211     # GNU C++ compiler with Solaris linker
4212     if test "$GXX" = yes && test "$with_gnu_ld" = no; then
4213     _LT_AC_TAGVAR(no_undefined_flag, $1)=' ${wl}-z ${wl}defs'
4214     if $CC --version | grep -v '^2\.7' > /dev/null; then
4215     _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
4216     _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
4217     $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
4218    
4219     # Commands to make compiler produce verbose output that lists
4220     # what "hidden" libraries, object files and flags are used when
4221     # linking a shared library.
4222     output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
4223     else
4224     # g++ 2.7 appears to require `-G' NOT `-shared' on this
4225     # platform.
4226     _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
4227     _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
4228     $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
4229    
4230     # Commands to make compiler produce verbose output that lists
4231     # what "hidden" libraries, object files and flags are used when
4232     # linking a shared library.
4233     output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
4234     fi
4235    
4236     _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $wl$libdir'
4237     fi
4238     ;;
4239     esac
4240     ;;
4241     sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[[78]]* | unixware7*)
4242     _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
4243     ;;
4244     tandem*)
4245     case $cc_basename in
4246     NCC)
4247     # NonStop-UX NCC 3.20
4248     # FIXME: insert proper C++ library support
4249     _LT_AC_TAGVAR(ld_shlibs, $1)=no
4250     ;;
4251     *)
4252     # FIXME: insert proper C++ library support
4253     _LT_AC_TAGVAR(ld_shlibs, $1)=no
4254     ;;
4255     esac
4256     ;;
4257     vxworks*)
4258     # FIXME: insert proper C++ library support
4259     _LT_AC_TAGVAR(ld_shlibs, $1)=no
4260     ;;
4261     *)
4262     # FIXME: insert proper C++ library support
4263     _LT_AC_TAGVAR(ld_shlibs, $1)=no
4264     ;;
4265     esac
4266     AC_MSG_RESULT([$_LT_AC_TAGVAR(ld_shlibs, $1)])
4267     test "$_LT_AC_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no
4268    
4269     _LT_AC_TAGVAR(GCC, $1)="$GXX"
4270     _LT_AC_TAGVAR(LD, $1)="$LD"
4271    
4272     AC_LIBTOOL_POSTDEP_PREDEP($1)
4273     AC_LIBTOOL_PROG_COMPILER_PIC($1)
4274     AC_LIBTOOL_PROG_CC_C_O($1)
4275     AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1)
4276     AC_LIBTOOL_PROG_LD_SHLIBS($1)
4277     AC_LIBTOOL_SYS_DYNAMIC_LINKER($1)
4278     AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1)
4279     AC_LIBTOOL_SYS_LIB_STRIP
4280     AC_LIBTOOL_DLOPEN_SELF($1)
4281    
4282     AC_LIBTOOL_CONFIG($1)
4283    
4284     AC_LANG_POP
4285     CC=$lt_save_CC
4286     LDCXX=$LD
4287     LD=$lt_save_LD
4288     GCC=$lt_save_GCC
4289     with_gnu_ldcxx=$with_gnu_ld
4290     with_gnu_ld=$lt_save_with_gnu_ld
4291     lt_cv_path_LDCXX=$lt_cv_path_LD
4292     lt_cv_path_LD=$lt_save_path_LD
4293     lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
4294     lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
4295     ])# AC_LIBTOOL_LANG_CXX_CONFIG
4296    
4297     # AC_LIBTOOL_POSTDEP_PREDEP([TAGNAME])
4298     # ------------------------
4299     # Figure out "hidden" library dependencies from verbose
4300     # compiler output when linking a shared library.
4301     # Parse the compiler output and extract the necessary
4302     # objects, libraries and library flags.
4303     AC_DEFUN([AC_LIBTOOL_POSTDEP_PREDEP],[
4304     dnl we can't use the lt_simple_compile_test_code here,
4305     dnl because it contains code intended for an executable,
4306     dnl not a library. It's possible we should let each
4307     dnl tag define a new lt_????_link_test_code variable,
4308     dnl but it's only used here...
4309     ifelse([$1],[],[cat > conftest.$ac_ext <<EOF
4310     int a;
4311     void foo (void) { a = 0; }
4312     EOF
4313     ],[$1],[CXX],[cat > conftest.$ac_ext <<EOF
4314     class Foo
4315     {
4316     public:
4317     Foo (void) { a = 0; }
4318     private:
4319     int a;
4320     };
4321     EOF
4322     ],[$1],[F77],[cat > conftest.$ac_ext <<EOF
4323     subroutine foo
4324     implicit none
4325     integer*4 a
4326     a=0
4327     return
4328     end
4329     EOF
4330     ],[$1],[GCJ],[cat > conftest.$ac_ext <<EOF
4331     public class foo {
4332     private int a;
4333     public void bar (void) {
4334     a = 0;
4335     }
4336     };
4337     EOF
4338     ])
4339     dnl Parse the compiler output and extract the necessary
4340     dnl objects, libraries and library flags.
4341     if AC_TRY_EVAL(ac_compile); then
4342     # Parse the compiler output and extract the necessary
4343     # objects, libraries and library flags.
4344    
4345     # Sentinel used to keep track of whether or not we are before
4346     # the conftest object file.
4347     pre_test_object_deps_done=no
4348    
4349     # The `*' in the case matches for architectures that use `case' in
4350     # $output_verbose_cmd can trigger glob expansion during the loop
4351     # eval without this substitution.
4352     output_verbose_link_cmd="`$echo \"X$output_verbose_link_cmd\" | $Xsed -e \"$no_glob_subst\"`"
4353    
4354     for p in `eval $output_verbose_link_cmd`; do
4355     case $p in
4356    
4357     -L* | -R* | -l*)
4358     # Some compilers place space between "-{L,R}" and the path.
4359     # Remove the space.
4360     if test $p = "-L" \
4361     || test $p = "-R"; then
4362     prev=$p
4363     continue
4364     else
4365     prev=
4366     fi
4367    
4368     if test "$pre_test_object_deps_done" = no; then
4369     case $p in
4370     -L* | -R*)
4371     # Internal compiler library paths should come after those
4372     # provided the user. The postdeps already come after the
4373     # user supplied libs so there is no need to process them.
4374     if test -z "$_LT_AC_TAGVAR(compiler_lib_search_path, $1)"; then
4375     _LT_AC_TAGVAR(compiler_lib_search_path, $1)="${prev}${p}"
4376     else
4377     _LT_AC_TAGVAR(compiler_lib_search_path, $1)="${_LT_AC_TAGVAR(compiler_lib_search_path, $1)} ${prev}${p}"
4378     fi
4379     ;;
4380     # The "-l" case would never come before the object being
4381     # linked, so don't bother handling this case.
4382     esac
4383     else
4384     if test -z "$_LT_AC_TAGVAR(postdeps, $1)"; then
4385     _LT_AC_TAGVAR(postdeps, $1)="${prev}${p}"
4386     else
4387     _LT_AC_TAGVAR(postdeps, $1)="${_LT_AC_TAGVAR(postdeps, $1)} ${prev}${p}"
4388     fi
4389     fi
4390     ;;
4391    
4392     *.$objext)
4393     # This assumes that the test object file only shows up
4394     # once in the compiler output.
4395     if test "$p" = "conftest.$objext"; then
4396     pre_test_object_deps_done=yes
4397     continue
4398     fi
4399    
4400     if test "$pre_test_object_deps_done" = no; then
4401     if test -z "$_LT_AC_TAGVAR(predep_objects, $1)"; then
4402     _LT_AC_TAGVAR(predep_objects, $1)="$p"
4403     else
4404     _LT_AC_TAGVAR(predep_objects, $1)="$_LT_AC_TAGVAR(predep_objects, $1) $p"
4405     fi
4406     else
4407     if test -z "$_LT_AC_TAGVAR(postdep_objects, $1)"; then
4408     _LT_AC_TAGVAR(postdep_objects, $1)="$p"
4409     else
4410     _LT_AC_TAGVAR(postdep_objects, $1)="$_LT_AC_TAGVAR(postdep_objects, $1) $p"
4411     fi
4412     fi
4413     ;;
4414    
4415     *) ;; # Ignore the rest.
4416    
4417     esac
4418     done
4419    
4420     # Clean up.
4421     rm -f a.out a.exe
4422     else
4423     echo "libtool.m4: error: problem compiling $1 test program"
4424     fi
4425    
4426     $rm -f confest.$objext
4427    
4428     case " $_LT_AC_TAGVAR(postdeps, $1) " in
4429     *" -lc "*) _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no ;;
4430     esac
4431     ])# AC_LIBTOOL_POSTDEP_PREDEP
4432    
4433     # AC_LIBTOOL_LANG_F77_CONFIG
4434     # ------------------------
4435     # Ensure that the configuration vars for the C compiler are
4436     # suitably defined. Those variables are subsequently used by
4437     # AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
4438     AC_DEFUN([AC_LIBTOOL_LANG_F77_CONFIG], [_LT_AC_LANG_F77_CONFIG(F77)])
4439     AC_DEFUN([_LT_AC_LANG_F77_CONFIG],
4440     [AC_REQUIRE([AC_PROG_F77])
4441     AC_LANG_PUSH(Fortran 77)
4442    
4443     _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
4444     _LT_AC_TAGVAR(allow_undefined_flag, $1)=
4445     _LT_AC_TAGVAR(always_export_symbols, $1)=no
4446     _LT_AC_TAGVAR(archive_expsym_cmds, $1)=
4447     _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)=
4448     _LT_AC_TAGVAR(hardcode_direct, $1)=no
4449     _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=
4450     _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
4451     _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
4452     _LT_AC_TAGVAR(hardcode_minus_L, $1)=no
4453     _LT_AC_TAGVAR(hardcode_automatic, $1)=no
4454     _LT_AC_TAGVAR(module_cmds, $1)=
4455     _LT_AC_TAGVAR(module_expsym_cmds, $1)=
4456     _LT_AC_TAGVAR(link_all_deplibs, $1)=unknown
4457     _LT_AC_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
4458     _LT_AC_TAGVAR(no_undefined_flag, $1)=
4459     _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
4460     _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=no
4461    
4462     # Source file extension for f77 test sources.
4463     ac_ext=f
4464    
4465     # Object file extension for compiled f77 test sources.
4466     objext=o
4467     _LT_AC_TAGVAR(objext, $1)=$objext
4468    
4469     # Code to be used in simple compile tests
4470     lt_simple_compile_test_code=" subroutine t\n return\n end\n"
4471    
4472     # Code to be used in simple link tests
4473     lt_simple_link_test_code=" program t\n end\n"
4474    
4475     # ltmain only uses $CC for tagged configurations so make sure $CC is set.
4476     _LT_AC_SYS_COMPILER
4477    
4478     # Allow CC to be a program name with arguments.
4479     lt_save_CC="$CC"
4480     CC=${F77-"f77"}
4481     compiler=$CC
4482     _LT_AC_TAGVAR(compiler, $1)=$CC
4483     cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
4484    
4485     AC_MSG_CHECKING([if libtool supports shared libraries])
4486     AC_MSG_RESULT([$can_build_shared])
4487    
4488     AC_MSG_CHECKING([whether to build shared libraries])
4489     test "$can_build_shared" = "no" && enable_shared=no
4490    
4491     # On AIX, shared libraries and static libraries use the same namespace, and
4492     # are all built from PIC.
4493     case "$host_os" in
4494     aix3*)
4495     test "$enable_shared" = yes && enable_static=no
4496     if test -n "$RANLIB"; then
4497     archive_cmds="$archive_cmds~\$RANLIB \$lib"
4498     postinstall_cmds='$RANLIB $lib'
4499     fi
4500     ;;
4501     aix4*)
4502     test "$enable_shared" = yes && enable_static=no
4503     ;;
4504     esac
4505     AC_MSG_RESULT([$enable_shared])
4506    
4507     AC_MSG_CHECKING([whether to build static libraries])
4508     # Make sure either enable_shared or enable_static is yes.
4509     test "$enable_shared" = yes || enable_static=yes
4510     AC_MSG_RESULT([$enable_static])
4511    
4512     test "$_LT_AC_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no
4513    
4514     _LT_AC_TAGVAR(GCC, $1)="$G77"
4515     _LT_AC_TAGVAR(LD, $1)="$LD"
4516    
4517     AC_LIBTOOL_PROG_COMPILER_PIC($1)
4518     AC_LIBTOOL_PROG_CC_C_O($1)
4519     AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1)
4520     AC_LIBTOOL_PROG_LD_SHLIBS($1)
4521     AC_LIBTOOL_SYS_DYNAMIC_LINKER($1)
4522     AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1)
4523     AC_LIBTOOL_SYS_LIB_STRIP
4524    
4525    
4526     AC_LIBTOOL_CONFIG($1)
4527    
4528     AC_LANG_POP
4529     CC="$lt_save_CC"
4530     ])# AC_LIBTOOL_LANG_F77_CONFIG
4531    
4532    
4533     # AC_LIBTOOL_LANG_GCJ_CONFIG
4534     # --------------------------
4535     # Ensure that the configuration vars for the C compiler are
4536     # suitably defined. Those variables are subsequently used by
4537     # AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
4538     AC_DEFUN([AC_LIBTOOL_LANG_GCJ_CONFIG], [_LT_AC_LANG_GCJ_CONFIG(GCJ)])
4539     AC_DEFUN([_LT_AC_LANG_GCJ_CONFIG],
4540     [AC_LANG_SAVE
4541    
4542     # Source file extension for Java test sources.
4543     ac_ext=java
4544    
4545     # Object file extension for compiled Java test sources.
4546     objext=o
4547     _LT_AC_TAGVAR(objext, $1)=$objext
4548    
4549     # Code to be used in simple compile tests
4550     lt_simple_compile_test_code="class foo {}\n"
4551    
4552     # Code to be used in simple link tests
4553     lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
4554    
4555     # ltmain only uses $CC for tagged configurations so make sure $CC is set.
4556     _LT_AC_SYS_COMPILER
4557    
4558     # Allow CC to be a program name with arguments.
4559     lt_save_CC="$CC"
4560     CC=${GCJ-"gcj"}
4561     compiler=$CC
4562     _LT_AC_TAGVAR(compiler, $1)=$CC
4563    
4564     # GCJ did not exist at the time GCC didn't implicitly link libc in.
4565     _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
4566    
4567     AC_LIBTOOL_PROG_COMPILER_NO_RTTI($1)
4568     AC_LIBTOOL_PROG_COMPILER_PIC($1)
4569     AC_LIBTOOL_PROG_CC_C_O($1)
4570     AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1)
4571     AC_LIBTOOL_PROG_LD_SHLIBS($1)
4572     AC_LIBTOOL_SYS_DYNAMIC_LINKER($1)
4573     AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1)
4574     AC_LIBTOOL_SYS_LIB_STRIP
4575     AC_LIBTOOL_DLOPEN_SELF($1)
4576    
4577     AC_LIBTOOL_CONFIG($1)
4578    
4579     AC_LANG_RESTORE
4580     CC="$lt_save_CC"
4581     ])# AC_LIBTOOL_LANG_GCJ_CONFIG
4582    
4583    
4584     # AC_LIBTOOL_LANG_RC_CONFIG
4585     # --------------------------
4586     # Ensure that the configuration vars for the Windows resource compiler are
4587     # suitably defined. Those variables are subsequently used by
4588     # AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
4589     AC_DEFUN([AC_LIBTOOL_LANG_RC_CONFIG], [_LT_AC_LANG_RC_CONFIG(RC)])
4590     AC_DEFUN([_LT_AC_LANG_RC_CONFIG],
4591     [AC_LANG_SAVE
4592    
4593     # Source file extension for RC test sources.
4594     ac_ext=rc
4595    
4596     # Object file extension for compiled RC test sources.
4597     objext=o
4598     _LT_AC_TAGVAR(objext, $1)=$objext
4599    
4600     # Code to be used in simple compile tests
4601     lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
4602    
4603     # Code to be used in simple link tests
4604     lt_simple_link_test_code="$lt_simple_compile_test_code"
4605    
4606     # ltmain only uses $CC for tagged configurations so make sure $CC is set.
4607     _LT_AC_SYS_COMPILER
4608    
4609     # Allow CC to be a program name with arguments.
4610     lt_save_CC="$CC"
4611     CC=${RC-"windres"}
4612     compiler=$CC
4613     _LT_AC_TAGVAR(compiler, $1)=$CC
4614     _LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes
4615    
4616     AC_LIBTOOL_CONFIG($1)
4617    
4618     AC_LANG_RESTORE
4619     CC="$lt_save_CC"
4620     ])# AC_LIBTOOL_LANG_RC_CONFIG
4621    
4622    
4623     # AC_LIBTOOL_CONFIG([TAGNAME])
4624     # ----------------------------
4625     # If TAGNAME is not passed, then create an initial libtool script
4626     # with a default configuration from the untagged config vars. Otherwise
4627     # add code to config.status for appending the configuration named by
4628     # TAGNAME from the matching tagged config vars.
4629     AC_DEFUN([AC_LIBTOOL_CONFIG],
4630     [# The else clause should only fire when bootstrapping the
4631     # libtool distribution, otherwise you forgot to ship ltmain.sh
4632     # with your package, and you will get complaints that there are
4633     # no rules to generate ltmain.sh.
4634     if test -f "$ltmain"; then
4635     # See if we are running on zsh, and set the options which allow our commands through
4636     # without removal of \ escapes.
4637     if test -n "${ZSH_VERSION+set}" ; then
4638     setopt NO_GLOB_SUBST
4639     fi
4640     # Now quote all the things that may contain metacharacters while being
4641     # careful not to overquote the AC_SUBSTed values. We take copies of the
4642     # variables and quote the copies for generation of the libtool script.
4643     for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
4644     SED SHELL STRIP \
4645     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
4646     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
4647     deplibs_check_method reload_flag reload_cmds need_locks \
4648     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
4649     lt_cv_sys_global_symbol_to_c_name_address \
4650     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
4651     old_postinstall_cmds old_postuninstall_cmds \
4652     _LT_AC_TAGVAR(compiler, $1) \
4653     _LT_AC_TAGVAR(CC, $1) \
4654     _LT_AC_TAGVAR(LD, $1) \
4655     _LT_AC_TAGVAR(lt_prog_compiler_wl, $1) \
4656     _LT_AC_TAGVAR(lt_prog_compiler_pic, $1) \
4657     _LT_AC_TAGVAR(lt_prog_compiler_static, $1) \
4658     _LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1) \
4659     _LT_AC_TAGVAR(export_dynamic_flag_spec, $1) \
4660     _LT_AC_TAGVAR(thread_safe_flag_spec, $1) \
4661     _LT_AC_TAGVAR(whole_archive_flag_spec, $1) \
4662     _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1) \
4663     _LT_AC_TAGVAR(old_archive_cmds, $1) \
4664     _LT_AC_TAGVAR(old_archive_from_new_cmds, $1) \
4665     _LT_AC_TAGVAR(predep_objects, $1) \
4666     _LT_AC_TAGVAR(postdep_objects, $1) \
4667     _LT_AC_TAGVAR(predeps, $1) \
4668     _LT_AC_TAGVAR(postdeps, $1) \
4669     _LT_AC_TAGVAR(compiler_lib_search_path, $1) \
4670     _LT_AC_TAGVAR(archive_cmds, $1) \
4671     _LT_AC_TAGVAR(archive_expsym_cmds, $1) \
4672     _LT_AC_TAGVAR(postinstall_cmds, $1) \
4673     _LT_AC_TAGVAR(postuninstall_cmds, $1) \
4674     _LT_AC_TAGVAR(old_archive_from_expsyms_cmds, $1) \
4675     _LT_AC_TAGVAR(allow_undefined_flag, $1) \
4676     _LT_AC_TAGVAR(no_undefined_flag, $1) \
4677     _LT_AC_TAGVAR(export_symbols_cmds, $1) \
4678     _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1) \
4679     _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1) \
4680     _LT_AC_TAGVAR(hardcode_libdir_separator, $1) \
4681     _LT_AC_TAGVAR(hardcode_automatic, $1) \
4682     _LT_AC_TAGVAR(module_cmds, $1) \
4683     _LT_AC_TAGVAR(module_expsym_cmds, $1) \
4684     _LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1) \
4685     _LT_AC_TAGVAR(exclude_expsyms, $1) \
4686     _LT_AC_TAGVAR(include_expsyms, $1); do
4687    
4688     case $var in
4689     _LT_AC_TAGVAR(old_archive_cmds, $1) | \
4690     _LT_AC_TAGVAR(old_archive_from_new_cmds, $1) | \
4691     _LT_AC_TAGVAR(archive_cmds, $1) | \
4692     _LT_AC_TAGVAR(archive_expsym_cmds, $1) | \
4693     _LT_AC_TAGVAR(module_cmds, $1) | \
4694     _LT_AC_TAGVAR(module_expsym_cmds, $1) | \
4695     _LT_AC_TAGVAR(old_archive_from_expsyms_cmds, $1) | \
4696     _LT_AC_TAGVAR(export_symbols_cmds, $1) | \
4697     extract_expsyms_cmds | reload_cmds | finish_cmds | \
4698     postinstall_cmds | postuninstall_cmds | \
4699     old_postinstall_cmds | old_postuninstall_cmds | \
4700     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
4701     # Double-quote double-evaled strings.
4702     eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
4703     ;;
4704     *)
4705     eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
4706     ;;
4707     esac
4708     done
4709    
4710     case $lt_echo in
4711     *'\[$]0 --fallback-echo"')
4712     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\[$]0 --fallback-echo"[$]/[$]0 --fallback-echo"/'`
4713     ;;
4714     esac
4715    
4716     ifelse([$1], [],
4717     [cfgfile="${ofile}T"
4718     trap "$rm \"$cfgfile\"; exit 1" 1 2 15
4719     $rm -f "$cfgfile"
4720     AC_MSG_NOTICE([creating $ofile])],
4721     [cfgfile="$ofile"])
4722    
4723     cat <<__EOF__ >> "$cfgfile"
4724     ifelse([$1], [],
4725     [#! $SHELL
4726    
4727     # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
4728     # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
4729     # NOTE: Changes made to this file will be lost: look at ltmain.sh.
4730     #
4731     # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
4732     # Free Software Foundation, Inc.
4733     #
4734     # This file is part of GNU Libtool:
4735     # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
4736     #
4737     # This program is free software; you can redistribute it and/or modify
4738     # it under the terms of the GNU General Public License as published by
4739     # the Free Software Foundation; either version 2 of the License, or
4740     # (at your option) any later version.
4741     #
4742     # This program is distributed in the hope that it will be useful, but
4743     # WITHOUT ANY WARRANTY; without even the implied warranty of
4744     # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
4745     # General Public License for more details.
4746     #
4747     # You should have received a copy of the GNU General Public License
4748     # along with this program; if not, write to the Free Software
4749     # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
4750     #
4751     # As a special exception to the GNU General Public License, if you
4752     # distribute this file as part of a program that contains a
4753     # configuration script generated by Autoconf, you may include it under
4754     # the same distribution terms that you use for the rest of that program.
4755    
4756     # A sed program that does not truncate output.
4757     SED=$lt_SED
4758    
4759     # Sed that helps us avoid accidentally triggering echo(1) options like -n.
4760     Xsed="$SED -e s/^X//"
4761    
4762     # The HP-UX ksh and POSIX shell print the target directory to stdout
4763     # if CDPATH is set.
4764     if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
4765    
4766     # The names of the tagged configurations supported by this script.
4767     available_tags=
4768    
4769     # ### BEGIN LIBTOOL CONFIG],
4770     [# ### BEGIN LIBTOOL TAG CONFIG: $tagname])
4771    
4772     # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
4773    
4774     # Shell to use when invoking shell scripts.
4775     SHELL=$lt_SHELL
4776    
4777     # Whether or not to build shared libraries.
4778     build_libtool_libs=$enable_shared
4779    
4780     # Whether or not to build static libraries.
4781     build_old_libs=$enable_static
4782    
4783     # Whether or not to add -lc for building shared libraries.
4784     build_libtool_need_lc=$_LT_AC_TAGVAR(archive_cmds_need_lc, $1)
4785    
4786     # Whether or not to disallow shared libs when runtime libs are static
4787     allow_libtool_libs_with_static_runtimes=$_LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)
4788    
4789     # Whether or not to optimize for fast installation.
4790     fast_install=$enable_fast_install
4791    
4792     # The host system.
4793     host_alias=$host_alias
4794     host=$host
4795    
4796     # An echo program that does not interpret backslashes.
4797     echo=$lt_echo
4798    
4799     # The archiver.
4800     AR=$lt_AR
4801     AR_FLAGS=$lt_AR_FLAGS
4802    
4803     # A C compiler.
4804     LTCC=$lt_LTCC
4805    
4806     # A language-specific compiler.
4807     CC=$lt_[]_LT_AC_TAGVAR(compiler, $1)
4808    
4809     # Is the compiler the GNU C compiler?
4810     with_gcc=$_LT_AC_TAGVAR(GCC, $1)
4811    
4812     # An ERE matcher.
4813     EGREP=$lt_EGREP
4814    
4815     # The linker used to build libraries.
4816     LD=$lt_[]_LT_AC_TAGVAR(LD, $1)
4817    
4818     # Whether we need hard or soft links.
4819     LN_S=$lt_LN_S
4820    
4821     # A BSD-compatible nm program.
4822     NM=$lt_NM
4823    
4824     # A symbol stripping program
4825     STRIP=$lt_STRIP
4826    
4827     # Used to examine libraries when file_magic_cmd begins "file"
4828     MAGIC_CMD=$MAGIC_CMD
4829    
4830     # Used on cygwin: DLL creation program.
4831     DLLTOOL="$DLLTOOL"
4832    
4833     # Used on cygwin: object dumper.
4834     OBJDUMP="$OBJDUMP"
4835    
4836     # Used on cygwin: assembler.
4837     AS="$AS"
4838    
4839     # The name of the directory that contains temporary libtool files.
4840     objdir=$objdir
4841    
4842     # How to create reloadable object files.
4843     reload_flag=$lt_reload_flag
4844     reload_cmds=$lt_reload_cmds
4845    
4846     # How to pass a linker flag through the compiler.
4847     wl=$lt_[]_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)
4848    
4849     # Object file suffix (normally "o").
4850     objext="$ac_objext"
4851    
4852     # Old archive suffix (normally "a").
4853     libext="$libext"
4854    
4855     # Shared library suffix (normally ".so").
4856     shrext='$shrext'
4857    
4858     # Executable file suffix (normally "").
4859     exeext="$exeext"
4860    
4861     # Additional compiler flags for building library objects.
4862     pic_flag=$lt_[]_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)
4863     pic_mode=$pic_mode
4864    
4865     # What is the maximum length of a command?
4866     max_cmd_len=$lt_cv_sys_max_cmd_len
4867    
4868     # Does compiler simultaneously support -c and -o options?
4869     compiler_c_o=$lt_[]_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)
4870    
4871     # Must we lock files when doing compilation ?
4872     need_locks=$lt_need_locks
4873    
4874     # Do we need the lib prefix for modules?
4875     need_lib_prefix=$need_lib_prefix
4876    
4877     # Do we need a version for libraries?
4878     need_version=$need_version
4879    
4880     # Whether dlopen is supported.
4881     dlopen_support=$enable_dlopen
4882    
4883     # Whether dlopen of programs is supported.
4884     dlopen_self=$enable_dlopen_self
4885    
4886     # Whether dlopen of statically linked programs is supported.
4887     dlopen_self_static=$enable_dlopen_self_static
4888    
4889     # Compiler flag to prevent dynamic linking.
4890     link_static_flag=$lt_[]_LT_AC_TAGVAR(lt_prog_compiler_static, $1)
4891    
4892     # Compiler flag to turn off builtin functions.
4893     no_builtin_flag=$lt_[]_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)
4894    
4895     # Compiler flag to allow reflexive dlopens.
4896     export_dynamic_flag_spec=$lt_[]_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)
4897    
4898     # Compiler flag to generate shared objects directly from archives.
4899     whole_archive_flag_spec=$lt_[]_LT_AC_TAGVAR(whole_archive_flag_spec, $1)
4900    
4901     # Compiler flag to generate thread-safe objects.
4902     thread_safe_flag_spec=$lt_[]_LT_AC_TAGVAR(thread_safe_flag_spec, $1)
4903    
4904     # Library versioning type.
4905     version_type=$version_type
4906    
4907     # Format of library name prefix.
4908     libname_spec=$lt_libname_spec
4909    
4910     # List of archive names. First name is the real one, the rest are links.
4911     # The last name is the one that the linker finds with -lNAME.
4912     library_names_spec=$lt_library_names_spec
4913    
4914     # The coded name of the library, if different from the real name.
4915     soname_spec=$lt_soname_spec
4916    
4917     # Commands used to build and install an old-style archive.
4918     RANLIB=$lt_RANLIB
4919     old_archive_cmds=$lt_[]_LT_AC_TAGVAR(old_archive_cmds, $1)
4920     old_postinstall_cmds=$lt_old_postinstall_cmds
4921     old_postuninstall_cmds=$lt_old_postuninstall_cmds
4922    
4923     # Create an old-style archive from a shared archive.
4924     old_archive_from_new_cmds=$lt_[]_LT_AC_TAGVAR(old_archive_from_new_cmds, $1)
4925    
4926     # Create a temporary old-style archive to link instead of a shared archive.
4927     old_archive_from_expsyms_cmds=$lt_[]_LT_AC_TAGVAR(old_archive_from_expsyms_cmds, $1)
4928    
4929     # Commands used to build and install a shared archive.
4930     archive_cmds=$lt_[]_LT_AC_TAGVAR(archive_cmds, $1)
4931     archive_expsym_cmds=$lt_[]_LT_AC_TAGVAR(archive_expsym_cmds, $1)
4932     postinstall_cmds=$lt_postinstall_cmds
4933     postuninstall_cmds=$lt_postuninstall_cmds
4934    
4935     # Commands used to build a loadable module (assumed same as above if empty)
4936     module_cmds=$lt_[]_LT_AC_TAGVAR(module_cmds, $1)
4937     module_expsym_cmds=$lt_[]_LT_AC_TAGVAR(module_expsym_cmds, $1)
4938    
4939     # Commands to strip libraries.
4940     old_striplib=$lt_old_striplib
4941     striplib=$lt_striplib
4942    
4943     # Dependencies to place before the objects being linked to create a
4944     # shared library.
4945     predep_objects=$lt_[]_LT_AC_TAGVAR(predep_objects, $1)
4946    
4947     # Dependencies to place after the objects being linked to create a
4948     # shared library.
4949     postdep_objects=$lt_[]_LT_AC_TAGVAR(postdep_objects, $1)
4950    
4951     # Dependencies to place before the objects being linked to create a
4952     # shared library.
4953     predeps=$lt_[]_LT_AC_TAGVAR(predeps, $1)
4954    
4955     # Dependencies to place after the objects being linked to create a
4956     # shared library.
4957     postdeps=$lt_[]_LT_AC_TAGVAR(postdeps, $1)
4958    
4959     # The library search path used internally by the compiler when linking
4960     # a shared library.
4961     compiler_lib_search_path=$lt_[]_LT_AC_TAGVAR(compiler_lib_search_path, $1)
4962    
4963     # Method to check whether dependent libraries are shared objects.
4964     deplibs_check_method=$lt_deplibs_check_method
4965    
4966     # Command to use when deplibs_check_method == file_magic.
4967     file_magic_cmd=$lt_file_magic_cmd
4968    
4969     # Flag that allows shared libraries with undefined symbols to be built.
4970     allow_undefined_flag=$lt_[]_LT_AC_TAGVAR(allow_undefined_flag, $1)
4971    
4972     # Flag that forces no undefined symbols.
4973     no_undefined_flag=$lt_[]_LT_AC_TAGVAR(no_undefined_flag, $1)
4974    
4975     # Commands used to finish a libtool library installation in a directory.
4976     finish_cmds=$lt_finish_cmds
4977    
4978     # Same as above, but a single script fragment to be evaled but not shown.
4979     finish_eval=$lt_finish_eval
4980    
4981     # Take the output of nm and produce a listing of raw symbols and C names.
4982     global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
4983    
4984     # Transform the output of nm in a proper C declaration
4985     global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
4986    
4987     # Transform the output of nm in a C name address pair
4988     global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
4989    
4990     # This is the shared library runtime path variable.
4991     runpath_var=$runpath_var
4992    
4993     # This is the shared library path variable.
4994     shlibpath_var=$shlibpath_var
4995    
4996     # Is shlibpath searched before the hard-coded library search path?
4997     shlibpath_overrides_runpath=$shlibpath_overrides_runpath
4998    
4999     # How to hardcode a shared library path into an executable.
5000     hardcode_action=$_LT_AC_TAGVAR(hardcode_action, $1)
5001    
5002     # Whether we should hardcode library paths into libraries.
5003     hardcode_into_libs=$hardcode_into_libs
5004    
5005     # Flag to hardcode \$libdir into a binary during linking.
5006     # This must work even if \$libdir does not exist.
5007     hardcode_libdir_flag_spec=$lt_[]_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)
5008    
5009     # If ld is used when linking, flag to hardcode \$libdir into
5010     # a binary during linking. This must work even if \$libdir does
5011     # not exist.
5012     hardcode_libdir_flag_spec_ld=$lt_[]_LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)
5013    
5014     # Whether we need a single -rpath flag with a separated argument.
5015     hardcode_libdir_separator=$lt_[]_LT_AC_TAGVAR(hardcode_libdir_separator, $1)
5016    
5017     # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
5018     # resulting binary.
5019     hardcode_direct=$_LT_AC_TAGVAR(hardcode_direct, $1)
5020    
5021     # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
5022     # resulting binary.
5023     hardcode_minus_L=$_LT_AC_TAGVAR(hardcode_minus_L, $1)
5024    
5025     # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
5026     # the resulting binary.
5027     hardcode_shlibpath_var=$_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)
5028    
5029     # Set to yes if building a shared library automatically hardcodes DIR into the library
5030     # and all subsequent libraries and executables linked against it.
5031     hardcode_automatic=$_LT_AC_TAGVAR(hardcode_automatic, $1)
5032    
5033     # Variables whose values should be saved in libtool wrapper scripts and
5034     # restored at relink time.
5035     variables_saved_for_relink="$variables_saved_for_relink"
5036    
5037     # Whether libtool must link a program against all its dependency libraries.
5038     link_all_deplibs=$_LT_AC_TAGVAR(link_all_deplibs, $1)
5039    
5040     # Compile-time system search path for libraries
5041     sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
5042    
5043     # Run-time system search path for libraries
5044     sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
5045    
5046     # Fix the shell variable \$srcfile for the compiler.
5047     fix_srcfile_path="$_LT_AC_TAGVAR(fix_srcfile_path, $1)"
5048    
5049     # Set to yes if exported symbols are required.
5050     always_export_symbols=$_LT_AC_TAGVAR(always_export_symbols, $1)
5051    
5052     # The commands to list exported symbols.
5053     export_symbols_cmds=$lt_[]_LT_AC_TAGVAR(export_symbols_cmds, $1)
5054    
5055     # The commands to extract the exported symbol list from a shared archive.
5056     extract_expsyms_cmds=$lt_extract_expsyms_cmds
5057    
5058     # Symbols that should not be listed in the preloaded symbols.
5059     exclude_expsyms=$lt_[]_LT_AC_TAGVAR(exclude_expsyms, $1)
5060    
5061     # Symbols that must always be exported.
5062     include_expsyms=$lt_[]_LT_AC_TAGVAR(include_expsyms, $1)
5063    
5064     ifelse([$1],[],
5065     [# ### END LIBTOOL CONFIG],
5066     [# ### END LIBTOOL TAG CONFIG: $tagname])
5067    
5068     __EOF__
5069    
5070     ifelse([$1],[], [
5071     case $host_os in
5072     aix3*)
5073     cat <<\EOF >> "$cfgfile"
5074    
5075     # AIX sometimes has problems with the GCC collect2 program. For some
5076     # reason, if we set the COLLECT_NAMES environment variable, the problems
5077     # vanish in a puff of smoke.
5078     if test "X${COLLECT_NAMES+set}" != Xset; then
5079     COLLECT_NAMES=
5080     export COLLECT_NAMES
5081     fi
5082     EOF
5083     ;;
5084     esac
5085    
5086     # We use sed instead of cat because bash on DJGPP gets confused if
5087     # if finds mixed CR/LF and LF-only lines. Since sed operates in
5088     # text mode, it properly converts lines to CR/LF. This bash problem
5089     # is reportedly fixed, but why not run on old versions too?
5090     sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
5091    
5092     mv -f "$cfgfile" "$ofile" || \
5093     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
5094     chmod +x "$ofile"
5095     ])
5096     else
5097     # If there is no Makefile yet, we rely on a make rule to execute
5098     # `config.status --recheck' to rerun these tests and create the
5099     # libtool script then.
5100     ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
5101     if test -f "$ltmain_in"; then
5102     test -f Makefile && make "$ltmain"
5103     fi
5104     fi
5105     ])# AC_LIBTOOL_CONFIG
5106    
5107    
5108     # AC_LIBTOOL_PROG_COMPILER_NO_RTTI([TAGNAME])
5109     # -------------------------------------------
5110     AC_DEFUN([AC_LIBTOOL_PROG_COMPILER_NO_RTTI],
5111     [AC_REQUIRE([_LT_AC_SYS_COMPILER])dnl
5112    
5113     _LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=
5114    
5115     if test "$GCC" = yes; then
5116     _LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin'
5117    
5118     AC_LIBTOOL_COMPILER_OPTION([if $compiler supports -fno-rtti -fno-exceptions],
5119     lt_cv_prog_compiler_rtti_exceptions,
5120     [-fno-rtti -fno-exceptions], [],
5121     [_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)="$_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1) -fno-rtti -fno-exceptions"])
5122     fi
5123     ])# AC_LIBTOOL_PROG_COMPILER_NO_RTTI
5124    
5125    
5126     # AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE
5127     # ---------------------------------
5128     AC_DEFUN([AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE],
5129     [AC_REQUIRE([AC_CANONICAL_HOST])
5130     AC_REQUIRE([AC_PROG_NM])
5131     AC_REQUIRE([AC_OBJEXT])
5132     # Check for command to grab the raw symbol name followed by C symbol from nm.
5133     AC_MSG_CHECKING([command to parse $NM output from $compiler object])
5134     AC_CACHE_VAL([lt_cv_sys_global_symbol_pipe],
5135     [
5136     # These are sane defaults that work on at least a few old systems.
5137     # [They come from Ultrix. What could be older than Ultrix?!! ;)]
5138    
5139     # Character class describing NM global symbol codes.
5140     symcode='[[BCDEGRST]]'
5141    
5142     # Regexp to match symbols that can be accessed directly from C.
5143     sympat='\([[_A-Za-z]][[_A-Za-z0-9]]*\)'
5144    
5145     # Transform the above into a raw symbol and a C symbol.
5146     symxfrm='\1 \2\3 \3'
5147    
5148     # Transform an extracted symbol line into a proper C declaration
5149     lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
5150    
5151     # Transform an extracted symbol line into symbol name and symbol address
5152     lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([[^ ]]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode \([[^ ]]*\) \([[^ ]]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
5153    
5154     # Define system-specific variables.
5155     case $host_os in
5156     aix*)
5157     symcode='[[BCDT]]'
5158     ;;
5159     cygwin* | mingw* | pw32*)
5160     symcode='[[ABCDGISTW]]'
5161     ;;
5162     hpux*) # Its linker distinguishes data from code symbols
5163     if test "$host_cpu" = ia64; then
5164     symcode='[[ABCDEGRST]]'
5165     fi
5166     lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5167     lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([[^ ]]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([[^ ]]*\) \([[^ ]]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
5168     ;;
5169     irix* | nonstopux*)
5170     symcode='[[BCDEGRST]]'
5171     ;;
5172     osf*)
5173     symcode='[[BCDEGQRST]]'
5174     ;;
5175     solaris* | sysv5*)
5176     symcode='[[BDRT]]'
5177     ;;
5178     sysv4)
5179     symcode='[[DFNSTU]]'
5180     ;;
5181     esac
5182    
5183     # Handle CRLF in mingw tool chain
5184     opt_cr=
5185     case $build_os in
5186     mingw*)
5187     opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5188     ;;
5189     esac
5190    
5191     # If we're using GNU nm, then use its standard symbol codes.
5192     case `$NM -V 2>&1` in
5193     *GNU* | *'with BFD'*)
5194     symcode='[[ABCDGIRSTW]]' ;;
5195     esac
5196    
5197     # Try without a prefix undercore, then with it.
5198     for ac_symprfx in "" "_"; do
5199    
5200     # Write the raw and C identifiers.
5201     lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[[ ]]\($symcode$symcode*\)[[ ]][[ ]]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
5202    
5203     # Check to see that the pipe works correctly.
5204     pipe_works=no
5205    
5206     rm -f conftest*
5207     cat > conftest.$ac_ext <<EOF
5208     #ifdef __cplusplus
5209     extern "C" {
5210     #endif
5211     char nm_test_var;
5212     void nm_test_func(){}
5213     #ifdef __cplusplus
5214     }
5215     #endif
5216     int main(){nm_test_var='a';nm_test_func();return(0);}
5217     EOF
5218    
5219     if AC_TRY_EVAL(ac_compile); then
5220     # Now try to grab the symbols.
5221     nlist=conftest.nm
5222     if AC_TRY_EVAL(NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) && test -s "$nlist"; then
5223     # Try sorting and uniquifying the output.
5224     if sort "$nlist" | uniq > "$nlist"T; then
5225     mv -f "$nlist"T "$nlist"
5226     else
5227     rm -f "$nlist"T
5228     fi
5229    
5230     # Make sure that we snagged all the symbols we need.
5231     if grep ' nm_test_var$' "$nlist" >/dev/null; then
5232     if grep ' nm_test_func$' "$nlist" >/dev/null; then
5233     cat <<EOF > conftest.$ac_ext
5234     #ifdef __cplusplus
5235     extern "C" {
5236     #endif
5237    
5238     EOF
5239     # Now generate the symbol file.
5240     eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
5241    
5242     cat <<EOF >> conftest.$ac_ext
5243     #if defined (__STDC__) && __STDC__
5244     # define lt_ptr_t void *
5245     #else
5246     # define lt_ptr_t char *
5247     # define const
5248     #endif
5249    
5250     /* The mapping between symbol names and symbols. */
5251     const struct {
5252     const char *name;
5253     lt_ptr_t address;
5254     }
5255     lt_preloaded_symbols[[]] =
5256     {
5257     EOF
5258     $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
5259     cat <<\EOF >> conftest.$ac_ext
5260     {0, (lt_ptr_t) 0}
5261     };
5262    
5263     #ifdef __cplusplus
5264     }
5265     #endif
5266     EOF
5267     # Now try linking the two files.
5268     mv conftest.$ac_objext conftstm.$ac_objext
5269     lt_save_LIBS="$LIBS"
5270     lt_save_CFLAGS="$CFLAGS"
5271     LIBS="conftstm.$ac_objext"
5272     CFLAGS="$CFLAGS$_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)"
5273     if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext}; then
5274     pipe_works=yes
5275     fi
5276     LIBS="$lt_save_LIBS"
5277     CFLAGS="$lt_save_CFLAGS"
5278     else
5279     echo "cannot find nm_test_func in $nlist" >&AS_MESSAGE_LOG_FD
5280     fi
5281     else
5282     echo "cannot find nm_test_var in $nlist" >&AS_MESSAGE_LOG_FD
5283     fi
5284     else
5285     echo "cannot run $lt_cv_sys_global_symbol_pipe" >&AS_MESSAGE_LOG_FD
5286     fi
5287     else
5288     echo "$progname: failed program was:" >&AS_MESSAGE_LOG_FD
5289     cat conftest.$ac_ext >&5
5290     fi
5291     rm -f conftest* conftst*
5292    
5293     # Do not use the global_symbol_pipe unless it works.
5294     if test "$pipe_works" = yes; then
5295     break
5296     else
5297     lt_cv_sys_global_symbol_pipe=
5298     fi
5299     done
5300     ])
5301     if test -z "$lt_cv_sys_global_symbol_pipe"; then
5302     lt_cv_sys_global_symbol_to_cdecl=
5303     fi
5304     if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5305     AC_MSG_RESULT(failed)
5306     else
5307     AC_MSG_RESULT(ok)
5308     fi
5309     ]) # AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE
5310    
5311    
5312     # AC_LIBTOOL_PROG_COMPILER_PIC([TAGNAME])
5313     # ---------------------------------------
5314     AC_DEFUN([AC_LIBTOOL_PROG_COMPILER_PIC],
5315     [_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)=
5316     _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
5317     _LT_AC_TAGVAR(lt_prog_compiler_static, $1)=
5318    
5319     AC_MSG_CHECKING([for $compiler option to produce PIC])
5320     ifelse([$1],[CXX],[
5321     # C++ specific cases for pic, static, wl, etc.
5322     if test "$GXX" = yes; then
5323     _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5324     _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static'
5325    
5326     case $host_os in
5327     aix*)
5328     # All AIX code is PIC.
5329     if test "$host_cpu" = ia64; then
5330     # AIX 5 now supports IA64 processor
5331     _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5332     fi
5333     ;;
5334     amigaos*)
5335     # FIXME: we need at least 68020 code to build shared libraries, but
5336     # adding the `-m68020' flag to GCC prevents building anything better,
5337     # like `-m68040'.
5338     _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4'
5339     ;;
5340     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
5341     # PIC is the default for these OSes.
5342     ;;
5343     mingw* | os2* | pw32*)
5344     # This hack is so that the source file can tell whether it is being
5345     # built for inclusion in a dll (and should export symbols for example).
5346     _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'
5347     ;;
5348     darwin* | rhapsody*)
5349     # PIC is the default on this platform
5350     # Common symbols not allowed in MH_DYLIB files
5351     _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common'
5352     ;;
5353     *djgpp*)
5354     # DJGPP does not support shared libraries at all
5355     _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
5356     ;;
5357     sysv4*MP*)
5358     if test -d /usr/nec; then
5359     _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic
5360     fi
5361     ;;
5362     hpux*)
5363     # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
5364     # not for PA HP-UX.
5365     case "$host_cpu" in
5366     hppa*64*|ia64*)
5367     ;;
5368     *)
5369     _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
5370     ;;
5371     esac
5372     ;;
5373     *)
5374     _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
5375     ;;
5376     esac
5377     else
5378     case $host_os in
5379     aix4* | aix5*)
5380     # All AIX code is PIC.
5381     if test "$host_cpu" = ia64; then
5382     # AIX 5 now supports IA64 processor
5383     _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5384     else
5385     _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp'
5386     fi
5387     ;;
5388     chorus*)
5389     case $cc_basename in
5390     cxch68)
5391     # Green Hills C++ Compiler
5392     # _LT_AC_TAGVAR(lt_prog_compiler_static, $1)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a"
5393     ;;
5394     esac
5395     ;;
5396     dgux*)
5397     case $cc_basename in
5398     ec++)
5399     _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
5400     ;;
5401     ghcx)
5402     # Green Hills C++ Compiler
5403     _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
5404     ;;
5405     *)
5406     ;;
5407     esac
5408     ;;
5409     freebsd* | kfreebsd*-gnu)
5410     # FreeBSD uses GNU C++
5411     ;;
5412     hpux9* | hpux10* | hpux11*)
5413     case $cc_basename in
5414     CC)
5415     _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5416     _LT_AC_TAGVAR(lt_prog_compiler_static, $1)="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
5417     if test "$host_cpu" != ia64; then
5418     _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
5419     fi
5420     ;;
5421     aCC)
5422     _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5423     _LT_AC_TAGVAR(lt_prog_compiler_static, $1)="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
5424     case "$host_cpu" in
5425     hppa*64*|ia64*)
5426     # +Z the default
5427     ;;
5428     *)
5429     _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
5430     ;;
5431     esac
5432     ;;
5433     *)
5434     ;;
5435     esac
5436     ;;
5437     irix5* | irix6* | nonstopux*)
5438     case $cc_basename in
5439     CC)
5440     _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5441     _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
5442     # CC pic flag -KPIC is the default.
5443     ;;
5444     *)
5445     ;;
5446     esac
5447     ;;
5448     linux*)
5449     case $cc_basename in
5450     KCC)
5451     # KAI C++ Compiler
5452     _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,'
5453     _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
5454     ;;
5455     icpc)
5456     # Intel C++
5457     _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5458     _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
5459     _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static'
5460     ;;
5461     cxx)
5462     # Compaq C++
5463     # Make sure the PIC flag is empty. It appears that all Alpha
5464     # Linux and Compaq Tru64 Unix objects are PIC.
5465     _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
5466     _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
5467     ;;
5468     *)
5469     ;;
5470     esac
5471     ;;
5472     lynxos*)
5473     ;;
5474     m88k*)
5475     ;;
5476     mvs*)
5477     case $cc_basename in
5478     cxx)
5479     _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-W c,exportall'
5480     ;;
5481     *)
5482     ;;
5483     esac
5484     ;;
5485     netbsd*)
5486     ;;
5487     osf3* | osf4* | osf5*)
5488     case $cc_basename in
5489     KCC)
5490     _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,'
5491     ;;
5492     RCC)
5493     # Rational C++ 2.4.1
5494     _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
5495     ;;
5496     cxx)
5497     # Digital/Compaq C++
5498     _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5499     # Make sure the PIC flag is empty. It appears that all Alpha
5500     # Linux and Compaq Tru64 Unix objects are PIC.
5501     _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
5502     _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
5503     ;;
5504     *)
5505     ;;
5506     esac
5507     ;;
5508     psos*)
5509     ;;
5510     sco*)
5511     case $cc_basename in
5512     CC)
5513     _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
5514     ;;
5515     *)
5516     ;;
5517     esac
5518     ;;
5519     solaris*)
5520     case $cc_basename in
5521     CC)
5522     # Sun C++ 4.2, 5.x and Centerline C++
5523     _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
5524     _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5525     _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
5526     ;;
5527     gcx)
5528     # Green Hills C++ Compiler
5529     _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-PIC'
5530     ;;
5531     *)
5532     ;;
5533     esac
5534     ;;
5535     sunos4*)
5536     case $cc_basename in
5537     CC)
5538     # Sun C++ 4.x
5539     _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
5540     _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5541     ;;
5542     lcc)
5543     # Lucid
5544     _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
5545     ;;
5546     *)
5547     ;;
5548     esac
5549     ;;
5550     tandem*)
5551     case $cc_basename in
5552     NCC)
5553     # NonStop-UX NCC 3.20
5554     _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
5555     ;;
5556     *)
5557     ;;
5558     esac
5559     ;;
5560     unixware*)
5561     ;;
5562     vxworks*)
5563     ;;
5564     *)
5565     _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
5566     ;;
5567     esac
5568     fi
5569     ],
5570     [
5571     if test "$GCC" = yes; then
5572     _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5573     _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static'
5574    
5575     case $host_os in
5576     aix*)
5577     # All AIX code is PIC.
5578     if test "$host_cpu" = ia64; then
5579     # AIX 5 now supports IA64 processor
5580     _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5581     fi
5582     ;;
5583    
5584     amigaos*)
5585     # FIXME: we need at least 68020 code to build shared libraries, but
5586     # adding the `-m68020' flag to GCC prevents building anything better,
5587     # like `-m68040'.
5588     _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4'
5589     ;;
5590    
5591     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
5592     # PIC is the default for these OSes.
5593     ;;
5594    
5595     mingw* | pw32* | os2*)
5596     # This hack is so that the source file can tell whether it is being
5597     # built for inclusion in a dll (and should export symbols for example).
5598     _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'
5599     ;;
5600    
5601     darwin* | rhapsody*)
5602     # PIC is the default on this platform
5603     # Common symbols not allowed in MH_DYLIB files
5604     _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common'
5605     ;;
5606    
5607     msdosdjgpp*)
5608     # Just because we use GCC doesn't mean we suddenly get shared libraries
5609     # on systems that don't support them.
5610     _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
5611     enable_shared=no
5612     ;;
5613    
5614     sysv4*MP*)
5615     if test -d /usr/nec; then
5616     _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic
5617     fi
5618     ;;
5619    
5620     hpux*)
5621     # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
5622     # not for PA HP-UX.
5623     case "$host_cpu" in
5624     hppa*64*|ia64*)
5625     # +Z the default
5626     ;;
5627     *)
5628     _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
5629     ;;
5630     esac
5631     ;;
5632    
5633     *)
5634     _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
5635     ;;
5636     esac
5637     else
5638     # PORTME Check for flag to pass linker flags through the system compiler.
5639     case $host_os in
5640     aix*)
5641     _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5642     if test "$host_cpu" = ia64; then
5643     # AIX 5 now supports IA64 processor
5644     _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5645     else
5646     _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp'
5647     fi
5648     ;;
5649    
5650     mingw* | pw32* | os2*)
5651     # This hack is so that the source file can tell whether it is being
5652     # built for inclusion in a dll (and should export symbols for example).
5653     _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'
5654     ;;
5655    
5656     hpux9* | hpux10* | hpux11*)
5657     _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5658     # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
5659     # not for PA HP-UX.
5660     case "$host_cpu" in
5661     hppa*64*|ia64*)
5662     # +Z the default
5663     ;;
5664     *)
5665     _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
5666     ;;
5667     esac
5668     # Is there a better lt_prog_compiler_static that works with the bundled CC?
5669     _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
5670     ;;
5671    
5672     irix5* | irix6* | nonstopux*)
5673     _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5674     # PIC (with -KPIC) is the default.
5675     _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
5676     ;;
5677    
5678     newsos6)
5679     _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
5680     _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5681     ;;
5682    
5683     linux*)
5684     case $CC in
5685     icc* | ecc*)
5686     _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5687     _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
5688     _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static'
5689     ;;
5690     ccc*)
5691     _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5692     # All Alpha code is PIC.
5693     _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
5694     ;;
5695     esac
5696     ;;
5697    
5698     osf3* | osf4* | osf5*)
5699     _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5700     # All OSF/1 code is PIC.
5701     _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
5702     ;;
5703    
5704     sco3.2v5*)
5705     _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-Kpic'
5706     _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-dn'
5707     ;;
5708    
5709     solaris*)
5710     _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5711     _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
5712     _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5713     ;;
5714    
5715     sunos4*)
5716     _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
5717     _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-PIC'
5718     _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5719     ;;
5720    
5721     sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
5722     _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5723     _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
5724     _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5725     ;;
5726    
5727     sysv4*MP*)
5728     if test -d /usr/nec ;then
5729     _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-Kconform_pic'
5730     _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5731     fi
5732     ;;
5733    
5734     uts4*)
5735     _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
5736     _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5737     ;;
5738    
5739     *)
5740     _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
5741     ;;
5742     esac
5743     fi
5744     ])
5745     AC_MSG_RESULT([$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)])
5746    
5747     #
5748     # Check to make sure the PIC flag actually works.
5749     #
5750     if test -n "$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)"; then
5751     AC_LIBTOOL_COMPILER_OPTION([if $compiler PIC flag $_LT_AC_TAGVAR(lt_prog_compiler_pic, $1) works],
5752     _LT_AC_TAGVAR(lt_prog_compiler_pic_works, $1),
5753     [$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)ifelse([$1],[],[ -DPIC],[ifelse([$1],[CXX],[ -DPIC],[])])], [],
5754     [case $_LT_AC_TAGVAR(lt_prog_compiler_pic, $1) in
5755     "" | " "*) ;;
5756     *) _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=" $_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)" ;;
5757     esac],
5758     [_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
5759     _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no])
5760     fi
5761     case "$host_os" in
5762     # For platforms which do not support PIC, -DPIC is meaningless:
5763     *djgpp*)
5764     _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
5765     ;;
5766     *)
5767     _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)="$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)ifelse([$1],[],[ -DPIC],[ifelse([$1],[CXX],[ -DPIC],[])])"
5768     ;;
5769     esac
5770     ])
5771    
5772    
5773     # AC_LIBTOOL_PROG_LD_SHLIBS([TAGNAME])
5774     # ------------------------------------
5775     # See if the linker supports building shared libraries.
5776     AC_DEFUN([AC_LIBTOOL_PROG_LD_SHLIBS],
5777     [AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries])
5778     ifelse([$1],[CXX],[
5779     _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
5780     case $host_os in
5781     aix4* | aix5*)
5782     # If we're using GNU nm, then we don't want the "-C" option.
5783     # -C means demangle to AIX nm, but means don't demangle with GNU nm
5784     if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
5785     _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\[$]2 == "T") || (\[$]2 == "D") || (\[$]2 == "B")) && ([substr](\[$]3,1,1) != ".")) { print \[$]3 } }'\'' | sort -u > $export_symbols'
5786     else
5787     _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\[$]2 == "T") || (\[$]2 == "D") || (\[$]2 == "B")) && ([substr](\[$]3,1,1) != ".")) { print \[$]3 } }'\'' | sort -u > $export_symbols'
5788     fi
5789     ;;
5790     pw32*)
5791     _LT_AC_TAGVAR(export_symbols_cmds, $1)="$ltdll_cmds"
5792     ;;
5793     cygwin* | mingw*)
5794     _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGS]] /s/.* \([[^ ]]*\)/\1 DATA/'\'' | $SED -e '\''/^[[AITW]] /s/.* //'\'' | sort | uniq > $export_symbols'
5795     ;;
5796     *)
5797     _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
5798     ;;
5799     esac
5800     ],[
5801     runpath_var=
5802     _LT_AC_TAGVAR(allow_undefined_flag, $1)=
5803     _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=no
5804     _LT_AC_TAGVAR(archive_cmds, $1)=
5805     _LT_AC_TAGVAR(archive_expsym_cmds, $1)=
5806     _LT_AC_TAGVAR(old_archive_From_new_cmds, $1)=
5807     _LT_AC_TAGVAR(old_archive_from_expsyms_cmds, $1)=
5808     _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)=
5809     _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
5810     _LT_AC_TAGVAR(thread_safe_flag_spec, $1)=
5811     _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=
5812     _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
5813     _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
5814     _LT_AC_TAGVAR(hardcode_direct, $1)=no
5815     _LT_AC_TAGVAR(hardcode_minus_L, $1)=no
5816     _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
5817     _LT_AC_TAGVAR(link_all_deplibs, $1)=unknown
5818     _LT_AC_TAGVAR(hardcode_automatic, $1)=no
5819     _LT_AC_TAGVAR(module_cmds, $1)=
5820     _LT_AC_TAGVAR(module_expsym_cmds, $1)=
5821     _LT_AC_TAGVAR(always_export_symbols, $1)=no
5822     _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
5823     # include_expsyms should be a list of space-separated symbols to be *always*
5824     # included in the symbol list
5825     _LT_AC_TAGVAR(include_expsyms, $1)=
5826     # exclude_expsyms can be an extended regexp of symbols to exclude
5827     # it will be wrapped by ` (' and `)$', so one must not match beginning or
5828     # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
5829     # as well as any symbol that contains `d'.
5830     _LT_AC_TAGVAR(exclude_expsyms, $1)="_GLOBAL_OFFSET_TABLE_"
5831     # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
5832     # platforms (ab)use it in PIC code, but their linkers get confused if
5833     # the symbol is explicitly referenced. Since portable code cannot
5834     # rely on this symbol name, it's probably fine to never include it in
5835     # preloaded symbol tables.
5836     extract_expsyms_cmds=
5837    
5838     case $host_os in
5839     cygwin* | mingw* | pw32*)
5840     # FIXME: the MSVC++ port hasn't been tested in a loooong time
5841     # When not using gcc, we currently assume that we are using
5842     # Microsoft Visual C++.
5843     if test "$GCC" != yes; then
5844     with_gnu_ld=no
5845     fi
5846     ;;
5847     openbsd*)
5848     with_gnu_ld=no
5849     ;;
5850     esac
5851    
5852     _LT_AC_TAGVAR(ld_shlibs, $1)=yes
5853     if test "$with_gnu_ld" = yes; then
5854     # If archive_cmds runs LD, not CC, wlarc should be empty
5855     wlarc='${wl}'
5856    
5857     # See if GNU ld supports shared libraries.
5858     case $host_os in
5859     aix3* | aix4* | aix5*)
5860     # On AIX/PPC, the GNU linker is very broken
5861     if test "$host_cpu" != ia64; then
5862     _LT_AC_TAGVAR(ld_shlibs, $1)=no
5863     cat <<EOF 1>&2
5864    
5865     *** Warning: the GNU linker, at least up to release 2.9.1, is reported
5866     *** to be unable to reliably create shared libraries on AIX.
5867     *** Therefore, libtool is disabling shared libraries support. If you
5868     *** really care for shared libraries, you may want to modify your PATH
5869     *** so that a non-GNU linker is found, and then restart.
5870    
5871     EOF
5872     fi
5873     ;;
5874    
5875     amigaos*)
5876     _LT_AC_TAGVAR(archive_cmds, $1)='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
5877     _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
5878     _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
5879    
5880     # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
5881     # that the semantics of dynamic libraries on AmigaOS, at least up
5882     # to version 4, is to share data among multiple programs linked
5883     # with the same dynamic library. Since this doesn't match the
5884     # behavior of shared libraries on other platforms, we can't use
5885     # them.
5886     _LT_AC_TAGVAR(ld_shlibs, $1)=no
5887     ;;
5888    
5889     beos*)
5890     if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
5891     _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
5892     # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
5893     # support --undefined. This deserves some investigation. FIXME
5894     _LT_AC_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5895     else
5896     _LT_AC_TAGVAR(ld_shlibs, $1)=no
5897     fi
5898     ;;
5899    
5900     cygwin* | mingw* | pw32*)
5901     # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless,
5902     # as there is no search path for DLLs.
5903     _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
5904     _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
5905     _LT_AC_TAGVAR(always_export_symbols, $1)=no
5906     _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
5907     _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGS]] /s/.* \([[^ ]]*\)/\1 DATA/'\'' | $SED -e '\''/^[[AITW]] /s/.* //'\'' | sort | uniq > $export_symbols'
5908    
5909     if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
5910     _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
5911     # If the export-symbols file already is a .def file (1st line
5912     # is EXPORTS), use it as is; otherwise, prepend...
5913     _LT_AC_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
5914     cp $export_symbols $output_objdir/$soname.def;
5915     else
5916     echo EXPORTS > $output_objdir/$soname.def;
5917     cat $export_symbols >> $output_objdir/$soname.def;
5918     fi~
5919     $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
5920     else
5921     ld_shlibs=no
5922     fi
5923     ;;
5924    
5925     netbsd*)
5926     if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
5927     _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
5928     wlarc=
5929     else
5930     _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5931     _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
5932     fi
5933     ;;
5934    
5935     solaris* | sysv5*)
5936     if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
5937     _LT_AC_TAGVAR(ld_shlibs, $1)=no
5938     cat <<EOF 1>&2
5939    
5940     *** Warning: The releases 2.8.* of the GNU linker cannot reliably
5941     *** create shared libraries on Solaris systems. Therefore, libtool
5942     *** is disabling shared libraries support. We urge you to upgrade GNU
5943     *** binutils to release 2.9.1 or newer. Another option is to modify
5944     *** your PATH or compiler configuration so that the native linker is
5945     *** used, and then restart.
5946    
5947     EOF
5948     elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
5949     _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5950     _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
5951     else
5952     _LT_AC_TAGVAR(ld_shlibs, $1)=no
5953     fi
5954     ;;
5955    
5956     sunos4*)
5957     _LT_AC_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
5958     wlarc=
5959     _LT_AC_TAGVAR(hardcode_direct, $1)=yes
5960     _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
5961     ;;
5962    
5963     linux*)
5964     if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
5965     tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5966     _LT_AC_TAGVAR(archive_cmds, $1)="$tmp_archive_cmds"
5967     supports_anon_versioning=no
5968     case `$LD -v 2>/dev/null` in
5969     *\ [01].* | *\ 2.[[0-9]].* | *\ 2.10.*) ;; # catch versions < 2.11
5970     *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
5971     *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
5972     *\ 2.11.*) ;; # other 2.11 versions
5973     *) supports_anon_versioning=yes ;;
5974     esac
5975     if test $supports_anon_versioning = yes; then
5976     _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $output_objdir/$libname.ver~
5977     cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
5978     $echo "local: *; };" >> $output_objdir/$libname.ver~
5979     $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
5980     else
5981     _LT_AC_TAGVAR(archive_expsym_cmds, $1)="$tmp_archive_cmds"
5982     fi
5983     else
5984     _LT_AC_TAGVAR(ld_shlibs, $1)=no
5985     fi
5986     ;;
5987    
5988     *)
5989     if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
5990     _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5991     _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
5992     else
5993     _LT_AC_TAGVAR(ld_shlibs, $1)=no
5994     fi
5995     ;;
5996     esac
5997    
5998     if test "$_LT_AC_TAGVAR(ld_shlibs, $1)" = yes; then
5999     runpath_var=LD_RUN_PATH
6000     _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir'
6001     _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
6002     # ancient GNU ld didn't support --whole-archive et. al.
6003     if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
6004     _LT_AC_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
6005     else
6006     _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
6007     fi
6008     fi
6009     else
6010     # PORTME fill in a description of your system's linker (not GNU ld)
6011     case $host_os in
6012     aix3*)
6013     _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
6014     _LT_AC_TAGVAR(always_export_symbols, $1)=yes
6015     _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
6016     # Note: this linker hardcodes the directories in LIBPATH if there
6017     # are no directories specified by -L.
6018     _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
6019     if test "$GCC" = yes && test -z "$link_static_flag"; then
6020     # Neither direct hardcoding nor static linking is supported with a
6021     # broken collect2.
6022     _LT_AC_TAGVAR(hardcode_direct, $1)=unsupported
6023     fi
6024     ;;
6025    
6026     aix4* | aix5*)
6027     if test "$host_cpu" = ia64; then
6028     # On IA64, the linker does run time linking by default, so we don't
6029     # have to do anything special.
6030     aix_use_runtimelinking=no
6031     exp_sym_flag='-Bexport'
6032     no_entry_flag=""
6033     else
6034     # If we're using GNU nm, then we don't want the "-C" option.
6035     # -C means demangle to AIX nm, but means don't demangle with GNU nm
6036     if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
6037     _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\[$]2 == "T") || (\[$]2 == "D") || (\[$]2 == "B")) && ([substr](\[$]3,1,1) != ".")) { print \[$]3 } }'\'' | sort -u > $export_symbols'
6038     else
6039     _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\[$]2 == "T") || (\[$]2 == "D") || (\[$]2 == "B")) && ([substr](\[$]3,1,1) != ".")) { print \[$]3 } }'\'' | sort -u > $export_symbols'
6040     fi
6041     aix_use_runtimelinking=no
6042    
6043     # Test if we are trying to use run time linking or normal
6044     # AIX style linking. If -brtl is somewhere in LDFLAGS, we
6045     # need to do runtime linking.
6046     case $host_os in aix4.[[23]]|aix4.[[23]].*|aix5*)
6047     for ld_flag in $LDFLAGS; do
6048     if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
6049     aix_use_runtimelinking=yes
6050     break
6051     fi
6052     done
6053     esac
6054    
6055     exp_sym_flag='-bexport'
6056     no_entry_flag='-bnoentry'
6057     fi
6058    
6059     # When large executables or shared objects are built, AIX ld can
6060     # have problems creating the table of contents. If linking a library
6061     # or program results in "error TOC overflow" add -mminimal-toc to
6062     # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
6063     # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
6064    
6065     _LT_AC_TAGVAR(archive_cmds, $1)=''
6066     _LT_AC_TAGVAR(hardcode_direct, $1)=yes
6067     _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=':'
6068     _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
6069    
6070     if test "$GCC" = yes; then
6071     case $host_os in aix4.[012]|aix4.[012].*)
6072     # We only want to do this on AIX 4.2 and lower, the check
6073     # below for broken collect2 doesn't work under 4.3+
6074     collect2name=`${CC} -print-prog-name=collect2`
6075     if test -f "$collect2name" && \
6076     strings "$collect2name" | grep resolve_lib_name >/dev/null
6077     then
6078     # We have reworked collect2
6079     _LT_AC_TAGVAR(hardcode_direct, $1)=yes
6080     else
6081     # We have old collect2
6082     _LT_AC_TAGVAR(hardcode_direct, $1)=unsupported
6083     # It fails to find uninstalled libraries when the uninstalled
6084     # path is not listed in the libpath. Setting hardcode_minus_L
6085     # to unsupported forces relinking
6086     _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
6087     _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
6088     _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
6089     fi
6090     esac
6091     shared_flag='-shared'
6092     else
6093     # not using gcc
6094     if test "$host_cpu" = ia64; then
6095     # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
6096     # chokes on -Wl,-G. The following line is correct:
6097     shared_flag='-G'
6098     else
6099     if test "$aix_use_runtimelinking" = yes; then
6100     shared_flag='${wl}-G'
6101     else
6102     shared_flag='${wl}-bM:SRE'
6103     fi
6104     fi
6105     fi
6106    
6107     # It seems that -bexpall does not export symbols beginning with
6108     # underscore (_), so it is better to generate a list of symbols to export.
6109     _LT_AC_TAGVAR(always_export_symbols, $1)=yes
6110     if test "$aix_use_runtimelinking" = yes; then
6111     # Warning - without using the other runtime loading flags (-brtl),
6112     # -berok will link without error, but may produce a broken library.
6113     _LT_AC_TAGVAR(allow_undefined_flag, $1)='-berok'
6114     # Determine the default libpath from the value encoded in an empty executable.
6115     _LT_AC_SYS_LIBPATH_AIX
6116     _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
6117     _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
6118     else
6119     if test "$host_cpu" = ia64; then
6120     _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib'
6121     _LT_AC_TAGVAR(allow_undefined_flag, $1)="-z nodefs"
6122     _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
6123     else
6124     # Determine the default libpath from the value encoded in an empty executable.
6125     _LT_AC_SYS_LIBPATH_AIX
6126     _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
6127     # Warning - without using the other run time loading flags,
6128     # -berok will link without error, but may produce a broken library.
6129     _LT_AC_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok'
6130     _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok'
6131     # -bexpall does not export symbols beginning with underscore (_)
6132     _LT_AC_TAGVAR(always_export_symbols, $1)=yes
6133     # Exported symbols can be pulled into shared objects from archives
6134     _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=' '
6135     _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes
6136     # This is similar to how AIX traditionally builds it's shared libraries.
6137     _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
6138     fi
6139     fi
6140     ;;
6141    
6142     amigaos*)
6143     _LT_AC_TAGVAR(archive_cmds, $1)='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
6144     _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
6145     _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
6146     # see comment about different semantics on the GNU ld section
6147     _LT_AC_TAGVAR(ld_shlibs, $1)=no
6148     ;;
6149    
6150     bsdi4*)
6151     _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)=-rdynamic
6152     ;;
6153    
6154     cygwin* | mingw* | pw32*)
6155     # When not using gcc, we currently assume that we are using
6156     # Microsoft Visual C++.
6157     # hardcode_libdir_flag_spec is actually meaningless, as there is
6158     # no search path for DLLs.
6159     _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=' '
6160     _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
6161     # Tell ltmain to make .lib files, not .a files.
6162     libext=lib
6163     # Tell ltmain to make .dll files, not .so files.
6164     shrext=".dll"
6165     # FIXME: Setting linknames here is a bad hack.
6166     _LT_AC_TAGVAR(archive_cmds, $1)='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
6167     # The linker will automatically build a .lib file if we build a DLL.
6168     _LT_AC_TAGVAR(old_archive_From_new_cmds, $1)='true'
6169     # FIXME: Should let the user specify the lib program.
6170     _LT_AC_TAGVAR(old_archive_cmds, $1)='lib /OUT:$oldlib$oldobjs$old_deplibs'
6171     fix_srcfile_path='`cygpath -w "$srcfile"`'
6172     _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
6173     ;;
6174    
6175     darwin* | rhapsody*)
6176     if test "$GXX" = yes ; then
6177     _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
6178     case "$host_os" in
6179     rhapsody* | darwin1.[[012]])
6180     _LT_AC_TAGVAR(allow_undefined_flag, $1)='-undefined suppress'
6181     ;;
6182     *) # Darwin 1.3 on
6183     if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
6184     _LT_AC_TAGVAR(allow_undefined_flag, $1)='-flat_namespace -undefined suppress'
6185     else
6186     case ${MACOSX_DEPLOYMENT_TARGET} in
6187     10.[[012]])
6188     _LT_AC_TAGVAR(allow_undefined_flag, $1)='-flat_namespace -undefined suppress'
6189     ;;
6190     10.*)
6191     _LT_AC_TAGVAR(allow_undefined_flag, $1)='-undefined dynamic_lookup'
6192     ;;
6193     esac
6194     fi
6195     ;;
6196     esac
6197     lt_int_apple_cc_single_mod=no
6198     output_verbose_link_cmd='echo'
6199     if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
6200     lt_int_apple_cc_single_mod=yes
6201     fi
6202     if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
6203     _LT_AC_TAGVAR(archive_cmds, $1)='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
6204     else
6205     _LT_AC_TAGVAR(archive_cmds, $1)='$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
6206     fi
6207     _LT_AC_TAGVAR(module_cmds, $1)='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
6208     # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
6209     if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
6210     _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}'
6211     else
6212     _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
6213     fi
6214     _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}'
6215     _LT_AC_TAGVAR(hardcode_direct, $1)=no
6216     _LT_AC_TAGVAR(hardcode_automatic, $1)=yes
6217     _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
6218     _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='-all_load $convenience'
6219     _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
6220     else
6221     _LT_AC_TAGVAR(ld_shlibs, $1)=no
6222     fi
6223     ;;
6224    
6225     dgux*)
6226     _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6227     _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
6228     _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
6229     ;;
6230    
6231     freebsd1*)
6232     _LT_AC_TAGVAR(ld_shlibs, $1)=no
6233     ;;
6234    
6235     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
6236     # support. Future versions do this automatically, but an explicit c++rt0.o
6237     # does not break anything, and helps significantly (at the cost of a little
6238     # extra space).
6239     freebsd2.2*)
6240     _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
6241     _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
6242     _LT_AC_TAGVAR(hardcode_direct, $1)=yes
6243     _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
6244     ;;
6245    
6246     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
6247     freebsd2*)
6248     _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6249     _LT_AC_TAGVAR(hardcode_direct, $1)=yes
6250     _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
6251     _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
6252     ;;
6253    
6254     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
6255     freebsd* | kfreebsd*-gnu)
6256     _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
6257     _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
6258     _LT_AC_TAGVAR(hardcode_direct, $1)=yes
6259     _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
6260     ;;
6261    
6262     hpux9*)
6263     if test "$GCC" = yes; then
6264     _LT_AC_TAGVAR(archive_cmds, $1)='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
6265     else
6266     _LT_AC_TAGVAR(archive_cmds, $1)='$rm $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
6267     fi
6268     _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
6269     _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
6270     _LT_AC_TAGVAR(hardcode_direct, $1)=yes
6271    
6272     # hardcode_minus_L: Not really in the search PATH,
6273     # but as the default location of the library.
6274     _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
6275     _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
6276     ;;
6277    
6278     hpux10* | hpux11*)
6279     if test "$GCC" = yes -a "$with_gnu_ld" = no; then
6280     case "$host_cpu" in
6281     hppa*64*|ia64*)
6282     _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
6283     ;;
6284     *)
6285     _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
6286     ;;
6287     esac
6288     else
6289     case "$host_cpu" in
6290     hppa*64*|ia64*)
6291     _LT_AC_TAGVAR(archive_cmds, $1)='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
6292     ;;
6293     *)
6294     _LT_AC_TAGVAR(archive_cmds, $1)='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
6295     ;;
6296     esac
6297     fi
6298     if test "$with_gnu_ld" = no; then
6299     case "$host_cpu" in
6300     hppa*64*)
6301     _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
6302     _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='+b $libdir'
6303     _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
6304     _LT_AC_TAGVAR(hardcode_direct, $1)=no
6305     _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
6306     ;;
6307     ia64*)
6308     _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
6309     _LT_AC_TAGVAR(hardcode_direct, $1)=no
6310     _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
6311    
6312     # hardcode_minus_L: Not really in the search PATH,
6313     # but as the default location of the library.
6314     _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
6315     ;;
6316     *)
6317     _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
6318     _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
6319     _LT_AC_TAGVAR(hardcode_direct, $1)=yes
6320     _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
6321    
6322     # hardcode_minus_L: Not really in the search PATH,
6323     # but as the default location of the library.
6324     _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
6325     ;;
6326     esac
6327     fi
6328     ;;
6329    
6330     irix5* | irix6* | nonstopux*)
6331     if test "$GCC" = yes; then
6332     _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
6333     else
6334     _LT_AC_TAGVAR(archive_cmds, $1)='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
6335     _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='-rpath $libdir'
6336     fi
6337     _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
6338     _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
6339     _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
6340     ;;
6341    
6342     netbsd*)
6343     if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6344     _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
6345     else
6346     _LT_AC_TAGVAR(archive_cmds, $1)='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
6347     fi
6348     _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
6349     _LT_AC_TAGVAR(hardcode_direct, $1)=yes
6350     _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
6351     ;;
6352    
6353     newsos6)
6354     _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6355     _LT_AC_TAGVAR(hardcode_direct, $1)=yes
6356     _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
6357     _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
6358     _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
6359     ;;
6360    
6361     openbsd*)
6362     _LT_AC_TAGVAR(hardcode_direct, $1)=yes
6363     _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
6364     if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6365     _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
6366     _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
6367     _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
6368     else
6369     case $host_os in
6370     openbsd[[01]].* | openbsd2.[[0-7]] | openbsd2.[[0-7]].*)
6371     _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6372     _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
6373     ;;
6374     *)
6375     _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
6376     _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
6377     ;;
6378     esac
6379     fi
6380     ;;
6381    
6382     os2*)
6383     _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
6384     _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
6385     _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
6386     _LT_AC_TAGVAR(archive_cmds, $1)='$echo "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$echo "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$echo DATA >> $output_objdir/$libname.def~$echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~$echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
6387     _LT_AC_TAGVAR(old_archive_From_new_cmds, $1)='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
6388     ;;
6389    
6390     osf3*)
6391     if test "$GCC" = yes; then
6392     _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
6393     _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
6394     else
6395     _LT_AC_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
6396     _LT_AC_TAGVAR(archive_cmds, $1)='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
6397     fi
6398     _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
6399     _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
6400     ;;
6401    
6402     osf4* | osf5*) # as osf3* with the addition of -msym flag
6403     if test "$GCC" = yes; then
6404     _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
6405     _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
6406     _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
6407     else
6408     _LT_AC_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
6409     _LT_AC_TAGVAR(archive_cmds, $1)='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
6410     _LT_AC_TAGVAR(archive_expsym_cmds, $1)='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
6411     $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib~$rm $lib.exp'
6412    
6413     # Both c and cxx compiler support -rpath directly
6414     _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
6415     fi
6416     _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
6417     ;;
6418    
6419     sco3.2v5*)
6420     _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6421     _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
6422     _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport'
6423     runpath_var=LD_RUN_PATH
6424     hardcode_runpath_var=yes
6425     ;;
6426    
6427     solaris*)
6428     _LT_AC_TAGVAR(no_undefined_flag, $1)=' -z text'
6429     if test "$GCC" = yes; then
6430     _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
6431     _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
6432     $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
6433     else
6434     _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
6435     _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
6436     $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
6437     fi
6438     _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
6439     _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
6440     case $host_os in
6441     solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
6442     *) # Supported since Solaris 2.6 (maybe 2.5.1?)
6443     _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract' ;;
6444     esac
6445     _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
6446     ;;
6447    
6448     sunos4*)
6449     if test "x$host_vendor" = xsequent; then
6450     # Use $CC to link under sequent, because it throws in some extra .o
6451     # files that make .init and .fini sections work.
6452     _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
6453     else
6454     _LT_AC_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
6455     fi
6456     _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
6457     _LT_AC_TAGVAR(hardcode_direct, $1)=yes
6458     _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
6459     _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
6460     ;;
6461    
6462     sysv4)
6463     case $host_vendor in
6464     sni)
6465     _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6466     _LT_AC_TAGVAR(hardcode_direct, $1)=yes # is this really true???
6467     ;;
6468     siemens)
6469     ## LD is ld it makes a PLAMLIB
6470     ## CC just makes a GrossModule.
6471     _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -o $lib $libobjs $deplibs $linker_flags'
6472     _LT_AC_TAGVAR(reload_cmds, $1)='$CC -r -o $output$reload_objs'
6473     _LT_AC_TAGVAR(hardcode_direct, $1)=no
6474     ;;
6475     motorola)
6476     _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6477     _LT_AC_TAGVAR(hardcode_direct, $1)=no #Motorola manual says yes, but my tests say they lie
6478     ;;
6479     esac
6480     runpath_var='LD_RUN_PATH'
6481     _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
6482     ;;
6483    
6484     sysv4.3*)
6485     _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6486     _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
6487     _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='-Bexport'
6488     ;;
6489    
6490     sysv4*MP*)
6491     if test -d /usr/nec; then
6492     _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6493     _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
6494     runpath_var=LD_RUN_PATH
6495     hardcode_runpath_var=yes
6496     _LT_AC_TAGVAR(ld_shlibs, $1)=yes
6497     fi
6498     ;;
6499    
6500     sysv4.2uw2*)
6501     _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -o $lib $libobjs $deplibs $linker_flags'
6502     _LT_AC_TAGVAR(hardcode_direct, $1)=yes
6503     _LT_AC_TAGVAR(hardcode_minus_L, $1)=no
6504     _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
6505     hardcode_runpath_var=yes
6506     runpath_var=LD_RUN_PATH
6507     ;;
6508    
6509     sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[[78]]* | unixware7*)
6510     _LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z ${wl}text'
6511     if test "$GCC" = yes; then
6512     _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
6513     else
6514     _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
6515     fi
6516     runpath_var='LD_RUN_PATH'
6517     _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
6518     ;;
6519    
6520     sysv5*)
6521     _LT_AC_TAGVAR(no_undefined_flag, $1)=' -z text'
6522     # $CC -shared without GNU ld will not create a library from C++
6523     # object files and a static libstdc++, better avoid it by now
6524     _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
6525     _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
6526     $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
6527     _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=
6528     _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
6529     runpath_var='LD_RUN_PATH'
6530     ;;
6531    
6532     uts4*)
6533     _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6534     _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
6535     _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
6536     ;;
6537    
6538     *)
6539     _LT_AC_TAGVAR(ld_shlibs, $1)=no
6540     ;;
6541     esac
6542     fi
6543     ])
6544     AC_MSG_RESULT([$_LT_AC_TAGVAR(ld_shlibs, $1)])
6545     test "$_LT_AC_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no
6546    
6547     variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
6548     if test "$GCC" = yes; then
6549     variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
6550     fi
6551    
6552     #
6553     # Do we need to explicitly link libc?
6554     #
6555     case "x$_LT_AC_TAGVAR(archive_cmds_need_lc, $1)" in
6556     x|xyes)
6557     # Assume -lc should be added
6558     _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes
6559    
6560     if test "$enable_shared" = yes && test "$GCC" = yes; then
6561     case $_LT_AC_TAGVAR(archive_cmds, $1) in
6562     *'~'*)
6563     # FIXME: we may have to deal with multi-command sequences.
6564     ;;
6565     '$CC '*)
6566     # Test whether the compiler implicitly links with -lc since on some
6567     # systems, -lgcc has to come before -lc. If gcc already passes -lc
6568     # to ld, don't add -lc before -lgcc.
6569     AC_MSG_CHECKING([whether -lc should be explicitly linked in])
6570     $rm conftest*
6571     printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6572    
6573     if AC_TRY_EVAL(ac_compile) 2>conftest.err; then
6574     soname=conftest
6575     lib=conftest
6576     libobjs=conftest.$ac_objext
6577     deplibs=
6578     wl=$_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)
6579     compiler_flags=-v
6580     linker_flags=-v
6581     verstring=
6582     output_objdir=.
6583     libname=conftest
6584     lt_save_allow_undefined_flag=$_LT_AC_TAGVAR(allow_undefined_flag, $1)
6585     _LT_AC_TAGVAR(allow_undefined_flag, $1)=
6586     if AC_TRY_EVAL(_LT_AC_TAGVAR(archive_cmds, $1) 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1)
6587     then
6588     _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
6589     else
6590     _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes
6591     fi
6592     _LT_AC_TAGVAR(allow_undefined_flag, $1)=$lt_save_allow_undefined_flag
6593     else
6594     cat conftest.err 1>&5
6595     fi
6596     $rm conftest*
6597     AC_MSG_RESULT([$_LT_AC_TAGVAR(archive_cmds_need_lc, $1)])
6598     ;;
6599     esac
6600     fi
6601     ;;
6602     esac
6603     ])# AC_LIBTOOL_PROG_LD_SHLIBS
6604    
6605    
6606     # _LT_AC_FILE_LTDLL_C
6607     # -------------------
6608     # Be careful that the start marker always follows a newline.
6609     AC_DEFUN([_LT_AC_FILE_LTDLL_C], [
6610     # /* ltdll.c starts here */
6611     # #define WIN32_LEAN_AND_MEAN
6612     # #include <windows.h>
6613     # #undef WIN32_LEAN_AND_MEAN
6614     # #include <stdio.h>
6615     #
6616     # #ifndef __CYGWIN__
6617     # # ifdef __CYGWIN32__
6618     # # define __CYGWIN__ __CYGWIN32__
6619     # # endif
6620     # #endif
6621     #
6622     # #ifdef __cplusplus
6623     # extern "C" {
6624     # #endif
6625     # BOOL APIENTRY DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved);
6626     # #ifdef __cplusplus
6627     # }
6628     # #endif
6629     #
6630     # #ifdef __CYGWIN__
6631     # #include <cygwin/cygwin_dll.h>
6632     # DECLARE_CYGWIN_DLL( DllMain );
6633     # #endif
6634     # HINSTANCE __hDllInstance_base;
6635     #
6636     # BOOL APIENTRY
6637     # DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved)
6638     # {
6639     # __hDllInstance_base = hInst;
6640     # return TRUE;
6641     # }
6642     # /* ltdll.c ends here */
6643     ])# _LT_AC_FILE_LTDLL_C
6644    
6645    
6646     # _LT_AC_TAGVAR(VARNAME, [TAGNAME])
6647     # ---------------------------------
6648     AC_DEFUN([_LT_AC_TAGVAR], [ifelse([$2], [], [$1], [$1_$2])])
6649    
6650    
6651     # old names
6652     AC_DEFUN([AM_PROG_LIBTOOL], [AC_PROG_LIBTOOL])
6653     AC_DEFUN([AM_ENABLE_SHARED], [AC_ENABLE_SHARED($@)])
6654     AC_DEFUN([AM_ENABLE_STATIC], [AC_ENABLE_STATIC($@)])
6655     AC_DEFUN([AM_DISABLE_SHARED], [AC_DISABLE_SHARED($@)])
6656     AC_DEFUN([AM_DISABLE_STATIC], [AC_DISABLE_STATIC($@)])
6657     AC_DEFUN([AM_PROG_LD], [AC_PROG_LD])
6658     AC_DEFUN([AM_PROG_NM], [AC_PROG_NM])
6659    
6660     # This is just to silence aclocal about the macro not being used
6661     ifelse([AC_DISABLE_FAST_INSTALL])
6662    
6663     AC_DEFUN([LT_AC_PROG_GCJ],
6664     [AC_CHECK_TOOL(GCJ, gcj, no)
6665     test "x${GCJFLAGS+set}" = xset || GCJFLAGS="-g -O2"
6666     AC_SUBST(GCJFLAGS)
6667     ])
6668    
6669     AC_DEFUN([LT_AC_PROG_RC],
6670     [AC_CHECK_TOOL(RC, windres, no)
6671     ])
6672    
6673     # NOTE: This macro has been submitted for inclusion into #
6674     # GNU Autoconf as AC_PROG_SED. When it is available in #
6675     # a released version of Autoconf we should remove this #
6676     # macro and use it instead. #
6677     # LT_AC_PROG_SED
6678     # --------------
6679     # Check for a fully-functional sed program, that truncates
6680     # as few characters as possible. Prefer GNU sed if found.
6681     AC_DEFUN([LT_AC_PROG_SED],
6682     [AC_MSG_CHECKING([for a sed that does not truncate output])
6683     AC_CACHE_VAL(lt_cv_path_SED,
6684     [# Loop through the user's path and test for sed and gsed.
6685     # Then use that list of sed's as ones to test for truncation.
6686     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6687     for as_dir in $PATH
6688     do
6689     IFS=$as_save_IFS
6690     test -z "$as_dir" && as_dir=.
6691     for lt_ac_prog in sed gsed; do
6692     for ac_exec_ext in '' $ac_executable_extensions; do
6693     if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
6694     lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
6695     fi
6696     done
6697     done
6698     done
6699     lt_ac_max=0
6700     lt_ac_count=0
6701     # Add /usr/xpg4/bin/sed as it is typically found on Solaris
6702     # along with /bin/sed that truncates output.
6703     for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
6704     test ! -f $lt_ac_sed && break
6705     cat /dev/null > conftest.in
6706     lt_ac_count=0
6707     echo $ECHO_N "0123456789$ECHO_C" >conftest.in
6708     # Check for GNU sed and select it if it is found.
6709     if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
6710     lt_cv_path_SED=$lt_ac_sed
6711     break
6712     fi
6713     while true; do
6714     cat conftest.in conftest.in >conftest.tmp
6715     mv conftest.tmp conftest.in
6716     cp conftest.in conftest.nl
6717     echo >>conftest.nl
6718     $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
6719     cmp -s conftest.out conftest.nl || break
6720     # 10000 chars as input seems more than enough
6721     test $lt_ac_count -gt 10 && break
6722     lt_ac_count=`expr $lt_ac_count + 1`
6723     if test $lt_ac_count -gt $lt_ac_max; then
6724     lt_ac_max=$lt_ac_count
6725     lt_cv_path_SED=$lt_ac_sed
6726     fi
6727     done
6728     done
6729     SED=$lt_cv_path_SED
6730     ])
6731     AC_MSG_RESULT([$SED])
6732     ])
6733    

  ViewVC Help
Powered by ViewVC