/[svn]/ircd-hybrid-7.2/aclocal.m4
ViewVC logotype

Annotation of /ircd-hybrid-7.2/aclocal.m4

Parent Directory Parent Directory | Revision Log Revision Log


Revision 945 - (hide annotations)
Mon Jul 20 15:48:27 2009 UTC (10 years, 3 months ago) by michael
File size: 348031 byte(s)
- fixed some configure mess and imported latest libtool sources

1 michael 945 # generated automatically by aclocal 1.11 -*- Autoconf -*-
2 michael 912
3     # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004,
4 michael 945 # 2005, 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
5 michael 912 # 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 db 941 m4_ifndef([AC_AUTOCONF_VERSION],
15     [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl
16 michael 945 m4_if(m4_defn([AC_AUTOCONF_VERSION]), [2.63],,
17     [m4_warning([this file was generated for autoconf 2.63.
18 db 941 You have another version of autoconf. It may work, but is not guaranteed to.
19     If you have problems, you may need to regenerate the build system entirely.
20     To do so, use the procedure documented by the package, typically `autoreconf'.])])
21 michael 912
22 michael 945 # Portability macros for glibc argz. -*- Autoconf -*-
23     #
24     # Copyright (C) 2004, 2005, 2006, 2007 Free Software Foundation, Inc.
25     # Written by Gary V. Vaughan <gary@gnu.org>
26     #
27     # This file is free software; the Free Software Foundation gives
28     # unlimited permission to copy and/or distribute it, with or without
29     # modifications, as long as this notice is preserved.
30    
31     # serial 5 argz.m4
32    
33     AC_DEFUN([gl_FUNC_ARGZ],
34     [gl_PREREQ_ARGZ
35    
36     AC_CHECK_HEADERS([argz.h], [], [], [AC_INCLUDES_DEFAULT])
37    
38     AC_CHECK_TYPES([error_t],
39     [],
40     [AC_DEFINE([error_t], [int],
41     [Define to a type to use for `error_t' if it is not otherwise available.])
42     AC_DEFINE([__error_t_defined], [1], [Define so that glibc/gnulib argp.h
43     does not typedef error_t.])],
44     [#if defined(HAVE_ARGZ_H)
45     # include <argz.h>
46     #endif])
47    
48     ARGZ_H=
49     AC_CHECK_FUNCS([argz_add argz_append argz_count argz_create_sep argz_insert \
50     argz_next argz_stringify], [], [ARGZ_H=argz.h; AC_LIBOBJ([argz])])
51    
52     dnl if have system argz functions, allow forced use of
53     dnl libltdl-supplied implementation (and default to do so
54     dnl on "known bad" systems). Could use a runtime check, but
55     dnl (a) detecting malloc issues is notoriously unreliable
56     dnl (b) only known system that declares argz functions,
57     dnl provides them, yet they are broken, is cygwin
58     dnl releases prior to 16-Mar-2007 (1.5.24 and earlier)
59     dnl So, it's more straightforward simply to special case
60     dnl this for known bad systems.
61     AS_IF([test -z "$ARGZ_H"],
62     [AC_CACHE_CHECK(
63     [if argz actually works],
64     [lt_cv_sys_argz_works],
65     [[case $host_os in #(
66     *cygwin*)
67     lt_cv_sys_argz_works=no
68     if test "$cross_compiling" != no; then
69     lt_cv_sys_argz_works="guessing no"
70     else
71     lt_sed_extract_leading_digits='s/^\([0-9\.]*\).*/\1/'
72     save_IFS=$IFS
73     IFS=-.
74     set x `uname -r | sed -e "$lt_sed_extract_leading_digits"`
75     IFS=$save_IFS
76     lt_os_major=${2-0}
77     lt_os_minor=${3-0}
78     lt_os_micro=${4-0}
79     if test "$lt_os_major" -gt 1 \
80     || { test "$lt_os_major" -eq 1 \
81     && { test "$lt_os_minor" -gt 5 \
82     || { test "$lt_os_minor" -eq 5 \
83     && test "$lt_os_micro" -gt 24; }; }; }; then
84     lt_cv_sys_argz_works=yes
85     fi
86     fi
87     ;; #(
88     *) lt_cv_sys_argz_works=yes ;;
89     esac]])
90     AS_IF([test $lt_cv_sys_argz_works = yes],
91     [AC_DEFINE([HAVE_WORKING_ARGZ], 1,
92     [This value is set to 1 to indicate that the system argz facility works])],
93     [ARGZ_H=argz.h
94     AC_LIBOBJ([argz])])])
95    
96     AC_SUBST([ARGZ_H])
97     ])
98    
99     # Prerequisites of lib/argz.c.
100     AC_DEFUN([gl_PREREQ_ARGZ], [:])
101    
102 michael 912 # libtool.m4 - Configure libtool for the host system. -*-Autoconf-*-
103 michael 945 #
104     # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
105     # 2006, 2007, 2008 Free Software Foundation, Inc.
106     # Written by Gordon Matzigkeit, 1996
107     #
108     # This file is free software; the Free Software Foundation gives
109     # unlimited permission to copy and/or distribute it, with or without
110     # modifications, as long as this notice is preserved.
111 michael 912
112 michael 945 m4_define([_LT_COPYING], [dnl
113     # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
114     # 2006, 2007, 2008 Free Software Foundation, Inc.
115     # Written by Gordon Matzigkeit, 1996
116     #
117     # This file is part of GNU Libtool.
118     #
119     # GNU Libtool is free software; you can redistribute it and/or
120     # modify it under the terms of the GNU General Public License as
121     # published by the Free Software Foundation; either version 2 of
122     # the License, or (at your option) any later version.
123     #
124     # As a special exception to the GNU General Public License,
125     # if you distribute this file as part of a program or library that
126     # is built using GNU Libtool, you may include this file under the
127     # same distribution terms that you use for the rest of that program.
128     #
129     # GNU Libtool is distributed in the hope that it will be useful,
130     # but WITHOUT ANY WARRANTY; without even the implied warranty of
131     # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
132     # GNU General Public License for more details.
133     #
134     # You should have received a copy of the GNU General Public License
135     # along with GNU Libtool; see the file COPYING. If not, a copy
136     # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
137     # obtained by writing to the Free Software Foundation, Inc.,
138     # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
139     ])
140 michael 912
141 michael 945 # serial 56 LT_INIT
142 michael 912
143    
144 michael 945 # LT_PREREQ(VERSION)
145     # ------------------
146     # Complain and exit if this libtool version is less that VERSION.
147     m4_defun([LT_PREREQ],
148     [m4_if(m4_version_compare(m4_defn([LT_PACKAGE_VERSION]), [$1]), -1,
149     [m4_default([$3],
150     [m4_fatal([Libtool version $1 or higher is required],
151     63)])],
152     [$2])])
153 michael 912
154    
155 michael 945 # _LT_CHECK_BUILDDIR
156     # ------------------
157     # Complain if the absolute build directory name contains unusual characters
158     m4_defun([_LT_CHECK_BUILDDIR],
159     [case `pwd` in
160     *\ * | *\ *)
161     AC_MSG_WARN([Libtool does not cope well with whitespace in `pwd`]) ;;
162     esac
163     ])
164 michael 912
165    
166 michael 945 # LT_INIT([OPTIONS])
167     # ------------------
168     AC_DEFUN([LT_INIT],
169     [AC_PREREQ([2.58])dnl We use AC_INCLUDES_DEFAULT
170     AC_BEFORE([$0], [LT_LANG])dnl
171     AC_BEFORE([$0], [LT_OUTPUT])dnl
172     AC_BEFORE([$0], [LTDL_INIT])dnl
173     m4_require([_LT_CHECK_BUILDDIR])dnl
174 michael 912
175 michael 945 dnl Autoconf doesn't catch unexpanded LT_ macros by default:
176     m4_pattern_forbid([^_?LT_[A-Z_]+$])dnl
177     m4_pattern_allow([^(_LT_EOF|LT_DLGLOBAL|LT_DLLAZY_OR_NOW|LT_MULTI_MODULE)$])dnl
178     dnl aclocal doesn't pull ltoptions.m4, ltsugar.m4, or ltversion.m4
179     dnl unless we require an AC_DEFUNed macro:
180     AC_REQUIRE([LTOPTIONS_VERSION])dnl
181     AC_REQUIRE([LTSUGAR_VERSION])dnl
182     AC_REQUIRE([LTVERSION_VERSION])dnl
183     AC_REQUIRE([LTOBSOLETE_VERSION])dnl
184     m4_require([_LT_PROG_LTMAIN])dnl
185    
186     dnl Parse OPTIONS
187     _LT_SET_OPTIONS([$0], [$1])
188    
189 michael 912 # This can be used to rebuild libtool when needed
190 michael 945 LIBTOOL_DEPS="$ltmain"
191 michael 912
192     # Always use our own libtool.
193     LIBTOOL='$(SHELL) $(top_builddir)/libtool'
194     AC_SUBST(LIBTOOL)dnl
195    
196 michael 945 _LT_SETUP
197 michael 912
198 michael 945 # Only expand once:
199     m4_define([LT_INIT])
200     ])# LT_INIT
201 michael 912
202 michael 945 # Old names:
203     AU_ALIAS([AC_PROG_LIBTOOL], [LT_INIT])
204     AU_ALIAS([AM_PROG_LIBTOOL], [LT_INIT])
205     dnl aclocal-1.4 backwards compatibility:
206     dnl AC_DEFUN([AC_PROG_LIBTOOL], [])
207     dnl AC_DEFUN([AM_PROG_LIBTOOL], [])
208    
209    
210     # _LT_CC_BASENAME(CC)
211     # -------------------
212     # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
213     m4_defun([_LT_CC_BASENAME],
214     [for cc_temp in $1""; do
215     case $cc_temp in
216     compile | *[[\\/]]compile | ccache | *[[\\/]]ccache ) ;;
217     distcc | *[[\\/]]distcc | purify | *[[\\/]]purify ) ;;
218     \-*) ;;
219     *) break;;
220     esac
221     done
222     cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
223     ])
224    
225    
226     # _LT_FILEUTILS_DEFAULTS
227     # ----------------------
228     # It is okay to use these file commands and assume they have been set
229     # sensibly after `m4_require([_LT_FILEUTILS_DEFAULTS])'.
230     m4_defun([_LT_FILEUTILS_DEFAULTS],
231     [: ${CP="cp -f"}
232     : ${MV="mv -f"}
233     : ${RM="rm -f"}
234     ])# _LT_FILEUTILS_DEFAULTS
235    
236    
237     # _LT_SETUP
238     # ---------
239     m4_defun([_LT_SETUP],
240     [AC_REQUIRE([AC_CANONICAL_HOST])dnl
241 michael 912 AC_REQUIRE([AC_CANONICAL_BUILD])dnl
242 michael 945 _LT_DECL([], [host_alias], [0], [The host system])dnl
243     _LT_DECL([], [host], [0])dnl
244     _LT_DECL([], [host_os], [0])dnl
245     dnl
246     _LT_DECL([], [build_alias], [0], [The build system])dnl
247     _LT_DECL([], [build], [0])dnl
248     _LT_DECL([], [build_os], [0])dnl
249     dnl
250 michael 912 AC_REQUIRE([AC_PROG_CC])dnl
251 michael 945 AC_REQUIRE([LT_PATH_LD])dnl
252     AC_REQUIRE([LT_PATH_NM])dnl
253     dnl
254 michael 912 AC_REQUIRE([AC_PROG_LN_S])dnl
255 michael 945 test -z "$LN_S" && LN_S="ln -s"
256     _LT_DECL([], [LN_S], [1], [Whether we need soft or hard links])dnl
257 michael 912 dnl
258 michael 945 AC_REQUIRE([LT_CMD_MAX_LEN])dnl
259     _LT_DECL([objext], [ac_objext], [0], [Object file suffix (normally "o")])dnl
260     _LT_DECL([], [exeext], [0], [Executable file suffix (normally "")])dnl
261     dnl
262     m4_require([_LT_FILEUTILS_DEFAULTS])dnl
263     m4_require([_LT_CHECK_SHELL_FEATURES])dnl
264     m4_require([_LT_CMD_RELOAD])dnl
265     m4_require([_LT_CHECK_MAGIC_METHOD])dnl
266     m4_require([_LT_CMD_OLD_ARCHIVE])dnl
267     m4_require([_LT_CMD_GLOBAL_SYMBOLS])dnl
268 michael 912
269 michael 945 _LT_CONFIG_LIBTOOL_INIT([
270     # See if we are running on zsh, and set the options which allow our
271     # commands through without removal of \ escapes INIT.
272     if test -n "\${ZSH_VERSION+set}" ; then
273     setopt NO_GLOB_SUBST
274     fi
275     ])
276     if test -n "${ZSH_VERSION+set}" ; then
277     setopt NO_GLOB_SUBST
278     fi
279 michael 912
280 michael 945 _LT_CHECK_OBJDIR
281    
282     m4_require([_LT_TAG_COMPILER])dnl
283     _LT_PROG_ECHO_BACKSLASH
284    
285 michael 912 case $host_os in
286     aix3*)
287     # AIX sometimes has problems with the GCC collect2 program. For some
288     # reason, if we set the COLLECT_NAMES environment variable, the problems
289     # vanish in a puff of smoke.
290     if test "X${COLLECT_NAMES+set}" != Xset; then
291     COLLECT_NAMES=
292     export COLLECT_NAMES
293     fi
294     ;;
295     esac
296    
297     # Sed substitution that helps us do robust quoting. It backslashifies
298     # metacharacters that are still active within double-quoted strings.
299 michael 945 sed_quote_subst='s/\([["`$\\]]\)/\\\1/g'
300 michael 912
301     # Same as above, but do not quote variable references.
302 michael 945 double_quote_subst='s/\([["`\\]]\)/\\\1/g'
303 michael 912
304     # Sed substitution to delay expansion of an escaped shell variable in a
305     # double_quote_subst'ed string.
306     delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
307    
308 michael 945 # Sed substitution to delay expansion of an escaped single quote.
309     delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
310    
311 michael 912 # Sed substitution to avoid accidental globbing in evaled expressions
312     no_glob_subst='s/\*/\\\*/g'
313    
314     # Global variables:
315 michael 945 ofile=libtool
316 michael 912 can_build_shared=yes
317    
318     # All known linkers require a `.a' archive for static linking (except MSVC,
319     # which needs '.lib').
320     libext=a
321 michael 945
322 michael 912 with_gnu_ld="$lt_cv_prog_gnu_ld"
323    
324     old_CC="$CC"
325     old_CFLAGS="$CFLAGS"
326    
327     # Set sane defaults for various variables
328     test -z "$CC" && CC=cc
329     test -z "$LTCC" && LTCC=$CC
330     test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
331     test -z "$LD" && LD=ld
332     test -z "$ac_objext" && ac_objext=o
333    
334     _LT_CC_BASENAME([$compiler])
335    
336     # Only perform the check for file, if the check method requires it
337 michael 945 test -z "$MAGIC_CMD" && MAGIC_CMD=file
338 michael 912 case $deplibs_check_method in
339     file_magic*)
340     if test "$file_magic_cmd" = '$MAGIC_CMD'; then
341 michael 945 _LT_PATH_MAGIC
342 michael 912 fi
343     ;;
344     esac
345    
346 michael 945 # Use C for the default configuration in the libtool script
347     LT_SUPPORTED_TAG([CC])
348     _LT_LANG_C_CONFIG
349     _LT_LANG_DEFAULT_CONFIG
350     _LT_CONFIG_COMMANDS
351     ])# _LT_SETUP
352 db 941
353 michael 912
354 michael 945 # _LT_PROG_LTMAIN
355     # ---------------
356     # Note that this code is called both from `configure', and `config.status'
357     # now that we use AC_CONFIG_COMMANDS to generate libtool. Notably,
358     # `config.status' has no value for ac_aux_dir unless we are using Automake,
359     # so we pass a copy along to make sure it has a sensible value anyway.
360     m4_defun([_LT_PROG_LTMAIN],
361     [m4_ifdef([AC_REQUIRE_AUX_FILE], [AC_REQUIRE_AUX_FILE([ltmain.sh])])dnl
362     _LT_CONFIG_LIBTOOL_INIT([ac_aux_dir='$ac_aux_dir'])
363     ltmain="$ac_aux_dir/ltmain.sh"
364     ])# _LT_PROG_LTMAIN
365 michael 912
366    
367    
368 michael 945 # So that we can recreate a full libtool script including additional
369     # tags, we accumulate the chunks of code to send to AC_CONFIG_COMMANDS
370     # in macros and then make a single call at the end using the `libtool'
371     # label.
372 michael 912
373 michael 945
374     # _LT_CONFIG_LIBTOOL_INIT([INIT-COMMANDS])
375     # ----------------------------------------
376     # Register INIT-COMMANDS to be passed to AC_CONFIG_COMMANDS later.
377     m4_define([_LT_CONFIG_LIBTOOL_INIT],
378     [m4_ifval([$1],
379     [m4_append([_LT_OUTPUT_LIBTOOL_INIT],
380     [$1
381     ])])])
382    
383     # Initialize.
384     m4_define([_LT_OUTPUT_LIBTOOL_INIT])
385    
386    
387     # _LT_CONFIG_LIBTOOL([COMMANDS])
388     # ------------------------------
389     # Register COMMANDS to be passed to AC_CONFIG_COMMANDS later.
390     m4_define([_LT_CONFIG_LIBTOOL],
391     [m4_ifval([$1],
392     [m4_append([_LT_OUTPUT_LIBTOOL_COMMANDS],
393     [$1
394     ])])])
395    
396     # Initialize.
397     m4_define([_LT_OUTPUT_LIBTOOL_COMMANDS])
398    
399    
400     # _LT_CONFIG_SAVE_COMMANDS([COMMANDS], [INIT_COMMANDS])
401     # -----------------------------------------------------
402     m4_defun([_LT_CONFIG_SAVE_COMMANDS],
403     [_LT_CONFIG_LIBTOOL([$1])
404     _LT_CONFIG_LIBTOOL_INIT([$2])
405     ])
406    
407    
408     # _LT_FORMAT_COMMENT([COMMENT])
409     # -----------------------------
410     # Add leading comment marks to the start of each line, and a trailing
411     # full-stop to the whole comment if one is not present already.
412     m4_define([_LT_FORMAT_COMMENT],
413     [m4_ifval([$1], [
414     m4_bpatsubst([m4_bpatsubst([$1], [^ *], [# ])],
415     [['`$\]], [\\\&])]m4_bmatch([$1], [[!?.]$], [], [.])
416     )])
417    
418    
419    
420    
421    
422     # _LT_DECL([CONFIGNAME], VARNAME, VALUE, [DESCRIPTION], [IS-TAGGED?])
423     # -------------------------------------------------------------------
424     # CONFIGNAME is the name given to the value in the libtool script.
425     # VARNAME is the (base) name used in the configure script.
426     # VALUE may be 0, 1 or 2 for a computed quote escaped value based on
427     # VARNAME. Any other value will be used directly.
428     m4_define([_LT_DECL],
429     [lt_if_append_uniq([lt_decl_varnames], [$2], [, ],
430     [lt_dict_add_subkey([lt_decl_dict], [$2], [libtool_name],
431     [m4_ifval([$1], [$1], [$2])])
432     lt_dict_add_subkey([lt_decl_dict], [$2], [value], [$3])
433     m4_ifval([$4],
434     [lt_dict_add_subkey([lt_decl_dict], [$2], [description], [$4])])
435     lt_dict_add_subkey([lt_decl_dict], [$2],
436     [tagged?], [m4_ifval([$5], [yes], [no])])])
437     ])
438    
439    
440     # _LT_TAGDECL([CONFIGNAME], VARNAME, VALUE, [DESCRIPTION])
441     # --------------------------------------------------------
442     m4_define([_LT_TAGDECL], [_LT_DECL([$1], [$2], [$3], [$4], [yes])])
443    
444    
445     # lt_decl_tag_varnames([SEPARATOR], [VARNAME1...])
446     # ------------------------------------------------
447     m4_define([lt_decl_tag_varnames],
448     [_lt_decl_filter([tagged?], [yes], $@)])
449    
450    
451     # _lt_decl_filter(SUBKEY, VALUE, [SEPARATOR], [VARNAME1..])
452     # ---------------------------------------------------------
453     m4_define([_lt_decl_filter],
454     [m4_case([$#],
455     [0], [m4_fatal([$0: too few arguments: $#])],
456     [1], [m4_fatal([$0: too few arguments: $#: $1])],
457     [2], [lt_dict_filter([lt_decl_dict], [$1], [$2], [], lt_decl_varnames)],
458     [3], [lt_dict_filter([lt_decl_dict], [$1], [$2], [$3], lt_decl_varnames)],
459     [lt_dict_filter([lt_decl_dict], $@)])[]dnl
460     ])
461    
462    
463     # lt_decl_quote_varnames([SEPARATOR], [VARNAME1...])
464     # --------------------------------------------------
465     m4_define([lt_decl_quote_varnames],
466     [_lt_decl_filter([value], [1], $@)])
467    
468    
469     # lt_decl_dquote_varnames([SEPARATOR], [VARNAME1...])
470     # ---------------------------------------------------
471     m4_define([lt_decl_dquote_varnames],
472     [_lt_decl_filter([value], [2], $@)])
473    
474    
475     # lt_decl_varnames_tagged([SEPARATOR], [VARNAME1...])
476     # ---------------------------------------------------
477     m4_define([lt_decl_varnames_tagged],
478     [m4_assert([$# <= 2])dnl
479     _$0(m4_quote(m4_default([$1], [[, ]])),
480     m4_ifval([$2], [[$2]], [m4_dquote(lt_decl_tag_varnames)]),
481     m4_split(m4_normalize(m4_quote(_LT_TAGS)), [ ]))])
482     m4_define([_lt_decl_varnames_tagged],
483     [m4_ifval([$3], [lt_combine([$1], [$2], [_], $3)])])
484    
485    
486     # lt_decl_all_varnames([SEPARATOR], [VARNAME1...])
487     # ------------------------------------------------
488     m4_define([lt_decl_all_varnames],
489     [_$0(m4_quote(m4_default([$1], [[, ]])),
490     m4_if([$2], [],
491     m4_quote(lt_decl_varnames),
492     m4_quote(m4_shift($@))))[]dnl
493     ])
494     m4_define([_lt_decl_all_varnames],
495     [lt_join($@, lt_decl_varnames_tagged([$1],
496     lt_decl_tag_varnames([[, ]], m4_shift($@))))dnl
497     ])
498    
499    
500     # _LT_CONFIG_STATUS_DECLARE([VARNAME])
501     # ------------------------------------
502     # Quote a variable value, and forward it to `config.status' so that its
503     # declaration there will have the same value as in `configure'. VARNAME
504     # must have a single quote delimited value for this to work.
505     m4_define([_LT_CONFIG_STATUS_DECLARE],
506     [$1='`$ECHO "X$][$1" | $Xsed -e "$delay_single_quote_subst"`'])
507    
508    
509     # _LT_CONFIG_STATUS_DECLARATIONS
510     # ------------------------------
511     # We delimit libtool config variables with single quotes, so when
512     # we write them to config.status, we have to be sure to quote all
513     # embedded single quotes properly. In configure, this macro expands
514     # each variable declared with _LT_DECL (and _LT_TAGDECL) into:
515     #
516     # <var>='`$ECHO "X$<var>" | $Xsed -e "$delay_single_quote_subst"`'
517     m4_defun([_LT_CONFIG_STATUS_DECLARATIONS],
518     [m4_foreach([_lt_var], m4_quote(lt_decl_all_varnames),
519     [m4_n([_LT_CONFIG_STATUS_DECLARE(_lt_var)])])])
520    
521    
522     # _LT_LIBTOOL_TAGS
523     # ----------------
524     # Output comment and list of tags supported by the script
525     m4_defun([_LT_LIBTOOL_TAGS],
526     [_LT_FORMAT_COMMENT([The names of the tagged configurations supported by this script])dnl
527     available_tags="_LT_TAGS"dnl
528     ])
529    
530    
531     # _LT_LIBTOOL_DECLARE(VARNAME, [TAG])
532     # -----------------------------------
533     # Extract the dictionary values for VARNAME (optionally with TAG) and
534     # expand to a commented shell variable setting:
535     #
536     # # Some comment about what VAR is for.
537     # visible_name=$lt_internal_name
538     m4_define([_LT_LIBTOOL_DECLARE],
539     [_LT_FORMAT_COMMENT(m4_quote(lt_dict_fetch([lt_decl_dict], [$1],
540     [description])))[]dnl
541     m4_pushdef([_libtool_name],
542     m4_quote(lt_dict_fetch([lt_decl_dict], [$1], [libtool_name])))[]dnl
543     m4_case(m4_quote(lt_dict_fetch([lt_decl_dict], [$1], [value])),
544     [0], [_libtool_name=[$]$1],
545     [1], [_libtool_name=$lt_[]$1],
546     [2], [_libtool_name=$lt_[]$1],
547     [_libtool_name=lt_dict_fetch([lt_decl_dict], [$1], [value])])[]dnl
548     m4_ifval([$2], [_$2])[]m4_popdef([_libtool_name])[]dnl
549     ])
550    
551    
552     # _LT_LIBTOOL_CONFIG_VARS
553     # -----------------------
554     # Produce commented declarations of non-tagged libtool config variables
555     # suitable for insertion in the LIBTOOL CONFIG section of the `libtool'
556     # script. Tagged libtool config variables (even for the LIBTOOL CONFIG
557     # section) are produced by _LT_LIBTOOL_TAG_VARS.
558     m4_defun([_LT_LIBTOOL_CONFIG_VARS],
559     [m4_foreach([_lt_var],
560     m4_quote(_lt_decl_filter([tagged?], [no], [], lt_decl_varnames)),
561     [m4_n([_LT_LIBTOOL_DECLARE(_lt_var)])])])
562    
563    
564     # _LT_LIBTOOL_TAG_VARS(TAG)
565     # -------------------------
566     m4_define([_LT_LIBTOOL_TAG_VARS],
567     [m4_foreach([_lt_var], m4_quote(lt_decl_tag_varnames),
568     [m4_n([_LT_LIBTOOL_DECLARE(_lt_var, [$1])])])])
569    
570    
571     # _LT_TAGVAR(VARNAME, [TAGNAME])
572     # ------------------------------
573     m4_define([_LT_TAGVAR], [m4_ifval([$2], [$1_$2], [$1])])
574    
575    
576     # _LT_CONFIG_COMMANDS
577 michael 912 # -------------------
578 michael 945 # Send accumulated output to $CONFIG_STATUS. Thanks to the lists of
579     # variables for single and double quote escaping we saved from calls
580     # to _LT_DECL, we can put quote escaped variables declarations
581     # into `config.status', and then the shell code to quote escape them in
582     # for loops in `config.status'. Finally, any additional code accumulated
583     # from calls to _LT_CONFIG_LIBTOOL_INIT is expanded.
584     m4_defun([_LT_CONFIG_COMMANDS],
585     [AC_PROVIDE_IFELSE([LT_OUTPUT],
586     dnl If the libtool generation code has been placed in $CONFIG_LT,
587     dnl instead of duplicating it all over again into config.status,
588     dnl then we will have config.status run $CONFIG_LT later, so it
589     dnl needs to know what name is stored there:
590     [AC_CONFIG_COMMANDS([libtool],
591     [$SHELL $CONFIG_LT || AS_EXIT(1)], [CONFIG_LT='$CONFIG_LT'])],
592     dnl If the libtool generation code is destined for config.status,
593     dnl expand the accumulated commands and init code now:
594     [AC_CONFIG_COMMANDS([libtool],
595     [_LT_OUTPUT_LIBTOOL_COMMANDS], [_LT_OUTPUT_LIBTOOL_COMMANDS_INIT])])
596     ])#_LT_CONFIG_COMMANDS
597    
598    
599     # Initialize.
600     m4_define([_LT_OUTPUT_LIBTOOL_COMMANDS_INIT],
601     [
602    
603     # The HP-UX ksh and POSIX shell print the target directory to stdout
604     # if CDPATH is set.
605     (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
606    
607     sed_quote_subst='$sed_quote_subst'
608     double_quote_subst='$double_quote_subst'
609     delay_variable_subst='$delay_variable_subst'
610     _LT_CONFIG_STATUS_DECLARATIONS
611     LTCC='$LTCC'
612     LTCFLAGS='$LTCFLAGS'
613     compiler='$compiler_DEFAULT'
614    
615     # Quote evaled strings.
616     for var in lt_decl_all_varnames([[ \
617     ]], lt_decl_quote_varnames); do
618     case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
619     *[[\\\\\\\`\\"\\\$]]*)
620     eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
621     ;;
622     *)
623     eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
624     ;;
625     esac
626     done
627    
628     # Double-quote double-evaled strings.
629     for var in lt_decl_all_varnames([[ \
630     ]], lt_decl_dquote_varnames); do
631     case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
632     *[[\\\\\\\`\\"\\\$]]*)
633     eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
634     ;;
635     *)
636     eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
637     ;;
638     esac
639     done
640    
641     # Fix-up fallback echo if it was mangled by the above quoting rules.
642     case \$lt_ECHO in
643     *'\\\[$]0 --fallback-echo"')dnl "
644     lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\[$]0 --fallback-echo"\[$]/\[$]0 --fallback-echo"/'\`
645     ;;
646     esac
647    
648     _LT_OUTPUT_LIBTOOL_INIT
649     ])
650    
651    
652     # LT_OUTPUT
653     # ---------
654     # This macro allows early generation of the libtool script (before
655     # AC_OUTPUT is called), incase it is used in configure for compilation
656     # tests.
657     AC_DEFUN([LT_OUTPUT],
658     [: ${CONFIG_LT=./config.lt}
659     AC_MSG_NOTICE([creating $CONFIG_LT])
660     cat >"$CONFIG_LT" <<_LTEOF
661     #! $SHELL
662     # Generated by $as_me.
663     # Run this file to recreate a libtool stub with the current configuration.
664    
665     lt_cl_silent=false
666     SHELL=\${CONFIG_SHELL-$SHELL}
667     _LTEOF
668    
669     cat >>"$CONFIG_LT" <<\_LTEOF
670     AS_SHELL_SANITIZE
671     _AS_PREPARE
672    
673     exec AS_MESSAGE_FD>&1
674     exec AS_MESSAGE_LOG_FD>>config.log
675     {
676     echo
677     AS_BOX([Running $as_me.])
678     } >&AS_MESSAGE_LOG_FD
679    
680     lt_cl_help="\
681     \`$as_me' creates a local libtool stub from the current configuration,
682     for use in further configure time tests before the real libtool is
683     generated.
684    
685     Usage: $[0] [[OPTIONS]]
686    
687     -h, --help print this help, then exit
688     -V, --version print version number, then exit
689     -q, --quiet do not print progress messages
690     -d, --debug don't remove temporary files
691    
692     Report bugs to <bug-libtool@gnu.org>."
693    
694     lt_cl_version="\
695     m4_ifset([AC_PACKAGE_NAME], [AC_PACKAGE_NAME ])config.lt[]dnl
696     m4_ifset([AC_PACKAGE_VERSION], [ AC_PACKAGE_VERSION])
697     configured by $[0], generated by m4_PACKAGE_STRING.
698    
699     Copyright (C) 2008 Free Software Foundation, Inc.
700     This config.lt script is free software; the Free Software Foundation
701     gives unlimited permision to copy, distribute and modify it."
702    
703     while test $[#] != 0
704     do
705     case $[1] in
706     --version | --v* | -V )
707     echo "$lt_cl_version"; exit 0 ;;
708     --help | --h* | -h )
709     echo "$lt_cl_help"; exit 0 ;;
710     --debug | --d* | -d )
711     debug=: ;;
712     --quiet | --q* | --silent | --s* | -q )
713     lt_cl_silent=: ;;
714    
715     -*) AC_MSG_ERROR([unrecognized option: $[1]
716     Try \`$[0] --help' for more information.]) ;;
717    
718     *) AC_MSG_ERROR([unrecognized argument: $[1]
719     Try \`$[0] --help' for more information.]) ;;
720     esac
721     shift
722     done
723    
724     if $lt_cl_silent; then
725     exec AS_MESSAGE_FD>/dev/null
726     fi
727     _LTEOF
728    
729     cat >>"$CONFIG_LT" <<_LTEOF
730     _LT_OUTPUT_LIBTOOL_COMMANDS_INIT
731     _LTEOF
732    
733     cat >>"$CONFIG_LT" <<\_LTEOF
734     AC_MSG_NOTICE([creating $ofile])
735     _LT_OUTPUT_LIBTOOL_COMMANDS
736     AS_EXIT(0)
737     _LTEOF
738     chmod +x "$CONFIG_LT"
739    
740     # configure is writing to config.log, but config.lt does its own redirection,
741     # appending to config.log, which fails on DOS, as config.log is still kept
742     # open by configure. Here we exec the FD to /dev/null, effectively closing
743     # config.log, so it can be properly (re)opened and appended to by config.lt.
744     if test "$no_create" != yes; then
745     lt_cl_success=:
746     test "$silent" = yes &&
747     lt_config_lt_args="$lt_config_lt_args --quiet"
748     exec AS_MESSAGE_LOG_FD>/dev/null
749     $SHELL "$CONFIG_LT" $lt_config_lt_args || lt_cl_success=false
750     exec AS_MESSAGE_LOG_FD>>config.log
751     $lt_cl_success || AS_EXIT(1)
752     fi
753     ])# LT_OUTPUT
754    
755    
756     # _LT_CONFIG(TAG)
757     # ---------------
758     # If TAG is the built-in tag, create an initial libtool script with a
759     # default configuration from the untagged config vars. Otherwise add code
760     # to config.status for appending the configuration named by TAG from the
761     # matching tagged config vars.
762     m4_defun([_LT_CONFIG],
763     [m4_require([_LT_FILEUTILS_DEFAULTS])dnl
764     _LT_CONFIG_SAVE_COMMANDS([
765     m4_define([_LT_TAG], m4_if([$1], [], [C], [$1]))dnl
766     m4_if(_LT_TAG, [C], [
767     # See if we are running on zsh, and set the options which allow our
768     # commands through without removal of \ escapes.
769     if test -n "${ZSH_VERSION+set}" ; then
770     setopt NO_GLOB_SUBST
771     fi
772    
773     cfgfile="${ofile}T"
774     trap "$RM \"$cfgfile\"; exit 1" 1 2 15
775     $RM "$cfgfile"
776    
777     cat <<_LT_EOF >> "$cfgfile"
778     #! $SHELL
779    
780     # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
781     # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
782     # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
783     # NOTE: Changes made to this file will be lost: look at ltmain.sh.
784     #
785     _LT_COPYING
786     _LT_LIBTOOL_TAGS
787    
788     # ### BEGIN LIBTOOL CONFIG
789     _LT_LIBTOOL_CONFIG_VARS
790     _LT_LIBTOOL_TAG_VARS
791     # ### END LIBTOOL CONFIG
792    
793     _LT_EOF
794    
795     case $host_os in
796     aix3*)
797     cat <<\_LT_EOF >> "$cfgfile"
798     # AIX sometimes has problems with the GCC collect2 program. For some
799     # reason, if we set the COLLECT_NAMES environment variable, the problems
800     # vanish in a puff of smoke.
801     if test "X${COLLECT_NAMES+set}" != Xset; then
802     COLLECT_NAMES=
803     export COLLECT_NAMES
804     fi
805     _LT_EOF
806     ;;
807     esac
808    
809     _LT_PROG_LTMAIN
810    
811     # We use sed instead of cat because bash on DJGPP gets confused if
812     # if finds mixed CR/LF and LF-only lines. Since sed operates in
813     # text mode, it properly converts lines to CR/LF. This bash problem
814     # is reportedly fixed, but why not run on old versions too?
815     sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
816     || (rm -f "$cfgfile"; exit 1)
817    
818     _LT_PROG_XSI_SHELLFNS
819    
820     sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
821     || (rm -f "$cfgfile"; exit 1)
822    
823     mv -f "$cfgfile" "$ofile" ||
824     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
825     chmod +x "$ofile"
826     ],
827     [cat <<_LT_EOF >> "$ofile"
828    
829     dnl Unfortunately we have to use $1 here, since _LT_TAG is not expanded
830     dnl in a comment (ie after a #).
831     # ### BEGIN LIBTOOL TAG CONFIG: $1
832     _LT_LIBTOOL_TAG_VARS(_LT_TAG)
833     # ### END LIBTOOL TAG CONFIG: $1
834     _LT_EOF
835     ])dnl /m4_if
836     ],
837     [m4_if([$1], [], [
838     PACKAGE='$PACKAGE'
839     VERSION='$VERSION'
840     TIMESTAMP='$TIMESTAMP'
841     RM='$RM'
842     ofile='$ofile'], [])
843     ])dnl /_LT_CONFIG_SAVE_COMMANDS
844     ])# _LT_CONFIG
845    
846    
847     # LT_SUPPORTED_TAG(TAG)
848     # ---------------------
849     # Trace this macro to discover what tags are supported by the libtool
850     # --tag option, using:
851     # autoconf --trace 'LT_SUPPORTED_TAG:$1'
852     AC_DEFUN([LT_SUPPORTED_TAG], [])
853    
854    
855     # C support is built-in for now
856     m4_define([_LT_LANG_C_enabled], [])
857     m4_define([_LT_TAGS], [])
858    
859    
860     # LT_LANG(LANG)
861     # -------------
862     # Enable libtool support for the given language if not already enabled.
863     AC_DEFUN([LT_LANG],
864     [AC_BEFORE([$0], [LT_OUTPUT])dnl
865     m4_case([$1],
866     [C], [_LT_LANG(C)],
867     [C++], [_LT_LANG(CXX)],
868     [Java], [_LT_LANG(GCJ)],
869     [Fortran 77], [_LT_LANG(F77)],
870     [Fortran], [_LT_LANG(FC)],
871     [Windows Resource], [_LT_LANG(RC)],
872     [m4_ifdef([_LT_LANG_]$1[_CONFIG],
873     [_LT_LANG($1)],
874     [m4_fatal([$0: unsupported language: "$1"])])])dnl
875     ])# LT_LANG
876    
877    
878     # _LT_LANG(LANGNAME)
879     # ------------------
880     m4_defun([_LT_LANG],
881     [m4_ifdef([_LT_LANG_]$1[_enabled], [],
882     [LT_SUPPORTED_TAG([$1])dnl
883     m4_append([_LT_TAGS], [$1 ])dnl
884     m4_define([_LT_LANG_]$1[_enabled], [])dnl
885     _LT_LANG_$1_CONFIG($1)])dnl
886     ])# _LT_LANG
887    
888    
889     # _LT_LANG_DEFAULT_CONFIG
890     # -----------------------
891     m4_defun([_LT_LANG_DEFAULT_CONFIG],
892     [AC_PROVIDE_IFELSE([AC_PROG_CXX],
893     [LT_LANG(CXX)],
894     [m4_define([AC_PROG_CXX], defn([AC_PROG_CXX])[LT_LANG(CXX)])])
895    
896     AC_PROVIDE_IFELSE([AC_PROG_F77],
897     [LT_LANG(F77)],
898     [m4_define([AC_PROG_F77], defn([AC_PROG_F77])[LT_LANG(F77)])])
899    
900     AC_PROVIDE_IFELSE([AC_PROG_FC],
901     [LT_LANG(FC)],
902     [m4_define([AC_PROG_FC], defn([AC_PROG_FC])[LT_LANG(FC)])])
903    
904     dnl The call to [A][M_PROG_GCJ] is quoted like that to stop aclocal
905     dnl pulling things in needlessly.
906     AC_PROVIDE_IFELSE([AC_PROG_GCJ],
907     [LT_LANG(GCJ)],
908     [AC_PROVIDE_IFELSE([A][M_PROG_GCJ],
909     [LT_LANG(GCJ)],
910     [AC_PROVIDE_IFELSE([LT_PROG_GCJ],
911     [LT_LANG(GCJ)],
912     [m4_ifdef([AC_PROG_GCJ],
913     [m4_define([AC_PROG_GCJ], defn([AC_PROG_GCJ])[LT_LANG(GCJ)])])
914     m4_ifdef([A][M_PROG_GCJ],
915     [m4_define([A][M_PROG_GCJ], defn([A][M_PROG_GCJ])[LT_LANG(GCJ)])])
916     m4_ifdef([LT_PROG_GCJ],
917     [m4_define([LT_PROG_GCJ], defn([LT_PROG_GCJ])[LT_LANG(GCJ)])])])])])
918    
919     AC_PROVIDE_IFELSE([LT_PROG_RC],
920     [LT_LANG(RC)],
921     [m4_define([LT_PROG_RC], defn([LT_PROG_RC])[LT_LANG(RC)])])
922     ])# _LT_LANG_DEFAULT_CONFIG
923    
924     # Obsolete macros:
925     AU_DEFUN([AC_LIBTOOL_CXX], [LT_LANG(C++)])
926     AU_DEFUN([AC_LIBTOOL_F77], [LT_LANG(Fortran 77)])
927     AU_DEFUN([AC_LIBTOOL_FC], [LT_LANG(Fortran)])
928     AU_DEFUN([AC_LIBTOOL_GCJ], [LT_LANG(Java)])
929     dnl aclocal-1.4 backwards compatibility:
930     dnl AC_DEFUN([AC_LIBTOOL_CXX], [])
931     dnl AC_DEFUN([AC_LIBTOOL_F77], [])
932     dnl AC_DEFUN([AC_LIBTOOL_FC], [])
933     dnl AC_DEFUN([AC_LIBTOOL_GCJ], [])
934    
935    
936     # _LT_TAG_COMPILER
937     # ----------------
938     m4_defun([_LT_TAG_COMPILER],
939 michael 912 [AC_REQUIRE([AC_PROG_CC])dnl
940    
941 michael 945 _LT_DECL([LTCC], [CC], [1], [A C compiler])dnl
942     _LT_DECL([LTCFLAGS], [CFLAGS], [1], [LTCC compiler flags])dnl
943     _LT_TAGDECL([CC], [compiler], [1], [A language specific compiler])dnl
944     _LT_TAGDECL([with_gcc], [GCC], [0], [Is the compiler the GNU compiler?])dnl
945    
946 michael 912 # If no C compiler was specified, use CC.
947     LTCC=${LTCC-"$CC"}
948    
949     # If no C compiler flags were specified, use CFLAGS.
950     LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
951    
952     # Allow CC to be a program name with arguments.
953     compiler=$CC
954 michael 945 ])# _LT_TAG_COMPILER
955 michael 912
956    
957     # _LT_COMPILER_BOILERPLATE
958     # ------------------------
959     # Check for compiler boilerplate output or warnings with
960     # the simple compiler test code.
961 michael 945 m4_defun([_LT_COMPILER_BOILERPLATE],
962     [m4_require([_LT_DECL_SED])dnl
963 michael 912 ac_outfile=conftest.$ac_objext
964     echo "$lt_simple_compile_test_code" >conftest.$ac_ext
965     eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
966     _lt_compiler_boilerplate=`cat conftest.err`
967 michael 945 $RM conftest*
968 michael 912 ])# _LT_COMPILER_BOILERPLATE
969    
970    
971     # _LT_LINKER_BOILERPLATE
972     # ----------------------
973     # Check for linker boilerplate output or warnings with
974     # the simple link test code.
975 michael 945 m4_defun([_LT_LINKER_BOILERPLATE],
976     [m4_require([_LT_DECL_SED])dnl
977 michael 912 ac_outfile=conftest.$ac_objext
978     echo "$lt_simple_link_test_code" >conftest.$ac_ext
979     eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
980     _lt_linker_boilerplate=`cat conftest.err`
981 michael 945 $RM -r conftest*
982 michael 912 ])# _LT_LINKER_BOILERPLATE
983    
984 db 941 # _LT_REQUIRED_DARWIN_CHECKS
985 michael 945 # -------------------------
986     m4_defun_once([_LT_REQUIRED_DARWIN_CHECKS],[
987 db 941 case $host_os in
988     rhapsody* | darwin*)
989     AC_CHECK_TOOL([DSYMUTIL], [dsymutil], [:])
990     AC_CHECK_TOOL([NMEDIT], [nmedit], [:])
991 michael 945 AC_CHECK_TOOL([LIPO], [lipo], [:])
992     AC_CHECK_TOOL([OTOOL], [otool], [:])
993     AC_CHECK_TOOL([OTOOL64], [otool64], [:])
994     _LT_DECL([], [DSYMUTIL], [1],
995     [Tool to manipulate archived DWARF debug symbol files on Mac OS X])
996     _LT_DECL([], [NMEDIT], [1],
997     [Tool to change global to local symbols on Mac OS X])
998     _LT_DECL([], [LIPO], [1],
999     [Tool to manipulate fat objects and archives on Mac OS X])
1000     _LT_DECL([], [OTOOL], [1],
1001     [ldd/readelf like tool for Mach-O binaries on Mac OS X])
1002     _LT_DECL([], [OTOOL64], [1],
1003     [ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4])
1004 michael 912
1005 db 941 AC_CACHE_CHECK([for -single_module linker flag],[lt_cv_apple_cc_single_mod],
1006     [lt_cv_apple_cc_single_mod=no
1007     if test -z "${LT_MULTI_MODULE}"; then
1008 michael 945 # By default we will add the -single_module flag. You can override
1009     # by either setting the environment variable LT_MULTI_MODULE
1010     # non-empty at configure time, or by adding -multi_module to the
1011     # link flags.
1012     rm -rf libconftest.dylib*
1013     echo "int foo(void){return 1;}" > conftest.c
1014     echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
1015     -dynamiclib -Wl,-single_module conftest.c" >&AS_MESSAGE_LOG_FD
1016     $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
1017     -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
1018     _lt_result=$?
1019     if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
1020     lt_cv_apple_cc_single_mod=yes
1021     else
1022     cat conftest.err >&AS_MESSAGE_LOG_FD
1023     fi
1024     rm -rf libconftest.dylib*
1025     rm -f conftest.*
1026 db 941 fi])
1027     AC_CACHE_CHECK([for -exported_symbols_list linker flag],
1028     [lt_cv_ld_exported_symbols_list],
1029     [lt_cv_ld_exported_symbols_list=no
1030     save_LDFLAGS=$LDFLAGS
1031     echo "_main" > conftest.sym
1032     LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
1033     AC_LINK_IFELSE([AC_LANG_PROGRAM([],[])],
1034 michael 945 [lt_cv_ld_exported_symbols_list=yes],
1035     [lt_cv_ld_exported_symbols_list=no])
1036     LDFLAGS="$save_LDFLAGS"
1037 db 941 ])
1038     case $host_os in
1039 michael 945 rhapsody* | darwin1.[[012]])
1040 db 941 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
1041     darwin1.*)
1042 michael 945 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
1043     darwin*) # darwin 5.x on
1044 db 941 # if running on 10.5 or later, the deployment target defaults
1045     # to the OS version, if on x86, and 10.4, the deployment
1046     # target defaults to 10.4. Don't you love it?
1047     case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
1048 michael 945 10.0,*86*-darwin8*|10.0,*-darwin[[91]]*)
1049     _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
1050     10.[[012]]*)
1051     _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
1052     10.*)
1053     _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
1054 db 941 esac
1055     ;;
1056     esac
1057     if test "$lt_cv_apple_cc_single_mod" = "yes"; then
1058     _lt_dar_single_mod='$single_module'
1059     fi
1060     if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
1061     _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
1062     else
1063 michael 945 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
1064 db 941 fi
1065     if test "$DSYMUTIL" != ":"; then
1066 michael 945 _lt_dsymutil='~$DSYMUTIL $lib || :'
1067 db 941 else
1068     _lt_dsymutil=
1069     fi
1070     ;;
1071     esac
1072     ])
1073    
1074 michael 945
1075     # _LT_DARWIN_LINKER_FEATURES
1076     # --------------------------
1077     # Checks for linker and compiler features on darwin
1078     m4_defun([_LT_DARWIN_LINKER_FEATURES],
1079     [
1080     m4_require([_LT_REQUIRED_DARWIN_CHECKS])
1081     _LT_TAGVAR(archive_cmds_need_lc, $1)=no
1082     _LT_TAGVAR(hardcode_direct, $1)=no
1083     _LT_TAGVAR(hardcode_automatic, $1)=yes
1084     _LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
1085     _LT_TAGVAR(whole_archive_flag_spec, $1)=''
1086     _LT_TAGVAR(link_all_deplibs, $1)=yes
1087     _LT_TAGVAR(allow_undefined_flag, $1)="$_lt_dar_allow_undefined"
1088     case $cc_basename in
1089     ifort*) _lt_dar_can_shared=yes ;;
1090     *) _lt_dar_can_shared=$GCC ;;
1091     esac
1092     if test "$_lt_dar_can_shared" = "yes"; then
1093     output_verbose_link_cmd=echo
1094     _LT_TAGVAR(archive_cmds, $1)="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
1095     _LT_TAGVAR(module_cmds, $1)="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
1096     _LT_TAGVAR(archive_expsym_cmds, $1)="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
1097     _LT_TAGVAR(module_expsym_cmds, $1)="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
1098     m4_if([$1], [CXX],
1099     [ if test "$lt_cv_apple_cc_single_mod" != "yes"; then
1100     _LT_TAGVAR(archive_cmds, $1)="\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dsymutil}"
1101     _LT_TAGVAR(archive_expsym_cmds, $1)="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dar_export_syms}${_lt_dsymutil}"
1102     fi
1103     ],[])
1104     else
1105     _LT_TAGVAR(ld_shlibs, $1)=no
1106     fi
1107     ])
1108    
1109     # _LT_SYS_MODULE_PATH_AIX
1110     # -----------------------
1111 michael 912 # Links a minimal program and checks the executable
1112     # for the system default hardcoded library path. In most cases,
1113     # this is /usr/lib:/lib, but when the MPI compilers are used
1114     # the location of the communication and MPI libs are included too.
1115     # If we don't find anything, use the default library path according
1116     # to the aix ld manual.
1117 michael 945 m4_defun([_LT_SYS_MODULE_PATH_AIX],
1118     [m4_require([_LT_DECL_SED])dnl
1119 michael 912 AC_LINK_IFELSE(AC_LANG_PROGRAM,[
1120     lt_aix_libpath_sed='
1121     /Import File Strings/,/^$/ {
1122     /^0/ {
1123     s/^0 *\(.*\)$/\1/
1124     p
1125     }
1126     }'
1127     aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
1128     # Check for a 64-bit object if we didn't find anything.
1129     if test -z "$aix_libpath"; then
1130     aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
1131     fi],[])
1132     if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
1133 michael 945 ])# _LT_SYS_MODULE_PATH_AIX
1134 michael 912
1135    
1136 michael 945 # _LT_SHELL_INIT(ARG)
1137     # -------------------
1138     m4_define([_LT_SHELL_INIT],
1139 michael 912 [ifdef([AC_DIVERSION_NOTICE],
1140     [AC_DIVERT_PUSH(AC_DIVERSION_NOTICE)],
1141     [AC_DIVERT_PUSH(NOTICE)])
1142     $1
1143     AC_DIVERT_POP
1144 michael 945 ])# _LT_SHELL_INIT
1145 michael 912
1146    
1147 michael 945 # _LT_PROG_ECHO_BACKSLASH
1148     # -----------------------
1149 michael 912 # Add some code to the start of the generated configure script which
1150     # will find an echo command which doesn't interpret backslashes.
1151 michael 945 m4_defun([_LT_PROG_ECHO_BACKSLASH],
1152     [_LT_SHELL_INIT([
1153 michael 912 # Check that we are running under the correct shell.
1154     SHELL=${CONFIG_SHELL-/bin/sh}
1155    
1156 michael 945 case X$lt_ECHO in
1157 michael 912 X*--fallback-echo)
1158     # Remove one level of quotation (which was required for Make).
1159 michael 945 ECHO=`echo "$lt_ECHO" | sed 's,\\\\\[$]\\[$]0,'[$]0','`
1160 michael 912 ;;
1161     esac
1162    
1163 michael 945 ECHO=${lt_ECHO-echo}
1164 michael 912 if test "X[$]1" = X--no-reexec; then
1165     # Discard the --no-reexec flag, and continue.
1166     shift
1167     elif test "X[$]1" = X--fallback-echo; then
1168     # Avoid inline document here, it may be left over
1169     :
1170 michael 945 elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
1171     # Yippee, $ECHO works!
1172 michael 912 :
1173     else
1174     # Restart under the correct shell.
1175     exec $SHELL "[$]0" --no-reexec ${1+"[$]@"}
1176     fi
1177    
1178     if test "X[$]1" = X--fallback-echo; then
1179     # used as fallback echo
1180     shift
1181 michael 945 cat <<_LT_EOF
1182 michael 912 [$]*
1183 michael 945 _LT_EOF
1184 michael 912 exit 0
1185     fi
1186    
1187     # The HP-UX ksh and POSIX shell print the target directory to stdout
1188     # if CDPATH is set.
1189     (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
1190    
1191 michael 945 if test -z "$lt_ECHO"; then
1192     if test "X${echo_test_string+set}" != Xset; then
1193     # find a string as large as possible, as long as the shell can cope with it
1194     for cmd in 'sed 50q "[$]0"' 'sed 20q "[$]0"' 'sed 10q "[$]0"' 'sed 2q "[$]0"' 'echo test'; do
1195     # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
1196     if { echo_test_string=`eval $cmd`; } 2>/dev/null &&
1197     { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null
1198     then
1199     break
1200     fi
1201     done
1202     fi
1203 michael 912
1204 michael 945 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
1205     echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
1206     test "X$echo_testing_string" = "X$echo_test_string"; then
1207     :
1208     else
1209     # The Solaris, AIX, and Digital Unix default echo programs unquote
1210     # backslashes. This makes it impossible to quote backslashes using
1211     # echo "$something" | sed 's/\\/\\\\/g'
1212     #
1213     # So, first we look for a working echo in the user's PATH.
1214 michael 912
1215 michael 945 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
1216     for dir in $PATH /usr/ucb; do
1217     IFS="$lt_save_ifs"
1218     if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
1219     test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
1220     echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
1221     test "X$echo_testing_string" = "X$echo_test_string"; then
1222     ECHO="$dir/echo"
1223     break
1224     fi
1225     done
1226 michael 912 IFS="$lt_save_ifs"
1227    
1228 michael 945 if test "X$ECHO" = Xecho; then
1229     # We didn't find a better echo, so look for alternatives.
1230     if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
1231     echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
1232     test "X$echo_testing_string" = "X$echo_test_string"; then
1233     # This shell has a builtin print -r that does the trick.
1234     ECHO='print -r'
1235     elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } &&
1236     test "X$CONFIG_SHELL" != X/bin/ksh; then
1237     # If we have ksh, try running configure again with it.
1238     ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
1239     export ORIGINAL_CONFIG_SHELL
1240     CONFIG_SHELL=/bin/ksh
1241     export CONFIG_SHELL
1242     exec $CONFIG_SHELL "[$]0" --no-reexec ${1+"[$]@"}
1243     else
1244     # Try using printf.
1245     ECHO='printf %s\n'
1246     if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
1247     echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
1248 michael 912 test "X$echo_testing_string" = "X$echo_test_string"; then
1249 michael 945 # Cool, printf works
1250     :
1251     elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "[$]0" --fallback-echo '\t') 2>/dev/null` &&
1252     test "X$echo_testing_string" = 'X\t' &&
1253     echo_testing_string=`($ORIGINAL_CONFIG_SHELL "[$]0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
1254     test "X$echo_testing_string" = "X$echo_test_string"; then
1255     CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
1256     export CONFIG_SHELL
1257     SHELL="$CONFIG_SHELL"
1258     export SHELL
1259     ECHO="$CONFIG_SHELL [$]0 --fallback-echo"
1260     elif echo_testing_string=`($CONFIG_SHELL "[$]0" --fallback-echo '\t') 2>/dev/null` &&
1261     test "X$echo_testing_string" = 'X\t' &&
1262     echo_testing_string=`($CONFIG_SHELL "[$]0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
1263     test "X$echo_testing_string" = "X$echo_test_string"; then
1264     ECHO="$CONFIG_SHELL [$]0 --fallback-echo"
1265     else
1266     # maybe with a smaller string...
1267     prev=:
1268 michael 912
1269 michael 945 for cmd in 'echo test' 'sed 2q "[$]0"' 'sed 10q "[$]0"' 'sed 20q "[$]0"' 'sed 50q "[$]0"'; do
1270     if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null
1271     then
1272     break
1273     fi
1274     prev="$cmd"
1275     done
1276    
1277     if test "$prev" != 'sed 50q "[$]0"'; then
1278     echo_test_string=`eval $prev`
1279     export echo_test_string
1280     exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "[$]0" ${1+"[$]@"}
1281     else
1282     # Oops. We lost completely, so just stick with echo.
1283     ECHO=echo
1284 michael 912 fi
1285 michael 945 fi
1286 michael 912 fi
1287     fi
1288     fi
1289     fi
1290    
1291     # Copy echo and quote the copy suitably for passing to libtool from
1292     # the Makefile, instead of quoting the original, which is used later.
1293 michael 945 lt_ECHO=$ECHO
1294     if test "X$lt_ECHO" = "X$CONFIG_SHELL [$]0 --fallback-echo"; then
1295     lt_ECHO="$CONFIG_SHELL \\\$\[$]0 --fallback-echo"
1296 michael 912 fi
1297    
1298 michael 945 AC_SUBST(lt_ECHO)
1299     ])
1300     _LT_DECL([], [SHELL], [1], [Shell to use when invoking shell scripts])
1301     _LT_DECL([], [ECHO], [1],
1302     [An echo program that does not interpret backslashes])
1303     ])# _LT_PROG_ECHO_BACKSLASH
1304 michael 912
1305    
1306 michael 945 # _LT_ENABLE_LOCK
1307     # ---------------
1308     m4_defun([_LT_ENABLE_LOCK],
1309 michael 912 [AC_ARG_ENABLE([libtool-lock],
1310 michael 945 [AS_HELP_STRING([--disable-libtool-lock],
1311     [avoid locking (might break parallel builds)])])
1312 michael 912 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
1313    
1314     # Some flags need to be propagated to the compiler or linker for good
1315     # libtool support.
1316     case $host in
1317     ia64-*-hpux*)
1318     # Find out which ABI we are using.
1319     echo 'int i;' > conftest.$ac_ext
1320     if AC_TRY_EVAL(ac_compile); then
1321     case `/usr/bin/file conftest.$ac_objext` in
1322 michael 945 *ELF-32*)
1323     HPUX_IA64_MODE="32"
1324     ;;
1325     *ELF-64*)
1326     HPUX_IA64_MODE="64"
1327     ;;
1328 michael 912 esac
1329     fi
1330     rm -rf conftest*
1331     ;;
1332     *-*-irix6*)
1333     # Find out which ABI we are using.
1334     echo '[#]line __oline__ "configure"' > conftest.$ac_ext
1335     if AC_TRY_EVAL(ac_compile); then
1336 michael 945 if test "$lt_cv_prog_gnu_ld" = yes; then
1337     case `/usr/bin/file conftest.$ac_objext` in
1338     *32-bit*)
1339     LD="${LD-ld} -melf32bsmip"
1340     ;;
1341     *N32*)
1342     LD="${LD-ld} -melf32bmipn32"
1343     ;;
1344     *64-bit*)
1345     LD="${LD-ld} -melf64bmip"
1346     ;;
1347     esac
1348     else
1349     case `/usr/bin/file conftest.$ac_objext` in
1350     *32-bit*)
1351     LD="${LD-ld} -32"
1352     ;;
1353     *N32*)
1354     LD="${LD-ld} -n32"
1355     ;;
1356     *64-bit*)
1357     LD="${LD-ld} -64"
1358     ;;
1359     esac
1360     fi
1361 michael 912 fi
1362     rm -rf conftest*
1363     ;;
1364    
1365     x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
1366 michael 945 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
1367 michael 912 # 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 michael 945 *32-bit*)
1372     case $host in
1373     x86_64-*kfreebsd*-gnu)
1374     LD="${LD-ld} -m elf_i386_fbsd"
1375     ;;
1376     x86_64-*linux*)
1377     LD="${LD-ld} -m elf_i386"
1378     ;;
1379     ppc64-*linux*|powerpc64-*linux*)
1380     LD="${LD-ld} -m elf32ppclinux"
1381     ;;
1382     s390x-*linux*)
1383     LD="${LD-ld} -m elf_s390"
1384     ;;
1385     sparc64-*linux*)
1386     LD="${LD-ld} -m elf32_sparc"
1387     ;;
1388     esac
1389     ;;
1390     *64-bit*)
1391     case $host in
1392     x86_64-*kfreebsd*-gnu)
1393     LD="${LD-ld} -m elf_x86_64_fbsd"
1394     ;;
1395     x86_64-*linux*)
1396     LD="${LD-ld} -m elf_x86_64"
1397     ;;
1398     ppc*-*linux*|powerpc*-*linux*)
1399     LD="${LD-ld} -m elf64ppc"
1400     ;;
1401     s390*-*linux*|s390*-*tpf*)
1402     LD="${LD-ld} -m elf64_s390"
1403     ;;
1404     sparc*-*linux*)
1405     LD="${LD-ld} -m elf64_sparc"
1406     ;;
1407     esac
1408     ;;
1409 michael 912 esac
1410     fi
1411     rm -rf conftest*
1412     ;;
1413    
1414     *-*-sco3.2v5*)
1415     # On SCO OpenServer 5, we need -belf to get full-featured binaries.
1416     SAVE_CFLAGS="$CFLAGS"
1417     CFLAGS="$CFLAGS -belf"
1418     AC_CACHE_CHECK([whether the C compiler needs -belf], lt_cv_cc_needs_belf,
1419     [AC_LANG_PUSH(C)
1420 michael 945 AC_LINK_IFELSE([AC_LANG_PROGRAM([[]],[[]])],[lt_cv_cc_needs_belf=yes],[lt_cv_cc_needs_belf=no])
1421 michael 912 AC_LANG_POP])
1422     if test x"$lt_cv_cc_needs_belf" != x"yes"; then
1423     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
1424     CFLAGS="$SAVE_CFLAGS"
1425     fi
1426     ;;
1427     sparc*-*solaris*)
1428     # Find out which ABI we are using.
1429     echo 'int i;' > conftest.$ac_ext
1430     if AC_TRY_EVAL(ac_compile); then
1431     case `/usr/bin/file conftest.o` in
1432     *64-bit*)
1433     case $lt_cv_prog_gnu_ld in
1434     yes*) LD="${LD-ld} -m elf64_sparc" ;;
1435 db 941 *)
1436 michael 945 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
1437 db 941 LD="${LD-ld} -64"
1438     fi
1439     ;;
1440 michael 912 esac
1441     ;;
1442     esac
1443     fi
1444     rm -rf conftest*
1445     ;;
1446     esac
1447    
1448     need_locks="$enable_libtool_lock"
1449 michael 945 ])# _LT_ENABLE_LOCK
1450 michael 912
1451    
1452 michael 945 # _LT_CMD_OLD_ARCHIVE
1453     # -------------------
1454     m4_defun([_LT_CMD_OLD_ARCHIVE],
1455     [AC_CHECK_TOOL(AR, ar, false)
1456     test -z "$AR" && AR=ar
1457     test -z "$AR_FLAGS" && AR_FLAGS=cru
1458     _LT_DECL([], [AR], [1], [The archiver])
1459     _LT_DECL([], [AR_FLAGS], [1])
1460 michael 912
1461 michael 945 AC_CHECK_TOOL(STRIP, strip, :)
1462     test -z "$STRIP" && STRIP=:
1463     _LT_DECL([], [STRIP], [1], [A symbol stripping program])
1464    
1465     AC_CHECK_TOOL(RANLIB, ranlib, :)
1466     test -z "$RANLIB" && RANLIB=:
1467     _LT_DECL([], [RANLIB], [1],
1468     [Commands used to install an old-style archive])
1469    
1470     # Determine commands to create old-style static archives.
1471     old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
1472     old_postinstall_cmds='chmod 644 $oldlib'
1473     old_postuninstall_cmds=
1474    
1475     if test -n "$RANLIB"; then
1476     case $host_os in
1477     openbsd*)
1478     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
1479     ;;
1480     *)
1481     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
1482     ;;
1483     esac
1484     old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
1485     fi
1486     _LT_DECL([], [old_postinstall_cmds], [2])
1487     _LT_DECL([], [old_postuninstall_cmds], [2])
1488     _LT_TAGDECL([], [old_archive_cmds], [2],
1489     [Commands used to build an old-style archive])
1490     ])# _LT_CMD_OLD_ARCHIVE
1491    
1492    
1493     # _LT_COMPILER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS,
1494 michael 912 # [OUTPUT-FILE], [ACTION-SUCCESS], [ACTION-FAILURE])
1495     # ----------------------------------------------------------------
1496     # Check whether the given compiler option works
1497 michael 945 AC_DEFUN([_LT_COMPILER_OPTION],
1498     [m4_require([_LT_FILEUTILS_DEFAULTS])dnl
1499     m4_require([_LT_DECL_SED])dnl
1500 michael 912 AC_CACHE_CHECK([$1], [$2],
1501     [$2=no
1502 michael 945 m4_if([$4], , [ac_outfile=conftest.$ac_objext], [ac_outfile=$4])
1503 michael 912 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
1504     lt_compiler_flag="$3"
1505     # Insert the option either (1) after the last *FLAGS variable, or
1506     # (2) before a word containing "conftest.", or (3) at the end.
1507     # Note that $ac_compile itself does not contain backslashes and begins
1508     # with a dollar sign (not a hyphen), so the echo should work correctly.
1509     # The option is referenced via a variable to avoid confusing sed.
1510     lt_compile=`echo "$ac_compile" | $SED \
1511     -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
1512     -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \
1513     -e 's:$: $lt_compiler_flag:'`
1514     (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&AS_MESSAGE_LOG_FD)
1515     (eval "$lt_compile" 2>conftest.err)
1516     ac_status=$?
1517     cat conftest.err >&AS_MESSAGE_LOG_FD
1518     echo "$as_me:__oline__: \$? = $ac_status" >&AS_MESSAGE_LOG_FD
1519     if (exit $ac_status) && test -s "$ac_outfile"; then
1520     # The compiler can only warn and ignore the option if not recognized
1521     # So say no if there are warnings other than the usual output.
1522 michael 945 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
1523 michael 912 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
1524     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
1525     $2=yes
1526     fi
1527     fi
1528 michael 945 $RM conftest*
1529 michael 912 ])
1530    
1531     if test x"[$]$2" = xyes; then
1532 michael 945 m4_if([$5], , :, [$5])
1533 michael 912 else
1534 michael 945 m4_if([$6], , :, [$6])
1535 michael 912 fi
1536 michael 945 ])# _LT_COMPILER_OPTION
1537 michael 912
1538 michael 945 # Old name:
1539     AU_ALIAS([AC_LIBTOOL_COMPILER_OPTION], [_LT_COMPILER_OPTION])
1540     dnl aclocal-1.4 backwards compatibility:
1541     dnl AC_DEFUN([AC_LIBTOOL_COMPILER_OPTION], [])
1542 michael 912
1543 michael 945
1544     # _LT_LINKER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS,
1545     # [ACTION-SUCCESS], [ACTION-FAILURE])
1546     # ----------------------------------------------------
1547     # Check whether the given linker option works
1548     AC_DEFUN([_LT_LINKER_OPTION],
1549     [m4_require([_LT_FILEUTILS_DEFAULTS])dnl
1550     m4_require([_LT_DECL_SED])dnl
1551 michael 912 AC_CACHE_CHECK([$1], [$2],
1552     [$2=no
1553     save_LDFLAGS="$LDFLAGS"
1554     LDFLAGS="$LDFLAGS $3"
1555     echo "$lt_simple_link_test_code" > conftest.$ac_ext
1556     if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
1557     # The linker can only warn and ignore the option if not recognized
1558     # So say no if there are warnings
1559     if test -s conftest.err; then
1560     # Append any errors to the config.log.
1561     cat conftest.err 1>&AS_MESSAGE_LOG_FD
1562 michael 945 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
1563 michael 912 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
1564     if diff conftest.exp conftest.er2 >/dev/null; then
1565     $2=yes
1566     fi
1567     else
1568     $2=yes
1569     fi
1570     fi
1571 michael 945 $RM -r conftest*
1572 michael 912 LDFLAGS="$save_LDFLAGS"
1573     ])
1574    
1575     if test x"[$]$2" = xyes; then
1576 michael 945 m4_if([$4], , :, [$4])
1577 michael 912 else
1578 michael 945 m4_if([$5], , :, [$5])
1579 michael 912 fi
1580 michael 945 ])# _LT_LINKER_OPTION
1581 michael 912
1582 michael 945 # Old name:
1583     AU_ALIAS([AC_LIBTOOL_LINKER_OPTION], [_LT_LINKER_OPTION])
1584     dnl aclocal-1.4 backwards compatibility:
1585     dnl AC_DEFUN([AC_LIBTOOL_LINKER_OPTION], [])
1586 michael 912
1587 michael 945
1588     # LT_CMD_MAX_LEN
1589     #---------------
1590     AC_DEFUN([LT_CMD_MAX_LEN],
1591     [AC_REQUIRE([AC_CANONICAL_HOST])dnl
1592     # find the maximum length of command line arguments
1593 michael 912 AC_MSG_CHECKING([the maximum length of command line arguments])
1594     AC_CACHE_VAL([lt_cv_sys_max_cmd_len], [dnl
1595     i=0
1596     teststring="ABCD"
1597    
1598     case $build_os in
1599     msdosdjgpp*)
1600     # On DJGPP, this test can blow up pretty badly due to problems in libc
1601     # (any single argument exceeding 2000 bytes causes a buffer overrun
1602     # during glob expansion). Even if it were fixed, the result of this
1603     # check would be larger than it should be.
1604     lt_cv_sys_max_cmd_len=12288; # 12K is about right
1605     ;;
1606    
1607     gnu*)
1608     # Under GNU Hurd, this test is not required because there is
1609     # no limit to the length of command line arguments.
1610     # Libtool will interpret -1 as no limit whatsoever
1611     lt_cv_sys_max_cmd_len=-1;
1612     ;;
1613    
1614 michael 945 cygwin* | mingw* | cegcc*)
1615 michael 912 # On Win9x/ME, this test blows up -- it succeeds, but takes
1616     # about 5 minutes as the teststring grows exponentially.
1617     # Worse, since 9x/ME are not pre-emptively multitasking,
1618     # you end up with a "frozen" computer, even though with patience
1619     # the test eventually succeeds (with a max line length of 256k).
1620     # Instead, let's just punt: use the minimum linelength reported by
1621     # all of the supported platforms: 8192 (on NT/2K/XP).
1622     lt_cv_sys_max_cmd_len=8192;
1623     ;;
1624    
1625     amigaos*)
1626     # On AmigaOS with pdksh, this test takes hours, literally.
1627     # So we just punt and use a minimum line length of 8192.
1628     lt_cv_sys_max_cmd_len=8192;
1629     ;;
1630    
1631     netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
1632     # This has been around since 386BSD, at least. Likely further.
1633     if test -x /sbin/sysctl; then
1634     lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
1635     elif test -x /usr/sbin/sysctl; then
1636     lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
1637     else
1638     lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
1639     fi
1640     # And add a safety zone
1641     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
1642     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
1643     ;;
1644    
1645     interix*)
1646     # We know the value 262144 and hardcode it with a safety zone (like BSD)
1647     lt_cv_sys_max_cmd_len=196608
1648     ;;
1649    
1650     osf*)
1651     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
1652     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
1653     # nice to cause kernel panics so lets avoid the loop below.
1654     # First set a reasonable default.
1655     lt_cv_sys_max_cmd_len=16384
1656     #
1657     if test -x /sbin/sysconfig; then
1658     case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
1659     *1*) lt_cv_sys_max_cmd_len=-1 ;;
1660     esac
1661     fi
1662     ;;
1663     sco3.2v5*)
1664     lt_cv_sys_max_cmd_len=102400
1665     ;;
1666     sysv5* | sco5v6* | sysv4.2uw2*)
1667     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
1668     if test -n "$kargmax"; then
1669 michael 945 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[[ ]]//'`
1670 michael 912 else
1671     lt_cv_sys_max_cmd_len=32768
1672     fi
1673     ;;
1674     *)
1675     lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
1676     if test -n "$lt_cv_sys_max_cmd_len"; then
1677     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
1678     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
1679     else
1680 michael 945 # Make teststring a little bigger before we do anything with it.
1681     # a 1K string should be a reasonable start.
1682     for i in 1 2 3 4 5 6 7 8 ; do
1683     teststring=$teststring$teststring
1684     done
1685 michael 912 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
1686 michael 945 # If test is not a shell built-in, we'll probably end up computing a
1687     # maximum length that is only half of the actual maximum length, but
1688     # we can't tell.
1689     while { test "X"`$SHELL [$]0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
1690     = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
1691 michael 912 test $i != 17 # 1/2 MB should be enough
1692     do
1693     i=`expr $i + 1`
1694     teststring=$teststring$teststring
1695     done
1696 michael 945 # Only check the string length outside the loop.
1697     lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
1698 michael 912 teststring=
1699 michael 945 # Add a significant safety factor because C++ compilers can tack on
1700     # massive amounts of additional arguments before passing them to the
1701     # linker. It appears as though 1/2 is a usable value.
1702 michael 912 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
1703     fi
1704     ;;
1705     esac
1706     ])
1707     if test -n $lt_cv_sys_max_cmd_len ; then
1708     AC_MSG_RESULT($lt_cv_sys_max_cmd_len)
1709     else
1710     AC_MSG_RESULT(none)
1711     fi
1712 michael 945 max_cmd_len=$lt_cv_sys_max_cmd_len
1713     _LT_DECL([], [max_cmd_len], [0],
1714     [What is the maximum length of a command?])
1715     ])# LT_CMD_MAX_LEN
1716 michael 912
1717 michael 945 # Old name:
1718     AU_ALIAS([AC_LIBTOOL_SYS_MAX_CMD_LEN], [LT_CMD_MAX_LEN])
1719     dnl aclocal-1.4 backwards compatibility:
1720     dnl AC_DEFUN([AC_LIBTOOL_SYS_MAX_CMD_LEN], [])
1721 michael 912
1722    
1723 michael 945 # _LT_HEADER_DLFCN
1724     # ----------------
1725     m4_defun([_LT_HEADER_DLFCN],
1726     [AC_CHECK_HEADERS([dlfcn.h], [], [], [AC_INCLUDES_DEFAULT])dnl
1727     ])# _LT_HEADER_DLFCN
1728 michael 912
1729 michael 945
1730     # _LT_TRY_DLOPEN_SELF (ACTION-IF-TRUE, ACTION-IF-TRUE-W-USCORE,
1731     # ACTION-IF-FALSE, ACTION-IF-CROSS-COMPILING)
1732     # ----------------------------------------------------------------
1733     m4_defun([_LT_TRY_DLOPEN_SELF],
1734     [m4_require([_LT_HEADER_DLFCN])dnl
1735 michael 912 if test "$cross_compiling" = yes; then :
1736     [$4]
1737     else
1738     lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
1739     lt_status=$lt_dlunknown
1740 michael 945 cat > conftest.$ac_ext <<_LT_EOF
1741 michael 912 [#line __oline__ "configure"
1742     #include "confdefs.h"
1743    
1744     #if HAVE_DLFCN_H
1745     #include <dlfcn.h>
1746     #endif
1747    
1748     #include <stdio.h>
1749    
1750     #ifdef RTLD_GLOBAL
1751     # define LT_DLGLOBAL RTLD_GLOBAL
1752     #else
1753     # ifdef DL_GLOBAL
1754     # define LT_DLGLOBAL DL_GLOBAL
1755     # else
1756     # define LT_DLGLOBAL 0
1757     # endif
1758     #endif
1759    
1760     /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
1761     find out it does not work in some platform. */
1762     #ifndef LT_DLLAZY_OR_NOW
1763     # ifdef RTLD_LAZY
1764     # define LT_DLLAZY_OR_NOW RTLD_LAZY
1765     # else
1766     # ifdef DL_LAZY
1767     # define LT_DLLAZY_OR_NOW DL_LAZY
1768     # else
1769     # ifdef RTLD_NOW
1770     # define LT_DLLAZY_OR_NOW RTLD_NOW
1771     # else
1772     # ifdef DL_NOW
1773     # define LT_DLLAZY_OR_NOW DL_NOW
1774     # else
1775     # define LT_DLLAZY_OR_NOW 0
1776     # endif
1777     # endif
1778     # endif
1779     # endif
1780     #endif
1781    
1782     void fnord() { int i=42;}
1783     int main ()
1784     {
1785     void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
1786     int status = $lt_dlunknown;
1787    
1788     if (self)
1789     {
1790     if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
1791     else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
1792     /* dlclose (self); */
1793     }
1794     else
1795     puts (dlerror ());
1796    
1797 michael 945 return status;
1798 michael 912 }]
1799 michael 945 _LT_EOF
1800 michael 912 if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext} 2>/dev/null; then
1801     (./conftest; exit; ) >&AS_MESSAGE_LOG_FD 2>/dev/null
1802     lt_status=$?
1803     case x$lt_status in
1804     x$lt_dlno_uscore) $1 ;;
1805     x$lt_dlneed_uscore) $2 ;;
1806     x$lt_dlunknown|x*) $3 ;;
1807     esac
1808     else :
1809     # compilation failed
1810     $3
1811     fi
1812     fi
1813     rm -fr conftest*
1814 michael 945 ])# _LT_TRY_DLOPEN_SELF
1815 michael 912
1816    
1817 michael 945 # LT_SYS_DLOPEN_SELF
1818     # ------------------
1819     AC_DEFUN([LT_SYS_DLOPEN_SELF],
1820     [m4_require([_LT_HEADER_DLFCN])dnl
1821 michael 912 if test "x$enable_dlopen" != xyes; then
1822     enable_dlopen=unknown
1823     enable_dlopen_self=unknown
1824     enable_dlopen_self_static=unknown
1825     else
1826     lt_cv_dlopen=no
1827     lt_cv_dlopen_libs=
1828    
1829     case $host_os in
1830     beos*)
1831     lt_cv_dlopen="load_add_on"
1832     lt_cv_dlopen_libs=
1833     lt_cv_dlopen_self=yes
1834     ;;
1835    
1836 michael 945 mingw* | pw32* | cegcc*)
1837 michael 912 lt_cv_dlopen="LoadLibrary"
1838     lt_cv_dlopen_libs=
1839 michael 945 ;;
1840 michael 912
1841     cygwin*)
1842     lt_cv_dlopen="dlopen"
1843     lt_cv_dlopen_libs=
1844 michael 945 ;;
1845 michael 912
1846     darwin*)
1847     # if libdl is installed we need to link against it
1848     AC_CHECK_LIB([dl], [dlopen],
1849     [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"],[
1850     lt_cv_dlopen="dyld"
1851     lt_cv_dlopen_libs=
1852     lt_cv_dlopen_self=yes
1853     ])
1854 michael 945 ;;
1855 michael 912
1856     *)
1857     AC_CHECK_FUNC([shl_load],
1858     [lt_cv_dlopen="shl_load"],
1859     [AC_CHECK_LIB([dld], [shl_load],
1860 db 941 [lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"],
1861 michael 912 [AC_CHECK_FUNC([dlopen],
1862     [lt_cv_dlopen="dlopen"],
1863     [AC_CHECK_LIB([dl], [dlopen],
1864     [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"],
1865     [AC_CHECK_LIB([svld], [dlopen],
1866     [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"],
1867     [AC_CHECK_LIB([dld], [dld_link],
1868 db 941 [lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"])
1869 michael 912 ])
1870     ])
1871     ])
1872     ])
1873     ])
1874     ;;
1875     esac
1876    
1877     if test "x$lt_cv_dlopen" != xno; then
1878     enable_dlopen=yes
1879     else
1880     enable_dlopen=no
1881     fi
1882    
1883     case $lt_cv_dlopen in
1884     dlopen)
1885     save_CPPFLAGS="$CPPFLAGS"
1886     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
1887    
1888     save_LDFLAGS="$LDFLAGS"
1889     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
1890    
1891     save_LIBS="$LIBS"
1892     LIBS="$lt_cv_dlopen_libs $LIBS"
1893    
1894     AC_CACHE_CHECK([whether a program can dlopen itself],
1895     lt_cv_dlopen_self, [dnl
1896 michael 945 _LT_TRY_DLOPEN_SELF(
1897 michael 912 lt_cv_dlopen_self=yes, lt_cv_dlopen_self=yes,
1898     lt_cv_dlopen_self=no, lt_cv_dlopen_self=cross)
1899     ])
1900    
1901     if test "x$lt_cv_dlopen_self" = xyes; then
1902     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
1903     AC_CACHE_CHECK([whether a statically linked program can dlopen itself],
1904 michael 945 lt_cv_dlopen_self_static, [dnl
1905     _LT_TRY_DLOPEN_SELF(
1906 michael 912 lt_cv_dlopen_self_static=yes, lt_cv_dlopen_self_static=yes,
1907     lt_cv_dlopen_self_static=no, lt_cv_dlopen_self_static=cross)
1908     ])
1909     fi
1910    
1911     CPPFLAGS="$save_CPPFLAGS"
1912     LDFLAGS="$save_LDFLAGS"
1913     LIBS="$save_LIBS"
1914     ;;
1915     esac
1916    
1917     case $lt_cv_dlopen_self in
1918     yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
1919     *) enable_dlopen_self=unknown ;;
1920     esac
1921    
1922     case $lt_cv_dlopen_self_static in
1923     yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
1924     *) enable_dlopen_self_static=unknown ;;
1925     esac
1926     fi
1927 michael 945 _LT_DECL([dlopen_support], [enable_dlopen], [0],
1928     [Whether dlopen is supported])
1929     _LT_DECL([dlopen_self], [enable_dlopen_self], [0],
1930     [Whether dlopen of programs is supported])
1931     _LT_DECL([dlopen_self_static], [enable_dlopen_self_static], [0],
1932     [Whether dlopen of statically linked programs is supported])
1933     ])# LT_SYS_DLOPEN_SELF
1934 michael 912
1935 michael 945 # Old name:
1936     AU_ALIAS([AC_LIBTOOL_DLOPEN_SELF], [LT_SYS_DLOPEN_SELF])
1937     dnl aclocal-1.4 backwards compatibility:
1938     dnl AC_DEFUN([AC_LIBTOOL_DLOPEN_SELF], [])
1939 michael 912
1940 michael 945
1941     # _LT_COMPILER_C_O([TAGNAME])
1942     # ---------------------------
1943     # Check to see if options -c and -o are simultaneously supported by compiler.
1944     # This macro does not hard code the compiler like AC_PROG_CC_C_O.
1945     m4_defun([_LT_COMPILER_C_O],
1946     [m4_require([_LT_DECL_SED])dnl
1947     m4_require([_LT_FILEUTILS_DEFAULTS])dnl
1948     m4_require([_LT_TAG_COMPILER])dnl
1949 michael 912 AC_CACHE_CHECK([if $compiler supports -c -o file.$ac_objext],
1950 michael 945 [_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)],
1951     [_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)=no
1952     $RM -r conftest 2>/dev/null
1953 michael 912 mkdir conftest
1954     cd conftest
1955     mkdir out
1956     echo "$lt_simple_compile_test_code" > conftest.$ac_ext
1957    
1958     lt_compiler_flag="-o out/conftest2.$ac_objext"
1959     # Insert the option either (1) after the last *FLAGS variable, or
1960     # (2) before a word containing "conftest.", or (3) at the end.
1961     # Note that $ac_compile itself does not contain backslashes and begins
1962     # with a dollar sign (not a hyphen), so the echo should work correctly.
1963     lt_compile=`echo "$ac_compile" | $SED \
1964     -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
1965     -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \
1966     -e 's:$: $lt_compiler_flag:'`
1967     (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&AS_MESSAGE_LOG_FD)
1968     (eval "$lt_compile" 2>out/conftest.err)
1969     ac_status=$?
1970     cat out/conftest.err >&AS_MESSAGE_LOG_FD
1971     echo "$as_me:__oline__: \$? = $ac_status" >&AS_MESSAGE_LOG_FD
1972     if (exit $ac_status) && test -s out/conftest2.$ac_objext
1973     then
1974     # The compiler can only warn and ignore the option if not recognized
1975     # So say no if there are warnings
1976 michael 945 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
1977 michael 912 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
1978     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
1979 michael 945 _LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes
1980 michael 912 fi
1981     fi
1982     chmod u+w . 2>&AS_MESSAGE_LOG_FD
1983 michael 945 $RM conftest*
1984 michael 912 # SGI C++ compiler will create directory out/ii_files/ for
1985     # template instantiation
1986 michael 945 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
1987     $RM out/* && rmdir out
1988 michael 912 cd ..
1989 michael 945 $RM -r conftest
1990     $RM conftest*
1991 michael 912 ])
1992 michael 945 _LT_TAGDECL([compiler_c_o], [lt_cv_prog_compiler_c_o], [1],
1993     [Does compiler simultaneously support -c and -o options?])
1994     ])# _LT_COMPILER_C_O
1995 michael 912
1996    
1997 michael 945 # _LT_COMPILER_FILE_LOCKS([TAGNAME])
1998     # ----------------------------------
1999 michael 912 # Check to see if we can do hard links to lock some files if needed
2000 michael 945 m4_defun([_LT_COMPILER_FILE_LOCKS],
2001     [m4_require([_LT_ENABLE_LOCK])dnl
2002     m4_require([_LT_FILEUTILS_DEFAULTS])dnl
2003     _LT_COMPILER_C_O([$1])
2004 michael 912
2005     hard_links="nottested"
2006 michael 945 if test "$_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)" = no && test "$need_locks" != no; then
2007 michael 912 # do not overwrite the value of need_locks provided by the user
2008     AC_MSG_CHECKING([if we can lock with hard links])
2009     hard_links=yes
2010 michael 945 $RM conftest*
2011 michael 912 ln conftest.a conftest.b 2>/dev/null && hard_links=no
2012     touch conftest.a
2013     ln conftest.a conftest.b 2>&5 || hard_links=no
2014     ln conftest.a conftest.b 2>/dev/null && hard_links=no
2015     AC_MSG_RESULT([$hard_links])
2016     if test "$hard_links" = no; then
2017     AC_MSG_WARN([`$CC' does not support `-c -o', so `make -j' may be unsafe])
2018     need_locks=warn
2019     fi
2020     else
2021     need_locks=no
2022     fi
2023 michael 945 _LT_DECL([], [need_locks], [1], [Must we lock files when doing compilation?])
2024     ])# _LT_COMPILER_FILE_LOCKS
2025 michael 912
2026    
2027 michael 945 # _LT_CHECK_OBJDIR
2028     # ----------------
2029     m4_defun([_LT_CHECK_OBJDIR],
2030 michael 912 [AC_CACHE_CHECK([for objdir], [lt_cv_objdir],
2031     [rm -f .libs 2>/dev/null
2032     mkdir .libs 2>/dev/null
2033     if test -d .libs; then
2034     lt_cv_objdir=.libs
2035     else
2036     # MS-DOS does not allow filenames that begin with a dot.
2037     lt_cv_objdir=_libs
2038     fi
2039     rmdir .libs 2>/dev/null])
2040     objdir=$lt_cv_objdir
2041 michael 945 _LT_DECL([], [objdir], [0],
2042     [The name of the directory that contains temporary libtool files])dnl
2043     m4_pattern_allow([LT_OBJDIR])dnl
2044     AC_DEFINE_UNQUOTED(LT_OBJDIR, "$lt_cv_objdir/",
2045     [Define to the sub-directory in which libtool stores uninstalled libraries.])
2046     ])# _LT_CHECK_OBJDIR
2047 michael 912
2048    
2049 michael 945 # _LT_LINKER_HARDCODE_LIBPATH([TAGNAME])
2050     # --------------------------------------
2051 michael 912 # Check hardcoding attributes.
2052 michael 945 m4_defun([_LT_LINKER_HARDCODE_LIBPATH],
2053 michael 912 [AC_MSG_CHECKING([how to hardcode library paths into programs])
2054 michael 945 _LT_TAGVAR(hardcode_action, $1)=
2055     if test -n "$_LT_TAGVAR(hardcode_libdir_flag_spec, $1)" ||
2056     test -n "$_LT_TAGVAR(runpath_var, $1)" ||
2057     test "X$_LT_TAGVAR(hardcode_automatic, $1)" = "Xyes" ; then
2058 michael 912
2059 michael 945 # We can hardcode non-existent directories.
2060     if test "$_LT_TAGVAR(hardcode_direct, $1)" != no &&
2061 michael 912 # If the only mechanism to avoid hardcoding is shlibpath_var, we
2062     # have to relink, otherwise we might link with an installed library
2063     # when we should be linking with a yet-to-be-installed one
2064 michael 945 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, $1)" != no &&
2065     test "$_LT_TAGVAR(hardcode_minus_L, $1)" != no; then
2066 michael 912 # Linking always hardcodes the temporary library directory.
2067 michael 945 _LT_TAGVAR(hardcode_action, $1)=relink
2068 michael 912 else
2069     # We can link without hardcoding, and we can hardcode nonexisting dirs.
2070 michael 945 _LT_TAGVAR(hardcode_action, $1)=immediate
2071 michael 912 fi
2072     else
2073     # We cannot hardcode anything, or else we can only hardcode existing
2074     # directories.
2075 michael 945 _LT_TAGVAR(hardcode_action, $1)=unsupported
2076 michael 912 fi
2077 michael 945 AC_MSG_RESULT([$_LT_TAGVAR(hardcode_action, $1)])
2078 michael 912
2079 michael 945 if test "$_LT_TAGVAR(hardcode_action, $1)" = relink ||
2080     test "$_LT_TAGVAR(inherit_rpath, $1)" = yes; then
2081 michael 912 # Fast installation is not supported
2082     enable_fast_install=no
2083     elif test "$shlibpath_overrides_runpath" = yes ||
2084     test "$enable_shared" = no; then
2085     # Fast installation is not necessary
2086     enable_fast_install=needless
2087     fi
2088 michael 945 _LT_TAGDECL([], [hardcode_action], [0],
2089     [How to hardcode a shared library path into an executable])
2090     ])# _LT_LINKER_HARDCODE_LIBPATH
2091 michael 912
2092    
2093 michael 945 # _LT_CMD_STRIPLIB
2094     # ----------------
2095     m4_defun([_LT_CMD_STRIPLIB],
2096     [m4_require([_LT_DECL_EGREP])
2097     striplib=
2098 michael 912 old_striplib=
2099     AC_MSG_CHECKING([whether stripping libraries is possible])
2100 michael 945 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
2101 michael 912 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
2102     test -z "$striplib" && striplib="$STRIP --strip-unneeded"
2103     AC_MSG_RESULT([yes])
2104     else
2105     # FIXME - insert some real tests, host_os isn't really good enough
2106     case $host_os in
2107 michael 945 darwin*)
2108     if test -n "$STRIP" ; then
2109     striplib="$STRIP -x"
2110     old_striplib="$STRIP -S"
2111     AC_MSG_RESULT([yes])
2112     else
2113     AC_MSG_RESULT([no])
2114     fi
2115 michael 912 ;;
2116 michael 945 *)
2117     AC_MSG_RESULT([no])
2118     ;;
2119 michael 912 esac
2120     fi
2121 michael 945 _LT_DECL([], [old_striplib], [1], [Commands to strip libraries])
2122     _LT_DECL([], [striplib], [1])
2123     ])# _LT_CMD_STRIPLIB
2124 michael 912
2125    
2126 michael 945 # _LT_SYS_DYNAMIC_LINKER([TAG])
2127 michael 912 # -----------------------------
2128     # PORTME Fill in your ld.so characteristics
2129 michael 945 m4_defun([_LT_SYS_DYNAMIC_LINKER],
2130     [AC_REQUIRE([AC_CANONICAL_HOST])dnl
2131     m4_require([_LT_DECL_EGREP])dnl
2132     m4_require([_LT_FILEUTILS_DEFAULTS])dnl
2133     m4_require([_LT_DECL_OBJDUMP])dnl
2134     m4_require([_LT_DECL_SED])dnl
2135 michael 912 AC_MSG_CHECKING([dynamic linker characteristics])
2136 michael 945 m4_if([$1],
2137     [], [
2138 michael 912 if test "$GCC" = yes; then
2139     case $host_os in
2140     darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
2141     *) lt_awk_arg="/^libraries:/" ;;
2142     esac
2143     lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
2144 michael 945 if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
2145 michael 912 # if the path contains ";" then we assume it to be the separator
2146     # otherwise default to the standard path separator (i.e. ":") - it is
2147     # assumed that no part of a normal pathname contains ";" but that should
2148     # okay in the real world where ";" in dirpaths is itself problematic.
2149 michael 945 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
2150 michael 912 else
2151 michael 945 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
2152 michael 912 fi
2153     # Ok, now we have the path, separated by spaces, we can step through it
2154     # and add multilib dir if necessary.
2155     lt_tmp_lt_search_path_spec=
2156     lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
2157     for lt_sys_path in $lt_search_path_spec; do
2158     if test -d "$lt_sys_path/$lt_multi_os_dir"; then
2159     lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
2160     else
2161     test -d "$lt_sys_path" && \
2162     lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
2163     fi
2164     done
2165 michael 945 lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
2166 michael 912 BEGIN {RS=" "; FS="/|\n";} {
2167     lt_foo="";
2168     lt_count=0;
2169     for (lt_i = NF; lt_i > 0; lt_i--) {
2170     if ($lt_i != "" && $lt_i != ".") {
2171     if ($lt_i == "..") {
2172     lt_count++;
2173     } else {
2174     if (lt_count == 0) {
2175     lt_foo="/" $lt_i lt_foo;
2176     } else {
2177     lt_count--;
2178     }
2179     }
2180     }
2181     }
2182     if (lt_foo != "") { lt_freq[[lt_foo]]++; }
2183     if (lt_freq[[lt_foo]] == 1) { print lt_foo; }
2184     }'`
2185 michael 945 sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
2186 michael 912 else
2187     sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
2188     fi])
2189 michael 945 library_names_spec=
2190     libname_spec='lib$name'
2191     soname_spec=
2192     shrext_cmds=".so"
2193     postinstall_cmds=
2194     postuninstall_cmds=
2195     finish_cmds=
2196     finish_eval=
2197     shlibpath_var=
2198     shlibpath_overrides_runpath=unknown
2199     version_type=none
2200     dynamic_linker="$host_os ld.so"
2201     sys_lib_dlsearch_path_spec="/lib /usr/lib"
2202 michael 912 need_lib_prefix=unknown
2203     hardcode_into_libs=no
2204    
2205     # when you set need_version to no, make sure it does not cause -set_version
2206     # flags to be left without arguments
2207     need_version=unknown
2208    
2209     case $host_os in
2210     aix3*)
2211     version_type=linux
2212     library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
2213     shlibpath_var=LIBPATH
2214    
2215     # AIX 3 has no versioning support, so we append a major version to the name.
2216     soname_spec='${libname}${release}${shared_ext}$major'
2217     ;;
2218    
2219 db 941 aix[[4-9]]*)
2220 michael 912 version_type=linux
2221     need_lib_prefix=no
2222     need_version=no
2223     hardcode_into_libs=yes
2224     if test "$host_cpu" = ia64; then
2225     # AIX 5 supports IA64
2226     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
2227     shlibpath_var=LD_LIBRARY_PATH
2228     else
2229     # With GCC up to 2.95.x, collect2 would create an import file
2230     # for dependence libraries. The import file would start with
2231     # the line `#! .'. This would cause the generated library to
2232     # depend on `.', always an invalid library. This was fixed in
2233     # development snapshots of GCC prior to 3.0.
2234     case $host_os in
2235     aix4 | aix4.[[01]] | aix4.[[01]].*)
2236     if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
2237     echo ' yes '
2238 michael 945 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
2239 michael 912 :
2240     else
2241     can_build_shared=no
2242     fi
2243     ;;
2244     esac
2245     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
2246     # soname into executable. Probably we can add versioning support to
2247     # collect2, so additional links can be useful in future.
2248     if test "$aix_use_runtimelinking" = yes; then
2249     # If using run time linking (on AIX 4.2 or later) use lib<name>.so
2250     # instead of lib<name>.a to let people know that these are not
2251     # typical AIX shared libraries.
2252     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
2253     else
2254     # We preserve .a as extension for shared libraries through AIX4.2
2255     # and later when we are not doing run time linking.
2256     library_names_spec='${libname}${release}.a $libname.a'
2257     soname_spec='${libname}${release}${shared_ext}$major'
2258     fi
2259     shlibpath_var=LIBPATH
2260     fi
2261     ;;
2262    
2263     amigaos*)
2264 michael 945 case $host_cpu in
2265     powerpc)
2266     # Since July 2007 AmigaOS4 officially supports .so libraries.
2267     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
2268     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
2269     ;;
2270     m68k)
2271     library_names_spec='$libname.ixlibrary $libname.a'
2272     # Create ${libname}_ixlibrary.a entries in /sys/libs.
2273     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'
2274     ;;
2275     esac
2276 michael 912 ;;
2277    
2278     beos*)
2279     library_names_spec='${libname}${shared_ext}'
2280     dynamic_linker="$host_os ld.so"
2281     shlibpath_var=LIBRARY_PATH
2282     ;;
2283    
2284     bsdi[[45]]*)
2285     version_type=linux
2286     need_version=no
2287     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
2288     soname_spec='${libname}${release}${shared_ext}$major'
2289     finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
2290     shlibpath_var=LD_LIBRARY_PATH
2291     sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
2292     sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
2293     # the default ld.so.conf also contains /usr/contrib/lib and
2294     # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
2295     # libtool to hard-code these into programs
2296     ;;
2297    
2298 michael 945 cygwin* | mingw* | pw32* | cegcc*)
2299 michael 912 version_type=windows
2300     shrext_cmds=".dll"
2301     need_version=no
2302     need_lib_prefix=no
2303    
2304     case $GCC,$host_os in
2305 michael 945 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
2306 michael 912 library_names_spec='$libname.dll.a'
2307     # DLL is installed to $(libdir)/../bin by postinstall_cmds
2308     postinstall_cmds='base_file=`basename \${file}`~
2309 michael 945 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
2310 michael 912 dldir=$destdir/`dirname \$dlpath`~
2311     test -d \$dldir || mkdir -p \$dldir~
2312     $install_prog $dir/$dlname \$dldir/$dlname~
2313 michael 945 chmod a+x \$dldir/$dlname~
2314     if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
2315     eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
2316     fi'
2317 michael 912 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
2318     dlpath=$dir/\$dldll~
2319 michael 945 $RM \$dlpath'
2320 michael 912 shlibpath_overrides_runpath=yes
2321    
2322     case $host_os in
2323     cygwin*)
2324     # Cygwin DLLs use 'cyg' prefix rather than 'lib'
2325     soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
2326     sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
2327     ;;
2328 michael 945 mingw* | cegcc*)
2329 michael 912 # MinGW DLLs use traditional 'lib' prefix
2330     soname_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
2331 michael 945 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
2332     if $ECHO "$sys_lib_search_path_spec" | [$GREP ';[c-zC-Z]:/' >/dev/null]; then
2333 michael 912 # It is most probably a Windows format PATH printed by
2334     # mingw gcc, but we are running on Cygwin. Gcc prints its search
2335     # path with ; separators, and with drive letters. We can handle the
2336     # drive letters (cygwin fileutils understands them), so leave them,
2337     # especially as we might pass files found there to a mingw objdump,
2338     # which wouldn't understand a cygwinified path. Ahh.
2339 michael 945 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
2340 michael 912 else
2341 michael 945 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
2342 michael 912 fi
2343     ;;
2344     pw32*)
2345     # pw32 DLLs use 'pw' prefix rather than 'lib'
2346     library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
2347     ;;
2348     esac
2349     ;;
2350    
2351     *)
2352     library_names_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext} $libname.lib'
2353     ;;
2354     esac
2355     dynamic_linker='Win32 ld.exe'
2356     # FIXME: first we should search . and the directory the executable is in
2357     shlibpath_var=PATH
2358     ;;
2359    
2360     darwin* | rhapsody*)
2361     dynamic_linker="$host_os dyld"
2362     version_type=darwin
2363     need_lib_prefix=no
2364     need_version=no
2365 michael 945 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
2366 michael 912 soname_spec='${libname}${release}${major}$shared_ext'
2367     shlibpath_overrides_runpath=yes
2368     shlibpath_var=DYLD_LIBRARY_PATH
2369     shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
2370 michael 945 m4_if([$1], [],[
2371     sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"])
2372 michael 912 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
2373     ;;
2374    
2375     dgux*)
2376     version_type=linux
2377     need_lib_prefix=no
2378     need_version=no
2379     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
2380     soname_spec='${libname}${release}${shared_ext}$major'
2381     shlibpath_var=LD_LIBRARY_PATH
2382     ;;
2383    
2384     freebsd1*)
2385     dynamic_linker=no
2386     ;;
2387    
2388     freebsd* | dragonfly*)
2389     # DragonFly does not have aout. When/if they implement a new
2390     # versioning mechanism, adjust this.
2391     if test -x /usr/bin/objformat; then
2392     objformat=`/usr/bin/objformat`
2393     else
2394     case $host_os in
2395     freebsd[[123]]*) objformat=aout ;;
2396     *) objformat=elf ;;
2397     esac
2398     fi
2399     version_type=freebsd-$objformat
2400     case $version_type in
2401     freebsd-elf*)
2402     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
2403     need_version=no
2404     need_lib_prefix=no
2405     ;;
2406     freebsd-*)
2407     library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
2408     need_version=yes
2409     ;;
2410     esac
2411     shlibpath_var=LD_LIBRARY_PATH
2412     case $host_os in
2413     freebsd2*)
2414     shlibpath_overrides_runpath=yes
2415     ;;
2416     freebsd3.[[01]]* | freebsdelf3.[[01]]*)
2417     shlibpath_overrides_runpath=yes
2418     hardcode_into_libs=yes
2419     ;;
2420     freebsd3.[[2-9]]* | freebsdelf3.[[2-9]]* | \
2421     freebsd4.[[0-5]] | freebsdelf4.[[0-5]] | freebsd4.1.1 | freebsdelf4.1.1)
2422     shlibpath_overrides_runpath=no
2423     hardcode_into_libs=yes
2424     ;;
2425     *) # from 4.6 on, and DragonFly
2426     shlibpath_overrides_runpath=yes
2427     hardcode_into_libs=yes
2428     ;;
2429     esac
2430     ;;
2431    
2432     gnu*)
2433     version_type=linux
2434     need_lib_prefix=no
2435     need_version=no
2436     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
2437     soname_spec='${libname}${release}${shared_ext}$major'
2438     shlibpath_var=LD_LIBRARY_PATH
2439     hardcode_into_libs=yes
2440     ;;
2441    
2442     hpux9* | hpux10* | hpux11*)
2443     # Give a soname corresponding to the major version so that dld.sl refuses to
2444     # link against other versions.
2445     version_type=sunos
2446     need_lib_prefix=no
2447     need_version=no
2448     case $host_cpu in
2449     ia64*)
2450     shrext_cmds='.so'
2451     hardcode_into_libs=yes
2452     dynamic_linker="$host_os dld.so"
2453     shlibpath_var=LD_LIBRARY_PATH
2454     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
2455     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
2456     soname_spec='${libname}${release}${shared_ext}$major'
2457     if test "X$HPUX_IA64_MODE" = X32; then
2458     sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
2459     else
2460     sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
2461     fi
2462     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
2463     ;;
2464 michael 945 hppa*64*)
2465 michael 912 shrext_cmds='.sl'
2466 michael 945 hardcode_into_libs=yes
2467 michael 912 dynamic_linker="$host_os dld.sl"
2468 michael 945 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
2469     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
2470     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
2471     soname_spec='${libname}${release}${shared_ext}$major'
2472     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
2473     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
2474     ;;
2475     *)
2476     shrext_cmds='.sl'
2477     dynamic_linker="$host_os dld.sl"
2478 michael 912 shlibpath_var=SHLIB_PATH
2479     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
2480     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
2481     soname_spec='${libname}${release}${shared_ext}$major'
2482     ;;
2483     esac
2484     # HP-UX runs *really* slowly unless shared libraries are mode 555.
2485     postinstall_cmds='chmod 555 $lib'
2486     ;;
2487    
2488     interix[[3-9]]*)
2489     version_type=linux
2490     need_lib_prefix=no
2491     need_version=no
2492     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
2493     soname_spec='${libname}${release}${shared_ext}$major'
2494     dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
2495     shlibpath_var=LD_LIBRARY_PATH
2496     shlibpath_overrides_runpath=no
2497     hardcode_into_libs=yes
2498     ;;
2499    
2500     irix5* | irix6* | nonstopux*)
2501     case $host_os in
2502     nonstopux*) version_type=nonstopux ;;
2503     *)
2504     if test "$lt_cv_prog_gnu_ld" = yes; then
2505     version_type=linux
2506     else
2507     version_type=irix
2508     fi ;;
2509     esac
2510     need_lib_prefix=no
2511     need_version=no
2512     soname_spec='${libname}${release}${shared_ext}$major'
2513     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
2514     case $host_os in
2515     irix5* | nonstopux*)
2516     libsuff= shlibsuff=
2517     ;;
2518     *)
2519     case $LD in # libtool.m4 will add one of these switches to LD
2520     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
2521     libsuff= shlibsuff= libmagic=32-bit;;
2522     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
2523     libsuff=32 shlibsuff=N32 libmagic=N32;;
2524     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
2525     libsuff=64 shlibsuff=64 libmagic=64-bit;;
2526     *) libsuff= shlibsuff= libmagic=never-match;;
2527     esac
2528     ;;
2529     esac
2530     shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
2531     shlibpath_overrides_runpath=no
2532     sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
2533     sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
2534     hardcode_into_libs=yes
2535     ;;
2536    
2537     # No shared lib support for Linux oldld, aout, or coff.
2538     linux*oldld* | linux*aout* | linux*coff*)
2539     dynamic_linker=no
2540     ;;
2541    
2542     # This must be Linux ELF.
2543     linux* | k*bsd*-gnu)
2544     version_type=linux
2545     need_lib_prefix=no
2546     need_version=no
2547     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
2548     soname_spec='${libname}${release}${shared_ext}$major'
2549     finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
2550     shlibpath_var=LD_LIBRARY_PATH
2551     shlibpath_overrides_runpath=no
2552 michael 945 # Some binutils ld are patched to set DT_RUNPATH
2553     save_LDFLAGS=$LDFLAGS
2554     save_libdir=$libdir
2555     eval "libdir=/foo; wl=\"$_LT_TAGVAR(lt_prog_compiler_wl, $1)\"; \
2556     LDFLAGS=\"\$LDFLAGS $_LT_TAGVAR(hardcode_libdir_flag_spec, $1)\""
2557     AC_LINK_IFELSE([AC_LANG_PROGRAM([],[])],
2558     [AS_IF([ ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null],
2559     [shlibpath_overrides_runpath=yes])])
2560     LDFLAGS=$save_LDFLAGS
2561     libdir=$save_libdir
2562    
2563 michael 912 # This implies no fast_install, which is unacceptable.
2564     # Some rework will be needed to allow for fast_install
2565     # before this can be enabled.
2566     hardcode_into_libs=yes
2567    
2568 michael 945 # find out which ABI we are using
2569     libsuff=
2570     case "$host_cpu" in
2571     x86_64*|s390x*|powerpc64*)
2572     echo '[#]line __oline__ "configure"' > conftest.$ac_ext
2573     if AC_TRY_EVAL(ac_compile); then
2574     case `/usr/bin/file conftest.$ac_objext` in
2575     *64-bit*)
2576     libsuff=64
2577     ;;
2578     esac
2579     fi
2580     rm -rf conftest*
2581     ;;
2582     esac
2583    
2584     sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff}"
2585    
2586 michael 912 # Append ld.so.conf contents to the search path
2587     if test -f /etc/ld.so.conf; then
2588 michael 945 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \[$]2)); skip = 1; } { if (!skip) print \[$]0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
2589     sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
2590 michael 912 fi
2591    
2592     # We used to test for /lib/ld.so.1 and disable shared libraries on
2593     # powerpc, because MkLinux only supported shared libraries with the
2594     # GNU dynamic linker. Since this was broken with cross compilers,
2595     # most powerpc-linux boxes support dynamic linking these days and
2596     # people can always --disable-shared, the test was removed, and we
2597     # assume the GNU/Linux dynamic linker is in use.
2598     dynamic_linker='GNU/Linux ld.so'
2599     ;;
2600    
2601     netbsd*)
2602     version_type=sunos
2603     need_lib_prefix=no
2604     need_version=no
2605 michael 945 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
2606 michael 912 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
2607     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
2608     dynamic_linker='NetBSD (a.out) ld.so'
2609     else
2610     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
2611     soname_spec='${libname}${release}${shared_ext}$major'
2612     dynamic_linker='NetBSD ld.elf_so'
2613     fi
2614     shlibpath_var=LD_LIBRARY_PATH
2615     shlibpath_overrides_runpath=yes
2616     hardcode_into_libs=yes
2617     ;;
2618    
2619     newsos6)
2620     version_type=linux
2621     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
2622     shlibpath_var=LD_LIBRARY_PATH
2623     shlibpath_overrides_runpath=yes
2624     ;;
2625    
2626 michael 945 *nto* | *qnx*)
2627     version_type=qnx
2628 michael 912 need_lib_prefix=no
2629     need_version=no
2630     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
2631     soname_spec='${libname}${release}${shared_ext}$major'
2632     shlibpath_var=LD_LIBRARY_PATH
2633 michael 945 shlibpath_overrides_runpath=no
2634     hardcode_into_libs=yes
2635     dynamic_linker='ldqnx.so'
2636 michael 912 ;;
2637    
2638     openbsd*)
2639     version_type=sunos
2640     sys_lib_dlsearch_path_spec="/usr/lib"
2641     need_lib_prefix=no
2642     # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
2643     case $host_os in
2644 michael 945 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
2645     *) need_version=no ;;
2646 michael 912 esac
2647     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
2648     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
2649     shlibpath_var=LD_LIBRARY_PATH
2650 michael 945 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
2651 michael 912 case $host_os in
2652     openbsd2.[[89]] | openbsd2.[[89]].*)
2653     shlibpath_overrides_runpath=no
2654     ;;
2655     *)
2656     shlibpath_overrides_runpath=yes
2657     ;;
2658     esac
2659     else
2660     shlibpath_overrides_runpath=yes
2661     fi
2662     ;;
2663    
2664     os2*)
2665     libname_spec='$name'
2666     shrext_cmds=".dll"
2667     need_lib_prefix=no
2668     library_names_spec='$libname${shared_ext} $libname.a'
2669     dynamic_linker='OS/2 ld.exe'
2670     shlibpath_var=LIBPATH
2671     ;;
2672    
2673     osf3* | osf4* | osf5*)
2674     version_type=osf
2675     need_lib_prefix=no
2676     need_version=no
2677     soname_spec='${libname}${release}${shared_ext}$major'
2678     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
2679     shlibpath_var=LD_LIBRARY_PATH
2680     sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
2681     sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
2682     ;;
2683    
2684     rdos*)
2685     dynamic_linker=no
2686     ;;
2687    
2688     solaris*)
2689     version_type=linux
2690     need_lib_prefix=no
2691     need_version=no
2692     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
2693     soname_spec='${libname}${release}${shared_ext}$major'
2694     shlibpath_var=LD_LIBRARY_PATH
2695     shlibpath_overrides_runpath=yes
2696     hardcode_into_libs=yes
2697     # ldd complains unless libraries are executable
2698     postinstall_cmds='chmod +x $lib'
2699     ;;
2700    
2701     sunos4*)
2702     version_type=sunos
2703     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
2704     finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
2705     shlibpath_var=LD_LIBRARY_PATH
2706     shlibpath_overrides_runpath=yes
2707     if test "$with_gnu_ld" = yes; then
2708     need_lib_prefix=no
2709     fi
2710     need_version=yes
2711     ;;
2712    
2713     sysv4 | sysv4.3*)
2714     version_type=linux
2715     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
2716     soname_spec='${libname}${release}${shared_ext}$major'
2717     shlibpath_var=LD_LIBRARY_PATH
2718     case $host_vendor in
2719     sni)
2720     shlibpath_overrides_runpath=no
2721     need_lib_prefix=no
2722     runpath_var=LD_RUN_PATH
2723     ;;
2724     siemens)
2725     need_lib_prefix=no
2726     ;;
2727     motorola)
2728     need_lib_prefix=no
2729     need_version=no
2730     shlibpath_overrides_runpath=no
2731     sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
2732     ;;
2733     esac
2734     ;;
2735    
2736     sysv4*MP*)
2737     if test -d /usr/nec ;then
2738     version_type=linux
2739     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
2740     soname_spec='$libname${shared_ext}.$major'
2741     shlibpath_var=LD_LIBRARY_PATH
2742     fi
2743     ;;
2744    
2745     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
2746     version_type=freebsd-elf
2747     need_lib_prefix=no
2748     need_version=no
2749     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
2750     soname_spec='${libname}${release}${shared_ext}$major'
2751     shlibpath_var=LD_LIBRARY_PATH
2752 michael 945 shlibpath_overrides_runpath=yes
2753 michael 912 hardcode_into_libs=yes
2754     if test "$with_gnu_ld" = yes; then
2755     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
2756     else
2757     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
2758     case $host_os in
2759     sco3.2v5*)
2760     sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
2761     ;;
2762     esac
2763     fi
2764     sys_lib_dlsearch_path_spec='/usr/lib'
2765     ;;
2766    
2767 michael 945 tpf*)
2768     # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
2769     version_type=linux
2770     need_lib_prefix=no
2771     need_version=no
2772     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
2773     shlibpath_var=LD_LIBRARY_PATH
2774     shlibpath_overrides_runpath=no
2775     hardcode_into_libs=yes
2776     ;;
2777    
2778 michael 912 uts4*)
2779     version_type=linux
2780     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
2781     soname_spec='${libname}${release}${shared_ext}$major'
2782     shlibpath_var=LD_LIBRARY_PATH
2783     ;;
2784    
2785     *)
2786     dynamic_linker=no
2787     ;;
2788     esac
2789     AC_MSG_RESULT([$dynamic_linker])
2790     test "$dynamic_linker" = no && can_build_shared=no
2791    
2792     variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
2793     if test "$GCC" = yes; then
2794     variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
2795     fi
2796    
2797 michael 945 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
2798     sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
2799 michael 912 fi
2800 michael 945 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
2801     sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
2802     fi
2803 michael 912
2804 michael 945 _LT_DECL([], [variables_saved_for_relink], [1],
2805     [Variables whose values should be saved in libtool wrapper scripts and
2806     restored at link time])
2807     _LT_DECL([], [need_lib_prefix], [0],
2808     [Do we need the "lib" prefix for modules?])
2809     _LT_DECL([], [need_version], [0], [Do we need a version for libraries?])
2810     _LT_DECL([], [version_type], [0], [Library versioning type])
2811     _LT_DECL([], [runpath_var], [0], [Shared library runtime path variable])
2812     _LT_DECL([], [shlibpath_var], [0],[Shared library path variable])
2813     _LT_DECL([], [shlibpath_overrides_runpath], [0],
2814     [Is shlibpath searched before the hard-coded library search path?])
2815     _LT_DECL([], [libname_spec], [1], [Format of library name prefix])
2816     _LT_DECL([], [library_names_spec], [1],
2817     [[List of archive names. First name is the real one, the rest are links.
2818     The last name is the one that the linker finds with -lNAME]])
2819     _LT_DECL([], [soname_spec], [1],
2820     [[The coded name of the library, if different from the real name]])
2821     _LT_DECL([], [postinstall_cmds], [2],
2822     [Command to use after installation of a shared archive])
2823     _LT_DECL([], [postuninstall_cmds], [2],
2824     [Command to use after uninstallation of a shared archive])
2825     _LT_DECL([], [finish_cmds], [2],
2826     [Commands used to finish a libtool library installation in a directory])
2827     _LT_DECL([], [finish_eval], [1],
2828     [[As "finish_cmds", except a single script fragment to be evaled but
2829     not shown]])
2830     _LT_DECL([], [hardcode_into_libs], [0],
2831     [Whether we should hardcode library paths into libraries])
2832     _LT_DECL([], [sys_lib_search_path_spec], [2],
2833     [Compile-time system search path for libraries])
2834     _LT_DECL([], [sys_lib_dlsearch_path_spec], [2],
2835     [Run-time system search path for libraries])
2836     ])# _LT_SYS_DYNAMIC_LINKER
2837 michael 912
2838    
2839 michael 945 # _LT_PATH_TOOL_PREFIX(TOOL)
2840 michael 912 # --------------------------
2841     # find a file program which can recognize shared library
2842 michael 945 AC_DEFUN([_LT_PATH_TOOL_PREFIX],
2843     [m4_require([_LT_DECL_EGREP])dnl
2844 michael 912 AC_MSG_CHECKING([for $1])
2845     AC_CACHE_VAL(lt_cv_path_MAGIC_CMD,
2846     [case $MAGIC_CMD in
2847     [[\\/*] | ?:[\\/]*])
2848     lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
2849     ;;
2850     *)
2851     lt_save_MAGIC_CMD="$MAGIC_CMD"
2852     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
2853     dnl $ac_dummy forces splitting on constant user-supplied paths.
2854     dnl POSIX.2 word splitting is done only on the output of word expansions,
2855     dnl not every word. This closes a longstanding sh security hole.
2856 michael 945 ac_dummy="m4_if([$2], , $PATH, [$2])"
2857 michael 912 for ac_dir in $ac_dummy; do
2858     IFS="$lt_save_ifs"
2859     test -z "$ac_dir" && ac_dir=.
2860     if test -f $ac_dir/$1; then
2861     lt_cv_path_MAGIC_CMD="$ac_dir/$1"
2862     if test -n "$file_magic_test_file"; then
2863     case $deplibs_check_method in
2864     "file_magic "*)
2865     file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
2866     MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
2867     if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
2868     $EGREP "$file_magic_regex" > /dev/null; then
2869     :
2870     else
2871 michael 945 cat <<_LT_EOF 1>&2
2872 michael 912
2873     *** Warning: the command libtool uses to detect shared libraries,
2874     *** $file_magic_cmd, produces output that libtool cannot recognize.
2875     *** The result is that libtool may fail to recognize shared libraries
2876     *** as such. This will affect the creation of libtool libraries that
2877     *** depend on shared libraries, but programs linked with such libtool
2878     *** libraries will work regardless of this problem. Nevertheless, you
2879     *** may want to report the problem to your system manager and/or to
2880     *** bug-libtool@gnu.org
2881    
2882 michael 945 _LT_EOF
2883 michael 912 fi ;;
2884     esac
2885     fi
2886     break
2887     fi
2888     done
2889     IFS="$lt_save_ifs"
2890     MAGIC_CMD="$lt_save_MAGIC_CMD"
2891     ;;
2892     esac])
2893     MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
2894     if test -n "$MAGIC_CMD"; then
2895     AC_MSG_RESULT($MAGIC_CMD)
2896     else
2897     AC_MSG_RESULT(no)
2898     fi
2899 michael 945 _LT_DECL([], [MAGIC_CMD], [0],
2900     [Used to examine libraries when file_magic_cmd begins with "file"])dnl
2901     ])# _LT_PATH_TOOL_PREFIX
2902 michael 912
2903 michael 945 # Old name:
2904     AU_ALIAS([AC_PATH_TOOL_PREFIX], [_LT_PATH_TOOL_PREFIX])
2905     dnl aclocal-1.4 backwards compatibility:
2906     dnl AC_DEFUN([AC_PATH_TOOL_PREFIX], [])
2907 michael 912
2908 michael 945
2909     # _LT_PATH_MAGIC
2910     # --------------
2911 michael 912 # find a file program which can recognize a shared library
2912 michael 945 m4_defun([_LT_PATH_MAGIC],
2913     [_LT_PATH_TOOL_PREFIX(${ac_tool_prefix}file, /usr/bin$PATH_SEPARATOR$PATH)
2914 michael 912 if test -z "$lt_cv_path_MAGIC_CMD"; then
2915     if test -n "$ac_tool_prefix"; then
2916 michael 945 _LT_PATH_TOOL_PREFIX(file, /usr/bin$PATH_SEPARATOR$PATH)
2917 michael 912 else
2918     MAGIC_CMD=:
2919     fi
2920     fi
2921 michael 945 ])# _LT_PATH_MAGIC
2922 michael 912
2923    
2924 michael 945 # LT_PATH_LD
2925 michael 912 # ----------
2926     # find the pathname to the GNU or non-GNU linker
2927 michael 945 AC_DEFUN([LT_PATH_LD],
2928     [AC_REQUIRE([AC_PROG_CC])dnl
2929     AC_REQUIRE([AC_CANONICAL_HOST])dnl
2930     AC_REQUIRE([AC_CANONICAL_BUILD])dnl
2931     m4_require([_LT_DECL_SED])dnl
2932     m4_require([_LT_DECL_EGREP])dnl
2933    
2934     AC_ARG_WITH([gnu-ld],
2935     [AS_HELP_STRING([--with-gnu-ld],
2936 michael 912 [assume the C compiler uses GNU ld @<:@default=no@:>@])],
2937     [test "$withval" = no || with_gnu_ld=yes],
2938 michael 945 [with_gnu_ld=no])dnl
2939    
2940 michael 912 ac_prog=ld
2941     if test "$GCC" = yes; then
2942     # Check if gcc -print-prog-name=ld gives a path.
2943     AC_MSG_CHECKING([for ld used by $CC])
2944     case $host in
2945     *-*-mingw*)
2946     # gcc leaves a trailing carriage return which upsets mingw
2947     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
2948     *)
2949     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
2950     esac
2951     case $ac_prog in
2952     # Accept absolute paths.
2953     [[\\/]]* | ?:[[\\/]]*)
2954     re_direlt='/[[^/]][[^/]]*/\.\./'
2955     # Canonicalize the pathname of ld
2956 michael 945 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
2957     while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
2958     ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
2959 michael 912 done
2960     test -z "$LD" && LD="$ac_prog"
2961     ;;
2962     "")
2963     # If it fails, then pretend we aren't using GCC.
2964     ac_prog=ld
2965     ;;
2966     *)
2967     # If it is relative, then search for the first ld in PATH.
2968     with_gnu_ld=unknown
2969     ;;
2970     esac
2971     elif test "$with_gnu_ld" = yes; then
2972     AC_MSG_CHECKING([for GNU ld])
2973     else
2974     AC_MSG_CHECKING([for non-GNU ld])
2975     fi
2976     AC_CACHE_VAL(lt_cv_path_LD,
2977     [if test -z "$LD"; then
2978     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
2979     for ac_dir in $PATH; do
2980     IFS="$lt_save_ifs"
2981     test -z "$ac_dir" && ac_dir=.
2982     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
2983     lt_cv_path_LD="$ac_dir/$ac_prog"
2984     # Check to see if the program is GNU ld. I'd rather use --version,
2985     # but apparently some variants of GNU ld only accept -v.
2986     # Break only if it was the GNU/non-GNU ld that we prefer.
2987     case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
2988     *GNU* | *'with BFD'*)
2989     test "$with_gnu_ld" != no && break
2990     ;;
2991     *)
2992     test "$with_gnu_ld" != yes && break
2993     ;;
2994     esac
2995     fi
2996     done
2997     IFS="$lt_save_ifs"
2998     else
2999     lt_cv_path_LD="$LD" # Let the user override the test with a path.
3000     fi])
3001     LD="$lt_cv_path_LD"
3002     if test -n "$LD"; then
3003     AC_MSG_RESULT($LD)
3004     else
3005     AC_MSG_RESULT(no)
3006     fi
3007     test -z "$LD" && AC_MSG_ERROR([no acceptable ld found in \$PATH])
3008 michael 945 _LT_PATH_LD_GNU
3009     AC_SUBST([LD])
3010 michael 912
3011 michael 945