/[svn]/linuxsampler/trunk/aclocal.m4
ViewVC logotype

Annotation of /linuxsampler/trunk/aclocal.m4

Parent Directory Parent Directory | Revision Log Revision Log


Revision 53 - (hide annotations) (download)
Mon Apr 26 17:15:51 2004 UTC (19 years, 11 months ago) by schoenebeck
File size: 240629 byte(s)
* completely restructured source tree
* implemented multi channel support
* implemented instrument manager, which controls sharing of instruments
  between multiple sampler engines / sampler channels
* created abstract classes 'AudioOutputDevice' and 'MidiInputDevice' for
  convenient implementation of further audio output driver and MIDI input
  driver for LinuxSampler
* implemented following LSCP commands: 'SET CHANNEL MIDI INPUT TYPE',
  'LOAD ENGINE', 'GET CHANNELS', 'ADD CHANNEL', 'REMOVE CHANNEL',
  'SET CHANNEL AUDIO OUTPUT TYPE'
* temporarily removed all command line options
* LSCP server is now launched by default

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

  ViewVC Help
Powered by ViewVC