Codebase list unbound / debian/1.3.2-1
Imported Debian patch 1.3.2-1 Robert S. Edmonds 12 years ago
73 changed file(s) with 24065 addition(s) and 22896 deletion(s). Raw diff Collapse all Expand all
6868 LINT=splint
6969 LINTFLAGS=+quiet -weak -warnposix -unrecog -Din_addr_t=uint32_t -Du_int=unsigned -Du_char=uint8_t -preproc -Drlimit=rlimit64 -D__gnuc_va_list=va_list -Dglob64=glob -Dglobfree64=globfree
7070 # compat with openssl linux edition.
71 LINTFLAGS+="-DBN_ULONG=unsigned long" -Dkrb5_int32=int "-Dkrb5_ui_4=unsigned int" -DPQ_64BIT=uint64_t -DRC4_INT=unsigned
71 LINTFLAGS+="-DBN_ULONG=unsigned long" -Dkrb5_int32=int "-Dkrb5_ui_4=unsigned int" -DPQ_64BIT=uint64_t -DRC4_INT=unsigned -fixedformalarray
7272
7373 INSTALL=$(srcdir)/install-sh
7474 ifeq "$(WITH_PYTHONMODULE)" "yes"
+5288
-3907
aclocal.m4 less more
0 # generated automatically by aclocal 1.10.1 -*- Autoconf -*-
0 # generated automatically by aclocal 1.11 -*- Autoconf -*-
11
22 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004,
3 # 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
3 # 2005, 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
44 # This file is free software; the Free Software Foundation
55 # gives unlimited permission to copy and/or distribute it,
66 # with or without modifications, as long as this notice is preserved.
1111 # PARTICULAR PURPOSE.
1212
1313 # libtool.m4 - Configure libtool for the host system. -*-Autoconf-*-
14
15 # serial 51 AC_PROG_LIBTOOL
16
17
18 # AC_PROVIDE_IFELSE(MACRO-NAME, IF-PROVIDED, IF-NOT-PROVIDED)
19 # -----------------------------------------------------------
20 # If this macro is not defined by Autoconf, define it here.
21 m4_ifdef([AC_PROVIDE_IFELSE],
22 [],
23 [m4_define([AC_PROVIDE_IFELSE],
24 [m4_ifdef([AC_PROVIDE_$1],
25 [$2], [$3])])])
26
27
28 # AC_PROG_LIBTOOL
29 # ---------------
30 AC_DEFUN([AC_PROG_LIBTOOL],
31 [AC_REQUIRE([_AC_PROG_LIBTOOL])dnl
32 dnl If AC_PROG_CXX has already been expanded, run AC_LIBTOOL_CXX
33 dnl immediately, otherwise, hook it in at the end of AC_PROG_CXX.
34 AC_PROVIDE_IFELSE([AC_PROG_CXX],
35 [AC_LIBTOOL_CXX],
36 [define([AC_PROG_CXX], defn([AC_PROG_CXX])[AC_LIBTOOL_CXX
37 ])])
38 dnl And a similar setup for Fortran 77 support
39 AC_PROVIDE_IFELSE([AC_PROG_F77],
40 [AC_LIBTOOL_F77],
41 [define([AC_PROG_F77], defn([AC_PROG_F77])[AC_LIBTOOL_F77
42 ])])
43
44 dnl Quote A][M_PROG_GCJ so that aclocal doesn't bring it in needlessly.
45 dnl If either AC_PROG_GCJ or A][M_PROG_GCJ have already been expanded, run
46 dnl AC_LIBTOOL_GCJ immediately, otherwise, hook it in at the end of both.
47 AC_PROVIDE_IFELSE([AC_PROG_GCJ],
48 [AC_LIBTOOL_GCJ],
49 [AC_PROVIDE_IFELSE([A][M_PROG_GCJ],
50 [AC_LIBTOOL_GCJ],
51 [AC_PROVIDE_IFELSE([LT_AC_PROG_GCJ],
52 [AC_LIBTOOL_GCJ],
53 [ifdef([AC_PROG_GCJ],
54 [define([AC_PROG_GCJ], defn([AC_PROG_GCJ])[AC_LIBTOOL_GCJ])])
55 ifdef([A][M_PROG_GCJ],
56 [define([A][M_PROG_GCJ], defn([A][M_PROG_GCJ])[AC_LIBTOOL_GCJ])])
57 ifdef([LT_AC_PROG_GCJ],
58 [define([LT_AC_PROG_GCJ],
59 defn([LT_AC_PROG_GCJ])[AC_LIBTOOL_GCJ])])])])
60 ])])# AC_PROG_LIBTOOL
61
62
63 # _AC_PROG_LIBTOOL
64 # ----------------
65 AC_DEFUN([_AC_PROG_LIBTOOL],
66 [AC_REQUIRE([AC_LIBTOOL_SETUP])dnl
67 AC_BEFORE([$0],[AC_LIBTOOL_CXX])dnl
68 AC_BEFORE([$0],[AC_LIBTOOL_F77])dnl
69 AC_BEFORE([$0],[AC_LIBTOOL_GCJ])dnl
14 #
15 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
16 # 2006, 2007, 2008 Free Software Foundation, Inc.
17 # Written by Gordon Matzigkeit, 1996
18 #
19 # This file is free software; the Free Software Foundation gives
20 # unlimited permission to copy and/or distribute it, with or without
21 # modifications, as long as this notice is preserved.
22
23 m4_define([_LT_COPYING], [dnl
24 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
25 # 2006, 2007, 2008 Free Software Foundation, Inc.
26 # Written by Gordon Matzigkeit, 1996
27 #
28 # This file is part of GNU Libtool.
29 #
30 # GNU Libtool is free software; you can redistribute it and/or
31 # modify it under the terms of the GNU General Public License as
32 # published by the Free Software Foundation; either version 2 of
33 # the License, or (at your option) any later version.
34 #
35 # As a special exception to the GNU General Public License,
36 # if you distribute this file as part of a program or library that
37 # is built using GNU Libtool, you may include this file under the
38 # same distribution terms that you use for the rest of that program.
39 #
40 # GNU Libtool is distributed in the hope that it will be useful,
41 # but WITHOUT ANY WARRANTY; without even the implied warranty of
42 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
43 # GNU General Public License for more details.
44 #
45 # You should have received a copy of the GNU General Public License
46 # along with GNU Libtool; see the file COPYING. If not, a copy
47 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
48 # obtained by writing to the Free Software Foundation, Inc.,
49 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
50 ])
51
52 # serial 56 LT_INIT
53
54
55 # LT_PREREQ(VERSION)
56 # ------------------
57 # Complain and exit if this libtool version is less that VERSION.
58 m4_defun([LT_PREREQ],
59 [m4_if(m4_version_compare(m4_defn([LT_PACKAGE_VERSION]), [$1]), -1,
60 [m4_default([$3],
61 [m4_fatal([Libtool version $1 or higher is required],
62 63)])],
63 [$2])])
64
65
66 # _LT_CHECK_BUILDDIR
67 # ------------------
68 # Complain if the absolute build directory name contains unusual characters
69 m4_defun([_LT_CHECK_BUILDDIR],
70 [case `pwd` in
71 *\ * | *\ *)
72 AC_MSG_WARN([Libtool does not cope well with whitespace in `pwd`]) ;;
73 esac
74 ])
75
76
77 # LT_INIT([OPTIONS])
78 # ------------------
79 AC_DEFUN([LT_INIT],
80 [AC_PREREQ([2.58])dnl We use AC_INCLUDES_DEFAULT
81 AC_BEFORE([$0], [LT_LANG])dnl
82 AC_BEFORE([$0], [LT_OUTPUT])dnl
83 AC_BEFORE([$0], [LTDL_INIT])dnl
84 m4_require([_LT_CHECK_BUILDDIR])dnl
85
86 dnl Autoconf doesn't catch unexpanded LT_ macros by default:
87 m4_pattern_forbid([^_?LT_[A-Z_]+$])dnl
88 m4_pattern_allow([^(_LT_EOF|LT_DLGLOBAL|LT_DLLAZY_OR_NOW|LT_MULTI_MODULE)$])dnl
89 dnl aclocal doesn't pull ltoptions.m4, ltsugar.m4, or ltversion.m4
90 dnl unless we require an AC_DEFUNed macro:
91 AC_REQUIRE([LTOPTIONS_VERSION])dnl
92 AC_REQUIRE([LTSUGAR_VERSION])dnl
93 AC_REQUIRE([LTVERSION_VERSION])dnl
94 AC_REQUIRE([LTOBSOLETE_VERSION])dnl
95 m4_require([_LT_PROG_LTMAIN])dnl
96
97 dnl Parse OPTIONS
98 _LT_SET_OPTIONS([$0], [$1])
7099
71100 # This can be used to rebuild libtool when needed
72 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
101 LIBTOOL_DEPS="$ltmain"
73102
74103 # Always use our own libtool.
75104 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
76105 AC_SUBST(LIBTOOL)dnl
77106
78 # Prevent multiple expansion
79 define([AC_PROG_LIBTOOL], [])
80 ])# _AC_PROG_LIBTOOL
81
82
83 # AC_LIBTOOL_SETUP
84 # ----------------
85 AC_DEFUN([AC_LIBTOOL_SETUP],
86 [AC_PREREQ(2.50)dnl
87 AC_REQUIRE([AC_ENABLE_SHARED])dnl
88 AC_REQUIRE([AC_ENABLE_STATIC])dnl
89 AC_REQUIRE([AC_ENABLE_FAST_INSTALL])dnl
90 AC_REQUIRE([AC_CANONICAL_HOST])dnl
107 _LT_SETUP
108
109 # Only expand once:
110 m4_define([LT_INIT])
111 ])# LT_INIT
112
113 # Old names:
114 AU_ALIAS([AC_PROG_LIBTOOL], [LT_INIT])
115 AU_ALIAS([AM_PROG_LIBTOOL], [LT_INIT])
116 dnl aclocal-1.4 backwards compatibility:
117 dnl AC_DEFUN([AC_PROG_LIBTOOL], [])
118 dnl AC_DEFUN([AM_PROG_LIBTOOL], [])
119
120
121 # _LT_CC_BASENAME(CC)
122 # -------------------
123 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
124 m4_defun([_LT_CC_BASENAME],
125 [for cc_temp in $1""; do
126 case $cc_temp in
127 compile | *[[\\/]]compile | ccache | *[[\\/]]ccache ) ;;
128 distcc | *[[\\/]]distcc | purify | *[[\\/]]purify ) ;;
129 \-*) ;;
130 *) break;;
131 esac
132 done
133 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
134 ])
135
136
137 # _LT_FILEUTILS_DEFAULTS
138 # ----------------------
139 # It is okay to use these file commands and assume they have been set
140 # sensibly after `m4_require([_LT_FILEUTILS_DEFAULTS])'.
141 m4_defun([_LT_FILEUTILS_DEFAULTS],
142 [: ${CP="cp -f"}
143 : ${MV="mv -f"}
144 : ${RM="rm -f"}
145 ])# _LT_FILEUTILS_DEFAULTS
146
147
148 # _LT_SETUP
149 # ---------
150 m4_defun([_LT_SETUP],
151 [AC_REQUIRE([AC_CANONICAL_HOST])dnl
91152 AC_REQUIRE([AC_CANONICAL_BUILD])dnl
153 _LT_DECL([], [host_alias], [0], [The host system])dnl
154 _LT_DECL([], [host], [0])dnl
155 _LT_DECL([], [host_os], [0])dnl
156 dnl
157 _LT_DECL([], [build_alias], [0], [The build system])dnl
158 _LT_DECL([], [build], [0])dnl
159 _LT_DECL([], [build_os], [0])dnl
160 dnl
92161 AC_REQUIRE([AC_PROG_CC])dnl
93 AC_REQUIRE([AC_PROG_LD])dnl
94 AC_REQUIRE([AC_PROG_LD_RELOAD_FLAG])dnl
95 AC_REQUIRE([AC_PROG_NM])dnl
96
162 AC_REQUIRE([LT_PATH_LD])dnl
163 AC_REQUIRE([LT_PATH_NM])dnl
164 dnl
97165 AC_REQUIRE([AC_PROG_LN_S])dnl
98 AC_REQUIRE([AC_DEPLIBS_CHECK_METHOD])dnl
99 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
100 AC_REQUIRE([AC_OBJEXT])dnl
101 AC_REQUIRE([AC_EXEEXT])dnl
166 test -z "$LN_S" && LN_S="ln -s"
167 _LT_DECL([], [LN_S], [1], [Whether we need soft or hard links])dnl
102168 dnl
103
104 AC_LIBTOOL_SYS_MAX_CMD_LEN
105 AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE
106 AC_LIBTOOL_OBJDIR
107
108 AC_REQUIRE([_LT_AC_SYS_COMPILER])dnl
109 _LT_AC_PROG_ECHO_BACKSLASH
169 AC_REQUIRE([LT_CMD_MAX_LEN])dnl
170 _LT_DECL([objext], [ac_objext], [0], [Object file suffix (normally "o")])dnl
171 _LT_DECL([], [exeext], [0], [Executable file suffix (normally "")])dnl
172 dnl
173 m4_require([_LT_FILEUTILS_DEFAULTS])dnl
174 m4_require([_LT_CHECK_SHELL_FEATURES])dnl
175 m4_require([_LT_CMD_RELOAD])dnl
176 m4_require([_LT_CHECK_MAGIC_METHOD])dnl
177 m4_require([_LT_CMD_OLD_ARCHIVE])dnl
178 m4_require([_LT_CMD_GLOBAL_SYMBOLS])dnl
179
180 _LT_CONFIG_LIBTOOL_INIT([
181 # See if we are running on zsh, and set the options which allow our
182 # commands through without removal of \ escapes INIT.
183 if test -n "\${ZSH_VERSION+set}" ; then
184 setopt NO_GLOB_SUBST
185 fi
186 ])
187 if test -n "${ZSH_VERSION+set}" ; then
188 setopt NO_GLOB_SUBST
189 fi
190
191 _LT_CHECK_OBJDIR
192
193 m4_require([_LT_TAG_COMPILER])dnl
194 _LT_PROG_ECHO_BACKSLASH
110195
111196 case $host_os in
112197 aix3*)
122207
123208 # Sed substitution that helps us do robust quoting. It backslashifies
124209 # metacharacters that are still active within double-quoted strings.
125 Xsed='sed -e 1s/^X//'
126 [sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g']
210 sed_quote_subst='s/\([["`$\\]]\)/\\\1/g'
127211
128212 # Same as above, but do not quote variable references.
129 [double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g']
213 double_quote_subst='s/\([["`\\]]\)/\\\1/g'
130214
131215 # Sed substitution to delay expansion of an escaped shell variable in a
132216 # double_quote_subst'ed string.
133217 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
134218
219 # Sed substitution to delay expansion of an escaped single quote.
220 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
221
135222 # Sed substitution to avoid accidental globbing in evaled expressions
136223 no_glob_subst='s/\*/\\\*/g'
137224
138 # Constants:
139 rm="rm -f"
140
141225 # Global variables:
142 default_ofile=libtool
226 ofile=libtool
143227 can_build_shared=yes
144228
145229 # All known linkers require a `.a' archive for static linking (except MSVC,
146230 # which needs '.lib').
147231 libext=a
148 ltmain="$ac_aux_dir/ltmain.sh"
149 ofile="$default_ofile"
232
150233 with_gnu_ld="$lt_cv_prog_gnu_ld"
151
152 AC_CHECK_TOOL(AR, ar, false)
153 AC_CHECK_TOOL(RANLIB, ranlib, :)
154 AC_CHECK_TOOL(STRIP, strip, :)
155234
156235 old_CC="$CC"
157236 old_CFLAGS="$CFLAGS"
158237
159238 # Set sane defaults for various variables
160 test -z "$AR" && AR=ar
161 test -z "$AR_FLAGS" && AR_FLAGS=cru
162 test -z "$AS" && AS=as
163239 test -z "$CC" && CC=cc
164240 test -z "$LTCC" && LTCC=$CC
165241 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
166 test -z "$DLLTOOL" && DLLTOOL=dlltool
167242 test -z "$LD" && LD=ld
168 test -z "$LN_S" && LN_S="ln -s"
243 test -z "$ac_objext" && ac_objext=o
244
245 _LT_CC_BASENAME([$compiler])
246
247 # Only perform the check for file, if the check method requires it
169248 test -z "$MAGIC_CMD" && MAGIC_CMD=file
170 test -z "$NM" && NM=nm
171 test -z "$SED" && SED=sed
172 test -z "$OBJDUMP" && OBJDUMP=objdump
173 test -z "$RANLIB" && RANLIB=:
174 test -z "$STRIP" && STRIP=:
175 test -z "$ac_objext" && ac_objext=o
176
177 # Determine commands to create old-style static archives.
178 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
179 old_postinstall_cmds='chmod 644 $oldlib'
180 old_postuninstall_cmds=
181
182 if test -n "$RANLIB"; then
183 case $host_os in
184 openbsd*)
185 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
186 ;;
187 *)
188 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
189 ;;
190 esac
191 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
192 fi
193
194 _LT_CC_BASENAME([$compiler])
195
196 # Only perform the check for file, if the check method requires it
197249 case $deplibs_check_method in
198250 file_magic*)
199251 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
200 AC_PATH_MAGIC
252 _LT_PATH_MAGIC
201253 fi
202254 ;;
203255 esac
204256
205 AC_PROVIDE_IFELSE([AC_LIBTOOL_DLOPEN], enable_dlopen=yes, enable_dlopen=no)
206 AC_PROVIDE_IFELSE([AC_LIBTOOL_WIN32_DLL],
207 enable_win32_dll=yes, enable_win32_dll=no)
208
209 AC_ARG_ENABLE([libtool-lock],
210 [AC_HELP_STRING([--disable-libtool-lock],
211 [avoid locking (might break parallel builds)])])
212 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
213
214 AC_ARG_WITH([pic],
215 [AC_HELP_STRING([--with-pic],
216 [try to use only PIC/non-PIC objects @<:@default=use both@:>@])],
217 [pic_mode="$withval"],
218 [pic_mode=default])
219 test -z "$pic_mode" && pic_mode=default
220
221257 # Use C for the default configuration in the libtool script
222 tagname=
223 AC_LIBTOOL_LANG_C_CONFIG
224 _LT_AC_TAGCONFIG
225 ])# AC_LIBTOOL_SETUP
226
227
228 # _LT_AC_SYS_COMPILER
258 LT_SUPPORTED_TAG([CC])
259 _LT_LANG_C_CONFIG
260 _LT_LANG_DEFAULT_CONFIG
261 _LT_CONFIG_COMMANDS
262 ])# _LT_SETUP
263
264
265 # _LT_PROG_LTMAIN
266 # ---------------
267 # Note that this code is called both from `configure', and `config.status'
268 # now that we use AC_CONFIG_COMMANDS to generate libtool. Notably,
269 # `config.status' has no value for ac_aux_dir unless we are using Automake,
270 # so we pass a copy along to make sure it has a sensible value anyway.
271 m4_defun([_LT_PROG_LTMAIN],
272 [m4_ifdef([AC_REQUIRE_AUX_FILE], [AC_REQUIRE_AUX_FILE([ltmain.sh])])dnl
273 _LT_CONFIG_LIBTOOL_INIT([ac_aux_dir='$ac_aux_dir'])
274 ltmain="$ac_aux_dir/ltmain.sh"
275 ])# _LT_PROG_LTMAIN
276
277
278
279 # So that we can recreate a full libtool script including additional
280 # tags, we accumulate the chunks of code to send to AC_CONFIG_COMMANDS
281 # in macros and then make a single call at the end using the `libtool'
282 # label.
283
284
285 # _LT_CONFIG_LIBTOOL_INIT([INIT-COMMANDS])
286 # ----------------------------------------
287 # Register INIT-COMMANDS to be passed to AC_CONFIG_COMMANDS later.
288 m4_define([_LT_CONFIG_LIBTOOL_INIT],
289 [m4_ifval([$1],
290 [m4_append([_LT_OUTPUT_LIBTOOL_INIT],
291 [$1
292 ])])])
293
294 # Initialize.
295 m4_define([_LT_OUTPUT_LIBTOOL_INIT])
296
297
298 # _LT_CONFIG_LIBTOOL([COMMANDS])
299 # ------------------------------
300 # Register COMMANDS to be passed to AC_CONFIG_COMMANDS later.
301 m4_define([_LT_CONFIG_LIBTOOL],
302 [m4_ifval([$1],
303 [m4_append([_LT_OUTPUT_LIBTOOL_COMMANDS],
304 [$1
305 ])])])
306
307 # Initialize.
308 m4_define([_LT_OUTPUT_LIBTOOL_COMMANDS])
309
310
311 # _LT_CONFIG_SAVE_COMMANDS([COMMANDS], [INIT_COMMANDS])
312 # -----------------------------------------------------
313 m4_defun([_LT_CONFIG_SAVE_COMMANDS],
314 [_LT_CONFIG_LIBTOOL([$1])
315 _LT_CONFIG_LIBTOOL_INIT([$2])
316 ])
317
318
319 # _LT_FORMAT_COMMENT([COMMENT])
320 # -----------------------------
321 # Add leading comment marks to the start of each line, and a trailing
322 # full-stop to the whole comment if one is not present already.
323 m4_define([_LT_FORMAT_COMMENT],
324 [m4_ifval([$1], [
325 m4_bpatsubst([m4_bpatsubst([$1], [^ *], [# ])],
326 [['`$\]], [\\\&])]m4_bmatch([$1], [[!?.]$], [], [.])
327 )])
328
329
330
331
332
333 # _LT_DECL([CONFIGNAME], VARNAME, VALUE, [DESCRIPTION], [IS-TAGGED?])
334 # -------------------------------------------------------------------
335 # CONFIGNAME is the name given to the value in the libtool script.
336 # VARNAME is the (base) name used in the configure script.
337 # VALUE may be 0, 1 or 2 for a computed quote escaped value based on
338 # VARNAME. Any other value will be used directly.
339 m4_define([_LT_DECL],
340 [lt_if_append_uniq([lt_decl_varnames], [$2], [, ],
341 [lt_dict_add_subkey([lt_decl_dict], [$2], [libtool_name],
342 [m4_ifval([$1], [$1], [$2])])
343 lt_dict_add_subkey([lt_decl_dict], [$2], [value], [$3])
344 m4_ifval([$4],
345 [lt_dict_add_subkey([lt_decl_dict], [$2], [description], [$4])])
346 lt_dict_add_subkey([lt_decl_dict], [$2],
347 [tagged?], [m4_ifval([$5], [yes], [no])])])
348 ])
349
350
351 # _LT_TAGDECL([CONFIGNAME], VARNAME, VALUE, [DESCRIPTION])
352 # --------------------------------------------------------
353 m4_define([_LT_TAGDECL], [_LT_DECL([$1], [$2], [$3], [$4], [yes])])
354
355
356 # lt_decl_tag_varnames([SEPARATOR], [VARNAME1...])
357 # ------------------------------------------------
358 m4_define([lt_decl_tag_varnames],
359 [_lt_decl_filter([tagged?], [yes], $@)])
360
361
362 # _lt_decl_filter(SUBKEY, VALUE, [SEPARATOR], [VARNAME1..])
363 # ---------------------------------------------------------
364 m4_define([_lt_decl_filter],
365 [m4_case([$#],
366 [0], [m4_fatal([$0: too few arguments: $#])],
367 [1], [m4_fatal([$0: too few arguments: $#: $1])],
368 [2], [lt_dict_filter([lt_decl_dict], [$1], [$2], [], lt_decl_varnames)],
369 [3], [lt_dict_filter([lt_decl_dict], [$1], [$2], [$3], lt_decl_varnames)],
370 [lt_dict_filter([lt_decl_dict], $@)])[]dnl
371 ])
372
373
374 # lt_decl_quote_varnames([SEPARATOR], [VARNAME1...])
375 # --------------------------------------------------
376 m4_define([lt_decl_quote_varnames],
377 [_lt_decl_filter([value], [1], $@)])
378
379
380 # lt_decl_dquote_varnames([SEPARATOR], [VARNAME1...])
381 # ---------------------------------------------------
382 m4_define([lt_decl_dquote_varnames],
383 [_lt_decl_filter([value], [2], $@)])
384
385
386 # lt_decl_varnames_tagged([SEPARATOR], [VARNAME1...])
387 # ---------------------------------------------------
388 m4_define([lt_decl_varnames_tagged],
389 [m4_assert([$# <= 2])dnl
390 _$0(m4_quote(m4_default([$1], [[, ]])),
391 m4_ifval([$2], [[$2]], [m4_dquote(lt_decl_tag_varnames)]),
392 m4_split(m4_normalize(m4_quote(_LT_TAGS)), [ ]))])
393 m4_define([_lt_decl_varnames_tagged],
394 [m4_ifval([$3], [lt_combine([$1], [$2], [_], $3)])])
395
396
397 # lt_decl_all_varnames([SEPARATOR], [VARNAME1...])
398 # ------------------------------------------------
399 m4_define([lt_decl_all_varnames],
400 [_$0(m4_quote(m4_default([$1], [[, ]])),
401 m4_if([$2], [],
402 m4_quote(lt_decl_varnames),
403 m4_quote(m4_shift($@))))[]dnl
404 ])
405 m4_define([_lt_decl_all_varnames],
406 [lt_join($@, lt_decl_varnames_tagged([$1],
407 lt_decl_tag_varnames([[, ]], m4_shift($@))))dnl
408 ])
409
410
411 # _LT_CONFIG_STATUS_DECLARE([VARNAME])
412 # ------------------------------------
413 # Quote a variable value, and forward it to `config.status' so that its
414 # declaration there will have the same value as in `configure'. VARNAME
415 # must have a single quote delimited value for this to work.
416 m4_define([_LT_CONFIG_STATUS_DECLARE],
417 [$1='`$ECHO "X$][$1" | $Xsed -e "$delay_single_quote_subst"`'])
418
419
420 # _LT_CONFIG_STATUS_DECLARATIONS
421 # ------------------------------
422 # We delimit libtool config variables with single quotes, so when
423 # we write them to config.status, we have to be sure to quote all
424 # embedded single quotes properly. In configure, this macro expands
425 # each variable declared with _LT_DECL (and _LT_TAGDECL) into:
426 #
427 # <var>='`$ECHO "X$<var>" | $Xsed -e "$delay_single_quote_subst"`'
428 m4_defun([_LT_CONFIG_STATUS_DECLARATIONS],
429 [m4_foreach([_lt_var], m4_quote(lt_decl_all_varnames),
430 [m4_n([_LT_CONFIG_STATUS_DECLARE(_lt_var)])])])
431
432
433 # _LT_LIBTOOL_TAGS
434 # ----------------
435 # Output comment and list of tags supported by the script
436 m4_defun([_LT_LIBTOOL_TAGS],
437 [_LT_FORMAT_COMMENT([The names of the tagged configurations supported by this script])dnl
438 available_tags="_LT_TAGS"dnl
439 ])
440
441
442 # _LT_LIBTOOL_DECLARE(VARNAME, [TAG])
443 # -----------------------------------
444 # Extract the dictionary values for VARNAME (optionally with TAG) and
445 # expand to a commented shell variable setting:
446 #
447 # # Some comment about what VAR is for.
448 # visible_name=$lt_internal_name
449 m4_define([_LT_LIBTOOL_DECLARE],
450 [_LT_FORMAT_COMMENT(m4_quote(lt_dict_fetch([lt_decl_dict], [$1],
451 [description])))[]dnl
452 m4_pushdef([_libtool_name],
453 m4_quote(lt_dict_fetch([lt_decl_dict], [$1], [libtool_name])))[]dnl
454 m4_case(m4_quote(lt_dict_fetch([lt_decl_dict], [$1], [value])),
455 [0], [_libtool_name=[$]$1],
456 [1], [_libtool_name=$lt_[]$1],
457 [2], [_libtool_name=$lt_[]$1],
458 [_libtool_name=lt_dict_fetch([lt_decl_dict], [$1], [value])])[]dnl
459 m4_ifval([$2], [_$2])[]m4_popdef([_libtool_name])[]dnl
460 ])
461
462
463 # _LT_LIBTOOL_CONFIG_VARS
464 # -----------------------
465 # Produce commented declarations of non-tagged libtool config variables
466 # suitable for insertion in the LIBTOOL CONFIG section of the `libtool'
467 # script. Tagged libtool config variables (even for the LIBTOOL CONFIG
468 # section) are produced by _LT_LIBTOOL_TAG_VARS.
469 m4_defun([_LT_LIBTOOL_CONFIG_VARS],
470 [m4_foreach([_lt_var],
471 m4_quote(_lt_decl_filter([tagged?], [no], [], lt_decl_varnames)),
472 [m4_n([_LT_LIBTOOL_DECLARE(_lt_var)])])])
473
474
475 # _LT_LIBTOOL_TAG_VARS(TAG)
476 # -------------------------
477 m4_define([_LT_LIBTOOL_TAG_VARS],
478 [m4_foreach([_lt_var], m4_quote(lt_decl_tag_varnames),
479 [m4_n([_LT_LIBTOOL_DECLARE(_lt_var, [$1])])])])
480
481
482 # _LT_TAGVAR(VARNAME, [TAGNAME])
483 # ------------------------------
484 m4_define([_LT_TAGVAR], [m4_ifval([$2], [$1_$2], [$1])])
485
486
487 # _LT_CONFIG_COMMANDS
229488 # -------------------
230 AC_DEFUN([_LT_AC_SYS_COMPILER],
489 # Send accumulated output to $CONFIG_STATUS. Thanks to the lists of
490 # variables for single and double quote escaping we saved from calls
491 # to _LT_DECL, we can put quote escaped variables declarations
492 # into `config.status', and then the shell code to quote escape them in
493 # for loops in `config.status'. Finally, any additional code accumulated
494 # from calls to _LT_CONFIG_LIBTOOL_INIT is expanded.
495 m4_defun([_LT_CONFIG_COMMANDS],
496 [AC_PROVIDE_IFELSE([LT_OUTPUT],
497 dnl If the libtool generation code has been placed in $CONFIG_LT,
498 dnl instead of duplicating it all over again into config.status,
499 dnl then we will have config.status run $CONFIG_LT later, so it
500 dnl needs to know what name is stored there:
501 [AC_CONFIG_COMMANDS([libtool],
502 [$SHELL $CONFIG_LT || AS_EXIT(1)], [CONFIG_LT='$CONFIG_LT'])],
503 dnl If the libtool generation code is destined for config.status,
504 dnl expand the accumulated commands and init code now:
505 [AC_CONFIG_COMMANDS([libtool],
506 [_LT_OUTPUT_LIBTOOL_COMMANDS], [_LT_OUTPUT_LIBTOOL_COMMANDS_INIT])])
507 ])#_LT_CONFIG_COMMANDS
508
509
510 # Initialize.
511 m4_define([_LT_OUTPUT_LIBTOOL_COMMANDS_INIT],
512 [
513
514 # The HP-UX ksh and POSIX shell print the target directory to stdout
515 # if CDPATH is set.
516 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
517
518 sed_quote_subst='$sed_quote_subst'
519 double_quote_subst='$double_quote_subst'
520 delay_variable_subst='$delay_variable_subst'
521 _LT_CONFIG_STATUS_DECLARATIONS
522 LTCC='$LTCC'
523 LTCFLAGS='$LTCFLAGS'
524 compiler='$compiler_DEFAULT'
525
526 # Quote evaled strings.
527 for var in lt_decl_all_varnames([[ \
528 ]], lt_decl_quote_varnames); do
529 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
530 *[[\\\\\\\`\\"\\\$]]*)
531 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
532 ;;
533 *)
534 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
535 ;;
536 esac
537 done
538
539 # Double-quote double-evaled strings.
540 for var in lt_decl_all_varnames([[ \
541 ]], lt_decl_dquote_varnames); do
542 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
543 *[[\\\\\\\`\\"\\\$]]*)
544 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
545 ;;
546 *)
547 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
548 ;;
549 esac
550 done
551
552 # Fix-up fallback echo if it was mangled by the above quoting rules.
553 case \$lt_ECHO in
554 *'\\\[$]0 --fallback-echo"')dnl "
555 lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\[$]0 --fallback-echo"\[$]/\[$]0 --fallback-echo"/'\`
556 ;;
557 esac
558
559 _LT_OUTPUT_LIBTOOL_INIT
560 ])
561
562
563 # LT_OUTPUT
564 # ---------
565 # This macro allows early generation of the libtool script (before
566 # AC_OUTPUT is called), incase it is used in configure for compilation
567 # tests.
568 AC_DEFUN([LT_OUTPUT],
569 [: ${CONFIG_LT=./config.lt}
570 AC_MSG_NOTICE([creating $CONFIG_LT])
571 cat >"$CONFIG_LT" <<_LTEOF
572 #! $SHELL
573 # Generated by $as_me.
574 # Run this file to recreate a libtool stub with the current configuration.
575
576 lt_cl_silent=false
577 SHELL=\${CONFIG_SHELL-$SHELL}
578 _LTEOF
579
580 cat >>"$CONFIG_LT" <<\_LTEOF
581 AS_SHELL_SANITIZE
582 _AS_PREPARE
583
584 exec AS_MESSAGE_FD>&1
585 exec AS_MESSAGE_LOG_FD>>config.log
586 {
587 echo
588 AS_BOX([Running $as_me.])
589 } >&AS_MESSAGE_LOG_FD
590
591 lt_cl_help="\
592 \`$as_me' creates a local libtool stub from the current configuration,
593 for use in further configure time tests before the real libtool is
594 generated.
595
596 Usage: $[0] [[OPTIONS]]
597
598 -h, --help print this help, then exit
599 -V, --version print version number, then exit
600 -q, --quiet do not print progress messages
601 -d, --debug don't remove temporary files
602
603 Report bugs to <bug-libtool@gnu.org>."
604
605 lt_cl_version="\
606 m4_ifset([AC_PACKAGE_NAME], [AC_PACKAGE_NAME ])config.lt[]dnl
607 m4_ifset([AC_PACKAGE_VERSION], [ AC_PACKAGE_VERSION])
608 configured by $[0], generated by m4_PACKAGE_STRING.
609
610 Copyright (C) 2008 Free Software Foundation, Inc.
611 This config.lt script is free software; the Free Software Foundation
612 gives unlimited permision to copy, distribute and modify it."
613
614 while test $[#] != 0
615 do
616 case $[1] in
617 --version | --v* | -V )
618 echo "$lt_cl_version"; exit 0 ;;
619 --help | --h* | -h )
620 echo "$lt_cl_help"; exit 0 ;;
621 --debug | --d* | -d )
622 debug=: ;;
623 --quiet | --q* | --silent | --s* | -q )
624 lt_cl_silent=: ;;
625
626 -*) AC_MSG_ERROR([unrecognized option: $[1]
627 Try \`$[0] --help' for more information.]) ;;
628
629 *) AC_MSG_ERROR([unrecognized argument: $[1]
630 Try \`$[0] --help' for more information.]) ;;
631 esac
632 shift
633 done
634
635 if $lt_cl_silent; then
636 exec AS_MESSAGE_FD>/dev/null
637 fi
638 _LTEOF
639
640 cat >>"$CONFIG_LT" <<_LTEOF
641 _LT_OUTPUT_LIBTOOL_COMMANDS_INIT
642 _LTEOF
643
644 cat >>"$CONFIG_LT" <<\_LTEOF
645 AC_MSG_NOTICE([creating $ofile])
646 _LT_OUTPUT_LIBTOOL_COMMANDS
647 AS_EXIT(0)
648 _LTEOF
649 chmod +x "$CONFIG_LT"
650
651 # configure is writing to config.log, but config.lt does its own redirection,
652 # appending to config.log, which fails on DOS, as config.log is still kept
653 # open by configure. Here we exec the FD to /dev/null, effectively closing
654 # config.log, so it can be properly (re)opened and appended to by config.lt.
655 if test "$no_create" != yes; then
656 lt_cl_success=:
657 test "$silent" = yes &&
658 lt_config_lt_args="$lt_config_lt_args --quiet"
659 exec AS_MESSAGE_LOG_FD>/dev/null
660 $SHELL "$CONFIG_LT" $lt_config_lt_args || lt_cl_success=false
661 exec AS_MESSAGE_LOG_FD>>config.log
662 $lt_cl_success || AS_EXIT(1)
663 fi
664 ])# LT_OUTPUT
665
666
667 # _LT_CONFIG(TAG)
668 # ---------------
669 # If TAG is the built-in tag, create an initial libtool script with a
670 # default configuration from the untagged config vars. Otherwise add code
671 # to config.status for appending the configuration named by TAG from the
672 # matching tagged config vars.
673 m4_defun([_LT_CONFIG],
674 [m4_require([_LT_FILEUTILS_DEFAULTS])dnl
675 _LT_CONFIG_SAVE_COMMANDS([
676 m4_define([_LT_TAG], m4_if([$1], [], [C], [$1]))dnl
677 m4_if(_LT_TAG, [C], [
678 # See if we are running on zsh, and set the options which allow our
679 # commands through without removal of \ escapes.
680 if test -n "${ZSH_VERSION+set}" ; then
681 setopt NO_GLOB_SUBST
682 fi
683
684 cfgfile="${ofile}T"
685 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
686 $RM "$cfgfile"
687
688 cat <<_LT_EOF >> "$cfgfile"
689 #! $SHELL
690
691 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
692 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
693 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
694 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
695 #
696 _LT_COPYING
697 _LT_LIBTOOL_TAGS
698
699 # ### BEGIN LIBTOOL CONFIG
700 _LT_LIBTOOL_CONFIG_VARS
701 _LT_LIBTOOL_TAG_VARS
702 # ### END LIBTOOL CONFIG
703
704 _LT_EOF
705
706 case $host_os in
707 aix3*)
708 cat <<\_LT_EOF >> "$cfgfile"
709 # AIX sometimes has problems with the GCC collect2 program. For some
710 # reason, if we set the COLLECT_NAMES environment variable, the problems
711 # vanish in a puff of smoke.
712 if test "X${COLLECT_NAMES+set}" != Xset; then
713 COLLECT_NAMES=
714 export COLLECT_NAMES
715 fi
716 _LT_EOF
717 ;;
718 esac
719
720 _LT_PROG_LTMAIN
721
722 # We use sed instead of cat because bash on DJGPP gets confused if
723 # if finds mixed CR/LF and LF-only lines. Since sed operates in
724 # text mode, it properly converts lines to CR/LF. This bash problem
725 # is reportedly fixed, but why not run on old versions too?
726 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
727 || (rm -f "$cfgfile"; exit 1)
728
729 _LT_PROG_XSI_SHELLFNS
730
731 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
732 || (rm -f "$cfgfile"; exit 1)
733
734 mv -f "$cfgfile" "$ofile" ||
735 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
736 chmod +x "$ofile"
737 ],
738 [cat <<_LT_EOF >> "$ofile"
739
740 dnl Unfortunately we have to use $1 here, since _LT_TAG is not expanded
741 dnl in a comment (ie after a #).
742 # ### BEGIN LIBTOOL TAG CONFIG: $1
743 _LT_LIBTOOL_TAG_VARS(_LT_TAG)
744 # ### END LIBTOOL TAG CONFIG: $1
745 _LT_EOF
746 ])dnl /m4_if
747 ],
748 [m4_if([$1], [], [
749 PACKAGE='$PACKAGE'
750 VERSION='$VERSION'
751 TIMESTAMP='$TIMESTAMP'
752 RM='$RM'
753 ofile='$ofile'], [])
754 ])dnl /_LT_CONFIG_SAVE_COMMANDS
755 ])# _LT_CONFIG
756
757
758 # LT_SUPPORTED_TAG(TAG)
759 # ---------------------
760 # Trace this macro to discover what tags are supported by the libtool
761 # --tag option, using:
762 # autoconf --trace 'LT_SUPPORTED_TAG:$1'
763 AC_DEFUN([LT_SUPPORTED_TAG], [])
764
765
766 # C support is built-in for now
767 m4_define([_LT_LANG_C_enabled], [])
768 m4_define([_LT_TAGS], [])
769
770
771 # LT_LANG(LANG)
772 # -------------
773 # Enable libtool support for the given language if not already enabled.
774 AC_DEFUN([LT_LANG],
775 [AC_BEFORE([$0], [LT_OUTPUT])dnl
776 m4_case([$1],
777 [C], [_LT_LANG(C)],
778 [C++], [_LT_LANG(CXX)],
779 [Java], [_LT_LANG(GCJ)],
780 [Fortran 77], [_LT_LANG(F77)],
781 [Fortran], [_LT_LANG(FC)],
782 [Windows Resource], [_LT_LANG(RC)],
783 [m4_ifdef([_LT_LANG_]$1[_CONFIG],
784 [_LT_LANG($1)],
785 [m4_fatal([$0: unsupported language: "$1"])])])dnl
786 ])# LT_LANG
787
788
789 # _LT_LANG(LANGNAME)
790 # ------------------
791 m4_defun([_LT_LANG],
792 [m4_ifdef([_LT_LANG_]$1[_enabled], [],
793 [LT_SUPPORTED_TAG([$1])dnl
794 m4_append([_LT_TAGS], [$1 ])dnl
795 m4_define([_LT_LANG_]$1[_enabled], [])dnl
796 _LT_LANG_$1_CONFIG($1)])dnl
797 ])# _LT_LANG
798
799
800 # _LT_LANG_DEFAULT_CONFIG
801 # -----------------------
802 m4_defun([_LT_LANG_DEFAULT_CONFIG],
803 [AC_PROVIDE_IFELSE([AC_PROG_CXX],
804 [LT_LANG(CXX)],
805 [m4_define([AC_PROG_CXX], defn([AC_PROG_CXX])[LT_LANG(CXX)])])
806
807 AC_PROVIDE_IFELSE([AC_PROG_F77],
808 [LT_LANG(F77)],
809 [m4_define([AC_PROG_F77], defn([AC_PROG_F77])[LT_LANG(F77)])])
810
811 AC_PROVIDE_IFELSE([AC_PROG_FC],
812 [LT_LANG(FC)],
813 [m4_define([AC_PROG_FC], defn([AC_PROG_FC])[LT_LANG(FC)])])
814
815 dnl The call to [A][M_PROG_GCJ] is quoted like that to stop aclocal
816 dnl pulling things in needlessly.
817 AC_PROVIDE_IFELSE([AC_PROG_GCJ],
818 [LT_LANG(GCJ)],
819 [AC_PROVIDE_IFELSE([A][M_PROG_GCJ],
820 [LT_LANG(GCJ)],
821 [AC_PROVIDE_IFELSE([LT_PROG_GCJ],
822 [LT_LANG(GCJ)],
823 [m4_ifdef([AC_PROG_GCJ],
824 [m4_define([AC_PROG_GCJ], defn([AC_PROG_GCJ])[LT_LANG(GCJ)])])
825 m4_ifdef([A][M_PROG_GCJ],
826 [m4_define([A][M_PROG_GCJ], defn([A][M_PROG_GCJ])[LT_LANG(GCJ)])])
827 m4_ifdef([LT_PROG_GCJ],
828 [m4_define([LT_PROG_GCJ], defn([LT_PROG_GCJ])[LT_LANG(GCJ)])])])])])
829
830 AC_PROVIDE_IFELSE([LT_PROG_RC],
831 [LT_LANG(RC)],
832 [m4_define([LT_PROG_RC], defn([LT_PROG_RC])[LT_LANG(RC)])])
833 ])# _LT_LANG_DEFAULT_CONFIG
834
835 # Obsolete macros:
836 AU_DEFUN([AC_LIBTOOL_CXX], [LT_LANG(C++)])
837 AU_DEFUN([AC_LIBTOOL_F77], [LT_LANG(Fortran 77)])
838 AU_DEFUN([AC_LIBTOOL_FC], [LT_LANG(Fortran)])
839 AU_DEFUN([AC_LIBTOOL_GCJ], [LT_LANG(Java)])
840 dnl aclocal-1.4 backwards compatibility:
841 dnl AC_DEFUN([AC_LIBTOOL_CXX], [])
842 dnl AC_DEFUN([AC_LIBTOOL_F77], [])
843 dnl AC_DEFUN([AC_LIBTOOL_FC], [])
844 dnl AC_DEFUN([AC_LIBTOOL_GCJ], [])
845
846
847 # _LT_TAG_COMPILER
848 # ----------------
849 m4_defun([_LT_TAG_COMPILER],
231850 [AC_REQUIRE([AC_PROG_CC])dnl
851
852 _LT_DECL([LTCC], [CC], [1], [A C compiler])dnl
853 _LT_DECL([LTCFLAGS], [CFLAGS], [1], [LTCC compiler flags])dnl
854 _LT_TAGDECL([CC], [compiler], [1], [A language specific compiler])dnl
855 _LT_TAGDECL([with_gcc], [GCC], [0], [Is the compiler the GNU compiler?])dnl
232856
233857 # If no C compiler was specified, use CC.
234858 LTCC=${LTCC-"$CC"}
238862
239863 # Allow CC to be a program name with arguments.
240864 compiler=$CC
241 ])# _LT_AC_SYS_COMPILER
242
243
244 # _LT_CC_BASENAME(CC)
245 # -------------------
246 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
247 AC_DEFUN([_LT_CC_BASENAME],
248 [for cc_temp in $1""; do
249 case $cc_temp in
250 compile | *[[\\/]]compile | ccache | *[[\\/]]ccache ) ;;
251 distcc | *[[\\/]]distcc | purify | *[[\\/]]purify ) ;;
252 \-*) ;;
253 *) break;;
254 esac
255 done
256 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
257 ])
865 ])# _LT_TAG_COMPILER
258866
259867
260868 # _LT_COMPILER_BOILERPLATE
261869 # ------------------------
262870 # Check for compiler boilerplate output or warnings with
263871 # the simple compiler test code.
264 AC_DEFUN([_LT_COMPILER_BOILERPLATE],
265 [AC_REQUIRE([LT_AC_PROG_SED])dnl
872 m4_defun([_LT_COMPILER_BOILERPLATE],
873 [m4_require([_LT_DECL_SED])dnl
266874 ac_outfile=conftest.$ac_objext
267875 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
268876 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
269877 _lt_compiler_boilerplate=`cat conftest.err`
270 $rm conftest*
878 $RM conftest*
271879 ])# _LT_COMPILER_BOILERPLATE
272880
273881
275883 # ----------------------
276884 # Check for linker boilerplate output or warnings with
277885 # the simple link test code.
278 AC_DEFUN([_LT_LINKER_BOILERPLATE],
279 [AC_REQUIRE([LT_AC_PROG_SED])dnl
886 m4_defun([_LT_LINKER_BOILERPLATE],
887 [m4_require([_LT_DECL_SED])dnl
280888 ac_outfile=conftest.$ac_objext
281889 echo "$lt_simple_link_test_code" >conftest.$ac_ext
282890 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
283891 _lt_linker_boilerplate=`cat conftest.err`
284 $rm conftest*
892 $RM -r conftest*
285893 ])# _LT_LINKER_BOILERPLATE
286894
287
288 # _LT_AC_SYS_LIBPATH_AIX
289 # ----------------------
895 # _LT_REQUIRED_DARWIN_CHECKS
896 # -------------------------
897 m4_defun_once([_LT_REQUIRED_DARWIN_CHECKS],[
898 case $host_os in
899 rhapsody* | darwin*)
900 AC_CHECK_TOOL([DSYMUTIL], [dsymutil], [:])
901 AC_CHECK_TOOL([NMEDIT], [nmedit], [:])
902 AC_CHECK_TOOL([LIPO], [lipo], [:])
903 AC_CHECK_TOOL([OTOOL], [otool], [:])
904 AC_CHECK_TOOL([OTOOL64], [otool64], [:])
905 _LT_DECL([], [DSYMUTIL], [1],
906 [Tool to manipulate archived DWARF debug symbol files on Mac OS X])
907 _LT_DECL([], [NMEDIT], [1],
908 [Tool to change global to local symbols on Mac OS X])
909 _LT_DECL([], [LIPO], [1],
910 [Tool to manipulate fat objects and archives on Mac OS X])
911 _LT_DECL([], [OTOOL], [1],
912 [ldd/readelf like tool for Mach-O binaries on Mac OS X])
913 _LT_DECL([], [OTOOL64], [1],
914 [ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4])
915
916 AC_CACHE_CHECK([for -single_module linker flag],[lt_cv_apple_cc_single_mod],
917 [lt_cv_apple_cc_single_mod=no
918 if test -z "${LT_MULTI_MODULE}"; then
919 # By default we will add the -single_module flag. You can override
920 # by either setting the environment variable LT_MULTI_MODULE
921 # non-empty at configure time, or by adding -multi_module to the
922 # link flags.
923 rm -rf libconftest.dylib*
924 echo "int foo(void){return 1;}" > conftest.c
925 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
926 -dynamiclib -Wl,-single_module conftest.c" >&AS_MESSAGE_LOG_FD
927 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
928 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
929 _lt_result=$?
930 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
931 lt_cv_apple_cc_single_mod=yes
932 else
933 cat conftest.err >&AS_MESSAGE_LOG_FD
934 fi
935 rm -rf libconftest.dylib*
936 rm -f conftest.*
937 fi])
938 AC_CACHE_CHECK([for -exported_symbols_list linker flag],
939 [lt_cv_ld_exported_symbols_list],
940 [lt_cv_ld_exported_symbols_list=no
941 save_LDFLAGS=$LDFLAGS
942 echo "_main" > conftest.sym
943 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
944 AC_LINK_IFELSE([AC_LANG_PROGRAM([],[])],
945 [lt_cv_ld_exported_symbols_list=yes],
946 [lt_cv_ld_exported_symbols_list=no])
947 LDFLAGS="$save_LDFLAGS"
948 ])
949 case $host_os in
950 rhapsody* | darwin1.[[012]])
951 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
952 darwin1.*)
953 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
954 darwin*) # darwin 5.x on
955 # if running on 10.5 or later, the deployment target defaults
956 # to the OS version, if on x86, and 10.4, the deployment
957 # target defaults to 10.4. Don't you love it?
958 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
959 10.0,*86*-darwin8*|10.0,*-darwin[[91]]*)
960 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
961 10.[[012]]*)
962 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
963 10.*)
964 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
965 esac
966 ;;
967 esac
968 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
969 _lt_dar_single_mod='$single_module'
970 fi
971 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
972 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
973 else
974 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
975 fi
976 if test "$DSYMUTIL" != ":"; then
977 _lt_dsymutil='~$DSYMUTIL $lib || :'
978 else
979 _lt_dsymutil=
980 fi
981 ;;
982 esac
983 ])
984
985
986 # _LT_DARWIN_LINKER_FEATURES
987 # --------------------------
988 # Checks for linker and compiler features on darwin
989 m4_defun([_LT_DARWIN_LINKER_FEATURES],
990 [
991 m4_require([_LT_REQUIRED_DARWIN_CHECKS])
992 _LT_TAGVAR(archive_cmds_need_lc, $1)=no
993 _LT_TAGVAR(hardcode_direct, $1)=no
994 _LT_TAGVAR(hardcode_automatic, $1)=yes
995 _LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
996 _LT_TAGVAR(whole_archive_flag_spec, $1)=''
997 _LT_TAGVAR(link_all_deplibs, $1)=yes
998 _LT_TAGVAR(allow_undefined_flag, $1)="$_lt_dar_allow_undefined"
999 case $cc_basename in
1000 ifort*) _lt_dar_can_shared=yes ;;
1001 *) _lt_dar_can_shared=$GCC ;;
1002 esac
1003 if test "$_lt_dar_can_shared" = "yes"; then
1004 output_verbose_link_cmd=echo
1005 _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}"
1006 _LT_TAGVAR(module_cmds, $1)="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
1007 _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}"
1008 _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}"
1009 m4_if([$1], [CXX],
1010 [ if test "$lt_cv_apple_cc_single_mod" != "yes"; then
1011 _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}"
1012 _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}"
1013 fi
1014 ],[])
1015 else
1016 _LT_TAGVAR(ld_shlibs, $1)=no
1017 fi
1018 ])
1019
1020 # _LT_SYS_MODULE_PATH_AIX
1021 # -----------------------
2901022 # Links a minimal program and checks the executable
2911023 # for the system default hardcoded library path. In most cases,
2921024 # this is /usr/lib:/lib, but when the MPI compilers are used
2931025 # the location of the communication and MPI libs are included too.
2941026 # If we don't find anything, use the default library path according
2951027 # to the aix ld manual.
296 AC_DEFUN([_LT_AC_SYS_LIBPATH_AIX],
297 [AC_REQUIRE([LT_AC_PROG_SED])dnl
1028 m4_defun([_LT_SYS_MODULE_PATH_AIX],
1029 [m4_require([_LT_DECL_SED])dnl
2981030 AC_LINK_IFELSE(AC_LANG_PROGRAM,[
2991031 lt_aix_libpath_sed='
3001032 /Import File Strings/,/^$/ {
3091041 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
3101042 fi],[])
3111043 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
312 ])# _LT_AC_SYS_LIBPATH_AIX
313
314
315 # _LT_AC_SHELL_INIT(ARG)
316 # ----------------------
317 AC_DEFUN([_LT_AC_SHELL_INIT],
1044 ])# _LT_SYS_MODULE_PATH_AIX
1045
1046
1047 # _LT_SHELL_INIT(ARG)
1048 # -------------------
1049 m4_define([_LT_SHELL_INIT],
3181050 [ifdef([AC_DIVERSION_NOTICE],
3191051 [AC_DIVERT_PUSH(AC_DIVERSION_NOTICE)],
3201052 [AC_DIVERT_PUSH(NOTICE)])
3211053 $1
3221054 AC_DIVERT_POP
323 ])# _LT_AC_SHELL_INIT
324
325
326 # _LT_AC_PROG_ECHO_BACKSLASH
327 # --------------------------
1055 ])# _LT_SHELL_INIT
1056
1057
1058 # _LT_PROG_ECHO_BACKSLASH
1059 # -----------------------
3281060 # Add some code to the start of the generated configure script which
3291061 # will find an echo command which doesn't interpret backslashes.
330 AC_DEFUN([_LT_AC_PROG_ECHO_BACKSLASH],
331 [_LT_AC_SHELL_INIT([
1062 m4_defun([_LT_PROG_ECHO_BACKSLASH],
1063 [_LT_SHELL_INIT([
3321064 # Check that we are running under the correct shell.
3331065 SHELL=${CONFIG_SHELL-/bin/sh}
3341066
335 case X$ECHO in
1067 case X$lt_ECHO in
3361068 X*--fallback-echo)
3371069 # Remove one level of quotation (which was required for Make).
338 ECHO=`echo "$ECHO" | sed 's,\\\\\[$]\\[$]0,'[$]0','`
1070 ECHO=`echo "$lt_ECHO" | sed 's,\\\\\[$]\\[$]0,'[$]0','`
3391071 ;;
3401072 esac
3411073
342 echo=${ECHO-echo}
1074 ECHO=${lt_ECHO-echo}
3431075 if test "X[$]1" = X--no-reexec; then
3441076 # Discard the --no-reexec flag, and continue.
3451077 shift
3461078 elif test "X[$]1" = X--fallback-echo; then
3471079 # Avoid inline document here, it may be left over
3481080 :
349 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
350 # Yippee, $echo works!
1081 elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
1082 # Yippee, $ECHO works!
3511083 :
3521084 else
3531085 # Restart under the correct shell.
3571089 if test "X[$]1" = X--fallback-echo; then
3581090 # used as fallback echo
3591091 shift
360 cat <<EOF
1092 cat <<_LT_EOF
3611093 [$]*
362 EOF
1094 _LT_EOF
3631095 exit 0
3641096 fi
3651097
3671099 # if CDPATH is set.
3681100 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
3691101
370 if test -z "$ECHO"; then
371 if test "X${echo_test_string+set}" != Xset; then
372 # find a string as large as possible, as long as the shell can cope with it
373 for cmd in 'sed 50q "[$]0"' 'sed 20q "[$]0"' 'sed 10q "[$]0"' 'sed 2q "[$]0"' 'echo test'; do
374 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
375 if (echo_test_string=`eval $cmd`) 2>/dev/null &&
376 echo_test_string=`eval $cmd` &&
377 (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
378 then
379 break
380 fi
381 done
382 fi
383
384 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
385 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
386 test "X$echo_testing_string" = "X$echo_test_string"; then
387 :
388 else
389 # The Solaris, AIX, and Digital Unix default echo programs unquote
390 # backslashes. This makes it impossible to quote backslashes using
391 # echo "$something" | sed 's/\\/\\\\/g'
392 #
393 # So, first we look for a working echo in the user's PATH.
394
395 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
396 for dir in $PATH /usr/ucb; do
1102 if test -z "$lt_ECHO"; then
1103 if test "X${echo_test_string+set}" != Xset; then
1104 # find a string as large as possible, as long as the shell can cope with it
1105 for cmd in 'sed 50q "[$]0"' 'sed 20q "[$]0"' 'sed 10q "[$]0"' 'sed 2q "[$]0"' 'echo test'; do
1106 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
1107 if { echo_test_string=`eval $cmd`; } 2>/dev/null &&
1108 { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null
1109 then
1110 break
1111 fi
1112 done
1113 fi
1114
1115 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
1116 echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
1117 test "X$echo_testing_string" = "X$echo_test_string"; then
1118 :
1119 else
1120 # The Solaris, AIX, and Digital Unix default echo programs unquote
1121 # backslashes. This makes it impossible to quote backslashes using
1122 # echo "$something" | sed 's/\\/\\\\/g'
1123 #
1124 # So, first we look for a working echo in the user's PATH.
1125
1126 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
1127 for dir in $PATH /usr/ucb; do
1128 IFS="$lt_save_ifs"
1129 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
1130 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
1131 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
1132 test "X$echo_testing_string" = "X$echo_test_string"; then
1133 ECHO="$dir/echo"
1134 break
1135 fi
1136 done
3971137 IFS="$lt_save_ifs"
398 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
399 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
400 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
401 test "X$echo_testing_string" = "X$echo_test_string"; then
402 echo="$dir/echo"
403 break
404 fi
405 done
406 IFS="$lt_save_ifs"
407
408 if test "X$echo" = Xecho; then
409 # We didn't find a better echo, so look for alternatives.
410 if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
411 echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
412 test "X$echo_testing_string" = "X$echo_test_string"; then
413 # This shell has a builtin print -r that does the trick.
414 echo='print -r'
415 elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
416 test "X$CONFIG_SHELL" != X/bin/ksh; then
417 # If we have ksh, try running configure again with it.
418 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
419 export ORIGINAL_CONFIG_SHELL
420 CONFIG_SHELL=/bin/ksh
421 export CONFIG_SHELL
422 exec $CONFIG_SHELL "[$]0" --no-reexec ${1+"[$]@"}
423 else
424 # Try using printf.
425 echo='printf %s\n'
426 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
427 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
428 test "X$echo_testing_string" = "X$echo_test_string"; then
429 # Cool, printf works
430 :
431 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "[$]0" --fallback-echo '\t') 2>/dev/null` &&
432 test "X$echo_testing_string" = 'X\t' &&
433 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "[$]0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
1138
1139 if test "X$ECHO" = Xecho; then
1140 # We didn't find a better echo, so look for alternatives.
1141 if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
1142 echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
1143 test "X$echo_testing_string" = "X$echo_test_string"; then
1144 # This shell has a builtin print -r that does the trick.
1145 ECHO='print -r'
1146 elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } &&
1147 test "X$CONFIG_SHELL" != X/bin/ksh; then
1148 # If we have ksh, try running configure again with it.
1149 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
1150 export ORIGINAL_CONFIG_SHELL
1151 CONFIG_SHELL=/bin/ksh
1152 export CONFIG_SHELL
1153 exec $CONFIG_SHELL "[$]0" --no-reexec ${1+"[$]@"}
1154 else
1155 # Try using printf.
1156 ECHO='printf %s\n'
1157 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
1158 echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
4341159 test "X$echo_testing_string" = "X$echo_test_string"; then
435 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
436 export CONFIG_SHELL
437 SHELL="$CONFIG_SHELL"
438 export SHELL
439 echo="$CONFIG_SHELL [$]0 --fallback-echo"
440 elif echo_testing_string=`($CONFIG_SHELL "[$]0" --fallback-echo '\t') 2>/dev/null` &&
441 test "X$echo_testing_string" = 'X\t' &&
442 echo_testing_string=`($CONFIG_SHELL "[$]0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
443 test "X$echo_testing_string" = "X$echo_test_string"; then
444 echo="$CONFIG_SHELL [$]0 --fallback-echo"
445 else
446 # maybe with a smaller string...
447 prev=:
448
449 for cmd in 'echo test' 'sed 2q "[$]0"' 'sed 10q "[$]0"' 'sed 20q "[$]0"' 'sed 50q "[$]0"'; do
450 if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
451 then
452 break
1160 # Cool, printf works
1161 :
1162 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "[$]0" --fallback-echo '\t') 2>/dev/null` &&
1163 test "X$echo_testing_string" = 'X\t' &&
1164 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "[$]0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
1165 test "X$echo_testing_string" = "X$echo_test_string"; then
1166 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
1167 export CONFIG_SHELL
1168 SHELL="$CONFIG_SHELL"
1169 export SHELL
1170 ECHO="$CONFIG_SHELL [$]0 --fallback-echo"
1171 elif echo_testing_string=`($CONFIG_SHELL "[$]0" --fallback-echo '\t') 2>/dev/null` &&
1172 test "X$echo_testing_string" = 'X\t' &&
1173 echo_testing_string=`($CONFIG_SHELL "[$]0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
1174 test "X$echo_testing_string" = "X$echo_test_string"; then
1175 ECHO="$CONFIG_SHELL [$]0 --fallback-echo"
1176 else
1177 # maybe with a smaller string...
1178 prev=:
1179
1180 for cmd in 'echo test' 'sed 2q "[$]0"' 'sed 10q "[$]0"' 'sed 20q "[$]0"' 'sed 50q "[$]0"'; do
1181 if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null
1182 then
1183 break
1184 fi
1185 prev="$cmd"
1186 done
1187
1188 if test "$prev" != 'sed 50q "[$]0"'; then
1189 echo_test_string=`eval $prev`
1190 export echo_test_string
1191 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "[$]0" ${1+"[$]@"}
1192 else
1193 # Oops. We lost completely, so just stick with echo.
1194 ECHO=echo
4531195 fi
454 prev="$cmd"
455 done
456
457 if test "$prev" != 'sed 50q "[$]0"'; then
458 echo_test_string=`eval $prev`
459 export echo_test_string
460 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "[$]0" ${1+"[$]@"}
461 else
462 # Oops. We lost completely, so just stick with echo.
463 echo=echo
464 fi
1196 fi
4651197 fi
4661198 fi
4671199 fi
4681200 fi
469 fi
4701201
4711202 # Copy echo and quote the copy suitably for passing to libtool from
4721203 # the Makefile, instead of quoting the original, which is used later.
473 ECHO=$echo
474 if test "X$ECHO" = "X$CONFIG_SHELL [$]0 --fallback-echo"; then
475 ECHO="$CONFIG_SHELL \\\$\[$]0 --fallback-echo"
1204 lt_ECHO=$ECHO
1205 if test "X$lt_ECHO" = "X$CONFIG_SHELL [$]0 --fallback-echo"; then
1206 lt_ECHO="$CONFIG_SHELL \\\$\[$]0 --fallback-echo"
4761207 fi
4771208
478 AC_SUBST(ECHO)
479 ])])# _LT_AC_PROG_ECHO_BACKSLASH
480
481
482 # _LT_AC_LOCK
483 # -----------
484 AC_DEFUN([_LT_AC_LOCK],
1209 AC_SUBST(lt_ECHO)
1210 ])
1211 _LT_DECL([], [SHELL], [1], [Shell to use when invoking shell scripts])
1212 _LT_DECL([], [ECHO], [1],
1213 [An echo program that does not interpret backslashes])
1214 ])# _LT_PROG_ECHO_BACKSLASH
1215
1216
1217 # _LT_ENABLE_LOCK
1218 # ---------------
1219 m4_defun([_LT_ENABLE_LOCK],
4851220 [AC_ARG_ENABLE([libtool-lock],
486 [AC_HELP_STRING([--disable-libtool-lock],
487 [avoid locking (might break parallel builds)])])
1221 [AS_HELP_STRING([--disable-libtool-lock],
1222 [avoid locking (might break parallel builds)])])
4881223 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
4891224
4901225 # Some flags need to be propagated to the compiler or linker for good
4951230 echo 'int i;' > conftest.$ac_ext
4961231 if AC_TRY_EVAL(ac_compile); then
4971232 case `/usr/bin/file conftest.$ac_objext` in
498 *ELF-32*)
499 HPUX_IA64_MODE="32"
500 ;;
501 *ELF-64*)
502 HPUX_IA64_MODE="64"
503 ;;
1233 *ELF-32*)
1234 HPUX_IA64_MODE="32"
1235 ;;
1236 *ELF-64*)
1237 HPUX_IA64_MODE="64"
1238 ;;
5041239 esac
5051240 fi
5061241 rm -rf conftest*
5091244 # Find out which ABI we are using.
5101245 echo '[#]line __oline__ "configure"' > conftest.$ac_ext
5111246 if AC_TRY_EVAL(ac_compile); then
512 if test "$lt_cv_prog_gnu_ld" = yes; then
513 case `/usr/bin/file conftest.$ac_objext` in
514 *32-bit*)
515 LD="${LD-ld} -melf32bsmip"
516 ;;
517 *N32*)
518 LD="${LD-ld} -melf32bmipn32"
519 ;;
520 *64-bit*)
521 LD="${LD-ld} -melf64bmip"
522 ;;
523 esac
524 else
525 case `/usr/bin/file conftest.$ac_objext` in
526 *32-bit*)
527 LD="${LD-ld} -32"
528 ;;
529 *N32*)
530 LD="${LD-ld} -n32"
531 ;;
532 *64-bit*)
533 LD="${LD-ld} -64"
534 ;;
535 esac
536 fi
1247 if test "$lt_cv_prog_gnu_ld" = yes; then
1248 case `/usr/bin/file conftest.$ac_objext` in
1249 *32-bit*)
1250 LD="${LD-ld} -melf32bsmip"
1251 ;;
1252 *N32*)
1253 LD="${LD-ld} -melf32bmipn32"
1254 ;;
1255 *64-bit*)
1256 LD="${LD-ld} -melf64bmip"
1257 ;;
1258 esac
1259 else
1260 case `/usr/bin/file conftest.$ac_objext` in
1261 *32-bit*)
1262 LD="${LD-ld} -32"
1263 ;;
1264 *N32*)
1265 LD="${LD-ld} -n32"
1266 ;;
1267 *64-bit*)
1268 LD="${LD-ld} -64"
1269 ;;
1270 esac
1271 fi
5371272 fi
5381273 rm -rf conftest*
5391274 ;;
5401275
5411276 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
542 s390*-*linux*|sparc*-*linux*)
1277 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
5431278 # Find out which ABI we are using.
5441279 echo 'int i;' > conftest.$ac_ext
5451280 if AC_TRY_EVAL(ac_compile); then
5461281 case `/usr/bin/file conftest.o` in
547 *32-bit*)
548 case $host in
549 x86_64-*kfreebsd*-gnu)
550 LD="${LD-ld} -m elf_i386_fbsd"
551 ;;
552 x86_64-*linux*)
553 LD="${LD-ld} -m elf_i386"
554 ;;
555 ppc64-*linux*|powerpc64-*linux*)
556 LD="${LD-ld} -m elf32ppclinux"
557 ;;
558 s390x-*linux*)
559 LD="${LD-ld} -m elf_s390"
560 ;;
561 sparc64-*linux*)
562 LD="${LD-ld} -m elf32_sparc"
563 ;;
564 esac
565 ;;
566 *64-bit*)
567 libsuff=64
568 case $host in
569 x86_64-*kfreebsd*-gnu)
570 LD="${LD-ld} -m elf_x86_64_fbsd"
571 ;;
572 x86_64-*linux*)
573 LD="${LD-ld} -m elf_x86_64"
574 ;;
575 ppc*-*linux*|powerpc*-*linux*)
576 LD="${LD-ld} -m elf64ppc"
577 ;;
578 s390*-*linux*)
579 LD="${LD-ld} -m elf64_s390"
580 ;;
581 sparc*-*linux*)
582 LD="${LD-ld} -m elf64_sparc"
583 ;;
584 esac
585 ;;
1282 *32-bit*)
1283 case $host in
1284 x86_64-*kfreebsd*-gnu)
1285 LD="${LD-ld} -m elf_i386_fbsd"
1286 ;;
1287 x86_64-*linux*)
1288 LD="${LD-ld} -m elf_i386"
1289 ;;
1290 ppc64-*linux*|powerpc64-*linux*)
1291 LD="${LD-ld} -m elf32ppclinux"
1292 ;;
1293 s390x-*linux*)
1294 LD="${LD-ld} -m elf_s390"
1295 ;;
1296 sparc64-*linux*)
1297 LD="${LD-ld} -m elf32_sparc"
1298 ;;
1299 esac
1300 ;;
1301 *64-bit*)
1302 case $host in
1303 x86_64-*kfreebsd*-gnu)
1304 LD="${LD-ld} -m elf_x86_64_fbsd"
1305 ;;
1306 x86_64-*linux*)
1307 LD="${LD-ld} -m elf_x86_64"
1308 ;;
1309 ppc*-*linux*|powerpc*-*linux*)
1310 LD="${LD-ld} -m elf64ppc"
1311 ;;
1312 s390*-*linux*|s390*-*tpf*)
1313 LD="${LD-ld} -m elf64_s390"
1314 ;;
1315 sparc*-*linux*)
1316 LD="${LD-ld} -m elf64_sparc"
1317 ;;
1318 esac
1319 ;;
5861320 esac
5871321 fi
5881322 rm -rf conftest*
5941328 CFLAGS="$CFLAGS -belf"
5951329 AC_CACHE_CHECK([whether the C compiler needs -belf], lt_cv_cc_needs_belf,
5961330 [AC_LANG_PUSH(C)
597 AC_TRY_LINK([],[],[lt_cv_cc_needs_belf=yes],[lt_cv_cc_needs_belf=no])
1331 AC_LINK_IFELSE([AC_LANG_PROGRAM([[]],[[]])],[lt_cv_cc_needs_belf=yes],[lt_cv_cc_needs_belf=no])
5981332 AC_LANG_POP])
5991333 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6001334 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6091343 *64-bit*)
6101344 case $lt_cv_prog_gnu_ld in
6111345 yes*) LD="${LD-ld} -m elf64_sparc" ;;
612 *) LD="${LD-ld} -64" ;;
1346 *)
1347 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
1348 LD="${LD-ld} -64"
1349 fi
1350 ;;
6131351 esac
6141352 ;;
6151353 esac
6161354 fi
6171355 rm -rf conftest*
6181356 ;;
619
620 AC_PROVIDE_IFELSE([AC_LIBTOOL_WIN32_DLL],
621 [*-*-cygwin* | *-*-mingw* | *-*-pw32*)
622 AC_CHECK_TOOL(DLLTOOL, dlltool, false)
623 AC_CHECK_TOOL(AS, as, false)
624 AC_CHECK_TOOL(OBJDUMP, objdump, false)
625 ;;
626 ])
6271357 esac
6281358
6291359 need_locks="$enable_libtool_lock"
630
631 ])# _LT_AC_LOCK
632
633
634 # AC_LIBTOOL_COMPILER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS,
1360 ])# _LT_ENABLE_LOCK
1361
1362
1363 # _LT_CMD_OLD_ARCHIVE
1364 # -------------------
1365 m4_defun([_LT_CMD_OLD_ARCHIVE],
1366 [AC_CHECK_TOOL(AR, ar, false)
1367 test -z "$AR" && AR=ar
1368 test -z "$AR_FLAGS" && AR_FLAGS=cru
1369 _LT_DECL([], [AR], [1], [The archiver])
1370 _LT_DECL([], [AR_FLAGS], [1])
1371
1372 AC_CHECK_TOOL(STRIP, strip, :)
1373 test -z "$STRIP" && STRIP=:
1374 _LT_DECL([], [STRIP], [1], [A symbol stripping program])
1375
1376 AC_CHECK_TOOL(RANLIB, ranlib, :)
1377 test -z "$RANLIB" && RANLIB=:
1378 _LT_DECL([], [RANLIB], [1],
1379 [Commands used to install an old-style archive])
1380
1381 # Determine commands to create old-style static archives.
1382 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
1383 old_postinstall_cmds='chmod 644 $oldlib'
1384 old_postuninstall_cmds=
1385
1386 if test -n "$RANLIB"; then
1387 case $host_os in
1388 openbsd*)
1389 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
1390 ;;
1391 *)
1392 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
1393 ;;
1394 esac
1395 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
1396 fi
1397 _LT_DECL([], [old_postinstall_cmds], [2])
1398 _LT_DECL([], [old_postuninstall_cmds], [2])
1399 _LT_TAGDECL([], [old_archive_cmds], [2],
1400 [Commands used to build an old-style archive])
1401 ])# _LT_CMD_OLD_ARCHIVE
1402
1403
1404 # _LT_COMPILER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS,
6351405 # [OUTPUT-FILE], [ACTION-SUCCESS], [ACTION-FAILURE])
6361406 # ----------------------------------------------------------------
6371407 # Check whether the given compiler option works
638 AC_DEFUN([AC_LIBTOOL_COMPILER_OPTION],
639 [AC_REQUIRE([LT_AC_PROG_SED])
1408 AC_DEFUN([_LT_COMPILER_OPTION],
1409 [m4_require([_LT_FILEUTILS_DEFAULTS])dnl
1410 m4_require([_LT_DECL_SED])dnl
6401411 AC_CACHE_CHECK([$1], [$2],
6411412 [$2=no
642 ifelse([$4], , [ac_outfile=conftest.$ac_objext], [ac_outfile=$4])
1413 m4_if([$4], , [ac_outfile=conftest.$ac_objext], [ac_outfile=$4])
6431414 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
6441415 lt_compiler_flag="$3"
6451416 # Insert the option either (1) after the last *FLAGS variable, or
6591430 if (exit $ac_status) && test -s "$ac_outfile"; then
6601431 # The compiler can only warn and ignore the option if not recognized
6611432 # So say no if there are warnings other than the usual output.
662 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
1433 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
6631434 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
6641435 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
6651436 $2=yes
6661437 fi
6671438 fi
668 $rm conftest*
1439 $RM conftest*
6691440 ])
6701441
6711442 if test x"[$]$2" = xyes; then
672 ifelse([$5], , :, [$5])
1443 m4_if([$5], , :, [$5])
6731444 else
674 ifelse([$6], , :, [$6])
1445 m4_if([$6], , :, [$6])
6751446 fi
676 ])# AC_LIBTOOL_COMPILER_OPTION
677
678
679 # AC_LIBTOOL_LINKER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS,
680 # [ACTION-SUCCESS], [ACTION-FAILURE])
681 # ------------------------------------------------------------
682 # Check whether the given compiler option works
683 AC_DEFUN([AC_LIBTOOL_LINKER_OPTION],
684 [AC_REQUIRE([LT_AC_PROG_SED])dnl
1447 ])# _LT_COMPILER_OPTION
1448
1449 # Old name:
1450 AU_ALIAS([AC_LIBTOOL_COMPILER_OPTION], [_LT_COMPILER_OPTION])
1451 dnl aclocal-1.4 backwards compatibility:
1452 dnl AC_DEFUN([AC_LIBTOOL_COMPILER_OPTION], [])
1453
1454
1455 # _LT_LINKER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS,
1456 # [ACTION-SUCCESS], [ACTION-FAILURE])
1457 # ----------------------------------------------------
1458 # Check whether the given linker option works
1459 AC_DEFUN([_LT_LINKER_OPTION],
1460 [m4_require([_LT_FILEUTILS_DEFAULTS])dnl
1461 m4_require([_LT_DECL_SED])dnl
6851462 AC_CACHE_CHECK([$1], [$2],
6861463 [$2=no
6871464 save_LDFLAGS="$LDFLAGS"
6931470 if test -s conftest.err; then
6941471 # Append any errors to the config.log.
6951472 cat conftest.err 1>&AS_MESSAGE_LOG_FD
696 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
1473 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
6971474 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
6981475 if diff conftest.exp conftest.er2 >/dev/null; then
6991476 $2=yes
7021479 $2=yes
7031480 fi
7041481 fi
705 $rm conftest*
1482 $RM -r conftest*
7061483 LDFLAGS="$save_LDFLAGS"
7071484 ])
7081485
7091486 if test x"[$]$2" = xyes; then
710 ifelse([$4], , :, [$4])
1487 m4_if([$4], , :, [$4])
7111488 else
712 ifelse([$5], , :, [$5])
1489 m4_if([$5], , :, [$5])
7131490 fi
714 ])# AC_LIBTOOL_LINKER_OPTION
715
716
717 # AC_LIBTOOL_SYS_MAX_CMD_LEN
718 # --------------------------
719 AC_DEFUN([AC_LIBTOOL_SYS_MAX_CMD_LEN],
720 [# find the maximum length of command line arguments
1491 ])# _LT_LINKER_OPTION
1492
1493 # Old name:
1494 AU_ALIAS([AC_LIBTOOL_LINKER_OPTION], [_LT_LINKER_OPTION])
1495 dnl aclocal-1.4 backwards compatibility:
1496 dnl AC_DEFUN([AC_LIBTOOL_LINKER_OPTION], [])
1497
1498
1499 # LT_CMD_MAX_LEN
1500 #---------------
1501 AC_DEFUN([LT_CMD_MAX_LEN],
1502 [AC_REQUIRE([AC_CANONICAL_HOST])dnl
1503 # find the maximum length of command line arguments
7211504 AC_MSG_CHECKING([the maximum length of command line arguments])
7221505 AC_CACHE_VAL([lt_cv_sys_max_cmd_len], [dnl
7231506 i=0
7391522 lt_cv_sys_max_cmd_len=-1;
7401523 ;;
7411524
742 cygwin* | mingw*)
1525 cygwin* | mingw* | cegcc*)
7431526 # On Win9x/ME, this test blows up -- it succeeds, but takes
7441527 # about 5 minutes as the teststring grows exponentially.
7451528 # Worse, since 9x/ME are not pre-emptively multitasking,
7941577 sysv5* | sco5v6* | sysv4.2uw2*)
7951578 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
7961579 if test -n "$kargmax"; then
797 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[[ ]]//'`
1580 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[[ ]]//'`
7981581 else
7991582 lt_cv_sys_max_cmd_len=32768
8001583 fi
8051588 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
8061589 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
8071590 else
1591 # Make teststring a little bigger before we do anything with it.
1592 # a 1K string should be a reasonable start.
1593 for i in 1 2 3 4 5 6 7 8 ; do
1594 teststring=$teststring$teststring
1595 done
8081596 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
809 while (test "X"`$SHELL [$]0 --fallback-echo "X$teststring" 2>/dev/null` \
810 = "XX$teststring") >/dev/null 2>&1 &&
811 new_result=`expr "X$teststring" : ".*" 2>&1` &&
812 lt_cv_sys_max_cmd_len=$new_result &&
1597 # If test is not a shell built-in, we'll probably end up computing a
1598 # maximum length that is only half of the actual maximum length, but
1599 # we can't tell.
1600 while { test "X"`$SHELL [$]0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
1601 = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
8131602 test $i != 17 # 1/2 MB should be enough
8141603 do
8151604 i=`expr $i + 1`
8161605 teststring=$teststring$teststring
8171606 done
1607 # Only check the string length outside the loop.
1608 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
8181609 teststring=
819 # Add a significant safety factor because C++ compilers can tack on massive
820 # amounts of additional arguments before passing them to the linker.
821 # It appears as though 1/2 is a usable value.
1610 # Add a significant safety factor because C++ compilers can tack on
1611 # massive amounts of additional arguments before passing them to the
1612 # linker. It appears as though 1/2 is a usable value.
8221613 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
8231614 fi
8241615 ;;
8291620 else
8301621 AC_MSG_RESULT(none)
8311622 fi
832 ])# AC_LIBTOOL_SYS_MAX_CMD_LEN
833
834
835 # _LT_AC_CHECK_DLFCN
836 # ------------------
837 AC_DEFUN([_LT_AC_CHECK_DLFCN],
838 [AC_CHECK_HEADERS(dlfcn.h)dnl
839 ])# _LT_AC_CHECK_DLFCN
840
841
842 # _LT_AC_TRY_DLOPEN_SELF (ACTION-IF-TRUE, ACTION-IF-TRUE-W-USCORE,
843 # ACTION-IF-FALSE, ACTION-IF-CROSS-COMPILING)
844 # ---------------------------------------------------------------------
845 AC_DEFUN([_LT_AC_TRY_DLOPEN_SELF],
846 [AC_REQUIRE([_LT_AC_CHECK_DLFCN])dnl
1623 max_cmd_len=$lt_cv_sys_max_cmd_len
1624 _LT_DECL([], [max_cmd_len], [0],
1625 [What is the maximum length of a command?])
1626 ])# LT_CMD_MAX_LEN
1627
1628 # Old name:
1629 AU_ALIAS([AC_LIBTOOL_SYS_MAX_CMD_LEN], [LT_CMD_MAX_LEN])
1630 dnl aclocal-1.4 backwards compatibility:
1631 dnl AC_DEFUN([AC_LIBTOOL_SYS_MAX_CMD_LEN], [])
1632
1633
1634 # _LT_HEADER_DLFCN
1635 # ----------------
1636 m4_defun([_LT_HEADER_DLFCN],
1637 [AC_CHECK_HEADERS([dlfcn.h], [], [], [AC_INCLUDES_DEFAULT])dnl
1638 ])# _LT_HEADER_DLFCN
1639
1640
1641 # _LT_TRY_DLOPEN_SELF (ACTION-IF-TRUE, ACTION-IF-TRUE-W-USCORE,
1642 # ACTION-IF-FALSE, ACTION-IF-CROSS-COMPILING)
1643 # ----------------------------------------------------------------
1644 m4_defun([_LT_TRY_DLOPEN_SELF],
1645 [m4_require([_LT_HEADER_DLFCN])dnl
8471646 if test "$cross_compiling" = yes; then :
8481647 [$4]
8491648 else
8501649 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
8511650 lt_status=$lt_dlunknown
852 cat > conftest.$ac_ext <<EOF
1651 cat > conftest.$ac_ext <<_LT_EOF
8531652 [#line __oline__ "configure"
8541653 #include "confdefs.h"
8551654
8911690 # endif
8921691 #endif
8931692
894 #ifdef __cplusplus
895 extern "C" void exit (int);
896 #endif
897
8981693 void fnord() { int i=42;}
8991694 int main ()
9001695 {
9101705 else
9111706 puts (dlerror ());
9121707
913 exit (status);
1708 return status;
9141709 }]
915 EOF
1710 _LT_EOF
9161711 if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext} 2>/dev/null; then
9171712 (./conftest; exit; ) >&AS_MESSAGE_LOG_FD 2>/dev/null
9181713 lt_status=$?
9271722 fi
9281723 fi
9291724 rm -fr conftest*
930 ])# _LT_AC_TRY_DLOPEN_SELF
931
932
933 # AC_LIBTOOL_DLOPEN_SELF
934 # ----------------------
935 AC_DEFUN([AC_LIBTOOL_DLOPEN_SELF],
936 [AC_REQUIRE([_LT_AC_CHECK_DLFCN])dnl
1725 ])# _LT_TRY_DLOPEN_SELF
1726
1727
1728 # LT_SYS_DLOPEN_SELF
1729 # ------------------
1730 AC_DEFUN([LT_SYS_DLOPEN_SELF],
1731 [m4_require([_LT_HEADER_DLFCN])dnl
9371732 if test "x$enable_dlopen" != xyes; then
9381733 enable_dlopen=unknown
9391734 enable_dlopen_self=unknown
9491744 lt_cv_dlopen_self=yes
9501745 ;;
9511746
952 mingw* | pw32*)
1747 mingw* | pw32* | cegcc*)
9531748 lt_cv_dlopen="LoadLibrary"
9541749 lt_cv_dlopen_libs=
955 ;;
1750 ;;
9561751
9571752 cygwin*)
9581753 lt_cv_dlopen="dlopen"
9591754 lt_cv_dlopen_libs=
960 ;;
1755 ;;
9611756
9621757 darwin*)
9631758 # if libdl is installed we need to link against it
9671762 lt_cv_dlopen_libs=
9681763 lt_cv_dlopen_self=yes
9691764 ])
970 ;;
1765 ;;
9711766
9721767 *)
9731768 AC_CHECK_FUNC([shl_load],
9741769 [lt_cv_dlopen="shl_load"],
9751770 [AC_CHECK_LIB([dld], [shl_load],
976 [lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"],
1771 [lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"],
9771772 [AC_CHECK_FUNC([dlopen],
9781773 [lt_cv_dlopen="dlopen"],
9791774 [AC_CHECK_LIB([dl], [dlopen],
9811776 [AC_CHECK_LIB([svld], [dlopen],
9821777 [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"],
9831778 [AC_CHECK_LIB([dld], [dld_link],
984 [lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"])
1779 [lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"])
9851780 ])
9861781 ])
9871782 ])
10091804
10101805 AC_CACHE_CHECK([whether a program can dlopen itself],
10111806 lt_cv_dlopen_self, [dnl
1012 _LT_AC_TRY_DLOPEN_SELF(
1807 _LT_TRY_DLOPEN_SELF(
10131808 lt_cv_dlopen_self=yes, lt_cv_dlopen_self=yes,
10141809 lt_cv_dlopen_self=no, lt_cv_dlopen_self=cross)
10151810 ])
10171812 if test "x$lt_cv_dlopen_self" = xyes; then
10181813 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10191814 AC_CACHE_CHECK([whether a statically linked program can dlopen itself],
1020 lt_cv_dlopen_self_static, [dnl
1021 _LT_AC_TRY_DLOPEN_SELF(
1815 lt_cv_dlopen_self_static, [dnl
1816 _LT_TRY_DLOPEN_SELF(
10221817 lt_cv_dlopen_self_static=yes, lt_cv_dlopen_self_static=yes,
10231818 lt_cv_dlopen_self_static=no, lt_cv_dlopen_self_static=cross)
10241819 ])
10401835 *) enable_dlopen_self_static=unknown ;;
10411836 esac
10421837 fi
1043 ])# AC_LIBTOOL_DLOPEN_SELF
1044
1045
1046 # AC_LIBTOOL_PROG_CC_C_O([TAGNAME])
1047 # ---------------------------------
1048 # Check to see if options -c and -o are simultaneously supported by compiler
1049 AC_DEFUN([AC_LIBTOOL_PROG_CC_C_O],
1050 [AC_REQUIRE([LT_AC_PROG_SED])dnl
1051 AC_REQUIRE([_LT_AC_SYS_COMPILER])dnl
1838 _LT_DECL([dlopen_support], [enable_dlopen], [0],
1839 [Whether dlopen is supported])
1840 _LT_DECL([dlopen_self], [enable_dlopen_self], [0],
1841 [Whether dlopen of programs is supported])
1842 _LT_DECL([dlopen_self_static], [enable_dlopen_self_static], [0],
1843 [Whether dlopen of statically linked programs is supported])
1844 ])# LT_SYS_DLOPEN_SELF
1845
1846 # Old name:
1847 AU_ALIAS([AC_LIBTOOL_DLOPEN_SELF], [LT_SYS_DLOPEN_SELF])
1848 dnl aclocal-1.4 backwards compatibility:
1849 dnl AC_DEFUN([AC_LIBTOOL_DLOPEN_SELF], [])
1850
1851
1852 # _LT_COMPILER_C_O([TAGNAME])
1853 # ---------------------------
1854 # Check to see if options -c and -o are simultaneously supported by compiler.
1855 # This macro does not hard code the compiler like AC_PROG_CC_C_O.
1856 m4_defun([_LT_COMPILER_C_O],
1857 [m4_require([_LT_DECL_SED])dnl
1858 m4_require([_LT_FILEUTILS_DEFAULTS])dnl
1859 m4_require([_LT_TAG_COMPILER])dnl
10521860 AC_CACHE_CHECK([if $compiler supports -c -o file.$ac_objext],
1053 [_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)],
1054 [_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)=no
1055 $rm -r conftest 2>/dev/null
1861 [_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)],
1862 [_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)=no
1863 $RM -r conftest 2>/dev/null
10561864 mkdir conftest
10571865 cd conftest
10581866 mkdir out
10761884 then
10771885 # The compiler can only warn and ignore the option if not recognized
10781886 # So say no if there are warnings
1079 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
1887 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
10801888 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10811889 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
1082 _LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes
1890 _LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes
10831891 fi
10841892 fi
10851893 chmod u+w . 2>&AS_MESSAGE_LOG_FD
1086 $rm conftest*
1894 $RM conftest*
10871895 # SGI C++ compiler will create directory out/ii_files/ for
10881896 # template instantiation
1089 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
1090 $rm out/* && rmdir out
1897 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
1898 $RM out/* && rmdir out
10911899 cd ..
1092 rmdir conftest
1093 $rm conftest*
1900 $RM -r conftest
1901 $RM conftest*
10941902 ])
1095 ])# AC_LIBTOOL_PROG_CC_C_O
1096
1097
1098 # AC_LIBTOOL_SYS_HARD_LINK_LOCKS([TAGNAME])
1099 # -----------------------------------------
1903 _LT_TAGDECL([compiler_c_o], [lt_cv_prog_compiler_c_o], [1],
1904 [Does compiler simultaneously support -c and -o options?])
1905 ])# _LT_COMPILER_C_O
1906
1907
1908 # _LT_COMPILER_FILE_LOCKS([TAGNAME])
1909 # ----------------------------------
11001910 # Check to see if we can do hard links to lock some files if needed
1101 AC_DEFUN([AC_LIBTOOL_SYS_HARD_LINK_LOCKS],
1102 [AC_REQUIRE([_LT_AC_LOCK])dnl
1911 m4_defun([_LT_COMPILER_FILE_LOCKS],
1912 [m4_require([_LT_ENABLE_LOCK])dnl
1913 m4_require([_LT_FILEUTILS_DEFAULTS])dnl
1914 _LT_COMPILER_C_O([$1])
11031915
11041916 hard_links="nottested"
1105 if test "$_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)" = no && test "$need_locks" != no; then
1917 if test "$_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)" = no && test "$need_locks" != no; then
11061918 # do not overwrite the value of need_locks provided by the user
11071919 AC_MSG_CHECKING([if we can lock with hard links])
11081920 hard_links=yes
1109 $rm conftest*
1921 $RM conftest*
11101922 ln conftest.a conftest.b 2>/dev/null && hard_links=no
11111923 touch conftest.a
11121924 ln conftest.a conftest.b 2>&5 || hard_links=no
11191931 else
11201932 need_locks=no
11211933 fi
1122 ])# AC_LIBTOOL_SYS_HARD_LINK_LOCKS
1123
1124
1125 # AC_LIBTOOL_OBJDIR
1126 # -----------------
1127 AC_DEFUN([AC_LIBTOOL_OBJDIR],
1934 _LT_DECL([], [need_locks], [1], [Must we lock files when doing compilation?])
1935 ])# _LT_COMPILER_FILE_LOCKS
1936
1937
1938 # _LT_CHECK_OBJDIR
1939 # ----------------
1940 m4_defun([_LT_CHECK_OBJDIR],
11281941 [AC_CACHE_CHECK([for objdir], [lt_cv_objdir],
11291942 [rm -f .libs 2>/dev/null
11301943 mkdir .libs 2>/dev/null
11361949 fi
11371950 rmdir .libs 2>/dev/null])
11381951 objdir=$lt_cv_objdir
1139 ])# AC_LIBTOOL_OBJDIR
1140
1141
1142 # AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH([TAGNAME])
1143 # ----------------------------------------------
1952 _LT_DECL([], [objdir], [0],
1953 [The name of the directory that contains temporary libtool files])dnl
1954 m4_pattern_allow([LT_OBJDIR])dnl
1955 AC_DEFINE_UNQUOTED(LT_OBJDIR, "$lt_cv_objdir/",
1956 [Define to the sub-directory in which libtool stores uninstalled libraries.])
1957 ])# _LT_CHECK_OBJDIR
1958
1959
1960 # _LT_LINKER_HARDCODE_LIBPATH([TAGNAME])
1961 # --------------------------------------
11441962 # Check hardcoding attributes.
1145 AC_DEFUN([AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH],
1963 m4_defun([_LT_LINKER_HARDCODE_LIBPATH],
11461964 [AC_MSG_CHECKING([how to hardcode library paths into programs])
1147 _LT_AC_TAGVAR(hardcode_action, $1)=
1148 if test -n "$_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)" || \
1149 test -n "$_LT_AC_TAGVAR(runpath_var, $1)" || \
1150 test "X$_LT_AC_TAGVAR(hardcode_automatic, $1)" = "Xyes" ; then
1151
1152 # We can hardcode non-existant directories.
1153 if test "$_LT_AC_TAGVAR(hardcode_direct, $1)" != no &&
1965 _LT_TAGVAR(hardcode_action, $1)=
1966 if test -n "$_LT_TAGVAR(hardcode_libdir_flag_spec, $1)" ||
1967 test -n "$_LT_TAGVAR(runpath_var, $1)" ||
1968 test "X$_LT_TAGVAR(hardcode_automatic, $1)" = "Xyes" ; then
1969
1970 # We can hardcode non-existent directories.
1971 if test "$_LT_TAGVAR(hardcode_direct, $1)" != no &&
11541972 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11551973 # have to relink, otherwise we might link with an installed library
11561974 # when we should be linking with a yet-to-be-installed one
1157 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)" != no &&
1158 test "$_LT_AC_TAGVAR(hardcode_minus_L, $1)" != no; then
1975 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, $1)" != no &&
1976 test "$_LT_TAGVAR(hardcode_minus_L, $1)" != no; then
11591977 # Linking always hardcodes the temporary library directory.
1160 _LT_AC_TAGVAR(hardcode_action, $1)=relink
1978 _LT_TAGVAR(hardcode_action, $1)=relink
11611979 else
11621980 # We can link without hardcoding, and we can hardcode nonexisting dirs.
1163 _LT_AC_TAGVAR(hardcode_action, $1)=immediate
1981 _LT_TAGVAR(hardcode_action, $1)=immediate
11641982 fi
11651983 else
11661984 # We cannot hardcode anything, or else we can only hardcode existing
11671985 # directories.
1168 _LT_AC_TAGVAR(hardcode_action, $1)=unsupported
1986 _LT_TAGVAR(hardcode_action, $1)=unsupported
11691987 fi
1170 AC_MSG_RESULT([$_LT_AC_TAGVAR(hardcode_action, $1)])
1171
1172 if test "$_LT_AC_TAGVAR(hardcode_action, $1)" = relink; then
1988 AC_MSG_RESULT([$_LT_TAGVAR(hardcode_action, $1)])
1989
1990 if test "$_LT_TAGVAR(hardcode_action, $1)" = relink ||
1991 test "$_LT_TAGVAR(inherit_rpath, $1)" = yes; then
11731992 # Fast installation is not supported
11741993 enable_fast_install=no
11751994 elif test "$shlibpath_overrides_runpath" = yes ||
11771996 # Fast installation is not necessary
11781997 enable_fast_install=needless
11791998 fi
1180 ])# AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH
1181
1182
1183 # AC_LIBTOOL_SYS_LIB_STRIP
1184 # ------------------------
1185 AC_DEFUN([AC_LIBTOOL_SYS_LIB_STRIP],
1186 [striplib=
1999 _LT_TAGDECL([], [hardcode_action], [0],
2000 [How to hardcode a shared library path into an executable])
2001 ])# _LT_LINKER_HARDCODE_LIBPATH
2002
2003
2004 # _LT_CMD_STRIPLIB
2005 # ----------------
2006 m4_defun([_LT_CMD_STRIPLIB],
2007 [m4_require([_LT_DECL_EGREP])
2008 striplib=
11872009 old_striplib=
11882010 AC_MSG_CHECKING([whether stripping libraries is possible])
1189 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
2011 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11902012 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11912013 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11922014 AC_MSG_RESULT([yes])
11932015 else
11942016 # FIXME - insert some real tests, host_os isn't really good enough
11952017 case $host_os in
1196 darwin*)
1197 if test -n "$STRIP" ; then
1198 striplib="$STRIP -x"
1199 old_striplib="$STRIP -S"
1200 AC_MSG_RESULT([yes])
1201 else
1202 AC_MSG_RESULT([no])
1203 fi
1204 ;;
1205 *)
1206 AC_MSG_RESULT([no])
2018 darwin*)
2019 if test -n "$STRIP" ; then
2020 striplib="$STRIP -x"
2021 old_striplib="$STRIP -S"
2022 AC_MSG_RESULT([yes])
2023 else
2024 AC_MSG_RESULT([no])
2025 fi
2026 ;;
2027 *)
2028 AC_MSG_RESULT([no])
12072029 ;;
12082030 esac
12092031 fi
1210 ])# AC_LIBTOOL_SYS_LIB_STRIP
1211
1212
1213 # AC_LIBTOOL_SYS_DYNAMIC_LINKER
2032 _LT_DECL([], [old_striplib], [1], [Commands to strip libraries])
2033 _LT_DECL([], [striplib], [1])
2034 ])# _LT_CMD_STRIPLIB
2035
2036
2037 # _LT_SYS_DYNAMIC_LINKER([TAG])
12142038 # -----------------------------
12152039 # PORTME Fill in your ld.so characteristics
1216 AC_DEFUN([AC_LIBTOOL_SYS_DYNAMIC_LINKER],
1217 [AC_REQUIRE([LT_AC_PROG_SED])dnl
2040 m4_defun([_LT_SYS_DYNAMIC_LINKER],
2041 [AC_REQUIRE([AC_CANONICAL_HOST])dnl
2042 m4_require([_LT_DECL_EGREP])dnl
2043 m4_require([_LT_FILEUTILS_DEFAULTS])dnl
2044 m4_require([_LT_DECL_OBJDUMP])dnl
2045 m4_require([_LT_DECL_SED])dnl
12182046 AC_MSG_CHECKING([dynamic linker characteristics])
1219 library_names_spec=
1220 libname_spec='lib$name'
1221 soname_spec=
1222 shrext_cmds=".so"
1223 postinstall_cmds=
1224 postuninstall_cmds=
1225 finish_cmds=
1226 finish_eval=
1227 shlibpath_var=
1228 shlibpath_overrides_runpath=unknown
1229 version_type=none
1230 dynamic_linker="$host_os ld.so"
1231 sys_lib_dlsearch_path_spec="/lib /usr/lib"
1232 m4_if($1,[],[
2047 m4_if([$1],
2048 [], [
12332049 if test "$GCC" = yes; then
12342050 case $host_os in
12352051 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
12362052 *) lt_awk_arg="/^libraries:/" ;;
12372053 esac
12382054 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
1239 if echo "$lt_search_path_spec" | grep ';' >/dev/null ; then
2055 if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
12402056 # if the path contains ";" then we assume it to be the separator
12412057 # otherwise default to the standard path separator (i.e. ":") - it is
12422058 # assumed that no part of a normal pathname contains ";" but that should
12432059 # okay in the real world where ";" in dirpaths is itself problematic.
1244 lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e 's/;/ /g'`
2060 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
12452061 else
1246 lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
2062 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12472063 fi
12482064 # Ok, now we have the path, separated by spaces, we can step through it
12492065 # and add multilib dir if necessary.
12572073 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
12582074 fi
12592075 done
1260 lt_search_path_spec=`echo $lt_tmp_lt_search_path_spec | awk '
2076 lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
12612077 BEGIN {RS=" "; FS="/|\n";} {
12622078 lt_foo="";
12632079 lt_count=0;
12772093 if (lt_foo != "") { lt_freq[[lt_foo]]++; }
12782094 if (lt_freq[[lt_foo]] == 1) { print lt_foo; }
12792095 }'`
1280 sys_lib_search_path_spec=`echo $lt_search_path_spec`
2096 sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
12812097 else
12822098 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
12832099 fi])
2100 library_names_spec=
2101 libname_spec='lib$name'
2102 soname_spec=
2103 shrext_cmds=".so"
2104 postinstall_cmds=
2105 postuninstall_cmds=
2106 finish_cmds=
2107 finish_eval=
2108 shlibpath_var=
2109 shlibpath_overrides_runpath=unknown
2110 version_type=none
2111 dynamic_linker="$host_os ld.so"
2112 sys_lib_dlsearch_path_spec="/lib /usr/lib"
12842113 need_lib_prefix=unknown
12852114 hardcode_into_libs=no
12862115
12982127 soname_spec='${libname}${release}${shared_ext}$major'
12992128 ;;
13002129
1301 aix4* | aix5*)
2130 aix[[4-9]]*)
13022131 version_type=linux
13032132 need_lib_prefix=no
13042133 need_version=no
13172146 aix4 | aix4.[[01]] | aix4.[[01]].*)
13182147 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
13192148 echo ' yes '
1320 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
2149 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
13212150 :
13222151 else
13232152 can_build_shared=no
13432172 ;;
13442173
13452174 amigaos*)
1346 library_names_spec='$libname.ixlibrary $libname.a'
1347 # Create ${libname}_ixlibrary.a entries in /sys/libs.
1348 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'
2175 case $host_cpu in
2176 powerpc)
2177 # Since July 2007 AmigaOS4 officially supports .so libraries.
2178 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
2179 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
2180 ;;
2181 m68k)
2182 library_names_spec='$libname.ixlibrary $libname.a'
2183 # Create ${libname}_ixlibrary.a entries in /sys/libs.
2184 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'
2185 ;;
2186 esac
13492187 ;;
13502188
13512189 beos*)
13682206 # libtool to hard-code these into programs
13692207 ;;
13702208
1371 cygwin* | mingw* | pw32*)
2209 cygwin* | mingw* | pw32* | cegcc*)
13722210 version_type=windows
13732211 shrext_cmds=".dll"
13742212 need_version=no
13752213 need_lib_prefix=no
13762214
13772215 case $GCC,$host_os in
1378 yes,cygwin* | yes,mingw* | yes,pw32*)
2216 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
13792217 library_names_spec='$libname.dll.a'
13802218 # DLL is installed to $(libdir)/../bin by postinstall_cmds
13812219 postinstall_cmds='base_file=`basename \${file}`~
1382 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
2220 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
13832221 dldir=$destdir/`dirname \$dlpath`~
13842222 test -d \$dldir || mkdir -p \$dldir~
13852223 $install_prog $dir/$dlname \$dldir/$dlname~
1386 chmod a+x \$dldir/$dlname'
2224 chmod a+x \$dldir/$dlname~
2225 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
2226 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
2227 fi'
13872228 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13882229 dlpath=$dir/\$dldll~
1389 $rm \$dlpath'
2230 $RM \$dlpath'
13902231 shlibpath_overrides_runpath=yes
13912232
13922233 case $host_os in
13952236 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
13962237 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
13972238 ;;
1398 mingw*)
2239 mingw* | cegcc*)
13992240 # MinGW DLLs use traditional 'lib' prefix
14002241 soname_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
1401 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
1402 if echo "$sys_lib_search_path_spec" | [grep ';[c-zC-Z]:/' >/dev/null]; then
2242 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
2243 if $ECHO "$sys_lib_search_path_spec" | [$GREP ';[c-zC-Z]:/' >/dev/null]; then
14032244 # It is most probably a Windows format PATH printed by
14042245 # mingw gcc, but we are running on Cygwin. Gcc prints its search
14052246 # path with ; separators, and with drive letters. We can handle the
14062247 # drive letters (cygwin fileutils understands them), so leave them,
14072248 # especially as we might pass files found there to a mingw objdump,
14082249 # which wouldn't understand a cygwinified path. Ahh.
1409 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
2250 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14102251 else
1411 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
2252 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14122253 fi
14132254 ;;
14142255 pw32*)
14322273 version_type=darwin
14332274 need_lib_prefix=no
14342275 need_version=no
1435 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
2276 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14362277 soname_spec='${libname}${release}${major}$shared_ext'
14372278 shlibpath_overrides_runpath=yes
14382279 shlibpath_var=DYLD_LIBRARY_PATH
14392280 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
1440 m4_if([$1], [],[
1441 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"])
2281 m4_if([$1], [],[
2282 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"])
14422283 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14432284 ;;
14442285
15312372 fi
15322373 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15332374 ;;
1534 hppa*64*)
1535 shrext_cmds='.sl'
1536 hardcode_into_libs=yes
1537 dynamic_linker="$host_os dld.sl"
1538 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
1539 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
1540 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
1541 soname_spec='${libname}${release}${shared_ext}$major'
1542 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
1543 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
1544 ;;
1545 *)
2375 hppa*64*)
2376 shrext_cmds='.sl'
2377 hardcode_into_libs=yes
2378 dynamic_linker="$host_os dld.sl"
2379 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
2380 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
2381 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
2382 soname_spec='${libname}${release}${shared_ext}$major'
2383 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
2384 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
2385 ;;
2386 *)
15462387 shrext_cmds='.sl'
15472388 dynamic_linker="$host_os dld.sl"
15482389 shlibpath_var=SHLIB_PATH
16192460 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16202461 shlibpath_var=LD_LIBRARY_PATH
16212462 shlibpath_overrides_runpath=no
2463 # Some binutils ld are patched to set DT_RUNPATH
2464 save_LDFLAGS=$LDFLAGS
2465 save_libdir=$libdir
2466 eval "libdir=/foo; wl=\"$_LT_TAGVAR(lt_prog_compiler_wl, $1)\"; \
2467 LDFLAGS=\"\$LDFLAGS $_LT_TAGVAR(hardcode_libdir_flag_spec, $1)\""
2468 AC_LINK_IFELSE([AC_LANG_PROGRAM([],[])],
2469 [AS_IF([ ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null],
2470 [shlibpath_overrides_runpath=yes])])
2471 LDFLAGS=$save_LDFLAGS
2472 libdir=$save_libdir
2473
16222474 # This implies no fast_install, which is unacceptable.
16232475 # Some rework will be needed to allow for fast_install
16242476 # before this can be enabled.
16252477 hardcode_into_libs=yes
1626 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
1627 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
2478
2479 # Add ABI-specific directories to the system library path.
2480 sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
16282481
16292482 # Append ld.so.conf contents to the search path
16302483 if test -f /etc/ld.so.conf; then
1631 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' ' '`
2484 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' ' '`
16322485 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
16332486 fi
16342487
16452498 version_type=sunos
16462499 need_lib_prefix=no
16472500 need_version=no
1648 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
2501 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
16492502 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16502503 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16512504 dynamic_linker='NetBSD (a.out) ld.so'
16662519 shlibpath_overrides_runpath=yes
16672520 ;;
16682521
1669 nto-qnx*)
1670 version_type=linux
2522 *nto* | *qnx*)
2523 version_type=qnx
16712524 need_lib_prefix=no
16722525 need_version=no
16732526 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16742527 soname_spec='${libname}${release}${shared_ext}$major'
16752528 shlibpath_var=LD_LIBRARY_PATH
1676 shlibpath_overrides_runpath=yes
2529 shlibpath_overrides_runpath=no
2530 hardcode_into_libs=yes
2531 dynamic_linker='ldqnx.so'
16772532 ;;
16782533
16792534 openbsd*)
16822537 need_lib_prefix=no
16832538 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
16842539 case $host_os in
1685 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
1686 *) need_version=no ;;
2540 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
2541 *) need_version=no ;;
16872542 esac
16882543 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16892544 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16902545 shlibpath_var=LD_LIBRARY_PATH
1691 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
2546 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16922547 case $host_os in
16932548 openbsd2.[[89]] | openbsd2.[[89]].*)
16942549 shlibpath_overrides_runpath=no
17602615 sni)
17612616 shlibpath_overrides_runpath=no
17622617 need_lib_prefix=no
1763 export_dynamic_flag_spec='${wl}-Blargedynsym'
17642618 runpath_var=LD_RUN_PATH
17652619 ;;
17662620 siemens)
17912645 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17922646 soname_spec='${libname}${release}${shared_ext}$major'
17932647 shlibpath_var=LD_LIBRARY_PATH
2648 shlibpath_overrides_runpath=yes
17942649 hardcode_into_libs=yes
17952650 if test "$with_gnu_ld" = yes; then
17962651 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
1797 shlibpath_overrides_runpath=no
17982652 else
17992653 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
1800 shlibpath_overrides_runpath=yes
18012654 case $host_os in
18022655 sco3.2v5*)
18032656 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
18072660 sys_lib_dlsearch_path_spec='/usr/lib'
18082661 ;;
18092662
2663 tpf*)
2664 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
2665 version_type=linux
2666 need_lib_prefix=no
2667 need_version=no
2668 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
2669 shlibpath_var=LD_LIBRARY_PATH
2670 shlibpath_overrides_runpath=no
2671 hardcode_into_libs=yes
2672 ;;
2673
18102674 uts4*)
18112675 version_type=linux
18122676 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18252689 if test "$GCC" = yes; then
18262690 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
18272691 fi
1828 ])# AC_LIBTOOL_SYS_DYNAMIC_LINKER
1829
1830
1831 # _LT_AC_TAGCONFIG
1832 # ----------------
1833 AC_DEFUN([_LT_AC_TAGCONFIG],
1834 [AC_REQUIRE([LT_AC_PROG_SED])dnl
1835 AC_ARG_WITH([tags],
1836 [AC_HELP_STRING([--with-tags@<:@=TAGS@:>@],
1837 [include additional configurations @<:@automatic@:>@])],
1838 [tagnames="$withval"])
1839
1840 if test -f "$ltmain" && test -n "$tagnames"; then
1841 if test ! -f "${ofile}"; then
1842 AC_MSG_WARN([output file `$ofile' does not exist])
1843 fi
1844
1845 if test -z "$LTCC"; then
1846 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
1847 if test -z "$LTCC"; then
1848 AC_MSG_WARN([output file `$ofile' does not look like a libtool script])
1849 else
1850 AC_MSG_WARN([using `LTCC=$LTCC', extracted from `$ofile'])
1851 fi
1852 fi
1853 if test -z "$LTCFLAGS"; then
1854 eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
1855 fi
1856
1857 # Extract list of available tagged configurations in $ofile.
1858 # Note that this assumes the entire list is on one line.
1859 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
1860
1861 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
1862 for tagname in $tagnames; do
1863 IFS="$lt_save_ifs"
1864 # Check whether tagname contains only valid characters
1865 case `$echo "X$tagname" | $Xsed -e 's:[[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]]::g'` in
1866 "") ;;
1867 *) AC_MSG_ERROR([invalid tag name: $tagname])
1868 ;;
1869 esac
1870
1871 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
1872 then
1873 AC_MSG_ERROR([tag name \"$tagname\" already exists])
1874 fi
1875
1876 # Update the list of available tags.
1877 if test -n "$tagname"; then
1878 echo appending configuration tag \"$tagname\" to $ofile
1879
1880 case $tagname in
1881 CXX)
1882 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
1883 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
1884 (test "X$CXX" != "Xg++"))) ; then
1885 AC_LIBTOOL_LANG_CXX_CONFIG
1886 else
1887 tagname=""
1888 fi
1889 ;;
1890
1891 F77)
1892 if test -n "$F77" && test "X$F77" != "Xno"; then
1893 AC_LIBTOOL_LANG_F77_CONFIG
1894 else
1895 tagname=""
1896 fi
1897 ;;
1898
1899 GCJ)
1900 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
1901 AC_LIBTOOL_LANG_GCJ_CONFIG
1902 else
1903 tagname=""
1904 fi
1905 ;;
1906
1907 RC)
1908 AC_LIBTOOL_LANG_RC_CONFIG
1909 ;;
1910
1911 *)
1912 AC_MSG_ERROR([Unsupported tag name: $tagname])
1913 ;;
1914 esac
1915
1916 # Append the new tag name to the list of available tags.
1917 if test -n "$tagname" ; then
1918 available_tags="$available_tags $tagname"
1919 fi
1920 fi
1921 done
1922 IFS="$lt_save_ifs"
1923
1924 # Now substitute the updated list of available tags.
1925 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
1926 mv "${ofile}T" "$ofile"
1927 chmod +x "$ofile"
1928 else
1929 rm -f "${ofile}T"
1930 AC_MSG_ERROR([unable to update list of available tagged configurations.])
1931 fi
2692
2693 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
2694 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
19322695 fi
1933 ])# _LT_AC_TAGCONFIG
1934
1935
1936 # AC_LIBTOOL_DLOPEN
1937 # -----------------
1938 # enable checks for dlopen support
1939 AC_DEFUN([AC_LIBTOOL_DLOPEN],
1940 [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])
1941 ])# AC_LIBTOOL_DLOPEN
1942
1943
1944 # AC_LIBTOOL_WIN32_DLL
1945 # --------------------
1946 # declare package support for building win32 DLLs
1947 AC_DEFUN([AC_LIBTOOL_WIN32_DLL],
1948 [AC_BEFORE([$0], [AC_LIBTOOL_SETUP])
1949 ])# AC_LIBTOOL_WIN32_DLL
1950
1951
1952 # AC_ENABLE_SHARED([DEFAULT])
1953 # ---------------------------
1954 # implement the --enable-shared flag
1955 # DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'.
1956 AC_DEFUN([AC_ENABLE_SHARED],
1957 [define([AC_ENABLE_SHARED_DEFAULT], ifelse($1, no, no, yes))dnl
1958 AC_ARG_ENABLE([shared],
1959 [AC_HELP_STRING([--enable-shared@<:@=PKGS@:>@],
1960 [build shared libraries @<:@default=]AC_ENABLE_SHARED_DEFAULT[@:>@])],
1961 [p=${PACKAGE-default}
1962 case $enableval in
1963 yes) enable_shared=yes ;;
1964 no) enable_shared=no ;;
1965 *)
1966 enable_shared=no
1967 # Look at the argument we got. We use all the common list separators.
1968 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
1969 for pkg in $enableval; do
1970 IFS="$lt_save_ifs"
1971 if test "X$pkg" = "X$p"; then
1972 enable_shared=yes
1973 fi
1974 done
1975 IFS="$lt_save_ifs"
1976 ;;
1977 esac],
1978 [enable_shared=]AC_ENABLE_SHARED_DEFAULT)
1979 ])# AC_ENABLE_SHARED
1980
1981
1982 # AC_DISABLE_SHARED
1983 # -----------------
1984 # set the default shared flag to --disable-shared
1985 AC_DEFUN([AC_DISABLE_SHARED],
1986 [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
1987 AC_ENABLE_SHARED(no)
1988 ])# AC_DISABLE_SHARED
1989
1990
1991 # AC_ENABLE_STATIC([DEFAULT])
1992 # ---------------------------
1993 # implement the --enable-static flag
1994 # DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'.
1995 AC_DEFUN([AC_ENABLE_STATIC],
1996 [define([AC_ENABLE_STATIC_DEFAULT], ifelse($1, no, no, yes))dnl
1997 AC_ARG_ENABLE([static],
1998 [AC_HELP_STRING([--enable-static@<:@=PKGS@:>@],
1999 [build static libraries @<:@default=]AC_ENABLE_STATIC_DEFAULT[@:>@])],
2000 [p=${PACKAGE-default}
2001 case $enableval in
2002 yes) enable_static=yes ;;
2003 no) enable_static=no ;;
2004 *)
2005 enable_static=no
2006 # Look at the argument we got. We use all the common list separators.
2007 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2008 for pkg in $enableval; do
2009 IFS="$lt_save_ifs"
2010 if test "X$pkg" = "X$p"; then
2011 enable_static=yes
2012 fi
2013 done
2014 IFS="$lt_save_ifs"
2015 ;;
2016 esac],
2017 [enable_static=]AC_ENABLE_STATIC_DEFAULT)
2018 ])# AC_ENABLE_STATIC
2019
2020
2021 # AC_DISABLE_STATIC
2022 # -----------------
2023 # set the default static flag to --disable-static
2024 AC_DEFUN([AC_DISABLE_STATIC],
2025 [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
2026 AC_ENABLE_STATIC(no)
2027 ])# AC_DISABLE_STATIC
2028
2029
2030 # AC_ENABLE_FAST_INSTALL([DEFAULT])
2031 # ---------------------------------
2032 # implement the --enable-fast-install flag
2033 # DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'.
2034 AC_DEFUN([AC_ENABLE_FAST_INSTALL],
2035 [define([AC_ENABLE_FAST_INSTALL_DEFAULT], ifelse($1, no, no, yes))dnl
2036 AC_ARG_ENABLE([fast-install],
2037 [AC_HELP_STRING([--enable-fast-install@<:@=PKGS@:>@],
2038 [optimize for fast installation @<:@default=]AC_ENABLE_FAST_INSTALL_DEFAULT[@:>@])],
2039 [p=${PACKAGE-default}
2040 case $enableval in
2041 yes) enable_fast_install=yes ;;
2042 no) enable_fast_install=no ;;
2043 *)
2044 enable_fast_install=no
2045 # Look at the argument we got. We use all the common list separators.
2046 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2047 for pkg in $enableval; do
2048 IFS="$lt_save_ifs"
2049 if test "X$pkg" = "X$p"; then
2050 enable_fast_install=yes
2051 fi
2052 done
2053 IFS="$lt_save_ifs"
2054 ;;
2055 esac],
2056 [enable_fast_install=]AC_ENABLE_FAST_INSTALL_DEFAULT)
2057 ])# AC_ENABLE_FAST_INSTALL
2058
2059
2060 # AC_DISABLE_FAST_INSTALL
2061 # -----------------------
2062 # set the default to --disable-fast-install
2063 AC_DEFUN([AC_DISABLE_FAST_INSTALL],
2064 [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
2065 AC_ENABLE_FAST_INSTALL(no)
2066 ])# AC_DISABLE_FAST_INSTALL
2067
2068
2069 # AC_LIBTOOL_PICMODE([MODE])
2696 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
2697 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
2698 fi
2699
2700 _LT_DECL([], [variables_saved_for_relink], [1],
2701 [Variables whose values should be saved in libtool wrapper scripts and
2702 restored at link time])
2703 _LT_DECL([], [need_lib_prefix], [0],
2704 [Do we need the "lib" prefix for modules?])
2705 _LT_DECL([], [need_version], [0], [Do we need a version for libraries?])
2706 _LT_DECL([], [version_type], [0], [Library versioning type])
2707 _LT_DECL([], [runpath_var], [0], [Shared library runtime path variable])
2708 _LT_DECL([], [shlibpath_var], [0],[Shared library path variable])
2709 _LT_DECL([], [shlibpath_overrides_runpath], [0],
2710 [Is shlibpath searched before the hard-coded library search path?])
2711 _LT_DECL([], [libname_spec], [1], [Format of library name prefix])
2712 _LT_DECL([], [library_names_spec], [1],
2713 [[List of archive names. First name is the real one, the rest are links.
2714 The last name is the one that the linker finds with -lNAME]])
2715 _LT_DECL([], [soname_spec], [1],
2716 [[The coded name of the library, if different from the real name]])
2717 _LT_DECL([], [postinstall_cmds], [2],
2718 [Command to use after installation of a shared archive])
2719 _LT_DECL([], [postuninstall_cmds], [2],
2720 [Command to use after uninstallation of a shared archive])
2721 _LT_DECL([], [finish_cmds], [2],
2722 [Commands used to finish a libtool library installation in a directory])
2723 _LT_DECL([], [finish_eval], [1],
2724 [[As "finish_cmds", except a single script fragment to be evaled but
2725 not shown]])
2726 _LT_DECL([], [hardcode_into_libs], [0],
2727 [Whether we should hardcode library paths into libraries])
2728 _LT_DECL([], [sys_lib_search_path_spec], [2],
2729 [Compile-time system search path for libraries])
2730 _LT_DECL([], [sys_lib_dlsearch_path_spec], [2],
2731 [Run-time system search path for libraries])
2732 ])# _LT_SYS_DYNAMIC_LINKER
2733
2734
2735 # _LT_PATH_TOOL_PREFIX(TOOL)
20702736 # --------------------------
2071 # implement the --with-pic flag
2072 # MODE is either `yes' or `no'. If omitted, it defaults to `both'.
2073 AC_DEFUN([AC_LIBTOOL_PICMODE],
2074 [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
2075 pic_mode=ifelse($#,1,$1,default)
2076 ])# AC_LIBTOOL_PICMODE
2077
2078
2079 # AC_PROG_EGREP
2080 # -------------
2081 # This is predefined starting with Autoconf 2.54, so this conditional
2082 # definition can be removed once we require Autoconf 2.54 or later.
2083 m4_ifndef([AC_PROG_EGREP], [AC_DEFUN([AC_PROG_EGREP],
2084 [AC_CACHE_CHECK([for egrep], [ac_cv_prog_egrep],
2085 [if echo a | (grep -E '(a|b)') >/dev/null 2>&1
2086 then ac_cv_prog_egrep='grep -E'
2087 else ac_cv_prog_egrep='egrep'
2088 fi])
2089 EGREP=$ac_cv_prog_egrep
2090 AC_SUBST([EGREP])
2091 ])])
2092
2093
2094 # AC_PATH_TOOL_PREFIX
2095 # -------------------
20962737 # find a file program which can recognize shared library
2097 AC_DEFUN([AC_PATH_TOOL_PREFIX],
2098 [AC_REQUIRE([AC_PROG_EGREP])dnl
2738 AC_DEFUN([_LT_PATH_TOOL_PREFIX],
2739 [m4_require([_LT_DECL_EGREP])dnl
20992740 AC_MSG_CHECKING([for $1])
21002741 AC_CACHE_VAL(lt_cv_path_MAGIC_CMD,
21012742 [case $MAGIC_CMD in
21082749 dnl $ac_dummy forces splitting on constant user-supplied paths.
21092750 dnl POSIX.2 word splitting is done only on the output of word expansions,
21102751 dnl not every word. This closes a longstanding sh security hole.
2111 ac_dummy="ifelse([$2], , $PATH, [$2])"
2752 ac_dummy="m4_if([$2], , $PATH, [$2])"
21122753 for ac_dir in $ac_dummy; do
21132754 IFS="$lt_save_ifs"
21142755 test -z "$ac_dir" && ac_dir=.
21232764 $EGREP "$file_magic_regex" > /dev/null; then
21242765 :
21252766 else
2126 cat <<EOF 1>&2
2767 cat <<_LT_EOF 1>&2
21272768
21282769 *** Warning: the command libtool uses to detect shared libraries,
21292770 *** $file_magic_cmd, produces output that libtool cannot recognize.
21342775 *** may want to report the problem to your system manager and/or to
21352776 *** bug-libtool@gnu.org
21362777
2137 EOF
2778 _LT_EOF
21382779 fi ;;
21392780 esac
21402781 fi
21512792 else
21522793 AC_MSG_RESULT(no)
21532794 fi
2154 ])# AC_PATH_TOOL_PREFIX
2155
2156
2157 # AC_PATH_MAGIC
2158 # -------------
2795 _LT_DECL([], [MAGIC_CMD], [0],
2796 [Used to examine libraries when file_magic_cmd begins with "file"])dnl
2797 ])# _LT_PATH_TOOL_PREFIX
2798
2799 # Old name:
2800 AU_ALIAS([AC_PATH_TOOL_PREFIX], [_LT_PATH_TOOL_PREFIX])
2801 dnl aclocal-1.4 backwards compatibility:
2802 dnl AC_DEFUN([AC_PATH_TOOL_PREFIX], [])
2803
2804
2805 # _LT_PATH_MAGIC
2806 # --------------
21592807 # find a file program which can recognize a shared library
2160 AC_DEFUN([AC_PATH_MAGIC],
2161 [AC_PATH_TOOL_PREFIX(${ac_tool_prefix}file, /usr/bin$PATH_SEPARATOR$PATH)
2808 m4_defun([_LT_PATH_MAGIC],
2809 [_LT_PATH_TOOL_PREFIX(${ac_tool_prefix}file, /usr/bin$PATH_SEPARATOR$PATH)
21622810 if test -z "$lt_cv_path_MAGIC_CMD"; then
21632811 if test -n "$ac_tool_prefix"; then
2164 AC_PATH_TOOL_PREFIX(file, /usr/bin$PATH_SEPARATOR$PATH)
2812 _LT_PATH_TOOL_PREFIX(file, /usr/bin$PATH_SEPARATOR$PATH)
21652813 else
21662814 MAGIC_CMD=:
21672815 fi
21682816 fi
2169 ])# AC_PATH_MAGIC
2170
2171
2172 # AC_PROG_LD
2817 ])# _LT_PATH_MAGIC
2818
2819
2820 # LT_PATH_LD
21732821 # ----------
21742822 # find the pathname to the GNU or non-GNU linker
2175 AC_DEFUN([AC_PROG_LD],
2176 [AC_ARG_WITH([gnu-ld],
2177 [AC_HELP_STRING([--with-gnu-ld],
2823 AC_DEFUN([LT_PATH_LD],
2824 [AC_REQUIRE([AC_PROG_CC])dnl
2825 AC_REQUIRE([AC_CANONICAL_HOST])dnl
2826 AC_REQUIRE([AC_CANONICAL_BUILD])dnl
2827 m4_require([_LT_DECL_SED])dnl
2828 m4_require([_LT_DECL_EGREP])dnl
2829
2830 AC_ARG_WITH([gnu-ld],
2831 [AS_HELP_STRING([--with-gnu-ld],
21782832 [assume the C compiler uses GNU ld @<:@default=no@:>@])],
21792833 [test "$withval" = no || with_gnu_ld=yes],
2180 [with_gnu_ld=no])
2181 AC_REQUIRE([LT_AC_PROG_SED])dnl
2182 AC_REQUIRE([AC_PROG_CC])dnl
2183 AC_REQUIRE([AC_CANONICAL_HOST])dnl
2184 AC_REQUIRE([AC_CANONICAL_BUILD])dnl
2834 [with_gnu_ld=no])dnl
2835
21852836 ac_prog=ld
21862837 if test "$GCC" = yes; then
21872838 # Check if gcc -print-prog-name=ld gives a path.
21982849 [[\\/]]* | ?:[[\\/]]*)
21992850 re_direlt='/[[^/]][[^/]]*/\.\./'
22002851 # Canonicalize the pathname of ld
2201 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
2202 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
2203 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
2852 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
2853 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
2854 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
22042855 done
22052856 test -z "$LD" && LD="$ac_prog"
22062857 ;;
22502901 AC_MSG_RESULT(no)
22512902 fi
22522903 test -z "$LD" && AC_MSG_ERROR([no acceptable ld found in \$PATH])
2253 AC_PROG_LD_GNU
2254 ])# AC_PROG_LD
2255
2256
2257 # AC_PROG_LD_GNU
2258 # --------------
2259 AC_DEFUN([AC_PROG_LD_GNU],
2260 [AC_REQUIRE([AC_PROG_EGREP])dnl
2261 AC_CACHE_CHECK([if the linker ($LD) is GNU ld], lt_cv_prog_gnu_ld,
2904 _LT_PATH_LD_GNU
2905 AC_SUBST([LD])
2906
2907 _LT_TAGDECL([], [LD], [1], [The linker used to build libraries])
2908 ])# LT_PATH_LD
2909
2910 # Old names:
2911 AU_ALIAS([AM_PROG_LD], [LT_PATH_LD])
2912 AU_ALIAS([AC_PROG_LD], [LT_PATH_LD])
2913 dnl aclocal-1.4 backwards compatibility:
2914 dnl AC_DEFUN([AM_PROG_LD], [])
2915 dnl AC_DEFUN([AC_PROG_LD], [])
2916
2917
2918 # _LT_PATH_LD_GNU
2919 #- --------------
2920 m4_defun([_LT_PATH_LD_GNU],
2921 [AC_CACHE_CHECK([if the linker ($LD) is GNU ld], lt_cv_prog_gnu_ld,
22622922 [# I'd rather use --version here, but apparently some GNU lds only accept -v.
22632923 case `$LD -v 2>&1 </dev/null` in
22642924 *GNU* | *'with BFD'*)
22692929 ;;
22702930 esac])
22712931 with_gnu_ld=$lt_cv_prog_gnu_ld
2272 ])# AC_PROG_LD_GNU
2273
2274
2275 # AC_PROG_LD_RELOAD_FLAG
2276 # ----------------------
2932 ])# _LT_PATH_LD_GNU
2933
2934
2935 # _LT_CMD_RELOAD
2936 # --------------
22772937 # find reload flag for linker
22782938 # -- PORTME Some linkers may need a different reload flag.
2279 AC_DEFUN([AC_PROG_LD_RELOAD_FLAG],
2939 m4_defun([_LT_CMD_RELOAD],
22802940 [AC_CACHE_CHECK([for $LD option to reload object files],
22812941 lt_cv_ld_reload_flag,
22822942 [lt_cv_ld_reload_flag='-r'])
22952955 fi
22962956 ;;
22972957 esac
2298 ])# AC_PROG_LD_RELOAD_FLAG
2299
2300
2301 # AC_DEPLIBS_CHECK_METHOD
2302 # -----------------------
2958 _LT_DECL([], [reload_flag], [1], [How to create reloadable object files])dnl
2959 _LT_DECL([], [reload_cmds], [2])dnl
2960 ])# _LT_CMD_RELOAD
2961
2962
2963 # _LT_CHECK_MAGIC_METHOD
2964 # ----------------------
23032965 # how to check for library dependencies
23042966 # -- PORTME fill in with the dynamic library characteristics
2305 AC_DEFUN([AC_DEPLIBS_CHECK_METHOD],
2306 [AC_CACHE_CHECK([how to recognize dependent libraries],
2967 m4_defun([_LT_CHECK_MAGIC_METHOD],
2968 [m4_require([_LT_DECL_EGREP])
2969 m4_require([_LT_DECL_OBJDUMP])
2970 AC_CACHE_CHECK([how to recognize dependent libraries],
23072971 lt_cv_deplibs_check_method,
23082972 [lt_cv_file_magic_cmd='$MAGIC_CMD'
23092973 lt_cv_file_magic_test_file=
23202984 # whether `pass_all' will *always* work, you probably want this one.
23212985
23222986 case $host_os in
2323 aix4* | aix5*)
2987 aix[[4-9]]*)
23242988 lt_cv_deplibs_check_method=pass_all
23252989 ;;
23262990
23533017 fi
23543018 ;;
23553019
3020 cegcc)
3021 # use the weaker test based on 'objdump'. See mingw*.
3022 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
3023 lt_cv_file_magic_cmd='$OBJDUMP -f'
3024 ;;
3025
23563026 darwin* | rhapsody*)
23573027 lt_cv_deplibs_check_method=pass_all
23583028 ;;
23593029
23603030 freebsd* | dragonfly*)
2361 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3031 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
23623032 case $host_cpu in
23633033 i*86 )
23643034 # Not sure whether the presence of OpenBSD here was a mistake.
24163086 ;;
24173087
24183088 netbsd*)
2419 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3089 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
24203090 lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$'
24213091 else
24223092 lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so|_pic\.a)$'
24293099 lt_cv_file_magic_test_file=/usr/lib/libnls.so
24303100 ;;
24313101
2432 nto-qnx*)
2433 lt_cv_deplibs_check_method=unknown
3102 *nto* | *qnx*)
3103 lt_cv_deplibs_check_method=pass_all
24343104 ;;
24353105
24363106 openbsd*)
2437 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
3107 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
24383108 lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|\.so|_pic\.a)$'
24393109 else
24403110 lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$'
24503120 ;;
24513121
24523122 solaris*)
3123 lt_cv_deplibs_check_method=pass_all
3124 ;;
3125
3126 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
24533127 lt_cv_deplibs_check_method=pass_all
24543128 ;;
24553129
24803154 esac
24813155 ;;
24823156
2483 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
3157 tpf*)
24843158 lt_cv_deplibs_check_method=pass_all
24853159 ;;
24863160 esac
24883162 file_magic_cmd=$lt_cv_file_magic_cmd
24893163 deplibs_check_method=$lt_cv_deplibs_check_method
24903164 test -z "$deplibs_check_method" && deplibs_check_method=unknown
2491 ])# AC_DEPLIBS_CHECK_METHOD
2492
2493
2494 # AC_PROG_NM
3165
3166 _LT_DECL([], [deplibs_check_method], [1],
3167 [Method to check whether dependent libraries are shared objects])
3168 _LT_DECL([], [file_magic_cmd], [1],
3169 [Command to use when deplibs_check_method == "file_magic"])
3170 ])# _LT_CHECK_MAGIC_METHOD
3171
3172
3173 # LT_PATH_NM
24953174 # ----------
2496 # find the pathname to a BSD-compatible name lister
2497 AC_DEFUN([AC_PROG_NM],
2498 [AC_CACHE_CHECK([for BSD-compatible nm], lt_cv_path_NM,
3175 # find the pathname to a BSD- or MS-compatible name lister
3176 AC_DEFUN([LT_PATH_NM],
3177 [AC_REQUIRE([AC_PROG_CC])dnl
3178 AC_CACHE_CHECK([for BSD- or MS-compatible name lister (nm)], lt_cv_path_NM,
24993179 [if test -n "$NM"; then
25003180 # Let the user override the test.
25013181 lt_cv_path_NM="$NM"
25373217 done
25383218 IFS="$lt_save_ifs"
25393219 done
2540 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
3220 : ${lt_cv_path_NM=no}
25413221 fi])
2542 NM="$lt_cv_path_NM"
2543 ])# AC_PROG_NM
2544
2545
2546 # AC_CHECK_LIBM
2547 # -------------
3222 if test "$lt_cv_path_NM" != "no"; then
3223 NM="$lt_cv_path_NM"
3224 else
3225 # Didn't find any BSD compatible name lister, look for dumpbin.
3226 AC_CHECK_TOOLS(DUMPBIN, ["dumpbin -symbols" "link -dump -symbols"], :)
3227 AC_SUBST([DUMPBIN])
3228 if test "$DUMPBIN" != ":"; then
3229 NM="$DUMPBIN"
3230 fi
3231 fi
3232 test -z "$NM" && NM=nm
3233 AC_SUBST([NM])
3234 _LT_DECL([], [NM], [1], [A BSD- or MS-compatible name lister])dnl
3235
3236 AC_CACHE_CHECK([the name lister ($NM) interface], [lt_cv_nm_interface],
3237 [lt_cv_nm_interface="BSD nm"
3238 echo "int some_variable = 0;" > conftest.$ac_ext
3239 (eval echo "\"\$as_me:__oline__: $ac_compile\"" >&AS_MESSAGE_LOG_FD)
3240 (eval "$ac_compile" 2>conftest.err)
3241 cat conftest.err >&AS_MESSAGE_LOG_FD
3242 (eval echo "\"\$as_me:__oline__: $NM \\\"conftest.$ac_objext\\\"\"" >&AS_MESSAGE_LOG_FD)
3243 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
3244 cat conftest.err >&AS_MESSAGE_LOG_FD
3245 (eval echo "\"\$as_me:__oline__: output\"" >&AS_MESSAGE_LOG_FD)
3246 cat conftest.out >&AS_MESSAGE_LOG_FD
3247 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
3248 lt_cv_nm_interface="MS dumpbin"
3249 fi
3250 rm -f conftest*])
3251 ])# LT_PATH_NM
3252
3253 # Old names:
3254 AU_ALIAS([AM_PROG_NM], [LT_PATH_NM])
3255 AU_ALIAS([AC_PROG_NM], [LT_PATH_NM])
3256 dnl aclocal-1.4 backwards compatibility:
3257 dnl AC_DEFUN([AM_PROG_NM], [])
3258 dnl AC_DEFUN([AC_PROG_NM], [])
3259
3260
3261 # LT_LIB_M
3262 # --------
25483263 # check for math library
2549 AC_DEFUN([AC_CHECK_LIBM],
3264 AC_DEFUN([LT_LIB_M],
25503265 [AC_REQUIRE([AC_CANONICAL_HOST])dnl
25513266 LIBM=
25523267 case $host in
25613276 AC_CHECK_LIB(m, cos, LIBM="-lm")
25623277 ;;
25633278 esac
2564 ])# AC_CHECK_LIBM
2565
2566
2567 # AC_LIBLTDL_CONVENIENCE([DIRECTORY])
2568 # -----------------------------------
2569 # sets LIBLTDL to the link flags for the libltdl convenience library and
2570 # LTDLINCL to the include flags for the libltdl header and adds
2571 # --enable-ltdl-convenience to the configure arguments. Note that
2572 # AC_CONFIG_SUBDIRS is not called here. If DIRECTORY is not provided,
2573 # it is assumed to be `libltdl'. LIBLTDL will be prefixed with
2574 # '${top_builddir}/' and LTDLINCL will be prefixed with '${top_srcdir}/'
2575 # (note the single quotes!). If your package is not flat and you're not
2576 # using automake, define top_builddir and top_srcdir appropriately in
2577 # the Makefiles.
2578 AC_DEFUN([AC_LIBLTDL_CONVENIENCE],
2579 [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
2580 case $enable_ltdl_convenience in
2581 no) AC_MSG_ERROR([this package needs a convenience libltdl]) ;;
2582 "") enable_ltdl_convenience=yes
2583 ac_configure_args="$ac_configure_args --enable-ltdl-convenience" ;;
2584 esac
2585 LIBLTDL='${top_builddir}/'ifelse($#,1,[$1],['libltdl'])/libltdlc.la
2586 LTDLINCL='-I${top_srcdir}/'ifelse($#,1,[$1],['libltdl'])
2587 # For backwards non-gettext consistent compatibility...
2588 INCLTDL="$LTDLINCL"
2589 ])# AC_LIBLTDL_CONVENIENCE
2590
2591
2592 # AC_LIBLTDL_INSTALLABLE([DIRECTORY])
2593 # -----------------------------------
2594 # sets LIBLTDL to the link flags for the libltdl installable library and
2595 # LTDLINCL to the include flags for the libltdl header and adds
2596 # --enable-ltdl-install to the configure arguments. Note that
2597 # AC_CONFIG_SUBDIRS is not called here. If DIRECTORY is not provided,
2598 # and an installed libltdl is not found, it is assumed to be `libltdl'.
2599 # LIBLTDL will be prefixed with '${top_builddir}/'# and LTDLINCL with
2600 # '${top_srcdir}/' (note the single quotes!). If your package is not
2601 # flat and you're not using automake, define top_builddir and top_srcdir
2602 # appropriately in the Makefiles.
2603 # In the future, this macro may have to be called after AC_PROG_LIBTOOL.
2604 AC_DEFUN([AC_LIBLTDL_INSTALLABLE],
2605 [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
2606 AC_CHECK_LIB(ltdl, lt_dlinit,
2607 [test x"$enable_ltdl_install" != xyes && enable_ltdl_install=no],
2608 [if test x"$enable_ltdl_install" = xno; then
2609 AC_MSG_WARN([libltdl not installed, but installation disabled])
2610 else
2611 enable_ltdl_install=yes
2612 fi
2613 ])
2614 if test x"$enable_ltdl_install" = x"yes"; then
2615 ac_configure_args="$ac_configure_args --enable-ltdl-install"
2616 LIBLTDL='${top_builddir}/'ifelse($#,1,[$1],['libltdl'])/libltdl.la
2617 LTDLINCL='-I${top_srcdir}/'ifelse($#,1,[$1],['libltdl'])
2618 else
2619 ac_configure_args="$ac_configure_args --enable-ltdl-install=no"
2620 LIBLTDL="-lltdl"
2621 LTDLINCL=
2622 fi
2623 # For backwards non-gettext consistent compatibility...
2624 INCLTDL="$LTDLINCL"
2625 ])# AC_LIBLTDL_INSTALLABLE
2626
2627
2628 # AC_LIBTOOL_CXX
2629 # --------------
2630 # enable support for C++ libraries
2631 AC_DEFUN([AC_LIBTOOL_CXX],
2632 [AC_REQUIRE([_LT_AC_LANG_CXX])
2633 ])# AC_LIBTOOL_CXX
2634
2635
2636 # _LT_AC_LANG_CXX
2637 # ---------------
2638 AC_DEFUN([_LT_AC_LANG_CXX],
2639 [AC_REQUIRE([AC_PROG_CXX])
2640 AC_REQUIRE([_LT_AC_PROG_CXXCPP])
2641 _LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}CXX])
2642 ])# _LT_AC_LANG_CXX
2643
2644 # _LT_AC_PROG_CXXCPP
2645 # ------------------
2646 AC_DEFUN([_LT_AC_PROG_CXXCPP],
2647 [
2648 AC_REQUIRE([AC_PROG_CXX])
2649 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
2650 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
2651 (test "X$CXX" != "Xg++"))) ; then
2652 AC_PROG_CXXCPP
2653 fi
2654 ])# _LT_AC_PROG_CXXCPP
2655
2656 # AC_LIBTOOL_F77
2657 # --------------
2658 # enable support for Fortran 77 libraries
2659 AC_DEFUN([AC_LIBTOOL_F77],
2660 [AC_REQUIRE([_LT_AC_LANG_F77])
2661 ])# AC_LIBTOOL_F77
2662
2663
2664 # _LT_AC_LANG_F77
2665 # ---------------
2666 AC_DEFUN([_LT_AC_LANG_F77],
2667 [AC_REQUIRE([AC_PROG_F77])
2668 _LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}F77])
2669 ])# _LT_AC_LANG_F77
2670
2671
2672 # AC_LIBTOOL_GCJ
2673 # --------------
2674 # enable support for GCJ libraries
2675 AC_DEFUN([AC_LIBTOOL_GCJ],
2676 [AC_REQUIRE([_LT_AC_LANG_GCJ])
2677 ])# AC_LIBTOOL_GCJ
2678
2679
2680 # _LT_AC_LANG_GCJ
2681 # ---------------
2682 AC_DEFUN([_LT_AC_LANG_GCJ],
2683 [AC_PROVIDE_IFELSE([AC_PROG_GCJ],[],
2684 [AC_PROVIDE_IFELSE([A][M_PROG_GCJ],[],
2685 [AC_PROVIDE_IFELSE([LT_AC_PROG_GCJ],[],
2686 [ifdef([AC_PROG_GCJ],[AC_REQUIRE([AC_PROG_GCJ])],
2687 [ifdef([A][M_PROG_GCJ],[AC_REQUIRE([A][M_PROG_GCJ])],
2688 [AC_REQUIRE([A][C_PROG_GCJ_OR_A][M_PROG_GCJ])])])])])])
2689 _LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}GCJ])
2690 ])# _LT_AC_LANG_GCJ
2691
2692
2693 # AC_LIBTOOL_RC
2694 # -------------
2695 # enable support for Windows resource files
2696 AC_DEFUN([AC_LIBTOOL_RC],
2697 [AC_REQUIRE([LT_AC_PROG_RC])
2698 _LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}RC])
2699 ])# AC_LIBTOOL_RC
2700
2701
2702 # AC_LIBTOOL_LANG_C_CONFIG
2703 # ------------------------
2704 # Ensure that the configuration vars for the C compiler are
2705 # suitably defined. Those variables are subsequently used by
2706 # AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
2707 AC_DEFUN([AC_LIBTOOL_LANG_C_CONFIG], [_LT_AC_LANG_C_CONFIG])
2708 AC_DEFUN([_LT_AC_LANG_C_CONFIG],
2709 [lt_save_CC="$CC"
2710 AC_LANG_PUSH(C)
2711
2712 # Source file extension for C test sources.
2713 ac_ext=c
2714
2715 # Object file extension for compiled C test sources.
2716 objext=o
2717 _LT_AC_TAGVAR(objext, $1)=$objext
2718
2719 # Code to be used in simple compile tests
2720 lt_simple_compile_test_code="int some_variable = 0;"
2721
2722 # Code to be used in simple link tests
2723 lt_simple_link_test_code='int main(){return(0);}'
2724
2725 _LT_AC_SYS_COMPILER
2726
2727 # save warnings/boilerplate of simple test code
2728 _LT_COMPILER_BOILERPLATE
2729 _LT_LINKER_BOILERPLATE
2730
2731 AC_LIBTOOL_PROG_COMPILER_NO_RTTI($1)
2732 AC_LIBTOOL_PROG_COMPILER_PIC($1)
2733 AC_LIBTOOL_PROG_CC_C_O($1)
2734 AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1)
2735 AC_LIBTOOL_PROG_LD_SHLIBS($1)
2736 AC_LIBTOOL_SYS_DYNAMIC_LINKER($1)
2737 AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1)
2738 AC_LIBTOOL_SYS_LIB_STRIP
2739 AC_LIBTOOL_DLOPEN_SELF
2740
2741 # Report which library types will actually be built
2742 AC_MSG_CHECKING([if libtool supports shared libraries])
2743 AC_MSG_RESULT([$can_build_shared])
2744
2745 AC_MSG_CHECKING([whether to build shared libraries])
2746 test "$can_build_shared" = "no" && enable_shared=no
2747
2748 # On AIX, shared libraries and static libraries use the same namespace, and
2749 # are all built from PIC.
2750 case $host_os in
2751 aix3*)
2752 test "$enable_shared" = yes && enable_static=no
2753 if test -n "$RANLIB"; then
2754 archive_cmds="$archive_cmds~\$RANLIB \$lib"
2755 postinstall_cmds='$RANLIB $lib'
2756 fi
2757 ;;
2758
2759 aix4* | aix5*)
2760 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
2761 test "$enable_shared" = yes && enable_static=no
2762 fi
2763 ;;
2764 esac
2765 AC_MSG_RESULT([$enable_shared])
2766
2767 AC_MSG_CHECKING([whether to build static libraries])
2768 # Make sure either enable_shared or enable_static is yes.
2769 test "$enable_shared" = yes || enable_static=yes
2770 AC_MSG_RESULT([$enable_static])
2771
2772 AC_LIBTOOL_CONFIG($1)
2773
2774 AC_LANG_POP
2775 CC="$lt_save_CC"
2776 ])# AC_LIBTOOL_LANG_C_CONFIG
2777
2778
2779 # AC_LIBTOOL_LANG_CXX_CONFIG
2780 # --------------------------
2781 # Ensure that the configuration vars for the C compiler are
2782 # suitably defined. Those variables are subsequently used by
2783 # AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
2784 AC_DEFUN([AC_LIBTOOL_LANG_CXX_CONFIG], [_LT_AC_LANG_CXX_CONFIG(CXX)])
2785 AC_DEFUN([_LT_AC_LANG_CXX_CONFIG],
2786 [AC_LANG_PUSH(C++)
2787 AC_REQUIRE([AC_PROG_CXX])
2788 AC_REQUIRE([_LT_AC_PROG_CXXCPP])
2789
2790 _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
2791 _LT_AC_TAGVAR(allow_undefined_flag, $1)=
2792 _LT_AC_TAGVAR(always_export_symbols, $1)=no
2793 _LT_AC_TAGVAR(archive_expsym_cmds, $1)=
2794 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)=
2795 _LT_AC_TAGVAR(hardcode_direct, $1)=no
2796 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=
2797 _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
2798 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
2799 _LT_AC_TAGVAR(hardcode_minus_L, $1)=no
2800 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
2801 _LT_AC_TAGVAR(hardcode_automatic, $1)=no
2802 _LT_AC_TAGVAR(module_cmds, $1)=
2803 _LT_AC_TAGVAR(module_expsym_cmds, $1)=
2804 _LT_AC_TAGVAR(link_all_deplibs, $1)=unknown
2805 _LT_AC_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
2806 _LT_AC_TAGVAR(no_undefined_flag, $1)=
2807 _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
2808 _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=no
2809
2810 # Dependencies to place before and after the object being linked:
2811 _LT_AC_TAGVAR(predep_objects, $1)=
2812 _LT_AC_TAGVAR(postdep_objects, $1)=
2813 _LT_AC_TAGVAR(predeps, $1)=
2814 _LT_AC_TAGVAR(postdeps, $1)=
2815 _LT_AC_TAGVAR(compiler_lib_search_path, $1)=
2816
2817 # Source file extension for C++ test sources.
2818 ac_ext=cpp
2819
2820 # Object file extension for compiled C++ test sources.
2821 objext=o
2822 _LT_AC_TAGVAR(objext, $1)=$objext
2823
2824 # Code to be used in simple compile tests
2825 lt_simple_compile_test_code="int some_variable = 0;"
2826
2827 # Code to be used in simple link tests
2828 lt_simple_link_test_code='int main(int, char *[[]]) { return(0); }'
2829
2830 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
2831 _LT_AC_SYS_COMPILER
2832
2833 # save warnings/boilerplate of simple test code
2834 _LT_COMPILER_BOILERPLATE
2835 _LT_LINKER_BOILERPLATE
2836
2837 # Allow CC to be a program name with arguments.
2838 lt_save_CC=$CC
2839 lt_save_LD=$LD
2840 lt_save_GCC=$GCC
2841 GCC=$GXX
2842 lt_save_with_gnu_ld=$with_gnu_ld
2843 lt_save_path_LD=$lt_cv_path_LD
2844 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
2845 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
2846 else
2847 $as_unset lt_cv_prog_gnu_ld
2848 fi
2849 if test -n "${lt_cv_path_LDCXX+set}"; then
2850 lt_cv_path_LD=$lt_cv_path_LDCXX
2851 else
2852 $as_unset lt_cv_path_LD
2853 fi
2854 test -z "${LDCXX+set}" || LD=$LDCXX
2855 CC=${CXX-"c++"}
2856 compiler=$CC
2857 _LT_AC_TAGVAR(compiler, $1)=$CC
2858 _LT_CC_BASENAME([$compiler])
2859
2860 # We don't want -fno-exception wen compiling C++ code, so set the
2861 # no_builtin_flag separately
2862 if test "$GXX" = yes; then
2863 _LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin'
2864 else
2865 _LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=
2866 fi
2867
2868 if test "$GXX" = yes; then
2869 # Set up default GNU C++ configuration
2870
2871 AC_PROG_LD
2872
2873 # Check if GNU C++ uses GNU ld as the underlying linker, since the
2874 # archiving commands below assume that GNU ld is being used.
2875 if test "$with_gnu_ld" = yes; then
2876 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
2877 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
2878
2879 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir'
2880 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
2881
2882 # If archive_cmds runs LD, not CC, wlarc should be empty
2883 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
2884 # investigate it a little bit more. (MM)
2885 wlarc='${wl}'
2886
2887 # ancient GNU ld didn't support --whole-archive et. al.
2888 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
2889 grep 'no-whole-archive' > /dev/null; then
2890 _LT_AC_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
2891 else
2892 _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
2893 fi
2894 else
2895 with_gnu_ld=no
2896 wlarc=
2897
2898 # A generic and very simple default shared library creation
2899 # command for GNU C++ for the case where it uses the native
2900 # linker, instead of GNU ld. If possible, this setting should
2901 # overridden to take advantage of the native linker features on
2902 # the platform it is being used on.
2903 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
2904 fi
2905
2906 # Commands to make compiler produce verbose output that lists
2907 # what "hidden" libraries, object files and flags are used when
2908 # linking a shared library.
2909 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
2910
2911 else
2912 GXX=no
2913 with_gnu_ld=no
2914 wlarc=
2915 fi
2916
2917 # PORTME: fill in a description of your system's C++ link characteristics
2918 AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries])
2919 _LT_AC_TAGVAR(ld_shlibs, $1)=yes
2920 case $host_os in
2921 aix3*)
2922 # FIXME: insert proper C++ library support
2923 _LT_AC_TAGVAR(ld_shlibs, $1)=no
2924 ;;
2925 aix4* | aix5*)
2926 if test "$host_cpu" = ia64; then
2927 # On IA64, the linker does run time linking by default, so we don't
2928 # have to do anything special.
2929 aix_use_runtimelinking=no
2930 exp_sym_flag='-Bexport'
2931 no_entry_flag=""
2932 else
2933 aix_use_runtimelinking=no
2934
2935 # Test if we are trying to use run time linking or normal
2936 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
2937 # need to do runtime linking.
2938 case $host_os in aix4.[[23]]|aix4.[[23]].*|aix5*)
2939 for ld_flag in $LDFLAGS; do
2940 case $ld_flag in
2941 *-brtl*)
2942 aix_use_runtimelinking=yes
2943 break
2944 ;;
2945 esac
2946 done
2947 ;;
2948 esac
2949
2950 exp_sym_flag='-bexport'
2951 no_entry_flag='-bnoentry'
2952 fi
2953
2954 # When large executables or shared objects are built, AIX ld can
2955 # have problems creating the table of contents. If linking a library
2956 # or program results in "error TOC overflow" add -mminimal-toc to
2957 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
2958 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
2959
2960 _LT_AC_TAGVAR(archive_cmds, $1)=''
2961 _LT_AC_TAGVAR(hardcode_direct, $1)=yes
2962 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=':'
2963 _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
2964
2965 if test "$GXX" = yes; then
2966 case $host_os in aix4.[[012]]|aix4.[[012]].*)
2967 # We only want to do this on AIX 4.2 and lower, the check
2968 # below for broken collect2 doesn't work under 4.3+
2969 collect2name=`${CC} -print-prog-name=collect2`
2970 if test -f "$collect2name" && \
2971 strings "$collect2name" | grep resolve_lib_name >/dev/null
2972 then
2973 # We have reworked collect2
2974 :
2975 else
2976 # We have old collect2
2977 _LT_AC_TAGVAR(hardcode_direct, $1)=unsupported
2978 # It fails to find uninstalled libraries when the uninstalled
2979 # path is not listed in the libpath. Setting hardcode_minus_L
2980 # to unsupported forces relinking
2981 _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
2982 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
2983 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
2984 fi
2985 ;;
2986 esac
2987 shared_flag='-shared'
2988 if test "$aix_use_runtimelinking" = yes; then
2989 shared_flag="$shared_flag "'${wl}-G'
2990 fi
2991 else
2992 # not using gcc
2993 if test "$host_cpu" = ia64; then
2994 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
2995 # chokes on -Wl,-G. The following line is correct:
2996 shared_flag='-G'
2997 else
2998 if test "$aix_use_runtimelinking" = yes; then
2999 shared_flag='${wl}-G'
3000 else
3001 shared_flag='${wl}-bM:SRE'
3002 fi
3003 fi
3004 fi
3005
3006 # It seems that -bexpall does not export symbols beginning with
3007 # underscore (_), so it is better to generate a list of symbols to export.
3008 _LT_AC_TAGVAR(always_export_symbols, $1)=yes
3009 if test "$aix_use_runtimelinking" = yes; then
3010 # Warning - without using the other runtime loading flags (-brtl),
3011 # -berok will link without error, but may produce a broken library.
3012 _LT_AC_TAGVAR(allow_undefined_flag, $1)='-berok'
3013 # Determine the default libpath from the value encoded in an empty executable.
3014 _LT_AC_SYS_LIBPATH_AIX
3015 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
3016
3017 _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
3018 else
3019 if test "$host_cpu" = ia64; then
3020 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib'
3021 _LT_AC_TAGVAR(allow_undefined_flag, $1)="-z nodefs"
3022 _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
3023 else
3024 # Determine the default libpath from the value encoded in an empty executable.
3025 _LT_AC_SYS_LIBPATH_AIX
3026 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
3027 # Warning - without using the other run time loading flags,
3028 # -berok will link without error, but may produce a broken library.
3029 _LT_AC_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok'
3030 _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok'
3031 # Exported symbols can be pulled into shared objects from archives
3032 _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='$convenience'
3033 _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes
3034 # This is similar to how AIX traditionally builds its shared libraries.
3035 _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
3036 fi
3037 fi
3038 ;;
3039
3040 beos*)
3041 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
3042 _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
3043 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
3044 # support --undefined. This deserves some investigation. FIXME
3045 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
3046 else
3047 _LT_AC_TAGVAR(ld_shlibs, $1)=no
3048 fi
3049 ;;
3050
3051 chorus*)
3052 case $cc_basename in
3053 *)
3054 # FIXME: insert proper C++ library support
3055 _LT_AC_TAGVAR(ld_shlibs, $1)=no
3056 ;;
3057 esac
3058 ;;
3059
3060 cygwin* | mingw* | pw32*)
3061 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless,
3062 # as there is no search path for DLLs.
3063 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
3064 _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
3065 _LT_AC_TAGVAR(always_export_symbols, $1)=no
3066 _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
3067
3068 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
3069 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
3070 # If the export-symbols file already is a .def file (1st line
3071 # is EXPORTS), use it as is; otherwise, prepend...
3072 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
3073 cp $export_symbols $output_objdir/$soname.def;
3074 else
3075 echo EXPORTS > $output_objdir/$soname.def;
3076 cat $export_symbols >> $output_objdir/$soname.def;
3077 fi~
3078 $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
3079 else
3080 _LT_AC_TAGVAR(ld_shlibs, $1)=no
3081 fi
3082 ;;
3083 darwin* | rhapsody*)
3084 case $host_os in
3085 rhapsody* | darwin1.[[012]])
3086 _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-undefined ${wl}suppress'
3087 ;;
3088 *) # Darwin 1.3 on
3089 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
3090 _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
3091 else
3092 case ${MACOSX_DEPLOYMENT_TARGET} in
3093 10.[[012]])
3094 _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
3095 ;;
3096 10.*)
3097 _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-undefined ${wl}dynamic_lookup'
3098 ;;
3099 esac
3100 fi
3101 ;;
3102 esac
3103 _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
3104 _LT_AC_TAGVAR(hardcode_direct, $1)=no
3105 _LT_AC_TAGVAR(hardcode_automatic, $1)=yes
3106 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
3107 _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=''
3108 _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
3109
3110 if test "$GXX" = yes ; then
3111 lt_int_apple_cc_single_mod=no
3112 output_verbose_link_cmd='echo'
3113 if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
3114 lt_int_apple_cc_single_mod=yes
3115 fi
3116 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
3117 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
3118 else
3119 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
3120 fi
3121 _LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
3122 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
3123 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
3124 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
3125 else
3126 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
3127 fi
3128 _LT_AC_TAGVAR(module_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
3129 else
3130 case $cc_basename in
3131 xlc*)
3132 output_verbose_link_cmd='echo'
3133 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
3134 _LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
3135 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
3136 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
3137 _LT_AC_TAGVAR(module_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
3138 ;;
3139 *)
3140 _LT_AC_TAGVAR(ld_shlibs, $1)=no
3141 ;;
3142 esac
3143 fi
3144 ;;
3145
3146 dgux*)
3147 case $cc_basename in
3148 ec++*)
3149 # FIXME: insert proper C++ library support
3150 _LT_AC_TAGVAR(ld_shlibs, $1)=no
3151 ;;
3152 ghcx*)
3153 # Green Hills C++ Compiler
3154 # FIXME: insert proper C++ library support
3155 _LT_AC_TAGVAR(ld_shlibs, $1)=no
3156 ;;
3157 *)
3158 # FIXME: insert proper C++ library support
3159 _LT_AC_TAGVAR(ld_shlibs, $1)=no
3160 ;;
3161 esac
3162 ;;
3163 freebsd[[12]]*)
3164 # C++ shared libraries reported to be fairly broken before switch to ELF
3165 _LT_AC_TAGVAR(ld_shlibs, $1)=no
3166 ;;
3167 freebsd-elf*)
3168 _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
3169 ;;
3170 freebsd* | dragonfly*)
3171 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
3172 # conventions
3173 _LT_AC_TAGVAR(ld_shlibs, $1)=yes
3174 ;;
3175 gnu*)
3176 ;;
3177 hpux9*)
3178 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
3179 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
3180 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
3181 _LT_AC_TAGVAR(hardcode_direct, $1)=yes
3182 _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH,
3183 # but as the default
3184 # location of the library.
3185
3186 case $cc_basename in
3187 CC*)
3188 # FIXME: insert proper C++ library support
3189 _LT_AC_TAGVAR(ld_shlibs, $1)=no
3190 ;;
3191 aCC*)
3192 _LT_AC_TAGVAR(archive_cmds, $1)='$rm $output_objdir/$soname~$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
3193 # Commands to make compiler produce verbose output that lists
3194 # what "hidden" libraries, object files and flags are used when
3195 # linking a shared library.
3196 #
3197 # There doesn't appear to be a way to prevent this compiler from
3198 # explicitly linking system object files so we need to strip them
3199 # from the output so that they don't get included in the library
3200 # dependencies.
3201 output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | grep "[[-]]L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
3202 ;;
3203 *)
3204 if test "$GXX" = yes; then
3205 _LT_AC_TAGVAR(archive_cmds, $1)='$rm $output_objdir/$soname~$CC -shared -nostdlib -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
3206 else
3207 # FIXME: insert proper C++ library support
3208 _LT_AC_TAGVAR(ld_shlibs, $1)=no
3209 fi
3210 ;;
3211 esac
3212 ;;
3213 hpux10*|hpux11*)
3214 if test $with_gnu_ld = no; then
3215 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
3216 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
3217
3218 case $host_cpu in
3219 hppa*64*|ia64*) ;;
3220 *)
3221 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
3222 ;;
3223 esac
3224 fi
3225 case $host_cpu in
3226 hppa*64*|ia64*)
3227 _LT_AC_TAGVAR(hardcode_direct, $1)=no
3228 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
3229 ;;
3230 *)
3231 _LT_AC_TAGVAR(hardcode_direct, $1)=yes
3232 _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH,
3233 # but as the default
3234 # location of the library.
3235 ;;
3236 esac
3237
3238 case $cc_basename in
3239 CC*)
3240 # FIXME: insert proper C++ library support
3241 _LT_AC_TAGVAR(ld_shlibs, $1)=no
3242 ;;
3243 aCC*)
3244 case $host_cpu in
3245 hppa*64*)
3246 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
3247 ;;
3248 ia64*)
3249 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
3250 ;;
3251 *)
3252 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
3253 ;;
3254 esac
3255 # Commands to make compiler produce verbose output that lists
3256 # what "hidden" libraries, object files and flags are used when
3257 # linking a shared library.
3258 #
3259 # There doesn't appear to be a way to prevent this compiler from
3260 # explicitly linking system object files so we need to strip them
3261 # from the output so that they don't get included in the library
3262 # dependencies.
3263 output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | grep "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
3264 ;;
3265 *)
3266 if test "$GXX" = yes; then
3267 if test $with_gnu_ld = no; then
3268 case $host_cpu in
3269 hppa*64*)
3270 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
3271 ;;
3272 ia64*)
3273 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
3274 ;;
3275 *)
3276 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
3277 ;;
3278 esac
3279 fi
3280 else
3281 # FIXME: insert proper C++ library support
3282 _LT_AC_TAGVAR(ld_shlibs, $1)=no
3283 fi
3284 ;;
3285 esac
3286 ;;
3287 interix[[3-9]]*)
3288 _LT_AC_TAGVAR(hardcode_direct, $1)=no
3289 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
3290 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
3291 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
3292 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
3293 # Instead, shared libraries are loaded at an image base (0x10000000 by
3294 # default) and relocated if they conflict, which is a slow very memory
3295 # consuming and fragmenting process. To avoid this, we pick a random,
3296 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
3297 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
3298 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
3299 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
3300 ;;
3301 irix5* | irix6*)
3302 case $cc_basename in
3303 CC*)
3304 # SGI C++
3305 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
3306
3307 # Archives containing C++ object files must be created using
3308 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
3309 # necessary to make sure instantiated templates are included
3310 # in the archive.
3311 _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -ar -WR,-u -o $oldlib $oldobjs'
3312 ;;
3313 *)
3314 if test "$GXX" = yes; then
3315 if test "$with_gnu_ld" = no; then
3316 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
3317 else
3318 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` -o $lib'
3319 fi
3320 fi
3321 _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
3322 ;;
3323 esac
3324 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
3325 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
3326 ;;
3327 linux* | k*bsd*-gnu)
3328 case $cc_basename in
3329 KCC*)
3330 # Kuck and Associates, Inc. (KAI) C++ Compiler
3331
3332 # KCC will only create a shared library if the output file
3333 # ends with ".so" (or ".sl" for HP-UX), so rename the library
3334 # to its proper name (with version) after linking.
3335 _LT_AC_TAGVAR(archive_cmds, $1)='tempext=`echo $shared_ext | $SED -e '\''s/\([[^()0-9A-Za-z{}]]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
3336 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='tempext=`echo $shared_ext | $SED -e '\''s/\([[^()0-9A-Za-z{}]]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib ${wl}-retain-symbols-file,$export_symbols; mv \$templib $lib'
3337 # Commands to make compiler produce verbose output that lists
3338 # what "hidden" libraries, object files and flags are used when
3339 # linking a shared library.
3340 #
3341 # There doesn't appear to be a way to prevent this compiler from
3342 # explicitly linking system object files so we need to strip them
3343 # from the output so that they don't get included in the library
3344 # dependencies.
3345 output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | grep "ld"`; rm -f libconftest$shared_ext; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
3346
3347 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath,$libdir'
3348 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
3349
3350 # Archives containing C++ object files must be created using
3351 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
3352 _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs'
3353 ;;
3354 icpc*)
3355 # Intel C++
3356 with_gnu_ld=yes
3357 # version 8.0 and above of icpc choke on multiply defined symbols
3358 # if we add $predep_objects and $postdep_objects, however 7.1 and
3359 # earlier do not add the objects themselves.
3360 case `$CC -V 2>&1` in
3361 *"Version 7."*)
3362 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
3363 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
3364 ;;
3365 *) # Version 8.0 or newer
3366 tmp_idyn=
3367 case $host_cpu in
3368 ia64*) tmp_idyn=' -i_dynamic';;
3369 esac
3370 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
3371 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
3372 ;;
3373 esac
3374 _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
3375 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
3376 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
3377 _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
3378 ;;
3379 pgCC*)
3380 # Portland Group C++ compiler
3381 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
3382 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
3383
3384 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir'
3385 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
3386 _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
3387 ;;
3388 cxx*)
3389 # Compaq C++
3390 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
3391 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib ${wl}-retain-symbols-file $wl$export_symbols'
3392
3393 runpath_var=LD_RUN_PATH
3394 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
3395 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
3396
3397 # Commands to make compiler produce verbose output that lists
3398 # what "hidden" libraries, object files and flags are used when
3399 # linking a shared library.
3400 #
3401 # There doesn't appear to be a way to prevent this compiler from
3402 # explicitly linking system object files so we need to strip them
3403 # from the output so that they don't get included in the library
3404 # dependencies.
3405 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
3406 ;;
3407 *)
3408 case `$CC -V 2>&1 | sed 5q` in
3409 *Sun\ C*)
3410 # Sun C++ 5.9
3411 _LT_AC_TAGVAR(no_undefined_flag, $1)=' -zdefs'
3412 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
3413 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file ${wl}$export_symbols'
3414 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
3415 _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
3416
3417 # Not sure whether something based on
3418 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
3419 # would be better.
3420 output_verbose_link_cmd='echo'
3421
3422 # Archives containing C++ object files must be created using
3423 # "CC -xar", where "CC" is the Sun C++ compiler. This is
3424 # necessary to make sure instantiated templates are included
3425 # in the archive.
3426 _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs'
3427 ;;
3428 esac
3429 ;;
3430 esac
3431 ;;
3432 lynxos*)
3433 # FIXME: insert proper C++ library support
3434 _LT_AC_TAGVAR(ld_shlibs, $1)=no
3435 ;;
3436 m88k*)
3437 # FIXME: insert proper C++ library support
3438 _LT_AC_TAGVAR(ld_shlibs, $1)=no
3439 ;;
3440 mvs*)
3441 case $cc_basename in
3442 cxx*)
3443 # FIXME: insert proper C++ library support
3444 _LT_AC_TAGVAR(ld_shlibs, $1)=no
3445 ;;
3446 *)
3447 # FIXME: insert proper C++ library support
3448 _LT_AC_TAGVAR(ld_shlibs, $1)=no
3449 ;;
3450 esac
3451 ;;
3452 netbsd*)
3453 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
3454 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
3455 wlarc=
3456 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
3457 _LT_AC_TAGVAR(hardcode_direct, $1)=yes
3458 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
3459 fi
3460 # Workaround some broken pre-1.5 toolchains
3461 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
3462 ;;
3463 openbsd2*)
3464 # C++ shared libraries are fairly broken
3465 _LT_AC_TAGVAR(ld_shlibs, $1)=no
3466 ;;
3467 openbsd*)
3468 if test -f /usr/libexec/ld.so; then
3469 _LT_AC_TAGVAR(hardcode_direct, $1)=yes
3470 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
3471 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
3472 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
3473 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
3474 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
3475 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
3476 _LT_AC_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
3477 fi
3478 output_verbose_link_cmd='echo'
3479 else
3480 _LT_AC_TAGVAR(ld_shlibs, $1)=no
3481 fi
3482 ;;
3483 osf3*)
3484 case $cc_basename in
3485 KCC*)
3486 # Kuck and Associates, Inc. (KAI) C++ Compiler
3487
3488 # KCC will only create a shared library if the output file
3489 # ends with ".so" (or ".sl" for HP-UX), so rename the library
3490 # to its proper name (with version) after linking.
3491 _LT_AC_TAGVAR(archive_cmds, $1)='tempext=`echo $shared_ext | $SED -e '\''s/\([[^()0-9A-Za-z{}]]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
3492
3493 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
3494 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
3495
3496 # Archives containing C++ object files must be created using
3497 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
3498 _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs'
3499
3500 ;;
3501 RCC*)
3502 # Rational C++ 2.4.1
3503 # FIXME: insert proper C++ library support
3504 _LT_AC_TAGVAR(ld_shlibs, $1)=no
3505 ;;
3506 cxx*)
3507 _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
3508 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && echo ${wl}-set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
3509
3510 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
3511 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
3512
3513 # Commands to make compiler produce verbose output that lists
3514 # what "hidden" libraries, object files and flags are used when
3515 # linking a shared library.
3516 #
3517 # There doesn't appear to be a way to prevent this compiler from
3518 # explicitly linking system object files so we need to strip them
3519 # from the output so that they don't get included in the library
3520 # dependencies.
3521 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
3522 ;;
3523 *)
3524 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
3525 _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
3526 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
3527
3528 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
3529 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
3530
3531 # Commands to make compiler produce verbose output that lists
3532 # what "hidden" libraries, object files and flags are used when
3533 # linking a shared library.
3534 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
3535
3536 else
3537 # FIXME: insert proper C++ library support
3538 _LT_AC_TAGVAR(ld_shlibs, $1)=no
3539 fi
3540 ;;
3541 esac
3542 ;;
3543 osf4* | osf5*)
3544 case $cc_basename in
3545 KCC*)
3546 # Kuck and Associates, Inc. (KAI) C++ Compiler
3547
3548 # KCC will only create a shared library if the output file
3549 # ends with ".so" (or ".sl" for HP-UX), so rename the library
3550 # to its proper name (with version) after linking.
3551 _LT_AC_TAGVAR(archive_cmds, $1)='tempext=`echo $shared_ext | $SED -e '\''s/\([[^()0-9A-Za-z{}]]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
3552
3553 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
3554 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
3555
3556 # Archives containing C++ object files must be created using
3557 # the KAI C++ compiler.
3558 _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -o $oldlib $oldobjs'
3559 ;;
3560 RCC*)
3561 # Rational C++ 2.4.1
3562 # FIXME: insert proper C++ library support
3563 _LT_AC_TAGVAR(ld_shlibs, $1)=no
3564 ;;
3565 cxx*)
3566 _LT_AC_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
3567 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
3568 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
3569 echo "-hidden">> $lib.exp~
3570 $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname -Wl,-input -Wl,$lib.exp `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~
3571 $rm $lib.exp'
3572
3573 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
3574 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
3575
3576 # Commands to make compiler produce verbose output that lists
3577 # what "hidden" libraries, object files and flags are used when
3578 # linking a shared library.
3579 #
3580 # There doesn't appear to be a way to prevent this compiler from
3581 # explicitly linking system object files so we need to strip them
3582 # from the output so that they don't get included in the library
3583 # dependencies.
3584 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
3585 ;;
3586 *)
3587 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
3588 _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
3589 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
3590
3591 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
3592 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
3593
3594 # Commands to make compiler produce verbose output that lists
3595 # what "hidden" libraries, object files and flags are used when
3596 # linking a shared library.
3597 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
3598
3599 else
3600 # FIXME: insert proper C++ library support
3601 _LT_AC_TAGVAR(ld_shlibs, $1)=no
3602 fi
3603 ;;
3604 esac
3605 ;;
3606 psos*)
3607 # FIXME: insert proper C++ library support
3608 _LT_AC_TAGVAR(ld_shlibs, $1)=no
3609 ;;
3610 sunos4*)
3611 case $cc_basename in
3612 CC*)
3613 # Sun C++ 4.x
3614 # FIXME: insert proper C++ library support
3615 _LT_AC_TAGVAR(ld_shlibs, $1)=no
3616 ;;
3617 lcc*)
3618 # Lucid
3619 # FIXME: insert proper C++ library support
3620 _LT_AC_TAGVAR(ld_shlibs, $1)=no
3621 ;;
3622 *)
3623 # FIXME: insert proper C++ library support
3624 _LT_AC_TAGVAR(ld_shlibs, $1)=no
3625 ;;
3626 esac
3627 ;;
3628 solaris*)
3629 case $cc_basename in
3630 CC*)
3631 # Sun C++ 4.2, 5.x and Centerline C++
3632 _LT_AC_TAGVAR(archive_cmds_need_lc,$1)=yes
3633 _LT_AC_TAGVAR(no_undefined_flag, $1)=' -zdefs'
3634 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
3635 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
3636 $CC -G${allow_undefined_flag} ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
3637
3638 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
3639 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
3640 case $host_os in
3641 solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
3642 *)
3643 # The compiler driver will combine and reorder linker options,
3644 # but understands `-z linker_flag'.
3645 # Supported since Solaris 2.6 (maybe 2.5.1?)
3646 _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract'
3647 ;;
3648 esac
3649 _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
3650
3651 output_verbose_link_cmd='echo'
3652
3653 # Archives containing C++ object files must be created using
3654 # "CC -xar", where "CC" is the Sun C++ compiler. This is
3655 # necessary to make sure instantiated templates are included
3656 # in the archive.
3657 _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs'
3658 ;;
3659 gcx*)
3660 # Green Hills C++ Compiler
3661 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
3662
3663 # The C++ compiler must be used to create the archive.
3664 _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
3665 ;;
3666 *)
3667 # GNU C++ compiler with Solaris linker
3668 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
3669 _LT_AC_TAGVAR(no_undefined_flag, $1)=' ${wl}-z ${wl}defs'
3670 if $CC --version | grep -v '^2\.7' > /dev/null; then
3671 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
3672 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
3673 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
3674
3675 # Commands to make compiler produce verbose output that lists
3676 # what "hidden" libraries, object files and flags are used when
3677 # linking a shared library.
3678 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
3679 else
3680 # g++ 2.7 appears to require `-G' NOT `-shared' on this
3681 # platform.
3682 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
3683 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
3684 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
3685
3686 # Commands to make compiler produce verbose output that lists
3687 # what "hidden" libraries, object files and flags are used when
3688 # linking a shared library.
3689 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
3690 fi
3691
3692 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $wl$libdir'
3693 case $host_os in
3694 solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
3695 *)
3696 _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
3697 ;;
3698 esac
3699 fi
3700 ;;
3701 esac
3702 ;;
3703 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7* | sco3.2v5.0.[[024]]*)
3704 _LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
3705 _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
3706 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
3707 runpath_var='LD_RUN_PATH'
3708
3709 case $cc_basename in
3710 CC*)
3711 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
3712 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
3713 ;;
3714 *)
3715 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
3716 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
3717 ;;
3718 esac
3719 ;;
3720 sysv5* | sco3.2v5* | sco5v6*)
3721 # Note: We can NOT use -z defs as we might desire, because we do not
3722 # link with -lc, and that would cause any symbols used from libc to
3723 # always be unresolved, which means just about no library would
3724 # ever link correctly. If we're not using GNU ld we use -z text
3725 # though, which does catch some bad symbols but isn't as heavy-handed
3726 # as -z defs.
3727 # For security reasons, it is highly recommended that you always
3728 # use absolute paths for naming shared libraries, and exclude the
3729 # DT_RUNPATH tag from executables and libraries. But doing so
3730 # requires that you compile everything twice, which is a pain.
3731 # So that behaviour is only enabled if SCOABSPATH is set to a
3732 # non-empty value in the environment. Most likely only useful for
3733 # creating official distributions of packages.
3734 # This is a hack until libtool officially supports absolute path
3735 # names for shared libraries.
3736 _LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
3737 _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-z,nodefs'
3738 _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
3739 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
3740 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
3741 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=':'
3742 _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
3743 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport'
3744 runpath_var='LD_RUN_PATH'
3745
3746 case $cc_basename in
3747 CC*)
3748 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
3749 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
3750 ;;
3751 *)
3752 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
3753 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
3754 ;;
3755 esac
3756 ;;
3757 tandem*)
3758 case $cc_basename in
3759 NCC*)
3760 # NonStop-UX NCC 3.20
3761 # FIXME: insert proper C++ library support
3762 _LT_AC_TAGVAR(ld_shlibs, $1)=no
3763 ;;
3764 *)
3765 # FIXME: insert proper C++ library support
3766 _LT_AC_TAGVAR(ld_shlibs, $1)=no
3767 ;;
3768 esac
3769 ;;
3770 vxworks*)
3771 # FIXME: insert proper C++ library support
3772 _LT_AC_TAGVAR(ld_shlibs, $1)=no
3773 ;;
3774 *)
3775 # FIXME: insert proper C++ library support
3776 _LT_AC_TAGVAR(ld_shlibs, $1)=no
3777 ;;
3778 esac
3779 AC_MSG_RESULT([$_LT_AC_TAGVAR(ld_shlibs, $1)])
3780 test "$_LT_AC_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no
3781
3782 _LT_AC_TAGVAR(GCC, $1)="$GXX"
3783 _LT_AC_TAGVAR(LD, $1)="$LD"
3784
3785 AC_LIBTOOL_POSTDEP_PREDEP($1)
3786 AC_LIBTOOL_PROG_COMPILER_PIC($1)
3787 AC_LIBTOOL_PROG_CC_C_O($1)
3788 AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1)
3789 AC_LIBTOOL_PROG_LD_SHLIBS($1)
3790 AC_LIBTOOL_SYS_DYNAMIC_LINKER($1)
3791 AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1)
3792
3793 AC_LIBTOOL_CONFIG($1)
3794
3795 AC_LANG_POP
3796 CC=$lt_save_CC
3797 LDCXX=$LD
3798 LD=$lt_save_LD
3799 GCC=$lt_save_GCC
3800 with_gnu_ldcxx=$with_gnu_ld
3801 with_gnu_ld=$lt_save_with_gnu_ld
3802 lt_cv_path_LDCXX=$lt_cv_path_LD
3803 lt_cv_path_LD=$lt_save_path_LD
3804 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
3805 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
3806 ])# AC_LIBTOOL_LANG_CXX_CONFIG
3807
3808 # AC_LIBTOOL_POSTDEP_PREDEP([TAGNAME])
3809 # ------------------------------------
3810 # Figure out "hidden" library dependencies from verbose
3811 # compiler output when linking a shared library.
3812 # Parse the compiler output and extract the necessary
3813 # objects, libraries and library flags.
3814 AC_DEFUN([AC_LIBTOOL_POSTDEP_PREDEP],[
3815 dnl we can't use the lt_simple_compile_test_code here,
3816 dnl because it contains code intended for an executable,
3817 dnl not a library. It's possible we should let each
3818 dnl tag define a new lt_????_link_test_code variable,
3819 dnl but it's only used here...
3820 ifelse([$1],[],[cat > conftest.$ac_ext <<EOF
3821 int a;
3822 void foo (void) { a = 0; }
3823 EOF
3824 ],[$1],[CXX],[cat > conftest.$ac_ext <<EOF
3825 class Foo
3826 {
3827 public:
3828 Foo (void) { a = 0; }
3829 private:
3830 int a;
3831 };
3832 EOF
3833 ],[$1],[F77],[cat > conftest.$ac_ext <<EOF
3834 subroutine foo
3835 implicit none
3836 integer*4 a
3837 a=0
3838 return
3839 end
3840 EOF
3841 ],[$1],[GCJ],[cat > conftest.$ac_ext <<EOF
3842 public class foo {
3843 private int a;
3844 public void bar (void) {
3845 a = 0;
3846 }
3847 };
3848 EOF
3849 ])
3850 dnl Parse the compiler output and extract the necessary
3851 dnl objects, libraries and library flags.
3852 if AC_TRY_EVAL(ac_compile); then
3853 # Parse the compiler output and extract the necessary
3854 # objects, libraries and library flags.
3855
3856 # Sentinel used to keep track of whether or not we are before
3857 # the conftest object file.
3858 pre_test_object_deps_done=no
3859
3860 # The `*' in the case matches for architectures that use `case' in
3861 # $output_verbose_cmd can trigger glob expansion during the loop
3862 # eval without this substitution.
3863 output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
3864
3865 for p in `eval $output_verbose_link_cmd`; do
3866 case $p in
3867
3868 -L* | -R* | -l*)
3869 # Some compilers place space between "-{L,R}" and the path.
3870 # Remove the space.
3871 if test $p = "-L" \
3872 || test $p = "-R"; then
3873 prev=$p
3874 continue
3875 else
3876 prev=
3877 fi
3878
3879 if test "$pre_test_object_deps_done" = no; then
3880 case $p in
3881 -L* | -R*)
3882 # Internal compiler library paths should come after those
3883 # provided the user. The postdeps already come after the
3884 # user supplied libs so there is no need to process them.
3885 if test -z "$_LT_AC_TAGVAR(compiler_lib_search_path, $1)"; then
3886 _LT_AC_TAGVAR(compiler_lib_search_path, $1)="${prev}${p}"
3887 else
3888 _LT_AC_TAGVAR(compiler_lib_search_path, $1)="${_LT_AC_TAGVAR(compiler_lib_search_path, $1)} ${prev}${p}"
3889 fi
3890 ;;
3891 # The "-l" case would never come before the object being
3892 # linked, so don't bother handling this case.
3893 esac
3894 else
3895 if test -z "$_LT_AC_TAGVAR(postdeps, $1)"; then
3896 _LT_AC_TAGVAR(postdeps, $1)="${prev}${p}"
3897 else
3898 _LT_AC_TAGVAR(postdeps, $1)="${_LT_AC_TAGVAR(postdeps, $1)} ${prev}${p}"
3899 fi
3900 fi
3901 ;;
3902
3903 *.$objext)
3904 # This assumes that the test object file only shows up
3905 # once in the compiler output.
3906 if test "$p" = "conftest.$objext"; then
3907 pre_test_object_deps_done=yes
3908 continue
3909 fi
3910
3911 if test "$pre_test_object_deps_done" = no; then
3912 if test -z "$_LT_AC_TAGVAR(predep_objects, $1)"; then
3913 _LT_AC_TAGVAR(predep_objects, $1)="$p"
3914 else
3915 _LT_AC_TAGVAR(predep_objects, $1)="$_LT_AC_TAGVAR(predep_objects, $1) $p"
3916 fi
3917 else
3918 if test -z "$_LT_AC_TAGVAR(postdep_objects, $1)"; then
3919 _LT_AC_TAGVAR(postdep_objects, $1)="$p"
3920 else
3921 _LT_AC_TAGVAR(postdep_objects, $1)="$_LT_AC_TAGVAR(postdep_objects, $1) $p"
3922 fi
3923 fi
3924 ;;
3925
3926 *) ;; # Ignore the rest.
3927
3928 esac
3929 done
3930
3931 # Clean up.
3932 rm -f a.out a.exe
3933 else
3934 echo "libtool.m4: error: problem compiling $1 test program"
3935 fi
3936
3937 $rm -f confest.$objext
3938
3939 # PORTME: override above test on systems where it is broken
3940 ifelse([$1],[CXX],
3941 [case $host_os in
3942 interix[[3-9]]*)
3943 # Interix 3.5 installs completely hosed .la files for C++, so rather than
3944 # hack all around it, let's just trust "g++" to DTRT.
3945 _LT_AC_TAGVAR(predep_objects,$1)=
3946 _LT_AC_TAGVAR(postdep_objects,$1)=
3947 _LT_AC_TAGVAR(postdeps,$1)=
3948 ;;
3949
3950 linux*)
3951 case `$CC -V 2>&1 | sed 5q` in
3952 *Sun\ C*)
3953 # Sun C++ 5.9
3954 #
3955 # The more standards-conforming stlport4 library is
3956 # incompatible with the Cstd library. Avoid specifying
3957 # it if it's in CXXFLAGS. Ignore libCrun as
3958 # -library=stlport4 depends on it.
3959 case " $CXX $CXXFLAGS " in
3960 *" -library=stlport4 "*)
3961 solaris_use_stlport4=yes
3962 ;;
3963 esac
3964 if test "$solaris_use_stlport4" != yes; then
3965 _LT_AC_TAGVAR(postdeps,$1)='-library=Cstd -library=Crun'
3966 fi
3967 ;;
3968 esac
3969 ;;
3970
3971 solaris*)
3972 case $cc_basename in
3973 CC*)
3974 # The more standards-conforming stlport4 library is
3975 # incompatible with the Cstd library. Avoid specifying
3976 # it if it's in CXXFLAGS. Ignore libCrun as
3977 # -library=stlport4 depends on it.
3978 case " $CXX $CXXFLAGS " in
3979 *" -library=stlport4 "*)
3980 solaris_use_stlport4=yes
3981 ;;
3982 esac
3983
3984 # Adding this requires a known-good setup of shared libraries for
3985 # Sun compiler versions before 5.6, else PIC objects from an old
3986 # archive will be linked into the output, leading to subtle bugs.
3987 if test "$solaris_use_stlport4" != yes; then
3988 _LT_AC_TAGVAR(postdeps,$1)='-library=Cstd -library=Crun'
3989 fi
3990 ;;
3991 esac
3992 ;;
3993 esac
3994 ])
3995
3996 case " $_LT_AC_TAGVAR(postdeps, $1) " in
3997 *" -lc "*) _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no ;;
3998 esac
3999 ])# AC_LIBTOOL_POSTDEP_PREDEP
4000
4001 # AC_LIBTOOL_LANG_F77_CONFIG
4002 # --------------------------
4003 # Ensure that the configuration vars for the C compiler are
4004 # suitably defined. Those variables are subsequently used by
4005 # AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
4006 AC_DEFUN([AC_LIBTOOL_LANG_F77_CONFIG], [_LT_AC_LANG_F77_CONFIG(F77)])
4007 AC_DEFUN([_LT_AC_LANG_F77_CONFIG],
4008 [AC_REQUIRE([AC_PROG_F77])
4009 AC_LANG_PUSH(Fortran 77)
4010
4011 _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
4012 _LT_AC_TAGVAR(allow_undefined_flag, $1)=
4013 _LT_AC_TAGVAR(always_export_symbols, $1)=no
4014 _LT_AC_TAGVAR(archive_expsym_cmds, $1)=
4015 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)=
4016 _LT_AC_TAGVAR(hardcode_direct, $1)=no
4017 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=
4018 _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
4019 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
4020 _LT_AC_TAGVAR(hardcode_minus_L, $1)=no
4021 _LT_AC_TAGVAR(hardcode_automatic, $1)=no
4022 _LT_AC_TAGVAR(module_cmds, $1)=
4023 _LT_AC_TAGVAR(module_expsym_cmds, $1)=
4024 _LT_AC_TAGVAR(link_all_deplibs, $1)=unknown
4025 _LT_AC_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
4026 _LT_AC_TAGVAR(no_undefined_flag, $1)=
4027 _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
4028 _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=no
4029
4030 # Source file extension for f77 test sources.
4031 ac_ext=f
4032
4033 # Object file extension for compiled f77 test sources.
4034 objext=o
4035 _LT_AC_TAGVAR(objext, $1)=$objext
4036
4037 # Code to be used in simple compile tests
4038 lt_simple_compile_test_code="\
4039 subroutine t
4040 return
4041 end
4042 "
4043
4044 # Code to be used in simple link tests
4045 lt_simple_link_test_code="\
4046 program t
4047 end
4048 "
4049
4050 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
4051 _LT_AC_SYS_COMPILER
4052
4053 # save warnings/boilerplate of simple test code
4054 _LT_COMPILER_BOILERPLATE
4055 _LT_LINKER_BOILERPLATE
4056
4057 # Allow CC to be a program name with arguments.
4058 lt_save_CC="$CC"
4059 CC=${F77-"f77"}
4060 compiler=$CC
4061 _LT_AC_TAGVAR(compiler, $1)=$CC
4062 _LT_CC_BASENAME([$compiler])
4063
4064 AC_MSG_CHECKING([if libtool supports shared libraries])
4065 AC_MSG_RESULT([$can_build_shared])
4066
4067 AC_MSG_CHECKING([whether to build shared libraries])
4068 test "$can_build_shared" = "no" && enable_shared=no
4069
4070 # On AIX, shared libraries and static libraries use the same namespace, and
4071 # are all built from PIC.
4072 case $host_os in
4073 aix3*)
4074 test "$enable_shared" = yes && enable_static=no
4075 if test -n "$RANLIB"; then
4076 archive_cmds="$archive_cmds~\$RANLIB \$lib"
4077 postinstall_cmds='$RANLIB $lib'
4078 fi
4079 ;;
4080 aix4* | aix5*)
4081 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
4082 test "$enable_shared" = yes && enable_static=no
4083 fi
4084 ;;
4085 esac
4086 AC_MSG_RESULT([$enable_shared])
4087
4088 AC_MSG_CHECKING([whether to build static libraries])
4089 # Make sure either enable_shared or enable_static is yes.
4090 test "$enable_shared" = yes || enable_static=yes
4091 AC_MSG_RESULT([$enable_static])
4092
4093 _LT_AC_TAGVAR(GCC, $1)="$G77"
4094 _LT_AC_TAGVAR(LD, $1)="$LD"
4095
4096 AC_LIBTOOL_PROG_COMPILER_PIC($1)
4097 AC_LIBTOOL_PROG_CC_C_O($1)
4098 AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1)
4099 AC_LIBTOOL_PROG_LD_SHLIBS($1)
4100 AC_LIBTOOL_SYS_DYNAMIC_LINKER($1)
4101 AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1)
4102
4103 AC_LIBTOOL_CONFIG($1)
4104
4105 AC_LANG_POP
4106 CC="$lt_save_CC"
4107 ])# AC_LIBTOOL_LANG_F77_CONFIG
4108
4109
4110 # AC_LIBTOOL_LANG_GCJ_CONFIG
4111 # --------------------------
4112 # Ensure that the configuration vars for the C compiler are
4113 # suitably defined. Those variables are subsequently used by
4114 # AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
4115 AC_DEFUN([AC_LIBTOOL_LANG_GCJ_CONFIG], [_LT_AC_LANG_GCJ_CONFIG(GCJ)])
4116 AC_DEFUN([_LT_AC_LANG_GCJ_CONFIG],
4117 [AC_LANG_SAVE
4118
4119 # Source file extension for Java test sources.
4120 ac_ext=java
4121
4122 # Object file extension for compiled Java test sources.
4123 objext=o
4124 _LT_AC_TAGVAR(objext, $1)=$objext
4125
4126 # Code to be used in simple compile tests
4127 lt_simple_compile_test_code="class foo {}"
4128
4129 # Code to be used in simple link tests
4130 lt_simple_link_test_code='public class conftest { public static void main(String[[]] argv) {}; }'
4131
4132 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
4133 _LT_AC_SYS_COMPILER
4134
4135 # save warnings/boilerplate of simple test code
4136 _LT_COMPILER_BOILERPLATE
4137 _LT_LINKER_BOILERPLATE
4138
4139 # Allow CC to be a program name with arguments.
4140 lt_save_CC="$CC"
4141 CC=${GCJ-"gcj"}
4142 compiler=$CC
4143 _LT_AC_TAGVAR(compiler, $1)=$CC
4144 _LT_CC_BASENAME([$compiler])
4145
4146 # GCJ did not exist at the time GCC didn't implicitly link libc in.
4147 _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
4148
4149 _LT_AC_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
4150
4151 AC_LIBTOOL_PROG_COMPILER_NO_RTTI($1)
4152 AC_LIBTOOL_PROG_COMPILER_PIC($1)
4153 AC_LIBTOOL_PROG_CC_C_O($1)
4154 AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1)
4155 AC_LIBTOOL_PROG_LD_SHLIBS($1)
4156 AC_LIBTOOL_SYS_DYNAMIC_LINKER($1)
4157 AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1)
4158
4159 AC_LIBTOOL_CONFIG($1)
4160
4161 AC_LANG_RESTORE
4162 CC="$lt_save_CC"
4163 ])# AC_LIBTOOL_LANG_GCJ_CONFIG
4164
4165
4166 # AC_LIBTOOL_LANG_RC_CONFIG
4167 # -------------------------
4168 # Ensure that the configuration vars for the Windows resource compiler are
4169 # suitably defined. Those variables are subsequently used by
4170 # AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
4171 AC_DEFUN([AC_LIBTOOL_LANG_RC_CONFIG], [_LT_AC_LANG_RC_CONFIG(RC)])
4172 AC_DEFUN([_LT_AC_LANG_RC_CONFIG],
4173 [AC_LANG_SAVE
4174
4175 # Source file extension for RC test sources.
4176 ac_ext=rc
4177
4178 # Object file extension for compiled RC test sources.
4179 objext=o
4180 _LT_AC_TAGVAR(objext, $1)=$objext
4181
4182 # Code to be used in simple compile tests
4183 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
4184
4185 # Code to be used in simple link tests
4186 lt_simple_link_test_code="$lt_simple_compile_test_code"
4187
4188 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
4189 _LT_AC_SYS_COMPILER
4190
4191 # save warnings/boilerplate of simple test code
4192 _LT_COMPILER_BOILERPLATE
4193 _LT_LINKER_BOILERPLATE
4194
4195 # Allow CC to be a program name with arguments.
4196 lt_save_CC="$CC"
4197 CC=${RC-"windres"}
4198 compiler=$CC
4199 _LT_AC_TAGVAR(compiler, $1)=$CC
4200 _LT_CC_BASENAME([$compiler])
4201 _LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes
4202
4203 AC_LIBTOOL_CONFIG($1)
4204
4205 AC_LANG_RESTORE
4206 CC="$lt_save_CC"
4207 ])# AC_LIBTOOL_LANG_RC_CONFIG
4208
4209
4210 # AC_LIBTOOL_CONFIG([TAGNAME])
4211 # ----------------------------
4212 # If TAGNAME is not passed, then create an initial libtool script
4213 # with a default configuration from the untagged config vars. Otherwise
4214 # add code to config.status for appending the configuration named by
4215 # TAGNAME from the matching tagged config vars.
4216 AC_DEFUN([AC_LIBTOOL_CONFIG],
4217 [# The else clause should only fire when bootstrapping the
4218 # libtool distribution, otherwise you forgot to ship ltmain.sh
4219 # with your package, and you will get complaints that there are
4220 # no rules to generate ltmain.sh.
4221 if test -f "$ltmain"; then
4222 # See if we are running on zsh, and set the options which allow our commands through
4223 # without removal of \ escapes.
4224 if test -n "${ZSH_VERSION+set}" ; then
4225 setopt NO_GLOB_SUBST
4226 fi
4227 # Now quote all the things that may contain metacharacters while being
4228 # careful not to overquote the AC_SUBSTed values. We take copies of the
4229 # variables and quote the copies for generation of the libtool script.
4230 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
4231 SED SHELL STRIP \
4232 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
4233 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
4234 deplibs_check_method reload_flag reload_cmds need_locks \
4235 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
4236 lt_cv_sys_global_symbol_to_c_name_address \
4237 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
4238 old_postinstall_cmds old_postuninstall_cmds \
4239 _LT_AC_TAGVAR(compiler, $1) \
4240 _LT_AC_TAGVAR(CC, $1) \
4241 _LT_AC_TAGVAR(LD, $1) \
4242 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1) \
4243 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1) \
4244 _LT_AC_TAGVAR(lt_prog_compiler_static, $1) \
4245 _LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1) \
4246 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1) \
4247 _LT_AC_TAGVAR(thread_safe_flag_spec, $1) \
4248 _LT_AC_TAGVAR(whole_archive_flag_spec, $1) \
4249 _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1) \
4250 _LT_AC_TAGVAR(old_archive_cmds, $1) \
4251 _LT_AC_TAGVAR(old_archive_from_new_cmds, $1) \
4252 _LT_AC_TAGVAR(predep_objects, $1) \
4253 _LT_AC_TAGVAR(postdep_objects, $1) \
4254 _LT_AC_TAGVAR(predeps, $1) \
4255 _LT_AC_TAGVAR(postdeps, $1) \
4256 _LT_AC_TAGVAR(compiler_lib_search_path, $1) \
4257 _LT_AC_TAGVAR(archive_cmds, $1) \
4258 _LT_AC_TAGVAR(archive_expsym_cmds, $1) \
4259 _LT_AC_TAGVAR(postinstall_cmds, $1) \
4260 _LT_AC_TAGVAR(postuninstall_cmds, $1) \
4261 _LT_AC_TAGVAR(old_archive_from_expsyms_cmds, $1) \
4262 _LT_AC_TAGVAR(allow_undefined_flag, $1) \
4263 _LT_AC_TAGVAR(no_undefined_flag, $1) \
4264 _LT_AC_TAGVAR(export_symbols_cmds, $1) \
4265 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1) \
4266 _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1) \
4267 _LT_AC_TAGVAR(hardcode_libdir_separator, $1) \
4268 _LT_AC_TAGVAR(hardcode_automatic, $1) \
4269 _LT_AC_TAGVAR(module_cmds, $1) \
4270 _LT_AC_TAGVAR(module_expsym_cmds, $1) \
4271 _LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1) \
4272 _LT_AC_TAGVAR(fix_srcfile_path, $1) \
4273 _LT_AC_TAGVAR(exclude_expsyms, $1) \
4274 _LT_AC_TAGVAR(include_expsyms, $1); do
4275
4276 case $var in
4277 _LT_AC_TAGVAR(old_archive_cmds, $1) | \
4278 _LT_AC_TAGVAR(old_archive_from_new_cmds, $1) | \
4279 _LT_AC_TAGVAR(archive_cmds, $1) | \
4280 _LT_AC_TAGVAR(archive_expsym_cmds, $1) | \
4281 _LT_AC_TAGVAR(module_cmds, $1) | \
4282 _LT_AC_TAGVAR(module_expsym_cmds, $1) | \
4283 _LT_AC_TAGVAR(old_archive_from_expsyms_cmds, $1) | \
4284 _LT_AC_TAGVAR(export_symbols_cmds, $1) | \
4285 extract_expsyms_cmds | reload_cmds | finish_cmds | \
4286 postinstall_cmds | postuninstall_cmds | \
4287 old_postinstall_cmds | old_postuninstall_cmds | \
4288 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
4289 # Double-quote double-evaled strings.
4290 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
4291 ;;
4292 *)
4293 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
4294 ;;
4295 esac
4296 done
4297
4298 case $lt_echo in
4299 *'\[$]0 --fallback-echo"')
4300 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\[$]0 --fallback-echo"[$]/[$]0 --fallback-echo"/'`
4301 ;;
4302 esac
4303
4304 ifelse([$1], [],
4305 [cfgfile="${ofile}T"
4306 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
4307 $rm -f "$cfgfile"
4308 AC_MSG_NOTICE([creating $ofile])],
4309 [cfgfile="$ofile"])
4310
4311 cat <<__EOF__ >> "$cfgfile"
4312 ifelse([$1], [],
4313 [#! $SHELL
4314
4315 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
4316 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
4317 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
4318 #
4319 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007
4320 # Free Software Foundation, Inc.
4321 #
4322 # This file is part of GNU Libtool:
4323 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
4324 #
4325 # This program is free software; you can redistribute it and/or modify
4326 # it under the terms of the GNU General Public License as published by
4327 # the Free Software Foundation; either version 2 of the License, or
4328 # (at your option) any later version.
4329 #
4330 # This program is distributed in the hope that it will be useful, but
4331 # WITHOUT ANY WARRANTY; without even the implied warranty of
4332 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
4333 # General Public License for more details.
4334 #
4335 # You should have received a copy of the GNU General Public License
4336 # along with this program; if not, write to the Free Software
4337 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
4338 #
4339 # As a special exception to the GNU General Public License, if you
4340 # distribute this file as part of a program that contains a
4341 # configuration script generated by Autoconf, you may include it under
4342 # the same distribution terms that you use for the rest of that program.
4343
4344 # A sed program that does not truncate output.
4345 SED=$lt_SED
4346
4347 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
4348 Xsed="$SED -e 1s/^X//"
4349
4350 # The HP-UX ksh and POSIX shell print the target directory to stdout
4351 # if CDPATH is set.
4352 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
4353
4354 # The names of the tagged configurations supported by this script.
4355 available_tags=
4356
4357 # ### BEGIN LIBTOOL CONFIG],
4358 [# ### BEGIN LIBTOOL TAG CONFIG: $tagname])
4359
4360 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
4361
4362 # Shell to use when invoking shell scripts.
4363 SHELL=$lt_SHELL
4364
4365 # Whether or not to build shared libraries.
4366 build_libtool_libs=$enable_shared
4367
4368 # Whether or not to build static libraries.
4369 build_old_libs=$enable_static
4370
4371 # Whether or not to add -lc for building shared libraries.
4372 build_libtool_need_lc=$_LT_AC_TAGVAR(archive_cmds_need_lc, $1)
4373
4374 # Whether or not to disallow shared libs when runtime libs are static
4375 allow_libtool_libs_with_static_runtimes=$_LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)
4376
4377 # Whether or not to optimize for fast installation.
4378 fast_install=$enable_fast_install
4379
4380 # The host system.
4381 host_alias=$host_alias
4382 host=$host
4383 host_os=$host_os
4384
4385 # The build system.
4386 build_alias=$build_alias
4387 build=$build
4388 build_os=$build_os
4389
4390 # An echo program that does not interpret backslashes.
4391 echo=$lt_echo
4392
4393 # The archiver.
4394 AR=$lt_AR
4395 AR_FLAGS=$lt_AR_FLAGS
4396
4397 # A C compiler.
4398 LTCC=$lt_LTCC
4399
4400 # LTCC compiler flags.
4401 LTCFLAGS=$lt_LTCFLAGS
4402
4403 # A language-specific compiler.
4404 CC=$lt_[]_LT_AC_TAGVAR(compiler, $1)
4405
4406 # Is the compiler the GNU C compiler?
4407 with_gcc=$_LT_AC_TAGVAR(GCC, $1)
4408
4409 # An ERE matcher.
4410 EGREP=$lt_EGREP
4411
4412 # The linker used to build libraries.
4413 LD=$lt_[]_LT_AC_TAGVAR(LD, $1)
4414
4415 # Whether we need hard or soft links.
4416 LN_S=$lt_LN_S
4417
4418 # A BSD-compatible nm program.
4419 NM=$lt_NM
4420
4421 # A symbol stripping program
4422 STRIP=$lt_STRIP
4423
4424 # Used to examine libraries when file_magic_cmd begins "file"
4425 MAGIC_CMD=$MAGIC_CMD
4426
4427 # Used on cygwin: DLL creation program.
4428 DLLTOOL="$DLLTOOL"
4429
4430 # Used on cygwin: object dumper.
4431 OBJDUMP="$OBJDUMP"
4432
4433 # Used on cygwin: assembler.
4434 AS="$AS"
4435
4436 # The name of the directory that contains temporary libtool files.
4437 objdir=$objdir
4438
4439 # How to create reloadable object files.
4440 reload_flag=$lt_reload_flag
4441 reload_cmds=$lt_reload_cmds
4442
4443 # How to pass a linker flag through the compiler.
4444 wl=$lt_[]_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)
4445
4446 # Object file suffix (normally "o").
4447 objext="$ac_objext"
4448
4449 # Old archive suffix (normally "a").
4450 libext="$libext"
4451
4452 # Shared library suffix (normally ".so").
4453 shrext_cmds='$shrext_cmds'
4454
4455 # Executable file suffix (normally "").
4456 exeext="$exeext"
4457
4458 # Additional compiler flags for building library objects.
4459 pic_flag=$lt_[]_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)
4460 pic_mode=$pic_mode
4461
4462 # What is the maximum length of a command?
4463 max_cmd_len=$lt_cv_sys_max_cmd_len
4464
4465 # Does compiler simultaneously support -c and -o options?
4466 compiler_c_o=$lt_[]_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)
4467
4468 # Must we lock files when doing compilation?
4469 need_locks=$lt_need_locks
4470
4471 # Do we need the lib prefix for modules?
4472 need_lib_prefix=$need_lib_prefix
4473
4474 # Do we need a version for libraries?
4475 need_version=$need_version
4476
4477 # Whether dlopen is supported.
4478 dlopen_support=$enable_dlopen
4479
4480 # Whether dlopen of programs is supported.
4481 dlopen_self=$enable_dlopen_self
4482
4483 # Whether dlopen of statically linked programs is supported.
4484 dlopen_self_static=$enable_dlopen_self_static
4485
4486 # Compiler flag to prevent dynamic linking.
4487 link_static_flag=$lt_[]_LT_AC_TAGVAR(lt_prog_compiler_static, $1)
4488
4489 # Compiler flag to turn off builtin functions.
4490 no_builtin_flag=$lt_[]_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)
4491
4492 # Compiler flag to allow reflexive dlopens.
4493 export_dynamic_flag_spec=$lt_[]_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)
4494
4495 # Compiler flag to generate shared objects directly from archives.
4496 whole_archive_flag_spec=$lt_[]_LT_AC_TAGVAR(whole_archive_flag_spec, $1)
4497
4498 # Compiler flag to generate thread-safe objects.
4499 thread_safe_flag_spec=$lt_[]_LT_AC_TAGVAR(thread_safe_flag_spec, $1)
4500
4501 # Library versioning type.
4502 version_type=$version_type
4503
4504 # Format of library name prefix.
4505 libname_spec=$lt_libname_spec
4506
4507 # List of archive names. First name is the real one, the rest are links.
4508 # The last name is the one that the linker finds with -lNAME.
4509 library_names_spec=$lt_library_names_spec
4510
4511 # The coded name of the library, if different from the real name.
4512 soname_spec=$lt_soname_spec
4513
4514 # Commands used to build and install an old-style archive.
4515 RANLIB=$lt_RANLIB
4516 old_archive_cmds=$lt_[]_LT_AC_TAGVAR(old_archive_cmds, $1)
4517 old_postinstall_cmds=$lt_old_postinstall_cmds
4518 old_postuninstall_cmds=$lt_old_postuninstall_cmds
4519
4520 # Create an old-style archive from a shared archive.
4521 old_archive_from_new_cmds=$lt_[]_LT_AC_TAGVAR(old_archive_from_new_cmds, $1)
4522
4523 # Create a temporary old-style archive to link instead of a shared archive.
4524 old_archive_from_expsyms_cmds=$lt_[]_LT_AC_TAGVAR(old_archive_from_expsyms_cmds, $1)
4525
4526 # Commands used to build and install a shared archive.
4527 archive_cmds=$lt_[]_LT_AC_TAGVAR(archive_cmds, $1)
4528 archive_expsym_cmds=$lt_[]_LT_AC_TAGVAR(archive_expsym_cmds, $1)
4529 postinstall_cmds=$lt_postinstall_cmds
4530 postuninstall_cmds=$lt_postuninstall_cmds
4531
4532 # Commands used to build a loadable module (assumed same as above if empty)
4533 module_cmds=$lt_[]_LT_AC_TAGVAR(module_cmds, $1)
4534 module_expsym_cmds=$lt_[]_LT_AC_TAGVAR(module_expsym_cmds, $1)
4535
4536 # Commands to strip libraries.
4537 old_striplib=$lt_old_striplib
4538 striplib=$lt_striplib
4539
4540 # Dependencies to place before the objects being linked to create a
4541 # shared library.
4542 predep_objects=$lt_[]_LT_AC_TAGVAR(predep_objects, $1)
4543
4544 # Dependencies to place after the objects being linked to create a
4545 # shared library.
4546 postdep_objects=$lt_[]_LT_AC_TAGVAR(postdep_objects, $1)
4547
4548 # Dependencies to place before the objects being linked to create a
4549 # shared library.
4550 predeps=$lt_[]_LT_AC_TAGVAR(predeps, $1)
4551
4552 # Dependencies to place after the objects being linked to create a
4553 # shared library.
4554 postdeps=$lt_[]_LT_AC_TAGVAR(postdeps, $1)
4555
4556 # The library search path used internally by the compiler when linking
4557 # a shared library.
4558 compiler_lib_search_path=$lt_[]_LT_AC_TAGVAR(compiler_lib_search_path, $1)
4559
4560 # Method to check whether dependent libraries are shared objects.
4561 deplibs_check_method=$lt_deplibs_check_method
4562
4563 # Command to use when deplibs_check_method == file_magic.
4564 file_magic_cmd=$lt_file_magic_cmd
4565
4566 # Flag that allows shared libraries with undefined symbols to be built.
4567 allow_undefined_flag=$lt_[]_LT_AC_TAGVAR(allow_undefined_flag, $1)
4568
4569 # Flag that forces no undefined symbols.
4570 no_undefined_flag=$lt_[]_LT_AC_TAGVAR(no_undefined_flag, $1)
4571
4572 # Commands used to finish a libtool library installation in a directory.
4573 finish_cmds=$lt_finish_cmds
4574
4575 # Same as above, but a single script fragment to be evaled but not shown.
4576 finish_eval=$lt_finish_eval
4577
4578 # Take the output of nm and produce a listing of raw symbols and C names.
4579 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
4580
4581 # Transform the output of nm in a proper C declaration
4582 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
4583
4584 # Transform the output of nm in a C name address pair
4585 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
4586
4587 # This is the shared library runtime path variable.
4588 runpath_var=$runpath_var
4589
4590 # This is the shared library path variable.
4591 shlibpath_var=$shlibpath_var
4592
4593 # Is shlibpath searched before the hard-coded library search path?
4594 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
4595
4596 # How to hardcode a shared library path into an executable.
4597 hardcode_action=$_LT_AC_TAGVAR(hardcode_action, $1)
4598
4599 # Whether we should hardcode library paths into libraries.
4600 hardcode_into_libs=$hardcode_into_libs
4601
4602 # Flag to hardcode \$libdir into a binary during linking.
4603 # This must work even if \$libdir does not exist.
4604 hardcode_libdir_flag_spec=$lt_[]_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)
4605
4606 # If ld is used when linking, flag to hardcode \$libdir into
4607 # a binary during linking. This must work even if \$libdir does
4608 # not exist.
4609 hardcode_libdir_flag_spec_ld=$lt_[]_LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)
4610
4611 # Whether we need a single -rpath flag with a separated argument.
4612 hardcode_libdir_separator=$lt_[]_LT_AC_TAGVAR(hardcode_libdir_separator, $1)
4613
4614 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
4615 # resulting binary.
4616 hardcode_direct=$_LT_AC_TAGVAR(hardcode_direct, $1)
4617
4618 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
4619 # resulting binary.
4620 hardcode_minus_L=$_LT_AC_TAGVAR(hardcode_minus_L, $1)
4621
4622 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
4623 # the resulting binary.
4624 hardcode_shlibpath_var=$_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)
4625
4626 # Set to yes if building a shared library automatically hardcodes DIR into the library
4627 # and all subsequent libraries and executables linked against it.
4628 hardcode_automatic=$_LT_AC_TAGVAR(hardcode_automatic, $1)
4629
4630 # Variables whose values should be saved in libtool wrapper scripts and
4631 # restored at relink time.
4632 variables_saved_for_relink="$variables_saved_for_relink"
4633
4634 # Whether libtool must link a program against all its dependency libraries.
4635 link_all_deplibs=$_LT_AC_TAGVAR(link_all_deplibs, $1)
4636
4637 # Compile-time system search path for libraries
4638 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
4639
4640 # Run-time system search path for libraries
4641 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
4642
4643 # Fix the shell variable \$srcfile for the compiler.
4644 fix_srcfile_path=$lt_fix_srcfile_path
4645
4646 # Set to yes if exported symbols are required.
4647 always_export_symbols=$_LT_AC_TAGVAR(always_export_symbols, $1)
4648
4649 # The commands to list exported symbols.
4650 export_symbols_cmds=$lt_[]_LT_AC_TAGVAR(export_symbols_cmds, $1)
4651
4652 # The commands to extract the exported symbol list from a shared archive.
4653 extract_expsyms_cmds=$lt_extract_expsyms_cmds
4654
4655 # Symbols that should not be listed in the preloaded symbols.
4656 exclude_expsyms=$lt_[]_LT_AC_TAGVAR(exclude_expsyms, $1)
4657
4658 # Symbols that must always be exported.
4659 include_expsyms=$lt_[]_LT_AC_TAGVAR(include_expsyms, $1)
4660
4661 ifelse([$1],[],
4662 [# ### END LIBTOOL CONFIG],
4663 [# ### END LIBTOOL TAG CONFIG: $tagname])
4664
4665 __EOF__
4666
4667 ifelse([$1],[], [
4668 case $host_os in
4669 aix3*)
4670 cat <<\EOF >> "$cfgfile"
4671
4672 # AIX sometimes has problems with the GCC collect2 program. For some
4673 # reason, if we set the COLLECT_NAMES environment variable, the problems
4674 # vanish in a puff of smoke.
4675 if test "X${COLLECT_NAMES+set}" != Xset; then
4676 COLLECT_NAMES=
4677 export COLLECT_NAMES
4678 fi
4679 EOF
4680 ;;
4681 esac
4682
4683 # We use sed instead of cat because bash on DJGPP gets confused if
4684 # if finds mixed CR/LF and LF-only lines. Since sed operates in
4685 # text mode, it properly converts lines to CR/LF. This bash problem
4686 # is reportedly fixed, but why not run on old versions too?
4687 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
4688
4689 mv -f "$cfgfile" "$ofile" || \
4690 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
4691 chmod +x "$ofile"
4692 ])
4693 else
4694 # If there is no Makefile yet, we rely on a make rule to execute
4695 # `config.status --recheck' to rerun these tests and create the
4696 # libtool script then.
4697 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
4698 if test -f "$ltmain_in"; then
4699 test -f Makefile && make "$ltmain"
4700 fi
4701 fi
4702 ])# AC_LIBTOOL_CONFIG
4703
4704
4705 # AC_LIBTOOL_PROG_COMPILER_NO_RTTI([TAGNAME])
4706 # -------------------------------------------
4707 AC_DEFUN([AC_LIBTOOL_PROG_COMPILER_NO_RTTI],
4708 [AC_REQUIRE([_LT_AC_SYS_COMPILER])dnl
4709
4710 _LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=
3279 AC_SUBST([LIBM])
3280 ])# LT_LIB_M
3281
3282 # Old name:
3283 AU_ALIAS([AC_CHECK_LIBM], [LT_LIB_M])
3284 dnl aclocal-1.4 backwards compatibility:
3285 dnl AC_DEFUN([AC_CHECK_LIBM], [])
3286
3287
3288 # _LT_COMPILER_NO_RTTI([TAGNAME])
3289 # -------------------------------
3290 m4_defun([_LT_COMPILER_NO_RTTI],
3291 [m4_require([_LT_TAG_COMPILER])dnl
3292
3293 _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=
47113294
47123295 if test "$GCC" = yes; then
4713 _LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin'
4714
4715 AC_LIBTOOL_COMPILER_OPTION([if $compiler supports -fno-rtti -fno-exceptions],
3296 _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin'
3297
3298 _LT_COMPILER_OPTION([if $compiler supports -fno-rtti -fno-exceptions],
47163299 lt_cv_prog_compiler_rtti_exceptions,
47173300 [-fno-rtti -fno-exceptions], [],
4718 [_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)="$_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1) -fno-rtti -fno-exceptions"])
3301 [_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)="$_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1) -fno-rtti -fno-exceptions"])
47193302 fi
4720 ])# AC_LIBTOOL_PROG_COMPILER_NO_RTTI
4721
4722
4723 # AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE
4724 # ---------------------------------
4725 AC_DEFUN([AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE],
4726 [AC_REQUIRE([AC_CANONICAL_HOST])
4727 AC_REQUIRE([LT_AC_PROG_SED])
4728 AC_REQUIRE([AC_PROG_NM])
4729 AC_REQUIRE([AC_OBJEXT])
3303 _LT_TAGDECL([no_builtin_flag], [lt_prog_compiler_no_builtin_flag], [1],
3304 [Compiler flag to turn off builtin functions])
3305 ])# _LT_COMPILER_NO_RTTI
3306
3307
3308 # _LT_CMD_GLOBAL_SYMBOLS
3309 # ----------------------
3310 m4_defun([_LT_CMD_GLOBAL_SYMBOLS],
3311 [AC_REQUIRE([AC_CANONICAL_HOST])dnl
3312 AC_REQUIRE([AC_PROG_CC])dnl
3313 AC_REQUIRE([LT_PATH_NM])dnl
3314 AC_REQUIRE([LT_PATH_LD])dnl
3315 m4_require([_LT_DECL_SED])dnl
3316 m4_require([_LT_DECL_EGREP])dnl
3317 m4_require([_LT_TAG_COMPILER])dnl
3318
47303319 # Check for command to grab the raw symbol name followed by C symbol from nm.
47313320 AC_MSG_CHECKING([command to parse $NM output from $compiler object])
47323321 AC_CACHE_VAL([lt_cv_sys_global_symbol_pipe],
47403329 # Regexp to match symbols that can be accessed directly from C.
47413330 sympat='\([[_A-Za-z]][[_A-Za-z0-9]]*\)'
47423331
4743 # Transform an extracted symbol line into a proper C declaration
4744 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
4745
4746 # Transform an extracted symbol line into symbol name and symbol address
4747 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([[^ ]]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode \([[^ ]]*\) \([[^ ]]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
4748
47493332 # Define system-specific variables.
47503333 case $host_os in
47513334 aix*)
47523335 symcode='[[BCDT]]'
47533336 ;;
4754 cygwin* | mingw* | pw32*)
3337 cygwin* | mingw* | pw32* | cegcc*)
47553338 symcode='[[ABCDGISTW]]'
47563339 ;;
4757 hpux*) # Its linker distinguishes data from code symbols
3340 hpux*)
47583341 if test "$host_cpu" = ia64; then
47593342 symcode='[[ABCDEGRST]]'
47603343 fi
4761 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
4762 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([[^ ]]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([[^ ]]*\) \([[^ ]]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
4763 ;;
4764 linux* | k*bsd*-gnu)
4765 if test "$host_cpu" = ia64; then
4766 symcode='[[ABCDGIRSTW]]'
4767 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
4768 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([[^ ]]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([[^ ]]*\) \([[^ ]]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
4769 fi
47703344 ;;
47713345 irix* | nonstopux*)
47723346 symcode='[[BCDEGRST]]'
47883362 ;;
47893363 sysv4)
47903364 symcode='[[DFNSTU]]'
4791 ;;
4792 esac
4793
4794 # Handle CRLF in mingw tool chain
4795 opt_cr=
4796 case $build_os in
4797 mingw*)
4798 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
47993365 ;;
48003366 esac
48013367
48053371 symcode='[[ABCDGIRSTW]]' ;;
48063372 esac
48073373
4808 # Try without a prefix undercore, then with it.
3374 # Transform an extracted symbol line into a proper C declaration.
3375 # Some systems (esp. on ia64) link data and code symbols differently,
3376 # so use this general approach.
3377 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
3378
3379 # Transform an extracted symbol line into symbol name and symbol address
3380 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([[^ ]]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([[^ ]]*\) \([[^ ]]*\)$/ {\"\2\", (void *) \&\2},/p'"
3381 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([[^ ]]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([[^ ]]*\) \(lib[[^ ]]*\)$/ {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([[^ ]]*\) \([[^ ]]*\)$/ {\"lib\2\", (void *) \&\2},/p'"
3382
3383 # Handle CRLF in mingw tool chain
3384 opt_cr=
3385 case $build_os in
3386 mingw*)
3387 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
3388 ;;
3389 esac
3390
3391 # Try without a prefix underscore, then with it.
48093392 for ac_symprfx in "" "_"; do
48103393
48113394 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
48123395 symxfrm="\\1 $ac_symprfx\\2 \\2"
48133396
48143397 # Write the raw and C identifiers.
4815 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[[ ]]\($symcode$symcode*\)[[ ]][[ ]]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
3398 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
3399 # Fake it for dumpbin and say T for any non-static function
3400 # and D for any global variable.
3401 # Also find C++ and __fastcall symbols from MSVC++,
3402 # which start with @ or ?.
3403 lt_cv_sys_global_symbol_pipe="$AWK ['"\
3404 " {last_section=section; section=\$ 3};"\
3405 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
3406 " \$ 0!~/External *\|/{next};"\
3407 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
3408 " {if(hide[section]) next};"\
3409 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
3410 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
3411 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
3412 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
3413 " ' prfx=^$ac_symprfx]"
3414 else
3415 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[[ ]]\($symcode$symcode*\)[[ ]][[ ]]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
3416 fi
48163417
48173418 # Check to see that the pipe works correctly.
48183419 pipe_works=no
48193420
48203421 rm -f conftest*
4821 cat > conftest.$ac_ext <<EOF
3422 cat > conftest.$ac_ext <<_LT_EOF
48223423 #ifdef __cplusplus
48233424 extern "C" {
48243425 #endif
48253426 char nm_test_var;
4826 void nm_test_func(){}
3427 void nm_test_func(void);
3428 void nm_test_func(void){}
48273429 #ifdef __cplusplus
48283430 }
48293431 #endif
48303432 int main(){nm_test_var='a';nm_test_func();return(0);}
4831 EOF
3433 _LT_EOF
48323434
48333435 if AC_TRY_EVAL(ac_compile); then
48343436 # Now try to grab the symbols.
48423444 fi
48433445
48443446 # Make sure that we snagged all the symbols we need.
4845 if grep ' nm_test_var$' "$nlist" >/dev/null; then
4846 if grep ' nm_test_func$' "$nlist" >/dev/null; then
4847 cat <<EOF > conftest.$ac_ext
3447 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
3448 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
3449 cat <<_LT_EOF > conftest.$ac_ext
48483450 #ifdef __cplusplus
48493451 extern "C" {
48503452 #endif
48513453
4852 EOF
3454 _LT_EOF
48533455 # Now generate the symbol file.
4854 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
4855
4856 cat <<EOF >> conftest.$ac_ext
4857 #if defined (__STDC__) && __STDC__
4858 # define lt_ptr_t void *
4859 #else
4860 # define lt_ptr_t char *
4861 # define const
4862 #endif
4863
4864 /* The mapping between symbol names and symbols. */
3456 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
3457
3458 cat <<_LT_EOF >> conftest.$ac_ext
3459
3460 /* The mapping between symbol names and symbols. */
48653461 const struct {
48663462 const char *name;
4867 lt_ptr_t address;
3463 void *address;
48683464 }
4869 lt_preloaded_symbols[[]] =
3465 lt__PROGRAM__LTX_preloaded_symbols[[]] =
48703466 {
4871 EOF
4872 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
4873 cat <<\EOF >> conftest.$ac_ext
4874 {0, (lt_ptr_t) 0}
3467 { "@PROGRAM@", (void *) 0 },
3468 _LT_EOF
3469 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
3470 cat <<\_LT_EOF >> conftest.$ac_ext
3471 {0, (void *) 0}
48753472 };
3473
3474 /* This works around a problem in FreeBSD linker */
3475 #ifdef FREEBSD_WORKAROUND
3476 static const void *lt_preloaded_setup() {
3477 return lt__PROGRAM__LTX_preloaded_symbols;
3478 }
3479 #endif
48763480
48773481 #ifdef __cplusplus
48783482 }
48793483 #endif
4880 EOF
3484 _LT_EOF
48813485 # Now try linking the two files.
48823486 mv conftest.$ac_objext conftstm.$ac_objext
48833487 lt_save_LIBS="$LIBS"
48843488 lt_save_CFLAGS="$CFLAGS"
48853489 LIBS="conftstm.$ac_objext"
4886 CFLAGS="$CFLAGS$_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)"
3490 CFLAGS="$CFLAGS$_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)"
48873491 if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext}; then
48883492 pipe_works=yes
48893493 fi
49023506 echo "$progname: failed program was:" >&AS_MESSAGE_LOG_FD
49033507 cat conftest.$ac_ext >&5
49043508 fi
4905 rm -f conftest* conftst*
3509 rm -rf conftest* conftst*
49063510
49073511 # Do not use the global_symbol_pipe unless it works.
49083512 if test "$pipe_works" = yes; then
49203524 else
49213525 AC_MSG_RESULT(ok)
49223526 fi
4923 ]) # AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE
4924
4925
4926 # AC_LIBTOOL_PROG_COMPILER_PIC([TAGNAME])
4927 # ---------------------------------------
4928 AC_DEFUN([AC_LIBTOOL_PROG_COMPILER_PIC],
4929 [_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)=
4930 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
4931 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)=
3527
3528 _LT_DECL([global_symbol_pipe], [lt_cv_sys_global_symbol_pipe], [1],
3529 [Take the output of nm and produce a listing of raw symbols and C names])
3530 _LT_DECL([global_symbol_to_cdecl], [lt_cv_sys_global_symbol_to_cdecl], [1],
3531 [Transform the output of nm in a proper C declaration])
3532 _LT_DECL([global_symbol_to_c_name_address],
3533 [lt_cv_sys_global_symbol_to_c_name_address], [1],
3534 [Transform the output of nm in a C name address pair])
3535 _LT_DECL([global_symbol_to_c_name_address_lib_prefix],
3536 [lt_cv_sys_global_symbol_to_c_name_address_lib_prefix], [1],
3537 [Transform the output of nm in a C name address pair when lib prefix is needed])
3538 ]) # _LT_CMD_GLOBAL_SYMBOLS
3539
3540
3541 # _LT_COMPILER_PIC([TAGNAME])
3542 # ---------------------------
3543 m4_defun([_LT_COMPILER_PIC],
3544 [m4_require([_LT_TAG_COMPILER])dnl
3545 _LT_TAGVAR(lt_prog_compiler_wl, $1)=
3546 _LT_TAGVAR(lt_prog_compiler_pic, $1)=
3547 _LT_TAGVAR(lt_prog_compiler_static, $1)=
49323548
49333549 AC_MSG_CHECKING([for $compiler option to produce PIC])
4934 ifelse([$1],[CXX],[
3550 m4_if([$1], [CXX], [
49353551 # C++ specific cases for pic, static, wl, etc.
49363552 if test "$GXX" = yes; then
4937 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4938 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static'
3553 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
3554 _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
49393555
49403556 case $host_os in
49413557 aix*)
49423558 # All AIX code is PIC.
49433559 if test "$host_cpu" = ia64; then
49443560 # AIX 5 now supports IA64 processor
4945 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
3561 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
49463562 fi
49473563 ;;
3564
49483565 amigaos*)
4949 # FIXME: we need at least 68020 code to build shared libraries, but
4950 # adding the `-m68020' flag to GCC prevents building anything better,
4951 # like `-m68040'.
4952 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4'
4953 ;;
3566 case $host_cpu in
3567 powerpc)
3568 # see comment about AmigaOS4 .so support
3569 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
3570 ;;
3571 m68k)
3572 # FIXME: we need at least 68020 code to build shared libraries, but
3573 # adding the `-m68020' flag to GCC prevents building anything better,
3574 # like `-m68040'.
3575 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4'
3576 ;;
3577 esac
3578 ;;
3579
49543580 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
49553581 # PIC is the default for these OSes.
49563582 ;;
4957 mingw* | cygwin* | os2* | pw32*)
3583 mingw* | cygwin* | os2* | pw32* | cegcc*)
49583584 # This hack is so that the source file can tell whether it is being
49593585 # built for inclusion in a dll (and should export symbols for example).
49603586 # Although the cygwin gcc ignores -fPIC, still need this for old-style
49613587 # (--disable-auto-import) libraries
4962 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'
3588 m4_if([$1], [GCJ], [],
3589 [_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'])
49633590 ;;
49643591 darwin* | rhapsody*)
49653592 # PIC is the default on this platform
49663593 # Common symbols not allowed in MH_DYLIB files
4967 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common'
3594 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common'
49683595 ;;
49693596 *djgpp*)
49703597 # DJGPP does not support shared libraries at all
4971 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
3598 _LT_TAGVAR(lt_prog_compiler_pic, $1)=
49723599 ;;
49733600 interix[[3-9]]*)
49743601 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
49763603 ;;
49773604 sysv4*MP*)
49783605 if test -d /usr/nec; then
4979 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic
3606 _LT_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic
49803607 fi
49813608 ;;
49823609 hpux*)
4983 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
4984 # not for PA HP-UX.
3610 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
3611 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
3612 # sets the default TLS model and affects inlining.
49853613 case $host_cpu in
4986 hppa*64*|ia64*)
3614 hppa*64*)
49873615 ;;
49883616 *)
4989 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
3617 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
49903618 ;;
49913619 esac
49923620 ;;
3621 *qnx* | *nto*)
3622 # QNX uses GNU C++, but need to define -shared option too, otherwise
3623 # it will coredump.
3624 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared'
3625 ;;
49933626 *)
4994 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
3627 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
49953628 ;;
49963629 esac
49973630 else
49983631 case $host_os in
4999 aix4* | aix5*)
3632 aix[[4-9]]*)
50003633 # All AIX code is PIC.
50013634 if test "$host_cpu" = ia64; then
50023635 # AIX 5 now supports IA64 processor
5003 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
3636 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
50043637 else
5005 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp'
3638 _LT_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp'
50063639 fi
50073640 ;;
50083641 chorus*)
50093642 case $cc_basename in
50103643 cxch68*)
50113644 # Green Hills C++ Compiler
5012 # _LT_AC_TAGVAR(lt_prog_compiler_static, $1)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a"
3645 # _LT_TAGVAR(lt_prog_compiler_static, $1)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a"
50133646 ;;
50143647 esac
50153648 ;;
5016 darwin*)
5017 # PIC is the default on this platform
5018 # Common symbols not allowed in MH_DYLIB files
5019 case $cc_basename in
5020 xlc*)
5021 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-qnocommon'
5022 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5023 ;;
5024 esac
5025 ;;
50263649 dgux*)
50273650 case $cc_basename in
50283651 ec++*)
5029 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
3652 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
50303653 ;;
50313654 ghcx*)
50323655 # Green Hills C++ Compiler
5033 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
3656 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
50343657 ;;
50353658 *)
50363659 ;;
50423665 hpux9* | hpux10* | hpux11*)
50433666 case $cc_basename in
50443667 CC*)
5045 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5046 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
3668 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
3669 _LT_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
50473670 if test "$host_cpu" != ia64; then
5048 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
3671 _LT_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
50493672 fi
50503673 ;;
50513674 aCC*)
5052 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5053 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
3675 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
3676 _LT_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
50543677 case $host_cpu in
50553678 hppa*64*|ia64*)
50563679 # +Z the default
50573680 ;;
50583681 *)
5059 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
3682 _LT_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
50603683 ;;
50613684 esac
50623685 ;;
50713694 irix5* | irix6* | nonstopux*)
50723695 case $cc_basename in
50733696 CC*)
5074 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5075 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
3697 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
3698 _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
50763699 # CC pic flag -KPIC is the default.
50773700 ;;
50783701 *)
50833706 case $cc_basename in
50843707 KCC*)
50853708 # KAI C++ Compiler
5086 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,'
5087 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
3709 _LT_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,'
3710 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
50883711 ;;
5089 icpc* | ecpc*)
5090 # Intel C++
5091 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5092 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
5093 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static'
3712 ecpc* )
3713 # old Intel C++ for x86_64 which still supported -KPIC.
3714 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
3715 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
3716 _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
50943717 ;;
5095 pgCC*)
5096 # Portland Group C++ compiler.
5097 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5098 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fpic'
5099 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
3718 icpc* )
3719 # Intel C++, used to be incompatible with GCC.
3720 # ICC 10 doesn't accept -KPIC any more.
3721 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
3722 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
3723 _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
3724 ;;
3725 pgCC* | pgcpp*)
3726 # Portland Group C++ compiler
3727 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
3728 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fpic'
3729 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
51003730 ;;
51013731 cxx*)
51023732 # Compaq C++
51033733 # Make sure the PIC flag is empty. It appears that all Alpha
51043734 # Linux and Compaq Tru64 Unix objects are PIC.
5105 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
5106 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
3735 _LT_TAGVAR(lt_prog_compiler_pic, $1)=
3736 _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
3737 ;;
3738 xlc* | xlC*)
3739 # IBM XL 8.0 on PPC
3740 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
3741 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-qpic'
3742 _LT_TAGVAR(lt_prog_compiler_static, $1)='-qstaticlink'
51073743 ;;
51083744 *)
51093745 case `$CC -V 2>&1 | sed 5q` in
51103746 *Sun\ C*)
51113747 # Sun C++ 5.9
5112 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
5113 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5114 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
3748 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
3749 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
3750 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
51153751 ;;
51163752 esac
51173753 ;;
51243760 mvs*)
51253761 case $cc_basename in
51263762 cxx*)
5127 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-W c,exportall'
3763 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-W c,exportall'
51283764 ;;
51293765 *)
51303766 ;;
51323768 ;;
51333769 netbsd*)
51343770 ;;
3771 *qnx* | *nto*)
3772 # QNX uses GNU C++, but need to define -shared option too, otherwise
3773 # it will coredump.
3774 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared'
3775 ;;
51353776 osf3* | osf4* | osf5*)
51363777 case $cc_basename in
51373778 KCC*)
5138 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,'
3779 _LT_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,'
51393780 ;;
51403781 RCC*)
51413782 # Rational C++ 2.4.1
5142 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
3783 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
51433784 ;;
51443785 cxx*)
51453786 # Digital/Compaq C++
5146 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
3787 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
51473788 # Make sure the PIC flag is empty. It appears that all Alpha
51483789 # Linux and Compaq Tru64 Unix objects are PIC.
5149 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
5150 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
3790 _LT_TAGVAR(lt_prog_compiler_pic, $1)=
3791 _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
51513792 ;;
51523793 *)
51533794 ;;
51593800 case $cc_basename in
51603801 CC*)
51613802 # Sun C++ 4.2, 5.x and Centerline C++
5162 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
5163 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5164 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
3803 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
3804 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
3805 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
51653806 ;;
51663807 gcx*)
51673808 # Green Hills C++ Compiler
5168 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-PIC'
3809 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-PIC'
51693810 ;;
51703811 *)
51713812 ;;
51753816 case $cc_basename in
51763817 CC*)
51773818 # Sun C++ 4.x
5178 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
5179 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
3819 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
3820 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
51803821 ;;
51813822 lcc*)
51823823 # Lucid
5183 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
5184 ;;
5185 *)
5186 ;;
5187 esac
5188 ;;
5189 tandem*)
5190 case $cc_basename in
5191 NCC*)
5192 # NonStop-UX NCC 3.20
5193 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
3824 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
51943825 ;;
51953826 *)
51963827 ;;
51993830 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
52003831 case $cc_basename in
52013832 CC*)
5202 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5203 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
5204 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
3833 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
3834 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
3835 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
3836 ;;
3837 esac
3838 ;;
3839 tandem*)
3840 case $cc_basename in
3841 NCC*)
3842 # NonStop-UX NCC 3.20
3843 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
3844 ;;
3845 *)
52053846 ;;
52063847 esac
52073848 ;;
52083849 vxworks*)
52093850 ;;
52103851 *)
5211 _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
3852 _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
52123853 ;;
52133854 esac
52143855 fi
52153856 ],
52163857 [
52173858 if test "$GCC" = yes; then
5218 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5219 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static'
3859 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
3860 _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
52203861
52213862 case $host_os in
52223863 aix*)
52233864 # All AIX code is PIC.
52243865 if test "$host_cpu" = ia64; then
52253866 # AIX 5 now supports IA64 processor
5226 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
3867 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
52273868 fi
52283869 ;;
52293870
52303871 amigaos*)
5231 # FIXME: we need at least 68020 code to build shared libraries, but
5232 # adding the `-m68020' flag to GCC prevents building anything better,
5233 # like `-m68040'.
5234 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4'
3872 case $host_cpu in
3873 powerpc)
3874 # see comment about AmigaOS4 .so support
3875 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
3876 ;;
3877 m68k)
3878 # FIXME: we need at least 68020 code to build shared libraries, but
3879 # adding the `-m68020' flag to GCC prevents building anything better,
3880 # like `-m68040'.
3881 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4'
3882 ;;
3883 esac
52353884 ;;
52363885
52373886 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
52383887 # PIC is the default for these OSes.
52393888 ;;
52403889
5241 mingw* | cygwin* | pw32* | os2*)
3890 mingw* | cygwin* | pw32* | os2* | cegcc*)
52423891 # This hack is so that the source file can tell whether it is being
52433892 # built for inclusion in a dll (and should export symbols for example).
52443893 # Although the cygwin gcc ignores -fPIC, still need this for old-style
52453894 # (--disable-auto-import) libraries
5246 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'
3895 m4_if([$1], [GCJ], [],
3896 [_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'])
52473897 ;;
52483898
52493899 darwin* | rhapsody*)
52503900 # PIC is the default on this platform
52513901 # Common symbols not allowed in MH_DYLIB files
5252 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common'
3902 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common'
3903 ;;
3904
3905 hpux*)
3906 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
3907 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
3908 # sets the default TLS model and affects inlining.
3909 case $host_cpu in
3910 hppa*64*)
3911 # +Z the default
3912 ;;
3913 *)
3914 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
3915 ;;
3916 esac
52533917 ;;
52543918
52553919 interix[[3-9]]*)
52603924 msdosdjgpp*)
52613925 # Just because we use GCC doesn't mean we suddenly get shared libraries
52623926 # on systems that don't support them.
5263 _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
3927 _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
52643928 enable_shared=no
3929 ;;
3930
3931 *nto* | *qnx*)
3932 # QNX uses GNU C++, but need to define -shared option too, otherwise
3933 # it will coredump.
3934 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared'
52653935 ;;
52663936
52673937 sysv4*MP*)
52683938 if test -d /usr/nec; then
5269 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic
3939 _LT_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic
52703940 fi
52713941 ;;
52723942
5273 hpux*)
3943 *)
3944 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
3945 ;;
3946 esac
3947 else
3948 # PORTME Check for flag to pass linker flags through the system compiler.
3949 case $host_os in
3950 aix*)
3951 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
3952 if test "$host_cpu" = ia64; then
3953 # AIX 5 now supports IA64 processor
3954 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
3955 else
3956 _LT_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp'
3957 fi
3958 ;;
3959
3960 mingw* | cygwin* | pw32* | os2* | cegcc*)
3961 # This hack is so that the source file can tell whether it is being
3962 # built for inclusion in a dll (and should export symbols for example).
3963 m4_if([$1], [GCJ], [],
3964 [_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'])
3965 ;;
3966
3967 hpux9* | hpux10* | hpux11*)
3968 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
52743969 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
52753970 # not for PA HP-UX.
52763971 case $host_cpu in
52783973 # +Z the default
52793974 ;;
52803975 *)
5281 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
5282 ;;
5283 esac
5284 ;;
5285
5286 *)
5287 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
5288 ;;
5289 esac
5290 else
5291 # PORTME Check for flag to pass linker flags through the system compiler.
5292 case $host_os in
5293 aix*)
5294 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5295 if test "$host_cpu" = ia64; then
5296 # AIX 5 now supports IA64 processor
5297 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5298 else
5299 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp'
5300 fi
5301 ;;
5302 darwin*)
5303 # PIC is the default on this platform
5304 # Common symbols not allowed in MH_DYLIB files
5305 case $cc_basename in
5306 xlc*)
5307 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-qnocommon'
5308 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5309 ;;
5310 esac
5311 ;;
5312
5313 mingw* | cygwin* | pw32* | os2*)
5314 # This hack is so that the source file can tell whether it is being
5315 # built for inclusion in a dll (and should export symbols for example).
5316 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'
5317 ;;
5318
5319 hpux9* | hpux10* | hpux11*)
5320 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5321 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
5322 # not for PA HP-UX.
5323 case $host_cpu in
5324 hppa*64*|ia64*)
5325 # +Z the default
5326 ;;
5327 *)
5328 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
3976 _LT_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
53293977 ;;
53303978 esac
53313979 # Is there a better lt_prog_compiler_static that works with the bundled CC?
5332 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
3980 _LT_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
53333981 ;;
53343982
53353983 irix5* | irix6* | nonstopux*)
5336 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
3984 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
53373985 # PIC (with -KPIC) is the default.
5338 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
5339 ;;
5340
5341 newsos6)
5342 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
5343 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
3986 _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
53443987 ;;
53453988
53463989 linux* | k*bsd*-gnu)
53473990 case $cc_basename in
5348 icc* | ecc*)
5349 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5350 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
5351 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static'
3991 # old Intel for x86_64 which still supported -KPIC.
3992 ecc*)
3993 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
3994 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
3995 _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
53523996 ;;
3997 # icc used to be incompatible with GCC.
3998 # ICC 10 doesn't accept -KPIC any more.
3999 icc* | ifort*)
4000 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4001 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
4002 _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
4003 ;;
4004 # Lahey Fortran 8.1.
4005 lf95*)
4006 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4007 _LT_TAGVAR(lt_prog_compiler_pic, $1)='--shared'
4008 _LT_TAGVAR(lt_prog_compiler_static, $1)='--static'
4009 ;;
53534010 pgcc* | pgf77* | pgf90* | pgf95*)
53544011 # Portland Group compilers (*not* the Pentium gcc compiler,
53554012 # which looks to be a dead project)
5356 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5357 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fpic'
5358 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4013 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4014 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fpic'
4015 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
53594016 ;;
53604017 ccc*)
5361 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4018 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
53624019 # All Alpha code is PIC.
5363 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
4020 _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
53644021 ;;
4022 xl*)
4023 # IBM XL C 8.0/Fortran 10.1 on PPC
4024 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4025 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-qpic'
4026 _LT_TAGVAR(lt_prog_compiler_static, $1)='-qstaticlink'
4027 ;;
53654028 *)
5366 case `$CC -V 2>&1 | sed 5q` in
4029 case `$CC -V 2>&1 | sed 5q` in
53674030 *Sun\ C*)
53684031 # Sun C 5.9
5369 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
5370 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5371 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4032 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4033 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4034 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
53724035 ;;
53734036 *Sun\ F*)
53744037 # Sun Fortran 8.3 passes all unrecognized flags to the linker
5375 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
5376 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5377 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)=''
4038 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4039 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4040 _LT_TAGVAR(lt_prog_compiler_wl, $1)=''
53784041 ;;
53794042 esac
53804043 ;;
53814044 esac
53824045 ;;
53834046
4047 newsos6)
4048 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4049 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4050 ;;
4051
4052 *nto* | *qnx*)
4053 # QNX uses GNU C++, but need to define -shared option too, otherwise
4054 # it will coredump.
4055 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared'
4056 ;;
4057
53844058 osf3* | osf4* | osf5*)
5385 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4059 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
53864060 # All OSF/1 code is PIC.
5387 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
4061 _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
53884062 ;;
53894063
53904064 rdos*)
5391 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
4065 _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
53924066 ;;
53934067
53944068 solaris*)
5395 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
5396 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4069 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4070 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
53974071 case $cc_basename in
53984072 f77* | f90* | f95*)
5399 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ';;
4073 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ';;
54004074 *)
5401 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,';;
4075 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,';;
54024076 esac
54034077 ;;
54044078
54054079 sunos4*)
5406 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
5407 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-PIC'
5408 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4080 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
4081 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-PIC'
4082 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
54094083 ;;
54104084
54114085 sysv4 | sysv4.2uw2* | sysv4.3*)
5412 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5413 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
5414 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4086 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4087 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4088 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
54154089 ;;
54164090
54174091 sysv4*MP*)
54184092 if test -d /usr/nec ;then
5419 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-Kconform_pic'
5420 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4093 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-Kconform_pic'
4094 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
54214095 fi
54224096 ;;
54234097
54244098 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
5425 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5426 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
5427 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4099 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4100 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4101 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
54284102 ;;
54294103
54304104 unicos*)
5431 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5432 _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
4105 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4106 _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
54334107 ;;
54344108
54354109 uts4*)
5436 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
5437 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4110 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
4111 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
54384112 ;;
54394113
54404114 *)
5441 _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
4115 _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
54424116 ;;
54434117 esac
54444118 fi
54454119 ])
5446 AC_MSG_RESULT([$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)])
4120 case $host_os in
4121 # For platforms which do not support PIC, -DPIC is meaningless:
4122 *djgpp*)
4123 _LT_TAGVAR(lt_prog_compiler_pic, $1)=
4124 ;;
4125 *)
4126 _LT_TAGVAR(lt_prog_compiler_pic, $1)="$_LT_TAGVAR(lt_prog_compiler_pic, $1)@&t@m4_if([$1],[],[ -DPIC],[m4_if([$1],[CXX],[ -DPIC],[])])"
4127 ;;
4128 esac
4129 AC_MSG_RESULT([$_LT_TAGVAR(lt_prog_compiler_pic, $1)])
4130 _LT_TAGDECL([wl], [lt_prog_compiler_wl], [1],
4131 [How to pass a linker flag through the compiler])
54474132
54484133 #
54494134 # Check to make sure the PIC flag actually works.
54504135 #
5451 if test -n "$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)"; then
5452 AC_LIBTOOL_COMPILER_OPTION([if $compiler PIC flag $_LT_AC_TAGVAR(lt_prog_compiler_pic, $1) works],
5453 _LT_AC_TAGVAR(lt_prog_compiler_pic_works, $1),
5454 [$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)ifelse([$1],[],[ -DPIC],[ifelse([$1],[CXX],[ -DPIC],[])])], [],
5455 [case $_LT_AC_TAGVAR(lt_prog_compiler_pic, $1) in
4136 if test -n "$_LT_TAGVAR(lt_prog_compiler_pic, $1)"; then
4137 _LT_COMPILER_OPTION([if $compiler PIC flag $_LT_TAGVAR(lt_prog_compiler_pic, $1) works],
4138 [_LT_TAGVAR(lt_cv_prog_compiler_pic_works, $1)],
4139 [$_LT_TAGVAR(lt_prog_compiler_pic, $1)@&t@m4_if([$1],[],[ -DPIC],[m4_if([$1],[CXX],[ -DPIC],[])])], [],
4140 [case $_LT_TAGVAR(lt_prog_compiler_pic, $1) in
54564141 "" | " "*) ;;
5457 *) _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=" $_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)" ;;
4142 *) _LT_TAGVAR(lt_prog_compiler_pic, $1)=" $_LT_TAGVAR(lt_prog_compiler_pic, $1)" ;;
54584143 esac],
5459 [_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
5460 _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no])
4144 [_LT_TAGVAR(lt_prog_compiler_pic, $1)=
4145 _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no])
54614146 fi
5462 case $host_os in
5463 # For platforms which do not support PIC, -DPIC is meaningless:
5464 *djgpp*)
5465 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
5466 ;;
5467 *)
5468 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)="$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)ifelse([$1],[],[ -DPIC],[ifelse([$1],[CXX],[ -DPIC],[])])"
5469 ;;
5470 esac
4147 _LT_TAGDECL([pic_flag], [lt_prog_compiler_pic], [1],
4148 [Additional compiler flags for building library objects])
54714149
54724150 #
54734151 # Check to make sure the static flag actually works.
54744152 #
5475 wl=$_LT_AC_TAGVAR(lt_prog_compiler_wl, $1) eval lt_tmp_static_flag=\"$_LT_AC_TAGVAR(lt_prog_compiler_static, $1)\"
5476 AC_LIBTOOL_LINKER_OPTION([if $compiler static flag $lt_tmp_static_flag works],
5477 _LT_AC_TAGVAR(lt_prog_compiler_static_works, $1),
4153 wl=$_LT_TAGVAR(lt_prog_compiler_wl, $1) eval lt_tmp_static_flag=\"$_LT_TAGVAR(lt_prog_compiler_static, $1)\"
4154 _LT_LINKER_OPTION([if $compiler static flag $lt_tmp_static_flag works],
4155 _LT_TAGVAR(lt_cv_prog_compiler_static_works, $1),
54784156 $lt_tmp_static_flag,
54794157 [],
5480 [_LT_AC_TAGVAR(lt_prog_compiler_static, $1)=])
5481 ])
5482
5483
5484 # AC_LIBTOOL_PROG_LD_SHLIBS([TAGNAME])
5485 # ------------------------------------
4158 [_LT_TAGVAR(lt_prog_compiler_static, $1)=])
4159 _LT_TAGDECL([link_static_flag], [lt_prog_compiler_static], [1],
4160 [Compiler flag to prevent dynamic linking])
4161 ])# _LT_COMPILER_PIC
4162
4163
4164 # _LT_LINKER_SHLIBS([TAGNAME])
4165 # ----------------------------
54864166 # See if the linker supports building shared libraries.
5487 AC_DEFUN([AC_LIBTOOL_PROG_LD_SHLIBS],
5488 [AC_REQUIRE([LT_AC_PROG_SED])dnl
4167 m4_defun([_LT_LINKER_SHLIBS],
4168 [AC_REQUIRE([LT_PATH_LD])dnl
4169 AC_REQUIRE([LT_PATH_NM])dnl
4170 m4_require([_LT_FILEUTILS_DEFAULTS])dnl
4171 m4_require([_LT_DECL_EGREP])dnl
4172 m4_require([_LT_DECL_SED])dnl
4173 m4_require([_LT_CMD_GLOBAL_SYMBOLS])dnl
4174 m4_require([_LT_TAG_COMPILER])dnl
54894175 AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries])
5490 ifelse([$1],[CXX],[
5491 _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
4176 m4_if([$1], [CXX], [
4177 _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
54924178 case $host_os in
5493 aix4* | aix5*)
4179 aix[[4-9]]*)
54944180 # If we're using GNU nm, then we don't want the "-C" option.
54954181 # -C means demangle to AIX nm, but means don't demangle with GNU nm
5496 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
5497 _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\[$]2 == "T") || (\[$]2 == "D") || (\[$]2 == "B")) && ([substr](\[$]3,1,1) != ".")) { print \[$]3 } }'\'' | sort -u > $export_symbols'
4182 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
4183 _LT_TAGVAR(export_symbols_cmds, $1)='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && ([substr](\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
54984184 else
5499 _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\[$]2 == "T") || (\[$]2 == "D") || (\[$]2 == "B")) && ([substr](\[$]3,1,1) != ".")) { print \[$]3 } }'\'' | sort -u > $export_symbols'
4185 _LT_TAGVAR(export_symbols_cmds, $1)='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && ([substr](\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
55004186 fi
55014187 ;;
55024188 pw32*)
5503 _LT_AC_TAGVAR(export_symbols_cmds, $1)="$ltdll_cmds"
5504 ;;
5505 cygwin* | mingw*)
5506 _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGRS]][[ ]]/s/.*[[ ]]\([[^ ]]*\)/\1 DATA/;/^.*[[ ]]__nm__/s/^.*[[ ]]__nm__\([[^ ]]*\)[[ ]][[^ ]]*/\1 DATA/;/^I[[ ]]/d;/^[[AITW]][[ ]]/s/.*[[ ]]//'\'' | sort | uniq > $export_symbols'
4189 _LT_TAGVAR(export_symbols_cmds, $1)="$ltdll_cmds"
4190 ;;
4191 cygwin* | mingw* | cegcc*)
4192 _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGRS]][[ ]]/s/.*[[ ]]\([[^ ]]*\)/\1 DATA/;/^.*[[ ]]__nm__/s/^.*[[ ]]__nm__\([[^ ]]*\)[[ ]][[^ ]]*/\1 DATA/;/^I[[ ]]/d;/^[[AITW]][[ ]]/s/.* //'\'' | sort | uniq > $export_symbols'
55074193 ;;
55084194 *)
5509 _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
4195 _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
55104196 ;;
55114197 esac
5512 ],[
4198 _LT_TAGVAR(exclude_expsyms, $1)=['_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*']
4199 ], [
55134200 runpath_var=
5514 _LT_AC_TAGVAR(allow_undefined_flag, $1)=
5515 _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=no
5516 _LT_AC_TAGVAR(archive_cmds, $1)=
5517 _LT_AC_TAGVAR(archive_expsym_cmds, $1)=
5518 _LT_AC_TAGVAR(old_archive_From_new_cmds, $1)=
5519 _LT_AC_TAGVAR(old_archive_from_expsyms_cmds, $1)=
5520 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)=
5521 _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
5522 _LT_AC_TAGVAR(thread_safe_flag_spec, $1)=
5523 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=
5524 _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
5525 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
5526 _LT_AC_TAGVAR(hardcode_direct, $1)=no
5527 _LT_AC_TAGVAR(hardcode_minus_L, $1)=no
5528 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
5529 _LT_AC_TAGVAR(link_all_deplibs, $1)=unknown
5530 _LT_AC_TAGVAR(hardcode_automatic, $1)=no
5531 _LT_AC_TAGVAR(module_cmds, $1)=
5532 _LT_AC_TAGVAR(module_expsym_cmds, $1)=
5533 _LT_AC_TAGVAR(always_export_symbols, $1)=no
5534 _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
4201 _LT_TAGVAR(allow_undefined_flag, $1)=
4202 _LT_TAGVAR(always_export_symbols, $1)=no
4203 _LT_TAGVAR(archive_cmds, $1)=
4204 _LT_TAGVAR(archive_expsym_cmds, $1)=
4205 _LT_TAGVAR(compiler_needs_object, $1)=no
4206 _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no
4207 _LT_TAGVAR(export_dynamic_flag_spec, $1)=
4208 _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
4209 _LT_TAGVAR(hardcode_automatic, $1)=no
4210 _LT_TAGVAR(hardcode_direct, $1)=no
4211 _LT_TAGVAR(hardcode_direct_absolute, $1)=no
4212 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
4213 _LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
4214 _LT_TAGVAR(hardcode_libdir_separator, $1)=
4215 _LT_TAGVAR(hardcode_minus_L, $1)=no
4216 _LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
4217 _LT_TAGVAR(inherit_rpath, $1)=no
4218 _LT_TAGVAR(link_all_deplibs, $1)=unknown
4219 _LT_TAGVAR(module_cmds, $1)=
4220 _LT_TAGVAR(module_expsym_cmds, $1)=
4221 _LT_TAGVAR(old_archive_from_new_cmds, $1)=
4222 _LT_TAGVAR(old_archive_from_expsyms_cmds, $1)=
4223 _LT_TAGVAR(thread_safe_flag_spec, $1)=
4224 _LT_TAGVAR(whole_archive_flag_spec, $1)=
55354225 # include_expsyms should be a list of space-separated symbols to be *always*
55364226 # included in the symbol list
5537 _LT_AC_TAGVAR(include_expsyms, $1)=
4227 _LT_TAGVAR(include_expsyms, $1)=
55384228 # exclude_expsyms can be an extended regexp of symbols to exclude
55394229 # it will be wrapped by ` (' and `)$', so one must not match beginning or
55404230 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
55414231 # as well as any symbol that contains `d'.
5542 _LT_AC_TAGVAR(exclude_expsyms, $1)="_GLOBAL_OFFSET_TABLE_"
4232 _LT_TAGVAR(exclude_expsyms, $1)=['_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*']
55434233 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
55444234 # platforms (ab)use it in PIC code, but their linkers get confused if
55454235 # the symbol is explicitly referenced. Since portable code cannot
55464236 # rely on this symbol name, it's probably fine to never include it in
55474237 # preloaded symbol tables.
4238 # Exclude shared library initialization/finalization symbols.
4239 dnl Note also adjust exclude_expsyms for C++ above.
55484240 extract_expsyms_cmds=
5549 # Just being paranoid about ensuring that cc_basename is set.
5550 _LT_CC_BASENAME([$compiler])
4241
55514242 case $host_os in
5552 cygwin* | mingw* | pw32*)
4243 cygwin* | mingw* | pw32* | cegcc*)
55534244 # FIXME: the MSVC++ port hasn't been tested in a loooong time
55544245 # When not using gcc, we currently assume that we are using
55554246 # Microsoft Visual C++.
55664257 ;;
55674258 esac
55684259
5569 _LT_AC_TAGVAR(ld_shlibs, $1)=yes
4260 _LT_TAGVAR(ld_shlibs, $1)=yes
55704261 if test "$with_gnu_ld" = yes; then
55714262 # If archive_cmds runs LD, not CC, wlarc should be empty
55724263 wlarc='${wl}'
55754266 # are reset later if shared libraries are not supported. Putting them
55764267 # here allows them to be overridden if necessary.
55774268 runpath_var=LD_RUN_PATH
5578 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir'
5579 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
4269 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
4270 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
55804271 # ancient GNU ld didn't support --whole-archive et. al.
5581 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
5582 _LT_AC_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
5583 else
5584 _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
4272 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
4273 _LT_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
4274 else
4275 _LT_TAGVAR(whole_archive_flag_spec, $1)=
55854276 fi
55864277 supports_anon_versioning=no
5587 case `$LD -v 2>/dev/null` in
4278 case `$LD -v 2>&1` in
55884279 *\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.10.*) ;; # catch versions < 2.11
55894280 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
55904281 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
55944285
55954286 # See if GNU ld supports shared libraries.
55964287 case $host_os in
5597 aix3* | aix4* | aix5*)
4288 aix[[3-9]]*)
55984289 # On AIX/PPC, the GNU linker is very broken
55994290 if test "$host_cpu" != ia64; then
5600 _LT_AC_TAGVAR(ld_shlibs, $1)=no
5601 cat <<EOF 1>&2
4291 _LT_TAGVAR(ld_shlibs, $1)=no
4292 cat <<_LT_EOF 1>&2
56024293
56034294 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
56044295 *** to be unable to reliably create shared libraries on AIX.
56064297 *** really care for shared libraries, you may want to modify your PATH
56074298 *** so that a non-GNU linker is found, and then restart.
56084299
5609 EOF
4300 _LT_EOF
56104301 fi
56114302 ;;
56124303
56134304 amigaos*)
5614 _LT_AC_TAGVAR(archive_cmds, $1)='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
5615 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
5616 _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
5617
5618 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
5619 # that the semantics of dynamic libraries on AmigaOS, at least up
5620 # to version 4, is to share data among multiple programs linked
5621 # with the same dynamic library. Since this doesn't match the
5622 # behavior of shared libraries on other platforms, we can't use
5623 # them.
5624 _LT_AC_TAGVAR(ld_shlibs, $1)=no
4305 case $host_cpu in
4306 powerpc)
4307 # see comment about AmigaOS4 .so support
4308 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
4309 _LT_TAGVAR(archive_expsym_cmds, $1)=''
4310 ;;
4311 m68k)
4312 _LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
4313 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
4314 _LT_TAGVAR(hardcode_minus_L, $1)=yes
4315 ;;
4316 esac
56254317 ;;
56264318
56274319 beos*)
5628 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
5629 _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
4320 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
4321 _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
56304322 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
56314323 # support --undefined. This deserves some investigation. FIXME
5632 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
4324 _LT_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
56334325 else
5634 _LT_AC_TAGVAR(ld_shlibs, $1)=no
4326 _LT_TAGVAR(ld_shlibs, $1)=no
56354327 fi
56364328 ;;
56374329
5638 cygwin* | mingw* | pw32*)
5639 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless,
4330 cygwin* | mingw* | pw32* | cegcc*)
4331 # _LT_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless,
56404332 # as there is no search path for DLLs.
5641 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
5642 _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
5643 _LT_AC_TAGVAR(always_export_symbols, $1)=no
5644 _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
5645 _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGRS]][[ ]]/s/.*[[ ]]\([[^ ]]*\)/\1 DATA/'\'' -e '\''/^[[AITW]][[ ]]/s/.*[[ ]]//'\'' | sort | uniq > $export_symbols'
5646
5647 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
5648 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
4333 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
4334 _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
4335 _LT_TAGVAR(always_export_symbols, $1)=no
4336 _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
4337 _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGRS]][[ ]]/s/.*[[ ]]\([[^ ]]*\)/\1 DATA/'\'' | $SED -e '\''/^[[AITW]][[ ]]/s/.*[[ ]]//'\'' | sort | uniq > $export_symbols'
4338
4339 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
4340 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
56494341 # If the export-symbols file already is a .def file (1st line
56504342 # is EXPORTS), use it as is; otherwise, prepend...
5651 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
4343 _LT_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
56524344 cp $export_symbols $output_objdir/$soname.def;
56534345 else
56544346 echo EXPORTS > $output_objdir/$soname.def;
56564348 fi~
56574349 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
56584350 else
5659 _LT_AC_TAGVAR(ld_shlibs, $1)=no
4351 _LT_TAGVAR(ld_shlibs, $1)=no
56604352 fi
56614353 ;;
56624354
56634355 interix[[3-9]]*)
5664 _LT_AC_TAGVAR(hardcode_direct, $1)=no
5665 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
5666 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
5667 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
4356 _LT_TAGVAR(hardcode_direct, $1)=no
4357 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
4358 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
4359 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
56684360 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
56694361 # Instead, shared libraries are loaded at an image base (0x10000000 by
56704362 # default) and relocated if they conflict, which is a slow very memory
56714363 # consuming and fragmenting process. To avoid this, we pick a random,
56724364 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
56734365 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
5674 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
5675 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
5676 ;;
5677
5678 gnu* | linux* | k*bsd*-gnu)
5679 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
4366 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
4367 _LT_TAGVAR(archive_expsym_cmds, $1)='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
4368 ;;
4369
4370 gnu* | linux* | tpf* | k*bsd*-gnu)
4371 tmp_diet=no
4372 if test "$host_os" = linux-dietlibc; then
4373 case $cc_basename in
4374 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
4375 esac
4376 fi
4377 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
4378 && test "$tmp_diet" = no
4379 then
56804380 tmp_addflag=
4381 tmp_sharedflag='-shared'
56814382 case $cc_basename,$host_cpu in
5682 pgcc*) # Portland Group C compiler
5683 _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
4383 pgcc*) # Portland Group C compiler
4384 _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
56844385 tmp_addflag=' $pic_flag'
56854386 ;;
56864387 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
5687 _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
4388 _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
56884389 tmp_addflag=' $pic_flag -Mnomain' ;;
5689 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
4390 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
56904391 tmp_addflag=' -i_dynamic' ;;
56914392 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
56924393 tmp_addflag=' -i_dynamic -nofor_main' ;;
56934394 ifc* | ifort*) # Intel Fortran compiler
56944395 tmp_addflag=' -nofor_main' ;;
4396 lf95*) # Lahey Fortran 8.1
4397 _LT_TAGVAR(whole_archive_flag_spec, $1)=
4398 tmp_sharedflag='--shared' ;;
4399 xl[[cC]]*) # IBM XL C 8.0 on PPC (deal with xlf below)
4400 tmp_sharedflag='-qmkshrobj'
4401 tmp_addflag= ;;
56954402 esac
56964403 case `$CC -V 2>&1 | sed 5q` in
56974404 *Sun\ C*) # Sun C 5.9
5698 _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
4405 _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
4406 _LT_TAGVAR(compiler_needs_object, $1)=yes
56994407 tmp_sharedflag='-G' ;;
57004408 *Sun\ F*) # Sun Fortran 8.3
57014409 tmp_sharedflag='-G' ;;
5702 *)
5703 tmp_sharedflag='-shared' ;;
57044410 esac
5705 _LT_AC_TAGVAR(archive_cmds, $1)='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5706
5707 if test $supports_anon_versioning = yes; then
5708 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $output_objdir/$libname.ver~
5709 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
5710 $echo "local: *; };" >> $output_objdir/$libname.ver~
5711 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
5712 fi
4411 _LT_TAGVAR(archive_cmds, $1)='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
4412
4413 if test "x$supports_anon_versioning" = xyes; then
4414 _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $output_objdir/$libname.ver~
4415 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
4416 echo "local: *; };" >> $output_objdir/$libname.ver~
4417 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
4418 fi
4419
4420 case $cc_basename in
4421 xlf*)
4422 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
4423 _LT_TAGVAR(whole_archive_flag_spec, $1)='--whole-archive$convenience --no-whole-archive'
4424 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
4425 _LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='-rpath $libdir'
4426 _LT_TAGVAR(archive_cmds, $1)='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
4427 if test "x$supports_anon_versioning" = xyes; then
4428 _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $output_objdir/$libname.ver~
4429 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
4430 echo "local: *; };" >> $output_objdir/$libname.ver~
4431 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
4432 fi
4433 ;;
4434 esac
57134435 else
5714 _LT_AC_TAGVAR(ld_shlibs, $1)=no
4436 _LT_TAGVAR(ld_shlibs, $1)=no
57154437 fi
57164438 ;;
57174439
57184440 netbsd*)
5719 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
5720 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
4441 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
4442 _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
57214443 wlarc=
57224444 else
5723 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5724 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
4445 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
4446 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
57254447 fi
57264448 ;;
57274449
57284450 solaris*)
5729 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
5730 _LT_AC_TAGVAR(ld_shlibs, $1)=no
5731 cat <<EOF 1>&2
4451 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
4452 _LT_TAGVAR(ld_shlibs, $1)=no
4453 cat <<_LT_EOF 1>&2
57324454
57334455 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
57344456 *** create shared libraries on Solaris systems. Therefore, libtool
57374459 *** your PATH or compiler configuration so that the native linker is
57384460 *** used, and then restart.
57394461
5740 EOF
5741 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
5742 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5743 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
4462 _LT_EOF
4463 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
4464 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
4465 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
57444466 else
5745 _LT_AC_TAGVAR(ld_shlibs, $1)=no
4467 _LT_TAGVAR(ld_shlibs, $1)=no
57464468 fi
57474469 ;;
57484470
57494471 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
57504472 case `$LD -v 2>&1` in
57514473 *\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.1[[0-5]].*)
5752 _LT_AC_TAGVAR(ld_shlibs, $1)=no
4474 _LT_TAGVAR(ld_shlibs, $1)=no
57534475 cat <<_LT_EOF 1>&2
57544476
57554477 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
57624484 _LT_EOF
57634485 ;;
57644486 *)
5765 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
5766 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
5767 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
5768 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
4487 # For security reasons, it is highly recommended that you always
4488 # use absolute paths for naming shared libraries, and exclude the
4489 # DT_RUNPATH tag from executables and libraries. But doing so
4490 # requires that you compile everything twice, which is a pain.
4491 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
4492 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
4493 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
4494 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
57694495 else
5770 _LT_AC_TAGVAR(ld_shlibs, $1)=no
4496 _LT_TAGVAR(ld_shlibs, $1)=no
57714497 fi
57724498 ;;
57734499 esac
57744500 ;;
57754501
57764502 sunos4*)
5777 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
4503 _LT_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
57784504 wlarc=
5779 _LT_AC_TAGVAR(hardcode_direct, $1)=yes
5780 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
4505 _LT_TAGVAR(hardcode_direct, $1)=yes
4506 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
57814507 ;;
57824508
57834509 *)
5784 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
5785 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5786 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
4510 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
4511 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
4512 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
57874513 else
5788 _LT_AC_TAGVAR(ld_shlibs, $1)=no
4514 _LT_TAGVAR(ld_shlibs, $1)=no
57894515 fi
57904516 ;;
57914517 esac
57924518
5793 if test "$_LT_AC_TAGVAR(ld_shlibs, $1)" = no; then
4519 if test "$_LT_TAGVAR(ld_shlibs, $1)" = no; then
57944520 runpath_var=
5795 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=
5796 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)=
5797 _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
4521 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
4522 _LT_TAGVAR(export_dynamic_flag_spec, $1)=
4523 _LT_TAGVAR(whole_archive_flag_spec, $1)=
57984524 fi
57994525 else
58004526 # PORTME fill in a description of your system's linker (not GNU ld)
58014527 case $host_os in
58024528 aix3*)
5803 _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
5804 _LT_AC_TAGVAR(always_export_symbols, $1)=yes
5805 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
4529 _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
4530 _LT_TAGVAR(always_export_symbols, $1)=yes
4531 _LT_TAGVAR(archive_expsym_cmds, $1)='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
58064532 # Note: this linker hardcodes the directories in LIBPATH if there
58074533 # are no directories specified by -L.
5808 _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
4534 _LT_TAGVAR(hardcode_minus_L, $1)=yes
58094535 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
58104536 # Neither direct hardcoding nor static linking is supported with a
58114537 # broken collect2.
5812 _LT_AC_TAGVAR(hardcode_direct, $1)=unsupported
4538 _LT_TAGVAR(hardcode_direct, $1)=unsupported
58134539 fi
58144540 ;;
58154541
5816 aix4* | aix5*)
4542 aix[[4-9]]*)
58174543 if test "$host_cpu" = ia64; then
58184544 # On IA64, the linker does run time linking by default, so we don't
58194545 # have to do anything special.
58234549 else
58244550 # If we're using GNU nm, then we don't want the "-C" option.
58254551 # -C means demangle to AIX nm, but means don't demangle with GNU nm
5826 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
5827 _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\[$]2 == "T") || (\[$]2 == "D") || (\[$]2 == "B")) && ([substr](\[$]3,1,1) != ".")) { print \[$]3 } }'\'' | sort -u > $export_symbols'
4552 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
4553 _LT_TAGVAR(export_symbols_cmds, $1)='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && ([substr](\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
58284554 else
5829 _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\[$]2 == "T") || (\[$]2 == "D") || (\[$]2 == "B")) && ([substr](\[$]3,1,1) != ".")) { print \[$]3 } }'\'' | sort -u > $export_symbols'
4555 _LT_TAGVAR(export_symbols_cmds, $1)='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && ([substr](\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
58304556 fi
58314557 aix_use_runtimelinking=no
58324558
58334559 # Test if we are trying to use run time linking or normal
58344560 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
58354561 # need to do runtime linking.
5836 case $host_os in aix4.[[23]]|aix4.[[23]].*|aix5*)
4562 case $host_os in aix4.[[23]]|aix4.[[23]].*|aix[[5-9]]*)
58374563 for ld_flag in $LDFLAGS; do
5838 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
5839 aix_use_runtimelinking=yes
5840 break
5841 fi
4564 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
4565 aix_use_runtimelinking=yes
4566 break
4567 fi
58424568 done
58434569 ;;
58444570 esac
58534579 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
58544580 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
58554581
5856 _LT_AC_TAGVAR(archive_cmds, $1)=''
5857 _LT_AC_TAGVAR(hardcode_direct, $1)=yes
5858 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=':'
5859 _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
4582 _LT_TAGVAR(archive_cmds, $1)=''
4583 _LT_TAGVAR(hardcode_direct, $1)=yes
4584 _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
4585 _LT_TAGVAR(hardcode_libdir_separator, $1)=':'
4586 _LT_TAGVAR(link_all_deplibs, $1)=yes
4587 _LT_TAGVAR(file_list_spec, $1)='${wl}-f,'
58604588
58614589 if test "$GCC" = yes; then
58624590 case $host_os in aix4.[[012]]|aix4.[[012]].*)
58634591 # We only want to do this on AIX 4.2 and lower, the check
58644592 # below for broken collect2 doesn't work under 4.3+
58654593 collect2name=`${CC} -print-prog-name=collect2`
5866 if test -f "$collect2name" && \
5867 strings "$collect2name" | grep resolve_lib_name >/dev/null
4594 if test -f "$collect2name" &&
4595 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
58684596 then
5869 # We have reworked collect2
5870 :
4597 # We have reworked collect2
4598 :
58714599 else
5872 # We have old collect2
5873 _LT_AC_TAGVAR(hardcode_direct, $1)=unsupported
5874 # It fails to find uninstalled libraries when the uninstalled
5875 # path is not listed in the libpath. Setting hardcode_minus_L
5876 # to unsupported forces relinking
5877 _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
5878 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
5879 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
4600 # We have old collect2
4601 _LT_TAGVAR(hardcode_direct, $1)=unsupported
4602 # It fails to find uninstalled libraries when the uninstalled
4603 # path is not listed in the libpath. Setting hardcode_minus_L
4604 # to unsupported forces relinking
4605 _LT_TAGVAR(hardcode_minus_L, $1)=yes
4606 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
4607 _LT_TAGVAR(hardcode_libdir_separator, $1)=
58804608 fi
58814609 ;;
58824610 esac
58874615 else
58884616 # not using gcc
58894617 if test "$host_cpu" = ia64; then
5890 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
5891 # chokes on -Wl,-G. The following line is correct:
4618 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
4619 # chokes on -Wl,-G. The following line is correct:
58924620 shared_flag='-G'
58934621 else
58944622 if test "$aix_use_runtimelinking" = yes; then
58994627 fi
59004628 fi
59014629
4630 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-bexpall'
59024631 # It seems that -bexpall does not export symbols beginning with
59034632 # underscore (_), so it is better to generate a list of symbols to export.
5904 _LT_AC_TAGVAR(always_export_symbols, $1)=yes
4633 _LT_TAGVAR(always_export_symbols, $1)=yes
59054634 if test "$aix_use_runtimelinking" = yes; then
59064635 # Warning - without using the other runtime loading flags (-brtl),
59074636 # -berok will link without error, but may produce a broken library.
5908 _LT_AC_TAGVAR(allow_undefined_flag, $1)='-berok'
5909 # Determine the default libpath from the value encoded in an empty executable.
5910 _LT_AC_SYS_LIBPATH_AIX
5911 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
5912 _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
5913 else
4637 _LT_TAGVAR(allow_undefined_flag, $1)='-berok'
4638 # Determine the default libpath from the value encoded in an
4639 # empty executable.
4640 _LT_SYS_MODULE_PATH_AIX
4641 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
4642 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then $ECHO "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
4643 else
59144644 if test "$host_cpu" = ia64; then
5915 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib'
5916 _LT_AC_TAGVAR(allow_undefined_flag, $1)="-z nodefs"
5917 _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
4645 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib'
4646 _LT_TAGVAR(allow_undefined_flag, $1)="-z nodefs"
4647 _LT_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
59184648 else
5919 # Determine the default libpath from the value encoded in an empty executable.
5920 _LT_AC_SYS_LIBPATH_AIX
5921 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
4649 # Determine the default libpath from the value encoded in an
4650 # empty executable.
4651 _LT_SYS_MODULE_PATH_AIX
4652 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
59224653 # Warning - without using the other run time loading flags,
59234654 # -berok will link without error, but may produce a broken library.
5924 _LT_AC_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok'
5925 _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok'
4655 _LT_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok'
4656 _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok'
59264657 # Exported symbols can be pulled into shared objects from archives
5927 _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='$convenience'
5928 _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes
4658 _LT_TAGVAR(whole_archive_flag_spec, $1)='$convenience'
4659 _LT_TAGVAR(archive_cmds_need_lc, $1)=yes
59294660 # This is similar to how AIX traditionally builds its shared libraries.
5930 _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
4661 _LT_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
59314662 fi
59324663 fi
59334664 ;;
59344665
59354666 amigaos*)
5936 _LT_AC_TAGVAR(archive_cmds, $1)='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
5937 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
5938 _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
5939 # see comment about different semantics on the GNU ld section
5940 _LT_AC_TAGVAR(ld_shlibs, $1)=no
4667 case $host_cpu in
4668 powerpc)
4669 # see comment about AmigaOS4 .so support
4670 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
4671 _LT_TAGVAR(archive_expsym_cmds, $1)=''
4672 ;;
4673 m68k)
4674 _LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
4675 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
4676 _LT_TAGVAR(hardcode_minus_L, $1)=yes
4677 ;;
4678 esac
59414679 ;;
59424680
59434681 bsdi[[45]]*)
5944 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)=-rdynamic
5945 ;;
5946
5947 cygwin* | mingw* | pw32*)
4682 _LT_TAGVAR(export_dynamic_flag_spec, $1)=-rdynamic
4683 ;;
4684
4685 cygwin* | mingw* | pw32* | cegcc*)
59484686 # When not using gcc, we currently assume that we are using
59494687 # Microsoft Visual C++.
59504688 # hardcode_libdir_flag_spec is actually meaningless, as there is
59514689 # no search path for DLLs.
5952 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=' '
5953 _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
4690 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=' '
4691 _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
59544692 # Tell ltmain to make .lib files, not .a files.
59554693 libext=lib
59564694 # Tell ltmain to make .dll files, not .so files.
59574695 shrext_cmds=".dll"
59584696 # FIXME: Setting linknames here is a bad hack.
5959 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
4697 _LT_TAGVAR(archive_cmds, $1)='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
59604698 # The linker will automatically build a .lib file if we build a DLL.
5961 _LT_AC_TAGVAR(old_archive_From_new_cmds, $1)='true'
4699 _LT_TAGVAR(old_archive_from_new_cmds, $1)='true'
59624700 # FIXME: Should let the user specify the lib program.
5963 _LT_AC_TAGVAR(old_archive_cmds, $1)='lib -OUT:$oldlib$oldobjs$old_deplibs'
5964 _LT_AC_TAGVAR(fix_srcfile_path, $1)='`cygpath -w "$srcfile"`'
5965 _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
4701 _LT_TAGVAR(old_archive_cmds, $1)='lib -OUT:$oldlib$oldobjs$old_deplibs'
4702 _LT_TAGVAR(fix_srcfile_path, $1)='`cygpath -w "$srcfile"`'
4703 _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
59664704 ;;
59674705
59684706 darwin* | rhapsody*)
5969 case $host_os in
5970 rhapsody* | darwin1.[[012]])
5971 _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-undefined ${wl}suppress'
5972 ;;
5973 *) # Darwin 1.3 on
5974 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
5975 _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
5976 else
5977 case ${MACOSX_DEPLOYMENT_TARGET} in
5978 10.[[012]])
5979 _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
5980 ;;
5981 10.*)
5982 _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-undefined ${wl}dynamic_lookup'
5983 ;;
5984 esac
5985 fi
5986 ;;
5987 esac
5988 _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
5989 _LT_AC_TAGVAR(hardcode_direct, $1)=no
5990 _LT_AC_TAGVAR(hardcode_automatic, $1)=yes
5991 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
5992 _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=''
5993 _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
5994 if test "$GCC" = yes ; then
5995 output_verbose_link_cmd='echo'
5996 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
5997 _LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
5998 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
5999 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
6000 _LT_AC_TAGVAR(module_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
6001 else
6002 case $cc_basename in
6003 xlc*)
6004 output_verbose_link_cmd='echo'
6005 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
6006 _LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
6007 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
6008 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
6009 _LT_AC_TAGVAR(module_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
6010 ;;
6011 *)
6012 _LT_AC_TAGVAR(ld_shlibs, $1)=no
6013 ;;
6014 esac
6015 fi
4707 _LT_DARWIN_LINKER_FEATURES($1)
60164708 ;;
60174709
60184710 dgux*)
6019 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6020 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
6021 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
4711 _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
4712 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
4713 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
60224714 ;;
60234715
60244716 freebsd1*)
6025 _LT_AC_TAGVAR(ld_shlibs, $1)=no
4717 _LT_TAGVAR(ld_shlibs, $1)=no
60264718 ;;
60274719
60284720 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
60304722 # does not break anything, and helps significantly (at the cost of a little
60314723 # extra space).
60324724 freebsd2.2*)
6033 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
6034 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
6035 _LT_AC_TAGVAR(hardcode_direct, $1)=yes
6036 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
4725 _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
4726 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
4727 _LT_TAGVAR(hardcode_direct, $1)=yes
4728 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
60374729 ;;
60384730
60394731 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
60404732 freebsd2*)
6041 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6042 _LT_AC_TAGVAR(hardcode_direct, $1)=yes
6043 _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
6044 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
4733 _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
4734 _LT_TAGVAR(hardcode_direct, $1)=yes
4735 _LT_TAGVAR(hardcode_minus_L, $1)=yes
4736 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
60454737 ;;
60464738
60474739 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
60484740 freebsd* | dragonfly*)
6049 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
6050 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
6051 _LT_AC_TAGVAR(hardcode_direct, $1)=yes
6052 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
4741 _LT_TAGVAR(archive_cmds, $1)='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
4742 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
4743 _LT_TAGVAR(hardcode_direct, $1)=yes
4744 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
60534745 ;;
60544746
60554747 hpux9*)
60564748 if test "$GCC" = yes; then
6057 _LT_AC_TAGVAR(archive_cmds, $1)='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
4749 _LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
60584750 else
6059 _LT_AC_TAGVAR(archive_cmds, $1)='$rm $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
4751 _LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
60604752 fi
6061 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
6062 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
6063 _LT_AC_TAGVAR(hardcode_direct, $1)=yes
4753 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
4754 _LT_TAGVAR(hardcode_libdir_separator, $1)=:
4755 _LT_TAGVAR(hardcode_direct, $1)=yes
60644756
60654757 # hardcode_minus_L: Not really in the search PATH,
60664758 # but as the default location of the library.
6067 _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
6068 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
4759 _LT_TAGVAR(hardcode_minus_L, $1)=yes
4760 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
60694761 ;;
60704762
60714763 hpux10*)
60724764 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
6073 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
4765 _LT_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
60744766 else
6075 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
4767 _LT_TAGVAR(archive_cmds, $1)='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
60764768 fi
60774769 if test "$with_gnu_ld" = no; then
6078 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
6079 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
6080
6081 _LT_AC_TAGVAR(hardcode_direct, $1)=yes
6082 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
6083
4770 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
4771 _LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='+b $libdir'
4772 _LT_TAGVAR(hardcode_libdir_separator, $1)=:
4773 _LT_TAGVAR(hardcode_direct, $1)=yes
4774 _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
4775 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
60844776 # hardcode_minus_L: Not really in the search PATH,
60854777 # but as the default location of the library.
6086 _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
4778 _LT_TAGVAR(hardcode_minus_L, $1)=yes
60874779 fi
60884780 ;;
60894781
60914783 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
60924784 case $host_cpu in
60934785 hppa*64*)
6094 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
4786 _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
60954787 ;;
60964788 ia64*)
6097 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
4789 _LT_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
60984790 ;;
60994791 *)
6100 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
4792 _LT_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
61014793 ;;
61024794 esac
61034795 else
61044796 case $host_cpu in
61054797 hppa*64*)
6106 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
4798 _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
61074799 ;;
61084800 ia64*)
6109 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
4801 _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
61104802 ;;
61114803 *)
6112 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
4804 _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
61134805 ;;
61144806 esac
61154807 fi
61164808 if test "$with_gnu_ld" = no; then
6117 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
6118 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
4809 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
4810 _LT_TAGVAR(hardcode_libdir_separator, $1)=:
61194811
61204812 case $host_cpu in
61214813 hppa*64*|ia64*)
6122 _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='+b $libdir'
6123 _LT_AC_TAGVAR(hardcode_direct, $1)=no
6124 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
4814 _LT_TAGVAR(hardcode_direct, $1)=no
4815 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
61254816 ;;
61264817 *)
6127 _LT_AC_TAGVAR(hardcode_direct, $1)=yes
6128 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
4818 _LT_TAGVAR(hardcode_direct, $1)=yes
4819 _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
4820 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
61294821
61304822 # hardcode_minus_L: Not really in the search PATH,
61314823 # but as the default location of the library.
6132 _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
4824 _LT_TAGVAR(hardcode_minus_L, $1)=yes
61334825 ;;
61344826 esac
61354827 fi
61374829
61384830 irix5* | irix6* | nonstopux*)
61394831 if test "$GCC" = yes; then
6140 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
4832 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
4833 # Try to use the -exported_symbol ld option, if it does not
4834 # work, assume that -exports_file does not work either and
4835 # implicitly export all symbols.
4836 save_LDFLAGS="$LDFLAGS"
4837 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
4838 AC_LINK_IFELSE(int foo(void) {},
4839 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
4840 )
4841 LDFLAGS="$save_LDFLAGS"
61414842 else
6142 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
6143 _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='-rpath $libdir'
4843 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
4844 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
61444845 fi
6145 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
6146 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
6147 _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
4846 _LT_TAGVAR(archive_cmds_need_lc, $1)='no'
4847 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
4848 _LT_TAGVAR(hardcode_libdir_separator, $1)=:
4849 _LT_TAGVAR(inherit_rpath, $1)=yes
4850 _LT_TAGVAR(link_all_deplibs, $1)=yes
61484851 ;;
61494852
61504853 netbsd*)
6151 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6152 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
4854 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
4855 _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
61534856 else
6154 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
4857 _LT_TAGVAR(archive_cmds, $1)='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
61554858 fi
6156 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
6157 _LT_AC_TAGVAR(hardcode_direct, $1)=yes
6158 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
4859 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
4860 _LT_TAGVAR(hardcode_direct, $1)=yes
4861 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
61594862 ;;
61604863
61614864 newsos6)
6162 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6163 _LT_AC_TAGVAR(hardcode_direct, $1)=yes
6164 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
6165 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
6166 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
4865 _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
4866 _LT_TAGVAR(hardcode_direct, $1)=yes
4867 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
4868 _LT_TAGVAR(hardcode_libdir_separator, $1)=:
4869 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
4870 ;;
4871
4872 *nto* | *qnx*)
61674873 ;;
61684874
61694875 openbsd*)
61704876 if test -f /usr/libexec/ld.so; then
6171 _LT_AC_TAGVAR(hardcode_direct, $1)=yes
6172 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
6173 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6174 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
6175 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
6176 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
6177 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
4877 _LT_TAGVAR(hardcode_direct, $1)=yes
4878 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
4879 _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
4880 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4881 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
4882 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
4883 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
4884 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
61784885 else
61794886 case $host_os in
61804887 openbsd[[01]].* | openbsd2.[[0-7]] | openbsd2.[[0-7]].*)
6181 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6182 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
4888 _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
4889 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
61834890 ;;
61844891 *)
6185 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
6186 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
4892 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
4893 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
61874894 ;;
61884895 esac
6189 fi
4896 fi
61904897 else
6191 _LT_AC_TAGVAR(ld_shlibs, $1)=no
4898 _LT_TAGVAR(ld_shlibs, $1)=no
61924899 fi
61934900 ;;
61944901
61954902 os2*)
6196 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
6197 _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
6198 _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
6199 _LT_AC_TAGVAR(archive_cmds, $1)='$echo "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$echo "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$echo DATA >> $output_objdir/$libname.def~$echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~$echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
6200 _LT_AC_TAGVAR(old_archive_From_new_cmds, $1)='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
4903 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
4904 _LT_TAGVAR(hardcode_minus_L, $1)=yes
4905 _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
4906 _LT_TAGVAR(archive_cmds, $1)='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$ECHO DATA >> $output_objdir/$libname.def~$ECHO " SINGLE NONSHARED" >> $output_objdir/$libname.def~$ECHO EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
4907 _LT_TAGVAR(old_archive_from_new_cmds, $1)='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
62014908 ;;
62024909
62034910 osf3*)
62044911 if test "$GCC" = yes; then
6205 _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
6206 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
4912 _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
4913 _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
62074914 else
6208 _LT_AC_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
6209 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
4915 _LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
4916 _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
62104917 fi
6211 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
6212 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
4918 _LT_TAGVAR(archive_cmds_need_lc, $1)='no'
4919 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
4920 _LT_TAGVAR(hardcode_libdir_separator, $1)=:
62134921 ;;
62144922
62154923 osf4* | osf5*) # as osf3* with the addition of -msym flag
62164924 if test "$GCC" = yes; then
6217 _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
6218 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
6219 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
4925 _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
4926 _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
4927 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
62204928 else
6221 _LT_AC_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
6222 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
6223 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
6224 $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
4929 _LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
4930 _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
4931 _LT_TAGVAR(archive_expsym_cmds, $1)='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%s\\n" "-hidden">> $lib.exp~
4932 $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
62254933
62264934 # Both c and cxx compiler support -rpath directly
6227 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
4935 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
62284936 fi
6229 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
4937 _LT_TAGVAR(archive_cmds_need_lc, $1)='no'
4938 _LT_TAGVAR(hardcode_libdir_separator, $1)=:
62304939 ;;
62314940
62324941 solaris*)
6233 _LT_AC_TAGVAR(no_undefined_flag, $1)=' -z text'
4942 _LT_TAGVAR(no_undefined_flag, $1)=' -z defs'
62344943 if test "$GCC" = yes; then
62354944 wlarc='${wl}'
6236 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
6237 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
6238 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
4945 _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
4946 _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
4947 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
62394948 else
6240 wlarc=''
6241 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
6242 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
6243 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
4949 case `$CC -V 2>&1` in
4950 *"Compilers 5.0"*)
4951 wlarc=''
4952 _LT_TAGVAR(archive_cmds, $1)='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
4953 _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
4954 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
4955 ;;
4956 *)
4957 wlarc='${wl}'
4958 _LT_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
4959 _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
4960 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
4961 ;;
4962 esac
62444963 fi
6245 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
6246 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
4964 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
4965 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
62474966 case $host_os in
62484967 solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
62494968 *)
62504969 # The compiler driver will combine and reorder linker options,
62514970 # but understands `-z linker_flag'. GCC discards it without `$wl',
62524971 # but is careful enough not to reorder.
6253 # Supported since Solaris 2.6 (maybe 2.5.1?)
4972 # Supported since Solaris 2.6 (maybe 2.5.1?)
62544973 if test "$GCC" = yes; then
6255 _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
4974 _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
62564975 else
6257 _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract'
4976 _LT_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract'
62584977 fi
62594978 ;;
62604979 esac
6261 _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
4980 _LT_TAGVAR(link_all_deplibs, $1)=yes
62624981 ;;
62634982
62644983 sunos4*)
62654984 if test "x$host_vendor" = xsequent; then
62664985 # Use $CC to link under sequent, because it throws in some extra .o
62674986 # files that make .init and .fini sections work.
6268 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
4987 _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
62694988 else
6270 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
4989 _LT_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
62714990 fi
6272 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
6273 _LT_AC_TAGVAR(hardcode_direct, $1)=yes
6274 _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
6275 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
4991 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
4992 _LT_TAGVAR(hardcode_direct, $1)=yes
4993 _LT_TAGVAR(hardcode_minus_L, $1)=yes
4994 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
62764995 ;;
62774996
62784997 sysv4)
62794998 case $host_vendor in
62804999 sni)
6281 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6282 _LT_AC_TAGVAR(hardcode_direct, $1)=yes # is this really true???
5000 _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5001 _LT_TAGVAR(hardcode_direct, $1)=yes # is this really true???
62835002 ;;
62845003 siemens)
62855004 ## LD is ld it makes a PLAMLIB
62865005 ## CC just makes a GrossModule.
6287 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -o $lib $libobjs $deplibs $linker_flags'
6288 _LT_AC_TAGVAR(reload_cmds, $1)='$CC -r -o $output$reload_objs'
6289 _LT_AC_TAGVAR(hardcode_direct, $1)=no
5006 _LT_TAGVAR(archive_cmds, $1)='$LD -G -o $lib $libobjs $deplibs $linker_flags'
5007 _LT_TAGVAR(reload_cmds, $1)='$CC -r -o $output$reload_objs'
5008 _LT_TAGVAR(hardcode_direct, $1)=no
62905009 ;;
62915010 motorola)
6292 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6293 _LT_AC_TAGVAR(hardcode_direct, $1)=no #Motorola manual says yes, but my tests say they lie
5011 _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5012 _LT_TAGVAR(hardcode_direct, $1)=no #Motorola manual says yes, but my tests say they lie
62945013 ;;
62955014 esac
62965015 runpath_var='LD_RUN_PATH'
6297 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
5016 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
62985017 ;;
62995018
63005019 sysv4.3*)
6301 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6302 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
6303 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='-Bexport'
5020 _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5021 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
5022 _LT_TAGVAR(export_dynamic_flag_spec, $1)='-Bexport'
63045023 ;;
63055024
63065025 sysv4*MP*)
63075026 if test -d /usr/nec; then
6308 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6309 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
5027 _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5028 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
63105029 runpath_var=LD_RUN_PATH
63115030 hardcode_runpath_var=yes
6312 _LT_AC_TAGVAR(ld_shlibs, $1)=yes
5031 _LT_TAGVAR(ld_shlibs, $1)=yes
63135032 fi
63145033 ;;
63155034
63165035 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7* | sco3.2v5.0.[[024]]*)
6317 _LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
6318 _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
6319 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
5036 _LT_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
5037 _LT_TAGVAR(archive_cmds_need_lc, $1)=no
5038 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
63205039 runpath_var='LD_RUN_PATH'
63215040
63225041 if test "$GCC" = yes; then
6323 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
6324 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
5042 _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
5043 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
63255044 else
6326 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
6327 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
5045 _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
5046 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
63285047 fi
63295048 ;;
63305049
63355054 # ever link correctly. If we're not using GNU ld we use -z text
63365055 # though, which does catch some bad symbols but isn't as heavy-handed
63375056 # as -z defs.
6338 _LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
6339 _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-z,nodefs'
6340 _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
6341 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
6342 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
6343 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=':'
6344 _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
6345 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport'
5057 _LT_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
5058 _LT_TAGVAR(allow_undefined_flag, $1)='${wl}-z,nodefs'
5059 _LT_TAGVAR(archive_cmds_need_lc, $1)=no
5060 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
5061 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R,$libdir'
5062 _LT_TAGVAR(hardcode_libdir_separator, $1)=':'
5063 _LT_TAGVAR(link_all_deplibs, $1)=yes
5064 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport'
63465065 runpath_var='LD_RUN_PATH'
63475066
63485067 if test "$GCC" = yes; then
6349 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
6350 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
5068 _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
5069 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
63515070 else
6352 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
6353 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
5071 _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
5072 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
63545073 fi
63555074 ;;
63565075
63575076 uts4*)
6358 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6359 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
6360 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
5077 _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5078 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
5079 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
63615080 ;;
63625081
63635082 *)
6364 _LT_AC_TAGVAR(ld_shlibs, $1)=no
5083 _LT_TAGVAR(ld_shlibs, $1)=no
63655084 ;;
63665085 esac
5086
5087 if test x$host_vendor = xsni; then
5088 case $host in
5089 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
5090 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Blargedynsym'
5091 ;;
5092 esac
5093 fi
63675094 fi
63685095 ])
6369 AC_MSG_RESULT([$_LT_AC_TAGVAR(ld_shlibs, $1)])
6370 test "$_LT_AC_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no
5096 AC_MSG_RESULT([$_LT_TAGVAR(ld_shlibs, $1)])
5097 test "$_LT_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no
5098
5099 _LT_TAGVAR(with_gnu_ld, $1)=$with_gnu_ld
5100
5101 _LT_DECL([], [libext], [0], [Old archive suffix (normally "a")])dnl
5102 _LT_DECL([], [shrext_cmds], [1], [Shared library suffix (normally ".so")])dnl
5103 _LT_DECL([], [extract_expsyms_cmds], [2],
5104 [The commands to extract the exported symbol list from a shared archive])
63715105
63725106 #
63735107 # Do we need to explicitly link libc?
63745108 #
6375 case "x$_LT_AC_TAGVAR(archive_cmds_need_lc, $1)" in
5109 case "x$_LT_TAGVAR(archive_cmds_need_lc, $1)" in
63765110 x|xyes)
63775111 # Assume -lc should be added
6378 _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes
5112 _LT_TAGVAR(archive_cmds_need_lc, $1)=yes
63795113
63805114 if test "$enable_shared" = yes && test "$GCC" = yes; then
6381 case $_LT_AC_TAGVAR(archive_cmds, $1) in
5115 case $_LT_TAGVAR(archive_cmds, $1) in
63825116 *'~'*)
63835117 # FIXME: we may have to deal with multi-command sequences.
63845118 ;;
63875121 # systems, -lgcc has to come before -lc. If gcc already passes -lc
63885122 # to ld, don't add -lc before -lgcc.
63895123 AC_MSG_CHECKING([whether -lc should be explicitly linked in])
6390 $rm conftest*
5124 $RM conftest*
63915125 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
63925126
63935127 if AC_TRY_EVAL(ac_compile) 2>conftest.err; then
63955129 lib=conftest
63965130 libobjs=conftest.$ac_objext
63975131 deplibs=
6398 wl=$_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)
6399 pic_flag=$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)
5132 wl=$_LT_TAGVAR(lt_prog_compiler_wl, $1)
5133 pic_flag=$_LT_TAGVAR(lt_prog_compiler_pic, $1)
64005134 compiler_flags=-v
64015135 linker_flags=-v
64025136 verstring=
64035137 output_objdir=.
64045138 libname=conftest
6405 lt_save_allow_undefined_flag=$_LT_AC_TAGVAR(allow_undefined_flag, $1)
6406 _LT_AC_TAGVAR(allow_undefined_flag, $1)=
6407 if AC_TRY_EVAL(_LT_AC_TAGVAR(archive_cmds, $1) 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1)
5139 lt_save_allow_undefined_flag=$_LT_TAGVAR(allow_undefined_flag, $1)
5140 _LT_TAGVAR(allow_undefined_flag, $1)=
5141 if AC_TRY_EVAL(_LT_TAGVAR(archive_cmds, $1) 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1)
64085142 then
6409 _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
5143 _LT_TAGVAR(archive_cmds_need_lc, $1)=no
64105144 else
6411 _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes
5145 _LT_TAGVAR(archive_cmds_need_lc, $1)=yes
64125146 fi
6413 _LT_AC_TAGVAR(allow_undefined_flag, $1)=$lt_save_allow_undefined_flag
5147 _LT_TAGVAR(allow_undefined_flag, $1)=$lt_save_allow_undefined_flag
64145148 else
64155149 cat conftest.err 1>&5
64165150 fi
6417 $rm conftest*
6418 AC_MSG_RESULT([$_LT_AC_TAGVAR(archive_cmds_need_lc, $1)])
5151 $RM conftest*
5152 AC_MSG_RESULT([$_LT_TAGVAR(archive_cmds_need_lc, $1)])
64195153 ;;
64205154 esac
64215155 fi
64225156 ;;
64235157 esac
6424 ])# AC_LIBTOOL_PROG_LD_SHLIBS
6425
6426
6427 # _LT_AC_FILE_LTDLL_C
6428 # -------------------
6429 # Be careful that the start marker always follows a newline.
6430 AC_DEFUN([_LT_AC_FILE_LTDLL_C], [
6431 # /* ltdll.c starts here */
6432 # #define WIN32_LEAN_AND_MEAN
6433 # #include <windows.h>
6434 # #undef WIN32_LEAN_AND_MEAN
6435 # #include <stdio.h>
6436 #
6437 # #ifndef __CYGWIN__
6438 # # ifdef __CYGWIN32__
6439 # # define __CYGWIN__ __CYGWIN32__
6440 # # endif
6441 # #endif
6442 #
6443 # #ifdef __cplusplus
6444 # extern "C" {
6445 # #endif
6446 # BOOL APIENTRY DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved);
6447 # #ifdef __cplusplus
6448 # }
6449 # #endif
6450 #
6451 # #ifdef __CYGWIN__
6452 # #include <cygwin/cygwin_dll.h>
6453 # DECLARE_CYGWIN_DLL( DllMain );
6454 # #endif
6455 # HINSTANCE __hDllInstance_base;
6456 #
6457 # BOOL APIENTRY
6458 # DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved)
6459 # {
6460 # __hDllInstance_base = hInst;
6461 # return TRUE;
6462 # }
6463 # /* ltdll.c ends here */
6464 ])# _LT_AC_FILE_LTDLL_C
6465
6466
6467 # _LT_AC_TAGVAR(VARNAME, [TAGNAME])
5158
5159 _LT_TAGDECL([build_libtool_need_lc], [archive_cmds_need_lc], [0],
5160 [Whether or not to add -lc for building shared libraries])
5161 _LT_TAGDECL([allow_libtool_libs_with_static_runtimes],
5162 [enable_shared_with_static_runtimes], [0],
5163 [Whether or not to disallow shared libs when runtime libs are static])
5164 _LT_TAGDECL([], [export_dynamic_flag_spec], [1],
5165 [Compiler flag to allow reflexive dlopens])
5166 _LT_TAGDECL([], [whole_archive_flag_spec], [1],
5167 [Compiler flag to generate shared objects directly from archives])
5168 _LT_TAGDECL([], [compiler_needs_object], [1],
5169 [Whether the compiler copes with passing no objects directly])
5170 _LT_TAGDECL([], [old_archive_from_new_cmds], [2],
5171 [Create an old-style archive from a shared archive])
5172 _LT_TAGDECL([], [old_archive_from_expsyms_cmds], [2],
5173 [Create a temporary old-style archive to link instead of a shared archive])
5174 _LT_TAGDECL([], [archive_cmds], [2], [Commands used to build a shared archive])
5175 _LT_TAGDECL([], [archive_expsym_cmds], [2])
5176 _LT_TAGDECL([], [module_cmds], [2],
5177 [Commands used to build a loadable module if different from building
5178 a shared archive.])
5179 _LT_TAGDECL([], [module_expsym_cmds], [2])
5180 _LT_TAGDECL([], [with_gnu_ld], [1],
5181 [Whether we are building with GNU ld or not])
5182 _LT_TAGDECL([], [allow_undefined_flag], [1],
5183 [Flag that allows shared libraries with undefined symbols to be built])
5184 _LT_TAGDECL([], [no_undefined_flag], [1],
5185 [Flag that enforces no undefined symbols])
5186 _LT_TAGDECL([], [hardcode_libdir_flag_spec], [1],
5187 [Flag to hardcode $libdir into a binary during linking.
5188 This must work even if $libdir does not exist])
5189 _LT_TAGDECL([], [hardcode_libdir_flag_spec_ld], [1],
5190 [[If ld is used when linking, flag to hardcode $libdir into a binary
5191 during linking. This must work even if $libdir does not exist]])
5192 _LT_TAGDECL([], [hardcode_libdir_separator], [1],
5193 [Whether we need a single "-rpath" flag with a separated argument])
5194 _LT_TAGDECL([], [hardcode_direct], [0],
5195 [Set to "yes" if using DIR/libNAME${shared_ext} during linking hardcodes
5196 DIR into the resulting binary])
5197 _LT_TAGDECL([], [hardcode_direct_absolute], [0],
5198 [Set to "yes" if using DIR/libNAME${shared_ext} during linking hardcodes
5199 DIR into the resulting binary and the resulting library dependency is
5200 "absolute", i.e impossible to change by setting ${shlibpath_var} if the
5201 library is relocated])
5202 _LT_TAGDECL([], [hardcode_minus_L], [0],
5203 [Set to "yes" if using the -LDIR flag during linking hardcodes DIR
5204 into the resulting binary])
5205 _LT_TAGDECL([], [hardcode_shlibpath_var], [0],
5206 [Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
5207 into the resulting binary])
5208 _LT_TAGDECL([], [hardcode_automatic], [0],
5209 [Set to "yes" if building a shared library automatically hardcodes DIR
5210 into the library and all subsequent libraries and executables linked
5211 against it])
5212 _LT_TAGDECL([], [inherit_rpath], [0],
5213 [Set to yes if linker adds runtime paths of dependent libraries
5214 to runtime path list])
5215 _LT_TAGDECL([], [link_all_deplibs], [0],
5216 [Whether libtool must link a program against all its dependency libraries])
5217 _LT_TAGDECL([], [fix_srcfile_path], [1],
5218 [Fix the shell variable $srcfile for the compiler])
5219 _LT_TAGDECL([], [always_export_symbols], [0],
5220 [Set to "yes" if exported symbols are required])
5221 _LT_TAGDECL([], [export_symbols_cmds], [2],
5222 [The commands to list exported symbols])
5223 _LT_TAGDECL([], [exclude_expsyms], [1],
5224 [Symbols that should not be listed in the preloaded symbols])
5225 _LT_TAGDECL([], [include_expsyms], [1],
5226 [Symbols that must always be exported])
5227 _LT_TAGDECL([], [prelink_cmds], [2],
5228 [Commands necessary for linking programs (against libraries) with templates])
5229 _LT_TAGDECL([], [file_list_spec], [1],
5230 [Specify filename containing input files])
5231 dnl FIXME: Not yet implemented
5232 dnl _LT_TAGDECL([], [thread_safe_flag_spec], [1],
5233 dnl [Compiler flag to generate thread safe objects])
5234 ])# _LT_LINKER_SHLIBS
5235
5236
5237 # _LT_LANG_C_CONFIG([TAG])
5238 # ------------------------
5239 # Ensure that the configuration variables for a C compiler are suitably
5240 # defined. These variables are subsequently used by _LT_CONFIG to write
5241 # the compiler configuration to `libtool'.
5242 m4_defun([_LT_LANG_C_CONFIG],
5243 [m4_require([_LT_DECL_EGREP])dnl
5244 lt_save_CC="$CC"
5245 AC_LANG_PUSH(C)
5246
5247 # Source file extension for C test sources.
5248 ac_ext=c
5249
5250 # Object file extension for compiled C test sources.
5251 objext=o
5252 _LT_TAGVAR(objext, $1)=$objext
5253
5254 # Code to be used in simple compile tests
5255 lt_simple_compile_test_code="int some_variable = 0;"
5256
5257 # Code to be used in simple link tests
5258 lt_simple_link_test_code='int main(){return(0);}'
5259
5260 _LT_TAG_COMPILER
5261 # Save the default compiler, since it gets overwritten when the other
5262 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
5263 compiler_DEFAULT=$CC
5264
5265 # save warnings/boilerplate of simple test code
5266 _LT_COMPILER_BOILERPLATE
5267 _LT_LINKER_BOILERPLATE
5268
5269 if test -n "$compiler"; then
5270 _LT_COMPILER_NO_RTTI($1)
5271 _LT_COMPILER_PIC($1)
5272 _LT_COMPILER_C_O($1)
5273 _LT_COMPILER_FILE_LOCKS($1)
5274 _LT_LINKER_SHLIBS($1)
5275 _LT_SYS_DYNAMIC_LINKER($1)
5276 _LT_LINKER_HARDCODE_LIBPATH($1)
5277 LT_SYS_DLOPEN_SELF
5278 _LT_CMD_STRIPLIB
5279
5280 # Report which library types will actually be built
5281 AC_MSG_CHECKING([if libtool supports shared libraries])
5282 AC_MSG_RESULT([$can_build_shared])
5283
5284 AC_MSG_CHECKING([whether to build shared libraries])
5285 test "$can_build_shared" = "no" && enable_shared=no
5286
5287 # On AIX, shared libraries and static libraries use the same namespace, and
5288 # are all built from PIC.
5289 case $host_os in
5290 aix3*)
5291 test "$enable_shared" = yes && enable_static=no
5292 if test -n "$RANLIB"; then
5293 archive_cmds="$archive_cmds~\$RANLIB \$lib"
5294 postinstall_cmds='$RANLIB $lib'
5295 fi
5296 ;;
5297
5298 aix[[4-9]]*)
5299 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
5300 test "$enable_shared" = yes && enable_static=no
5301 fi
5302 ;;
5303 esac
5304 AC_MSG_RESULT([$enable_shared])
5305
5306 AC_MSG_CHECKING([whether to build static libraries])
5307 # Make sure either enable_shared or enable_static is yes.
5308 test "$enable_shared" = yes || enable_static=yes
5309 AC_MSG_RESULT([$enable_static])
5310
5311 _LT_CONFIG($1)
5312 fi
5313 AC_LANG_POP
5314 CC="$lt_save_CC"
5315 ])# _LT_LANG_C_CONFIG
5316
5317
5318 # _LT_PROG_CXX
5319 # ------------
5320 # Since AC_PROG_CXX is broken, in that it returns g++ if there is no c++
5321 # compiler, we have our own version here.
5322 m4_defun([_LT_PROG_CXX],
5323 [
5324 pushdef([AC_MSG_ERROR], [_lt_caught_CXX_error=yes])
5325 AC_PROG_CXX
5326 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
5327 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
5328 (test "X$CXX" != "Xg++"))) ; then
5329 AC_PROG_CXXCPP
5330 else
5331 _lt_caught_CXX_error=yes
5332 fi
5333 popdef([AC_MSG_ERROR])
5334 ])# _LT_PROG_CXX
5335
5336 dnl aclocal-1.4 backwards compatibility:
5337 dnl AC_DEFUN([_LT_PROG_CXX], [])
5338
5339
5340 # _LT_LANG_CXX_CONFIG([TAG])
5341 # --------------------------
5342 # Ensure that the configuration variables for a C++ compiler are suitably
5343 # defined. These variables are subsequently used by _LT_CONFIG to write
5344 # the compiler configuration to `libtool'.
5345 m4_defun([_LT_LANG_CXX_CONFIG],
5346 [AC_REQUIRE([_LT_PROG_CXX])dnl
5347 m4_require([_LT_FILEUTILS_DEFAULTS])dnl
5348 m4_require([_LT_DECL_EGREP])dnl
5349
5350 AC_LANG_PUSH(C++)
5351 _LT_TAGVAR(archive_cmds_need_lc, $1)=no
5352 _LT_TAGVAR(allow_undefined_flag, $1)=
5353 _LT_TAGVAR(always_export_symbols, $1)=no
5354 _LT_TAGVAR(archive_expsym_cmds, $1)=
5355 _LT_TAGVAR(compiler_needs_object, $1)=no
5356 _LT_TAGVAR(export_dynamic_flag_spec, $1)=
5357 _LT_TAGVAR(hardcode_direct, $1)=no
5358 _LT_TAGVAR(hardcode_direct_absolute, $1)=no
5359 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
5360 _LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
5361 _LT_TAGVAR(hardcode_libdir_separator, $1)=
5362 _LT_TAGVAR(hardcode_minus_L, $1)=no
5363 _LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
5364 _LT_TAGVAR(hardcode_automatic, $1)=no
5365 _LT_TAGVAR(inherit_rpath, $1)=no
5366 _LT_TAGVAR(module_cmds, $1)=
5367 _LT_TAGVAR(module_expsym_cmds, $1)=
5368 _LT_TAGVAR(link_all_deplibs, $1)=unknown
5369 _LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
5370 _LT_TAGVAR(no_undefined_flag, $1)=
5371 _LT_TAGVAR(whole_archive_flag_spec, $1)=
5372 _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no
5373
5374 # Source file extension for C++ test sources.
5375 ac_ext=cpp
5376
5377 # Object file extension for compiled C++ test sources.
5378 objext=o
5379 _LT_TAGVAR(objext, $1)=$objext
5380
5381 # No sense in running all these tests if we already determined that
5382 # the CXX compiler isn't working. Some variables (like enable_shared)
5383 # are currently assumed to apply to all compilers on this platform,
5384 # and will be corrupted by setting them based on a non-working compiler.
5385 if test "$_lt_caught_CXX_error" != yes; then
5386 # Code to be used in simple compile tests
5387 lt_simple_compile_test_code="int some_variable = 0;"
5388
5389 # Code to be used in simple link tests
5390 lt_simple_link_test_code='int main(int, char *[[]]) { return(0); }'
5391
5392 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
5393 _LT_TAG_COMPILER
5394
5395 # save warnings/boilerplate of simple test code
5396 _LT_COMPILER_BOILERPLATE
5397 _LT_LINKER_BOILERPLATE
5398
5399 # Allow CC to be a program name with arguments.
5400 lt_save_CC=$CC
5401 lt_save_LD=$LD
5402 lt_save_GCC=$GCC
5403 GCC=$GXX
5404 lt_save_with_gnu_ld=$with_gnu_ld
5405 lt_save_path_LD=$lt_cv_path_LD
5406 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
5407 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
5408 else
5409 $as_unset lt_cv_prog_gnu_ld
5410 fi
5411 if test -n "${lt_cv_path_LDCXX+set}"; then
5412 lt_cv_path_LD=$lt_cv_path_LDCXX
5413 else
5414 $as_unset lt_cv_path_LD
5415 fi
5416 test -z "${LDCXX+set}" || LD=$LDCXX
5417 CC=${CXX-"c++"}
5418 compiler=$CC
5419 _LT_TAGVAR(compiler, $1)=$CC
5420 _LT_CC_BASENAME([$compiler])
5421
5422 if test -n "$compiler"; then
5423 # We don't want -fno-exception when compiling C++ code, so set the
5424 # no_builtin_flag separately
5425 if test "$GXX" = yes; then
5426 _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin'
5427 else
5428 _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=
5429 fi
5430
5431 if test "$GXX" = yes; then
5432 # Set up default GNU C++ configuration
5433
5434 LT_PATH_LD
5435
5436 # Check if GNU C++ uses GNU ld as the underlying linker, since the
5437 # archiving commands below assume that GNU ld is being used.
5438 if test "$with_gnu_ld" = yes; then
5439 _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
5440 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
5441
5442 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
5443 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
5444
5445 # If archive_cmds runs LD, not CC, wlarc should be empty
5446 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
5447 # investigate it a little bit more. (MM)
5448 wlarc='${wl}'
5449
5450 # ancient GNU ld didn't support --whole-archive et. al.
5451 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
5452 $GREP 'no-whole-archive' > /dev/null; then
5453 _LT_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
5454 else
5455 _LT_TAGVAR(whole_archive_flag_spec, $1)=
5456 fi
5457 else
5458 with_gnu_ld=no
5459 wlarc=
5460
5461 # A generic and very simple default shared library creation
5462 # command for GNU C++ for the case where it uses the native
5463 # linker, instead of GNU ld. If possible, this setting should
5464 # overridden to take advantage of the native linker features on
5465 # the platform it is being used on.
5466 _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
5467 fi
5468
5469 # Commands to make compiler produce verbose output that lists
5470 # what "hidden" libraries, object files and flags are used when
5471 # linking a shared library.
5472 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
5473
5474 else
5475 GXX=no
5476 with_gnu_ld=no
5477 wlarc=
5478 fi
5479
5480 # PORTME: fill in a description of your system's C++ link characteristics
5481 AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries])
5482 _LT_TAGVAR(ld_shlibs, $1)=yes
5483 case $host_os in
5484 aix3*)
5485 # FIXME: insert proper C++ library support
5486 _LT_TAGVAR(ld_shlibs, $1)=no
5487 ;;
5488 aix[[4-9]]*)
5489 if test "$host_cpu" = ia64; then
5490 # On IA64, the linker does run time linking by default, so we don't
5491 # have to do anything special.
5492 aix_use_runtimelinking=no
5493 exp_sym_flag='-Bexport'
5494 no_entry_flag=""
5495 else
5496 aix_use_runtimelinking=no
5497
5498 # Test if we are trying to use run time linking or normal
5499 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
5500 # need to do runtime linking.
5501 case $host_os in aix4.[[23]]|aix4.[[23]].*|aix[[5-9]]*)
5502 for ld_flag in $LDFLAGS; do
5503 case $ld_flag in
5504 *-brtl*)
5505 aix_use_runtimelinking=yes
5506 break
5507 ;;
5508 esac
5509 done
5510 ;;
5511 esac
5512
5513 exp_sym_flag='-bexport'
5514 no_entry_flag='-bnoentry'
5515 fi
5516
5517 # When large executables or shared objects are built, AIX ld can
5518 # have problems creating the table of contents. If linking a library
5519 # or program results in "error TOC overflow" add -mminimal-toc to
5520 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
5521 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
5522
5523 _LT_TAGVAR(archive_cmds, $1)=''
5524 _LT_TAGVAR(hardcode_direct, $1)=yes
5525 _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
5526 _LT_TAGVAR(hardcode_libdir_separator, $1)=':'
5527 _LT_TAGVAR(link_all_deplibs, $1)=yes
5528 _LT_TAGVAR(file_list_spec, $1)='${wl}-f,'
5529
5530 if test "$GXX" = yes; then
5531 case $host_os in aix4.[[012]]|aix4.[[012]].*)
5532 # We only want to do this on AIX 4.2 and lower, the check
5533 # below for broken collect2 doesn't work under 4.3+
5534 collect2name=`${CC} -print-prog-name=collect2`
5535 if test -f "$collect2name" &&
5536 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
5537 then
5538 # We have reworked collect2
5539 :
5540 else
5541 # We have old collect2
5542 _LT_TAGVAR(hardcode_direct, $1)=unsupported
5543 # It fails to find uninstalled libraries when the uninstalled
5544 # path is not listed in the libpath. Setting hardcode_minus_L
5545 # to unsupported forces relinking
5546 _LT_TAGVAR(hardcode_minus_L, $1)=yes
5547 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
5548 _LT_TAGVAR(hardcode_libdir_separator, $1)=
5549 fi
5550 esac
5551 shared_flag='-shared'
5552 if test "$aix_use_runtimelinking" = yes; then
5553 shared_flag="$shared_flag "'${wl}-G'
5554 fi
5555 else
5556 # not using gcc
5557 if test "$host_cpu" = ia64; then
5558 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
5559 # chokes on -Wl,-G. The following line is correct:
5560 shared_flag='-G'
5561 else
5562 if test "$aix_use_runtimelinking" = yes; then
5563 shared_flag='${wl}-G'
5564 else
5565 shared_flag='${wl}-bM:SRE'
5566 fi
5567 fi
5568 fi
5569
5570 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-bexpall'
5571 # It seems that -bexpall does not export symbols beginning with
5572 # underscore (_), so it is better to generate a list of symbols to
5573 # export.
5574 _LT_TAGVAR(always_export_symbols, $1)=yes
5575 if test "$aix_use_runtimelinking" = yes; then
5576 # Warning - without using the other runtime loading flags (-brtl),
5577 # -berok will link without error, but may produce a broken library.
5578 _LT_TAGVAR(allow_undefined_flag, $1)='-berok'
5579 # Determine the default libpath from the value encoded in an empty
5580 # executable.
5581 _LT_SYS_MODULE_PATH_AIX
5582 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
5583
5584 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then $ECHO "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
5585 else
5586 if test "$host_cpu" = ia64; then
5587 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib'
5588 _LT_TAGVAR(allow_undefined_flag, $1)="-z nodefs"
5589 _LT_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
5590 else
5591 # Determine the default libpath from the value encoded in an
5592 # empty executable.
5593 _LT_SYS_MODULE_PATH_AIX
5594 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
5595 # Warning - without using the other run time loading flags,
5596 # -berok will link without error, but may produce a broken library.
5597 _LT_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok'
5598 _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok'
5599 # Exported symbols can be pulled into shared objects from archives
5600 _LT_TAGVAR(whole_archive_flag_spec, $1)='$convenience'
5601 _LT_TAGVAR(archive_cmds_need_lc, $1)=yes
5602 # This is similar to how AIX traditionally builds its shared
5603 # libraries.
5604 _LT_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
5605 fi
5606 fi
5607 ;;
5608
5609 beos*)
5610 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
5611 _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
5612 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
5613 # support --undefined. This deserves some investigation. FIXME
5614 _LT_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5615 else
5616 _LT_TAGVAR(ld_shlibs, $1)=no
5617 fi
5618 ;;
5619
5620 chorus*)
5621 case $cc_basename in
5622 *)
5623 # FIXME: insert proper C++ library support
5624 _LT_TAGVAR(ld_shlibs, $1)=no
5625 ;;
5626 esac
5627 ;;
5628
5629 cygwin* | mingw* | pw32* | cegcc*)
5630 # _LT_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless,
5631 # as there is no search path for DLLs.
5632 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
5633 _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
5634 _LT_TAGVAR(always_export_symbols, $1)=no
5635 _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
5636
5637 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
5638 _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
5639 # If the export-symbols file already is a .def file (1st line
5640 # is EXPORTS), use it as is; otherwise, prepend...
5641 _LT_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
5642 cp $export_symbols $output_objdir/$soname.def;
5643 else
5644 echo EXPORTS > $output_objdir/$soname.def;
5645 cat $export_symbols >> $output_objdir/$soname.def;
5646 fi~
5647 $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
5648 else
5649 _LT_TAGVAR(ld_shlibs, $1)=no
5650 fi
5651 ;;
5652 darwin* | rhapsody*)
5653 _LT_DARWIN_LINKER_FEATURES($1)
5654 ;;
5655
5656 dgux*)
5657 case $cc_basename in
5658 ec++*)
5659 # FIXME: insert proper C++ library support
5660 _LT_TAGVAR(ld_shlibs, $1)=no
5661 ;;
5662 ghcx*)
5663 # Green Hills C++ Compiler
5664 # FIXME: insert proper C++ library support
5665 _LT_TAGVAR(ld_shlibs, $1)=no
5666 ;;
5667 *)
5668 # FIXME: insert proper C++ library support
5669 _LT_TAGVAR(ld_shlibs, $1)=no
5670 ;;
5671 esac
5672 ;;
5673
5674 freebsd[[12]]*)
5675 # C++ shared libraries reported to be fairly broken before
5676 # switch to ELF
5677 _LT_TAGVAR(ld_shlibs, $1)=no
5678 ;;
5679
5680 freebsd-elf*)
5681 _LT_TAGVAR(archive_cmds_need_lc, $1)=no
5682 ;;
5683
5684 freebsd* | dragonfly*)
5685 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
5686 # conventions
5687 _LT_TAGVAR(ld_shlibs, $1)=yes
5688 ;;
5689
5690 gnu*)
5691 ;;
5692
5693 hpux9*)
5694 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
5695 _LT_TAGVAR(hardcode_libdir_separator, $1)=:
5696 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
5697 _LT_TAGVAR(hardcode_direct, $1)=yes
5698 _LT_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH,
5699 # but as the default
5700 # location of the library.
5701
5702 case $cc_basename in
5703 CC*)
5704 # FIXME: insert proper C++ library support
5705 _LT_TAGVAR(ld_shlibs, $1)=no
5706 ;;
5707 aCC*)
5708 _LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/$soname~$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
5709 # Commands to make compiler produce verbose output that lists
5710 # what "hidden" libraries, object files and flags are used when
5711 # linking a shared library.
5712 #
5713 # There doesn't appear to be a way to prevent this compiler from
5714 # explicitly linking system object files so we need to strip them
5715 # from the output so that they don't get included in the library
5716 # dependencies.
5717 output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $EGREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
5718 ;;
5719 *)
5720 if test "$GXX" = yes; then
5721 _LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/$soname~$CC -shared -nostdlib -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
5722 else
5723 # FIXME: insert proper C++ library support
5724 _LT_TAGVAR(ld_shlibs, $1)=no
5725 fi
5726 ;;
5727 esac
5728 ;;
5729
5730 hpux10*|hpux11*)
5731 if test $with_gnu_ld = no; then
5732 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
5733 _LT_TAGVAR(hardcode_libdir_separator, $1)=:
5734
5735 case $host_cpu in
5736 hppa*64*|ia64*)
5737 ;;
5738 *)
5739 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
5740 ;;
5741 esac
5742 fi
5743 case $host_cpu in
5744 hppa*64*|ia64*)
5745 _LT_TAGVAR(hardcode_direct, $1)=no
5746 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
5747 ;;
5748 *)
5749 _LT_TAGVAR(hardcode_direct, $1)=yes
5750 _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
5751 _LT_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH,
5752 # but as the default
5753 # location of the library.
5754 ;;
5755 esac
5756
5757 case $cc_basename in
5758 CC*)
5759 # FIXME: insert proper C++ library support
5760 _LT_TAGVAR(ld_shlibs, $1)=no
5761 ;;
5762 aCC*)
5763 case $host_cpu in
5764 hppa*64*)
5765 _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
5766 ;;
5767 ia64*)
5768 _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
5769 ;;
5770 *)
5771 _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
5772 ;;
5773 esac
5774 # Commands to make compiler produce verbose output that lists
5775 # what "hidden" libraries, object files and flags are used when
5776 # linking a shared library.
5777 #
5778 # There doesn't appear to be a way to prevent this compiler from
5779 # explicitly linking system object files so we need to strip them
5780 # from the output so that they don't get included in the library
5781 # dependencies.
5782 output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $GREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
5783 ;;
5784 *)
5785 if test "$GXX" = yes; then
5786 if test $with_gnu_ld = no; then
5787 case $host_cpu in
5788 hppa*64*)
5789 _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
5790 ;;
5791 ia64*)
5792 _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
5793 ;;
5794 *)
5795 _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
5796 ;;
5797 esac
5798 fi
5799 else
5800 # FIXME: insert proper C++ library support
5801 _LT_TAGVAR(ld_shlibs, $1)=no
5802 fi
5803 ;;
5804 esac
5805 ;;
5806
5807 interix[[3-9]]*)
5808 _LT_TAGVAR(hardcode_direct, $1)=no
5809 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
5810 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
5811 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
5812 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
5813 # Instead, shared libraries are loaded at an image base (0x10000000 by
5814 # default) and relocated if they conflict, which is a slow very memory
5815 # consuming and fragmenting process. To avoid this, we pick a random,
5816 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
5817 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
5818 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
5819 _LT_TAGVAR(archive_expsym_cmds, $1)='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
5820 ;;
5821 irix5* | irix6*)
5822 case $cc_basename in
5823 CC*)
5824 # SGI C++
5825 _LT_TAGVAR(archive_cmds, $1)='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
5826
5827 # Archives containing C++ object files must be created using
5828 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
5829 # necessary to make sure instantiated templates are included
5830 # in the archive.
5831 _LT_TAGVAR(old_archive_cmds, $1)='$CC -ar -WR,-u -o $oldlib $oldobjs'
5832 ;;
5833 *)
5834 if test "$GXX" = yes; then
5835 if test "$with_gnu_ld" = no; then
5836 _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
5837 else
5838 _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` -o $lib'
5839 fi
5840 fi
5841 _LT_TAGVAR(link_all_deplibs, $1)=yes
5842 ;;
5843 esac
5844 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
5845 _LT_TAGVAR(hardcode_libdir_separator, $1)=:
5846 _LT_TAGVAR(inherit_rpath, $1)=yes
5847 ;;
5848
5849 linux* | k*bsd*-gnu)
5850 case $cc_basename in
5851 KCC*)
5852 # Kuck and Associates, Inc. (KAI) C++ Compiler
5853
5854 # KCC will only create a shared library if the output file
5855 # ends with ".so" (or ".sl" for HP-UX), so rename the library
5856 # to its proper name (with version) after linking.
5857 _LT_TAGVAR(archive_cmds, $1)='tempext=`echo $shared_ext | $SED -e '\''s/\([[^()0-9A-Za-z{}]]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
5858 _LT_TAGVAR(archive_expsym_cmds, $1)='tempext=`echo $shared_ext | $SED -e '\''s/\([[^()0-9A-Za-z{}]]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib ${wl}-retain-symbols-file,$export_symbols; mv \$templib $lib'
5859 # Commands to make compiler produce verbose output that lists
5860 # what "hidden" libraries, object files and flags are used when
5861 # linking a shared library.
5862 #
5863 # There doesn't appear to be a way to prevent this compiler from
5864 # explicitly linking system object files so we need to strip them
5865 # from the output so that they don't get included in the library
5866 # dependencies.
5867 output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | $GREP "ld"`; rm -f libconftest$shared_ext; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
5868
5869 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
5870 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
5871
5872 # Archives containing C++ object files must be created using
5873 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
5874 _LT_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs'
5875 ;;
5876 icpc* | ecpc* )
5877 # Intel C++
5878 with_gnu_ld=yes
5879 # version 8.0 and above of icpc choke on multiply defined symbols
5880 # if we add $predep_objects and $postdep_objects, however 7.1 and
5881 # earlier do not add the objects themselves.
5882 case `$CC -V 2>&1` in
5883 *"Version 7."*)
5884 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
5885 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
5886 ;;
5887 *) # Version 8.0 or newer
5888 tmp_idyn=
5889 case $host_cpu in
5890 ia64*) tmp_idyn=' -i_dynamic';;
5891 esac
5892 _LT_TAGVAR(archive_cmds, $1)='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5893 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
5894 ;;
5895 esac
5896 _LT_TAGVAR(archive_cmds_need_lc, $1)=no
5897 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
5898 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
5899 _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
5900 ;;
5901 pgCC* | pgcpp*)
5902 # Portland Group C++ compiler
5903 case `$CC -V` in
5904 *pgCC\ [[1-5]]* | *pgcpp\ [[1-5]]*)
5905 _LT_TAGVAR(prelink_cmds, $1)='tpldir=Template.dir~
5906 rm -rf $tpldir~
5907 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
5908 compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
5909 _LT_TAGVAR(old_archive_cmds, $1)='tpldir=Template.dir~
5910 rm -rf $tpldir~
5911 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
5912 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
5913 $RANLIB $oldlib'
5914 _LT_TAGVAR(archive_cmds, $1)='tpldir=Template.dir~
5915 rm -rf $tpldir~
5916 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
5917 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
5918 _LT_TAGVAR(archive_expsym_cmds, $1)='tpldir=Template.dir~
5919 rm -rf $tpldir~
5920 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
5921 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
5922 ;;
5923 *) # Version 6 will use weak symbols
5924 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
5925 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
5926 ;;
5927 esac
5928
5929 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir'
5930 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
5931 _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
5932 ;;
5933 cxx*)
5934 # Compaq C++
5935 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
5936 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib ${wl}-retain-symbols-file $wl$export_symbols'
5937
5938 runpath_var=LD_RUN_PATH
5939 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
5940 _LT_TAGVAR(hardcode_libdir_separator, $1)=:
5941
5942 # Commands to make compiler produce verbose output that lists
5943 # what "hidden" libraries, object files and flags are used when
5944 # linking a shared library.
5945 #
5946 # There doesn't appear to be a way to prevent this compiler from
5947 # explicitly linking system object files so we need to strip them
5948 # from the output so that they don't get included in the library
5949 # dependencies.
5950 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld"`; templist=`$ECHO "X$templist" | $Xsed -e "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
5951 ;;
5952 xl*)
5953 # IBM XL 8.0 on PPC, with GNU ld
5954 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
5955 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
5956 _LT_TAGVAR(archive_cmds, $1)='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5957 if test "x$supports_anon_versioning" = xyes; then
5958 _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $output_objdir/$libname.ver~
5959 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
5960 echo "local: *; };" >> $output_objdir/$libname.ver~
5961 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
5962 fi
5963 ;;
5964 *)
5965 case `$CC -V 2>&1 | sed 5q` in
5966 *Sun\ C*)
5967 # Sun C++ 5.9
5968 _LT_TAGVAR(no_undefined_flag, $1)=' -zdefs'
5969 _LT_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
5970 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file ${wl}$export_symbols'
5971 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
5972 _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
5973 _LT_TAGVAR(compiler_needs_object, $1)=yes
5974
5975 # Not sure whether something based on
5976 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
5977 # would be better.
5978 output_verbose_link_cmd='echo'
5979
5980 # Archives containing C++ object files must be created using
5981 # "CC -xar", where "CC" is the Sun C++ compiler. This is
5982 # necessary to make sure instantiated templates are included
5983 # in the archive.
5984 _LT_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs'
5985 ;;
5986 esac
5987 ;;
5988 esac
5989 ;;
5990
5991 lynxos*)
5992 # FIXME: insert proper C++ library support
5993 _LT_TAGVAR(ld_shlibs, $1)=no
5994 ;;
5995
5996 m88k*)
5997 # FIXME: insert proper C++ library support
5998 _LT_TAGVAR(ld_shlibs, $1)=no
5999 ;;
6000
6001 mvs*)
6002 case $cc_basename in
6003 cxx*)
6004 # FIXME: insert proper C++ library support
6005 _LT_TAGVAR(ld_shlibs, $1)=no
6006 ;;
6007 *)
6008 # FIXME: insert proper C++ library support
6009 _LT_TAGVAR(ld_shlibs, $1)=no
6010 ;;
6011 esac
6012 ;;
6013
6014 netbsd*)
6015 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
6016 _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
6017 wlarc=
6018 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
6019 _LT_TAGVAR(hardcode_direct, $1)=yes
6020 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
6021 fi
6022 # Workaround some broken pre-1.5 toolchains
6023 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
6024 ;;
6025
6026 *nto* | *qnx*)
6027 _LT_TAGVAR(ld_shlibs, $1)=yes
6028 ;;
6029
6030 openbsd2*)
6031 # C++ shared libraries are fairly broken
6032 _LT_TAGVAR(ld_shlibs, $1)=no
6033 ;;
6034
6035 openbsd*)
6036 if test -f /usr/libexec/ld.so; then
6037 _LT_TAGVAR(hardcode_direct, $1)=yes
6038 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
6039 _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
6040 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
6041 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
6042 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6043 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
6044 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
6045 _LT_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
6046 fi
6047 output_verbose_link_cmd=echo
6048 else
6049 _LT_TAGVAR(ld_shlibs, $1)=no
6050 fi
6051 ;;
6052
6053 osf3* | osf4* | osf5*)
6054 case $cc_basename in
6055 KCC*)
6056 # Kuck and Associates, Inc. (KAI) C++ Compiler
6057
6058 # KCC will only create a shared library if the output file
6059 # ends with ".so" (or ".sl" for HP-UX), so rename the library
6060 # to its proper name (with version) after linking.
6061 _LT_TAGVAR(archive_cmds, $1)='tempext=`echo $shared_ext | $SED -e '\''s/\([[^()0-9A-Za-z{}]]\)/\\\\\1/g'\''`; templib=`echo "$lib" | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
6062
6063 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
6064 _LT_TAGVAR(hardcode_libdir_separator, $1)=:
6065
6066 # Archives containing C++ object files must be created using
6067 # the KAI C++ compiler.
6068 case $host in
6069 osf3*) _LT_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs' ;;
6070 *) _LT_TAGVAR(old_archive_cmds, $1)='$CC -o $oldlib $oldobjs' ;;
6071 esac
6072 ;;
6073 RCC*)
6074 # Rational C++ 2.4.1
6075 # FIXME: insert proper C++ library support
6076 _LT_TAGVAR(ld_shlibs, $1)=no
6077 ;;
6078 cxx*)
6079 case $host in
6080 osf3*)
6081 _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
6082 _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && $ECHO "X${wl}-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
6083 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
6084 ;;
6085 *)
6086 _LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
6087 _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
6088 _LT_TAGVAR(archive_expsym_cmds, $1)='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
6089 echo "-hidden">> $lib.exp~
6090 $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname ${wl}-input ${wl}$lib.exp `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~
6091 $RM $lib.exp'
6092 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
6093 ;;
6094 esac
6095
6096 _LT_TAGVAR(hardcode_libdir_separator, $1)=:
6097
6098 # Commands to make compiler produce verbose output that lists
6099 # what "hidden" libraries, object files and flags are used when
6100 # linking a shared library.
6101 #
6102 # There doesn't appear to be a way to prevent this compiler from
6103 # explicitly linking system object files so we need to strip them
6104 # from the output so that they don't get included in the library
6105 # dependencies.
6106 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld" | $GREP -v "ld:"`; templist=`$ECHO "X$templist" | $Xsed -e "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
6107 ;;
6108 *)
6109 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
6110 _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
6111 case $host in
6112 osf3*)
6113 _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
6114 ;;
6115 *)
6116 _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
6117 ;;
6118 esac
6119
6120 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
6121 _LT_TAGVAR(hardcode_libdir_separator, $1)=:
6122
6123 # Commands to make compiler produce verbose output that lists
6124 # what "hidden" libraries, object files and flags are used when
6125 # linking a shared library.
6126 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
6127
6128 else
6129 # FIXME: insert proper C++ library support
6130 _LT_TAGVAR(ld_shlibs, $1)=no
6131 fi
6132 ;;
6133 esac
6134 ;;
6135
6136 psos*)
6137 # FIXME: insert proper C++ library support
6138 _LT_TAGVAR(ld_shlibs, $1)=no
6139 ;;
6140
6141 sunos4*)
6142 case $cc_basename in
6143 CC*)
6144 # Sun C++ 4.x
6145 # FIXME: insert proper C++ library support
6146 _LT_TAGVAR(ld_shlibs, $1)=no
6147 ;;
6148 lcc*)
6149 # Lucid
6150 # FIXME: insert proper C++ library support
6151 _LT_TAGVAR(ld_shlibs, $1)=no
6152 ;;
6153 *)
6154 # FIXME: insert proper C++ library support
6155 _LT_TAGVAR(ld_shlibs, $1)=no
6156 ;;
6157 esac
6158 ;;
6159
6160 solaris*)
6161 case $cc_basename in
6162 CC*)
6163 # Sun C++ 4.2, 5.x and Centerline C++
6164 _LT_TAGVAR(archive_cmds_need_lc,$1)=yes
6165 _LT_TAGVAR(no_undefined_flag, $1)=' -zdefs'
6166 _LT_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
6167 _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
6168 $CC -G${allow_undefined_flag} ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
6169
6170 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
6171 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
6172 case $host_os in
6173 solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
6174 *)
6175 # The compiler driver will combine and reorder linker options,
6176 # but understands `-z linker_flag'.
6177 # Supported since Solaris 2.6 (maybe 2.5.1?)
6178 _LT_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract'
6179 ;;
6180 esac
6181 _LT_TAGVAR(link_all_deplibs, $1)=yes
6182
6183 output_verbose_link_cmd='echo'
6184
6185 # Archives containing C++ object files must be created using
6186 # "CC -xar", where "CC" is the Sun C++ compiler. This is
6187 # necessary to make sure instantiated templates are included
6188 # in the archive.
6189 _LT_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs'
6190 ;;
6191 gcx*)
6192 # Green Hills C++ Compiler
6193 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
6194
6195 # The C++ compiler must be used to create the archive.
6196 _LT_TAGVAR(old_archive_cmds, $1)='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
6197 ;;
6198 *)
6199 # GNU C++ compiler with Solaris linker
6200 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
6201 _LT_TAGVAR(no_undefined_flag, $1)=' ${wl}-z ${wl}defs'
6202 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
6203 _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
6204 _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
6205 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
6206
6207 # Commands to make compiler produce verbose output that lists
6208 # what "hidden" libraries, object files and flags are used when
6209 # linking a shared library.
6210 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
6211 else
6212 # g++ 2.7 appears to require `-G' NOT `-shared' on this
6213 # platform.
6214 _LT_TAGVAR(archive_cmds, $1)='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
6215 _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
6216 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
6217
6218 # Commands to make compiler produce verbose output that lists
6219 # what "hidden" libraries, object files and flags are used when
6220 # linking a shared library.
6221 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
6222 fi
6223
6224 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $wl$libdir'
6225 case $host_os in
6226 solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
6227 *)
6228 _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
6229 ;;
6230 esac
6231 fi
6232 ;;
6233 esac
6234 ;;
6235
6236 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7* | sco3.2v5.0.[[024]]*)
6237 _LT_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
6238 _LT_TAGVAR(archive_cmds_need_lc, $1)=no
6239 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
6240 runpath_var='LD_RUN_PATH'
6241
6242 case $cc_basename in
6243 CC*)
6244 _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
6245 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
6246 ;;
6247 *)
6248 _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
6249 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
6250 ;;
6251 esac
6252 ;;
6253
6254 sysv5* | sco3.2v5* | sco5v6*)
6255 # Note: We can NOT use -z defs as we might desire, because we do not
6256 # link with -lc, and that would cause any symbols used from libc to
6257 # always be unresolved, which means just about no library would
6258 # ever link correctly. If we're not using GNU ld we use -z text
6259 # though, which does catch some bad symbols but isn't as heavy-handed
6260 # as -z defs.
6261 _LT_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
6262 _LT_TAGVAR(allow_undefined_flag, $1)='${wl}-z,nodefs'
6263 _LT_TAGVAR(archive_cmds_need_lc, $1)=no
6264 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
6265 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R,$libdir'
6266 _LT_TAGVAR(hardcode_libdir_separator, $1)=':'
6267 _LT_TAGVAR(link_all_deplibs, $1)=yes
6268 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport'
6269 runpath_var='LD_RUN_PATH'
6270
6271 case $cc_basename in
6272 CC*)
6273 _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
6274 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
6275 ;;
6276 *)
6277 _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
6278 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
6279 ;;
6280 esac
6281 ;;
6282
6283 tandem*)
6284 case $cc_basename in
6285 NCC*)
6286 # NonStop-UX NCC 3.20
6287 # FIXME: insert proper C++ library support
6288 _LT_TAGVAR(ld_shlibs, $1)=no
6289 ;;
6290 *)
6291 # FIXME: insert proper C++ library support
6292 _LT_TAGVAR(ld_shlibs, $1)=no
6293 ;;
6294 esac
6295 ;;
6296
6297 vxworks*)
6298 # FIXME: insert proper C++ library support
6299 _LT_TAGVAR(ld_shlibs, $1)=no
6300 ;;
6301
6302 *)
6303 # FIXME: insert proper C++ library support
6304 _LT_TAGVAR(ld_shlibs, $1)=no
6305 ;;
6306 esac
6307
6308 AC_MSG_RESULT([$_LT_TAGVAR(ld_shlibs, $1)])
6309 test "$_LT_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no
6310
6311 _LT_TAGVAR(GCC, $1)="$GXX"
6312 _LT_TAGVAR(LD, $1)="$LD"
6313
6314 ## CAVEAT EMPTOR:
6315 ## There is no encapsulation within the following macros, do not change
6316 ## the running order or otherwise move them around unless you know exactly
6317 ## what you are doing...
6318 _LT_SYS_HIDDEN_LIBDEPS($1)
6319 _LT_COMPILER_PIC($1)
6320 _LT_COMPILER_C_O($1)
6321 _LT_COMPILER_FILE_LOCKS($1)
6322 _LT_LINKER_SHLIBS($1)
6323 _LT_SYS_DYNAMIC_LINKER($1)
6324 _LT_LINKER_HARDCODE_LIBPATH($1)
6325
6326 _LT_CONFIG($1)
6327 fi # test -n "$compiler"
6328
6329 CC=$lt_save_CC
6330 LDCXX=$LD
6331 LD=$lt_save_LD
6332 GCC=$lt_save_GCC
6333 with_gnu_ld=$lt_save_with_gnu_ld
6334 lt_cv_path_LDCXX=$lt_cv_path_LD
6335 lt_cv_path_LD=$lt_save_path_LD
6336 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
6337 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
6338 fi # test "$_lt_caught_CXX_error" != yes
6339
6340 AC_LANG_POP
6341 ])# _LT_LANG_CXX_CONFIG
6342
6343
6344 # _LT_SYS_HIDDEN_LIBDEPS([TAGNAME])
64686345 # ---------------------------------
6469 AC_DEFUN([_LT_AC_TAGVAR], [ifelse([$2], [], [$1], [$1_$2])])
6470
6471
6472 # old names
6473 AC_DEFUN([AM_PROG_LIBTOOL], [AC_PROG_LIBTOOL])
6474 AC_DEFUN([AM_ENABLE_SHARED], [AC_ENABLE_SHARED($@)])
6475 AC_DEFUN([AM_ENABLE_STATIC], [AC_ENABLE_STATIC($@)])
6476 AC_DEFUN([AM_DISABLE_SHARED], [AC_DISABLE_SHARED($@)])
6477 AC_DEFUN([AM_DISABLE_STATIC], [AC_DISABLE_STATIC($@)])
6478 AC_DEFUN([AM_PROG_LD], [AC_PROG_LD])
6479 AC_DEFUN([AM_PROG_NM], [AC_PROG_NM])
6480
6481 # This is just to silence aclocal about the macro not being used
6482 ifelse([AC_DISABLE_FAST_INSTALL])
6483
6484 AC_DEFUN([LT_AC_PROG_GCJ],
6485 [AC_CHECK_TOOL(GCJ, gcj, no)
6486 test "x${GCJFLAGS+set}" = xset || GCJFLAGS="-g -O2"
6487 AC_SUBST(GCJFLAGS)
6346 # Figure out "hidden" library dependencies from verbose
6347 # compiler output when linking a shared library.
6348 # Parse the compiler output and extract the necessary
6349 # objects, libraries and library flags.
6350 m4_defun([_LT_SYS_HIDDEN_LIBDEPS],
6351 [m4_require([_LT_FILEUTILS_DEFAULTS])dnl
6352 # Dependencies to place before and after the object being linked:
6353 _LT_TAGVAR(predep_objects, $1)=
6354 _LT_TAGVAR(postdep_objects, $1)=
6355 _LT_TAGVAR(predeps, $1)=
6356 _LT_TAGVAR(postdeps, $1)=
6357 _LT_TAGVAR(compiler_lib_search_path, $1)=
6358
6359 dnl we can't use the lt_simple_compile_test_code here,
6360 dnl because it contains code intended for an executable,
6361 dnl not a library. It's possible we should let each
6362 dnl tag define a new lt_????_link_test_code variable,
6363 dnl but it's only used here...
6364 m4_if([$1], [], [cat > conftest.$ac_ext <<_LT_EOF
6365 int a;
6366 void foo (void) { a = 0; }
6367 _LT_EOF
6368 ], [$1], [CXX], [cat > conftest.$ac_ext <<_LT_EOF
6369 class Foo
6370 {
6371 public:
6372 Foo (void) { a = 0; }
6373 private:
6374 int a;
6375 };
6376 _LT_EOF
6377 ], [$1], [F77], [cat > conftest.$ac_ext <<_LT_EOF
6378 subroutine foo
6379 implicit none
6380 integer*4 a
6381 a=0
6382 return
6383 end
6384 _LT_EOF
6385 ], [$1], [FC], [cat > conftest.$ac_ext <<_LT_EOF
6386 subroutine foo
6387 implicit none
6388 integer a
6389 a=0
6390 return
6391 end
6392 _LT_EOF
6393 ], [$1], [GCJ], [cat > conftest.$ac_ext <<_LT_EOF
6394 public class foo {
6395 private int a;
6396 public void bar (void) {
6397 a = 0;
6398 }
6399 };
6400 _LT_EOF
64886401 ])
6489
6490 AC_DEFUN([LT_AC_PROG_RC],
6491 [AC_CHECK_TOOL(RC, windres, no)
6402 dnl Parse the compiler output and extract the necessary
6403 dnl objects, libraries and library flags.
6404 if AC_TRY_EVAL(ac_compile); then
6405 # Parse the compiler output and extract the necessary
6406 # objects, libraries and library flags.
6407
6408 # Sentinel used to keep track of whether or not we are before
6409 # the conftest object file.
6410 pre_test_object_deps_done=no
6411
6412 for p in `eval "$output_verbose_link_cmd"`; do
6413 case $p in
6414
6415 -L* | -R* | -l*)
6416 # Some compilers place space between "-{L,R}" and the path.
6417 # Remove the space.
6418 if test $p = "-L" ||
6419 test $p = "-R"; then
6420 prev=$p
6421 continue
6422 else
6423 prev=
6424 fi
6425
6426 if test "$pre_test_object_deps_done" = no; then
6427 case $p in
6428 -L* | -R*)
6429 # Internal compiler library paths should come after those
6430 # provided the user. The postdeps already come after the
6431 # user supplied libs so there is no need to process them.
6432 if test -z "$_LT_TAGVAR(compiler_lib_search_path, $1)"; then
6433 _LT_TAGVAR(compiler_lib_search_path, $1)="${prev}${p}"
6434 else
6435 _LT_TAGVAR(compiler_lib_search_path, $1)="${_LT_TAGVAR(compiler_lib_search_path, $1)} ${prev}${p}"
6436 fi
6437 ;;
6438 # The "-l" case would never come before the object being
6439 # linked, so don't bother handling this case.
6440 esac
6441 else
6442 if test -z "$_LT_TAGVAR(postdeps, $1)"; then
6443 _LT_TAGVAR(postdeps, $1)="${prev}${p}"
6444 else
6445 _LT_TAGVAR(postdeps, $1)="${_LT_TAGVAR(postdeps, $1)} ${prev}${p}"
6446 fi
6447 fi
6448 ;;
6449
6450 *.$objext)
6451 # This assumes that the test object file only shows up
6452 # once in the compiler output.
6453 if test "$p" = "conftest.$objext"; then
6454 pre_test_object_deps_done=yes
6455 continue
6456 fi
6457
6458 if test "$pre_test_object_deps_done" = no; then
6459 if test -z "$_LT_TAGVAR(predep_objects, $1)"; then
6460 _LT_TAGVAR(predep_objects, $1)="$p"
6461 else
6462 _LT_TAGVAR(predep_objects, $1)="$_LT_TAGVAR(predep_objects, $1) $p"
6463 fi
6464 else
6465 if test -z "$_LT_TAGVAR(postdep_objects, $1)"; then
6466 _LT_TAGVAR(postdep_objects, $1)="$p"
6467 else
6468 _LT_TAGVAR(postdep_objects, $1)="$_LT_TAGVAR(postdep_objects, $1) $p"
6469 fi
6470 fi
6471 ;;
6472
6473 *) ;; # Ignore the rest.
6474
6475 esac
6476 done
6477
6478 # Clean up.
6479 rm -f a.out a.exe
6480 else
6481 echo "libtool.m4: error: problem compiling $1 test program"
6482 fi
6483
6484 $RM -f confest.$objext
6485
6486 # PORTME: override above test on systems where it is broken
6487 m4_if([$1], [CXX],
6488 [case $host_os in
6489 interix[[3-9]]*)
6490 # Interix 3.5 installs completely hosed .la files for C++, so rather than
6491 # hack all around it, let's just trust "g++" to DTRT.
6492 _LT_TAGVAR(predep_objects,$1)=
6493 _LT_TAGVAR(postdep_objects,$1)=
6494 _LT_TAGVAR(postdeps,$1)=
6495 ;;
6496
6497 linux*)
6498 case `$CC -V 2>&1 | sed 5q` in
6499 *Sun\ C*)
6500 # Sun C++ 5.9
6501
6502 # The more standards-conforming stlport4 library is
6503 # incompatible with the Cstd library. Avoid specifying
6504 # it if it's in CXXFLAGS. Ignore libCrun as
6505 # -library=stlport4 depends on it.
6506 case " $CXX $CXXFLAGS " in
6507 *" -library=stlport4 "*)
6508 solaris_use_stlport4=yes
6509 ;;
6510 esac
6511
6512 if test "$solaris_use_stlport4" != yes; then
6513 _LT_TAGVAR(postdeps,$1)='-library=Cstd -library=Crun'
6514 fi
6515 ;;
6516 esac
6517 ;;
6518
6519 solaris*)
6520 case $cc_basename in
6521 CC*)
6522 # The more standards-conforming stlport4 library is
6523 # incompatible with the Cstd library. Avoid specifying
6524 # it if it's in CXXFLAGS. Ignore libCrun as
6525 # -library=stlport4 depends on it.
6526 case " $CXX $CXXFLAGS " in
6527 *" -library=stlport4 "*)
6528 solaris_use_stlport4=yes
6529 ;;
6530 esac
6531
6532 # Adding this requires a known-good setup of shared libraries for
6533 # Sun compiler versions before 5.6, else PIC objects from an old
6534 # archive will be linked into the output, leading to subtle bugs.
6535 if test "$solaris_use_stlport4" != yes; then
6536 _LT_TAGVAR(postdeps,$1)='-library=Cstd -library=Crun'
6537 fi
6538 ;;
6539 esac
6540 ;;
6541 esac
64926542 ])
64936543
6494
6495 # Cheap backport of AS_EXECUTABLE_P and required macros
6496 # from Autoconf 2.59; we should not use $as_executable_p directly.
6497
6498 # _AS_TEST_PREPARE
6499 # ----------------
6500 m4_ifndef([_AS_TEST_PREPARE],
6501 [m4_defun([_AS_TEST_PREPARE],
6502 [if test -x / >/dev/null 2>&1; then
6503 as_executable_p='test -x'
6504 else
6505 as_executable_p='test -f'
6544 case " $_LT_TAGVAR(postdeps, $1) " in
6545 *" -lc "*) _LT_TAGVAR(archive_cmds_need_lc, $1)=no ;;
6546 esac
6547 _LT_TAGVAR(compiler_lib_search_dirs, $1)=
6548 if test -n "${_LT_TAGVAR(compiler_lib_search_path, $1)}"; then
6549 _LT_TAGVAR(compiler_lib_search_dirs, $1)=`echo " ${_LT_TAGVAR(compiler_lib_search_path, $1)}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
65066550 fi
6507 ])])# _AS_TEST_PREPARE
6508
6509 # AS_EXECUTABLE_P
6510 # ---------------
6511 # Check whether a file is executable.
6512 m4_ifndef([AS_EXECUTABLE_P],
6513 [m4_defun([AS_EXECUTABLE_P],
6514 [AS_REQUIRE([_AS_TEST_PREPARE])dnl
6515 $as_executable_p $1[]dnl
6516 ])])# AS_EXECUTABLE_P
6517
6551 _LT_TAGDECL([], [compiler_lib_search_dirs], [1],
6552 [The directories searched by this compiler when creating a shared library])
6553 _LT_TAGDECL([], [predep_objects], [1],
6554 [Dependencies to place before and after the objects being linked to
6555 create a shared library])
6556 _LT_TAGDECL([], [postdep_objects], [1])
6557 _LT_TAGDECL([], [predeps], [1])
6558 _LT_TAGDECL([], [postdeps], [1])
6559 _LT_TAGDECL([], [compiler_lib_search_path], [1],
6560 [The library search path used internally by the compiler when linking
6561 a shared library])
6562 ])# _LT_SYS_HIDDEN_LIBDEPS
6563
6564
6565 # _LT_PROG_F77
6566 # ------------
6567 # Since AC_PROG_F77 is broken, in that it returns the empty string
6568 # if there is no fortran compiler, we have our own version here.
6569 m4_defun([_LT_PROG_F77],
6570 [
6571 pushdef([AC_MSG_ERROR], [_lt_disable_F77=yes])
6572 AC_PROG_F77
6573 if test -z "$F77" || test "X$F77" = "Xno"; then
6574 _lt_disable_F77=yes
6575 fi
6576 popdef([AC_MSG_ERROR])
6577 ])# _LT_PROG_F77
6578
6579 dnl aclocal-1.4 backwards compatibility:
6580 dnl AC_DEFUN([_LT_PROG_F77], [])
6581
6582
6583 # _LT_LANG_F77_CONFIG([TAG])
6584 # --------------------------
6585 # Ensure that the configuration variables for a Fortran 77 compiler are
6586 # suitably defined. These variables are subsequently used by _LT_CONFIG
6587 # to write the compiler configuration to `libtool'.
6588 m4_defun([_LT_LANG_F77_CONFIG],
6589 [AC_REQUIRE([_LT_PROG_F77])dnl
6590 AC_LANG_PUSH(Fortran 77)
6591
6592 _LT_TAGVAR(archive_cmds_need_lc, $1)=no
6593 _LT_TAGVAR(allow_undefined_flag, $1)=
6594 _LT_TAGVAR(always_export_symbols, $1)=no
6595 _LT_TAGVAR(archive_expsym_cmds, $1)=
6596 _LT_TAGVAR(export_dynamic_flag_spec, $1)=
6597 _LT_TAGVAR(hardcode_direct, $1)=no
6598 _LT_TAGVAR(hardcode_direct_absolute, $1)=no
6599 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
6600 _LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
6601 _LT_TAGVAR(hardcode_libdir_separator, $1)=
6602 _LT_TAGVAR(hardcode_minus_L, $1)=no
6603 _LT_TAGVAR(hardcode_automatic, $1)=no
6604 _LT_TAGVAR(inherit_rpath, $1)=no
6605 _LT_TAGVAR(module_cmds, $1)=
6606 _LT_TAGVAR(module_expsym_cmds, $1)=
6607 _LT_TAGVAR(link_all_deplibs, $1)=unknown
6608 _LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
6609 _LT_TAGVAR(no_undefined_flag, $1)=
6610 _LT_TAGVAR(whole_archive_flag_spec, $1)=
6611 _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no
6612
6613 # Source file extension for f77 test sources.
6614 ac_ext=f
6615
6616 # Object file extension for compiled f77 test sources.
6617 objext=o
6618 _LT_TAGVAR(objext, $1)=$objext
6619
6620 # No sense in running all these tests if we already determined that
6621 # the F77 compiler isn't working. Some variables (like enable_shared)
6622 # are currently assumed to apply to all compilers on this platform,
6623 # and will be corrupted by setting them based on a non-working compiler.
6624 if test "$_lt_disable_F77" != yes; then
6625 # Code to be used in simple compile tests
6626 lt_simple_compile_test_code="\
6627 subroutine t
6628 return
6629 end
6630 "
6631
6632 # Code to be used in simple link tests
6633 lt_simple_link_test_code="\
6634 program t
6635 end
6636 "
6637
6638 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
6639 _LT_TAG_COMPILER
6640
6641 # save warnings/boilerplate of simple test code
6642 _LT_COMPILER_BOILERPLATE
6643 _LT_LINKER_BOILERPLATE
6644
6645 # Allow CC to be a program name with arguments.
6646 lt_save_CC="$CC"
6647 lt_save_GCC=$GCC
6648 CC=${F77-"f77"}
6649 compiler=$CC
6650 _LT_TAGVAR(compiler, $1)=$CC
6651 _LT_CC_BASENAME([$compiler])
6652 GCC=$G77
6653 if test -n "$compiler"; then
6654 AC_MSG_CHECKING([if libtool supports shared libraries])
6655 AC_MSG_RESULT([$can_build_shared])
6656
6657 AC_MSG_CHECKING([whether to build shared libraries])
6658 test "$can_build_shared" = "no" && enable_shared=no
6659
6660 # On AIX, shared libraries and static libraries use the same namespace, and
6661 # are all built from PIC.
6662 case $host_os in
6663 aix3*)
6664 test "$enable_shared" = yes && enable_static=no
6665 if test -n "$RANLIB"; then
6666 archive_cmds="$archive_cmds~\$RANLIB \$lib"
6667 postinstall_cmds='$RANLIB $lib'
6668 fi
6669 ;;
6670 aix[[4-9]]*)
6671 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
6672 test "$enable_shared" = yes && enable_static=no
6673 fi
6674 ;;
6675 esac
6676 AC_MSG_RESULT([$enable_shared])
6677
6678 AC_MSG_CHECKING([whether to build static libraries])
6679 # Make sure either enable_shared or enable_static is yes.
6680 test "$enable_shared" = yes || enable_static=yes
6681 AC_MSG_RESULT([$enable_static])
6682
6683 _LT_TAGVAR(GCC, $1)="$G77"
6684 _LT_TAGVAR(LD, $1)="$LD"
6685
6686 ## CAVEAT EMPTOR:
6687 ## There is no encapsulation within the following macros, do not change
6688 ## the running order or otherwise move them around unless you know exactly
6689 ## what you are doing...
6690 _LT_COMPILER_PIC($1)
6691 _LT_COMPILER_C_O($1)
6692 _LT_COMPILER_FILE_LOCKS($1)
6693 _LT_LINKER_SHLIBS($1)
6694 _LT_SYS_DYNAMIC_LINKER($1)
6695 _LT_LINKER_HARDCODE_LIBPATH($1)
6696
6697 _LT_CONFIG($1)
6698 fi # test -n "$compiler"
6699
6700 GCC=$lt_save_GCC
6701 CC="$lt_save_CC"
6702 fi # test "$_lt_disable_F77" != yes
6703
6704 AC_LANG_POP
6705 ])# _LT_LANG_F77_CONFIG
6706
6707
6708 # _LT_PROG_FC
6709 # -----------
6710 # Since AC_PROG_FC is broken, in that it returns the empty string
6711 # if there is no fortran compiler, we have our own version here.
6712 m4_defun([_LT_PROG_FC],
6713 [
6714 pushdef([AC_MSG_ERROR], [_lt_disable_FC=yes])
6715 AC_PROG_FC
6716 if test -z "$FC" || test "X$FC" = "Xno"; then
6717 _lt_disable_FC=yes
6718 fi
6719 popdef([AC_MSG_ERROR])
6720 ])# _LT_PROG_FC
6721
6722 dnl aclocal-1.4 backwards compatibility:
6723 dnl AC_DEFUN([_LT_PROG_FC], [])
6724
6725
6726 # _LT_LANG_FC_CONFIG([TAG])
6727 # -------------------------
6728 # Ensure that the configuration variables for a Fortran compiler are
6729 # suitably defined. These variables are subsequently used by _LT_CONFIG
6730 # to write the compiler configuration to `libtool'.
6731 m4_defun([_LT_LANG_FC_CONFIG],
6732 [AC_REQUIRE([_LT_PROG_FC])dnl
6733 AC_LANG_PUSH(Fortran)
6734
6735 _LT_TAGVAR(archive_cmds_need_lc, $1)=no
6736 _LT_TAGVAR(allow_undefined_flag, $1)=
6737 _LT_TAGVAR(always_export_symbols, $1)=no
6738 _LT_TAGVAR(archive_expsym_cmds, $1)=
6739 _LT_TAGVAR(export_dynamic_flag_spec, $1)=
6740 _LT_TAGVAR(hardcode_direct, $1)=no
6741 _LT_TAGVAR(hardcode_direct_absolute, $1)=no
6742 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
6743 _LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
6744 _LT_TAGVAR(hardcode_libdir_separator, $1)=
6745 _LT_TAGVAR(hardcode_minus_L, $1)=no
6746 _LT_TAGVAR(hardcode_automatic, $1)=no
6747 _LT_TAGVAR(inherit_rpath, $1)=no
6748 _LT_TAGVAR(module_cmds, $1)=
6749 _LT_TAGVAR(module_expsym_cmds, $1)=
6750 _LT_TAGVAR(link_all_deplibs, $1)=unknown
6751 _LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
6752 _LT_TAGVAR(no_undefined_flag, $1)=
6753 _LT_TAGVAR(whole_archive_flag_spec, $1)=
6754 _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no
6755
6756 # Source file extension for fc test sources.
6757 ac_ext=${ac_fc_srcext-f}
6758
6759 # Object file extension for compiled fc test sources.
6760 objext=o
6761 _LT_TAGVAR(objext, $1)=$objext
6762
6763 # No sense in running all these tests if we already determined that
6764 # the FC compiler isn't working. Some variables (like enable_shared)
6765 # are currently assumed to apply to all compilers on this platform,
6766 # and will be corrupted by setting them based on a non-working compiler.
6767 if test "$_lt_disable_FC" != yes; then
6768 # Code to be used in simple compile tests
6769 lt_simple_compile_test_code="\
6770 subroutine t
6771 return
6772 end
6773 "
6774
6775 # Code to be used in simple link tests
6776 lt_simple_link_test_code="\
6777 program t
6778 end
6779 "
6780
6781 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
6782 _LT_TAG_COMPILER
6783
6784 # save warnings/boilerplate of simple test code
6785 _LT_COMPILER_BOILERPLATE
6786 _LT_LINKER_BOILERPLATE
6787
6788 # Allow CC to be a program name with arguments.
6789 lt_save_CC="$CC"
6790 lt_save_GCC=$GCC
6791 CC=${FC-"f95"}
6792 compiler=$CC
6793 GCC=$ac_cv_fc_compiler_gnu
6794
6795 _LT_TAGVAR(compiler, $1)=$CC
6796 _LT_CC_BASENAME([$compiler])
6797
6798 if test -n "$compiler"; then
6799 AC_MSG_CHECKING([if libtool supports shared libraries])
6800 AC_MSG_RESULT([$can_build_shared])
6801
6802 AC_MSG_CHECKING([whether to build shared libraries])
6803 test "$can_build_shared" = "no" && enable_shared=no
6804
6805 # On AIX, shared libraries and static libraries use the same namespace, and
6806 # are all built from PIC.
6807 case $host_os in
6808 aix3*)
6809 test "$enable_shared" = yes && enable_static=no
6810 if test -n "$RANLIB"; then
6811 archive_cmds="$archive_cmds~\$RANLIB \$lib"
6812 postinstall_cmds='$RANLIB $lib'
6813 fi
6814 ;;
6815 aix[[4-9]]*)
6816 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
6817 test "$enable_shared" = yes && enable_static=no
6818 fi
6819 ;;
6820 esac
6821 AC_MSG_RESULT([$enable_shared])
6822
6823 AC_MSG_CHECKING([whether to build static libraries])
6824 # Make sure either enable_shared or enable_static is yes.
6825 test "$enable_shared" = yes || enable_static=yes
6826 AC_MSG_RESULT([$enable_static])
6827
6828 _LT_TAGVAR(GCC, $1)="$ac_cv_fc_compiler_gnu"
6829 _LT_TAGVAR(LD, $1)="$LD"
6830
6831 ## CAVEAT EMPTOR:
6832 ## There is no encapsulation within the following macros, do not change
6833 ## the running order or otherwise move them around unless you know exactly
6834 ## what you are doing...
6835 _LT_SYS_HIDDEN_LIBDEPS($1)
6836 _LT_COMPILER_PIC($1)
6837 _LT_COMPILER_C_O($1)
6838 _LT_COMPILER_FILE_LOCKS($1)
6839 _LT_LINKER_SHLIBS($1)
6840 _LT_SYS_DYNAMIC_LINKER($1)
6841 _LT_LINKER_HARDCODE_LIBPATH($1)
6842
6843 _LT_CONFIG($1)
6844 fi # test -n "$compiler"
6845
6846 GCC=$lt_save_GCC
6847 CC="$lt_save_CC"
6848 fi # test "$_lt_disable_FC" != yes
6849
6850 AC_LANG_POP
6851 ])# _LT_LANG_FC_CONFIG
6852
6853
6854 # _LT_LANG_GCJ_CONFIG([TAG])
6855 # --------------------------
6856 # Ensure that the configuration variables for the GNU Java Compiler compiler
6857 # are suitably defined. These variables are subsequently used by _LT_CONFIG
6858 # to write the compiler configuration to `libtool'.
6859 m4_defun([_LT_LANG_GCJ_CONFIG],
6860 [AC_REQUIRE([LT_PROG_GCJ])dnl
6861 AC_LANG_SAVE
6862
6863 # Source file extension for Java test sources.
6864 ac_ext=java
6865
6866 # Object file extension for compiled Java test sources.
6867 objext=o
6868 _LT_TAGVAR(objext, $1)=$objext
6869
6870 # Code to be used in simple compile tests
6871 lt_simple_compile_test_code="class foo {}"
6872
6873 # Code to be used in simple link tests
6874 lt_simple_link_test_code='public class conftest { public static void main(String[[]] argv) {}; }'
6875
6876 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
6877 _LT_TAG_COMPILER
6878
6879 # save warnings/boilerplate of simple test code
6880 _LT_COMPILER_BOILERPLATE
6881 _LT_LINKER_BOILERPLATE
6882
6883 # Allow CC to be a program name with arguments.
6884 lt_save_CC="$CC"
6885 lt_save_GCC=$GCC
6886 GCC=yes
6887 CC=${GCJ-"gcj"}
6888 compiler=$CC
6889 _LT_TAGVAR(compiler, $1)=$CC
6890 _LT_TAGVAR(LD, $1)="$LD"
6891 _LT_CC_BASENAME([$compiler])
6892
6893 # GCJ did not exist at the time GCC didn't implicitly link libc in.
6894 _LT_TAGVAR(archive_cmds_need_lc, $1)=no
6895
6896 _LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
6897
6898 if test -n "$compiler"; then
6899 _LT_COMPILER_NO_RTTI($1)
6900 _LT_COMPILER_PIC($1)
6901 _LT_COMPILER_C_O($1)
6902 _LT_COMPILER_FILE_LOCKS($1)
6903 _LT_LINKER_SHLIBS($1)
6904 _LT_LINKER_HARDCODE_LIBPATH($1)
6905
6906 _LT_CONFIG($1)
6907 fi
6908
6909 AC_LANG_RESTORE
6910
6911 GCC=$lt_save_GCC
6912 CC="$lt_save_CC"
6913 ])# _LT_LANG_GCJ_CONFIG
6914
6915
6916 # _LT_LANG_RC_CONFIG([TAG])
6917 # -------------------------
6918 # Ensure that the configuration variables for the Windows resource compiler
6919 # are suitably defined. These variables are subsequently used by _LT_CONFIG
6920 # to write the compiler configuration to `libtool'.
6921 m4_defun([_LT_LANG_RC_CONFIG],
6922 [AC_REQUIRE([LT_PROG_RC])dnl
6923 AC_LANG_SAVE
6924
6925 # Source file extension for RC test sources.
6926 ac_ext=rc
6927
6928 # Object file extension for compiled RC test sources.
6929 objext=o
6930 _LT_TAGVAR(objext, $1)=$objext
6931
6932 # Code to be used in simple compile tests
6933 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
6934
6935 # Code to be used in simple link tests
6936 lt_simple_link_test_code="$lt_simple_compile_test_code"
6937
6938 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
6939 _LT_TAG_COMPILER
6940
6941 # save warnings/boilerplate of simple test code
6942 _LT_COMPILER_BOILERPLATE
6943 _LT_LINKER_BOILERPLATE
6944
6945 # Allow CC to be a program name with arguments.
6946 lt_save_CC="$CC"
6947 lt_save_GCC=$GCC
6948 GCC=
6949 CC=${RC-"windres"}
6950 compiler=$CC
6951 _LT_TAGVAR(compiler, $1)=$CC
6952 _LT_CC_BASENAME([$compiler])
6953 _LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes
6954
6955 if test -n "$compiler"; then
6956 :
6957 _LT_CONFIG($1)
6958 fi
6959
6960 GCC=$lt_save_GCC
6961 AC_LANG_RESTORE
6962 CC="$lt_save_CC"
6963 ])# _LT_LANG_RC_CONFIG
6964
6965
6966 # LT_PROG_GCJ
6967 # -----------
6968 AC_DEFUN([LT_PROG_GCJ],
6969 [m4_ifdef([AC_PROG_GCJ], [AC_PROG_GCJ],
6970 [m4_ifdef([A][M_PROG_GCJ], [A][M_PROG_GCJ],
6971 [AC_CHECK_TOOL(GCJ, gcj,)
6972 test "x${GCJFLAGS+set}" = xset || GCJFLAGS="-g -O2"
6973 AC_SUBST(GCJFLAGS)])])[]dnl
6974 ])
6975
6976 # Old name:
6977 AU_ALIAS([LT_AC_PROG_GCJ], [LT_PROG_GCJ])
6978 dnl aclocal-1.4 backwards compatibility:
6979 dnl AC_DEFUN([LT_AC_PROG_GCJ], [])
6980
6981
6982 # LT_PROG_RC
6983 # ----------
6984 AC_DEFUN([LT_PROG_RC],
6985 [AC_CHECK_TOOL(RC, windres,)
6986 ])
6987
6988 # Old name:
6989 AU_ALIAS([LT_AC_PROG_RC], [LT_PROG_RC])
6990 dnl aclocal-1.4 backwards compatibility:
6991 dnl AC_DEFUN([LT_AC_PROG_RC], [])
6992
6993
6994 # _LT_DECL_EGREP
6995 # --------------
6996 # If we don't have a new enough Autoconf to choose the best grep
6997 # available, choose the one first in the user's PATH.
6998 m4_defun([_LT_DECL_EGREP],
6999 [AC_REQUIRE([AC_PROG_EGREP])dnl
7000 AC_REQUIRE([AC_PROG_FGREP])dnl
7001 test -z "$GREP" && GREP=grep
7002 _LT_DECL([], [GREP], [1], [A grep program that handles long lines])
7003 _LT_DECL([], [EGREP], [1], [An ERE matcher])
7004 _LT_DECL([], [FGREP], [1], [A literal string matcher])
7005 dnl Non-bleeding-edge autoconf doesn't subst GREP, so do it here too
7006 AC_SUBST([GREP])
7007 ])
7008
7009
7010 # _LT_DECL_OBJDUMP
7011 # --------------
7012 # If we don't have a new enough Autoconf to choose the best objdump
7013 # available, choose the one first in the user's PATH.
7014 m4_defun([_LT_DECL_OBJDUMP],
7015 [AC_CHECK_TOOL(OBJDUMP, objdump, false)
7016 test -z "$OBJDUMP" && OBJDUMP=objdump
7017 _LT_DECL([], [OBJDUMP], [1], [An object symbol dumper])
7018 AC_SUBST([OBJDUMP])
7019 ])
7020
7021
7022 # _LT_DECL_SED
7023 # ------------
7024 # Check for a fully-functional sed program, that truncates
7025 # as few characters as possible. Prefer GNU sed if found.
7026 m4_defun([_LT_DECL_SED],
7027 [AC_PROG_SED
7028 test -z "$SED" && SED=sed
7029 Xsed="$SED -e 1s/^X//"
7030 _LT_DECL([], [SED], [1], [A sed program that does not truncate output])
7031 _LT_DECL([], [Xsed], ["\$SED -e 1s/^X//"],
7032 [Sed that helps us avoid accidentally triggering echo(1) options like -n])
7033 ])# _LT_DECL_SED
7034
7035 m4_ifndef([AC_PROG_SED], [
65187036 # NOTE: This macro has been submitted for inclusion into #
65197037 # GNU Autoconf as AC_PROG_SED. When it is available in #
65207038 # a released version of Autoconf we should remove this #
65217039 # macro and use it instead. #
6522 # LT_AC_PROG_SED
6523 # --------------
6524 # Check for a fully-functional sed program, that truncates
6525 # as few characters as possible. Prefer GNU sed if found.
6526 AC_DEFUN([LT_AC_PROG_SED],
7040
7041 m4_defun([AC_PROG_SED],
65277042 [AC_MSG_CHECKING([for a sed that does not truncate output])
65287043 AC_CACHE_VAL(lt_cv_path_SED,
65297044 [# Loop through the user's path and test for sed and gsed.
65357050 test -z "$as_dir" && as_dir=.
65367051 for lt_ac_prog in sed gsed; do
65377052 for ac_exec_ext in '' $ac_executable_extensions; do
6538 if AS_EXECUTABLE_P(["$as_dir/$lt_ac_prog$ac_exec_ext"]); then
7053 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
65397054 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
65407055 fi
65417056 done
65767091 SED=$lt_cv_path_SED
65777092 AC_SUBST([SED])
65787093 AC_MSG_RESULT([$SED])
7094 ])#AC_PROG_SED
7095 ])#m4_ifndef
7096
7097 # Old name:
7098 AU_ALIAS([LT_AC_PROG_SED], [AC_PROG_SED])
7099 dnl aclocal-1.4 backwards compatibility:
7100 dnl AC_DEFUN([LT_AC_PROG_SED], [])
7101
7102
7103 # _LT_CHECK_SHELL_FEATURES
7104 # ------------------------
7105 # Find out whether the shell is Bourne or XSI compatible,
7106 # or has some other useful features.
7107 m4_defun([_LT_CHECK_SHELL_FEATURES],
7108 [AC_MSG_CHECKING([whether the shell understands some XSI constructs])
7109 # Try some XSI features
7110 xsi_shell=no
7111 ( _lt_dummy="a/b/c"
7112 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
7113 = c,a/b,, \
7114 && eval 'test $(( 1 + 1 )) -eq 2 \
7115 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
7116 && xsi_shell=yes
7117 AC_MSG_RESULT([$xsi_shell])
7118 _LT_CONFIG_LIBTOOL_INIT([xsi_shell='$xsi_shell'])
7119
7120 AC_MSG_CHECKING([whether the shell understands "+="])
7121 lt_shell_append=no
7122 ( foo=bar; set foo baz; eval "$[1]+=\$[2]" && test "$foo" = barbaz ) \
7123 >/dev/null 2>&1 \
7124 && lt_shell_append=yes
7125 AC_MSG_RESULT([$lt_shell_append])
7126 _LT_CONFIG_LIBTOOL_INIT([lt_shell_append='$lt_shell_append'])
7127
7128 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
7129 lt_unset=unset
7130 else
7131 lt_unset=false
7132 fi
7133 _LT_DECL([], [lt_unset], [0], [whether the shell understands "unset"])dnl
7134
7135 # test EBCDIC or ASCII
7136 case `echo X|tr X '\101'` in
7137 A) # ASCII based system
7138 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
7139 lt_SP2NL='tr \040 \012'
7140 lt_NL2SP='tr \015\012 \040\040'
7141 ;;
7142 *) # EBCDIC based system
7143 lt_SP2NL='tr \100 \n'
7144 lt_NL2SP='tr \r\n \100\100'
7145 ;;
7146 esac
7147 _LT_DECL([SP2NL], [lt_SP2NL], [1], [turn spaces into newlines])dnl
7148 _LT_DECL([NL2SP], [lt_NL2SP], [1], [turn newlines into spaces])dnl
7149 ])# _LT_CHECK_SHELL_FEATURES
7150
7151
7152 # _LT_PROG_XSI_SHELLFNS
7153 # ---------------------
7154 # Bourne and XSI compatible variants of some useful shell functions.
7155 m4_defun([_LT_PROG_XSI_SHELLFNS],
7156 [case $xsi_shell in
7157 yes)
7158 cat << \_LT_EOF >> "$cfgfile"
7159
7160 # func_dirname file append nondir_replacement
7161 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
7162 # otherwise set result to NONDIR_REPLACEMENT.
7163 func_dirname ()
7164 {
7165 case ${1} in
7166 */*) func_dirname_result="${1%/*}${2}" ;;
7167 * ) func_dirname_result="${3}" ;;
7168 esac
7169 }
7170
7171 # func_basename file
7172 func_basename ()
7173 {
7174 func_basename_result="${1##*/}"
7175 }
7176
7177 # func_dirname_and_basename file append nondir_replacement
7178 # perform func_basename and func_dirname in a single function
7179 # call:
7180 # dirname: Compute the dirname of FILE. If nonempty,
7181 # add APPEND to the result, otherwise set result
7182 # to NONDIR_REPLACEMENT.
7183 # value returned in "$func_dirname_result"
7184 # basename: Compute filename of FILE.
7185 # value retuned in "$func_basename_result"
7186 # Implementation must be kept synchronized with func_dirname
7187 # and func_basename. For efficiency, we do not delegate to
7188 # those functions but instead duplicate the functionality here.
7189 func_dirname_and_basename ()
7190 {
7191 case ${1} in
7192 */*) func_dirname_result="${1%/*}${2}" ;;
7193 * ) func_dirname_result="${3}" ;;
7194 esac
7195 func_basename_result="${1##*/}"
7196 }
7197
7198 # func_stripname prefix suffix name
7199 # strip PREFIX and SUFFIX off of NAME.
7200 # PREFIX and SUFFIX must not contain globbing or regex special
7201 # characters, hashes, percent signs, but SUFFIX may contain a leading
7202 # dot (in which case that matches only a dot).
7203 func_stripname ()
7204 {
7205 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
7206 # positional parameters, so assign one to ordinary parameter first.
7207 func_stripname_result=${3}
7208 func_stripname_result=${func_stripname_result#"${1}"}
7209 func_stripname_result=${func_stripname_result%"${2}"}
7210 }
7211
7212 # func_opt_split
7213 func_opt_split ()
7214 {
7215 func_opt_split_opt=${1%%=*}
7216 func_opt_split_arg=${1#*=}
7217 }
7218
7219 # func_lo2o object
7220 func_lo2o ()
7221 {
7222 case ${1} in
7223 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
7224 *) func_lo2o_result=${1} ;;
7225 esac
7226 }
7227
7228 # func_xform libobj-or-source
7229 func_xform ()
7230 {
7231 func_xform_result=${1%.*}.lo
7232 }
7233
7234 # func_arith arithmetic-term...
7235 func_arith ()
7236 {
7237 func_arith_result=$(( $[*] ))
7238 }
7239
7240 # func_len string
7241 # STRING may not start with a hyphen.
7242 func_len ()
7243 {
7244 func_len_result=${#1}
7245 }
7246
7247 _LT_EOF
7248 ;;
7249 *) # Bourne compatible functions.
7250 cat << \_LT_EOF >> "$cfgfile"
7251
7252 # func_dirname file append nondir_replacement
7253 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
7254 # otherwise set result to NONDIR_REPLACEMENT.
7255 func_dirname ()
7256 {
7257 # Extract subdirectory from the argument.
7258 func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
7259 if test "X$func_dirname_result" = "X${1}"; then
7260 func_dirname_result="${3}"
7261 else
7262 func_dirname_result="$func_dirname_result${2}"
7263 fi
7264 }
7265
7266 # func_basename file
7267 func_basename ()
7268 {
7269 func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
7270 }
7271
7272 dnl func_dirname_and_basename
7273 dnl A portable version of this function is already defined in general.m4sh
7274 dnl so there is no need for it here.
7275
7276 # func_stripname prefix suffix name
7277 # strip PREFIX and SUFFIX off of NAME.
7278 # PREFIX and SUFFIX must not contain globbing or regex special
7279 # characters, hashes, percent signs, but SUFFIX may contain a leading
7280 # dot (in which case that matches only a dot).
7281 # func_strip_suffix prefix name
7282 func_stripname ()
7283 {
7284 case ${2} in
7285 .*) func_stripname_result=`$ECHO "X${3}" \
7286 | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
7287 *) func_stripname_result=`$ECHO "X${3}" \
7288 | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
7289 esac
7290 }
7291
7292 # sed scripts:
7293 my_sed_long_opt='1s/^\(-[[^=]]*\)=.*/\1/;q'
7294 my_sed_long_arg='1s/^-[[^=]]*=//'
7295
7296 # func_opt_split
7297 func_opt_split ()
7298 {
7299 func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
7300 func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
7301 }
7302
7303 # func_lo2o object
7304 func_lo2o ()
7305 {
7306 func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
7307 }
7308
7309 # func_xform libobj-or-source
7310 func_xform ()
7311 {
7312 func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[[^.]]*$/.lo/'`
7313 }
7314
7315 # func_arith arithmetic-term...
7316 func_arith ()
7317 {
7318 func_arith_result=`expr "$[@]"`
7319 }
7320
7321 # func_len string
7322 # STRING may not start with a hyphen.
7323 func_len ()
7324 {
7325 func_len_result=`expr "$[1]" : ".*" 2>/dev/null || echo $max_cmd_len`
7326 }
7327
7328 _LT_EOF
7329 esac
7330
7331 case $lt_shell_append in
7332 yes)
7333 cat << \_LT_EOF >> "$cfgfile"
7334
7335 # func_append var value
7336 # Append VALUE to the end of shell variable VAR.
7337 func_append ()
7338 {
7339 eval "$[1]+=\$[2]"
7340 }
7341 _LT_EOF
7342 ;;
7343 *)
7344 cat << \_LT_EOF >> "$cfgfile"
7345
7346 # func_append var value
7347 # Append VALUE to the end of shell variable VAR.
7348 func_append ()
7349 {
7350 eval "$[1]=\$$[1]\$[2]"
7351 }
7352
7353 _LT_EOF
7354 ;;
7355 esac
65797356 ])
65807357
7358 # Helper functions for option handling. -*- Autoconf -*-
7359 #
7360 # Copyright (C) 2004, 2005, 2007, 2008 Free Software Foundation, Inc.
7361 # Written by Gary V. Vaughan, 2004
7362 #
7363 # This file is free software; the Free Software Foundation gives
7364 # unlimited permission to copy and/or distribute it, with or without
7365 # modifications, as long as this notice is preserved.
7366
7367 # serial 6 ltoptions.m4
7368
7369 # This is to help aclocal find these macros, as it can't see m4_define.
7370 AC_DEFUN([LTOPTIONS_VERSION], [m4_if([1])])
7371
7372
7373 # _LT_MANGLE_OPTION(MACRO-NAME, OPTION-NAME)
7374 # ------------------------------------------
7375 m4_define([_LT_MANGLE_OPTION],
7376 [[_LT_OPTION_]m4_bpatsubst($1__$2, [[^a-zA-Z0-9_]], [_])])
7377
7378
7379 # _LT_SET_OPTION(MACRO-NAME, OPTION-NAME)
7380 # ---------------------------------------
7381 # Set option OPTION-NAME for macro MACRO-NAME, and if there is a
7382 # matching handler defined, dispatch to it. Other OPTION-NAMEs are
7383 # saved as a flag.
7384 m4_define([_LT_SET_OPTION],
7385 [m4_define(_LT_MANGLE_OPTION([$1], [$2]))dnl
7386 m4_ifdef(_LT_MANGLE_DEFUN([$1], [$2]),
7387 _LT_MANGLE_DEFUN([$1], [$2]),
7388 [m4_warning([Unknown $1 option `$2'])])[]dnl
7389 ])
7390
7391
7392 # _LT_IF_OPTION(MACRO-NAME, OPTION-NAME, IF-SET, [IF-NOT-SET])
7393 # ------------------------------------------------------------
7394 # Execute IF-SET if OPTION is set, IF-NOT-SET otherwise.
7395 m4_define([_LT_IF_OPTION],
7396 [m4_ifdef(_LT_MANGLE_OPTION([$1], [$2]), [$3], [$4])])
7397
7398
7399 # _LT_UNLESS_OPTIONS(MACRO-NAME, OPTION-LIST, IF-NOT-SET)
7400 # -------------------------------------------------------
7401 # Execute IF-NOT-SET unless all options in OPTION-LIST for MACRO-NAME
7402 # are set.
7403 m4_define([_LT_UNLESS_OPTIONS],
7404 [m4_foreach([_LT_Option], m4_split(m4_normalize([$2])),
7405 [m4_ifdef(_LT_MANGLE_OPTION([$1], _LT_Option),
7406 [m4_define([$0_found])])])[]dnl
7407 m4_ifdef([$0_found], [m4_undefine([$0_found])], [$3
7408 ])[]dnl
7409 ])
7410
7411
7412 # _LT_SET_OPTIONS(MACRO-NAME, OPTION-LIST)
7413 # ----------------------------------------
7414 # OPTION-LIST is a space-separated list of Libtool options associated
7415 # with MACRO-NAME. If any OPTION has a matching handler declared with
7416 # LT_OPTION_DEFINE, dispatch to that macro; otherwise complain about
7417 # the unknown option and exit.
7418 m4_defun([_LT_SET_OPTIONS],
7419 [# Set options
7420 m4_foreach([_LT_Option], m4_split(m4_normalize([$2])),
7421 [_LT_SET_OPTION([$1], _LT_Option)])
7422
7423 m4_if([$1],[LT_INIT],[
7424 dnl
7425 dnl Simply set some default values (i.e off) if boolean options were not
7426 dnl specified:
7427 _LT_UNLESS_OPTIONS([LT_INIT], [dlopen], [enable_dlopen=no
7428 ])
7429 _LT_UNLESS_OPTIONS([LT_INIT], [win32-dll], [enable_win32_dll=no
7430 ])
7431 dnl
7432 dnl If no reference was made to various pairs of opposing options, then
7433 dnl we run the default mode handler for the pair. For example, if neither
7434 dnl `shared' nor `disable-shared' was passed, we enable building of shared
7435 dnl archives by default:
7436 _LT_UNLESS_OPTIONS([LT_INIT], [shared disable-shared], [_LT_ENABLE_SHARED])
7437 _LT_UNLESS_OPTIONS([LT_INIT], [static disable-static], [_LT_ENABLE_STATIC])
7438 _LT_UNLESS_OPTIONS([LT_INIT], [pic-only no-pic], [_LT_WITH_PIC])
7439 _LT_UNLESS_OPTIONS([LT_INIT], [fast-install disable-fast-install],
7440 [_LT_ENABLE_FAST_INSTALL])
7441 ])
7442 ])# _LT_SET_OPTIONS
7443
7444
7445
7446 # _LT_MANGLE_DEFUN(MACRO-NAME, OPTION-NAME)
7447 # -----------------------------------------
7448 m4_define([_LT_MANGLE_DEFUN],
7449 [[_LT_OPTION_DEFUN_]m4_bpatsubst(m4_toupper([$1__$2]), [[^A-Z0-9_]], [_])])
7450
7451
7452 # LT_OPTION_DEFINE(MACRO-NAME, OPTION-NAME, CODE)
7453 # -----------------------------------------------
7454 m4_define([LT_OPTION_DEFINE],
7455 [m4_define(_LT_MANGLE_DEFUN([$1], [$2]), [$3])[]dnl
7456 ])# LT_OPTION_DEFINE
7457
7458
7459 # dlopen
7460 # ------
7461 LT_OPTION_DEFINE([LT_INIT], [dlopen], [enable_dlopen=yes
7462 ])
7463
7464 AU_DEFUN([AC_LIBTOOL_DLOPEN],
7465 [_LT_SET_OPTION([LT_INIT], [dlopen])
7466 AC_DIAGNOSE([obsolete],
7467 [$0: Remove this warning and the call to _LT_SET_OPTION when you
7468 put the `dlopen' option into LT_INIT's first parameter.])
7469 ])
7470
7471 dnl aclocal-1.4 backwards compatibility:
7472 dnl AC_DEFUN([AC_LIBTOOL_DLOPEN], [])
7473
7474
7475 # win32-dll
7476 # ---------
7477 # Declare package support for building win32 dll's.
7478 LT_OPTION_DEFINE([LT_INIT], [win32-dll],
7479 [enable_win32_dll=yes
7480
7481 case $host in
7482 *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-cegcc*)
7483 AC_CHECK_TOOL(AS, as, false)
7484 AC_CHECK_TOOL(DLLTOOL, dlltool, false)
7485 AC_CHECK_TOOL(OBJDUMP, objdump, false)
7486 ;;
7487 esac
7488
7489 test -z "$AS" && AS=as
7490 _LT_DECL([], [AS], [0], [Assembler program])dnl
7491
7492 test -z "$DLLTOOL" && DLLTOOL=dlltool
7493 _LT_DECL([], [DLLTOOL], [0], [DLL creation program])dnl
7494
7495 test -z "$OBJDUMP" && OBJDUMP=objdump
7496 _LT_DECL([], [OBJDUMP], [0], [Object dumper program])dnl
7497 ])# win32-dll
7498
7499 AU_DEFUN([AC_LIBTOOL_WIN32_DLL],
7500 [AC_REQUIRE([AC_CANONICAL_HOST])dnl
7501 _LT_SET_OPTION([LT_INIT], [win32-dll])
7502 AC_DIAGNOSE([obsolete],
7503 [$0: Remove this warning and the call to _LT_SET_OPTION when you
7504 put the `win32-dll' option into LT_INIT's first parameter.])
7505 ])
7506
7507 dnl aclocal-1.4 backwards compatibility:
7508 dnl AC_DEFUN([AC_LIBTOOL_WIN32_DLL], [])
7509
7510
7511 # _LT_ENABLE_SHARED([DEFAULT])
7512 # ----------------------------
7513 # implement the --enable-shared flag, and supports the `shared' and
7514 # `disable-shared' LT_INIT options.
7515 # DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'.
7516 m4_define([_LT_ENABLE_SHARED],
7517 [m4_define([_LT_ENABLE_SHARED_DEFAULT], [m4_if($1, no, no, yes)])dnl
7518 AC_ARG_ENABLE([shared],
7519 [AS_HELP_STRING([--enable-shared@<:@=PKGS@:>@],
7520 [build shared libraries @<:@default=]_LT_ENABLE_SHARED_DEFAULT[@:>@])],
7521 [p=${PACKAGE-default}
7522 case $enableval in
7523 yes) enable_shared=yes ;;
7524 no) enable_shared=no ;;
7525 *)
7526 enable_shared=no
7527 # Look at the argument we got. We use all the common list separators.
7528 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7529 for pkg in $enableval; do
7530 IFS="$lt_save_ifs"
7531 if test "X$pkg" = "X$p"; then
7532 enable_shared=yes
7533 fi
7534 done
7535 IFS="$lt_save_ifs"
7536 ;;
7537 esac],
7538 [enable_shared=]_LT_ENABLE_SHARED_DEFAULT)
7539
7540 _LT_DECL([build_libtool_libs], [enable_shared], [0],
7541 [Whether or not to build shared libraries])
7542 ])# _LT_ENABLE_SHARED
7543
7544 LT_OPTION_DEFINE([LT_INIT], [shared], [_LT_ENABLE_SHARED([yes])])
7545 LT_OPTION_DEFINE([LT_INIT], [disable-shared], [_LT_ENABLE_SHARED([no])])
7546
7547 # Old names:
7548 AC_DEFUN([AC_ENABLE_SHARED],
7549 [_LT_SET_OPTION([LT_INIT], m4_if([$1], [no], [disable-])[shared])
7550 ])
7551
7552 AC_DEFUN([AC_DISABLE_SHARED],
7553 [_LT_SET_OPTION([LT_INIT], [disable-shared])
7554 ])
7555
7556 AU_DEFUN([AM_ENABLE_SHARED], [AC_ENABLE_SHARED($@)])
7557 AU_DEFUN([AM_DISABLE_SHARED], [AC_DISABLE_SHARED($@)])
7558
7559 dnl aclocal-1.4 backwards compatibility:
7560 dnl AC_DEFUN([AM_ENABLE_SHARED], [])
7561 dnl AC_DEFUN([AM_DISABLE_SHARED], [])
7562
7563
7564
7565 # _LT_ENABLE_STATIC([DEFAULT])
7566 # ----------------------------
7567 # implement the --enable-static flag, and support the `static' and
7568 # `disable-static' LT_INIT options.
7569 # DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'.
7570 m4_define([_LT_ENABLE_STATIC],
7571 [m4_define([_LT_ENABLE_STATIC_DEFAULT], [m4_if($1, no, no, yes)])dnl
7572 AC_ARG_ENABLE([static],
7573 [AS_HELP_STRING([--enable-static@<:@=PKGS@:>@],
7574 [build static libraries @<:@default=]_LT_ENABLE_STATIC_DEFAULT[@:>@])],
7575 [p=${PACKAGE-default}
7576 case $enableval in
7577 yes) enable_static=yes ;;
7578 no) enable_static=no ;;
7579 *)
7580 enable_static=no
7581 # Look at the argument we got. We use all the common list separators.
7582 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7583 for pkg in $enableval; do
7584 IFS="$lt_save_ifs"
7585 if test "X$pkg" = "X$p"; then
7586 enable_static=yes
7587 fi
7588 done
7589 IFS="$lt_save_ifs"
7590 ;;
7591 esac],
7592 [enable_static=]_LT_ENABLE_STATIC_DEFAULT)
7593
7594 _LT_DECL([build_old_libs], [enable_static], [0],
7595 [Whether or not to build static libraries])
7596 ])# _LT_ENABLE_STATIC
7597
7598 LT_OPTION_DEFINE([LT_INIT], [static], [_LT_ENABLE_STATIC([yes])])
7599 LT_OPTION_DEFINE([LT_INIT], [disable-static], [_LT_ENABLE_STATIC([no])])
7600
7601 # Old names:
7602 AC_DEFUN([AC_ENABLE_STATIC],
7603 [_LT_SET_OPTION([LT_INIT], m4_if([$1], [no], [disable-])[static])
7604 ])
7605
7606 AC_DEFUN([AC_DISABLE_STATIC],
7607 [_LT_SET_OPTION([LT_INIT], [disable-static])
7608 ])
7609
7610 AU_DEFUN([AM_ENABLE_STATIC], [AC_ENABLE_STATIC($@)])
7611 AU_DEFUN([AM_DISABLE_STATIC], [AC_DISABLE_STATIC($@)])
7612
7613 dnl aclocal-1.4 backwards compatibility:
7614 dnl AC_DEFUN([AM_ENABLE_STATIC], [])
7615 dnl AC_DEFUN([AM_DISABLE_STATIC], [])
7616
7617
7618
7619 # _LT_ENABLE_FAST_INSTALL([DEFAULT])
7620 # ----------------------------------
7621 # implement the --enable-fast-install flag, and support the `fast-install'
7622 # and `disable-fast-install' LT_INIT options.
7623 # DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'.
7624 m4_define([_LT_ENABLE_FAST_INSTALL],
7625 [m4_define([_LT_ENABLE_FAST_INSTALL_DEFAULT], [m4_if($1, no, no, yes)])dnl
7626 AC_ARG_ENABLE([fast-install],
7627 [AS_HELP_STRING([--enable-fast-install@<:@=PKGS@:>@],
7628 [optimize for fast installation @<:@default=]_LT_ENABLE_FAST_INSTALL_DEFAULT[@:>@])],
7629 [p=${PACKAGE-default}
7630 case $enableval in
7631 yes) enable_fast_install=yes ;;
7632 no) enable_fast_install=no ;;
7633 *)
7634 enable_fast_install=no
7635 # Look at the argument we got. We use all the common list separators.
7636 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7637 for pkg in $enableval; do
7638 IFS="$lt_save_ifs"
7639 if test "X$pkg" = "X$p"; then
7640 enable_fast_install=yes
7641 fi
7642 done
7643 IFS="$lt_save_ifs"
7644 ;;
7645 esac],
7646 [enable_fast_install=]_LT_ENABLE_FAST_INSTALL_DEFAULT)
7647
7648 _LT_DECL([fast_install], [enable_fast_install], [0],
7649 [Whether or not to optimize for fast installation])dnl
7650 ])# _LT_ENABLE_FAST_INSTALL
7651
7652 LT_OPTION_DEFINE([LT_INIT], [fast-install], [_LT_ENABLE_FAST_INSTALL([yes])])
7653 LT_OPTION_DEFINE([LT_INIT], [disable-fast-install], [_LT_ENABLE_FAST_INSTALL([no])])
7654
7655 # Old names:
7656 AU_DEFUN([AC_ENABLE_FAST_INSTALL],
7657 [_LT_SET_OPTION([LT_INIT], m4_if([$1], [no], [disable-])[fast-install])
7658 AC_DIAGNOSE([obsolete],
7659 [$0: Remove this warning and the call to _LT_SET_OPTION when you put
7660 the `fast-install' option into LT_INIT's first parameter.])
7661 ])
7662
7663 AU_DEFUN([AC_DISABLE_FAST_INSTALL],
7664 [_LT_SET_OPTION([LT_INIT], [disable-fast-install])
7665 AC_DIAGNOSE([obsolete],
7666 [$0: Remove this warning and the call to _LT_SET_OPTION when you put
7667 the `disable-fast-install' option into LT_INIT's first parameter.])
7668 ])
7669
7670 dnl aclocal-1.4 backwards compatibility:
7671 dnl AC_DEFUN([AC_ENABLE_FAST_INSTALL], [])
7672 dnl AC_DEFUN([AM_DISABLE_FAST_INSTALL], [])
7673
7674
7675 # _LT_WITH_PIC([MODE])
7676 # --------------------
7677 # implement the --with-pic flag, and support the `pic-only' and `no-pic'
7678 # LT_INIT options.
7679 # MODE is either `yes' or `no'. If omitted, it defaults to `both'.
7680 m4_define([_LT_WITH_PIC],
7681 [AC_ARG_WITH([pic],
7682 [AS_HELP_STRING([--with-pic],
7683 [try to use only PIC/non-PIC objects @<:@default=use both@:>@])],
7684 [pic_mode="$withval"],
7685 [pic_mode=default])
7686
7687 test -z "$pic_mode" && pic_mode=m4_default([$1], [default])
7688
7689 _LT_DECL([], [pic_mode], [0], [What type of objects to build])dnl
7690 ])# _LT_WITH_PIC
7691
7692 LT_OPTION_DEFINE([LT_INIT], [pic-only], [_LT_WITH_PIC([yes])])
7693 LT_OPTION_DEFINE([LT_INIT], [no-pic], [_LT_WITH_PIC([no])])
7694
7695 # Old name:
7696 AU_DEFUN([AC_LIBTOOL_PICMODE],
7697 [_LT_SET_OPTION([LT_INIT], [pic-only])
7698 AC_DIAGNOSE([obsolete],
7699 [$0: Remove this warning and the call to _LT_SET_OPTION when you
7700 put the `pic-only' option into LT_INIT's first parameter.])
7701 ])
7702
7703 dnl aclocal-1.4 backwards compatibility:
7704 dnl AC_DEFUN([AC_LIBTOOL_PICMODE], [])
7705
7706
7707 m4_define([_LTDL_MODE], [])
7708 LT_OPTION_DEFINE([LTDL_INIT], [nonrecursive],
7709 [m4_define([_LTDL_MODE], [nonrecursive])])
7710 LT_OPTION_DEFINE([LTDL_INIT], [recursive],
7711 [m4_define([_LTDL_MODE], [recursive])])
7712 LT_OPTION_DEFINE([LTDL_INIT], [subproject],
7713 [m4_define([_LTDL_MODE], [subproject])])
7714
7715 m4_define([_LTDL_TYPE], [])
7716 LT_OPTION_DEFINE([LTDL_INIT], [installable],
7717 [m4_define([_LTDL_TYPE], [installable])])
7718 LT_OPTION_DEFINE([LTDL_INIT], [convenience],
7719 [m4_define([_LTDL_TYPE], [convenience])])
7720
7721 # ltsugar.m4 -- libtool m4 base layer. -*-Autoconf-*-
7722 #
7723 # Copyright (C) 2004, 2005, 2007, 2008 Free Software Foundation, Inc.
7724 # Written by Gary V. Vaughan, 2004
7725 #
7726 # This file is free software; the Free Software Foundation gives
7727 # unlimited permission to copy and/or distribute it, with or without
7728 # modifications, as long as this notice is preserved.
7729
7730 # serial 6 ltsugar.m4
7731
7732 # This is to help aclocal find these macros, as it can't see m4_define.
7733 AC_DEFUN([LTSUGAR_VERSION], [m4_if([0.1])])
7734
7735
7736 # lt_join(SEP, ARG1, [ARG2...])
7737 # -----------------------------
7738 # Produce ARG1SEPARG2...SEPARGn, omitting [] arguments and their
7739 # associated separator.
7740 # Needed until we can rely on m4_join from Autoconf 2.62, since all earlier
7741 # versions in m4sugar had bugs.
7742 m4_define([lt_join],
7743 [m4_if([$#], [1], [],
7744 [$#], [2], [[$2]],
7745 [m4_if([$2], [], [], [[$2]_])$0([$1], m4_shift(m4_shift($@)))])])
7746 m4_define([_lt_join],
7747 [m4_if([$#$2], [2], [],
7748 [m4_if([$2], [], [], [[$1$2]])$0([$1], m4_shift(m4_shift($@)))])])
7749
7750
7751 # lt_car(LIST)
7752 # lt_cdr(LIST)
7753 # ------------
7754 # Manipulate m4 lists.
7755 # These macros are necessary as long as will still need to support
7756 # Autoconf-2.59 which quotes differently.
7757 m4_define([lt_car], [[$1]])
7758 m4_define([lt_cdr],
7759 [m4_if([$#], 0, [m4_fatal([$0: cannot be called without arguments])],
7760 [$#], 1, [],
7761 [m4_dquote(m4_shift($@))])])
7762 m4_define([lt_unquote], $1)
7763
7764
7765 # lt_append(MACRO-NAME, STRING, [SEPARATOR])
7766 # ------------------------------------------
7767 # Redefine MACRO-NAME to hold its former content plus `SEPARATOR'`STRING'.
7768 # Note that neither SEPARATOR nor STRING are expanded; they are appended
7769 # to MACRO-NAME as is (leaving the expansion for when MACRO-NAME is invoked).
7770 # No SEPARATOR is output if MACRO-NAME was previously undefined (different
7771 # than defined and empty).
7772 #
7773 # This macro is needed until we can rely on Autoconf 2.62, since earlier
7774 # versions of m4sugar mistakenly expanded SEPARATOR but not STRING.
7775 m4_define([lt_append],
7776 [m4_define([$1],
7777 m4_ifdef([$1], [m4_defn([$1])[$3]])[$2])])
7778
7779
7780
7781 # lt_combine(SEP, PREFIX-LIST, INFIX, SUFFIX1, [SUFFIX2...])
7782 # ----------------------------------------------------------
7783 # Produce a SEP delimited list of all paired combinations of elements of
7784 # PREFIX-LIST with SUFFIX1 through SUFFIXn. Each element of the list
7785 # has the form PREFIXmINFIXSUFFIXn.
7786 # Needed until we can rely on m4_combine added in Autoconf 2.62.
7787 m4_define([lt_combine],
7788 [m4_if(m4_eval([$# > 3]), [1],
7789 [m4_pushdef([_Lt_sep], [m4_define([_Lt_sep], m4_defn([lt_car]))])]]dnl
7790 [[m4_foreach([_Lt_prefix], [$2],
7791 [m4_foreach([_Lt_suffix],
7792 ]m4_dquote(m4_dquote(m4_shift(m4_shift(m4_shift($@)))))[,
7793 [_Lt_sep([$1])[]m4_defn([_Lt_prefix])[$3]m4_defn([_Lt_suffix])])])])])
7794
7795
7796 # lt_if_append_uniq(MACRO-NAME, VARNAME, [SEPARATOR], [UNIQ], [NOT-UNIQ])
7797 # -----------------------------------------------------------------------
7798 # Iff MACRO-NAME does not yet contain VARNAME, then append it (delimited
7799 # by SEPARATOR if supplied) and expand UNIQ, else NOT-UNIQ.
7800 m4_define([lt_if_append_uniq],
7801 [m4_ifdef([$1],
7802 [m4_if(m4_index([$3]m4_defn([$1])[$3], [$3$2$3]), [-1],
7803 [lt_append([$1], [$2], [$3])$4],
7804 [$5])],
7805 [lt_append([$1], [$2], [$3])$4])])
7806
7807
7808 # lt_dict_add(DICT, KEY, VALUE)
7809 # -----------------------------
7810 m4_define([lt_dict_add],
7811 [m4_define([$1($2)], [$3])])
7812
7813
7814 # lt_dict_add_subkey(DICT, KEY, SUBKEY, VALUE)
7815 # --------------------------------------------
7816 m4_define([lt_dict_add_subkey],
7817 [m4_define([$1($2:$3)], [$4])])
7818
7819
7820 # lt_dict_fetch(DICT, KEY, [SUBKEY])
7821 # ----------------------------------
7822 m4_define([lt_dict_fetch],
7823 [m4_ifval([$3],
7824 m4_ifdef([$1($2:$3)], [m4_defn([$1($2:$3)])]),
7825 m4_ifdef([$1($2)], [m4_defn([$1($2)])]))])
7826
7827
7828 # lt_if_dict_fetch(DICT, KEY, [SUBKEY], VALUE, IF-TRUE, [IF-FALSE])
7829 # -----------------------------------------------------------------
7830 m4_define([lt_if_dict_fetch],
7831 [m4_if(lt_dict_fetch([$1], [$2], [$3]), [$4],
7832 [$5],
7833 [$6])])
7834
7835
7836 # lt_dict_filter(DICT, [SUBKEY], VALUE, [SEPARATOR], KEY, [...])
7837 # --------------------------------------------------------------
7838 m4_define([lt_dict_filter],
7839 [m4_if([$5], [], [],
7840 [lt_join(m4_quote(m4_default([$4], [[, ]])),
7841 lt_unquote(m4_split(m4_normalize(m4_foreach(_Lt_key, lt_car([m4_shiftn(4, $@)]),
7842 [lt_if_dict_fetch([$1], _Lt_key, [$2], [$3], [_Lt_key ])])))))])[]dnl
7843 ])
7844
7845 # ltversion.m4 -- version numbers -*- Autoconf -*-
7846 #
7847 # Copyright (C) 2004 Free Software Foundation, Inc.
7848 # Written by Scott James Remnant, 2004
7849 #
7850 # This file is free software; the Free Software Foundation gives
7851 # unlimited permission to copy and/or distribute it, with or without
7852 # modifications, as long as this notice is preserved.
7853
7854 # Generated from ltversion.in.
7855
7856 # serial 3012 ltversion.m4
7857 # This file is part of GNU Libtool
7858
7859 m4_define([LT_PACKAGE_VERSION], [2.2.6])
7860 m4_define([LT_PACKAGE_REVISION], [1.3012])
7861
7862 AC_DEFUN([LTVERSION_VERSION],
7863 [macro_version='2.2.6'
7864 macro_revision='1.3012'
7865 _LT_DECL(, macro_version, 0, [Which release of libtool.m4 was used?])
7866 _LT_DECL(, macro_revision, 0)
7867 ])
7868
7869 # lt~obsolete.m4 -- aclocal satisfying obsolete definitions. -*-Autoconf-*-
7870 #
7871 # Copyright (C) 2004, 2005, 2007 Free Software Foundation, Inc.
7872 # Written by Scott James Remnant, 2004.
7873 #
7874 # This file is free software; the Free Software Foundation gives
7875 # unlimited permission to copy and/or distribute it, with or without
7876 # modifications, as long as this notice is preserved.
7877
7878 # serial 4 lt~obsolete.m4
7879
7880 # These exist entirely to fool aclocal when bootstrapping libtool.
7881 #
7882 # In the past libtool.m4 has provided macros via AC_DEFUN (or AU_DEFUN)
7883 # which have later been changed to m4_define as they aren't part of the
7884 # exported API, or moved to Autoconf or Automake where they belong.
7885 #
7886 # The trouble is, aclocal is a bit thick. It'll see the old AC_DEFUN
7887 # in /usr/share/aclocal/libtool.m4 and remember it, then when it sees us
7888 # using a macro with the same name in our local m4/libtool.m4 it'll
7889 # pull the old libtool.m4 in (it doesn't see our shiny new m4_define
7890 # and doesn't know about Autoconf macros at all.)
7891 #
7892 # So we provide this file, which has a silly filename so it's always
7893 # included after everything else. This provides aclocal with the
7894 # AC_DEFUNs it wants, but when m4 processes it, it doesn't do anything
7895 # because those macros already exist, or will be overwritten later.
7896 # We use AC_DEFUN over AU_DEFUN for compatibility with aclocal-1.6.
7897 #
7898 # Anytime we withdraw an AC_DEFUN or AU_DEFUN, remember to add it here.
7899 # Yes, that means every name once taken will need to remain here until
7900 # we give up compatibility with versions before 1.7, at which point
7901 # we need to keep only those names which we still refer to.
7902
7903 # This is to help aclocal find these macros, as it can't see m4_define.
7904 AC_DEFUN([LTOBSOLETE_VERSION], [m4_if([1])])
7905
7906 m4_ifndef([AC_LIBTOOL_LINKER_OPTION], [AC_DEFUN([AC_LIBTOOL_LINKER_OPTION])])
7907 m4_ifndef([AC_PROG_EGREP], [AC_DEFUN([AC_PROG_EGREP])])
7908 m4_ifndef([_LT_AC_PROG_ECHO_BACKSLASH], [AC_DEFUN([_LT_AC_PROG_ECHO_BACKSLASH])])
7909 m4_ifndef([_LT_AC_SHELL_INIT], [AC_DEFUN([_LT_AC_SHELL_INIT])])
7910 m4_ifndef([_LT_AC_SYS_LIBPATH_AIX], [AC_DEFUN([_LT_AC_SYS_LIBPATH_AIX])])
7911 m4_ifndef([_LT_PROG_LTMAIN], [AC_DEFUN([_LT_PROG_LTMAIN])])
7912 m4_ifndef([_LT_AC_TAGVAR], [AC_DEFUN([_LT_AC_TAGVAR])])
7913 m4_ifndef([AC_LTDL_ENABLE_INSTALL], [AC_DEFUN([AC_LTDL_ENABLE_INSTALL])])
7914 m4_ifndef([AC_LTDL_PREOPEN], [AC_DEFUN([AC_LTDL_PREOPEN])])
7915 m4_ifndef([_LT_AC_SYS_COMPILER], [AC_DEFUN([_LT_AC_SYS_COMPILER])])
7916 m4_ifndef([_LT_AC_LOCK], [AC_DEFUN([_LT_AC_LOCK])])
7917 m4_ifndef([AC_LIBTOOL_SYS_OLD_ARCHIVE], [AC_DEFUN([AC_LIBTOOL_SYS_OLD_ARCHIVE])])
7918 m4_ifndef([_LT_AC_TRY_DLOPEN_SELF], [AC_DEFUN([_LT_AC_TRY_DLOPEN_SELF])])
7919 m4_ifndef([AC_LIBTOOL_PROG_CC_C_O], [AC_DEFUN([AC_LIBTOOL_PROG_CC_C_O])])
7920 m4_ifndef([AC_LIBTOOL_SYS_HARD_LINK_LOCKS], [AC_DEFUN([AC_LIBTOOL_SYS_HARD_LINK_LOCKS])])
7921 m4_ifndef([AC_LIBTOOL_OBJDIR], [AC_DEFUN([AC_LIBTOOL_OBJDIR])])
7922 m4_ifndef([AC_LTDL_OBJDIR], [AC_DEFUN([AC_LTDL_OBJDIR])])
7923 m4_ifndef([AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH], [AC_DEFUN([AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH])])
7924 m4_ifndef([AC_LIBTOOL_SYS_LIB_STRIP], [AC_DEFUN([AC_LIBTOOL_SYS_LIB_STRIP])])
7925 m4_ifndef([AC_PATH_MAGIC], [AC_DEFUN([AC_PATH_MAGIC])])
7926 m4_ifndef([AC_PROG_LD_GNU], [AC_DEFUN([AC_PROG_LD_GNU])])
7927 m4_ifndef([AC_PROG_LD_RELOAD_FLAG], [AC_DEFUN([AC_PROG_LD_RELOAD_FLAG])])
7928 m4_ifndef([AC_DEPLIBS_CHECK_METHOD], [AC_DEFUN([AC_DEPLIBS_CHECK_METHOD])])
7929 m4_ifndef([AC_LIBTOOL_PROG_COMPILER_NO_RTTI], [AC_DEFUN([AC_LIBTOOL_PROG_COMPILER_NO_RTTI])])
7930 m4_ifndef([AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE], [AC_DEFUN([AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE])])
7931 m4_ifndef([AC_LIBTOOL_PROG_COMPILER_PIC], [AC_DEFUN([AC_LIBTOOL_PROG_COMPILER_PIC])])
7932 m4_ifndef([AC_LIBTOOL_PROG_LD_SHLIBS], [AC_DEFUN([AC_LIBTOOL_PROG_LD_SHLIBS])])
7933 m4_ifndef([AC_LIBTOOL_POSTDEP_PREDEP], [AC_DEFUN([AC_LIBTOOL_POSTDEP_PREDEP])])
7934 m4_ifndef([LT_AC_PROG_EGREP], [AC_DEFUN([LT_AC_PROG_EGREP])])
7935 m4_ifndef([LT_AC_PROG_SED], [AC_DEFUN([LT_AC_PROG_SED])])
7936 m4_ifndef([_LT_CC_BASENAME], [AC_DEFUN([_LT_CC_BASENAME])])
7937 m4_ifndef([_LT_COMPILER_BOILERPLATE], [AC_DEFUN([_LT_COMPILER_BOILERPLATE])])
7938 m4_ifndef([_LT_LINKER_BOILERPLATE], [AC_DEFUN([_LT_LINKER_BOILERPLATE])])
7939 m4_ifndef([_AC_PROG_LIBTOOL], [AC_DEFUN([_AC_PROG_LIBTOOL])])
7940 m4_ifndef([AC_LIBTOOL_SETUP], [AC_DEFUN([AC_LIBTOOL_SETUP])])
7941 m4_ifndef([_LT_AC_CHECK_DLFCN], [AC_DEFUN([_LT_AC_CHECK_DLFCN])])
7942 m4_ifndef([AC_LIBTOOL_SYS_DYNAMIC_LINKER], [AC_DEFUN([AC_LIBTOOL_SYS_DYNAMIC_LINKER])])
7943 m4_ifndef([_LT_AC_TAGCONFIG], [AC_DEFUN([_LT_AC_TAGCONFIG])])
7944 m4_ifndef([AC_DISABLE_FAST_INSTALL], [AC_DEFUN([AC_DISABLE_FAST_INSTALL])])
7945 m4_ifndef([_LT_AC_LANG_CXX], [AC_DEFUN([_LT_AC_LANG_CXX])])
7946 m4_ifndef([_LT_AC_LANG_F77], [AC_DEFUN([_LT_AC_LANG_F77])])
7947 m4_ifndef([_LT_AC_LANG_GCJ], [AC_DEFUN([_LT_AC_LANG_GCJ])])
7948 m4_ifndef([AC_LIBTOOL_RC], [AC_DEFUN([AC_LIBTOOL_RC])])
7949 m4_ifndef([AC_LIBTOOL_LANG_C_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_C_CONFIG])])
7950 m4_ifndef([_LT_AC_LANG_C_CONFIG], [AC_DEFUN([_LT_AC_LANG_C_CONFIG])])
7951 m4_ifndef([AC_LIBTOOL_LANG_CXX_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_CXX_CONFIG])])
7952 m4_ifndef([_LT_AC_LANG_CXX_CONFIG], [AC_DEFUN([_LT_AC_LANG_CXX_CONFIG])])
7953 m4_ifndef([AC_LIBTOOL_LANG_F77_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_F77_CONFIG])])
7954 m4_ifndef([_LT_AC_LANG_F77_CONFIG], [AC_DEFUN([_LT_AC_LANG_F77_CONFIG])])
7955 m4_ifndef([AC_LIBTOOL_LANG_GCJ_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_GCJ_CONFIG])])
7956 m4_ifndef([_LT_AC_LANG_GCJ_CONFIG], [AC_DEFUN([_LT_AC_LANG_GCJ_CONFIG])])
7957 m4_ifndef([AC_LIBTOOL_LANG_RC_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_RC_CONFIG])])
7958 m4_ifndef([_LT_AC_LANG_RC_CONFIG], [AC_DEFUN([_LT_AC_LANG_RC_CONFIG])])
7959 m4_ifndef([AC_LIBTOOL_CONFIG], [AC_DEFUN([AC_LIBTOOL_CONFIG])])
7960 m4_ifndef([_LT_AC_FILE_LTDLL_C], [AC_DEFUN([_LT_AC_FILE_LTDLL_C])])
7961
11 # Copyright 2009, Wouter Wijngaards, NLnet Labs.
22 # BSD licensed.
33 #
4 # Version 1
5 # 2009-04-23
4 # Version 2
5 # 2009-07-03
6 # Changelog
7 # - fixup LDFLAGS for empty ssl dir.
68 #
79 # Automates some of the checking constructs. Aims at portability for POSIX.
810 # Documentation for functions is below.
591593 AC_MSG_RESULT(found in $ssldir)
592594 HAVE_SSL=yes
593595 dnl assume /usr is already in the lib and dynlib paths.
594 if test "$ssldir" != "/usr"; then
596 if test "$ssldir" != "/usr" -a "$ssldir" != ""; then
595597 LDFLAGS="$LDFLAGS -L$ssldir/lib"
596598 ACX_RUNTIME_PATH_ADD([$ssldir/lib])
597599 fi
00 #! /bin/sh
11 # Attempt to guess a canonical system name.
22 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999,
3 # 2000, 2001, 2002, 2003, 2004, 2005, 2006 Free Software Foundation,
4 # Inc.
5
6 timestamp='2007-05-17'
3 # 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008
4 # Free Software Foundation, Inc.
5
6 timestamp='2008-11-15'
77
88 # This file is free software; you can redistribute it and/or modify it
99 # under the terms of the GNU General Public License as published by
5555 GNU config.guess ($timestamp)
5656
5757 Originally written by Per Bothner.
58 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005
59 Free Software Foundation, Inc.
58 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001,
59 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
6060
6161 This is free software; see the source for copying conditions. There is NO
6262 warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE."
329329 sun4*:SunOS:5.*:* | tadpole*:SunOS:5.*:*)
330330 echo sparc-sun-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
331331 exit ;;
332 i86pc:SunOS:5.*:* | ix86xen:SunOS:5.*:*)
333 echo i386-pc-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
332 i86pc:SunOS:5.*:* | i86xen:SunOS:5.*:*)
333 eval $set_cc_for_build
334 SUN_ARCH="i386"
335 # If there is a compiler, see if it is configured for 64-bit objects.
336 # Note that the Sun cc does not turn __LP64__ into 1 like gcc does.
337 # This test works for both compilers.
338 if [ "$CC_FOR_BUILD" != 'no_compiler_found' ]; then
339 if echo '\n#ifdef __amd64\nIS_64BIT_ARCH\n#endif' | \
340 (CCOPTS= $CC_FOR_BUILD -E - 2>/dev/null) | \
341 grep IS_64BIT_ARCH >/dev/null
342 then
343 SUN_ARCH="x86_64"
344 fi
345 fi
346 echo ${SUN_ARCH}-pc-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
334347 exit ;;
335348 sun4*:SunOS:6*:*)
336349 # According to config.sub, this is the proper way to canonicalize
531544 echo rs6000-ibm-aix3.2
532545 fi
533546 exit ;;
534 *:AIX:*:[45])
547 *:AIX:*:[456])
535548 IBM_CPU_ID=`/usr/sbin/lsdev -C -c processor -S available | sed 1q | awk '{ print $1 }'`
536549 if /usr/sbin/lsattr -El ${IBM_CPU_ID} | grep ' POWER' >/dev/null 2>&1; then
537550 IBM_ARCH=rs6000
792805 exit ;;
793806 *:Interix*:[3456]*)
794807 case ${UNAME_MACHINE} in
795 x86)
808 x86)
796809 echo i586-pc-interix${UNAME_RELEASE}
797810 exit ;;
798 EM64T | authenticamd)
811 EM64T | authenticamd | genuineintel)
799812 echo x86_64-unknown-interix${UNAME_RELEASE}
813 exit ;;
814 IA64)
815 echo ia64-unknown-interix${UNAME_RELEASE}
800816 exit ;;
801817 esac ;;
802818 [345]86:Windows_95:* | [345]86:Windows_98:* | [345]86:Windows_NT:*)
832848 echo ${UNAME_MACHINE}-pc-minix
833849 exit ;;
834850 arm*:Linux:*:*)
835 echo ${UNAME_MACHINE}-unknown-linux-gnu
851 eval $set_cc_for_build
852 if echo __ARM_EABI__ | $CC_FOR_BUILD -E - 2>/dev/null \
853 | grep -q __ARM_EABI__
854 then
855 echo ${UNAME_MACHINE}-unknown-linux-gnu
856 else
857 echo ${UNAME_MACHINE}-unknown-linux-gnueabi
858 fi
836859 exit ;;
837860 avr32*:Linux:*:*)
838861 echo ${UNAME_MACHINE}-unknown-linux-gnu
924947 if test "$?" = 0 ; then LIBC="libc1" ; else LIBC="" ; fi
925948 echo ${UNAME_MACHINE}-unknown-linux-gnu${LIBC}
926949 exit ;;
950 padre:Linux:*:*)
951 echo sparc-unknown-linux-gnu
952 exit ;;
927953 parisc:Linux:*:* | hppa:Linux:*:*)
928954 # Look for CPU level
929955 case `grep '^cpu[^a-z]*:' /proc/cpuinfo 2>/dev/null | cut -d' ' -f2` in
953979 x86_64:Linux:*:*)
954980 echo x86_64-unknown-linux-gnu
955981 exit ;;
956 xtensa:Linux:*:*)
957 echo xtensa-unknown-linux-gnu
982 xtensa*:Linux:*:*)
983 echo ${UNAME_MACHINE}-unknown-linux-gnu
958984 exit ;;
959985 i*86:Linux:*:*)
960986 # The BFD linker knows what the default object file format is, so
973999 ;;
9741000 a.out-i386-linux)
9751001 echo "${UNAME_MACHINE}-pc-linux-gnuaout"
976 exit ;;
977 coff-i386)
978 echo "${UNAME_MACHINE}-pc-linux-gnucoff"
9791002 exit ;;
9801003 "")
9811004 # Either a pre-BFD a.out linker (linux-gnuoldld) or
12051228 BePC:BeOS:*:*) # BeOS running on Intel PC compatible.
12061229 echo i586-pc-beos
12071230 exit ;;
1231 BePC:Haiku:*:*) # Haiku running on Intel PC compatible.
1232 echo i586-pc-haiku
1233 exit ;;
12081234 SX-4:SUPER-UX:*:*)
12091235 echo sx4-nec-superux${UNAME_RELEASE}
12101236 exit ;;
14731499 the operating system you are using. It is advised that you
14741500 download the most up to date version of the config scripts from
14751501
1476 http://savannah.gnu.org/cgi-bin/viewcvs/*checkout*/config/config/config.guess
1502 http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.guess;hb=HEAD
14771503 and
1478 http://savannah.gnu.org/cgi-bin/viewcvs/*checkout*/config/config/config.sub
1504 http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.sub;hb=HEAD
14791505
14801506 If the version you run ($0) is already up to date, please
14811507 send the following data and any information you think might be
313313 /* Define to 1 if you have the `_beginthreadex' function. */
314314 #undef HAVE__BEGINTHREADEX
315315
316 /* Define to the sub-directory in which libtool stores uninstalled libraries.
317 */
318 #undef LT_OBJDIR
319
316320 /* Define to the maximum message length to pass to syslog. */
317321 #undef MAXSYSLOGMSGLEN
318322
402406 /* Define this to enable SHA256 and SHA512 support. */
403407 #undef USE_SHA2
404408
409 /* Enable extensions on AIX 3, Interix. */
410 #ifndef _ALL_SOURCE
411 # undef _ALL_SOURCE
412 #endif
413 /* Enable GNU extensions on systems that have them. */
414 #ifndef _GNU_SOURCE
415 # undef _GNU_SOURCE
416 #endif
417 /* Enable threading extensions on Solaris. */
418 #ifndef _POSIX_PTHREAD_SEMANTICS
419 # undef _POSIX_PTHREAD_SEMANTICS
420 #endif
421 /* Enable extensions on HP NonStop. */
422 #ifndef _TANDEM_SOURCE
423 # undef _TANDEM_SOURCE
424 #endif
425 /* Enable general extensions on Solaris. */
426 #ifndef __EXTENSIONS__
427 # undef __EXTENSIONS__
428 #endif
429
430
405431 /* Whether the windows socket API is used */
406432 #undef USE_WINSOCK
407433
418444 `char[]'. */
419445 #undef YYTEXT_POINTER
420446
421 /* Define to 1 if on AIX 3.
422 System headers sometimes define this.
423 We just want to avoid a redefinition error message. */
424 #ifndef _ALL_SOURCE
425 # undef _ALL_SOURCE
426 #endif
427
428447 /* Number of bits in a file offset, on hosts where this is settable. */
429448 #undef _FILE_OFFSET_BITS
430449
433452
434453 /* Define for large files, on AIX-style hosts. */
435454 #undef _LARGE_FILES
455
456 /* Define to 1 if on MINIX. */
457 #undef _MINIX
458
459 /* Define to 2 if the system does not provide POSIX.1 features except with
460 this defined. */
461 #undef _POSIX_1_SOURCE
462
463 /* Define to 1 if you need to in order for `stat' and other things to work. */
464 #undef _POSIX_SOURCE
436465
437466 /* Define to empty if `const' does not conform to ANSI C. */
438467 #undef const
00 #! /bin/sh
11 # Configuration validation subroutine script.
22 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999,
3 # 2000, 2001, 2002, 2003, 2004, 2005, 2006 Free Software Foundation,
4 # Inc.
5
6 timestamp='2007-04-29'
3 # 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008
4 # Free Software Foundation, Inc.
5
6 timestamp='2008-09-08'
77
88 # This file is (in principle) common to ALL GNU software.
99 # The presence of a machine in this file suggests that SOME GNU software
7171 version="\
7272 GNU config.sub ($timestamp)
7373
74 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005
75 Free Software Foundation, Inc.
74 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001,
75 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
7676
7777 This is free software; see the source for copying conditions. There is NO
7878 warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE."
249249 | i370 | i860 | i960 | ia64 \
250250 | ip2k | iq2000 \
251251 | m32c | m32r | m32rle | m68000 | m68k | m88k \
252 | maxq | mb | microblaze | mcore | mep \
252 | maxq | mb | microblaze | mcore | mep | metag \
253253 | mips | mipsbe | mipseb | mipsel | mipsle \
254254 | mips16 \
255255 | mips64 | mips64el \
256 | mips64octeon | mips64octeonel \
257 | mips64orion | mips64orionel \
258 | mips64r5900 | mips64r5900el \
256259 | mips64vr | mips64vrel \
257 | mips64orion | mips64orionel \
258260 | mips64vr4100 | mips64vr4100el \
259261 | mips64vr4300 | mips64vr4300el \
260262 | mips64vr5000 | mips64vr5000el \
285287 | v850 | v850e \
286288 | we32k \
287289 | x86 | xc16x | xscale | xscalee[bl] | xstormy16 | xtensa \
288 | z8k)
290 | z8k | z80)
289291 basic_machine=$basic_machine-unknown
290292 ;;
291293 m6811 | m68hc11 | m6812 | m68hc12)
330332 | ip2k-* | iq2000-* \
331333 | m32c-* | m32r-* | m32rle-* \
332334 | m68000-* | m680[012346]0-* | m68360-* | m683?2-* | m68k-* \
333 | m88110-* | m88k-* | maxq-* | mcore-* \
335 | m88110-* | m88k-* | maxq-* | mcore-* | metag-* \
334336 | mips-* | mipsbe-* | mipseb-* | mipsel-* | mipsle-* \
335337 | mips16-* \
336338 | mips64-* | mips64el-* \
339 | mips64octeon-* | mips64octeonel-* \
340 | mips64orion-* | mips64orionel-* \
341 | mips64r5900-* | mips64r5900el-* \
337342 | mips64vr-* | mips64vrel-* \
338 | mips64orion-* | mips64orionel-* \
339343 | mips64vr4100-* | mips64vr4100el-* \
340344 | mips64vr4300-* | mips64vr4300el-* \
341345 | mips64vr5000-* | mips64vr5000el-* \
363367 | sparclite-* \
364368 | sparcv8-* | sparcv9-* | sparcv9b-* | sparcv9v-* | strongarm-* | sv1-* | sx?-* \
365369 | tahoe-* | thumb-* \
366 | tic30-* | tic4x-* | tic54x-* | tic55x-* | tic6x-* | tic80-* \
370 | tic30-* | tic4x-* | tic54x-* | tic55x-* | tic6x-* | tic80-* | tile-* \
367371 | tron-* \
368372 | v850-* | v850e-* | vax-* \
369373 | we32k-* \
370374 | x86-* | x86_64-* | xc16x-* | xps100-* | xscale-* | xscalee[bl]-* \
371 | xstormy16-* | xtensa-* \
375 | xstormy16-* | xtensa*-* \
372376 | ymp-* \
373 | z8k-*)
377 | z8k-* | z80-*)
378 ;;
379 # Recognize the basic CPU types without company name, with glob match.
380 xtensa*)
381 basic_machine=$basic_machine-unknown
374382 ;;
375383 # Recognize the various machine names and aliases which stand
376384 # for a CPU type and a company and sometimes even an OS.
442450 basic_machine=ns32k-sequent
443451 os=-dynix
444452 ;;
453 blackfin)
454 basic_machine=bfin-unknown
455 os=-linux
456 ;;
457 blackfin-*)
458 basic_machine=bfin-`echo $basic_machine | sed 's/^[^-]*-//'`
459 os=-linux
460 ;;
445461 c90)
446462 basic_machine=c90-cray
447463 os=-unicos
448464 ;;
465 cegcc)
466 basic_machine=arm-unknown
467 os=-cegcc
468 ;;
449469 convex-c1)
450470 basic_machine=c1-convex
451471 os=-bsd
474494 basic_machine=craynv-cray
475495 os=-unicosmp
476496 ;;
477 cr16c)
478 basic_machine=cr16c-unknown
497 cr16)
498 basic_machine=cr16-unknown
479499 os=-elf
480500 ;;
481501 crds | unos)
512532 delta88)
513533 basic_machine=m88k-motorola
514534 os=-sysv3
535 ;;
536 dicos)
537 basic_machine=i686-pc
538 os=-dicos
515539 ;;
516540 djgpp)
517541 basic_machine=i586-pc
666690 isi68 | isi)
667691 basic_machine=m68k-isi
668692 os=-sysv
693 ;;
694 m68knommu)
695 basic_machine=m68k-unknown
696 os=-linux
697 ;;
698 m68knommu-*)
699 basic_machine=m68k-`echo $basic_machine | sed 's/^[^-]*-//'`
700 os=-linux
669701 ;;
670702 m88k-omron*)
671703 basic_machine=m88k-omron
812844 basic_machine=i860-intel
813845 os=-osf
814846 ;;
847 parisc)
848 basic_machine=hppa-unknown
849 os=-linux
850 ;;
851 parisc-*)
852 basic_machine=hppa-`echo $basic_machine | sed 's/^[^-]*-//'`
853 os=-linux
854 ;;
815855 pbd)
816856 basic_machine=sparc-tti
817857 ;;
10201060 basic_machine=tic6x-unknown
10211061 os=-coff
10221062 ;;
1063 tile*)
1064 basic_machine=tile-unknown
1065 os=-linux-gnu
1066 ;;
10231067 tx39)
10241068 basic_machine=mipstx39-unknown
10251069 ;;
10931137 ;;
10941138 z8k-*-coff)
10951139 basic_machine=z8k-unknown
1140 os=-sim
1141 ;;
1142 z80-*-coff)
1143 basic_machine=z80-unknown
10961144 os=-sim
10971145 ;;
10981146 none)
12151263 | -bosx* | -nextstep* | -cxux* | -aout* | -elf* | -oabi* \
12161264 | -ptx* | -coff* | -ecoff* | -winnt* | -domain* | -vsta* \
12171265 | -udi* | -eabi* | -lites* | -ieee* | -go32* | -aux* \
1218 | -chorusos* | -chorusrdb* \
1266 | -chorusos* | -chorusrdb* | -cegcc* \
12191267 | -cygwin* | -pe* | -psos* | -moss* | -proelf* | -rtems* \
12201268 | -mingw32* | -linux-gnu* | -linux-newlib* | -linux-uclibc* \
12211269 | -uxpv* | -beos* | -mpeix* | -udk* \
13551403 -zvmoe)
13561404 os=-zvmoe
13571405 ;;
1406 -dicos*)
1407 os=-dicos
1408 ;;
13581409 -none)
13591410 ;;
13601411 *)
+9376
-14423
configure less more
00 #! /bin/sh
11 # Guess values for system-dependent variables and create Makefiles.
2 # Generated by GNU Autoconf 2.61 for unbound 1.3.0.
2 # Generated by GNU Autoconf 2.63 for unbound 1.3.2.
33 #
44 # Report bugs to <unbound-bugs@nlnetlabs.nl>.
55 #
66 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
7 # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
7 # 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
88 # This configure script is free software; the Free Software Foundation
99 # gives unlimited permission to copy, distribute and modify it.
1010 ## --------------------- ##
1616 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
1717 emulate sh
1818 NULLCMD=:
19 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
19 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
2020 # is contrary to our usage. Disable this feature.
2121 alias -g '${1+"$@"}'='"$@"'
2222 setopt NO_GLOB_SUBST
3838 as_cr_digits='0123456789'
3939 as_cr_alnum=$as_cr_Letters$as_cr_digits
4040
41 as_nl='
42 '
43 export as_nl
44 # Printing a long string crashes Solaris 7 /usr/bin/printf.
45 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
46 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
47 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
48 if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
49 as_echo='printf %s\n'
50 as_echo_n='printf %s'
51 else
52 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
53 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
54 as_echo_n='/usr/ucb/echo -n'
55 else
56 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
57 as_echo_n_body='eval
58 arg=$1;
59 case $arg in
60 *"$as_nl"*)
61 expr "X$arg" : "X\\(.*\\)$as_nl";
62 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
63 esac;
64 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
65 '
66 export as_echo_n_body
67 as_echo_n='sh -c $as_echo_n_body as_echo'
68 fi
69 export as_echo_body
70 as_echo='sh -c $as_echo_body as_echo'
71 fi
72
4173 # The user is always right.
4274 if test "${PATH_SEPARATOR+set}" != set; then
43 echo "#! /bin/sh" >conf$$.sh
44 echo "exit 0" >>conf$$.sh
45 chmod +x conf$$.sh
46 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
47 PATH_SEPARATOR=';'
48 else
49 PATH_SEPARATOR=:
50 fi
51 rm -f conf$$.sh
75 PATH_SEPARATOR=:
76 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
77 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
78 PATH_SEPARATOR=';'
79 }
5280 fi
5381
5482 # Support unset when possible.
6492 # there to prevent editors from complaining about space-tab.
6593 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
6694 # splitting by setting IFS to empty value.)
67 as_nl='
68 '
6995 IFS=" "" $as_nl"
7096
7197 # Find who we are. Look in the path if we contain no directory separator.
88114 as_myself=$0
89115 fi
90116 if test ! -f "$as_myself"; then
91 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
117 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
92118 { (exit 1); exit 1; }
93119 fi
94120
101127 PS4='+ '
102128
103129 # NLS nuisances.
104 for as_var in \
105 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
106 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
107 LC_TELEPHONE LC_TIME
108 do
109 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
110 eval $as_var=C; export $as_var
111 else
112 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
113 fi
114 done
130 LC_ALL=C
131 export LC_ALL
132 LANGUAGE=C
133 export LANGUAGE
115134
116135 # Required to use basename.
117136 if expr a : '\(a\)' >/dev/null 2>&1 &&
133152 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
134153 X"$0" : 'X\(//\)$' \| \
135154 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
136 echo X/"$0" |
155 $as_echo X/"$0" |
137156 sed '/^.*\/\([^/][^/]*\)\/*$/{
138157 s//\1/
139158 q
159178 as_have_required=no
160179 fi
161180
162 if test $as_have_required = yes && (eval ":
181 if test $as_have_required = yes && (eval ":
163182 (as_func_return () {
164183 (exit \$1)
165184 }
241260 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
242261 emulate sh
243262 NULLCMD=:
244 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
263 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
245264 # is contrary to our usage. Disable this feature.
246265 alias -g '${1+"$@"}'='"$@"'
247266 setopt NO_GLOB_SUBST
262281 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
263282 emulate sh
264283 NULLCMD=:
265 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
284 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
266285 # is contrary to our usage. Disable this feature.
267286 alias -g '${1+"$@"}'='"$@"'
268287 setopt NO_GLOB_SUBST
342361
343362 if test "x$CONFIG_SHELL" != x; then
344363 for as_var in BASH_ENV ENV
345 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
346 done
347 export CONFIG_SHELL
348 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
364 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
365 done
366 export CONFIG_SHELL
367 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
349368 fi
350369
351370
414433
415434 test \$exitcode = 0") || {
416435 echo No shell found that supports shell functions.
417 echo Please tell autoconf@gnu.org about your system,
418 echo including any error possibly output before this
419 echo message
436 echo Please tell bug-autoconf@gnu.org about your system,
437 echo including any error possibly output before this message.
438 echo This can help us improve future autoconf versions.
439 echo Configuration will now proceed without shell functions.
420440 }
421441
422442
452472 s/-\n.*//
453473 ' >$as_me.lineno &&
454474 chmod +x "$as_me.lineno" ||
455 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
475 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
456476 { (exit 1); exit 1; }; }
457477
458478 # Don't try to exec as it changes $[0], causing all sort of problems
480500 *)
481501 ECHO_N='-n';;
482502 esac
483
484503 if expr a : '\(a\)' >/dev/null 2>&1 &&
485504 test "X`expr 00001 : '.*\(...\)'`" = X001; then
486505 as_expr=expr
493512 rm -f conf$$.dir/conf$$.file
494513 else
495514 rm -f conf$$.dir
496 mkdir conf$$.dir
497 fi
498 echo >conf$$.file
499 if ln -s conf$$.file conf$$ 2>/dev/null; then
500 as_ln_s='ln -s'
501 # ... but there are two gotchas:
502 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
503 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
504 # In both cases, we have to default to `cp -p'.
505 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
515 mkdir conf$$.dir 2>/dev/null
516 fi
517 if (echo >conf$$.file) 2>/dev/null; then
518 if ln -s conf$$.file conf$$ 2>/dev/null; then
519 as_ln_s='ln -s'
520 # ... but there are two gotchas:
521 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
522 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
523 # In both cases, we have to default to `cp -p'.
524 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
525 as_ln_s='cp -p'
526 elif ln conf$$.file conf$$ 2>/dev/null; then
527 as_ln_s=ln
528 else
506529 as_ln_s='cp -p'
507 elif ln conf$$.file conf$$ 2>/dev/null; then
508 as_ln_s=ln
530 fi
509531 else
510532 as_ln_s='cp -p'
511533 fi
530552 as_test_x='
531553 eval sh -c '\''
532554 if test -d "$1"; then
533 test -d "$1/.";
555 test -d "$1/.";
534556 else
535557 case $1 in
536 -*)set "./$1";;
558 -*)set "./$1";;
537559 esac;
538560 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
539561 ???[sx]*):;;*)false;;esac;fi
554576 # Check that we are running under the correct shell.
555577 SHELL=${CONFIG_SHELL-/bin/sh}
556578
557 case X$ECHO in
579 case X$lt_ECHO in
558580 X*--fallback-echo)
559581 # Remove one level of quotation (which was required for Make).
560 ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
582 ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','`
561583 ;;
562584 esac
563585
564 echo=${ECHO-echo}
586 ECHO=${lt_ECHO-echo}
565587 if test "X$1" = X--no-reexec; then
566588 # Discard the --no-reexec flag, and continue.
567589 shift
568590 elif test "X$1" = X--fallback-echo; then
569591 # Avoid inline document here, it may be left over
570592 :
571 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
572 # Yippee, $echo works!
593 elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
594 # Yippee, $ECHO works!
573595 :
574596 else
575597 # Restart under the correct shell.
579601 if test "X$1" = X--fallback-echo; then
580602 # used as fallback echo
581603 shift
582 cat <<EOF
604 cat <<_LT_EOF
583605 $*
584 EOF
606 _LT_EOF
585607 exit 0
586608 fi
587609
589611 # if CDPATH is set.
590612 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
591613
592 if test -z "$ECHO"; then
593 if test "X${echo_test_string+set}" != Xset; then
594 # find a string as large as possible, as long as the shell can cope with it
595 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
596 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
597 if (echo_test_string=`eval $cmd`) 2>/dev/null &&
598 echo_test_string=`eval $cmd` &&
599 (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
600 then
601 break
602 fi
603 done
604 fi
605
606 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
607 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
608 test "X$echo_testing_string" = "X$echo_test_string"; then
609 :
610 else
611 # The Solaris, AIX, and Digital Unix default echo programs unquote
612 # backslashes. This makes it impossible to quote backslashes using
613 # echo "$something" | sed 's/\\/\\\\/g'
614 #
615 # So, first we look for a working echo in the user's PATH.
616
617 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
618 for dir in $PATH /usr/ucb; do
614 if test -z "$lt_ECHO"; then
615 if test "X${echo_test_string+set}" != Xset; then
616 # find a string as large as possible, as long as the shell can cope with it
617 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
618 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
619 if { echo_test_string=`eval $cmd`; } 2>/dev/null &&
620 { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null
621 then
622 break
623 fi
624 done
625 fi
626
627 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
628 echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
629 test "X$echo_testing_string" = "X$echo_test_string"; then
630 :
631 else
632 # The Solaris, AIX, and Digital Unix default echo programs unquote
633 # backslashes. This makes it impossible to quote backslashes using
634 # echo "$something" | sed 's/\\/\\\\/g'
635 #
636 # So, first we look for a working echo in the user's PATH.
637
638 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
639 for dir in $PATH /usr/ucb; do
640 IFS="$lt_save_ifs"
641 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
642 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
643 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
644 test "X$echo_testing_string" = "X$echo_test_string"; then
645 ECHO="$dir/echo"
646 break
647 fi
648 done
619649 IFS="$lt_save_ifs"
620 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
621 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
622 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
623 test "X$echo_testing_string" = "X$echo_test_string"; then
624 echo="$dir/echo"
625 break
626 fi
627 done
628 IFS="$lt_save_ifs"
629
630 if test "X$echo" = Xecho; then
631 # We didn't find a better echo, so look for alternatives.
632 if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
633 echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
634 test "X$echo_testing_string" = "X$echo_test_string"; then
635 # This shell has a builtin print -r that does the trick.
636 echo='print -r'
637 elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
638 test "X$CONFIG_SHELL" != X/bin/ksh; then
639 # If we have ksh, try running configure again with it.
640 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
641 export ORIGINAL_CONFIG_SHELL
642 CONFIG_SHELL=/bin/ksh
643 export CONFIG_SHELL
644 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
645 else
646 # Try using printf.
647 echo='printf %s\n'
648 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
649 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
650 test "X$echo_testing_string" = "X$echo_test_string"; then
651 # Cool, printf works
652 :
653 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
654 test "X$echo_testing_string" = 'X\t' &&
655 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
650
651 if test "X$ECHO" = Xecho; then
652 # We didn't find a better echo, so look for alternatives.
653 if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
654 echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
655 test "X$echo_testing_string" = "X$echo_test_string"; then
656 # This shell has a builtin print -r that does the trick.
657 ECHO='print -r'
658 elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } &&
659 test "X$CONFIG_SHELL" != X/bin/ksh; then
660 # If we have ksh, try running configure again with it.
661 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
662 export ORIGINAL_CONFIG_SHELL
663 CONFIG_SHELL=/bin/ksh
664 export CONFIG_SHELL
665 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
666 else
667 # Try using printf.
668 ECHO='printf %s\n'
669 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
670 echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
656671 test "X$echo_testing_string" = "X$echo_test_string"; then
657 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
658 export CONFIG_SHELL
659 SHELL="$CONFIG_SHELL"
660 export SHELL
661 echo="$CONFIG_SHELL $0 --fallback-echo"
662 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
663 test "X$echo_testing_string" = 'X\t' &&
664 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
665 test "X$echo_testing_string" = "X$echo_test_string"; then
666 echo="$CONFIG_SHELL $0 --fallback-echo"
667 else
668 # maybe with a smaller string...
669 prev=:
670
671 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
672 if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
673 then
674 break
672 # Cool, printf works
673 :
674 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
675 test "X$echo_testing_string" = 'X\t' &&
676 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
677 test "X$echo_testing_string" = "X$echo_test_string"; then
678 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
679 export CONFIG_SHELL
680 SHELL="$CONFIG_SHELL"
681 export SHELL
682 ECHO="$CONFIG_SHELL $0 --fallback-echo"
683 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
684 test "X$echo_testing_string" = 'X\t' &&
685 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
686 test "X$echo_testing_string" = "X$echo_test_string"; then
687 ECHO="$CONFIG_SHELL $0 --fallback-echo"
688 else
689 # maybe with a smaller string...
690 prev=:
691
692 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
693 if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null
694 then
695 break
696 fi
697 prev="$cmd"
698 done
699
700 if test "$prev" != 'sed 50q "$0"'; then
701 echo_test_string=`eval $prev`
702 export echo_test_string
703 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
704 else
705 # Oops. We lost completely, so just stick with echo.
706 ECHO=echo
675707 fi
676 prev="$cmd"
677 done
678
679 if test "$prev" != 'sed 50q "$0"'; then
680 echo_test_string=`eval $prev`
681 export echo_test_string
682 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
683 else
684 # Oops. We lost completely, so just stick with echo.
685 echo=echo
686 fi
708 fi
687709 fi
688710 fi
689711 fi
690712 fi
691 fi
692713
693714 # Copy echo and quote the copy suitably for passing to libtool from
694715 # the Makefile, instead of quoting the original, which is used later.
695 ECHO=$echo
696 if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
697 ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
716 lt_ECHO=$ECHO
717 if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
718 lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
698719 fi
699720
700721
723744 # Identity of this package.
724745 PACKAGE_NAME='unbound'
725746 PACKAGE_TARNAME='unbound'
726 PACKAGE_VERSION='1.3.0'
727 PACKAGE_STRING='unbound 1.3.0'
747 PACKAGE_VERSION='1.3.2'
748 PACKAGE_STRING='unbound 1.3.2'
728749 PACKAGE_BUGREPORT='unbound-bugs@nlnetlabs.nl'
729750
730751 # Factoring default headers for most tests.
763784 # include <unistd.h>
764785 #endif"
765786
766 ac_subst_vars='SHELL
767 PATH_SEPARATOR
768 PACKAGE_NAME
769 PACKAGE_TARNAME
770 PACKAGE_VERSION
771 PACKAGE_STRING
772 PACKAGE_BUGREPORT
773 exec_prefix
774 prefix
775 program_transform_name
776 bindir
777 sbindir
778 libexecdir
779 datarootdir
780 datadir
781 sysconfdir
782 sharedstatedir
783 localstatedir
784 includedir
785 oldincludedir
786 docdir
787 infodir
788 htmldir
789 dvidir
790 pdfdir
791 psdir
792 libdir
793 localedir
794 mandir
795 DEFS
796 ECHO_C
797 ECHO_N
798 ECHO_T
799 LIBS
800 build_alias
801 host_alias
802 target_alias
803 LIBUNBOUND_CURRENT
804 LIBUNBOUND_REVISION
805 LIBUNBOUND_AGE
806 CC
807 CFLAGS
808 LDFLAGS
809 CPPFLAGS
810 ac_ct_CC
811 EXEEXT
812 OBJEXT
813 CPP
814 GREP
815 EGREP
816 ub_conf_file
817 UNBOUND_RUN_DIR
818 UNBOUND_CHROOT_DIR
819 UNBOUND_SHARE_DIR
820 UNBOUND_PIDFILE
821 UNBOUND_USERNAME
822 DEPFLAG
823 debug_enabled
824 LEX
825 LEX_OUTPUT_ROOT
826 LEXLIB
827 YACC
828 YFLAGS
829 doxygen
830 libtool
831 build
832 build_cpu
833 build_vendor
834 build_os
835 host
836 host_cpu
837 host_vendor
838 host_os
839 AR
840 SED
841 LN_S
842 ECHO
787 enable_option_checking=no
788 ac_subst_vars='LTLIBOBJS
789 subdirs
790 ldnsdir
791 UB_ON_WINDOWS
792 LIBOBJS
793 CHECKLOCK_SRC
794 staticexe
795 RUNTIME_PATH
796 HAVE_SSL
797 WITH_PYUNBOUND
798 WITH_PYTHONMODULE
799 swig
800 SWIG_LIB
801 SWIG
802 PYTHON_EXTRA_LDFLAGS
803 PYTHON_EXTRA_LIBS
804 PYTHON_SITE_PKG
805 PYTHON_LDFLAGS
806 PYTHON_CPPFLAGS
807 PYTHON
808 PYTHON_VERSION
809 PTHREAD_CFLAGS
810 PTHREAD_LIBS
811 PTHREAD_CC
812 acx_pthread_config
813 OTOOL64
814 OTOOL
815 LIPO
816 NMEDIT
817 DSYMUTIL
818 lt_ECHO
843819 RANLIB
844820 STRIP
821 OBJDUMP
822 LN_S
823 NM
824 ac_ct_DUMPBIN
825 DUMPBIN
826 LD
827 FGREP
828 SED
845829 LIBTOOL
846 acx_pthread_config
847 PTHREAD_CC
848 PTHREAD_LIBS
849 PTHREAD_CFLAGS
850 PYTHON_VERSION
851 PYTHON
852 PYTHON_CPPFLAGS
853 PYTHON_LDFLAGS
854 PYTHON_SITE_PKG
855 PYTHON_EXTRA_LIBS
856 PYTHON_EXTRA_LDFLAGS
857 SWIG
858 SWIG_LIB
859 swig
860 WITH_PYTHONMODULE
861 WITH_PYUNBOUND
862 HAVE_SSL
863 RUNTIME_PATH
864 staticexe
865 CHECKLOCK_SRC
866 LIBOBJS
867 UB_ON_WINDOWS
868 ldnsdir
869 subdirs
870 LTLIBOBJS'
830 AR
831 host_os
832 host_vendor
833 host_cpu
834 host
835 build_os
836 build_vendor
837 build_cpu
838 build
839 libtool
840 doxygen
841 YFLAGS
842 YACC
843 LEXLIB
844 LEX_OUTPUT_ROOT
845 LEX
846 debug_enabled
847 DEPFLAG
848 UNBOUND_USERNAME
849 UNBOUND_PIDFILE
850 UNBOUND_SHARE_DIR
851 UNBOUND_CHROOT_DIR
852 UNBOUND_RUN_DIR
853 ub_conf_file
854 EGREP
855 GREP
856 CPP
857 OBJEXT
858 EXEEXT
859 ac_ct_CC
860 CPPFLAGS
861 LDFLAGS
862 CFLAGS
863 CC
864 LIBUNBOUND_AGE
865 LIBUNBOUND_REVISION
866 LIBUNBOUND_CURRENT
867 target_alias
868 host_alias
869 build_alias
870 LIBS
871 ECHO_T
872 ECHO_N
873 ECHO_C
874 DEFS
875 mandir
876 localedir
877 libdir
878 psdir
879 pdfdir
880 dvidir
881 htmldir
882 infodir
883 docdir
884 oldincludedir
885 includedir
886 localstatedir
887 sharedstatedir
888 sysconfdir
889 datadir
890 datarootdir
891 libexecdir
892 sbindir
893 bindir
894 program_transform_name
895 prefix
896 exec_prefix
897 PACKAGE_BUGREPORT
898 PACKAGE_STRING
899 PACKAGE_VERSION
900 PACKAGE_TARNAME
901 PACKAGE_NAME
902 PATH_SEPARATOR
903 SHELL'
871904 ac_subst_files=''
905 ac_user_opts='
906 enable_option_checking
907 with_conf_file
908 with_run_dir
909 with_chroot_dir
910 with_share_dir
911 with_pidfile
912 with_username
913 enable_debug
914 enable_shared
915 enable_static
916 with_pic
917 enable_fast_install
918 with_gnu_ld
919 enable_libtool_lock
920 enable_rpath
921 with_pthreads
922 with_solaris_threads
923 with_pyunbound
924 with_pythonmodule
925 with_ssl
926 enable_sha2
927 with_libevent
928 enable_staticexe
929 enable_lock_checks
930 enable_alloc_checks
931 enable_largefile
932 with_ldns
933 with_ldns_builtin
934 '
872935 ac_precious_vars='build_alias
873936 host_alias
874937 target_alias
886949 # Initialize some variables set by options.
887950 ac_init_help=
888951 ac_init_version=false
952 ac_unrecognized_opts=
953 ac_unrecognized_sep=
889954 # The variables have the same names as the options, with
890955 # dashes changed to underlines.
891956 cache_file=/dev/null
9841049 datarootdir=$ac_optarg ;;
9851050
9861051 -disable-* | --disable-*)
987 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1052 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
9881053 # Reject names that are not valid shell variable names.
989 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
990 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1054 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1055 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
9911056 { (exit 1); exit 1; }; }
992 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
993 eval enable_$ac_feature=no ;;
1057 ac_useropt_orig=$ac_useropt
1058 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1059 case $ac_user_opts in
1060 *"
1061 "enable_$ac_useropt"
1062 "*) ;;
1063 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1064 ac_unrecognized_sep=', ';;
1065 esac
1066 eval enable_$ac_useropt=no ;;
9941067
9951068 -docdir | --docdir | --docdi | --doc | --do)
9961069 ac_prev=docdir ;;
10031076 dvidir=$ac_optarg ;;
10041077
10051078 -enable-* | --enable-*)
1006 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1079 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
10071080 # Reject names that are not valid shell variable names.
1008 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1009 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1081 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1082 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
10101083 { (exit 1); exit 1; }; }
1011 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1012 eval enable_$ac_feature=\$ac_optarg ;;
1084 ac_useropt_orig=$ac_useropt
1085 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1086 case $ac_user_opts in
1087 *"
1088 "enable_$ac_useropt"
1089 "*) ;;
1090 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1091 ac_unrecognized_sep=', ';;
1092 esac
1093 eval enable_$ac_useropt=\$ac_optarg ;;
10131094
10141095 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
10151096 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
12001281 ac_init_version=: ;;
12011282
12021283 -with-* | --with-*)
1203 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1284 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
12041285 # Reject names that are not valid shell variable names.
1205 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1206 { echo "$as_me: error: invalid package name: $ac_package" >&2
1286 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1287 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
12071288 { (exit 1); exit 1; }; }
1208 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1209 eval with_$ac_package=\$ac_optarg ;;
1289 ac_useropt_orig=$ac_useropt
1290 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1291 case $ac_user_opts in
1292 *"
1293 "with_$ac_useropt"
1294 "*) ;;
1295 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1296 ac_unrecognized_sep=', ';;
1297 esac
1298 eval with_$ac_useropt=\$ac_optarg ;;
12101299
12111300 -without-* | --without-*)
1212 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1301 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
12131302 # Reject names that are not valid shell variable names.
1214 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1215 { echo "$as_me: error: invalid package name: $ac_package" >&2
1303 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1304 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
12161305 { (exit 1); exit 1; }; }
1217 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1218 eval with_$ac_package=no ;;
1306 ac_useropt_orig=$ac_useropt
1307 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1308 case $ac_user_opts in
1309 *"
1310 "with_$ac_useropt"
1311 "*) ;;
1312 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1313 ac_unrecognized_sep=', ';;
1314 esac
1315 eval with_$ac_useropt=no ;;
12191316
12201317 --x)
12211318 # Obsolete; use --with-x.
12351332 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
12361333 x_libraries=$ac_optarg ;;
12371334
1238 -*) { echo "$as_me: error: unrecognized option: $ac_option
1335 -*) { $as_echo "$as_me: error: unrecognized option: $ac_option
12391336 Try \`$0 --help' for more information." >&2
12401337 { (exit 1); exit 1; }; }
12411338 ;;
12441341 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
12451342 # Reject names that are not valid shell variable names.
12461343 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1247 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1344 { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2
12481345 { (exit 1); exit 1; }; }
12491346 eval $ac_envvar=\$ac_optarg
12501347 export $ac_envvar ;;
12511348
12521349 *)
12531350 # FIXME: should be removed in autoconf 3.0.
1254 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1351 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
12551352 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1256 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1353 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
12571354 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
12581355 ;;
12591356
12621359
12631360 if test -n "$ac_prev"; then
12641361 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1265 { echo "$as_me: error: missing argument to $ac_option" >&2
1362 { $as_echo "$as_me: error: missing argument to $ac_option" >&2
12661363 { (exit 1); exit 1; }; }
12671364 fi
12681365
1269 # Be sure to have absolute directory names.
1366 if test -n "$ac_unrecognized_opts"; then
1367 case $enable_option_checking in
1368 no) ;;
1369 fatal) { $as_echo "$as_me: error: unrecognized options: $ac_unrecognized_opts" >&2
1370 { (exit 1); exit 1; }; } ;;
1371 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1372 esac
1373 fi
1374
1375 # Check all directory arguments for consistency.
12701376 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
12711377 datadir sysconfdir sharedstatedir localstatedir includedir \
12721378 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
12731379 libdir localedir mandir
12741380 do
12751381 eval ac_val=\$$ac_var
1382 # Remove trailing slashes.
1383 case $ac_val in
1384 */ )
1385 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1386 eval $ac_var=\$ac_val;;
1387 esac
1388 # Be sure to have absolute directory names.
12761389 case $ac_val in
12771390 [\\/$]* | ?:[\\/]* ) continue;;
12781391 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
12791392 esac
1280 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1393 { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
12811394 { (exit 1); exit 1; }; }
12821395 done
12831396
12921405 if test "x$host_alias" != x; then
12931406 if test "x$build_alias" = x; then
12941407 cross_compiling=maybe
1295 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1408 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
12961409 If a cross compiler is detected then cross compile mode will be used." >&2
12971410 elif test "x$build_alias" != "x$host_alias"; then
12981411 cross_compiling=yes
13081421 ac_pwd=`pwd` && test -n "$ac_pwd" &&
13091422 ac_ls_di=`ls -di .` &&
13101423 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1311 { echo "$as_me: error: Working directory cannot be determined" >&2
1424 { $as_echo "$as_me: error: working directory cannot be determined" >&2
13121425 { (exit 1); exit 1; }; }
13131426 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1314 { echo "$as_me: error: pwd does not report name of working directory" >&2
1427 { $as_echo "$as_me: error: pwd does not report name of working directory" >&2
13151428 { (exit 1); exit 1; }; }
13161429
13171430
13191432 if test -z "$srcdir"; then
13201433 ac_srcdir_defaulted=yes
13211434 # Try the directory containing this script, then the parent directory.
1322 ac_confdir=`$as_dirname -- "$0" ||
1323 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1324 X"$0" : 'X\(//\)[^/]' \| \
1325 X"$0" : 'X\(//\)$' \| \
1326 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1327 echo X"$0" |
1435 ac_confdir=`$as_dirname -- "$as_myself" ||
1436 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1437 X"$as_myself" : 'X\(//\)[^/]' \| \
1438 X"$as_myself" : 'X\(//\)$' \| \
1439 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1440 $as_echo X"$as_myself" |
13281441 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13291442 s//\1/
13301443 q
13511464 fi
13521465 if test ! -r "$srcdir/$ac_unique_file"; then
13531466 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1354 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1467 { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
13551468 { (exit 1); exit 1; }; }
13561469 fi
13571470 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
13581471 ac_abs_confdir=`(
1359 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1472 cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2
13601473 { (exit 1); exit 1; }; }
13611474 pwd)`
13621475 # When building in place, set srcdir=.
13831496 # Omit some internal or obsolete options to make the list less imposing.
13841497 # This message is too long to be a string in the A/UX 3.1 sh.
13851498 cat <<_ACEOF
1386 \`configure' configures unbound 1.3.0 to adapt to many kinds of systems.
1499 \`configure' configures unbound 1.3.2 to adapt to many kinds of systems.
13871500
13881501 Usage: $0 [OPTION]... [VAR=VALUE]...
13891502
14051518
14061519 Installation directories:
14071520 --prefix=PREFIX install architecture-independent files in PREFIX
1408 [$ac_default_prefix]
1521 [$ac_default_prefix]
14091522 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1410 [PREFIX]
1523 [PREFIX]
14111524
14121525 By default, \`make install' will install all the files in
14131526 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
14171530 For better control, use the options below.
14181531
14191532 Fine tuning of the installation directories:
1420 --bindir=DIR user executables [EPREFIX/bin]
1421 --sbindir=DIR system admin executables [EPREFIX/sbin]
1422 --libexecdir=DIR program executables [EPREFIX/libexec]
1423 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1424 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1425 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1426 --libdir=DIR object code libraries [EPREFIX/lib]
1427 --includedir=DIR C header files [PREFIX/include]
1428 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1429 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1430 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1431 --infodir=DIR info documentation [DATAROOTDIR/info]
1432 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1433 --mandir=DIR man documentation [DATAROOTDIR/man]
1434 --docdir=DIR documentation root [DATAROOTDIR/doc/unbound]
1435 --htmldir=DIR html documentation [DOCDIR]
1436 --dvidir=DIR dvi documentation [DOCDIR]
1437 --pdfdir=DIR pdf documentation [DOCDIR]
1438 --psdir=DIR ps documentation [DOCDIR]
1533 --bindir=DIR user executables [EPREFIX/bin]
1534 --sbindir=DIR system admin executables [EPREFIX/sbin]
1535 --libexecdir=DIR program executables [EPREFIX/libexec]
1536 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1537 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1538 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1539 --libdir=DIR object code libraries [EPREFIX/lib]
1540 --includedir=DIR C header files [PREFIX/include]
1541 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1542 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1543 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1544 --infodir=DIR info documentation [DATAROOTDIR/info]
1545 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1546 --mandir=DIR man documentation [DATAROOTDIR/man]
1547 --docdir=DIR documentation root [DATAROOTDIR/doc/unbound]
1548 --htmldir=DIR html documentation [DOCDIR]
1549 --dvidir=DIR dvi documentation [DOCDIR]
1550 --pdfdir=DIR pdf documentation [DOCDIR]
1551 --psdir=DIR ps documentation [DOCDIR]
14391552 _ACEOF
14401553
14411554 cat <<\_ACEOF
14481561
14491562 if test -n "$ac_init_help"; then
14501563 case $ac_init_help in
1451 short | recursive ) echo "Configuration of unbound 1.3.0:";;
1564 short | recursive ) echo "Configuration of unbound 1.3.2:";;
14521565 esac
14531566 cat <<\_ACEOF
14541567
14551568 Optional Features:
1569 --disable-option-checking ignore unrecognized --enable/--with options
14561570 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
14571571 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
14581572 --enable-debug Enable debug warnings, asserts,
14861600 run-dir/unbound.pid)
14871601 --with-username=user set default user that unbound changes to (default
14881602 user is unbound)
1489 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
14901603 --with-pic try to use only PIC/non-PIC objects [default=use
14911604 both]
1492 --with-tags[=TAGS] include additional configurations [automatic]
1605 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
14931606 --with-pthreads use pthreads library, or --without-pthreads to
14941607 disable threading support.
14951608 --with-solaris-threads use solaris native thread library.
15381651 if test "$ac_init_help" = "recursive"; then
15391652 # If there are subdirs, report their specific --help.
15401653 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1541 test -d "$ac_dir" || continue
1654 test -d "$ac_dir" ||
1655 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1656 continue
15421657 ac_builddir=.
15431658
15441659 case "$ac_dir" in
15451660 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
15461661 *)
1547 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1662 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
15481663 # A ".." for each directory in $ac_dir_suffix.
1549 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1664 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
15501665 case $ac_top_builddir_sub in
15511666 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
15521667 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
15821697 echo &&
15831698 $SHELL "$ac_srcdir/configure" --help=recursive
15841699 else
1585 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1700 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
15861701 fi || ac_status=$?
15871702 cd "$ac_pwd" || { ac_status=$?; break; }
15881703 done
15911706 test -n "$ac_init_help" && exit $ac_status
15921707 if $ac_init_version; then
15931708 cat <<\_ACEOF
1594 unbound configure 1.3.0
1595 generated by GNU Autoconf 2.61
1709 unbound configure 1.3.2
1710 generated by GNU Autoconf 2.63
15961711
15971712 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1598 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1713 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
15991714 This configure script is free software; the Free Software Foundation
16001715 gives unlimited permission to copy, distribute and modify it.
16011716 _ACEOF
16051720 This file contains any messages produced by compilers while
16061721 running configure, to aid debugging if configure makes a mistake.
16071722
1608 It was created by unbound $as_me 1.3.0, which was
1609 generated by GNU Autoconf 2.61. Invocation command line was
1723 It was created by unbound $as_me 1.3.2, which was
1724 generated by GNU Autoconf 2.63. Invocation command line was
16101725
16111726 $ $0 $@
16121727
16421757 do
16431758 IFS=$as_save_IFS
16441759 test -z "$as_dir" && as_dir=.
1645 echo "PATH: $as_dir"
1760 $as_echo "PATH: $as_dir"
16461761 done
16471762 IFS=$as_save_IFS
16481763
16771792 | -silent | --silent | --silen | --sile | --sil)
16781793 continue ;;
16791794 *\'*)
1680 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1795 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
16811796 esac
16821797 case $ac_pass in
16831798 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
17291844 case $ac_val in #(
17301845 *${as_nl}*)
17311846 case $ac_var in #(
1732 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1733 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1847 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
1848 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
17341849 esac
17351850 case $ac_var in #(
17361851 _ | IFS | as_nl) ;; #(
1852 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
17371853 *) $as_unset $ac_var ;;
17381854 esac ;;
17391855 esac
17631879 do
17641880 eval ac_val=\$$ac_var
17651881 case $ac_val in
1766 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1882 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
17671883 esac
1768 echo "$ac_var='\''$ac_val'\''"
1884 $as_echo "$ac_var='\''$ac_val'\''"
17691885 done | sort
17701886 echo
17711887
17801896 do
17811897 eval ac_val=\$$ac_var
17821898 case $ac_val in
1783 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1899 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
17841900 esac
1785 echo "$ac_var='\''$ac_val'\''"
1901 $as_echo "$ac_var='\''$ac_val'\''"
17861902 done | sort
17871903 echo
17881904 fi
17981914 echo
17991915 fi
18001916 test "$ac_signal" != 0 &&
1801 echo "$as_me: caught signal $ac_signal"
1802 echo "$as_me: exit $exit_status"
1917 $as_echo "$as_me: caught signal $ac_signal"
1918 $as_echo "$as_me: exit $exit_status"
18031919 } >&5
18041920 rm -f core *.core core.conftest.* &&
18051921 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
18411957
18421958
18431959 # Let the site file select an alternate cache file if it wants to.
1844 # Prefer explicitly selected file to automatically selected ones.
1960 # Prefer an explicitly selected file to automatically selected ones.
1961 ac_site_file1=NONE
1962 ac_site_file2=NONE
18451963 if test -n "$CONFIG_SITE"; then
1846 set x "$CONFIG_SITE"
1964 ac_site_file1=$CONFIG_SITE
18471965 elif test "x$prefix" != xNONE; then
1848 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1849 else
1850 set x "$ac_default_prefix/share/config.site" \
1851 "$ac_default_prefix/etc/config.site"
1852 fi
1853 shift
1854 for ac_site_file
1966 ac_site_file1=$prefix/share/config.site
1967 ac_site_file2=$prefix/etc/config.site
1968 else
1969 ac_site_file1=$ac_default_prefix/share/config.site
1970 ac_site_file2=$ac_default_prefix/etc/config.site
1971 fi
1972 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
18551973 do
1974 test "x$ac_site_file" = xNONE && continue
18561975 if test -r "$ac_site_file"; then
1857 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1858 echo "$as_me: loading site script $ac_site_file" >&6;}
1976 { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1977 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
18591978 sed 's/^/| /' "$ac_site_file" >&5
18601979 . "$ac_site_file"
18611980 fi
18651984 # Some versions of bash will fail to source /dev/null (special
18661985 # files actually), so we avoid doing that.
18671986 if test -f "$cache_file"; then
1868 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1869 echo "$as_me: loading cache $cache_file" >&6;}
1987 { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5
1988 $as_echo "$as_me: loading cache $cache_file" >&6;}
18701989 case $cache_file in
18711990 [\\/]* | ?:[\\/]* ) . "$cache_file";;
18721991 *) . "./$cache_file";;
18731992 esac
18741993 fi
18751994 else
1876 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1877 echo "$as_me: creating cache $cache_file" >&6;}
1995 { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5
1996 $as_echo "$as_me: creating cache $cache_file" >&6;}
18781997 >$cache_file
18791998 fi
18801999
18882007 eval ac_new_val=\$ac_env_${ac_var}_value
18892008 case $ac_old_set,$ac_new_set in
18902009 set,)
1891 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1892 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2010 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2011 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
18932012 ac_cache_corrupted=: ;;
18942013 ,set)
1895 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1896 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2014 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
2015 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
18972016 ac_cache_corrupted=: ;;
18982017 ,);;
18992018 *)
19002019 if test "x$ac_old_val" != "x$ac_new_val"; then
1901 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1902 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1903 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1904 echo "$as_me: former value: $ac_old_val" >&2;}
1905 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1906 echo "$as_me: current value: $ac_new_val" >&2;}
1907 ac_cache_corrupted=:
2020 # differences in whitespace do not lead to failure.
2021 ac_old_val_w=`echo x $ac_old_val`
2022 ac_new_val_w=`echo x $ac_new_val`
2023 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2024 { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
2025 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2026 ac_cache_corrupted=:
2027 else
2028 { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2029 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2030 eval $ac_var=\$ac_old_val
2031 fi
2032 { $as_echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5
2033 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2034 { $as_echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5
2035 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
19082036 fi;;
19092037 esac
19102038 # Pass precious variables to config.status.
19112039 if test "$ac_new_set" = set; then
19122040 case $ac_new_val in
1913 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2041 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
19142042 *) ac_arg=$ac_var=$ac_new_val ;;
19152043 esac
19162044 case " $ac_configure_args " in
19202048 fi
19212049 done
19222050 if $ac_cache_corrupted; then
1923 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1924 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1925 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1926 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
2051 { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2052 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2053 { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
2054 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2055 { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
2056 $as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
19272057 { (exit 1); exit 1; }; }
19282058 fi
19292059
19602090
19612091
19622092 LIBUNBOUND_CURRENT=1
1963 LIBUNBOUND_REVISION=0
2093 LIBUNBOUND_REVISION=2
19642094 LIBUNBOUND_AGE=0
19652095 # 1.0.0 had 0:12:0
19662096 # 1.0.1 had 0:13:0
19702100 # 1.2.0 had 0:17:0
19712101 # 1.2.1 had 0:18:0
19722102 # 1.3.0 had 1:0:0 # ub_cancel and -export-symbols.
2103 # 1.3.1 had 1:1:0
2104 # 1.3.2 had 1:2:0
19732105
19742106 # Current -- the number of the binary API that we're implementing
19752107 # Revision -- which iteration of the implementation of the binary
20022134 if test -n "$ac_tool_prefix"; then
20032135 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
20042136 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2005 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2006 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2137 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2138 $as_echo_n "checking for $ac_word... " >&6; }
20072139 if test "${ac_cv_prog_CC+set}" = set; then
2008 echo $ECHO_N "(cached) $ECHO_C" >&6
2140 $as_echo_n "(cached) " >&6
20092141 else
20102142 if test -n "$CC"; then
20112143 ac_cv_prog_CC="$CC" # Let the user override the test.
20182150 for ac_exec_ext in '' $ac_executable_extensions; do
20192151 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20202152 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2021 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2153 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20222154 break 2
20232155 fi
20242156 done
20292161 fi
20302162 CC=$ac_cv_prog_CC
20312163 if test -n "$CC"; then
2032 { echo "$as_me:$LINENO: result: $CC" >&5
2033 echo "${ECHO_T}$CC" >&6; }
2034 else
2035 { echo "$as_me:$LINENO: result: no" >&5
2036 echo "${ECHO_T}no" >&6; }
2164 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2165 $as_echo "$CC" >&6; }
2166 else
2167 { $as_echo "$as_me:$LINENO: result: no" >&5
2168 $as_echo "no" >&6; }
20372169 fi
20382170
20392171
20422174 ac_ct_CC=$CC
20432175 # Extract the first word of "gcc", so it can be a program name with args.
20442176 set dummy gcc; ac_word=$2
2045 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2046 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2177 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2178 $as_echo_n "checking for $ac_word... " >&6; }
20472179 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2048 echo $ECHO_N "(cached) $ECHO_C" >&6
2180 $as_echo_n "(cached) " >&6
20492181 else
20502182 if test -n "$ac_ct_CC"; then
20512183 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
20582190 for ac_exec_ext in '' $ac_executable_extensions; do
20592191 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20602192 ac_cv_prog_ac_ct_CC="gcc"
2061 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2193 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20622194 break 2
20632195 fi
20642196 done
20692201 fi
20702202 ac_ct_CC=$ac_cv_prog_ac_ct_CC
20712203 if test -n "$ac_ct_CC"; then
2072 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2073 echo "${ECHO_T}$ac_ct_CC" >&6; }
2074 else
2075 { echo "$as_me:$LINENO: result: no" >&5
2076 echo "${ECHO_T}no" >&6; }
2204 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2205 $as_echo "$ac_ct_CC" >&6; }
2206 else
2207 { $as_echo "$as_me:$LINENO: result: no" >&5
2208 $as_echo "no" >&6; }
20772209 fi
20782210
20792211 if test "x$ac_ct_CC" = x; then
20812213 else
20822214 case $cross_compiling:$ac_tool_warned in
20832215 yes:)
2084 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2085 whose name does not start with the host triplet. If you think this
2086 configuration is useful to you, please write to autoconf@gnu.org." >&5
2087 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2088 whose name does not start with the host triplet. If you think this
2089 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2216 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2217 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
20902218 ac_tool_warned=yes ;;
20912219 esac
20922220 CC=$ac_ct_CC
20992227 if test -n "$ac_tool_prefix"; then
21002228 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
21012229 set dummy ${ac_tool_prefix}cc; ac_word=$2
2102 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2103 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2230 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2231 $as_echo_n "checking for $ac_word... " >&6; }
21042232 if test "${ac_cv_prog_CC+set}" = set; then
2105 echo $ECHO_N "(cached) $ECHO_C" >&6
2233 $as_echo_n "(cached) " >&6
21062234 else
21072235 if test -n "$CC"; then
21082236 ac_cv_prog_CC="$CC" # Let the user override the test.
21152243 for ac_exec_ext in '' $ac_executable_extensions; do
21162244 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21172245 ac_cv_prog_CC="${ac_tool_prefix}cc"
2118 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2246 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
21192247 break 2
21202248 fi
21212249 done
21262254 fi
21272255 CC=$ac_cv_prog_CC
21282256 if test -n "$CC"; then
2129 { echo "$as_me:$LINENO: result: $CC" >&5
2130 echo "${ECHO_T}$CC" >&6; }
2131 else
2132 { echo "$as_me:$LINENO: result: no" >&5
2133 echo "${ECHO_T}no" >&6; }
2257 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2258 $as_echo "$CC" >&6; }
2259 else
2260 { $as_echo "$as_me:$LINENO: result: no" >&5
2261 $as_echo "no" >&6; }
21342262 fi
21352263
21362264
21392267 if test -z "$CC"; then
21402268 # Extract the first word of "cc", so it can be a program name with args.
21412269 set dummy cc; ac_word=$2
2142 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2143 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2270 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2271 $as_echo_n "checking for $ac_word... " >&6; }
21442272 if test "${ac_cv_prog_CC+set}" = set; then
2145 echo $ECHO_N "(cached) $ECHO_C" >&6
2273 $as_echo_n "(cached) " >&6
21462274 else
21472275 if test -n "$CC"; then
21482276 ac_cv_prog_CC="$CC" # Let the user override the test.
21602288 continue
21612289 fi
21622290 ac_cv_prog_CC="cc"
2163 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2291 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
21642292 break 2
21652293 fi
21662294 done
21832311 fi
21842312 CC=$ac_cv_prog_CC
21852313 if test -n "$CC"; then
2186 { echo "$as_me:$LINENO: result: $CC" >&5
2187 echo "${ECHO_T}$CC" >&6; }
2188 else
2189 { echo "$as_me:$LINENO: result: no" >&5
2190 echo "${ECHO_T}no" >&6; }
2314 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2315 $as_echo "$CC" >&6; }
2316 else
2317 { $as_echo "$as_me:$LINENO: result: no" >&5
2318 $as_echo "no" >&6; }
21912319 fi
21922320
21932321
21982326 do
21992327 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
22002328 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2201 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2202 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2329 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2330 $as_echo_n "checking for $ac_word... " >&6; }
22032331 if test "${ac_cv_prog_CC+set}" = set; then
2204 echo $ECHO_N "(cached) $ECHO_C" >&6
2332 $as_echo_n "(cached) " >&6
22052333 else
22062334 if test -n "$CC"; then
22072335 ac_cv_prog_CC="$CC" # Let the user override the test.
22142342 for ac_exec_ext in '' $ac_executable_extensions; do
22152343 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22162344 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2217 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2345 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22182346 break 2
22192347 fi
22202348 done
22252353 fi
22262354 CC=$ac_cv_prog_CC
22272355 if test -n "$CC"; then
2228 { echo "$as_me:$LINENO: result: $CC" >&5
2229 echo "${ECHO_T}$CC" >&6; }
2230 else
2231 { echo "$as_me:$LINENO: result: no" >&5
2232 echo "${ECHO_T}no" >&6; }
2356 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2357 $as_echo "$CC" >&6; }
2358 else
2359 { $as_echo "$as_me:$LINENO: result: no" >&5
2360 $as_echo "no" >&6; }
22332361 fi
22342362
22352363
22422370 do
22432371 # Extract the first word of "$ac_prog", so it can be a program name with args.
22442372 set dummy $ac_prog; ac_word=$2
2245 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2246 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2373 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2374 $as_echo_n "checking for $ac_word... " >&6; }
22472375 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2248 echo $ECHO_N "(cached) $ECHO_C" >&6
2376 $as_echo_n "(cached) " >&6
22492377 else
22502378 if test -n "$ac_ct_CC"; then
22512379 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
22582386 for ac_exec_ext in '' $ac_executable_extensions; do
22592387 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22602388 ac_cv_prog_ac_ct_CC="$ac_prog"
2261 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2389 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22622390 break 2
22632391 fi
22642392 done
22692397 fi
22702398 ac_ct_CC=$ac_cv_prog_ac_ct_CC
22712399 if test -n "$ac_ct_CC"; then
2272 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2273 echo "${ECHO_T}$ac_ct_CC" >&6; }
2274 else
2275 { echo "$as_me:$LINENO: result: no" >&5
2276 echo "${ECHO_T}no" >&6; }
2400 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2401 $as_echo "$ac_ct_CC" >&6; }
2402 else
2403 { $as_echo "$as_me:$LINENO: result: no" >&5
2404 $as_echo "no" >&6; }
22772405 fi
22782406
22792407
22852413 else
22862414 case $cross_compiling:$ac_tool_warned in
22872415 yes:)
2288 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2289 whose name does not start with the host triplet. If you think this
2290 configuration is useful to you, please write to autoconf@gnu.org." >&5
2291 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2292 whose name does not start with the host triplet. If you think this
2293 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2416 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2417 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
22942418 ac_tool_warned=yes ;;
22952419 esac
22962420 CC=$ac_ct_CC
23002424 fi
23012425
23022426
2303 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2427 test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2428 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2429 { { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
23042430 See \`config.log' for more details." >&5
2305 echo "$as_me: error: no acceptable C compiler found in \$PATH
2431 $as_echo "$as_me: error: no acceptable C compiler found in \$PATH
23062432 See \`config.log' for more details." >&2;}
2307 { (exit 1); exit 1; }; }
2433 { (exit 1); exit 1; }; }; }
23082434
23092435 # Provide some information about the compiler.
2310 echo "$as_me:$LINENO: checking for C compiler version" >&5
2311 ac_compiler=`set X $ac_compile; echo $2`
2436 $as_echo "$as_me:$LINENO: checking for C compiler version" >&5
2437 set X $ac_compile
2438 ac_compiler=$2
23122439 { (ac_try="$ac_compiler --version >&5"
23132440 case "(($ac_try" in
23142441 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23152442 *) ac_try_echo=$ac_try;;
23162443 esac
2317 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2444 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2445 $as_echo "$ac_try_echo") >&5
23182446 (eval "$ac_compiler --version >&5") 2>&5
23192447 ac_status=$?
2320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2448 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23212449 (exit $ac_status); }
23222450 { (ac_try="$ac_compiler -v >&5"
23232451 case "(($ac_try" in
23242452 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23252453 *) ac_try_echo=$ac_try;;
23262454 esac
2327 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2455 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2456 $as_echo "$ac_try_echo") >&5
23282457 (eval "$ac_compiler -v >&5") 2>&5
23292458 ac_status=$?
2330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2459 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23312460 (exit $ac_status); }
23322461 { (ac_try="$ac_compiler -V >&5"
23332462 case "(($ac_try" in
23342463 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23352464 *) ac_try_echo=$ac_try;;
23362465 esac
2337 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2466 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2467 $as_echo "$ac_try_echo") >&5
23382468 (eval "$ac_compiler -V >&5") 2>&5
23392469 ac_status=$?
2340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2470 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23412471 (exit $ac_status); }
23422472
23432473 cat >conftest.$ac_ext <<_ACEOF
23562486 }
23572487 _ACEOF
23582488 ac_clean_files_save=$ac_clean_files
2359 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2489 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
23602490 # Try to create an executable without -o first, disregard a.out.
23612491 # It will help us diagnose broken compilers, and finding out an intuition
23622492 # of exeext.
2363 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2364 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2365 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2366 #
2367 # List of possible output files, starting from the most likely.
2368 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2369 # only as a last resort. b.out is created by i960 compilers.
2370 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2371 #
2372 # The IRIX 6 linker writes into existing files which may not be
2373 # executable, retaining their permissions. Remove them first so a
2374 # subsequent execution test works.
2493 { $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2494 $as_echo_n "checking for C compiler default output file name... " >&6; }
2495 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2496
2497 # The possible output files:
2498 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2499
23752500 ac_rmfiles=
23762501 for ac_file in $ac_files
23772502 do
23782503 case $ac_file in
2379 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2504 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
23802505 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
23812506 esac
23822507 done
23872512 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23882513 *) ac_try_echo=$ac_try;;
23892514 esac
2390 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2515 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2516 $as_echo "$ac_try_echo") >&5
23912517 (eval "$ac_link_default") 2>&5
23922518 ac_status=$?
2393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2519 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23942520 (exit $ac_status); }; then
23952521 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
23962522 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
24012527 do
24022528 test -f "$ac_file" || continue
24032529 case $ac_file in
2404 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2530 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
24052531 ;;
24062532 [ab].out )
24072533 # We found the default executable, but exeext='' is most
24282554 ac_file=''
24292555 fi
24302556
2431 { echo "$as_me:$LINENO: result: $ac_file" >&5
2432 echo "${ECHO_T}$ac_file" >&6; }
2557 { $as_echo "$as_me:$LINENO: result: $ac_file" >&5
2558 $as_echo "$ac_file" >&6; }
24332559 if test -z "$ac_file"; then
2434 echo "$as_me: failed program was:" >&5
2560 $as_echo "$as_me: failed program was:" >&5
24352561 sed 's/^/| /' conftest.$ac_ext >&5
24362562
2437 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2563 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2564 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2565 { { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables
24382566 See \`config.log' for more details." >&5
2439 echo "$as_me: error: C compiler cannot create executables
2567 $as_echo "$as_me: error: C compiler cannot create executables
24402568 See \`config.log' for more details." >&2;}
2441 { (exit 77); exit 77; }; }
2569 { (exit 77); exit 77; }; }; }
24422570 fi
24432571
24442572 ac_exeext=$ac_cv_exeext
24452573
24462574 # Check that the compiler produces executables we can run. If not, either
24472575 # the compiler is broken, or we cross compile.
2448 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2449 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2576 { $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2577 $as_echo_n "checking whether the C compiler works... " >&6; }
24502578 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
24512579 # If not cross compiling, check that we can run a simple program.
24522580 if test "$cross_compiling" != yes; then
24552583 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24562584 *) ac_try_echo=$ac_try;;
24572585 esac
2458 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2586 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2587 $as_echo "$ac_try_echo") >&5
24592588 (eval "$ac_try") 2>&5
24602589 ac_status=$?
2461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2590 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24622591 (exit $ac_status); }; }; then
24632592 cross_compiling=no
24642593 else
24652594 if test "$cross_compiling" = maybe; then
24662595 cross_compiling=yes
24672596 else
2468 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2597 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2598 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2599 { { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs.
24692600 If you meant to cross compile, use \`--host'.
24702601 See \`config.log' for more details." >&5
2471 echo "$as_me: error: cannot run C compiled programs.
2602 $as_echo "$as_me: error: cannot run C compiled programs.
24722603 If you meant to cross compile, use \`--host'.
24732604 See \`config.log' for more details." >&2;}
2474 { (exit 1); exit 1; }; }
2605 { (exit 1); exit 1; }; }; }
24752606 fi
24762607 fi
24772608 fi
2478 { echo "$as_me:$LINENO: result: yes" >&5
2479 echo "${ECHO_T}yes" >&6; }
2480
2481 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2609 { $as_echo "$as_me:$LINENO: result: yes" >&5
2610 $as_echo "yes" >&6; }
2611
2612 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
24822613 ac_clean_files=$ac_clean_files_save
24832614 # Check that the compiler produces executables we can run. If not, either
24842615 # the compiler is broken, or we cross compile.
2485 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2486 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2487 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2488 echo "${ECHO_T}$cross_compiling" >&6; }
2489
2490 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2491 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2616 { $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2617 $as_echo_n "checking whether we are cross compiling... " >&6; }
2618 { $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5
2619 $as_echo "$cross_compiling" >&6; }
2620
2621 { $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5
2622 $as_echo_n "checking for suffix of executables... " >&6; }
24922623 if { (ac_try="$ac_link"
24932624 case "(($ac_try" in
24942625 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24952626 *) ac_try_echo=$ac_try;;
24962627 esac
2497 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2628 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2629 $as_echo "$ac_try_echo") >&5
24982630 (eval "$ac_link") 2>&5
24992631 ac_status=$?
2500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2632 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25012633 (exit $ac_status); }; then
25022634 # If both `conftest.exe' and `conftest' are `present' (well, observable)
25032635 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
25062638 for ac_file in conftest.exe conftest conftest.*; do
25072639 test -f "$ac_file" || continue
25082640 case $ac_file in
2509 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2641 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
25102642 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
25112643 break;;
25122644 * ) break;;
25132645 esac
25142646 done
25152647 else
2516 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2648 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2649 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2650 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
25172651 See \`config.log' for more details." >&5
2518 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2652 $as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
25192653 See \`config.log' for more details." >&2;}
2520 { (exit 1); exit 1; }; }
2654 { (exit 1); exit 1; }; }; }
25212655 fi
25222656
25232657 rm -f conftest$ac_cv_exeext
2524 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2525 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2658 { $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2659 $as_echo "$ac_cv_exeext" >&6; }
25262660
25272661 rm -f conftest.$ac_ext
25282662 EXEEXT=$ac_cv_exeext
25292663 ac_exeext=$EXEEXT
2530 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2531 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2664 { $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5
2665 $as_echo_n "checking for suffix of object files... " >&6; }
25322666 if test "${ac_cv_objext+set}" = set; then
2533 echo $ECHO_N "(cached) $ECHO_C" >&6
2667 $as_echo_n "(cached) " >&6
25342668 else
25352669 cat >conftest.$ac_ext <<_ACEOF
25362670 /* confdefs.h. */
25532687 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25542688 *) ac_try_echo=$ac_try;;
25552689 esac
2556 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2690 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2691 $as_echo "$ac_try_echo") >&5
25572692 (eval "$ac_compile") 2>&5
25582693 ac_status=$?
2559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2694 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25602695 (exit $ac_status); }; then
25612696 for ac_file in conftest.o conftest.obj conftest.*; do
25622697 test -f "$ac_file" || continue;
25632698 case $ac_file in
2564 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2699 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
25652700 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
25662701 break;;
25672702 esac
25682703 done
25692704 else
2570 echo "$as_me: failed program was:" >&5
2705 $as_echo "$as_me: failed program was:" >&5
25712706 sed 's/^/| /' conftest.$ac_ext >&5
25722707
2573 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2708 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2709 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2710 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
25742711 See \`config.log' for more details." >&5
2575 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2712 $as_echo "$as_me: error: cannot compute suffix of object files: cannot compile
25762713 See \`config.log' for more details." >&2;}
2577 { (exit 1); exit 1; }; }
2714 { (exit 1); exit 1; }; }; }
25782715 fi
25792716
25802717 rm -f conftest.$ac_cv_objext conftest.$ac_ext
25812718 fi
2582 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2583 echo "${ECHO_T}$ac_cv_objext" >&6; }
2719 { $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2720 $as_echo "$ac_cv_objext" >&6; }
25842721 OBJEXT=$ac_cv_objext
25852722 ac_objext=$OBJEXT
2586 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2587 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2723 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2724 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
25882725 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2589 echo $ECHO_N "(cached) $ECHO_C" >&6
2726 $as_echo_n "(cached) " >&6
25902727 else
25912728 cat >conftest.$ac_ext <<_ACEOF
25922729 /* confdefs.h. */
26122749 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26132750 *) ac_try_echo=$ac_try;;
26142751 esac
2615 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2752 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2753 $as_echo "$ac_try_echo") >&5
26162754 (eval "$ac_compile") 2>conftest.er1
26172755 ac_status=$?
26182756 grep -v '^ *+' conftest.er1 >conftest.err
26192757 rm -f conftest.er1
26202758 cat conftest.err >&5
2621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2759 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26222760 (exit $ac_status); } && {
26232761 test -z "$ac_c_werror_flag" ||
26242762 test ! -s conftest.err
26252763 } && test -s conftest.$ac_objext; then
26262764 ac_compiler_gnu=yes
26272765 else
2628 echo "$as_me: failed program was:" >&5
2766 $as_echo "$as_me: failed program was:" >&5
26292767 sed 's/^/| /' conftest.$ac_ext >&5
26302768
26312769 ac_compiler_gnu=no
26352773 ac_cv_c_compiler_gnu=$ac_compiler_gnu
26362774
26372775 fi
2638 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2639 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2640 GCC=`test $ac_compiler_gnu = yes && echo yes`
2776 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2777 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
2778 if test $ac_compiler_gnu = yes; then
2779 GCC=yes
2780 else
2781 GCC=
2782 fi
26412783 ac_test_CFLAGS=${CFLAGS+set}
26422784 ac_save_CFLAGS=$CFLAGS
2643 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2644 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2785 { $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2786 $as_echo_n "checking whether $CC accepts -g... " >&6; }
26452787 if test "${ac_cv_prog_cc_g+set}" = set; then
2646 echo $ECHO_N "(cached) $ECHO_C" >&6
2788 $as_echo_n "(cached) " >&6
26472789 else
26482790 ac_save_c_werror_flag=$ac_c_werror_flag
26492791 ac_c_werror_flag=yes
26702812 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26712813 *) ac_try_echo=$ac_try;;
26722814 esac
2673 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2815 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2816 $as_echo "$ac_try_echo") >&5
26742817 (eval "$ac_compile") 2>conftest.er1
26752818 ac_status=$?
26762819 grep -v '^ *+' conftest.er1 >conftest.err
26772820 rm -f conftest.er1
26782821 cat conftest.err >&5
2679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2822 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26802823 (exit $ac_status); } && {
26812824 test -z "$ac_c_werror_flag" ||
26822825 test ! -s conftest.err
26832826 } && test -s conftest.$ac_objext; then
26842827 ac_cv_prog_cc_g=yes
26852828 else
2686 echo "$as_me: failed program was:" >&5
2829 $as_echo "$as_me: failed program was:" >&5
26872830 sed 's/^/| /' conftest.$ac_ext >&5
26882831
26892832 CFLAGS=""
27082851 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27092852 *) ac_try_echo=$ac_try;;
27102853 esac
2711 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2854 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2855 $as_echo "$ac_try_echo") >&5
27122856 (eval "$ac_compile") 2>conftest.er1
27132857 ac_status=$?
27142858 grep -v '^ *+' conftest.er1 >conftest.err
27152859 rm -f conftest.er1
27162860 cat conftest.err >&5
2717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2861 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27182862 (exit $ac_status); } && {
27192863 test -z "$ac_c_werror_flag" ||
27202864 test ! -s conftest.err
27212865 } && test -s conftest.$ac_objext; then
27222866 :
27232867 else
2724 echo "$as_me: failed program was:" >&5
2868 $as_echo "$as_me: failed program was:" >&5
27252869 sed 's/^/| /' conftest.$ac_ext >&5
27262870
27272871 ac_c_werror_flag=$ac_save_c_werror_flag
27472891 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27482892 *) ac_try_echo=$ac_try;;
27492893 esac
2750 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2894 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2895 $as_echo "$ac_try_echo") >&5
27512896 (eval "$ac_compile") 2>conftest.er1
27522897 ac_status=$?
27532898 grep -v '^ *+' conftest.er1 >conftest.err
27542899 rm -f conftest.er1
27552900 cat conftest.err >&5
2756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2901 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27572902 (exit $ac_status); } && {
27582903 test -z "$ac_c_werror_flag" ||
27592904 test ! -s conftest.err
27602905 } && test -s conftest.$ac_objext; then
27612906 ac_cv_prog_cc_g=yes
27622907 else
2763 echo "$as_me: failed program was:" >&5
2908 $as_echo "$as_me: failed program was:" >&5
27642909 sed 's/^/| /' conftest.$ac_ext >&5
27652910
27662911
27752920 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27762921 ac_c_werror_flag=$ac_save_c_werror_flag
27772922 fi
2778 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2779 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
2923 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2924 $as_echo "$ac_cv_prog_cc_g" >&6; }
27802925 if test "$ac_test_CFLAGS" = set; then
27812926 CFLAGS=$ac_save_CFLAGS
27822927 elif test $ac_cv_prog_cc_g = yes; then
27922937 CFLAGS=
27932938 fi
27942939 fi
2795 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2796 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
2940 { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2941 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
27972942 if test "${ac_cv_prog_cc_c89+set}" = set; then
2798 echo $ECHO_N "(cached) $ECHO_C" >&6
2943 $as_echo_n "(cached) " >&6
27992944 else
28002945 ac_cv_prog_cc_c89=no
28012946 ac_save_CC=$CC
28663011 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28673012 *) ac_try_echo=$ac_try;;
28683013 esac
2869 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3014 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3015 $as_echo "$ac_try_echo") >&5
28703016 (eval "$ac_compile") 2>conftest.er1
28713017 ac_status=$?
28723018 grep -v '^ *+' conftest.er1 >conftest.err
28733019 rm -f conftest.er1
28743020 cat conftest.err >&5
2875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3021 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28763022 (exit $ac_status); } && {
28773023 test -z "$ac_c_werror_flag" ||
28783024 test ! -s conftest.err
28793025 } && test -s conftest.$ac_objext; then
28803026 ac_cv_prog_cc_c89=$ac_arg
28813027 else
2882 echo "$as_me: failed program was:" >&5
3028 $as_echo "$as_me: failed program was:" >&5
28833029 sed 's/^/| /' conftest.$ac_ext >&5
28843030
28853031
28953041 # AC_CACHE_VAL
28963042 case "x$ac_cv_prog_cc_c89" in
28973043 x)
2898 { echo "$as_me:$LINENO: result: none needed" >&5
2899 echo "${ECHO_T}none needed" >&6; } ;;
3044 { $as_echo "$as_me:$LINENO: result: none needed" >&5
3045 $as_echo "none needed" >&6; } ;;
29003046 xno)
2901 { echo "$as_me:$LINENO: result: unsupported" >&5
2902 echo "${ECHO_T}unsupported" >&6; } ;;
3047 { $as_echo "$as_me:$LINENO: result: unsupported" >&5
3048 $as_echo "unsupported" >&6; } ;;
29033049 *)
29043050 CC="$CC $ac_cv_prog_cc_c89"
2905 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
2906 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3051 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3052 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
29073053 esac
29083054
29093055
29193065 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29203066 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29213067 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2922 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2923 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3068 { $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3069 $as_echo_n "checking how to run the C preprocessor... " >&6; }
29243070 # On Suns, sometimes $CPP names a directory.
29253071 if test -n "$CPP" && test -d "$CPP"; then
29263072 CPP=
29273073 fi
29283074 if test -z "$CPP"; then
29293075 if test "${ac_cv_prog_CPP+set}" = set; then
2930 echo $ECHO_N "(cached) $ECHO_C" >&6
3076 $as_echo_n "(cached) " >&6
29313077 else
29323078 # Double quotes because CPP needs to be expanded
29333079 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
29593105 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29603106 *) ac_try_echo=$ac_try;;
29613107 esac
2962 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3108 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3109 $as_echo "$ac_try_echo") >&5
29633110 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29643111 ac_status=$?
29653112 grep -v '^ *+' conftest.er1 >conftest.err
29663113 rm -f conftest.er1
29673114 cat conftest.err >&5
2968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3115 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29693116 (exit $ac_status); } >/dev/null && {
29703117 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
29713118 test ! -s conftest.err
29723119 }; then
29733120 :
29743121 else
2975 echo "$as_me: failed program was:" >&5
3122 $as_echo "$as_me: failed program was:" >&5
29763123 sed 's/^/| /' conftest.$ac_ext >&5
29773124
29783125 # Broken: fails on valid input.
29963143 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29973144 *) ac_try_echo=$ac_try;;
29983145 esac
2999 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3146 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3147 $as_echo "$ac_try_echo") >&5
30003148 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
30013149 ac_status=$?
30023150 grep -v '^ *+' conftest.er1 >conftest.err
30033151 rm -f conftest.er1
30043152 cat conftest.err >&5
3005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3153 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30063154 (exit $ac_status); } >/dev/null && {
30073155 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
30083156 test ! -s conftest.err
30103158 # Broken: success on invalid input.
30113159 continue
30123160 else
3013 echo "$as_me: failed program was:" >&5
3161 $as_echo "$as_me: failed program was:" >&5
30143162 sed 's/^/| /' conftest.$ac_ext >&5
30153163
30163164 # Passes both tests.
30353183 else
30363184 ac_cv_prog_CPP=$CPP
30373185 fi
3038 { echo "$as_me:$LINENO: result: $CPP" >&5
3039 echo "${ECHO_T}$CPP" >&6; }
3186 { $as_echo "$as_me:$LINENO: result: $CPP" >&5
3187 $as_echo "$CPP" >&6; }
30403188 ac_preproc_ok=false
30413189 for ac_c_preproc_warn_flag in '' yes
30423190 do
30643212 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30653213 *) ac_try_echo=$ac_try;;
30663214 esac
3067 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3215 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3216 $as_echo "$ac_try_echo") >&5
30683217 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
30693218 ac_status=$?
30703219 grep -v '^ *+' conftest.er1 >conftest.err
30713220 rm -f conftest.er1
30723221 cat conftest.err >&5
3073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3222 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30743223 (exit $ac_status); } >/dev/null && {
30753224 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
30763225 test ! -s conftest.err
30773226 }; then
30783227 :
30793228 else
3080 echo "$as_me: failed program was:" >&5
3229 $as_echo "$as_me: failed program was:" >&5
30813230 sed 's/^/| /' conftest.$ac_ext >&5
30823231
30833232 # Broken: fails on valid input.
31013250 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31023251 *) ac_try_echo=$ac_try;;
31033252 esac
3104 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3253 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3254 $as_echo "$ac_try_echo") >&5
31053255 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
31063256 ac_status=$?
31073257 grep -v '^ *+' conftest.er1 >conftest.err
31083258 rm -f conftest.er1
31093259 cat conftest.err >&5
3110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3260 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
31113261 (exit $ac_status); } >/dev/null && {
31123262 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
31133263 test ! -s conftest.err
31153265 # Broken: success on invalid input.
31163266 continue
31173267 else
3118 echo "$as_me: failed program was:" >&5
3268 $as_echo "$as_me: failed program was:" >&5
31193269 sed 's/^/| /' conftest.$ac_ext >&5
31203270
31213271 # Passes both tests.
31313281 if $ac_preproc_ok; then
31323282 :
31333283 else
3134 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3284 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3285 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3286 { { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
31353287 See \`config.log' for more details." >&5
3136 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3288 $as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
31373289 See \`config.log' for more details." >&2;}
3138 { (exit 1); exit 1; }; }
3290 { (exit 1); exit 1; }; }; }
31393291 fi
31403292
31413293 ac_ext=c
31453297 ac_compiler_gnu=$ac_cv_c_compiler_gnu
31463298
31473299
3148 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3149 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3300 { $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3301 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
31503302 if test "${ac_cv_path_GREP+set}" = set; then
3151 echo $ECHO_N "(cached) $ECHO_C" >&6
3152 else
3153 # Extract the first word of "grep ggrep" to use in msg output
3154 if test -z "$GREP"; then
3155 set dummy grep ggrep; ac_prog_name=$2
3156 if test "${ac_cv_path_GREP+set}" = set; then
3157 echo $ECHO_N "(cached) $ECHO_C" >&6
3158 else
3303 $as_echo_n "(cached) " >&6
3304 else
3305 if test -z "$GREP"; then
31593306 ac_path_GREP_found=false
3160 # Loop through the user's path and test for each of PROGNAME-LIST
3161 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3307 # Loop through the user's path and test for each of PROGNAME-LIST
3308 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31623309 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
31633310 do
31643311 IFS=$as_save_IFS
31653312 test -z "$as_dir" && as_dir=.
31663313 for ac_prog in grep ggrep; do
3167 for ac_exec_ext in '' $ac_executable_extensions; do
3168 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3169 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3170 # Check for GNU ac_path_GREP and select it if it is found.
3314 for ac_exec_ext in '' $ac_executable_extensions; do
3315 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3316 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3317 # Check for GNU ac_path_GREP and select it if it is found.
31713318 # Check for GNU $ac_path_GREP
31723319 case `"$ac_path_GREP" --version 2>&1` in
31733320 *GNU*)
31743321 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
31753322 *)
31763323 ac_count=0
3177 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3324 $as_echo_n 0123456789 >"conftest.in"
31783325 while :
31793326 do
31803327 cat "conftest.in" "conftest.in" >"conftest.tmp"
31813328 mv "conftest.tmp" "conftest.in"
31823329 cp "conftest.in" "conftest.nl"
3183 echo 'GREP' >> "conftest.nl"
3330 $as_echo 'GREP' >> "conftest.nl"
31843331 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
31853332 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
31863333 ac_count=`expr $ac_count + 1`
31953342 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
31963343 esac
31973344
3198
3199 $ac_path_GREP_found && break 3
3345 $ac_path_GREP_found && break 3
3346 done
32003347 done
32013348 done
3202
3203 done
32043349 IFS=$as_save_IFS
3205
3206
3207 fi
3208
3209 GREP="$ac_cv_path_GREP"
3210 if test -z "$GREP"; then
3211 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3212 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3350 if test -z "$ac_cv_path_GREP"; then
3351 { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3352 $as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
32133353 { (exit 1); exit 1; }; }
3214 fi
3215
3354 fi
32163355 else
32173356 ac_cv_path_GREP=$GREP
32183357 fi
32193358
3220
3221 fi
3222 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3223 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3359 fi
3360 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3361 $as_echo "$ac_cv_path_GREP" >&6; }
32243362 GREP="$ac_cv_path_GREP"
32253363
32263364
3227 { echo "$as_me:$LINENO: checking for egrep" >&5
3228 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3365 { $as_echo "$as_me:$LINENO: checking for egrep" >&5
3366 $as_echo_n "checking for egrep... " >&6; }
32293367 if test "${ac_cv_path_EGREP+set}" = set; then
3230 echo $ECHO_N "(cached) $ECHO_C" >&6
3368 $as_echo_n "(cached) " >&6
32313369 else
32323370 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
32333371 then ac_cv_path_EGREP="$GREP -E"
32343372 else
3235 # Extract the first word of "egrep" to use in msg output
3236 if test -z "$EGREP"; then
3237 set dummy egrep; ac_prog_name=$2
3238 if test "${ac_cv_path_EGREP+set}" = set; then
3239 echo $ECHO_N "(cached) $ECHO_C" >&6
3240 else
3373 if test -z "$EGREP"; then
32413374 ac_path_EGREP_found=false
3242 # Loop through the user's path and test for each of PROGNAME-LIST
3243 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3375 # Loop through the user's path and test for each of PROGNAME-LIST
3376 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32443377 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
32453378 do
32463379 IFS=$as_save_IFS
32473380 test -z "$as_dir" && as_dir=.
32483381 for ac_prog in egrep; do
3249 for ac_exec_ext in '' $ac_executable_extensions; do
3250 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3251 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3252 # Check for GNU ac_path_EGREP and select it if it is found.
3382 for ac_exec_ext in '' $ac_executable_extensions; do
3383 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3384 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3385 # Check for GNU ac_path_EGREP and select it if it is found.
32533386 # Check for GNU $ac_path_EGREP
32543387 case `"$ac_path_EGREP" --version 2>&1` in
32553388 *GNU*)
32563389 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
32573390 *)
32583391 ac_count=0
3259 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3392 $as_echo_n 0123456789 >"conftest.in"
32603393 while :
32613394 do
32623395 cat "conftest.in" "conftest.in" >"conftest.tmp"
32633396 mv "conftest.tmp" "conftest.in"
32643397 cp "conftest.in" "conftest.nl"
3265 echo 'EGREP' >> "conftest.nl"
3398 $as_echo 'EGREP' >> "conftest.nl"
32663399 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
32673400 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
32683401 ac_count=`expr $ac_count + 1`
32773410 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
32783411 esac
32793412
3280
3281 $ac_path_EGREP_found && break 3
3413 $ac_path_EGREP_found && break 3
3414 done
32823415 done
32833416 done
3284
3285 done
32863417 IFS=$as_save_IFS
3287
3288
3289 fi
3290
3291 EGREP="$ac_cv_path_EGREP"
3292 if test -z "$EGREP"; then
3293 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3294 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3418 if test -z "$ac_cv_path_EGREP"; then
3419 { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3420 $as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
32953421 { (exit 1); exit 1; }; }
3296 fi
3297
3422 fi
32983423 else
32993424 ac_cv_path_EGREP=$EGREP
33003425 fi
33013426
3302
33033427 fi
33043428 fi
3305 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3306 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
3429 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3430 $as_echo "$ac_cv_path_EGREP" >&6; }
33073431 EGREP="$ac_cv_path_EGREP"
33083432
33093433
3310
3311 { echo "$as_me:$LINENO: checking for AIX" >&5
3312 echo $ECHO_N "checking for AIX... $ECHO_C" >&6; }
3313 cat >conftest.$ac_ext <<_ACEOF
3434 { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3435 $as_echo_n "checking for ANSI C header files... " >&6; }
3436 if test "${ac_cv_header_stdc+set}" = set; then
3437 $as_echo_n "(cached) " >&6
3438 else
3439 cat >conftest.$ac_ext <<_ACEOF
33143440 /* confdefs.h. */
33153441 _ACEOF
33163442 cat confdefs.h >>conftest.$ac_ext
33173443 cat >>conftest.$ac_ext <<_ACEOF
33183444 /* end confdefs.h. */
3319 #ifdef _AIX
3320 yes
3445 #include <stdlib.h>
3446 #include <stdarg.h>
3447 #include <string.h>
3448 #include <float.h>
3449
3450 int
3451 main ()
3452 {
3453
3454 ;
3455 return 0;
3456 }
3457 _ACEOF
3458 rm -f conftest.$ac_objext
3459 if { (ac_try="$ac_compile"
3460 case "(($ac_try" in
3461 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3462 *) ac_try_echo=$ac_try;;
3463 esac
3464 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3465 $as_echo "$ac_try_echo") >&5
3466 (eval "$ac_compile") 2>conftest.er1
3467 ac_status=$?
3468 grep -v '^ *+' conftest.er1 >conftest.err
3469 rm -f conftest.er1
3470 cat conftest.err >&5
3471 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3472 (exit $ac_status); } && {
3473 test -z "$ac_c_werror_flag" ||
3474 test ! -s conftest.err
3475 } && test -s conftest.$ac_objext; then
3476 ac_cv_header_stdc=yes
3477 else
3478 $as_echo "$as_me: failed program was:" >&5
3479 sed 's/^/| /' conftest.$ac_ext >&5
3480
3481 ac_cv_header_stdc=no
3482 fi
3483
3484 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3485
3486 if test $ac_cv_header_stdc = yes; then
3487 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3488 cat >conftest.$ac_ext <<_ACEOF
3489 /* confdefs.h. */
3490 _ACEOF
3491 cat confdefs.h >>conftest.$ac_ext
3492 cat >>conftest.$ac_ext <<_ACEOF
3493 /* end confdefs.h. */
3494 #include <string.h>
3495
3496 _ACEOF
3497 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3498 $EGREP "memchr" >/dev/null 2>&1; then
3499 :
3500 else
3501 ac_cv_header_stdc=no
3502 fi
3503 rm -f conftest*
3504
3505 fi
3506
3507 if test $ac_cv_header_stdc = yes; then
3508 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3509 cat >conftest.$ac_ext <<_ACEOF
3510 /* confdefs.h. */
3511 _ACEOF
3512 cat confdefs.h >>conftest.$ac_ext
3513 cat >>conftest.$ac_ext <<_ACEOF
3514 /* end confdefs.h. */
3515 #include <stdlib.h>
3516
3517 _ACEOF
3518 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3519 $EGREP "free" >/dev/null 2>&1; then
3520 :
3521 else
3522 ac_cv_header_stdc=no
3523 fi
3524 rm -f conftest*
3525
3526 fi
3527
3528 if test $ac_cv_header_stdc = yes; then
3529 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3530 if test "$cross_compiling" = yes; then
3531 :
3532 else
3533 cat >conftest.$ac_ext <<_ACEOF
3534 /* confdefs.h. */
3535 _ACEOF
3536 cat confdefs.h >>conftest.$ac_ext
3537 cat >>conftest.$ac_ext <<_ACEOF
3538 /* end confdefs.h. */
3539 #include <ctype.h>
3540 #include <stdlib.h>
3541 #if ((' ' & 0x0FF) == 0x020)
3542 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3543 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3544 #else
3545 # define ISLOWER(c) \
3546 (('a' <= (c) && (c) <= 'i') \
3547 || ('j' <= (c) && (c) <= 'r') \
3548 || ('s' <= (c) && (c) <= 'z'))
3549 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
33213550 #endif
33223551
3323 _ACEOF
3324 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3325 $EGREP "yes" >/dev/null 2>&1; then
3326 { echo "$as_me:$LINENO: result: yes" >&5
3327 echo "${ECHO_T}yes" >&6; }
3552 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3553 int
3554 main ()
3555 {
3556 int i;
3557 for (i = 0; i < 256; i++)
3558 if (XOR (islower (i), ISLOWER (i))
3559 || toupper (i) != TOUPPER (i))
3560 return 2;
3561 return 0;
3562 }
3563 _ACEOF
3564 rm -f conftest$ac_exeext
3565 if { (ac_try="$ac_link"
3566 case "(($ac_try" in
3567 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3568 *) ac_try_echo=$ac_try;;
3569 esac
3570 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3571 $as_echo "$ac_try_echo") >&5
3572 (eval "$ac_link") 2>&5
3573 ac_status=$?
3574 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3575 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3576 { (case "(($ac_try" in
3577 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3578 *) ac_try_echo=$ac_try;;
3579 esac
3580 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3581 $as_echo "$ac_try_echo") >&5
3582 (eval "$ac_try") 2>&5
3583 ac_status=$?
3584 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3585 (exit $ac_status); }; }; then
3586 :
3587 else
3588 $as_echo "$as_me: program exited with status $ac_status" >&5
3589 $as_echo "$as_me: failed program was:" >&5
3590 sed 's/^/| /' conftest.$ac_ext >&5
3591
3592 ( exit $ac_status )
3593 ac_cv_header_stdc=no
3594 fi
3595 rm -rf conftest.dSYM
3596 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3597 fi
3598
3599
3600 fi
3601 fi
3602 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3603 $as_echo "$ac_cv_header_stdc" >&6; }
3604 if test $ac_cv_header_stdc = yes; then
3605
33283606 cat >>confdefs.h <<\_ACEOF
3607 #define STDC_HEADERS 1
3608 _ACEOF
3609
3610 fi
3611
3612 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3613
3614
3615
3616
3617
3618
3619
3620
3621
3622 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3623 inttypes.h stdint.h unistd.h
3624 do
3625 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
3626 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
3627 $as_echo_n "checking for $ac_header... " >&6; }
3628 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
3629 $as_echo_n "(cached) " >&6
3630 else
3631 cat >conftest.$ac_ext <<_ACEOF
3632 /* confdefs.h. */
3633 _ACEOF
3634 cat confdefs.h >>conftest.$ac_ext
3635 cat >>conftest.$ac_ext <<_ACEOF
3636 /* end confdefs.h. */
3637 $ac_includes_default
3638
3639 #include <$ac_header>
3640 _ACEOF
3641 rm -f conftest.$ac_objext
3642 if { (ac_try="$ac_compile"
3643 case "(($ac_try" in
3644 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3645 *) ac_try_echo=$ac_try;;
3646 esac
3647 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3648 $as_echo "$ac_try_echo") >&5
3649 (eval "$ac_compile") 2>conftest.er1
3650 ac_status=$?
3651 grep -v '^ *+' conftest.er1 >conftest.err
3652 rm -f conftest.er1
3653 cat conftest.err >&5
3654 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3655 (exit $ac_status); } && {
3656 test -z "$ac_c_werror_flag" ||
3657 test ! -s conftest.err
3658 } && test -s conftest.$ac_objext; then
3659 eval "$as_ac_Header=yes"
3660 else
3661 $as_echo "$as_me: failed program was:" >&5
3662 sed 's/^/| /' conftest.$ac_ext >&5
3663
3664 eval "$as_ac_Header=no"
3665 fi
3666
3667 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3668 fi
3669 ac_res=`eval 'as_val=${'$as_ac_Header'}
3670 $as_echo "$as_val"'`
3671 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
3672 $as_echo "$ac_res" >&6; }
3673 as_val=`eval 'as_val=${'$as_ac_Header'}
3674 $as_echo "$as_val"'`
3675 if test "x$as_val" = x""yes; then
3676 cat >>confdefs.h <<_ACEOF
3677 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
3678 _ACEOF
3679
3680 fi
3681
3682 done
3683
3684
3685
3686 if test "${ac_cv_header_minix_config_h+set}" = set; then
3687 { $as_echo "$as_me:$LINENO: checking for minix/config.h" >&5
3688 $as_echo_n "checking for minix/config.h... " >&6; }
3689 if test "${ac_cv_header_minix_config_h+set}" = set; then
3690 $as_echo_n "(cached) " >&6
3691 fi
3692 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
3693 $as_echo "$ac_cv_header_minix_config_h" >&6; }
3694 else
3695 # Is the header compilable?
3696 { $as_echo "$as_me:$LINENO: checking minix/config.h usability" >&5
3697 $as_echo_n "checking minix/config.h usability... " >&6; }
3698 cat >conftest.$ac_ext <<_ACEOF
3699 /* confdefs.h. */
3700 _ACEOF
3701 cat confdefs.h >>conftest.$ac_ext
3702 cat >>conftest.$ac_ext <<_ACEOF
3703 /* end confdefs.h. */
3704 $ac_includes_default
3705 #include <minix/config.h>
3706 _ACEOF
3707 rm -f conftest.$ac_objext
3708 if { (ac_try="$ac_compile"
3709 case "(($ac_try" in
3710 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3711 *) ac_try_echo=$ac_try;;
3712 esac
3713 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3714 $as_echo "$ac_try_echo") >&5
3715 (eval "$ac_compile") 2>conftest.er1
3716 ac_status=$?
3717 grep -v '^ *+' conftest.er1 >conftest.err
3718 rm -f conftest.er1
3719 cat conftest.err >&5
3720 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3721 (exit $ac_status); } && {
3722 test -z "$ac_c_werror_flag" ||
3723 test ! -s conftest.err
3724 } && test -s conftest.$ac_objext; then
3725 ac_header_compiler=yes
3726 else
3727 $as_echo "$as_me: failed program was:" >&5
3728 sed 's/^/| /' conftest.$ac_ext >&5
3729
3730 ac_header_compiler=no
3731 fi
3732
3733 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3734 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3735 $as_echo "$ac_header_compiler" >&6; }
3736
3737 # Is the header present?
3738 { $as_echo "$as_me:$LINENO: checking minix/config.h presence" >&5
3739 $as_echo_n "checking minix/config.h presence... " >&6; }
3740 cat >conftest.$ac_ext <<_ACEOF
3741 /* confdefs.h. */
3742 _ACEOF
3743 cat confdefs.h >>conftest.$ac_ext
3744 cat >>conftest.$ac_ext <<_ACEOF
3745 /* end confdefs.h. */
3746 #include <minix/config.h>
3747 _ACEOF
3748 if { (ac_try="$ac_cpp conftest.$ac_ext"
3749 case "(($ac_try" in
3750 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3751 *) ac_try_echo=$ac_try;;
3752 esac
3753 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3754 $as_echo "$ac_try_echo") >&5
3755 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3756 ac_status=$?
3757 grep -v '^ *+' conftest.er1 >conftest.err
3758 rm -f conftest.er1
3759 cat conftest.err >&5
3760 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3761 (exit $ac_status); } >/dev/null && {
3762 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3763 test ! -s conftest.err
3764 }; then
3765 ac_header_preproc=yes
3766 else
3767 $as_echo "$as_me: failed program was:" >&5
3768 sed 's/^/| /' conftest.$ac_ext >&5
3769
3770 ac_header_preproc=no
3771 fi
3772
3773 rm -f conftest.err conftest.$ac_ext
3774 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3775 $as_echo "$ac_header_preproc" >&6; }
3776
3777 # So? What about this header?
3778 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
3779 yes:no: )
3780 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&5
3781 $as_echo "$as_me: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
3782 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the compiler's result" >&5
3783 $as_echo "$as_me: WARNING: minix/config.h: proceeding with the compiler's result" >&2;}
3784 ac_header_preproc=yes
3785 ;;
3786 no:yes:* )
3787 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: present but cannot be compiled" >&5
3788 $as_echo "$as_me: WARNING: minix/config.h: present but cannot be compiled" >&2;}
3789 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: check for missing prerequisite headers?" >&5
3790 $as_echo "$as_me: WARNING: minix/config.h: check for missing prerequisite headers?" >&2;}
3791 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: see the Autoconf documentation" >&5
3792 $as_echo "$as_me: WARNING: minix/config.h: see the Autoconf documentation" >&2;}
3793 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&5
3794 $as_echo "$as_me: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&2;}
3795 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the preprocessor's result" >&5
3796 $as_echo "$as_me: WARNING: minix/config.h: proceeding with the preprocessor's result" >&2;}
3797 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: in the future, the compiler will take precedence" >&5
3798 $as_echo "$as_me: WARNING: minix/config.h: in the future, the compiler will take precedence" >&2;}
3799 ( cat <<\_ASBOX
3800 ## ---------------------------------------- ##
3801 ## Report this to unbound-bugs@nlnetlabs.nl ##
3802 ## ---------------------------------------- ##
3803 _ASBOX
3804 ) | sed "s/^/$as_me: WARNING: /" >&2
3805 ;;
3806 esac
3807 { $as_echo "$as_me:$LINENO: checking for minix/config.h" >&5
3808 $as_echo_n "checking for minix/config.h... " >&6; }
3809 if test "${ac_cv_header_minix_config_h+set}" = set; then
3810 $as_echo_n "(cached) " >&6
3811 else
3812 ac_cv_header_minix_config_h=$ac_header_preproc
3813 fi
3814 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
3815 $as_echo "$ac_cv_header_minix_config_h" >&6; }
3816
3817 fi
3818 if test "x$ac_cv_header_minix_config_h" = x""yes; then
3819 MINIX=yes
3820 else
3821 MINIX=
3822 fi
3823
3824
3825 if test "$MINIX" = yes; then
3826
3827 cat >>confdefs.h <<\_ACEOF
3828 #define _POSIX_SOURCE 1
3829 _ACEOF
3830
3831
3832 cat >>confdefs.h <<\_ACEOF
3833 #define _POSIX_1_SOURCE 2
3834 _ACEOF
3835
3836
3837 cat >>confdefs.h <<\_ACEOF
3838 #define _MINIX 1
3839 _ACEOF
3840
3841 fi
3842
3843
3844
3845 { $as_echo "$as_me:$LINENO: checking whether it is safe to define __EXTENSIONS__" >&5
3846 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
3847 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then
3848 $as_echo_n "(cached) " >&6
3849 else
3850 cat >conftest.$ac_ext <<_ACEOF
3851 /* confdefs.h. */
3852 _ACEOF
3853 cat confdefs.h >>conftest.$ac_ext
3854 cat >>conftest.$ac_ext <<_ACEOF
3855 /* end confdefs.h. */
3856
3857 # define __EXTENSIONS__ 1
3858 $ac_includes_default
3859 int
3860 main ()
3861 {
3862
3863 ;
3864 return 0;
3865 }
3866 _ACEOF
3867 rm -f conftest.$ac_objext
3868 if { (ac_try="$ac_compile"
3869 case "(($ac_try" in
3870 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3871 *) ac_try_echo=$ac_try;;
3872 esac
3873 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3874 $as_echo "$ac_try_echo") >&5
3875 (eval "$ac_compile") 2>conftest.er1
3876 ac_status=$?
3877 grep -v '^ *+' conftest.er1 >conftest.err
3878 rm -f conftest.er1
3879 cat conftest.err >&5
3880 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3881 (exit $ac_status); } && {
3882 test -z "$ac_c_werror_flag" ||
3883 test ! -s conftest.err
3884 } && test -s conftest.$ac_objext; then
3885 ac_cv_safe_to_define___extensions__=yes
3886 else
3887 $as_echo "$as_me: failed program was:" >&5
3888 sed 's/^/| /' conftest.$ac_ext >&5
3889
3890 ac_cv_safe_to_define___extensions__=no
3891 fi
3892
3893 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3894 fi
3895 { $as_echo "$as_me:$LINENO: result: $ac_cv_safe_to_define___extensions__" >&5
3896 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
3897 test $ac_cv_safe_to_define___extensions__ = yes &&
3898 cat >>confdefs.h <<\_ACEOF
3899 #define __EXTENSIONS__ 1
3900 _ACEOF
3901
3902 cat >>confdefs.h <<\_ACEOF
33293903 #define _ALL_SOURCE 1
33303904 _ACEOF
33313905
3332 else
3333 { echo "$as_me:$LINENO: result: no" >&5
3334 echo "${ECHO_T}no" >&6; }
3335 fi
3336 rm -f conftest*
3906 cat >>confdefs.h <<\_ACEOF
3907 #define _GNU_SOURCE 1
3908 _ACEOF
3909
3910 cat >>confdefs.h <<\_ACEOF
3911 #define _POSIX_PTHREAD_SEMANTICS 1
3912 _ACEOF
3913
3914 cat >>confdefs.h <<\_ACEOF
3915 #define _TANDEM_SOURCE 1
3916 _ACEOF
33373917
33383918
33393919
34814061
34824062
34834063 # Checks for typedefs, structures, and compiler characteristics.
3484 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
3485 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
4064 { $as_echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
4065 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
34864066 if test "${ac_cv_c_const+set}" = set; then
3487 echo $ECHO_N "(cached) $ECHO_C" >&6
4067 $as_echo_n "(cached) " >&6
34884068 else
34894069 cat >conftest.$ac_ext <<_ACEOF
34904070 /* confdefs.h. */
35564136 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35574137 *) ac_try_echo=$ac_try;;
35584138 esac
3559 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4139 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4140 $as_echo "$ac_try_echo") >&5
35604141 (eval "$ac_compile") 2>conftest.er1
35614142 ac_status=$?
35624143 grep -v '^ *+' conftest.er1 >conftest.err
35634144 rm -f conftest.er1
35644145 cat conftest.err >&5
3565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4146 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
35664147 (exit $ac_status); } && {
35674148 test -z "$ac_c_werror_flag" ||
35684149 test ! -s conftest.err
35694150 } && test -s conftest.$ac_objext; then
35704151 ac_cv_c_const=yes
35714152 else
3572 echo "$as_me: failed program was:" >&5
4153 $as_echo "$as_me: failed program was:" >&5
35734154 sed 's/^/| /' conftest.$ac_ext >&5
35744155
35754156 ac_cv_c_const=no
35774158
35784159 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35794160 fi
3580 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
3581 echo "${ECHO_T}$ac_cv_c_const" >&6; }
4161 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
4162 $as_echo "$ac_cv_c_const" >&6; }
35824163 if test $ac_cv_c_const = no; then
35834164
35844165 cat >>confdefs.h <<\_ACEOF
3585 #define const
4166 #define const /**/
35864167 _ACEOF
35874168
35884169 fi
35954176
35964177
35974178
3598 { echo "$as_me:$LINENO: checking whether $CC supports -g" >&5
3599 echo $ECHO_N "checking whether $CC supports -g... $ECHO_C" >&6; }
4179 { $as_echo "$as_me:$LINENO: checking whether $CC supports -g" >&5
4180 $as_echo_n "checking whether $CC supports -g... " >&6; }
36004181 cache=`echo g | sed 'y%.=/+-%___p_%'`
36014182 if { as_var=cv_prog_cc_flag_$cache; eval "test \"\${$as_var+set}\" = set"; }; then
3602 echo $ECHO_N "(cached) $ECHO_C" >&6
4183 $as_echo_n "(cached) " >&6
36034184 else
36044185
36054186 echo 'void f(){}' >conftest.c
36134194 fi
36144195
36154196 if eval "test \"`echo '$cv_prog_cc_flag_'$cache`\" = yes"; then
3616 { echo "$as_me:$LINENO: result: yes" >&5
3617 echo "${ECHO_T}yes" >&6; }
4197 { $as_echo "$as_me:$LINENO: result: yes" >&5
4198 $as_echo "yes" >&6; }
36184199 :
36194200 CFLAGS="$CFLAGS -g"
36204201 else
3621 { echo "$as_me:$LINENO: result: no" >&5
3622 echo "${ECHO_T}no" >&6; }
4202 { $as_echo "$as_me:$LINENO: result: no" >&5
4203 $as_echo "no" >&6; }
36234204 :
36244205
36254206 fi
36264207
36274208
36284209
3629 { echo "$as_me:$LINENO: checking whether $CC supports -O2" >&5
3630 echo $ECHO_N "checking whether $CC supports -O2... $ECHO_C" >&6; }
4210 { $as_echo "$as_me:$LINENO: checking whether $CC supports -O2" >&5
4211 $as_echo_n "checking whether $CC supports -O2... " >&6; }
36314212 cache=`echo O2 | sed 'y%.=/+-%___p_%'`
36324213 if { as_var=cv_prog_cc_flag_$cache; eval "test \"\${$as_var+set}\" = set"; }; then
3633 echo $ECHO_N "(cached) $ECHO_C" >&6
4214 $as_echo_n "(cached) " >&6
36344215 else
36354216
36364217 echo 'void f(){}' >conftest.c
36444225 fi
36454226
36464227 if eval "test \"`echo '$cv_prog_cc_flag_'$cache`\" = yes"; then
3647 { echo "$as_me:$LINENO: result: yes" >&5
3648 echo "${ECHO_T}yes" >&6; }
4228 { $as_echo "$as_me:$LINENO: result: yes" >&5
4229 $as_echo "yes" >&6; }
36494230 :
36504231 CFLAGS="$CFLAGS -O2"
36514232 else
3652 { echo "$as_me:$LINENO: result: no" >&5
3653 echo "${ECHO_T}no" >&6; }
4233 { $as_echo "$as_me:$LINENO: result: no" >&5
4234 $as_echo "no" >&6; }
36544235 :
36554236
36564237 fi
36634244 if test -n "$ac_tool_prefix"; then
36644245 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
36654246 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3666 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3667 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4247 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4248 $as_echo_n "checking for $ac_word... " >&6; }
36684249 if test "${ac_cv_prog_CC+set}" = set; then
3669 echo $ECHO_N "(cached) $ECHO_C" >&6
4250 $as_echo_n "(cached) " >&6
36704251 else
36714252 if test -n "$CC"; then
36724253 ac_cv_prog_CC="$CC" # Let the user override the test.
36794260 for ac_exec_ext in '' $ac_executable_extensions; do
36804261 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
36814262 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3682 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4263 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
36834264 break 2
36844265 fi
36854266 done
36904271 fi
36914272 CC=$ac_cv_prog_CC
36924273 if test -n "$CC"; then
3693 { echo "$as_me:$LINENO: result: $CC" >&5
3694 echo "${ECHO_T}$CC" >&6; }
3695 else
3696 { echo "$as_me:$LINENO: result: no" >&5
3697 echo "${ECHO_T}no" >&6; }
4274 { $as_echo "$as_me:$LINENO: result: $CC" >&5
4275 $as_echo "$CC" >&6; }
4276 else
4277 { $as_echo "$as_me:$LINENO: result: no" >&5
4278 $as_echo "no" >&6; }
36984279 fi
36994280
37004281
37034284 ac_ct_CC=$CC
37044285 # Extract the first word of "gcc", so it can be a program name with args.
37054286 set dummy gcc; ac_word=$2
3706 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3707 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4287 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4288 $as_echo_n "checking for $ac_word... " >&6; }
37084289 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3709 echo $ECHO_N "(cached) $ECHO_C" >&6
4290 $as_echo_n "(cached) " >&6
37104291 else
37114292 if test -n "$ac_ct_CC"; then
37124293 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
37194300 for ac_exec_ext in '' $ac_executable_extensions; do
37204301 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
37214302 ac_cv_prog_ac_ct_CC="gcc"
3722 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4303 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
37234304 break 2
37244305 fi
37254306 done
37304311 fi
37314312 ac_ct_CC=$ac_cv_prog_ac_ct_CC
37324313 if test -n "$ac_ct_CC"; then
3733 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3734 echo "${ECHO_T}$ac_ct_CC" >&6; }
3735 else
3736 { echo "$as_me:$LINENO: result: no" >&5
3737 echo "${ECHO_T}no" >&6; }
4314 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4315 $as_echo "$ac_ct_CC" >&6; }
4316 else
4317 { $as_echo "$as_me:$LINENO: result: no" >&5
4318 $as_echo "no" >&6; }
37384319 fi
37394320
37404321 if test "x$ac_ct_CC" = x; then
37424323 else
37434324 case $cross_compiling:$ac_tool_warned in
37444325 yes:)
3745 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3746 whose name does not start with the host triplet. If you think this
3747 configuration is useful to you, please write to autoconf@gnu.org." >&5
3748 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3749 whose name does not start with the host triplet. If you think this
3750 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4326 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
4327 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
37514328 ac_tool_warned=yes ;;
37524329 esac
37534330 CC=$ac_ct_CC
37604337 if test -n "$ac_tool_prefix"; then
37614338 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
37624339 set dummy ${ac_tool_prefix}cc; ac_word=$2
3763 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3764 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4340 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4341 $as_echo_n "checking for $ac_word... " >&6; }
37654342 if test "${ac_cv_prog_CC+set}" = set; then
3766 echo $ECHO_N "(cached) $ECHO_C" >&6
4343 $as_echo_n "(cached) " >&6
37674344 else
37684345 if test -n "$CC"; then
37694346 ac_cv_prog_CC="$CC" # Let the user override the test.
37764353 for ac_exec_ext in '' $ac_executable_extensions; do
37774354 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
37784355 ac_cv_prog_CC="${ac_tool_prefix}cc"
3779 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4356 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
37804357 break 2
37814358 fi
37824359 done
37874364 fi
37884365 CC=$ac_cv_prog_CC
37894366 if test -n "$CC"; then
3790 { echo "$as_me:$LINENO: result: $CC" >&5
3791 echo "${ECHO_T}$CC" >&6; }
3792 else
3793 { echo "$as_me:$LINENO: result: no" >&5
3794 echo "${ECHO_T}no" >&6; }
4367 { $as_echo "$as_me:$LINENO: result: $CC" >&5
4368 $as_echo "$CC" >&6; }
4369 else
4370 { $as_echo "$as_me:$LINENO: result: no" >&5
4371 $as_echo "no" >&6; }
37954372 fi
37964373
37974374
38004377 if test -z "$CC"; then
38014378 # Extract the first word of "cc", so it can be a program name with args.
38024379 set dummy cc; ac_word=$2
3803 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3804 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4380 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4381 $as_echo_n "checking for $ac_word... " >&6; }
38054382 if test "${ac_cv_prog_CC+set}" = set; then
3806 echo $ECHO_N "(cached) $ECHO_C" >&6
4383 $as_echo_n "(cached) " >&6
38074384 else
38084385 if test -n "$CC"; then
38094386 ac_cv_prog_CC="$CC" # Let the user override the test.
38214398 continue
38224399 fi
38234400 ac_cv_prog_CC="cc"
3824 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4401 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
38254402 break 2
38264403 fi
38274404 done
38444421 fi
38454422 CC=$ac_cv_prog_CC
38464423 if test -n "$CC"; then
3847 { echo "$as_me:$LINENO: result: $CC" >&5
3848 echo "${ECHO_T}$CC" >&6; }
3849 else
3850 { echo "$as_me:$LINENO: result: no" >&5
3851 echo "${ECHO_T}no" >&6; }
4424 { $as_echo "$as_me:$LINENO: result: $CC" >&5
4425 $as_echo "$CC" >&6; }
4426 else
4427 { $as_echo "$as_me:$LINENO: result: no" >&5
4428 $as_echo "no" >&6; }
38524429 fi
38534430
38544431
38594436 do
38604437 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
38614438 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3862 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3863 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4439 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4440 $as_echo_n "checking for $ac_word... " >&6; }
38644441 if test "${ac_cv_prog_CC+set}" = set; then
3865 echo $ECHO_N "(cached) $ECHO_C" >&6
4442 $as_echo_n "(cached) " >&6
38664443 else
38674444 if test -n "$CC"; then
38684445 ac_cv_prog_CC="$CC" # Let the user override the test.
38754452 for ac_exec_ext in '' $ac_executable_extensions; do
38764453 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
38774454 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3878 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4455 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
38794456 break 2
38804457 fi
38814458 done
38864463 fi
38874464 CC=$ac_cv_prog_CC
38884465 if test -n "$CC"; then
3889 { echo "$as_me:$LINENO: result: $CC" >&5
3890 echo "${ECHO_T}$CC" >&6; }
3891 else
3892 { echo "$as_me:$LINENO: result: no" >&5
3893 echo "${ECHO_T}no" >&6; }
4466 { $as_echo "$as_me:$LINENO: result: $CC" >&5
4467 $as_echo "$CC" >&6; }
4468 else
4469 { $as_echo "$as_me:$LINENO: result: no" >&5
4470 $as_echo "no" >&6; }
38944471 fi
38954472
38964473
39034480 do
39044481 # Extract the first word of "$ac_prog", so it can be a program name with args.
39054482 set dummy $ac_prog; ac_word=$2
3906 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3907 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4483 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4484 $as_echo_n "checking for $ac_word... " >&6; }
39084485 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3909 echo $ECHO_N "(cached) $ECHO_C" >&6
4486 $as_echo_n "(cached) " >&6
39104487 else
39114488 if test -n "$ac_ct_CC"; then
39124489 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
39194496 for ac_exec_ext in '' $ac_executable_extensions; do
39204497 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
39214498 ac_cv_prog_ac_ct_CC="$ac_prog"
3922 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4499 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
39234500 break 2
39244501 fi
39254502 done
39304507 fi
39314508 ac_ct_CC=$ac_cv_prog_ac_ct_CC
39324509 if test -n "$ac_ct_CC"; then
3933 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3934 echo "${ECHO_T}$ac_ct_CC" >&6; }
3935 else
3936 { echo "$as_me:$LINENO: result: no" >&5
3937 echo "${ECHO_T}no" >&6; }
4510 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4511 $as_echo "$ac_ct_CC" >&6; }
4512 else
4513 { $as_echo "$as_me:$LINENO: result: no" >&5
4514 $as_echo "no" >&6; }
39384515 fi
39394516
39404517
39464523 else
39474524 case $cross_compiling:$ac_tool_warned in
39484525 yes:)
3949 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3950 whose name does not start with the host triplet. If you think this
3951 configuration is useful to you, please write to autoconf@gnu.org." >&5
3952 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3953 whose name does not start with the host triplet. If you think this
3954 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4526 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
4527 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
39554528 ac_tool_warned=yes ;;
39564529 esac
39574530 CC=$ac_ct_CC
39614534 fi
39624535
39634536
3964 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
4537 test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
4538 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4539 { { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
39654540 See \`config.log' for more details." >&5
3966 echo "$as_me: error: no acceptable C compiler found in \$PATH
4541 $as_echo "$as_me: error: no acceptable C compiler found in \$PATH
39674542 See \`config.log' for more details." >&2;}
3968 { (exit 1); exit 1; }; }
4543 { (exit 1); exit 1; }; }; }
39694544
39704545 # Provide some information about the compiler.
3971 echo "$as_me:$LINENO: checking for C compiler version" >&5
3972 ac_compiler=`set X $ac_compile; echo $2`
4546 $as_echo "$as_me:$LINENO: checking for C compiler version" >&5
4547 set X $ac_compile
4548 ac_compiler=$2
39734549 { (ac_try="$ac_compiler --version >&5"
39744550 case "(($ac_try" in
39754551 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39764552 *) ac_try_echo=$ac_try;;
39774553 esac
3978 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4554 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4555 $as_echo "$ac_try_echo") >&5
39794556 (eval "$ac_compiler --version >&5") 2>&5
39804557 ac_status=$?
3981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4558 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
39824559 (exit $ac_status); }
39834560 { (ac_try="$ac_compiler -v >&5"
39844561 case "(($ac_try" in
39854562 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39864563 *) ac_try_echo=$ac_try;;
39874564 esac
3988 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4565 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4566 $as_echo "$ac_try_echo") >&5
39894567 (eval "$ac_compiler -v >&5") 2>&5
39904568 ac_status=$?
3991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4569 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
39924570 (exit $ac_status); }
39934571 { (ac_try="$ac_compiler -V >&5"
39944572 case "(($ac_try" in
39954573 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39964574 *) ac_try_echo=$ac_try;;
39974575 esac
3998 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4576 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4577 $as_echo "$ac_try_echo") >&5
39994578 (eval "$ac_compiler -V >&5") 2>&5
40004579 ac_status=$?
4001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4580 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
40024581 (exit $ac_status); }
40034582
4004 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
4005 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
4583 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
4584 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
40064585 if test "${ac_cv_c_compiler_gnu+set}" = set; then
4007 echo $ECHO_N "(cached) $ECHO_C" >&6
4586 $as_echo_n "(cached) " >&6
40084587 else
40094588 cat >conftest.$ac_ext <<_ACEOF
40104589 /* confdefs.h. */
40304609 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40314610 *) ac_try_echo=$ac_try;;
40324611 esac
4033 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4612 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4613 $as_echo "$ac_try_echo") >&5
40344614 (eval "$ac_compile") 2>conftest.er1
40354615 ac_status=$?
40364616 grep -v '^ *+' conftest.er1 >conftest.err
40374617 rm -f conftest.er1
40384618 cat conftest.err >&5
4039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4619 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
40404620 (exit $ac_status); } && {
40414621 test -z "$ac_c_werror_flag" ||
40424622 test ! -s conftest.err
40434623 } && test -s conftest.$ac_objext; then
40444624 ac_compiler_gnu=yes
40454625 else
4046 echo "$as_me: failed program was:" >&5
4626 $as_echo "$as_me: failed program was:" >&5
40474627 sed 's/^/| /' conftest.$ac_ext >&5
40484628
40494629 ac_compiler_gnu=no
40534633 ac_cv_c_compiler_gnu=$ac_compiler_gnu
40544634
40554635 fi
4056 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
4057 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
4058 GCC=`test $ac_compiler_gnu = yes && echo yes`
4636 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
4637 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4638 if test $ac_compiler_gnu = yes; then
4639 GCC=yes
4640 else
4641 GCC=
4642 fi
40594643 ac_test_CFLAGS=${CFLAGS+set}
40604644 ac_save_CFLAGS=$CFLAGS
4061 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
4062 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
4645 { $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
4646 $as_echo_n "checking whether $CC accepts -g... " >&6; }
40634647 if test "${ac_cv_prog_cc_g+set}" = set; then
4064 echo $ECHO_N "(cached) $ECHO_C" >&6
4648 $as_echo_n "(cached) " >&6
40654649 else
40664650 ac_save_c_werror_flag=$ac_c_werror_flag
40674651 ac_c_werror_flag=yes
40884672 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40894673 *) ac_try_echo=$ac_try;;
40904674 esac
4091 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4675 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4676 $as_echo "$ac_try_echo") >&5
40924677 (eval "$ac_compile") 2>conftest.er1
40934678 ac_status=$?
40944679 grep -v '^ *+' conftest.er1 >conftest.err
40954680 rm -f conftest.er1
40964681 cat conftest.err >&5
4097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4682 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
40984683 (exit $ac_status); } && {
40994684 test -z "$ac_c_werror_flag" ||
41004685 test ! -s conftest.err
41014686 } && test -s conftest.$ac_objext; then
41024687 ac_cv_prog_cc_g=yes
41034688 else
4104 echo "$as_me: failed program was:" >&5
4689 $as_echo "$as_me: failed program was:" >&5
41054690 sed 's/^/| /' conftest.$ac_ext >&5
41064691
41074692 CFLAGS=""
41264711 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41274712 *) ac_try_echo=$ac_try;;
41284713 esac
4129 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4714 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4715 $as_echo "$ac_try_echo") >&5
41304716 (eval "$ac_compile") 2>conftest.er1
41314717 ac_status=$?
41324718 grep -v '^ *+' conftest.er1 >conftest.err
41334719 rm -f conftest.er1
41344720 cat conftest.err >&5
4135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4721 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
41364722 (exit $ac_status); } && {
41374723 test -z "$ac_c_werror_flag" ||
41384724 test ! -s conftest.err
41394725 } && test -s conftest.$ac_objext; then
41404726 :
41414727 else
4142 echo "$as_me: failed program was:" >&5
4728 $as_echo "$as_me: failed program was:" >&5
41434729 sed 's/^/| /' conftest.$ac_ext >&5
41444730
41454731 ac_c_werror_flag=$ac_save_c_werror_flag
41654751 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41664752 *) ac_try_echo=$ac_try;;
41674753 esac
4168 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4754 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4755 $as_echo "$ac_try_echo") >&5
41694756 (eval "$ac_compile") 2>conftest.er1
41704757 ac_status=$?
41714758 grep -v '^ *+' conftest.er1 >conftest.err
41724759 rm -f conftest.er1
41734760 cat conftest.err >&5
4174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4761 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
41754762 (exit $ac_status); } && {
41764763 test -z "$ac_c_werror_flag" ||
41774764 test ! -s conftest.err
41784765 } && test -s conftest.$ac_objext; then
41794766 ac_cv_prog_cc_g=yes
41804767 else
4181 echo "$as_me: failed program was:" >&5
4768 $as_echo "$as_me: failed program was:" >&5
41824769 sed 's/^/| /' conftest.$ac_ext >&5
41834770
41844771
41934780 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
41944781 ac_c_werror_flag=$ac_save_c_werror_flag
41954782 fi
4196 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
4197 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
4783 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
4784 $as_echo "$ac_cv_prog_cc_g" >&6; }
41984785 if test "$ac_test_CFLAGS" = set; then
41994786 CFLAGS=$ac_save_CFLAGS
42004787 elif test $ac_cv_prog_cc_g = yes; then
42104797 CFLAGS=
42114798 fi
42124799 fi
4213 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
4214 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
4800 { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
4801 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
42154802 if test "${ac_cv_prog_cc_c89+set}" = set; then
4216 echo $ECHO_N "(cached) $ECHO_C" >&6
4803 $as_echo_n "(cached) " >&6
42174804 else
42184805 ac_cv_prog_cc_c89=no
42194806 ac_save_CC=$CC
42844871 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42854872 *) ac_try_echo=$ac_try;;
42864873 esac
4287 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4874 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4875 $as_echo "$ac_try_echo") >&5
42884876 (eval "$ac_compile") 2>conftest.er1
42894877 ac_status=$?
42904878 grep -v '^ *+' conftest.er1 >conftest.err
42914879 rm -f conftest.er1
42924880 cat conftest.err >&5
4293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4881 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
42944882 (exit $ac_status); } && {
42954883 test -z "$ac_c_werror_flag" ||
42964884 test ! -s conftest.err
42974885 } && test -s conftest.$ac_objext; then
42984886 ac_cv_prog_cc_c89=$ac_arg
42994887 else
4300 echo "$as_me: failed program was:" >&5
4888 $as_echo "$as_me: failed program was:" >&5
43014889 sed 's/^/| /' conftest.$ac_ext >&5
43024890
43034891
43134901 # AC_CACHE_VAL
43144902 case "x$ac_cv_prog_cc_c89" in
43154903 x)
4316 { echo "$as_me:$LINENO: result: none needed" >&5
4317 echo "${ECHO_T}none needed" >&6; } ;;
4904 { $as_echo "$as_me:$LINENO: result: none needed" >&5
4905 $as_echo "none needed" >&6; } ;;
43184906 xno)
4319 { echo "$as_me:$LINENO: result: unsupported" >&5
4320 echo "${ECHO_T}unsupported" >&6; } ;;
4907 { $as_echo "$as_me:$LINENO: result: unsupported" >&5
4908 $as_echo "unsupported" >&6; } ;;
43214909 *)
43224910 CC="$CC $ac_cv_prog_cc_c89"
4323 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
4324 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
4911 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
4912 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
43254913 esac
43264914
43274915
43324920 ac_compiler_gnu=$ac_cv_c_compiler_gnu
43334921
43344922
4335 { echo "$as_me:$LINENO: checking $CC dependency flag" >&5
4336 echo $ECHO_N "checking $CC dependency flag... $ECHO_C" >&6; }
4923 { $as_echo "$as_me:$LINENO: checking $CC dependency flag" >&5
4924 $as_echo_n "checking $CC dependency flag... " >&6; }
43374925 echo 'void f(){}' >conftest.c
43384926 if test "`$CC -MM conftest.c 2>&1`" = "conftest.o: conftest.c"; then
43394927 DEPFLAG="-MM"
43444932 DEPFLAG="-MM" # dunno do something
43454933 fi
43464934 fi
4347 { echo "$as_me:$LINENO: result: $DEPFLAG" >&5
4348 echo "${ECHO_T}$DEPFLAG" >&6; }
4935 { $as_echo "$as_me:$LINENO: result: $DEPFLAG" >&5
4936 $as_echo "$DEPFLAG" >&6; }
43494937 rm -f conftest.c
43504938
43514939
4352 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4353 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
4354 if test "${ac_cv_header_stdc+set}" = set; then
4355 echo $ECHO_N "(cached) $ECHO_C" >&6
4940
4941
4942
4943 { $as_echo "$as_me:$LINENO: checking whether $CC supports -Werror" >&5
4944 $as_echo_n "checking whether $CC supports -Werror... " >&6; }
4945 cache=`echo Werror | sed 'y%.=/+-%___p_%'`
4946 if { as_var=cv_prog_cc_flag_$cache; eval "test \"\${$as_var+set}\" = set"; }; then
4947 $as_echo_n "(cached) " >&6
4948 else
4949
4950 echo 'void f(){}' >conftest.c
4951 if test -z "`$CC -Werror -c conftest.c 2>&1`"; then
4952 eval "cv_prog_cc_flag_$cache=yes"
4953 else
4954 eval "cv_prog_cc_flag_$cache=no"
4955 fi
4956 rm -f conftest conftest.o conftest.c
4957
4958 fi
4959
4960 if eval "test \"`echo '$cv_prog_cc_flag_'$cache`\" = yes"; then
4961 { $as_echo "$as_me:$LINENO: result: yes" >&5
4962 $as_echo "yes" >&6; }
4963 :
4964 ERRFLAG="-Werror"
4965 else
4966 { $as_echo "$as_me:$LINENO: result: no" >&5
4967 $as_echo "no" >&6; }
4968 :
4969 ERRFLAG="-errwarn"
4970 fi
4971
4972
4973
4974 { $as_echo "$as_me:$LINENO: checking whether $CC supports -Wall" >&5
4975 $as_echo_n "checking whether $CC supports -Wall... " >&6; }
4976 cache=`echo Wall | sed 'y%.=/+-%___p_%'`
4977 if { as_var=cv_prog_cc_flag_$cache; eval "test \"\${$as_var+set}\" = set"; }; then
4978 $as_echo_n "(cached) " >&6
4979 else
4980
4981 echo 'void f(){}' >conftest.c
4982 if test -z "`$CC -Wall -c conftest.c 2>&1`"; then
4983 eval "cv_prog_cc_flag_$cache=yes"
4984 else
4985 eval "cv_prog_cc_flag_$cache=no"
4986 fi
4987 rm -f conftest conftest.o conftest.c
4988
4989 fi
4990
4991 if eval "test \"`echo '$cv_prog_cc_flag_'$cache`\" = yes"; then
4992 { $as_echo "$as_me:$LINENO: result: yes" >&5
4993 $as_echo "yes" >&6; }
4994 :
4995 ERRFLAG="$ERRFLAG -Wall"
4996 else
4997 { $as_echo "$as_me:$LINENO: result: no" >&5
4998 $as_echo "no" >&6; }
4999 :
5000 ERRFLAG="$ERRFLAG -errfmt"
5001 fi
5002
5003
5004
5005
5006
5007 { $as_echo "$as_me:$LINENO: checking whether $CC supports -std=c99" >&5
5008 $as_echo_n "checking whether $CC supports -std=c99... " >&6; }
5009 cache=`echo std=c99 | sed 'y%.=/+-%___p_%'`
5010 if { as_var=cv_prog_cc_flag_$cache; eval "test \"\${$as_var+set}\" = set"; }; then
5011 $as_echo_n "(cached) " >&6
5012 else
5013
5014 echo 'void f(){}' >conftest.c
5015 if test -z "`$CC -std=c99 -c conftest.c 2>&1`"; then
5016 eval "cv_prog_cc_flag_$cache=yes"
5017 else
5018 eval "cv_prog_cc_flag_$cache=no"
5019 fi
5020 rm -f conftest conftest.o conftest.c
5021
5022 fi
5023
5024 if eval "test \"`echo '$cv_prog_cc_flag_'$cache`\" = yes"; then
5025 { $as_echo "$as_me:$LINENO: result: yes" >&5
5026 $as_echo "yes" >&6; }
5027 :
5028 C99FLAG="-std=c99"
5029 else
5030 { $as_echo "$as_me:$LINENO: result: no" >&5
5031 $as_echo "no" >&6; }
5032 :
5033
5034 fi
5035
5036
5037
5038 { $as_echo "$as_me:$LINENO: checking whether $CC supports -xc99" >&5
5039 $as_echo_n "checking whether $CC supports -xc99... " >&6; }
5040 cache=`echo xc99 | sed 'y%.=/+-%___p_%'`
5041 if { as_var=cv_prog_cc_flag_$cache; eval "test \"\${$as_var+set}\" = set"; }; then
5042 $as_echo_n "(cached) " >&6
5043 else
5044
5045 echo 'void f(){}' >conftest.c
5046 if test -z "`$CC -xc99 -c conftest.c 2>&1`"; then
5047 eval "cv_prog_cc_flag_$cache=yes"
5048 else
5049 eval "cv_prog_cc_flag_$cache=no"
5050 fi
5051 rm -f conftest conftest.o conftest.c
5052
5053 fi
5054
5055 if eval "test \"`echo '$cv_prog_cc_flag_'$cache`\" = yes"; then
5056 { $as_echo "$as_me:$LINENO: result: yes" >&5
5057 $as_echo "yes" >&6; }
5058 :
5059 C99FLAG="-xc99"
5060 else
5061 { $as_echo "$as_me:$LINENO: result: no" >&5
5062 $as_echo "no" >&6; }
5063 :
5064
5065 fi
5066
5067
5068
5069
5070 for ac_header in getopt.h time.h
5071 do
5072 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5073 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
5074 $as_echo_n "checking for $ac_header... " >&6; }
5075 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5076 $as_echo_n "(cached) " >&6
43565077 else
43575078 cat >conftest.$ac_ext <<_ACEOF
43585079 /* confdefs.h. */
43605081 cat confdefs.h >>conftest.$ac_ext
43615082 cat >>conftest.$ac_ext <<_ACEOF
43625083 /* end confdefs.h. */
4363 #include <stdlib.h>
4364 #include <stdarg.h>
4365 #include <string.h>
4366 #include <float.h>
4367
4368 int
4369 main ()
4370 {
4371
4372 ;
4373 return 0;
4374 }
5084 $ac_includes_default
5085
5086 #include <$ac_header>
43755087 _ACEOF
43765088 rm -f conftest.$ac_objext
43775089 if { (ac_try="$ac_compile"
43795091 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43805092 *) ac_try_echo=$ac_try;;
43815093 esac
4382 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5094 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5095 $as_echo "$ac_try_echo") >&5
43835096 (eval "$ac_compile") 2>conftest.er1
43845097 ac_status=$?
43855098 grep -v '^ *+' conftest.er1 >conftest.err
43865099 rm -f conftest.er1
43875100 cat conftest.err >&5
4388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4389 (exit $ac_status); } && {
4390 test -z "$ac_c_werror_flag" ||
4391 test ! -s conftest.err
4392 } && test -s conftest.$ac_objext; then
4393 ac_cv_header_stdc=yes
4394 else
4395 echo "$as_me: failed program was:" >&5
4396 sed 's/^/| /' conftest.$ac_ext >&5
4397
4398 ac_cv_header_stdc=no
4399 fi
4400
4401 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4402
4403 if test $ac_cv_header_stdc = yes; then
4404 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4405 cat >conftest.$ac_ext <<_ACEOF
4406 /* confdefs.h. */
4407 _ACEOF
4408 cat confdefs.h >>conftest.$ac_ext
4409 cat >>conftest.$ac_ext <<_ACEOF
4410 /* end confdefs.h. */
4411 #include <string.h>
4412
4413 _ACEOF
4414 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4415 $EGREP "memchr" >/dev/null 2>&1; then
4416 :
4417 else
4418 ac_cv_header_stdc=no
4419 fi
4420 rm -f conftest*
4421
4422 fi
4423
4424 if test $ac_cv_header_stdc = yes; then
4425 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4426 cat >conftest.$ac_ext <<_ACEOF
4427 /* confdefs.h. */
4428 _ACEOF
4429 cat confdefs.h >>conftest.$ac_ext
4430 cat >>conftest.$ac_ext <<_ACEOF
4431 /* end confdefs.h. */
4432 #include <stdlib.h>
4433
4434 _ACEOF
4435 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4436 $EGREP "free" >/dev/null 2>&1; then
4437 :
4438 else
4439 ac_cv_header_stdc=no
4440 fi
4441 rm -f conftest*
4442
4443 fi
4444
4445 if test $ac_cv_header_stdc = yes; then
4446 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4447 if test "$cross_compiling" = yes; then
4448 :
4449 else
4450 cat >conftest.$ac_ext <<_ACEOF
4451 /* confdefs.h. */
4452 _ACEOF
4453 cat confdefs.h >>conftest.$ac_ext
4454 cat >>conftest.$ac_ext <<_ACEOF
4455 /* end confdefs.h. */
4456 #include <ctype.h>
4457 #include <stdlib.h>
4458 #if ((' ' & 0x0FF) == 0x020)
4459 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4460 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4461 #else
4462 # define ISLOWER(c) \
4463 (('a' <= (c) && (c) <= 'i') \
4464 || ('j' <= (c) && (c) <= 'r') \
4465 || ('s' <= (c) && (c) <= 'z'))
4466 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4467 #endif
4468
4469 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4470 int
4471 main ()
4472 {
4473 int i;
4474 for (i = 0; i < 256; i++)
4475 if (XOR (islower (i), ISLOWER (i))
4476 || toupper (i) != TOUPPER (i))
4477 return 2;
4478 return 0;
4479 }
4480 _ACEOF
4481 rm -f conftest$ac_exeext
4482 if { (ac_try="$ac_link"
4483 case "(($ac_try" in
4484 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4485 *) ac_try_echo=$ac_try;;
4486 esac
4487 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4488 (eval "$ac_link") 2>&5
4489 ac_status=$?
4490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4491 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4492 { (case "(($ac_try" in
4493 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4494 *) ac_try_echo=$ac_try;;
4495 esac
4496 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4497 (eval "$ac_try") 2>&5
4498 ac_status=$?
4499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4500 (exit $ac_status); }; }; then
4501 :
4502 else
4503 echo "$as_me: program exited with status $ac_status" >&5
4504 echo "$as_me: failed program was:" >&5
4505 sed 's/^/| /' conftest.$ac_ext >&5
4506
4507 ( exit $ac_status )
4508 ac_cv_header_stdc=no
4509 fi
4510 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4511 fi
4512
4513
4514 fi
4515 fi
4516 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4517 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
4518 if test $ac_cv_header_stdc = yes; then
4519
4520 cat >>confdefs.h <<\_ACEOF
4521 #define STDC_HEADERS 1
4522 _ACEOF
4523
4524 fi
4525
4526 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4527
4528
4529
4530
4531
4532
4533
4534
4535
4536 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4537 inttypes.h stdint.h unistd.h
4538 do
4539 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4540 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4541 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4542 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4543 echo $ECHO_N "(cached) $ECHO_C" >&6
4544 else
4545 cat >conftest.$ac_ext <<_ACEOF
4546 /* confdefs.h. */
4547 _ACEOF
4548 cat confdefs.h >>conftest.$ac_ext
4549 cat >>conftest.$ac_ext <<_ACEOF
4550 /* end confdefs.h. */
4551 $ac_includes_default
4552
4553 #include <$ac_header>
4554 _ACEOF
4555 rm -f conftest.$ac_objext
4556 if { (ac_try="$ac_compile"
4557 case "(($ac_try" in
4558 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4559 *) ac_try_echo=$ac_try;;
4560 esac
4561 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4562 (eval "$ac_compile") 2>conftest.er1
4563 ac_status=$?
4564 grep -v '^ *+' conftest.er1 >conftest.err
4565 rm -f conftest.er1
4566 cat conftest.err >&5
4567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5101 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
45685102 (exit $ac_status); } && {
45695103 test -z "$ac_c_werror_flag" ||
45705104 test ! -s conftest.err
45715105 } && test -s conftest.$ac_objext; then
45725106 eval "$as_ac_Header=yes"
45735107 else
4574 echo "$as_me: failed program was:" >&5
5108 $as_echo "$as_me: failed program was:" >&5
45755109 sed 's/^/| /' conftest.$ac_ext >&5
45765110
45775111 eval "$as_ac_Header=no"
45795113
45805114 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
45815115 fi
4582 ac_res=`eval echo '${'$as_ac_Header'}'`
4583 { echo "$as_me:$LINENO: result: $ac_res" >&5
4584 echo "${ECHO_T}$ac_res" >&6; }
4585 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5116 ac_res=`eval 'as_val=${'$as_ac_Header'}
5117 $as_echo "$as_val"'`
5118 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
5119 $as_echo "$ac_res" >&6; }
5120 as_val=`eval 'as_val=${'$as_ac_Header'}
5121 $as_echo "$as_val"'`
5122 if test "x$as_val" = x""yes; then
45865123 cat >>confdefs.h <<_ACEOF
4587 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5124 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
45885125 _ACEOF
45895126
45905127 fi
45955132
45965133
45975134
4598 { echo "$as_me:$LINENO: checking whether $CC supports -Werror" >&5
4599 echo $ECHO_N "checking whether $CC supports -Werror... $ECHO_C" >&6; }
4600 cache=`echo Werror | sed 'y%.=/+-%___p_%'`
4601 if { as_var=cv_prog_cc_flag_$cache; eval "test \"\${$as_var+set}\" = set"; }; then
4602 echo $ECHO_N "(cached) $ECHO_C" >&6
4603 else
4604
4605 echo 'void f(){}' >conftest.c
4606 if test -z "`$CC -Werror -c conftest.c 2>&1`"; then
4607 eval "cv_prog_cc_flag_$cache=yes"
4608 else
4609 eval "cv_prog_cc_flag_$cache=no"
4610 fi
4611 rm -f conftest conftest.o conftest.c
4612
4613 fi
4614
4615 if eval "test \"`echo '$cv_prog_cc_flag_'$cache`\" = yes"; then
4616 { echo "$as_me:$LINENO: result: yes" >&5
4617 echo "${ECHO_T}yes" >&6; }
4618 :
4619 ERRFLAG="-Werror"
4620 else
4621 { echo "$as_me:$LINENO: result: no" >&5
4622 echo "${ECHO_T}no" >&6; }
4623 :
4624 ERRFLAG="-errwarn"
4625 fi
4626
4627
4628
4629 { echo "$as_me:$LINENO: checking whether $CC supports -Wall" >&5
4630 echo $ECHO_N "checking whether $CC supports -Wall... $ECHO_C" >&6; }
4631 cache=`echo Wall | sed 'y%.=/+-%___p_%'`
4632 if { as_var=cv_prog_cc_flag_$cache; eval "test \"\${$as_var+set}\" = set"; }; then
4633 echo $ECHO_N "(cached) $ECHO_C" >&6
4634 else
4635
4636 echo 'void f(){}' >conftest.c
4637 if test -z "`$CC -Wall -c conftest.c 2>&1`"; then
4638 eval "cv_prog_cc_flag_$cache=yes"
4639 else
4640 eval "cv_prog_cc_flag_$cache=no"
4641 fi
4642 rm -f conftest conftest.o conftest.c
4643
4644 fi
4645
4646 if eval "test \"`echo '$cv_prog_cc_flag_'$cache`\" = yes"; then
4647 { echo "$as_me:$LINENO: result: yes" >&5
4648 echo "${ECHO_T}yes" >&6; }
4649 :
4650 ERRFLAG="$ERRFLAG -Wall"
4651 else
4652 { echo "$as_me:$LINENO: result: no" >&5
4653 echo "${ECHO_T}no" >&6; }
4654 :
4655 ERRFLAG="$ERRFLAG -errfmt"
4656 fi
4657
4658
4659
4660
4661
4662 { echo "$as_me:$LINENO: checking whether $CC supports -std=c99" >&5
4663 echo $ECHO_N "checking whether $CC supports -std=c99... $ECHO_C" >&6; }
4664 cache=`echo std=c99 | sed 'y%.=/+-%___p_%'`
4665 if { as_var=cv_prog_cc_flag_$cache; eval "test \"\${$as_var+set}\" = set"; }; then
4666 echo $ECHO_N "(cached) $ECHO_C" >&6
4667 else
4668
4669 echo 'void f(){}' >conftest.c
4670 if test -z "`$CC -std=c99 -c conftest.c 2>&1`"; then
4671 eval "cv_prog_cc_flag_$cache=yes"
4672 else
4673 eval "cv_prog_cc_flag_$cache=no"
4674 fi
4675 rm -f conftest conftest.o conftest.c
4676
4677 fi
4678
4679 if eval "test \"`echo '$cv_prog_cc_flag_'$cache`\" = yes"; then
4680 { echo "$as_me:$LINENO: result: yes" >&5
4681 echo "${ECHO_T}yes" >&6; }
4682 :
4683 C99FLAG="-std=c99"
4684 else
4685 { echo "$as_me:$LINENO: result: no" >&5
4686 echo "${ECHO_T}no" >&6; }
4687 :
4688
4689 fi
4690
4691
4692
4693 { echo "$as_me:$LINENO: checking whether $CC supports -xc99" >&5
4694 echo $ECHO_N "checking whether $CC supports -xc99... $ECHO_C" >&6; }
4695 cache=`echo xc99 | sed 'y%.=/+-%___p_%'`
4696 if { as_var=cv_prog_cc_flag_$cache; eval "test \"\${$as_var+set}\" = set"; }; then
4697 echo $ECHO_N "(cached) $ECHO_C" >&6
4698 else
4699
4700 echo 'void f(){}' >conftest.c
4701 if test -z "`$CC -xc99 -c conftest.c 2>&1`"; then
4702 eval "cv_prog_cc_flag_$cache=yes"
4703 else
4704 eval "cv_prog_cc_flag_$cache=no"
4705 fi
4706 rm -f conftest conftest.o conftest.c
4707
4708 fi
4709
4710 if eval "test \"`echo '$cv_prog_cc_flag_'$cache`\" = yes"; then
4711 { echo "$as_me:$LINENO: result: yes" >&5
4712 echo "${ECHO_T}yes" >&6; }
4713 :
4714 C99FLAG="-xc99"
4715 else
4716 { echo "$as_me:$LINENO: result: no" >&5
4717 echo "${ECHO_T}no" >&6; }
4718 :
4719
4720 fi
4721
4722
4723
4724
4725 for ac_header in getopt.h time.h
4726 do
4727 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4728 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4729 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4730 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4731 echo $ECHO_N "(cached) $ECHO_C" >&6
4732 else
4733 cat >conftest.$ac_ext <<_ACEOF
4734 /* confdefs.h. */
4735 _ACEOF
4736 cat confdefs.h >>conftest.$ac_ext
4737 cat >>conftest.$ac_ext <<_ACEOF
4738 /* end confdefs.h. */
4739 $ac_includes_default
4740
4741 #include <$ac_header>
4742 _ACEOF
4743 rm -f conftest.$ac_objext
4744 if { (ac_try="$ac_compile"
4745 case "(($ac_try" in
4746 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4747 *) ac_try_echo=$ac_try;;
4748 esac
4749 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4750 (eval "$ac_compile") 2>conftest.er1
4751 ac_status=$?
4752 grep -v '^ *+' conftest.er1 >conftest.err
4753 rm -f conftest.er1
4754 cat conftest.err >&5
4755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4756 (exit $ac_status); } && {
4757 test -z "$ac_c_werror_flag" ||
4758 test ! -s conftest.err
4759 } && test -s conftest.$ac_objext; then
4760 eval "$as_ac_Header=yes"
4761 else
4762 echo "$as_me: failed program was:" >&5
4763 sed 's/^/| /' conftest.$ac_ext >&5
4764
4765 eval "$as_ac_Header=no"
4766 fi
4767
4768 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4769 fi
4770 ac_res=`eval echo '${'$as_ac_Header'}'`
4771 { echo "$as_me:$LINENO: result: $ac_res" >&5
4772 echo "${ECHO_T}$ac_res" >&6; }
4773 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4774 cat >>confdefs.h <<_ACEOF
4775 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4776 _ACEOF
4777
4778 fi
4779
4780 done
4781
4782
4783
4784
4785
4786 { echo "$as_me:$LINENO: checking whether we need $C99FLAG -D__EXTENSIONS__ -D_BSD_SOURCE -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 -D_XOPEN_SOURCE_EXTENDED=1 -D_ALL_SOURCE as a flag for $CC" >&5
4787 echo $ECHO_N "checking whether we need $C99FLAG -D__EXTENSIONS__ -D_BSD_SOURCE -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 -D_XOPEN_SOURCE_EXTENDED=1 -D_ALL_SOURCE as a flag for $CC... $ECHO_C" >&6; }
4788 cache=`echo "$C99FLAG -D__EXTENSIONS__ -D_BSD_SOURCE -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 -D_XOPEN_SOURCE_EXTENDED=1 -D_ALL_SOURCE" | $as_tr_sh`
5135 { $as_echo "$as_me:$LINENO: checking whether we need $C99FLAG -D__EXTENSIONS__ -D_BSD_SOURCE -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 -D_XOPEN_SOURCE_EXTENDED=1 -D_ALL_SOURCE as a flag for $CC" >&5
5136 $as_echo_n "checking whether we need $C99FLAG -D__EXTENSIONS__ -D_BSD_SOURCE -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 -D_XOPEN_SOURCE_EXTENDED=1 -D_ALL_SOURCE as a flag for $CC... " >&6; }
5137 cache=`$as_echo "$C99FLAG -D__EXTENSIONS__ -D_BSD_SOURCE -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 -D_XOPEN_SOURCE_EXTENDED=1 -D_ALL_SOURCE" | $as_tr_sh`
47895138 if { as_var=cv_prog_cc_flag_needed_$cache; eval "test \"\${$as_var+set}\" = set"; }; then
4790 echo $ECHO_N "(cached) $ECHO_C" >&6
5139 $as_echo_n "(cached) " >&6
47915140 else
47925141
47935142 echo '
48455194 fi
48465195
48475196 if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = yes"; then
4848 { echo "$as_me:$LINENO: result: yes" >&5
4849 echo "${ECHO_T}yes" >&6; }
5197 { $as_echo "$as_me:$LINENO: result: yes" >&5
5198 $as_echo "yes" >&6; }
48505199 :
48515200 CFLAGS="$CFLAGS $C99FLAG -D__EXTENSIONS__ -D_BSD_SOURCE -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 -D_XOPEN_SOURCE_EXTENDED=1 -D_ALL_SOURCE"
48525201 else
48535202 if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = no"; then
4854 { echo "$as_me:$LINENO: result: no" >&5
4855 echo "${ECHO_T}no" >&6; }
5203 { $as_echo "$as_me:$LINENO: result: no" >&5
5204 $as_echo "no" >&6; }
48565205 #echo 'Test with flag is no!'
48575206 #cat conftest.c
48585207 #echo "$CC $CFLAGS $C99FLAG -D__EXTENSIONS__ -D_BSD_SOURCE -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 -D_XOPEN_SOURCE_EXTENDED=1 -D_ALL_SOURCE $ERRFLAG -c conftest.c 2>&1"
48615210 :
48625211
48635212 else
4864 { echo "$as_me:$LINENO: result: failed" >&5
4865 echo "${ECHO_T}failed" >&6; }
5213 { $as_echo "$as_me:$LINENO: result: failed" >&5
5214 $as_echo "failed" >&6; }
48665215 :
48675216
48685217 fi
48725221
48735222
48745223
4875 { echo "$as_me:$LINENO: checking whether we need $C99FLAG -D__EXTENSIONS__ -D_BSD_SOURCE -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 -D_ALL_SOURCE as a flag for $CC" >&5
4876 echo $ECHO_N "checking whether we need $C99FLAG -D__EXTENSIONS__ -D_BSD_SOURCE -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 -D_ALL_SOURCE as a flag for $CC... $ECHO_C" >&6; }
4877 cache=`echo "$C99FLAG -D__EXTENSIONS__ -D_BSD_SOURCE -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 -D_ALL_SOURCE" | $as_tr_sh`
5224 { $as_echo "$as_me:$LINENO: checking whether we need $C99FLAG -D__EXTENSIONS__ -D_BSD_SOURCE -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 -D_ALL_SOURCE as a flag for $CC" >&5
5225 $as_echo_n "checking whether we need $C99FLAG -D__EXTENSIONS__ -D_BSD_SOURCE -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 -D_ALL_SOURCE as a flag for $CC... " >&6; }
5226 cache=`$as_echo "$C99FLAG -D__EXTENSIONS__ -D_BSD_SOURCE -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 -D_ALL_SOURCE" | $as_tr_sh`
48785227 if { as_var=cv_prog_cc_flag_needed_$cache; eval "test \"\${$as_var+set}\" = set"; }; then
4879 echo $ECHO_N "(cached) $ECHO_C" >&6
5228 $as_echo_n "(cached) " >&6
48805229 else
48815230
48825231 echo '
49345283 fi
49355284
49365285 if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = yes"; then
4937 { echo "$as_me:$LINENO: result: yes" >&5
4938 echo "${ECHO_T}yes" >&6; }
5286 { $as_echo "$as_me:$LINENO: result: yes" >&5
5287 $as_echo "yes" >&6; }
49395288 :
49405289 CFLAGS="$CFLAGS $C99FLAG -D__EXTENSIONS__ -D_BSD_SOURCE -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 -D_ALL_SOURCE"
49415290 else
49425291 if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = no"; then
4943 { echo "$as_me:$LINENO: result: no" >&5
4944 echo "${ECHO_T}no" >&6; }
5292 { $as_echo "$as_me:$LINENO: result: no" >&5
5293 $as_echo "no" >&6; }
49455294 #echo 'Test with flag is no!'
49465295 #cat conftest.c
49475296 #echo "$CC $CFLAGS $C99FLAG -D__EXTENSIONS__ -D_BSD_SOURCE -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 -D_ALL_SOURCE $ERRFLAG -c conftest.c 2>&1"
49505299 :
49515300
49525301 else
4953 { echo "$as_me:$LINENO: result: failed" >&5
4954 echo "${ECHO_T}failed" >&6; }
5302 { $as_echo "$as_me:$LINENO: result: failed" >&5
5303 $as_echo "failed" >&6; }
49555304 :
49565305
49575306 fi
49615310
49625311
49635312
4964 { echo "$as_me:$LINENO: checking whether we need $C99FLAG as a flag for $CC" >&5
4965 echo $ECHO_N "checking whether we need $C99FLAG as a flag for $CC... $ECHO_C" >&6; }
4966 cache=`echo "$C99FLAG" | $as_tr_sh`
5313 { $as_echo "$as_me:$LINENO: checking whether we need $C99FLAG as a flag for $CC" >&5
5314 $as_echo_n "checking whether we need $C99FLAG as a flag for $CC... " >&6; }
5315 cache=`$as_echo "$C99FLAG" | $as_tr_sh`
49675316 if { as_var=cv_prog_cc_flag_needed_$cache; eval "test \"\${$as_var+set}\" = set"; }; then
4968 echo $ECHO_N "(cached) $ECHO_C" >&6
5317 $as_echo_n "(cached) " >&6
49695318 else
49705319
49715320 echo '
49985347 fi
49995348
50005349 if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = yes"; then
5001 { echo "$as_me:$LINENO: result: yes" >&5
5002 echo "${ECHO_T}yes" >&6; }
5350 { $as_echo "$as_me:$LINENO: result: yes" >&5
5351 $as_echo "yes" >&6; }
50035352 :
50045353 CFLAGS="$CFLAGS $C99FLAG"
50055354 else
50065355 if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = no"; then
5007 { echo "$as_me:$LINENO: result: no" >&5
5008 echo "${ECHO_T}no" >&6; }
5356 { $as_echo "$as_me:$LINENO: result: no" >&5
5357 $as_echo "no" >&6; }
50095358 #echo 'Test with flag is no!'
50105359 #cat conftest.c
50115360 #echo "$CC $CFLAGS $C99FLAG $ERRFLAG -c conftest.c 2>&1"
50145363 :
50155364
50165365 else
5017 { echo "$as_me:$LINENO: result: failed" >&5
5018 echo "${ECHO_T}failed" >&6; }
5366 { $as_echo "$as_me:$LINENO: result: failed" >&5
5367 $as_echo "failed" >&6; }
50195368 :
50205369
50215370 fi
50255374
50265375
50275376
5028 { echo "$as_me:$LINENO: checking whether we need -D_BSD_SOURCE as a flag for $CC" >&5
5029 echo $ECHO_N "checking whether we need -D_BSD_SOURCE as a flag for $CC... $ECHO_C" >&6; }
5377 { $as_echo "$as_me:$LINENO: checking whether we need -D_BSD_SOURCE as a flag for $CC" >&5
5378 $as_echo_n "checking whether we need -D_BSD_SOURCE as a flag for $CC... " >&6; }
50305379 cache=_D_BSD_SOURCE
50315380 if { as_var=cv_prog_cc_flag_needed_$cache; eval "test \"\${$as_var+set}\" = set"; }; then
5032 echo $ECHO_N "(cached) $ECHO_C" >&6
5381 $as_echo_n "(cached) " >&6
50335382 else
50345383
50355384 echo '
50635412 fi
50645413
50655414 if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = yes"; then
5066 { echo "$as_me:$LINENO: result: yes" >&5
5067 echo "${ECHO_T}yes" >&6; }
5415 { $as_echo "$as_me:$LINENO: result: yes" >&5
5416 $as_echo "yes" >&6; }
50685417 :
50695418 CFLAGS="$CFLAGS -D_BSD_SOURCE"
50705419 else
50715420 if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = no"; then
5072 { echo "$as_me:$LINENO: result: no" >&5
5073 echo "${ECHO_T}no" >&6; }
5421 { $as_echo "$as_me:$LINENO: result: no" >&5
5422 $as_echo "no" >&6; }
50745423 #echo 'Test with flag is no!'
50755424 #cat conftest.c
50765425 #echo "$CC $CFLAGS -D_BSD_SOURCE $ERRFLAG -c conftest.c 2>&1"
50795428 :
50805429
50815430 else
5082 { echo "$as_me:$LINENO: result: failed" >&5
5083 echo "${ECHO_T}failed" >&6; }
5431 { $as_echo "$as_me:$LINENO: result: failed" >&5
5432 $as_echo "failed" >&6; }
50845433 :
50855434
50865435 fi
50905439
50915440
50925441
5093 { echo "$as_me:$LINENO: checking whether we need -D_GNU_SOURCE as a flag for $CC" >&5
5094 echo $ECHO_N "checking whether we need -D_GNU_SOURCE as a flag for $CC... $ECHO_C" >&6; }
5442 { $as_echo "$as_me:$LINENO: checking whether we need -D_GNU_SOURCE as a flag for $CC" >&5
5443 $as_echo_n "checking whether we need -D_GNU_SOURCE as a flag for $CC... " >&6; }
50955444 cache=_D_GNU_SOURCE
50965445 if { as_var=cv_prog_cc_flag_needed_$cache; eval "test \"\${$as_var+set}\" = set"; }; then
5097 echo $ECHO_N "(cached) $ECHO_C" >&6
5446 $as_echo_n "(cached) " >&6
50985447 else
50995448
51005449 echo '
51285477 fi
51295478
51305479 if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = yes"; then
5131 { echo "$as_me:$LINENO: result: yes" >&5
5132 echo "${ECHO_T}yes" >&6; }
5480 { $as_echo "$as_me:$LINENO: result: yes" >&5
5481 $as_echo "yes" >&6; }
51335482 :
51345483 CFLAGS="$CFLAGS -D_GNU_SOURCE"
51355484 else
51365485 if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = no"; then
5137 { echo "$as_me:$LINENO: result: no" >&5
5138 echo "${ECHO_T}no" >&6; }
5486 { $as_echo "$as_me:$LINENO: result: no" >&5
5487 $as_echo "no" >&6; }
51395488 #echo 'Test with flag is no!'
51405489 #cat conftest.c
51415490 #echo "$CC $CFLAGS -D_GNU_SOURCE $ERRFLAG -c conftest.c 2>&1"
51445493 :
51455494
51465495 else
5147 { echo "$as_me:$LINENO: result: failed" >&5
5148 echo "${ECHO_T}failed" >&6; }
5496 { $as_echo "$as_me:$LINENO: result: failed" >&5
5497 $as_echo "failed" >&6; }
51495498 :
51505499
51515500 fi
51585507
51595508
51605509
5161 { echo "$as_me:$LINENO: checking whether we need -D_GNU_SOURCE -D_FRSRESGID as a flag for $CC" >&5
5162 echo $ECHO_N "checking whether we need -D_GNU_SOURCE -D_FRSRESGID as a flag for $CC... $ECHO_C" >&6; }
5510 { $as_echo "$as_me:$LINENO: checking whether we need -D_GNU_SOURCE -D_FRSRESGID as a flag for $CC" >&5
5511 $as_echo_n "checking whether we need -D_GNU_SOURCE -D_FRSRESGID as a flag for $CC... " >&6; }
51635512 cache=_D_GNU_SOURCE__D_FRSRESGID
51645513 if { as_var=cv_prog_cc_flag_needed_$cache; eval "test \"\${$as_var+set}\" = set"; }; then
5165 echo $ECHO_N "(cached) $ECHO_C" >&6
5514 $as_echo_n "(cached) " >&6
51665515 else
51675516
51685517 echo '
51965545 fi
51975546
51985547 if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = yes"; then
5199 { echo "$as_me:$LINENO: result: yes" >&5
5200 echo "${ECHO_T}yes" >&6; }
5548 { $as_echo "$as_me:$LINENO: result: yes" >&5
5549 $as_echo "yes" >&6; }
52015550 :
52025551 CFLAGS="$CFLAGS -D_GNU_SOURCE"
52035552 else
52045553 if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = no"; then
5205 { echo "$as_me:$LINENO: result: no" >&5
5206 echo "${ECHO_T}no" >&6; }
5554 { $as_echo "$as_me:$LINENO: result: no" >&5
5555 $as_echo "no" >&6; }
52075556 #echo 'Test with flag is no!'
52085557 #cat conftest.c
52095558 #echo "$CC $CFLAGS -D_GNU_SOURCE -D_FRSRESGID $ERRFLAG -c conftest.c 2>&1"
52125561 :
52135562
52145563 else
5215 { echo "$as_me:$LINENO: result: failed" >&5
5216 echo "${ECHO_T}failed" >&6; }
5564 { $as_echo "$as_me:$LINENO: result: failed" >&5
5565 $as_echo "failed" >&6; }
52175566 :
52185567
52195568 fi
52235572
52245573
52255574
5226 { echo "$as_me:$LINENO: checking whether we need -D_POSIX_C_SOURCE=200112 as a flag for $CC" >&5
5227 echo $ECHO_N "checking whether we need -D_POSIX_C_SOURCE=200112 as a flag for $CC... $ECHO_C" >&6; }
5575 { $as_echo "$as_me:$LINENO: checking whether we need -D_POSIX_C_SOURCE=200112 as a flag for $CC" >&5
5576 $as_echo_n "checking whether we need -D_POSIX_C_SOURCE=200112 as a flag for $CC... " >&6; }
52285577 cache=_D_POSIX_C_SOURCE_200112
52295578 if { as_var=cv_prog_cc_flag_needed_$cache; eval "test \"\${$as_var+set}\" = set"; }; then
5230 echo $ECHO_N "(cached) $ECHO_C" >&6
5579 $as_echo_n "(cached) " >&6
52315580 else
52325581
52335582 echo '
52705619 fi
52715620
52725621 if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = yes"; then
5273 { echo "$as_me:$LINENO: result: yes" >&5
5274 echo "${ECHO_T}yes" >&6; }
5622 { $as_echo "$as_me:$LINENO: result: yes" >&5
5623 $as_echo "yes" >&6; }
52755624 :
52765625 CFLAGS="$CFLAGS -D_POSIX_C_SOURCE=200112"
52775626 else
52785627 if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = no"; then
5279 { echo "$as_me:$LINENO: result: no" >&5
5280 echo "${ECHO_T}no" >&6; }
5628 { $as_echo "$as_me:$LINENO: result: no" >&5
5629 $as_echo "no" >&6; }
52815630 #echo 'Test with flag is no!'
52825631 #cat conftest.c
52835632 #echo "$CC $CFLAGS -D_POSIX_C_SOURCE=200112 $ERRFLAG -c conftest.c 2>&1"
52865635 :
52875636
52885637 else
5289 { echo "$as_me:$LINENO: result: failed" >&5
5290 echo "${ECHO_T}failed" >&6; }
5638 { $as_echo "$as_me:$LINENO: result: failed" >&5
5639 $as_echo "failed" >&6; }
52915640 :
52925641
52935642 fi
52975646
52985647
52995648
5300 { echo "$as_me:$LINENO: checking whether we need -D__EXTENSIONS__ as a flag for $CC" >&5
5301 echo $ECHO_N "checking whether we need -D__EXTENSIONS__ as a flag for $CC... $ECHO_C" >&6; }
5649 { $as_echo "$as_me:$LINENO: checking whether we need -D__EXTENSIONS__ as a flag for $CC" >&5
5650 $as_echo_n "checking whether we need -D__EXTENSIONS__ as a flag for $CC... " >&6; }
53025651 cache=_D__EXTENSIONS__
53035652 if { as_var=cv_prog_cc_flag_needed_$cache; eval "test \"\${$as_var+set}\" = set"; }; then
5304 echo $ECHO_N "(cached) $ECHO_C" >&6
5653 $as_echo_n "(cached) " >&6
53055654 else
53065655
53075656 echo '
53505699 fi
53515700
53525701 if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = yes"; then
5353 { echo "$as_me:$LINENO: result: yes" >&5
5354 echo "${ECHO_T}yes" >&6; }
5702 { $as_echo "$as_me:$LINENO: result: yes" >&5
5703 $as_echo "yes" >&6; }
53555704 :
53565705 CFLAGS="$CFLAGS -D__EXTENSIONS__"
53575706 else
53585707 if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = no"; then
5359 { echo "$as_me:$LINENO: result: no" >&5
5360 echo "${ECHO_T}no" >&6; }
5708 { $as_echo "$as_me:$LINENO: result: no" >&5
5709 $as_echo "no" >&6; }
53615710 #echo 'Test with flag is no!'
53625711 #cat conftest.c
53635712 #echo "$CC $CFLAGS -D__EXTENSIONS__ $ERRFLAG -c conftest.c 2>&1"
53665715 :
53675716
53685717 else
5369 { echo "$as_me:$LINENO: result: failed" >&5
5370 echo "${ECHO_T}failed" >&6; }
5718 { $as_echo "$as_me:$LINENO: result: failed" >&5
5719 $as_echo "failed" >&6; }
53715720 :
53725721
53735722 fi
53795728 # for Sun studio 11.
53805729
53815730
5382 { echo "$as_me:$LINENO: checking whether $CC supports -xO4" >&5
5383 echo $ECHO_N "checking whether $CC supports -xO4... $ECHO_C" >&6; }
5731 { $as_echo "$as_me:$LINENO: checking whether $CC supports -xO4" >&5
5732 $as_echo_n "checking whether $CC supports -xO4... " >&6; }
53845733 cache=`echo xO4 | sed 'y%.=/+-%___p_%'`
53855734 if { as_var=cv_prog_cc_flag_$cache; eval "test \"\${$as_var+set}\" = set"; }; then
5386 echo $ECHO_N "(cached) $ECHO_C" >&6
5735 $as_echo_n "(cached) " >&6
53875736 else
53885737
53895738 echo 'void f(){}' >conftest.c
53975746 fi
53985747
53995748 if eval "test \"`echo '$cv_prog_cc_flag_'$cache`\" = yes"; then
5400 { echo "$as_me:$LINENO: result: yes" >&5
5401 echo "${ECHO_T}yes" >&6; }
5749 { $as_echo "$as_me:$LINENO: result: yes" >&5
5750 $as_echo "yes" >&6; }
54025751 :
54035752 CFLAGS="$CFLAGS -xO4"
54045753 else
5405 { echo "$as_me:$LINENO: result: no" >&5
5406 echo "${ECHO_T}no" >&6; }
5754 { $as_echo "$as_me:$LINENO: result: no" >&5
5755 $as_echo "no" >&6; }
54075756 :
54085757
54095758 fi
54105759
54115760
54125761
5413 { echo "$as_me:$LINENO: checking whether $CC supports -xtarget=generic" >&5
5414 echo $ECHO_N "checking whether $CC supports -xtarget=generic... $ECHO_C" >&6; }
5762 { $as_echo "$as_me:$LINENO: checking whether $CC supports -xtarget=generic" >&5
5763 $as_echo_n "checking whether $CC supports -xtarget=generic... " >&6; }
54155764 cache=`echo xtarget=generic | sed 'y%.=/+-%___p_%'`
54165765 if { as_var=cv_prog_cc_flag_$cache; eval "test \"\${$as_var+set}\" = set"; }; then
5417 echo $ECHO_N "(cached) $ECHO_C" >&6
5766 $as_echo_n "(cached) " >&6
54185767 else
54195768
54205769 echo 'void f(){}' >conftest.c
54285777 fi
54295778
54305779 if eval "test \"`echo '$cv_prog_cc_flag_'$cache`\" = yes"; then
5431 { echo "$as_me:$LINENO: result: yes" >&5
5432 echo "${ECHO_T}yes" >&6; }
5780 { $as_echo "$as_me:$LINENO: result: yes" >&5
5781 $as_echo "yes" >&6; }
54335782 :
54345783 CFLAGS="$CFLAGS -xtarget=generic"
54355784 else
5436 { echo "$as_me:$LINENO: result: no" >&5
5437 echo "${ECHO_T}no" >&6; }
5785 { $as_echo "$as_me:$LINENO: result: no" >&5
5786 $as_echo "no" >&6; }
54385787 :
54395788
54405789 fi
54525801 yes)
54535802
54545803
5455 { echo "$as_me:$LINENO: checking whether $CC supports -W" >&5
5456 echo $ECHO_N "checking whether $CC supports -W... $ECHO_C" >&6; }
5804 { $as_echo "$as_me:$LINENO: checking whether $CC supports -W" >&5
5805 $as_echo_n "checking whether $CC supports -W... " >&6; }
54575806 cache=`echo W | sed 'y%.=/+-%___p_%'`
54585807 if { as_var=cv_prog_cc_flag_$cache; eval "test \"\${$as_var+set}\" = set"; }; then
5459 echo $ECHO_N "(cached) $ECHO_C" >&6
5808 $as_echo_n "(cached) " >&6
54605809 else
54615810
54625811 echo 'void f(){}' >conftest.c
54705819 fi
54715820
54725821 if eval "test \"`echo '$cv_prog_cc_flag_'$cache`\" = yes"; then
5473 { echo "$as_me:$LINENO: result: yes" >&5
5474 echo "${ECHO_T}yes" >&6; }
5822 { $as_echo "$as_me:$LINENO: result: yes" >&5
5823 $as_echo "yes" >&6; }
54755824 :
54765825 CFLAGS="$CFLAGS -W"
54775826 else
5478 { echo "$as_me:$LINENO: result: no" >&5
5479 echo "${ECHO_T}no" >&6; }
5827 { $as_echo "$as_me:$LINENO: result: no" >&5
5828 $as_echo "no" >&6; }
54805829 :
54815830
54825831 fi
54835832
54845833
54855834
5486 { echo "$as_me:$LINENO: checking whether $CC supports -Wall" >&5
5487 echo $ECHO_N "checking whether $CC supports -Wall... $ECHO_C" >&6; }
5835 { $as_echo "$as_me:$LINENO: checking whether $CC supports -Wall" >&5
5836 $as_echo_n "checking whether $CC supports -Wall... " >&6; }
54885837 cache=`echo Wall | sed 'y%.=/+-%___p_%'`
54895838 if { as_var=cv_prog_cc_flag_$cache; eval "test \"\${$as_var+set}\" = set"; }; then
5490 echo $ECHO_N "(cached) $ECHO_C" >&6
5839 $as_echo_n "(cached) " >&6
54915840 else
54925841
54935842 echo 'void f(){}' >conftest.c
55015850 fi
55025851
55035852 if eval "test \"`echo '$cv_prog_cc_flag_'$cache`\" = yes"; then
5504 { echo "$as_me:$LINENO: result: yes" >&5
5505 echo "${ECHO_T}yes" >&6; }
5853 { $as_echo "$as_me:$LINENO: result: yes" >&5
5854 $as_echo "yes" >&6; }
55065855 :
55075856 CFLAGS="$CFLAGS -Wall"
55085857 else
5509 { echo "$as_me:$LINENO: result: no" >&5
5510 echo "${ECHO_T}no" >&6; }
5858 { $as_echo "$as_me:$LINENO: result: no" >&5
5859 $as_echo "no" >&6; }
55115860 :
55125861
55135862 fi
55145863
55155864
55165865
5517 { echo "$as_me:$LINENO: checking whether $CC supports -Wextra" >&5
5518 echo $ECHO_N "checking whether $CC supports -Wextra... $ECHO_C" >&6; }
5866 { $as_echo "$as_me:$LINENO: checking whether $CC supports -Wextra" >&5
5867 $as_echo_n "checking whether $CC supports -Wextra... " >&6; }
55195868 cache=`echo Wextra | sed 'y%.=/+-%___p_%'`
55205869 if { as_var=cv_prog_cc_flag_$cache; eval "test \"\${$as_var+set}\" = set"; }; then
5521 echo $ECHO_N "(cached) $ECHO_C" >&6
5870 $as_echo_n "(cached) " >&6
55225871 else
55235872
55245873 echo 'void f(){}' >conftest.c
55325881 fi
55335882
55345883 if eval "test \"`echo '$cv_prog_cc_flag_'$cache`\" = yes"; then
5535 { echo "$as_me:$LINENO: result: yes" >&5
5536 echo "${ECHO_T}yes" >&6; }
5884 { $as_echo "$as_me:$LINENO: result: yes" >&5
5885 $as_echo "yes" >&6; }
55375886 :
55385887 CFLAGS="$CFLAGS -Wextra"
55395888 else
5540 { echo "$as_me:$LINENO: result: no" >&5
5541 echo "${ECHO_T}no" >&6; }
5889 { $as_echo "$as_me:$LINENO: result: no" >&5
5890 $as_echo "no" >&6; }
55425891 :
55435892
55445893 fi
55455894
55465895
55475896
5548 { echo "$as_me:$LINENO: checking whether $CC supports -Wdeclaration-after-statement" >&5
5549 echo $ECHO_N "checking whether $CC supports -Wdeclaration-after-statement... $ECHO_C" >&6; }
5897 { $as_echo "$as_me:$LINENO: checking whether $CC supports -Wdeclaration-after-statement" >&5
5898 $as_echo_n "checking whether $CC supports -Wdeclaration-after-statement... " >&6; }
55505899 cache=`echo Wdeclaration-after-statement | sed 'y%.=/+-%___p_%'`
55515900 if { as_var=cv_prog_cc_flag_$cache; eval "test \"\${$as_var+set}\" = set"; }; then
5552 echo $ECHO_N "(cached) $ECHO_C" >&6
5901 $as_echo_n "(cached) " >&6
55535902 else
55545903
55555904 echo 'void f(){}' >conftest.c
55635912 fi
55645913
55655914 if eval "test \"`echo '$cv_prog_cc_flag_'$cache`\" = yes"; then
5566 { echo "$as_me:$LINENO: result: yes" >&5
5567 echo "${ECHO_T}yes" >&6; }
5915 { $as_echo "$as_me:$LINENO: result: yes" >&5
5916 $as_echo "yes" >&6; }
55685917 :
55695918 CFLAGS="$CFLAGS -Wdeclaration-after-statement"
55705919 else
5571 { echo "$as_me:$LINENO: result: no" >&5
5572 echo "${ECHO_T}no" >&6; }
5920 { $as_echo "$as_me:$LINENO: result: no" >&5
5921 $as_echo "no" >&6; }
55735922 :
55745923
55755924 fi
55765925
55775926
55785927 cat >>confdefs.h <<\_ACEOF
5579 #define UNBOUND_DEBUG
5928 #define UNBOUND_DEBUG /**/
55805929 _ACEOF
55815930
55825931 ;;
55855934 ;;
55865935 esac
55875936
5588 { echo "$as_me:$LINENO: checking for inline" >&5
5589 echo $ECHO_N "checking for inline... $ECHO_C" >&6; }
5937 { $as_echo "$as_me:$LINENO: checking for inline" >&5
5938 $as_echo_n "checking for inline... " >&6; }
55905939 if test "${ac_cv_c_inline+set}" = set; then
5591 echo $ECHO_N "(cached) $ECHO_C" >&6
5940 $as_echo_n "(cached) " >&6
55925941 else
55935942 ac_cv_c_inline=no
55945943 for ac_kw in inline __inline__ __inline; do
56115960 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
56125961 *) ac_try_echo=$ac_try;;
56135962 esac
5614 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5963 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5964 $as_echo "$ac_try_echo") >&5
56155965 (eval "$ac_compile") 2>conftest.er1
56165966 ac_status=$?
56175967 grep -v '^ *+' conftest.er1 >conftest.err
56185968 rm -f conftest.er1
56195969 cat conftest.err >&5
5620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5970 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
56215971 (exit $ac_status); } && {
56225972 test -z "$ac_c_werror_flag" ||
56235973 test ! -s conftest.err
56245974 } && test -s conftest.$ac_objext; then
56255975 ac_cv_c_inline=$ac_kw
56265976 else
5627 echo "$as_me: failed program was:" >&5
5977 $as_echo "$as_me: failed program was:" >&5
56285978 sed 's/^/| /' conftest.$ac_ext >&5
56295979
56305980
56355985 done
56365986
56375987 fi
5638 { echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
5639 echo "${ECHO_T}$ac_cv_c_inline" >&6; }
5988 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
5989 $as_echo "$ac_cv_c_inline" >&6; }
56405990
56415991
56425992 case $ac_cv_c_inline in
56556005 esac
56566006
56576007
5658 { echo "$as_me:$LINENO: checking whether the C compiler (${CC-cc}) accepts the \"format\" attribute" >&5
5659 echo $ECHO_N "checking whether the C compiler (${CC-cc}) accepts the \"format\" attribute... $ECHO_C" >&6; }
6008 { $as_echo "$as_me:$LINENO: checking whether the C compiler (${CC-cc}) accepts the \"format\" attribute" >&5
6009 $as_echo_n "checking whether the C compiler (${CC-cc}) accepts the \"format\" attribute... " >&6; }
56606010 if test "${ac_cv_c_format_attribute+set}" = set; then
5661 echo $ECHO_N "(cached) $ECHO_C" >&6
6011 $as_echo_n "(cached) " >&6
56626012 else
56636013 ac_cv_c_format_attribute=no
56646014 cat >conftest.$ac_ext <<_ACEOF
56876037 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
56886038 *) ac_try_echo=$ac_try;;
56896039 esac
5690 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6040 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6041 $as_echo "$ac_try_echo") >&5
56916042 (eval "$ac_compile") 2>conftest.er1
56926043 ac_status=$?
56936044 grep -v '^ *+' conftest.er1 >conftest.err
56946045 rm -f conftest.er1
56956046 cat conftest.err >&5
5696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6047 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
56976048 (exit $ac_status); } && {
56986049 test -z "$ac_c_werror_flag" ||
56996050 test ! -s conftest.err
57006051 } && test -s conftest.$ac_objext; then
57016052 ac_cv_c_format_attribute="yes"
57026053 else
5703 echo "$as_me: failed program was:" >&5
6054 $as_echo "$as_me: failed program was:" >&5
57046055 sed 's/^/| /' conftest.$ac_ext >&5
57056056
57066057 ac_cv_c_format_attribute="no"
57116062 fi
57126063
57136064
5714 { echo "$as_me:$LINENO: result: $ac_cv_c_format_attribute" >&5
5715 echo "${ECHO_T}$ac_cv_c_format_attribute" >&6; }
6065 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_format_attribute" >&5
6066 $as_echo "$ac_cv_c_format_attribute" >&6; }
57166067 if test $ac_cv_c_format_attribute = yes; then
57176068
57186069 cat >>confdefs.h <<\_ACEOF
57226073 fi
57236074
57246075
5725 { echo "$as_me:$LINENO: checking whether the C compiler (${CC-cc}) accepts the \"unused\" attribute" >&5
5726 echo $ECHO_N "checking whether the C compiler (${CC-cc}) accepts the \"unused\" attribute... $ECHO_C" >&6; }
6076 { $as_echo "$as_me:$LINENO: checking whether the C compiler (${CC-cc}) accepts the \"unused\" attribute" >&5
6077 $as_echo_n "checking whether the C compiler (${CC-cc}) accepts the \"unused\" attribute... " >&6; }
57276078 if test "${ac_cv_c_unused_attribute+set}" = set; then
5728 echo $ECHO_N "(cached) $ECHO_C" >&6
6079 $as_echo_n "(cached) " >&6
57296080 else
57306081 ac_cv_c_unused_attribute=no
57316082 cat >conftest.$ac_ext <<_ACEOF
57536104 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
57546105 *) ac_try_echo=$ac_try;;
57556106 esac
5756 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6107 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6108 $as_echo "$ac_try_echo") >&5
57576109 (eval "$ac_compile") 2>conftest.er1
57586110 ac_status=$?
57596111 grep -v '^ *+' conftest.er1 >conftest.err
57606112 rm -f conftest.er1
57616113 cat conftest.err >&5
5762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6114 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
57636115 (exit $ac_status); } && {
57646116 test -z "$ac_c_werror_flag" ||
57656117 test ! -s conftest.err
57666118 } && test -s conftest.$ac_objext; then
57676119 ac_cv_c_unused_attribute="yes"
57686120 else
5769 echo "$as_me: failed program was:" >&5
6121 $as_echo "$as_me: failed program was:" >&5
57706122 sed 's/^/| /' conftest.$ac_ext >&5
57716123
57726124 ac_cv_c_unused_attribute="no"
57796131
57806132
57816133
5782 { echo "$as_me:$LINENO: result: $ac_cv_c_unused_attribute" >&5
5783 echo "${ECHO_T}$ac_cv_c_unused_attribute" >&6; }
6134 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_unused_attribute" >&5
6135 $as_echo "$ac_cv_c_unused_attribute" >&6; }
57846136 if test $ac_cv_c_unused_attribute = yes; then
57856137
57866138 cat >>confdefs.h <<\_ACEOF
57986150 do
57996151 # Extract the first word of "$ac_prog", so it can be a program name with args.
58006152 set dummy $ac_prog; ac_word=$2
5801 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5802 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6153 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6154 $as_echo_n "checking for $ac_word... " >&6; }
58036155 if test "${ac_cv_prog_LEX+set}" = set; then
5804 echo $ECHO_N "(cached) $ECHO_C" >&6
6156 $as_echo_n "(cached) " >&6
58056157 else
58066158 if test -n "$LEX"; then
58076159 ac_cv_prog_LEX="$LEX" # Let the user override the test.
58146166 for ac_exec_ext in '' $ac_executable_extensions; do
58156167 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
58166168 ac_cv_prog_LEX="$ac_prog"
5817 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6169 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
58186170 break 2
58196171 fi
58206172 done
58256177 fi
58266178 LEX=$ac_cv_prog_LEX
58276179 if test -n "$LEX"; then
5828 { echo "$as_me:$LINENO: result: $LEX" >&5
5829 echo "${ECHO_T}$LEX" >&6; }
5830 else
5831 { echo "$as_me:$LINENO: result: no" >&5
5832 echo "${ECHO_T}no" >&6; }
6180 { $as_echo "$as_me:$LINENO: result: $LEX" >&5
6181 $as_echo "$LEX" >&6; }
6182 else
6183 { $as_echo "$as_me:$LINENO: result: no" >&5
6184 $as_echo "no" >&6; }
58336185 fi
58346186
58356187
58626214 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
58636215 *) ac_try_echo=$ac_try;;
58646216 esac
5865 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6217 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6218 $as_echo "$ac_try_echo") >&5
58666219 (eval "$LEX conftest.l") 2>&5
58676220 ac_status=$?
5868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6221 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
58696222 (exit $ac_status); }
5870 { echo "$as_me:$LINENO: checking lex output file root" >&5
5871 echo $ECHO_N "checking lex output file root... $ECHO_C" >&6; }
6223 { $as_echo "$as_me:$LINENO: checking lex output file root" >&5
6224 $as_echo_n "checking lex output file root... " >&6; }
58726225 if test "${ac_cv_prog_lex_root+set}" = set; then
5873 echo $ECHO_N "(cached) $ECHO_C" >&6
6226 $as_echo_n "(cached) " >&6
58746227 else
58756228
58766229 if test -f lex.yy.c; then
58786231 elif test -f lexyy.c; then
58796232 ac_cv_prog_lex_root=lexyy
58806233 else
5881 { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
5882 echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
6234 { { $as_echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
6235 $as_echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
58836236 { (exit 1); exit 1; }; }
58846237 fi
58856238 fi
5886 { echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
5887 echo "${ECHO_T}$ac_cv_prog_lex_root" >&6; }
6239 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
6240 $as_echo "$ac_cv_prog_lex_root" >&6; }
58886241 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
58896242
58906243 if test -z "${LEXLIB+set}"; then
5891 { echo "$as_me:$LINENO: checking lex library" >&5
5892 echo $ECHO_N "checking lex library... $ECHO_C" >&6; }
6244 { $as_echo "$as_me:$LINENO: checking lex library" >&5
6245 $as_echo_n "checking lex library... " >&6; }
58936246 if test "${ac_cv_lib_lex+set}" = set; then
5894 echo $ECHO_N "(cached) $ECHO_C" >&6
6247 $as_echo_n "(cached) " >&6
58956248 else
58966249
58976250 ac_save_LIBS=$LIBS
59076260 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
59086261 *) ac_try_echo=$ac_try;;
59096262 esac
5910 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6263 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6264 $as_echo "$ac_try_echo") >&5
59116265 (eval "$ac_link") 2>conftest.er1
59126266 ac_status=$?
59136267 grep -v '^ *+' conftest.er1 >conftest.err
59146268 rm -f conftest.er1
59156269 cat conftest.err >&5
5916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6270 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
59176271 (exit $ac_status); } && {
59186272 test -z "$ac_c_werror_flag" ||
59196273 test ! -s conftest.err
5920 } && test -s conftest$ac_exeext &&
5921 $as_test_x conftest$ac_exeext; then
6274 } && test -s conftest$ac_exeext && {
6275 test "$cross_compiling" = yes ||
6276 $as_test_x conftest$ac_exeext
6277 }; then
59226278 ac_cv_lib_lex=$ac_lib
59236279 else
5924 echo "$as_me: failed program was:" >&5
6280 $as_echo "$as_me: failed program was:" >&5
59256281 sed 's/^/| /' conftest.$ac_ext >&5
59266282
59276283
59286284 fi
59296285
6286 rm -rf conftest.dSYM
59306287 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
59316288 conftest$ac_exeext conftest.$ac_ext
59326289 test "$ac_cv_lib_lex" != 'none needed' && break
59346291 LIBS=$ac_save_LIBS
59356292
59366293 fi
5937 { echo "$as_me:$LINENO: result: $ac_cv_lib_lex" >&5
5938 echo "${ECHO_T}$ac_cv_lib_lex" >&6; }
6294 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_lex" >&5
6295 $as_echo "$ac_cv_lib_lex" >&6; }
59396296 test "$ac_cv_lib_lex" != 'none needed' && LEXLIB=$ac_cv_lib_lex
59406297 fi
59416298
59426299
5943 { echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
5944 echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6; }
6300 { $as_echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
6301 $as_echo_n "checking whether yytext is a pointer... " >&6; }
59456302 if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
5946 echo $ECHO_N "(cached) $ECHO_C" >&6
6303 $as_echo_n "(cached) " >&6
59476304 else
59486305 # POSIX says lex can declare yytext either as a pointer or an array; the
59496306 # default is implementation-dependent. Figure out which it is, since
59616318 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
59626319 *) ac_try_echo=$ac_try;;
59636320 esac
5964 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6321 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6322 $as_echo "$ac_try_echo") >&5
59656323 (eval "$ac_link") 2>conftest.er1
59666324 ac_status=$?
59676325 grep -v '^ *+' conftest.er1 >conftest.err
59686326 rm -f conftest.er1
59696327 cat conftest.err >&5
5970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6328 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
59716329 (exit $ac_status); } && {
59726330 test -z "$ac_c_werror_flag" ||
59736331 test ! -s conftest.err
5974 } && test -s conftest$ac_exeext &&
5975 $as_test_x conftest$ac_exeext; then
6332 } && test -s conftest$ac_exeext && {
6333 test "$cross_compiling" = yes ||
6334 $as_test_x conftest$ac_exeext
6335 }; then
59766336 ac_cv_prog_lex_yytext_pointer=yes
59776337 else
5978 echo "$as_me: failed program was:" >&5
6338 $as_echo "$as_me: failed program was:" >&5
59796339 sed 's/^/| /' conftest.$ac_ext >&5
59806340
59816341
59826342 fi
59836343
6344 rm -rf conftest.dSYM
59846345 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
59856346 conftest$ac_exeext conftest.$ac_ext
59866347 LIBS=$ac_save_LIBS
59876348
59886349 fi
5989 { echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
5990 echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6; }
6350 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
6351 $as_echo "$ac_cv_prog_lex_yytext_pointer" >&6; }
59916352 if test $ac_cv_prog_lex_yytext_pointer = yes; then
59926353
59936354 cat >>confdefs.h <<\_ACEOF
60026363 do
60036364 # Extract the first word of "$ac_prog", so it can be a program name with args.
60046365 set dummy $ac_prog; ac_word=$2
6005 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6006 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6366 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6367 $as_echo_n "checking for $ac_word... " >&6; }
60076368 if test "${ac_cv_prog_YACC+set}" = set; then
6008 echo $ECHO_N "(cached) $ECHO_C" >&6
6369 $as_echo_n "(cached) " >&6
60096370 else
60106371 if test -n "$YACC"; then
60116372 ac_cv_prog_YACC="$YACC" # Let the user override the test.
60186379 for ac_exec_ext in '' $ac_executable_extensions; do
60196380 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
60206381 ac_cv_prog_YACC="$ac_prog"
6021 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6382 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
60226383 break 2
60236384 fi
60246385 done
60296390 fi
60306391 YACC=$ac_cv_prog_YACC
60316392 if test -n "$YACC"; then
6032 { echo "$as_me:$LINENO: result: $YACC" >&5
6033 echo "${ECHO_T}$YACC" >&6; }
6034 else
6035 { echo "$as_me:$LINENO: result: no" >&5
6036 echo "${ECHO_T}no" >&6; }
6393 { $as_echo "$as_me:$LINENO: result: $YACC" >&5
6394 $as_echo "$YACC" >&6; }
6395 else
6396 { $as_echo "$as_me:$LINENO: result: no" >&5
6397 $as_echo "no" >&6; }
60376398 fi
60386399
60396400
60436404
60446405 # Extract the first word of "doxygen", so it can be a program name with args.
60456406 set dummy doxygen; ac_word=$2
6046 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6047 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6407 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6408 $as_echo_n "checking for $ac_word... " >&6; }
60486409 if test "${ac_cv_prog_doxygen+set}" = set; then
6049 echo $ECHO_N "(cached) $ECHO_C" >&6
6410 $as_echo_n "(cached) " >&6
60506411 else
60516412 if test -n "$doxygen"; then
60526413 ac_cv_prog_doxygen="$doxygen" # Let the user override the test.
60596420 for ac_exec_ext in '' $ac_executable_extensions; do
60606421 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
60616422 ac_cv_prog_doxygen="doxygen"
6062 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6423 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
60636424 break 2
60646425 fi
60656426 done
60706431 fi
60716432 doxygen=$ac_cv_prog_doxygen
60726433 if test -n "$doxygen"; then
6073 { echo "$as_me:$LINENO: result: $doxygen" >&5
6074 echo "${ECHO_T}$doxygen" >&6; }
6075 else
6076 { echo "$as_me:$LINENO: result: no" >&5
6077 echo "${ECHO_T}no" >&6; }
6434 { $as_echo "$as_me:$LINENO: result: $doxygen" >&5
6435 $as_echo "$doxygen" >&6; }
6436 else
6437 { $as_echo "$as_me:$LINENO: result: no" >&5
6438 $as_echo "no" >&6; }
60786439 fi
60796440
60806441
60956456 fi
60966457 done
60976458 if test -z "$ac_aux_dir"; then
6098 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
6099 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
6459 { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
6460 $as_echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
61006461 { (exit 1); exit 1; }; }
61016462 fi
61026463
61116472
61126473 # Make sure we can run config.sub.
61136474 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
6114 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
6115 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
6475 { { $as_echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
6476 $as_echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
61166477 { (exit 1); exit 1; }; }
61176478
6118 { echo "$as_me:$LINENO: checking build system type" >&5
6119 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
6479 { $as_echo "$as_me:$LINENO: checking build system type" >&5
6480 $as_echo_n "checking build system type... " >&6; }
61206481 if test "${ac_cv_build+set}" = set; then
6121 echo $ECHO_N "(cached) $ECHO_C" >&6
6482 $as_echo_n "(cached) " >&6
61226483 else
61236484 ac_build_alias=$build_alias
61246485 test "x$ac_build_alias" = x &&
61256486 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
61266487 test "x$ac_build_alias" = x &&
6127 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
6128 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
6488 { { $as_echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
6489 $as_echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
61296490 { (exit 1); exit 1; }; }
61306491 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
6131 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
6132 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
6492 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
6493 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
61336494 { (exit 1); exit 1; }; }
61346495
61356496 fi
6136 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
6137 echo "${ECHO_T}$ac_cv_build" >&6; }
6497 { $as_echo "$as_me:$LINENO: result: $ac_cv_build" >&5
6498 $as_echo "$ac_cv_build" >&6; }
61386499 case $ac_cv_build in
61396500 *-*-*) ;;
6140 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
6141 echo "$as_me: error: invalid value of canonical build" >&2;}
6501 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
6502 $as_echo "$as_me: error: invalid value of canonical build" >&2;}
61426503 { (exit 1); exit 1; }; };;
61436504 esac
61446505 build=$ac_cv_build
61716532 fi
61726533
61736534 # avoid libtool max commandline length test on systems that fork slowly.
6174 { echo "$as_me:$LINENO: checking host system type" >&5
6175 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
6535 { $as_echo "$as_me:$LINENO: checking host system type" >&5
6536 $as_echo_n "checking host system type... " >&6; }
61766537 if test "${ac_cv_host+set}" = set; then
6177 echo $ECHO_N "(cached) $ECHO_C" >&6
6538 $as_echo_n "(cached) " >&6
61786539 else
61796540 if test "x$host_alias" = x; then
61806541 ac_cv_host=$ac_cv_build
61816542 else
61826543 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
6183 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
6184 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
6544 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
6545 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
61856546 { (exit 1); exit 1; }; }
61866547 fi
61876548
61886549 fi
6189 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
6190 echo "${ECHO_T}$ac_cv_host" >&6; }
6550 { $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5
6551 $as_echo "$ac_cv_host" >&6; }
61916552 case $ac_cv_host in
61926553 *-*-*) ;;
6193 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
6194 echo "$as_me: error: invalid value of canonical host" >&2;}
6554 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
6555 $as_echo "$as_me: error: invalid value of canonical host" >&2;}
61956556 { (exit 1); exit 1; }; };;
61966557 esac
61976558 host=$ac_cv_host
62146575 if test -n "$ac_tool_prefix"; then
62156576 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
62166577 set dummy ${ac_tool_prefix}ar; ac_word=$2
6217 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6218 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6578 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6579 $as_echo_n "checking for $ac_word... " >&6; }
62196580 if test "${ac_cv_path_AR+set}" = set; then
6220 echo $ECHO_N "(cached) $ECHO_C" >&6
6581 $as_echo_n "(cached) " >&6
62216582 else
62226583 case $AR in
62236584 [\\/]* | ?:[\\/]*)
62326593 for ac_exec_ext in '' $ac_executable_extensions; do
62336594 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
62346595 ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext"
6235 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6596 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
62366597 break 2
62376598 fi
62386599 done
62446605 fi
62456606 AR=$ac_cv_path_AR
62466607 if test -n "$AR"; then
6247 { echo "$as_me:$LINENO: result: $AR" >&5
6248 echo "${ECHO_T}$AR" >&6; }
6249 else
6250 { echo "$as_me:$LINENO: result: no" >&5
6251 echo "${ECHO_T}no" >&6; }
6608 { $as_echo "$as_me:$LINENO: result: $AR" >&5
6609 $as_echo "$AR" >&6; }
6610 else
6611 { $as_echo "$as_me:$LINENO: result: no" >&5
6612 $as_echo "no" >&6; }
62526613 fi
62536614
62546615
62576618 ac_pt_AR=$AR
62586619 # Extract the first word of "ar", so it can be a program name with args.
62596620 set dummy ar; ac_word=$2
6260 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6261 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6621 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6622 $as_echo_n "checking for $ac_word... " >&6; }
62626623 if test "${ac_cv_path_ac_pt_AR+set}" = set; then
6263 echo $ECHO_N "(cached) $ECHO_C" >&6
6624 $as_echo_n "(cached) " >&6
62646625 else
62656626 case $ac_pt_AR in
62666627 [\\/]* | ?:[\\/]*)
62756636 for ac_exec_ext in '' $ac_executable_extensions; do
62766637 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
62776638 ac_cv_path_ac_pt_AR="$as_dir/$ac_word$ac_exec_ext"
6278 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6639 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
62796640 break 2
62806641 fi
62816642 done
62876648 fi
62886649 ac_pt_AR=$ac_cv_path_ac_pt_AR
62896650 if test -n "$ac_pt_AR"; then
6290 { echo "$as_me:$LINENO: result: $ac_pt_AR" >&5
6291 echo "${ECHO_T}$ac_pt_AR" >&6; }
6292 else
6293 { echo "$as_me:$LINENO: result: no" >&5
6294 echo "${ECHO_T}no" >&6; }
6651 { $as_echo "$as_me:$LINENO: result: $ac_pt_AR" >&5
6652 $as_echo "$ac_pt_AR" >&6; }
6653 else
6654 { $as_echo "$as_me:$LINENO: result: no" >&5
6655 $as_echo "no" >&6; }
62956656 fi
62966657
62976658 if test "x$ac_pt_AR" = x; then
62996660 else
63006661 case $cross_compiling:$ac_tool_warned in
63016662 yes:)
6302 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6303 whose name does not start with the host triplet. If you think this
6304 configuration is useful to you, please write to autoconf@gnu.org." >&5
6305 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6306 whose name does not start with the host triplet. If you think this
6307 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6663 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6664 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
63086665 ac_tool_warned=yes ;;
63096666 esac
63106667 AR=$ac_pt_AR
63146671 fi
63156672
63166673 if test $AR = false; then
6317 { { echo "$as_me:$LINENO: error: Cannot find 'ar', please extend PATH to include it" >&5
6318 echo "$as_me: error: Cannot find 'ar', please extend PATH to include it" >&2;}
6674 { { $as_echo "$as_me:$LINENO: error: Cannot find 'ar', please extend PATH to include it" >&5
6675 $as_echo "$as_me: error: Cannot find 'ar', please extend PATH to include it" >&2;}
63196676 { (exit 1); exit 1; }; }
63206677 fi
63216678
6322 # Check whether --enable-shared was given.
6323 if test "${enable_shared+set}" = set; then
6324 enableval=$enable_shared; p=${PACKAGE-default}
6325 case $enableval in
6326 yes) enable_shared=yes ;;
6327 no) enable_shared=no ;;
6328 *)
6329 enable_shared=no
6330 # Look at the argument we got. We use all the common list separators.
6331 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6332 for pkg in $enableval; do
6333 IFS="$lt_save_ifs"
6334 if test "X$pkg" = "X$p"; then
6335 enable_shared=yes
6336 fi
6337 done
6338 IFS="$lt_save_ifs"
6339 ;;
6340 esac
6341 else
6342 enable_shared=yes
6343 fi
6344
6345
6346 # Check whether --enable-static was given.
6347 if test "${enable_static+set}" = set; then
6348 enableval=$enable_static; p=${PACKAGE-default}
6349 case $enableval in
6350 yes) enable_static=yes ;;
6351 no) enable_static=no ;;
6352 *)
6353 enable_static=no
6354 # Look at the argument we got. We use all the common list separators.
6355 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6356 for pkg in $enableval; do
6357 IFS="$lt_save_ifs"
6358 if test "X$pkg" = "X$p"; then
6359 enable_static=yes
6360 fi
6361 done
6362 IFS="$lt_save_ifs"
6363 ;;
6364 esac
6365 else
6366 enable_static=yes
6367 fi
6368
6369
6370 # Check whether --enable-fast-install was given.
6371 if test "${enable_fast_install+set}" = set; then
6372 enableval=$enable_fast_install; p=${PACKAGE-default}
6373 case $enableval in
6374 yes) enable_fast_install=yes ;;
6375 no) enable_fast_install=no ;;
6376 *)
6377 enable_fast_install=no
6378 # Look at the argument we got. We use all the common list separators.
6379 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6380 for pkg in $enableval; do
6381 IFS="$lt_save_ifs"
6382 if test "X$pkg" = "X$p"; then
6383 enable_fast_install=yes
6384 fi
6385 done
6386 IFS="$lt_save_ifs"
6387 ;;
6388 esac
6389 else
6390 enable_fast_install=yes
6391 fi
6392
6393
6394 { echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
6395 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
6396 if test "${lt_cv_path_SED+set}" = set; then
6397 echo $ECHO_N "(cached) $ECHO_C" >&6
6398 else
6399 # Loop through the user's path and test for sed and gsed.
6400 # Then use that list of sed's as ones to test for truncation.
6401 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6679 case `pwd` in
6680 *\ * | *\ *)
6681 { $as_echo "$as_me:$LINENO: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
6682 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
6683 esac
6684
6685
6686
6687 macro_version='2.2.6'
6688 macro_revision='1.3012'
6689
6690
6691
6692
6693
6694
6695
6696
6697
6698
6699
6700
6701
6702 ltmain="$ac_aux_dir/ltmain.sh"
6703
6704 { $as_echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
6705 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
6706 if test "${ac_cv_path_SED+set}" = set; then
6707 $as_echo_n "(cached) " >&6
6708 else
6709 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
6710 for ac_i in 1 2 3 4 5 6 7; do
6711 ac_script="$ac_script$as_nl$ac_script"
6712 done
6713 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
6714 $as_unset ac_script || ac_script=
6715 if test -z "$SED"; then
6716 ac_path_SED_found=false
6717 # Loop through the user's path and test for each of PROGNAME-LIST
6718 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
64026719 for as_dir in $PATH
64036720 do
64046721 IFS=$as_save_IFS
64056722 test -z "$as_dir" && as_dir=.
6406 for lt_ac_prog in sed gsed; do
6723 for ac_prog in sed gsed; do
64076724 for ac_exec_ext in '' $ac_executable_extensions; do
6408 if { test -f "$as_dir/$lt_ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$lt_ac_prog$ac_exec_ext"; }; then
6409 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
6410 fi
6725 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
6726 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
6727 # Check for GNU ac_path_SED and select it if it is found.
6728 # Check for GNU $ac_path_SED
6729 case `"$ac_path_SED" --version 2>&1` in
6730 *GNU*)
6731 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
6732 *)
6733 ac_count=0
6734 $as_echo_n 0123456789 >"conftest.in"
6735 while :
6736 do
6737 cat "conftest.in" "conftest.in" >"conftest.tmp"
6738 mv "conftest.tmp" "conftest.in"
6739 cp "conftest.in" "conftest.nl"
6740 $as_echo '' >> "conftest.nl"
6741 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
6742 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6743 ac_count=`expr $ac_count + 1`
6744 if test $ac_count -gt ${ac_path_SED_max-0}; then
6745 # Best one so far, save it but keep looking for a better one
6746 ac_cv_path_SED="$ac_path_SED"
6747 ac_path_SED_max=$ac_count
6748 fi
6749 # 10*(2^10) chars as input seems more than enough
6750 test $ac_count -gt 10 && break
6751 done
6752 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6753 esac
6754
6755 $ac_path_SED_found && break 3
64116756 done
64126757 done
64136758 done
64146759 IFS=$as_save_IFS
6415 lt_ac_max=0
6416 lt_ac_count=0
6417 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
6418 # along with /bin/sed that truncates output.
6419 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
6420 test ! -f $lt_ac_sed && continue
6421 cat /dev/null > conftest.in
6422 lt_ac_count=0
6423 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
6424 # Check for GNU sed and select it if it is found.
6425 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
6426 lt_cv_path_SED=$lt_ac_sed
6427 break
6760 if test -z "$ac_cv_path_SED"; then
6761 { { $as_echo "$as_me:$LINENO: error: no acceptable sed could be found in \$PATH" >&5
6762 $as_echo "$as_me: error: no acceptable sed could be found in \$PATH" >&2;}
6763 { (exit 1); exit 1; }; }
64286764 fi
6429 while true; do
6430 cat conftest.in conftest.in >conftest.tmp
6431 mv conftest.tmp conftest.in
6432 cp conftest.in conftest.nl
6433 echo >>conftest.nl
6434 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
6435 cmp -s conftest.out conftest.nl || break
6436 # 10000 chars as input seems more than enough
6437 test $lt_ac_count -gt 10 && break
6438 lt_ac_count=`expr $lt_ac_count + 1`
6439 if test $lt_ac_count -gt $lt_ac_max; then
6440 lt_ac_max=$lt_ac_count
6441 lt_cv_path_SED=$lt_ac_sed
6765 else
6766 ac_cv_path_SED=$SED
6767 fi
6768
6769 fi
6770 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_SED" >&5
6771 $as_echo "$ac_cv_path_SED" >&6; }
6772 SED="$ac_cv_path_SED"
6773 rm -f conftest.sed
6774
6775 test -z "$SED" && SED=sed
6776 Xsed="$SED -e 1s/^X//"
6777
6778
6779
6780
6781
6782
6783
6784
6785
6786
6787
6788 { $as_echo "$as_me:$LINENO: checking for fgrep" >&5
6789 $as_echo_n "checking for fgrep... " >&6; }
6790 if test "${ac_cv_path_FGREP+set}" = set; then
6791 $as_echo_n "(cached) " >&6
6792 else
6793 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
6794 then ac_cv_path_FGREP="$GREP -F"
6795 else
6796 if test -z "$FGREP"; then
6797 ac_path_FGREP_found=false
6798 # Loop through the user's path and test for each of PROGNAME-LIST
6799 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6800 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6801 do
6802 IFS=$as_save_IFS
6803 test -z "$as_dir" && as_dir=.
6804 for ac_prog in fgrep; do
6805 for ac_exec_ext in '' $ac_executable_extensions; do
6806 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
6807 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
6808 # Check for GNU ac_path_FGREP and select it if it is found.
6809 # Check for GNU $ac_path_FGREP
6810 case `"$ac_path_FGREP" --version 2>&1` in
6811 *GNU*)
6812 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
6813 *)
6814 ac_count=0
6815 $as_echo_n 0123456789 >"conftest.in"
6816 while :
6817 do
6818 cat "conftest.in" "conftest.in" >"conftest.tmp"
6819 mv "conftest.tmp" "conftest.in"
6820 cp "conftest.in" "conftest.nl"
6821 $as_echo 'FGREP' >> "conftest.nl"
6822 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
6823 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6824 ac_count=`expr $ac_count + 1`
6825 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
6826 # Best one so far, save it but keep looking for a better one
6827 ac_cv_path_FGREP="$ac_path_FGREP"
6828 ac_path_FGREP_max=$ac_count
64426829 fi
6830 # 10*(2^10) chars as input seems more than enough
6831 test $ac_count -gt 10 && break
6832 done
6833 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6834 esac
6835
6836 $ac_path_FGREP_found && break 3
6837 done
64436838 done
64446839 done
6445
6446 fi
6447
6448 SED=$lt_cv_path_SED
6449
6450 { echo "$as_me:$LINENO: result: $SED" >&5
6451 echo "${ECHO_T}$SED" >&6; }
6840 IFS=$as_save_IFS
6841 if test -z "$ac_cv_path_FGREP"; then
6842 { { $as_echo "$as_me:$LINENO: error: no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
6843 $as_echo "$as_me: error: no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
6844 { (exit 1); exit 1; }; }
6845 fi
6846 else
6847 ac_cv_path_FGREP=$FGREP
6848 fi
6849
6850 fi
6851 fi
6852 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_FGREP" >&5
6853 $as_echo "$ac_cv_path_FGREP" >&6; }
6854 FGREP="$ac_cv_path_FGREP"
6855
6856
6857 test -z "$GREP" && GREP=grep
6858
6859
6860
6861
6862
6863
6864
6865
6866
6867
6868
6869
6870
6871
6872
6873
6874
64526875
64536876
64546877 # Check whether --with-gnu-ld was given.
64616884 ac_prog=ld
64626885 if test "$GCC" = yes; then
64636886 # Check if gcc -print-prog-name=ld gives a path.
6464 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
6465 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
6887 { $as_echo "$as_me:$LINENO: checking for ld used by $CC" >&5
6888 $as_echo_n "checking for ld used by $CC... " >&6; }
64666889 case $host in
64676890 *-*-mingw*)
64686891 # gcc leaves a trailing carriage return which upsets mingw
64756898 [\\/]* | ?:[\\/]*)
64766899 re_direlt='/[^/][^/]*/\.\./'
64776900 # Canonicalize the pathname of ld
6478 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
6479 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
6480 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
6901 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
6902 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
6903 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
64816904 done
64826905 test -z "$LD" && LD="$ac_prog"
64836906 ;;
64916914 ;;
64926915 esac
64936916 elif test "$with_gnu_ld" = yes; then
6494 { echo "$as_me:$LINENO: checking for GNU ld" >&5
6495 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
6496 else
6497 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
6498 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
6917 { $as_echo "$as_me:$LINENO: checking for GNU ld" >&5
6918 $as_echo_n "checking for GNU ld... " >&6; }
6919 else
6920 { $as_echo "$as_me:$LINENO: checking for non-GNU ld" >&5
6921 $as_echo_n "checking for non-GNU ld... " >&6; }
64996922 fi
65006923 if test "${lt_cv_path_LD+set}" = set; then
6501 echo $ECHO_N "(cached) $ECHO_C" >&6
6924 $as_echo_n "(cached) " >&6
65026925 else
65036926 if test -z "$LD"; then
65046927 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
65286951
65296952 LD="$lt_cv_path_LD"
65306953 if test -n "$LD"; then
6531 { echo "$as_me:$LINENO: result: $LD" >&5
6532 echo "${ECHO_T}$LD" >&6; }
6533 else
6534 { echo "$as_me:$LINENO: result: no" >&5
6535 echo "${ECHO_T}no" >&6; }
6536 fi
6537 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
6538 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
6954 { $as_echo "$as_me:$LINENO: result: $LD" >&5
6955 $as_echo "$LD" >&6; }
6956 else
6957 { $as_echo "$as_me:$LINENO: result: no" >&5
6958 $as_echo "no" >&6; }
6959 fi
6960 test -z "$LD" && { { $as_echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
6961 $as_echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
65396962 { (exit 1); exit 1; }; }
6540 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
6541 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
6963 { $as_echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
6964 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
65426965 if test "${lt_cv_prog_gnu_ld+set}" = set; then
6543 echo $ECHO_N "(cached) $ECHO_C" >&6
6966 $as_echo_n "(cached) " >&6
65446967 else
65456968 # I'd rather use --version here, but apparently some GNU lds only accept -v.
65466969 case `$LD -v 2>&1 </dev/null` in
65526975 ;;
65536976 esac
65546977 fi
6555 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
6556 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
6978 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
6979 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
65576980 with_gnu_ld=$lt_cv_prog_gnu_ld
65586981
65596982
6560 { echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
6561 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
6562 if test "${lt_cv_ld_reload_flag+set}" = set; then
6563 echo $ECHO_N "(cached) $ECHO_C" >&6
6564 else
6565 lt_cv_ld_reload_flag='-r'
6566 fi
6567 { echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
6568 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
6569 reload_flag=$lt_cv_ld_reload_flag
6570 case $reload_flag in
6571 "" | " "*) ;;
6572 *) reload_flag=" $reload_flag" ;;
6573 esac
6574 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6575 case $host_os in
6576 darwin*)
6577 if test "$GCC" = yes; then
6578 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
6579 else
6580 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6581 fi
6582 ;;
6583 esac
6584
6585 { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
6586 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
6983
6984
6985
6986
6987
6988
6989
6990 { $as_echo "$as_me:$LINENO: checking for BSD- or MS-compatible name lister (nm)" >&5
6991 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
65876992 if test "${lt_cv_path_NM+set}" = set; then
6588 echo $ECHO_N "(cached) $ECHO_C" >&6
6993 $as_echo_n "(cached) " >&6
65896994 else
65906995 if test -n "$NM"; then
65916996 # Let the user override the test.
66287033 done
66297034 IFS="$lt_save_ifs"
66307035 done
6631 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
6632 fi
6633 fi
6634 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
6635 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
6636 NM="$lt_cv_path_NM"
6637
6638 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
6639 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
7036 : ${lt_cv_path_NM=no}
7037 fi
7038 fi
7039 { $as_echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
7040 $as_echo "$lt_cv_path_NM" >&6; }
7041 if test "$lt_cv_path_NM" != "no"; then
7042 NM="$lt_cv_path_NM"
7043 else
7044 # Didn't find any BSD compatible name lister, look for dumpbin.
7045 if test -n "$ac_tool_prefix"; then
7046 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
7047 do
7048 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7049 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7050 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7051 $as_echo_n "checking for $ac_word... " >&6; }
7052 if test "${ac_cv_prog_DUMPBIN+set}" = set; then
7053 $as_echo_n "(cached) " >&6
7054 else
7055 if test -n "$DUMPBIN"; then
7056 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
7057 else
7058 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7059 for as_dir in $PATH
7060 do
7061 IFS=$as_save_IFS
7062 test -z "$as_dir" && as_dir=.
7063 for ac_exec_ext in '' $ac_executable_extensions; do
7064 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7065 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
7066 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7067 break 2
7068 fi
7069 done
7070 done
7071 IFS=$as_save_IFS
7072
7073 fi
7074 fi
7075 DUMPBIN=$ac_cv_prog_DUMPBIN
7076 if test -n "$DUMPBIN"; then
7077 { $as_echo "$as_me:$LINENO: result: $DUMPBIN" >&5
7078 $as_echo "$DUMPBIN" >&6; }
7079 else
7080 { $as_echo "$as_me:$LINENO: result: no" >&5
7081 $as_echo "no" >&6; }
7082 fi
7083
7084
7085 test -n "$DUMPBIN" && break
7086 done
7087 fi
7088 if test -z "$DUMPBIN"; then
7089 ac_ct_DUMPBIN=$DUMPBIN
7090 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
7091 do
7092 # Extract the first word of "$ac_prog", so it can be a program name with args.
7093 set dummy $ac_prog; ac_word=$2
7094 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7095 $as_echo_n "checking for $ac_word... " >&6; }
7096 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then
7097 $as_echo_n "(cached) " >&6
7098 else
7099 if test -n "$ac_ct_DUMPBIN"; then
7100 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
7101 else
7102 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7103 for as_dir in $PATH
7104 do
7105 IFS=$as_save_IFS
7106 test -z "$as_dir" && as_dir=.
7107 for ac_exec_ext in '' $ac_executable_extensions; do
7108 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7109 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
7110 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7111 break 2
7112 fi
7113 done
7114 done
7115 IFS=$as_save_IFS
7116
7117 fi
7118 fi
7119 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
7120 if test -n "$ac_ct_DUMPBIN"; then
7121 { $as_echo "$as_me:$LINENO: result: $ac_ct_DUMPBIN" >&5
7122 $as_echo "$ac_ct_DUMPBIN" >&6; }
7123 else
7124 { $as_echo "$as_me:$LINENO: result: no" >&5
7125 $as_echo "no" >&6; }
7126 fi
7127
7128
7129 test -n "$ac_ct_DUMPBIN" && break
7130 done
7131
7132 if test "x$ac_ct_DUMPBIN" = x; then
7133 DUMPBIN=":"
7134 else
7135 case $cross_compiling:$ac_tool_warned in
7136 yes:)
7137 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
7138 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7139 ac_tool_warned=yes ;;
7140 esac
7141 DUMPBIN=$ac_ct_DUMPBIN
7142 fi
7143 fi
7144
7145
7146 if test "$DUMPBIN" != ":"; then
7147 NM="$DUMPBIN"
7148 fi
7149 fi
7150 test -z "$NM" && NM=nm
7151
7152
7153
7154
7155
7156
7157 { $as_echo "$as_me:$LINENO: checking the name lister ($NM) interface" >&5
7158 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
7159 if test "${lt_cv_nm_interface+set}" = set; then
7160 $as_echo_n "(cached) " >&6
7161 else
7162 lt_cv_nm_interface="BSD nm"
7163 echo "int some_variable = 0;" > conftest.$ac_ext
7164 (eval echo "\"\$as_me:7165: $ac_compile\"" >&5)
7165 (eval "$ac_compile" 2>conftest.err)
7166 cat conftest.err >&5
7167 (eval echo "\"\$as_me:7168: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
7168 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
7169 cat conftest.err >&5
7170 (eval echo "\"\$as_me:7171: output\"" >&5)
7171 cat conftest.out >&5
7172 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
7173 lt_cv_nm_interface="MS dumpbin"
7174 fi
7175 rm -f conftest*
7176 fi
7177 { $as_echo "$as_me:$LINENO: result: $lt_cv_nm_interface" >&5
7178 $as_echo "$lt_cv_nm_interface" >&6; }
7179
7180 { $as_echo "$as_me:$LINENO: checking whether ln -s works" >&5
7181 $as_echo_n "checking whether ln -s works... " >&6; }
66407182 LN_S=$as_ln_s
66417183 if test "$LN_S" = "ln -s"; then
6642 { echo "$as_me:$LINENO: result: yes" >&5
6643 echo "${ECHO_T}yes" >&6; }
6644 else
6645 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
6646 echo "${ECHO_T}no, using $LN_S" >&6; }
6647 fi
6648
6649 { echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
6650 echo $ECHO_N "checking how to recognize dependent libraries... $ECHO_C" >&6; }
7184 { $as_echo "$as_me:$LINENO: result: yes" >&5
7185 $as_echo "yes" >&6; }
7186 else
7187 { $as_echo "$as_me:$LINENO: result: no, using $LN_S" >&5
7188 $as_echo "no, using $LN_S" >&6; }
7189 fi
7190
7191 # find the maximum length of command line arguments
7192 { $as_echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
7193 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
7194 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
7195 $as_echo_n "(cached) " >&6
7196 else
7197 i=0
7198 teststring="ABCD"
7199
7200 case $build_os in
7201 msdosdjgpp*)
7202 # On DJGPP, this test can blow up pretty badly due to problems in libc
7203 # (any single argument exceeding 2000 bytes causes a buffer overrun
7204 # during glob expansion). Even if it were fixed, the result of this
7205 # check would be larger than it should be.
7206 lt_cv_sys_max_cmd_len=12288; # 12K is about right
7207 ;;
7208
7209 gnu*)
7210 # Under GNU Hurd, this test is not required because there is
7211 # no limit to the length of command line arguments.
7212 # Libtool will interpret -1 as no limit whatsoever
7213 lt_cv_sys_max_cmd_len=-1;
7214 ;;
7215
7216 cygwin* | mingw* | cegcc*)
7217 # On Win9x/ME, this test blows up -- it succeeds, but takes
7218 # about 5 minutes as the teststring grows exponentially.
7219 # Worse, since 9x/ME are not pre-emptively multitasking,
7220 # you end up with a "frozen" computer, even though with patience
7221 # the test eventually succeeds (with a max line length of 256k).
7222 # Instead, let's just punt: use the minimum linelength reported by
7223 # all of the supported platforms: 8192 (on NT/2K/XP).
7224 lt_cv_sys_max_cmd_len=8192;
7225 ;;
7226
7227 amigaos*)
7228 # On AmigaOS with pdksh, this test takes hours, literally.
7229 # So we just punt and use a minimum line length of 8192.
7230 lt_cv_sys_max_cmd_len=8192;
7231 ;;
7232
7233 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
7234 # This has been around since 386BSD, at least. Likely further.
7235 if test -x /sbin/sysctl; then
7236 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
7237 elif test -x /usr/sbin/sysctl; then
7238 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
7239 else
7240 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
7241 fi
7242 # And add a safety zone
7243 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
7244 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
7245 ;;
7246
7247 interix*)
7248 # We know the value 262144 and hardcode it with a safety zone (like BSD)
7249 lt_cv_sys_max_cmd_len=196608
7250 ;;
7251
7252 osf*)
7253 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
7254 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
7255 # nice to cause kernel panics so lets avoid the loop below.
7256 # First set a reasonable default.
7257 lt_cv_sys_max_cmd_len=16384
7258 #
7259 if test -x /sbin/sysconfig; then
7260 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
7261 *1*) lt_cv_sys_max_cmd_len=-1 ;;
7262 esac
7263 fi
7264 ;;
7265 sco3.2v5*)
7266 lt_cv_sys_max_cmd_len=102400
7267 ;;
7268 sysv5* | sco5v6* | sysv4.2uw2*)
7269 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
7270 if test -n "$kargmax"; then
7271 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
7272 else
7273 lt_cv_sys_max_cmd_len=32768
7274 fi
7275 ;;
7276 *)
7277 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
7278 if test -n "$lt_cv_sys_max_cmd_len"; then
7279 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
7280 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
7281 else
7282 # Make teststring a little bigger before we do anything with it.
7283 # a 1K string should be a reasonable start.
7284 for i in 1 2 3 4 5 6 7 8 ; do
7285 teststring=$teststring$teststring
7286 done
7287 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
7288 # If test is not a shell built-in, we'll probably end up computing a
7289 # maximum length that is only half of the actual maximum length, but
7290 # we can't tell.
7291 while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
7292 = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
7293 test $i != 17 # 1/2 MB should be enough
7294 do
7295 i=`expr $i + 1`
7296 teststring=$teststring$teststring
7297 done
7298 # Only check the string length outside the loop.
7299 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
7300 teststring=
7301 # Add a significant safety factor because C++ compilers can tack on
7302 # massive amounts of additional arguments before passing them to the
7303 # linker. It appears as though 1/2 is a usable value.
7304 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
7305 fi
7306 ;;
7307 esac
7308
7309 fi
7310
7311 if test -n $lt_cv_sys_max_cmd_len ; then
7312 { $as_echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
7313 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
7314 else
7315 { $as_echo "$as_me:$LINENO: result: none" >&5
7316 $as_echo "none" >&6; }
7317 fi
7318 max_cmd_len=$lt_cv_sys_max_cmd_len
7319
7320
7321
7322
7323
7324
7325 : ${CP="cp -f"}
7326 : ${MV="mv -f"}
7327 : ${RM="rm -f"}
7328
7329 { $as_echo "$as_me:$LINENO: checking whether the shell understands some XSI constructs" >&5
7330 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
7331 # Try some XSI features
7332 xsi_shell=no
7333 ( _lt_dummy="a/b/c"
7334 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
7335 = c,a/b,, \
7336 && eval 'test $(( 1 + 1 )) -eq 2 \
7337 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
7338 && xsi_shell=yes
7339 { $as_echo "$as_me:$LINENO: result: $xsi_shell" >&5
7340 $as_echo "$xsi_shell" >&6; }
7341
7342
7343 { $as_echo "$as_me:$LINENO: checking whether the shell understands \"+=\"" >&5
7344 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
7345 lt_shell_append=no
7346 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
7347 >/dev/null 2>&1 \
7348 && lt_shell_append=yes
7349 { $as_echo "$as_me:$LINENO: result: $lt_shell_append" >&5
7350 $as_echo "$lt_shell_append" >&6; }
7351
7352
7353 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
7354 lt_unset=unset
7355 else
7356 lt_unset=false
7357 fi
7358
7359
7360
7361
7362
7363 # test EBCDIC or ASCII
7364 case `echo X|tr X '\101'` in
7365 A) # ASCII based system
7366 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
7367 lt_SP2NL='tr \040 \012'
7368 lt_NL2SP='tr \015\012 \040\040'
7369 ;;
7370 *) # EBCDIC based system
7371 lt_SP2NL='tr \100 \n'
7372 lt_NL2SP='tr \r\n \100\100'
7373 ;;
7374 esac
7375
7376
7377
7378
7379
7380
7381
7382
7383
7384 { $as_echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
7385 $as_echo_n "checking for $LD option to reload object files... " >&6; }
7386 if test "${lt_cv_ld_reload_flag+set}" = set; then
7387 $as_echo_n "(cached) " >&6
7388 else
7389 lt_cv_ld_reload_flag='-r'
7390 fi
7391 { $as_echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
7392 $as_echo "$lt_cv_ld_reload_flag" >&6; }
7393 reload_flag=$lt_cv_ld_reload_flag
7394 case $reload_flag in
7395 "" | " "*) ;;
7396 *) reload_flag=" $reload_flag" ;;
7397 esac
7398 reload_cmds='$LD$reload_flag -o $output$reload_objs'
7399 case $host_os in
7400 darwin*)
7401 if test "$GCC" = yes; then
7402 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
7403 else
7404 reload_cmds='$LD$reload_flag -o $output$reload_objs'
7405 fi
7406 ;;
7407 esac
7408
7409
7410
7411
7412
7413
7414
7415
7416
7417 if test -n "$ac_tool_prefix"; then
7418 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
7419 set dummy ${ac_tool_prefix}objdump; ac_word=$2
7420 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7421 $as_echo_n "checking for $ac_word... " >&6; }
7422 if test "${ac_cv_prog_OBJDUMP+set}" = set; then
7423 $as_echo_n "(cached) " >&6
7424 else
7425 if test -n "$OBJDUMP"; then
7426 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
7427 else
7428 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7429 for as_dir in $PATH
7430 do
7431 IFS=$as_save_IFS
7432 test -z "$as_dir" && as_dir=.
7433 for ac_exec_ext in '' $ac_executable_extensions; do
7434 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7435 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
7436 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7437 break 2
7438 fi
7439 done
7440 done
7441 IFS=$as_save_IFS
7442
7443 fi
7444 fi
7445 OBJDUMP=$ac_cv_prog_OBJDUMP
7446 if test -n "$OBJDUMP"; then
7447 { $as_echo "$as_me:$LINENO: result: $OBJDUMP" >&5
7448 $as_echo "$OBJDUMP" >&6; }
7449 else
7450 { $as_echo "$as_me:$LINENO: result: no" >&5
7451 $as_echo "no" >&6; }
7452 fi
7453
7454
7455 fi
7456 if test -z "$ac_cv_prog_OBJDUMP"; then
7457 ac_ct_OBJDUMP=$OBJDUMP
7458 # Extract the first word of "objdump", so it can be a program name with args.
7459 set dummy objdump; ac_word=$2
7460 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7461 $as_echo_n "checking for $ac_word... " >&6; }
7462 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then
7463 $as_echo_n "(cached) " >&6
7464 else
7465 if test -n "$ac_ct_OBJDUMP"; then
7466 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
7467 else
7468 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7469 for as_dir in $PATH
7470 do
7471 IFS=$as_save_IFS
7472 test -z "$as_dir" && as_dir=.
7473 for ac_exec_ext in '' $ac_executable_extensions; do
7474 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7475 ac_cv_prog_ac_ct_OBJDUMP="objdump"
7476 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7477 break 2
7478 fi
7479 done
7480 done
7481 IFS=$as_save_IFS
7482
7483 fi
7484 fi
7485 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
7486 if test -n "$ac_ct_OBJDUMP"; then
7487 { $as_echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5
7488 $as_echo "$ac_ct_OBJDUMP" >&6; }
7489 else
7490 { $as_echo "$as_me:$LINENO: result: no" >&5
7491 $as_echo "no" >&6; }
7492 fi
7493
7494 if test "x$ac_ct_OBJDUMP" = x; then
7495 OBJDUMP="false"
7496 else
7497 case $cross_compiling:$ac_tool_warned in
7498 yes:)
7499 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
7500 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7501 ac_tool_warned=yes ;;
7502 esac
7503 OBJDUMP=$ac_ct_OBJDUMP
7504 fi
7505 else
7506 OBJDUMP="$ac_cv_prog_OBJDUMP"
7507 fi
7508
7509 test -z "$OBJDUMP" && OBJDUMP=objdump
7510
7511
7512
7513
7514
7515
7516
7517
7518
7519 { $as_echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
7520 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
66517521 if test "${lt_cv_deplibs_check_method+set}" = set; then
6652 echo $ECHO_N "(cached) $ECHO_C" >&6
7522 $as_echo_n "(cached) " >&6
66537523 else
66547524 lt_cv_file_magic_cmd='$MAGIC_CMD'
66557525 lt_cv_file_magic_test_file=
66667536 # whether `pass_all' will *always* work, you probably want this one.
66677537
66687538 case $host_os in
6669 aix4* | aix5*)
7539 aix[4-9]*)
66707540 lt_cv_deplibs_check_method=pass_all
66717541 ;;
66727542
66997569 fi
67007570 ;;
67017571
7572 cegcc)
7573 # use the weaker test based on 'objdump'. See mingw*.
7574 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
7575 lt_cv_file_magic_cmd='$OBJDUMP -f'
7576 ;;
7577
67027578 darwin* | rhapsody*)
67037579 lt_cv_deplibs_check_method=pass_all
67047580 ;;
67057581
67067582 freebsd* | dragonfly*)
6707 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
7583 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
67087584 case $host_cpu in
67097585 i*86 )
67107586 # Not sure whether the presence of OpenBSD here was a mistake.
67627638 ;;
67637639
67647640 netbsd*)
6765 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
7641 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
67667642 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
67677643 else
67687644 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
67757651 lt_cv_file_magic_test_file=/usr/lib/libnls.so
67767652 ;;
67777653
6778 nto-qnx*)
6779 lt_cv_deplibs_check_method=unknown
7654 *nto* | *qnx*)
7655 lt_cv_deplibs_check_method=pass_all
67807656 ;;
67817657
67827658 openbsd*)
6783 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7659 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
67847660 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
67857661 else
67867662 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
67967672 ;;
67977673
67987674 solaris*)
7675 lt_cv_deplibs_check_method=pass_all
7676 ;;
7677
7678 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
67997679 lt_cv_deplibs_check_method=pass_all
68007680 ;;
68017681
68267706 esac
68277707 ;;
68287708
6829 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
7709 tpf*)
68307710 lt_cv_deplibs_check_method=pass_all
68317711 ;;
68327712 esac
68337713
68347714 fi
6835 { echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
6836 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
7715 { $as_echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
7716 $as_echo "$lt_cv_deplibs_check_method" >&6; }
68377717 file_magic_cmd=$lt_cv_file_magic_cmd
68387718 deplibs_check_method=$lt_cv_deplibs_check_method
68397719 test -z "$deplibs_check_method" && deplibs_check_method=unknown
68417721
68427722
68437723
7724
7725
7726
7727
7728
7729
7730
7731
7732 if test -n "$ac_tool_prefix"; then
7733 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
7734 set dummy ${ac_tool_prefix}ar; ac_word=$2
7735 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7736 $as_echo_n "checking for $ac_word... " >&6; }
7737 if test "${ac_cv_prog_AR+set}" = set; then
7738 $as_echo_n "(cached) " >&6
7739 else
7740 if test -n "$AR"; then
7741 ac_cv_prog_AR="$AR" # Let the user override the test.
7742 else
7743 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7744 for as_dir in $PATH
7745 do
7746 IFS=$as_save_IFS
7747 test -z "$as_dir" && as_dir=.
7748 for ac_exec_ext in '' $ac_executable_extensions; do
7749 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7750 ac_cv_prog_AR="${ac_tool_prefix}ar"
7751 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7752 break 2
7753 fi
7754 done
7755 done
7756 IFS=$as_save_IFS
7757
7758 fi
7759 fi
7760 AR=$ac_cv_prog_AR
7761 if test -n "$AR"; then
7762 { $as_echo "$as_me:$LINENO: result: $AR" >&5
7763 $as_echo "$AR" >&6; }
7764 else
7765 { $as_echo "$as_me:$LINENO: result: no" >&5
7766 $as_echo "no" >&6; }
7767 fi
7768
7769
7770 fi
7771 if test -z "$ac_cv_prog_AR"; then
7772 ac_ct_AR=$AR
7773 # Extract the first word of "ar", so it can be a program name with args.
7774 set dummy ar; ac_word=$2
7775 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7776 $as_echo_n "checking for $ac_word... " >&6; }
7777 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
7778 $as_echo_n "(cached) " >&6
7779 else
7780 if test -n "$ac_ct_AR"; then
7781 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7782 else
7783 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7784 for as_dir in $PATH
7785 do
7786 IFS=$as_save_IFS
7787 test -z "$as_dir" && as_dir=.
7788 for ac_exec_ext in '' $ac_executable_extensions; do
7789 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7790 ac_cv_prog_ac_ct_AR="ar"
7791 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7792 break 2
7793 fi
7794 done
7795 done
7796 IFS=$as_save_IFS
7797
7798 fi
7799 fi
7800 ac_ct_AR=$ac_cv_prog_ac_ct_AR
7801 if test -n "$ac_ct_AR"; then
7802 { $as_echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
7803 $as_echo "$ac_ct_AR" >&6; }
7804 else
7805 { $as_echo "$as_me:$LINENO: result: no" >&5
7806 $as_echo "no" >&6; }
7807 fi
7808
7809 if test "x$ac_ct_AR" = x; then
7810 AR="false"
7811 else
7812 case $cross_compiling:$ac_tool_warned in
7813 yes:)
7814 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
7815 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7816 ac_tool_warned=yes ;;
7817 esac
7818 AR=$ac_ct_AR
7819 fi
7820 else
7821 AR="$ac_cv_prog_AR"
7822 fi
7823
7824 test -z "$AR" && AR=ar
7825 test -z "$AR_FLAGS" && AR_FLAGS=cru
7826
7827
7828
7829
7830
7831
7832
7833
7834
7835
7836
7837 if test -n "$ac_tool_prefix"; then
7838 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7839 set dummy ${ac_tool_prefix}strip; ac_word=$2
7840 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7841 $as_echo_n "checking for $ac_word... " >&6; }
7842 if test "${ac_cv_prog_STRIP+set}" = set; then
7843 $as_echo_n "(cached) " >&6
7844 else
7845 if test -n "$STRIP"; then
7846 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7847 else
7848 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7849 for as_dir in $PATH
7850 do
7851 IFS=$as_save_IFS
7852 test -z "$as_dir" && as_dir=.
7853 for ac_exec_ext in '' $ac_executable_extensions; do
7854 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7855 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7856 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7857 break 2
7858 fi
7859 done
7860 done
7861 IFS=$as_save_IFS
7862
7863 fi
7864 fi
7865 STRIP=$ac_cv_prog_STRIP
7866 if test -n "$STRIP"; then
7867 { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
7868 $as_echo "$STRIP" >&6; }
7869 else
7870 { $as_echo "$as_me:$LINENO: result: no" >&5
7871 $as_echo "no" >&6; }
7872 fi
7873
7874
7875 fi
7876 if test -z "$ac_cv_prog_STRIP"; then
7877 ac_ct_STRIP=$STRIP
7878 # Extract the first word of "strip", so it can be a program name with args.
7879 set dummy strip; ac_word=$2
7880 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7881 $as_echo_n "checking for $ac_word... " >&6; }
7882 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
7883 $as_echo_n "(cached) " >&6
7884 else
7885 if test -n "$ac_ct_STRIP"; then
7886 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7887 else
7888 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7889 for as_dir in $PATH
7890 do
7891 IFS=$as_save_IFS
7892 test -z "$as_dir" && as_dir=.
7893 for ac_exec_ext in '' $ac_executable_extensions; do
7894 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7895 ac_cv_prog_ac_ct_STRIP="strip"
7896 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7897 break 2
7898 fi
7899 done
7900 done
7901 IFS=$as_save_IFS
7902
7903 fi
7904 fi
7905 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7906 if test -n "$ac_ct_STRIP"; then
7907 { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
7908 $as_echo "$ac_ct_STRIP" >&6; }
7909 else
7910 { $as_echo "$as_me:$LINENO: result: no" >&5
7911 $as_echo "no" >&6; }
7912 fi
7913
7914 if test "x$ac_ct_STRIP" = x; then
7915 STRIP=":"
7916 else
7917 case $cross_compiling:$ac_tool_warned in
7918 yes:)
7919 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
7920 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7921 ac_tool_warned=yes ;;
7922 esac
7923 STRIP=$ac_ct_STRIP
7924 fi
7925 else
7926 STRIP="$ac_cv_prog_STRIP"
7927 fi
7928
7929 test -z "$STRIP" && STRIP=:
7930
7931
7932
7933
7934
7935
7936 if test -n "$ac_tool_prefix"; then
7937 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7938 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7939 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7940 $as_echo_n "checking for $ac_word... " >&6; }
7941 if test "${ac_cv_prog_RANLIB+set}" = set; then
7942 $as_echo_n "(cached) " >&6
7943 else
7944 if test -n "$RANLIB"; then
7945 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7946 else
7947 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7948 for as_dir in $PATH
7949 do
7950 IFS=$as_save_IFS
7951 test -z "$as_dir" && as_dir=.
7952 for ac_exec_ext in '' $ac_executable_extensions; do
7953 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7954 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7955 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7956 break 2
7957 fi
7958 done
7959 done
7960 IFS=$as_save_IFS
7961
7962 fi
7963 fi
7964 RANLIB=$ac_cv_prog_RANLIB
7965 if test -n "$RANLIB"; then
7966 { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5
7967 $as_echo "$RANLIB" >&6; }
7968 else
7969 { $as_echo "$as_me:$LINENO: result: no" >&5
7970 $as_echo "no" >&6; }
7971 fi
7972
7973
7974 fi
7975 if test -z "$ac_cv_prog_RANLIB"; then
7976 ac_ct_RANLIB=$RANLIB
7977 # Extract the first word of "ranlib", so it can be a program name with args.
7978 set dummy ranlib; ac_word=$2
7979 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7980 $as_echo_n "checking for $ac_word... " >&6; }
7981 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
7982 $as_echo_n "(cached) " >&6
7983 else
7984 if test -n "$ac_ct_RANLIB"; then
7985 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7986 else
7987 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7988 for as_dir in $PATH
7989 do
7990 IFS=$as_save_IFS
7991 test -z "$as_dir" && as_dir=.
7992 for ac_exec_ext in '' $ac_executable_extensions; do
7993 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7994 ac_cv_prog_ac_ct_RANLIB="ranlib"
7995 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7996 break 2
7997 fi
7998 done
7999 done
8000 IFS=$as_save_IFS
8001
8002 fi
8003 fi
8004 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
8005 if test -n "$ac_ct_RANLIB"; then
8006 { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
8007 $as_echo "$ac_ct_RANLIB" >&6; }
8008 else
8009 { $as_echo "$as_me:$LINENO: result: no" >&5
8010 $as_echo "no" >&6; }
8011 fi
8012
8013 if test "x$ac_ct_RANLIB" = x; then
8014 RANLIB=":"
8015 else
8016 case $cross_compiling:$ac_tool_warned in
8017 yes:)
8018 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
8019 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8020 ac_tool_warned=yes ;;
8021 esac
8022 RANLIB=$ac_ct_RANLIB
8023 fi
8024 else
8025 RANLIB="$ac_cv_prog_RANLIB"
8026 fi
8027
8028 test -z "$RANLIB" && RANLIB=:
8029
8030
8031
8032
8033
8034
8035 # Determine commands to create old-style static archives.
8036 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
8037 old_postinstall_cmds='chmod 644 $oldlib'
8038 old_postuninstall_cmds=
8039
8040 if test -n "$RANLIB"; then
8041 case $host_os in
8042 openbsd*)
8043 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
8044 ;;
8045 *)
8046 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
8047 ;;
8048 esac
8049 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
8050 fi
8051
8052
8053
8054
8055
8056
8057
8058
8059
8060
8061
8062
8063
8064
8065
8066
8067
8068
8069
8070
8071
8072
8073
8074
8075
8076
8077
8078
8079
8080
8081
8082
8083
8084
68448085 # If no C compiler was specified, use CC.
68458086 LTCC=${LTCC-"$CC"}
68468087
68508091 # Allow CC to be a program name with arguments.
68518092 compiler=$CC
68528093
6853 # Check whether --enable-libtool-lock was given.
6854 if test "${enable_libtool_lock+set}" = set; then
6855 enableval=$enable_libtool_lock;
6856 fi
6857
6858 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6859
6860 # Some flags need to be propagated to the compiler or linker for good
6861 # libtool support.
6862 case $host in
6863 ia64-*-hpux*)
6864 # Find out which ABI we are using.
6865 echo 'int i;' > conftest.$ac_ext
6866 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6867 (eval $ac_compile) 2>&5
6868 ac_status=$?
6869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6870 (exit $ac_status); }; then
6871 case `/usr/bin/file conftest.$ac_objext` in
6872 *ELF-32*)
6873 HPUX_IA64_MODE="32"
6874 ;;
6875 *ELF-64*)
6876 HPUX_IA64_MODE="64"
6877 ;;
6878 esac
6879 fi
6880 rm -rf conftest*
6881 ;;
6882 *-*-irix6*)
6883 # Find out which ABI we are using.
6884 echo '#line 6885 "configure"' > conftest.$ac_ext
6885 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6886 (eval $ac_compile) 2>&5
6887 ac_status=$?
6888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6889 (exit $ac_status); }; then
6890 if test "$lt_cv_prog_gnu_ld" = yes; then
6891 case `/usr/bin/file conftest.$ac_objext` in
6892 *32-bit*)
6893 LD="${LD-ld} -melf32bsmip"
6894 ;;
6895 *N32*)
6896 LD="${LD-ld} -melf32bmipn32"
6897 ;;
6898 *64-bit*)
6899 LD="${LD-ld} -melf64bmip"
6900 ;;
6901 esac
6902 else
6903 case `/usr/bin/file conftest.$ac_objext` in
6904 *32-bit*)
6905 LD="${LD-ld} -32"
6906 ;;
6907 *N32*)
6908 LD="${LD-ld} -n32"
6909 ;;
6910 *64-bit*)
6911 LD="${LD-ld} -64"
6912 ;;
6913 esac
6914 fi
6915 fi
6916 rm -rf conftest*
6917 ;;
6918
6919 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
6920 s390*-*linux*|sparc*-*linux*)
6921 # Find out which ABI we are using.
6922 echo 'int i;' > conftest.$ac_ext
6923 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6924 (eval $ac_compile) 2>&5
6925 ac_status=$?
6926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6927 (exit $ac_status); }; then
6928 case `/usr/bin/file conftest.o` in
6929 *32-bit*)
6930 case $host in
6931 x86_64-*kfreebsd*-gnu)
6932 LD="${LD-ld} -m elf_i386_fbsd"
6933 ;;
6934 x86_64-*linux*)
6935 LD="${LD-ld} -m elf_i386"
6936 ;;
6937 ppc64-*linux*|powerpc64-*linux*)
6938 LD="${LD-ld} -m elf32ppclinux"
6939 ;;
6940 s390x-*linux*)
6941 LD="${LD-ld} -m elf_s390"
6942 ;;
6943 sparc64-*linux*)
6944 LD="${LD-ld} -m elf32_sparc"
6945 ;;
6946 esac
6947 ;;
6948 *64-bit*)
6949 libsuff=64
6950 case $host in
6951 x86_64-*kfreebsd*-gnu)
6952 LD="${LD-ld} -m elf_x86_64_fbsd"
6953 ;;
6954 x86_64-*linux*)
6955 LD="${LD-ld} -m elf_x86_64"
6956 ;;
6957 ppc*-*linux*|powerpc*-*linux*)
6958 LD="${LD-ld} -m elf64ppc"
6959 ;;
6960 s390*-*linux*)
6961 LD="${LD-ld} -m elf64_s390"
6962 ;;
6963 sparc*-*linux*)
6964 LD="${LD-ld} -m elf64_sparc"
6965 ;;
6966 esac
6967 ;;
6968 esac
6969 fi
6970 rm -rf conftest*
6971 ;;
6972
6973 *-*-sco3.2v5*)
6974 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6975 SAVE_CFLAGS="$CFLAGS"
6976 CFLAGS="$CFLAGS -belf"
6977 { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
6978 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
6979 if test "${lt_cv_cc_needs_belf+set}" = set; then
6980 echo $ECHO_N "(cached) $ECHO_C" >&6
6981 else
6982 ac_ext=c
6983 ac_cpp='$CPP $CPPFLAGS'
6984 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6985 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6986 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6987
6988 cat >conftest.$ac_ext <<_ACEOF
6989 /* confdefs.h. */
6990 _ACEOF
6991 cat confdefs.h >>conftest.$ac_ext
6992 cat >>conftest.$ac_ext <<_ACEOF
6993 /* end confdefs.h. */
6994
6995 int
6996 main ()
6997 {
6998
6999 ;
7000 return 0;
7001 }
7002 _ACEOF
7003 rm -f conftest.$ac_objext conftest$ac_exeext
7004 if { (ac_try="$ac_link"
7005 case "(($ac_try" in
7006 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7007 *) ac_try_echo=$ac_try;;
7008 esac
7009 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7010 (eval "$ac_link") 2>conftest.er1
7011 ac_status=$?
7012 grep -v '^ *+' conftest.er1 >conftest.err
7013 rm -f conftest.er1
7014 cat conftest.err >&5
7015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7016 (exit $ac_status); } && {
7017 test -z "$ac_c_werror_flag" ||
7018 test ! -s conftest.err
7019 } && test -s conftest$ac_exeext &&
7020 $as_test_x conftest$ac_exeext; then
7021 lt_cv_cc_needs_belf=yes
7022 else
7023 echo "$as_me: failed program was:" >&5
7024 sed 's/^/| /' conftest.$ac_ext >&5
7025
7026 lt_cv_cc_needs_belf=no
7027 fi
7028
7029 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7030 conftest$ac_exeext conftest.$ac_ext
7031 ac_ext=c
7032 ac_cpp='$CPP $CPPFLAGS'
7033 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7034 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7035 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7036
7037 fi
7038 { echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
7039 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
7040 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7041 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7042 CFLAGS="$SAVE_CFLAGS"
7043 fi
7044 ;;
7045 sparc*-*solaris*)
7046 # Find out which ABI we are using.
7047 echo 'int i;' > conftest.$ac_ext
7048 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7049 (eval $ac_compile) 2>&5
7050 ac_status=$?
7051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7052 (exit $ac_status); }; then
7053 case `/usr/bin/file conftest.o` in
7054 *64-bit*)
7055 case $lt_cv_prog_gnu_ld in
7056 yes*) LD="${LD-ld} -m elf64_sparc" ;;
7057 *) LD="${LD-ld} -64" ;;
7058 esac
7059 ;;
7060 esac
7061 fi
7062 rm -rf conftest*
7063 ;;
7064
7065
7066 esac
7067
7068 need_locks="$enable_libtool_lock"
7069
7070
7071
7072 for ac_header in dlfcn.h
7073 do
7074 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7075 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7076 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7077 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7078 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7079 echo $ECHO_N "(cached) $ECHO_C" >&6
7080 fi
7081 ac_res=`eval echo '${'$as_ac_Header'}'`
7082 { echo "$as_me:$LINENO: result: $ac_res" >&5
7083 echo "${ECHO_T}$ac_res" >&6; }
7084 else
7085 # Is the header compilable?
7086 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
7087 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
7088 cat >conftest.$ac_ext <<_ACEOF
7089 /* confdefs.h. */
7090 _ACEOF
7091 cat confdefs.h >>conftest.$ac_ext
7092 cat >>conftest.$ac_ext <<_ACEOF
7093 /* end confdefs.h. */
7094 $ac_includes_default
7095 #include <$ac_header>
7096 _ACEOF
7097 rm -f conftest.$ac_objext
7098 if { (ac_try="$ac_compile"
7099 case "(($ac_try" in
7100 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7101 *) ac_try_echo=$ac_try;;
7102 esac
7103 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7104 (eval "$ac_compile") 2>conftest.er1
7105 ac_status=$?
7106 grep -v '^ *+' conftest.er1 >conftest.err
7107 rm -f conftest.er1
7108 cat conftest.err >&5
7109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7110 (exit $ac_status); } && {
7111 test -z "$ac_c_werror_flag" ||
7112 test ! -s conftest.err
7113 } && test -s conftest.$ac_objext; then
7114 ac_header_compiler=yes
7115 else
7116 echo "$as_me: failed program was:" >&5
7117 sed 's/^/| /' conftest.$ac_ext >&5
7118
7119 ac_header_compiler=no
7120 fi
7121
7122 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7123 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7124 echo "${ECHO_T}$ac_header_compiler" >&6; }
7125
7126 # Is the header present?
7127 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
7128 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
7129 cat >conftest.$ac_ext <<_ACEOF
7130 /* confdefs.h. */
7131 _ACEOF
7132 cat confdefs.h >>conftest.$ac_ext
7133 cat >>conftest.$ac_ext <<_ACEOF
7134 /* end confdefs.h. */
7135 #include <$ac_header>
7136 _ACEOF
7137 if { (ac_try="$ac_cpp conftest.$ac_ext"
7138 case "(($ac_try" in
7139 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7140 *) ac_try_echo=$ac_try;;
7141 esac
7142 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7143 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7144 ac_status=$?
7145 grep -v '^ *+' conftest.er1 >conftest.err
7146 rm -f conftest.er1
7147 cat conftest.err >&5
7148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7149 (exit $ac_status); } >/dev/null && {
7150 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7151 test ! -s conftest.err
7152 }; then
7153 ac_header_preproc=yes
7154 else
7155 echo "$as_me: failed program was:" >&5
7156 sed 's/^/| /' conftest.$ac_ext >&5
7157
7158 ac_header_preproc=no
7159 fi
7160
7161 rm -f conftest.err conftest.$ac_ext
7162 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7163 echo "${ECHO_T}$ac_header_preproc" >&6; }
7164
7165 # So? What about this header?
7166 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7167 yes:no: )
7168 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7169 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7170 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7171 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7172 ac_header_preproc=yes
7173 ;;
7174 no:yes:* )
7175 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7176 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7177 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7178 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7179 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7180 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7181 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7182 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7183 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7184 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7185 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7186 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7187 ( cat <<\_ASBOX
7188 ## ---------------------------------------- ##
7189 ## Report this to unbound-bugs@nlnetlabs.nl ##
7190 ## ---------------------------------------- ##
7191 _ASBOX
7192 ) | sed "s/^/$as_me: WARNING: /" >&2
7193 ;;
7194 esac
7195 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7196 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7197 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7198 echo $ECHO_N "(cached) $ECHO_C" >&6
7199 else
7200 eval "$as_ac_Header=\$ac_header_preproc"
7201 fi
7202 ac_res=`eval echo '${'$as_ac_Header'}'`
7203 { echo "$as_me:$LINENO: result: $ac_res" >&5
7204 echo "${ECHO_T}$ac_res" >&6; }
7205
7206 fi
7207 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7208 cat >>confdefs.h <<_ACEOF
7209 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7210 _ACEOF
7211
7212 fi
7213
7214 done
7215
7216 :
7217
7218
7219 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
7220 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
7221 (test "X$CXX" != "Xg++"))) ; then
7222 :
7223 fi
7224
7225
7226 :
7227
7228
7229 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
7230
7231 # find the maximum length of command line arguments
7232 { echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
7233 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
7234 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
7235 echo $ECHO_N "(cached) $ECHO_C" >&6
7236 else
7237 i=0
7238 teststring="ABCD"
7239
7240 case $build_os in
7241 msdosdjgpp*)
7242 # On DJGPP, this test can blow up pretty badly due to problems in libc
7243 # (any single argument exceeding 2000 bytes causes a buffer overrun
7244 # during glob expansion). Even if it were fixed, the result of this
7245 # check would be larger than it should be.
7246 lt_cv_sys_max_cmd_len=12288; # 12K is about right
7247 ;;
7248
7249 gnu*)
7250 # Under GNU Hurd, this test is not required because there is
7251 # no limit to the length of command line arguments.
7252 # Libtool will interpret -1 as no limit whatsoever
7253 lt_cv_sys_max_cmd_len=-1;
7254 ;;
7255
7256 cygwin* | mingw*)
7257 # On Win9x/ME, this test blows up -- it succeeds, but takes
7258 # about 5 minutes as the teststring grows exponentially.
7259 # Worse, since 9x/ME are not pre-emptively multitasking,
7260 # you end up with a "frozen" computer, even though with patience
7261 # the test eventually succeeds (with a max line length of 256k).
7262 # Instead, let's just punt: use the minimum linelength reported by
7263 # all of the supported platforms: 8192 (on NT/2K/XP).
7264 lt_cv_sys_max_cmd_len=8192;
7265 ;;
7266
7267 amigaos*)
7268 # On AmigaOS with pdksh, this test takes hours, literally.
7269 # So we just punt and use a minimum line length of 8192.
7270 lt_cv_sys_max_cmd_len=8192;
7271 ;;
7272
7273 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
7274 # This has been around since 386BSD, at least. Likely further.
7275 if test -x /sbin/sysctl; then
7276 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
7277 elif test -x /usr/sbin/sysctl; then
7278 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
7279 else
7280 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
7281 fi
7282 # And add a safety zone
7283 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
7284 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
7285 ;;
7286
7287 interix*)
7288 # We know the value 262144 and hardcode it with a safety zone (like BSD)
7289 lt_cv_sys_max_cmd_len=196608
7290 ;;
7291
7292 osf*)
7293 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
7294 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
7295 # nice to cause kernel panics so lets avoid the loop below.
7296 # First set a reasonable default.
7297 lt_cv_sys_max_cmd_len=16384
7298 #
7299 if test -x /sbin/sysconfig; then
7300 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
7301 *1*) lt_cv_sys_max_cmd_len=-1 ;;
7302 esac
7303 fi
7304 ;;
7305 sco3.2v5*)
7306 lt_cv_sys_max_cmd_len=102400
7307 ;;
7308 sysv5* | sco5v6* | sysv4.2uw2*)
7309 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
7310 if test -n "$kargmax"; then
7311 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
7312 else
7313 lt_cv_sys_max_cmd_len=32768
7314 fi
7315 ;;
7316 *)
7317 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
7318 if test -n "$lt_cv_sys_max_cmd_len"; then
7319 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
7320 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
7321 else
7322 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
7323 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
7324 = "XX$teststring") >/dev/null 2>&1 &&
7325 new_result=`expr "X$teststring" : ".*" 2>&1` &&
7326 lt_cv_sys_max_cmd_len=$new_result &&
7327 test $i != 17 # 1/2 MB should be enough
7328 do
7329 i=`expr $i + 1`
7330 teststring=$teststring$teststring
7331 done
7332 teststring=
7333 # Add a significant safety factor because C++ compilers can tack on massive
7334 # amounts of additional arguments before passing them to the linker.
7335 # It appears as though 1/2 is a usable value.
7336 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
7337 fi
7338 ;;
7339 esac
7340
7341 fi
7342
7343 if test -n $lt_cv_sys_max_cmd_len ; then
7344 { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
7345 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
7346 else
7347 { echo "$as_me:$LINENO: result: none" >&5
7348 echo "${ECHO_T}none" >&6; }
7349 fi
7350
7351
7352
7353
73548094
73558095 # Check for command to grab the raw symbol name followed by C symbol from nm.
7356 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
7357 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
8096 { $as_echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
8097 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
73588098 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
7359 echo $ECHO_N "(cached) $ECHO_C" >&6
8099 $as_echo_n "(cached) " >&6
73608100 else
73618101
73628102 # These are sane defaults that work on at least a few old systems.
73678107
73688108 # Regexp to match symbols that can be accessed directly from C.
73698109 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7370
7371 # Transform an extracted symbol line into a proper C declaration
7372 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
7373
7374 # Transform an extracted symbol line into symbol name and symbol address
7375 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
73768110
73778111 # Define system-specific variables.
73788112 case $host_os in
73798113 aix*)
73808114 symcode='[BCDT]'
73818115 ;;
7382 cygwin* | mingw* | pw32*)
8116 cygwin* | mingw* | pw32* | cegcc*)
73838117 symcode='[ABCDGISTW]'
73848118 ;;
7385 hpux*) # Its linker distinguishes data from code symbols
8119 hpux*)
73868120 if test "$host_cpu" = ia64; then
73878121 symcode='[ABCDEGRST]'
7388 fi
7389 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7390 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
7391 ;;
7392 linux* | k*bsd*-gnu)
7393 if test "$host_cpu" = ia64; then
7394 symcode='[ABCDGIRSTW]'
7395 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7396 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
73978122 fi
73988123 ;;
73998124 irix* | nonstopux*)
74198144 ;;
74208145 esac
74218146
8147 # If we're using GNU nm, then use its standard symbol codes.
8148 case `$NM -V 2>&1` in
8149 *GNU* | *'with BFD'*)
8150 symcode='[ABCDGIRSTW]' ;;
8151 esac
8152
8153 # Transform an extracted symbol line into a proper C declaration.
8154 # Some systems (esp. on ia64) link data and code symbols differently,
8155 # so use this general approach.
8156 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
8157
8158 # Transform an extracted symbol line into symbol name and symbol address
8159 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
8160 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/ {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"lib\2\", (void *) \&\2},/p'"
8161
74228162 # Handle CRLF in mingw tool chain
74238163 opt_cr=
74248164 case $build_os in
74258165 mingw*)
7426 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
8166 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
74278167 ;;
74288168 esac
74298169
7430 # If we're using GNU nm, then use its standard symbol codes.
7431 case `$NM -V 2>&1` in
7432 *GNU* | *'with BFD'*)
7433 symcode='[ABCDGIRSTW]' ;;
7434 esac
7435
7436 # Try without a prefix undercore, then with it.
8170 # Try without a prefix underscore, then with it.
74378171 for ac_symprfx in "" "_"; do
74388172
74398173 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
74408174 symxfrm="\\1 $ac_symprfx\\2 \\2"
74418175
74428176 # Write the raw and C identifiers.
7443 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
8177 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
8178 # Fake it for dumpbin and say T for any non-static function
8179 # and D for any global variable.
8180 # Also find C++ and __fastcall symbols from MSVC++,
8181 # which start with @ or ?.
8182 lt_cv_sys_global_symbol_pipe="$AWK '"\
8183 " {last_section=section; section=\$ 3};"\
8184 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
8185 " \$ 0!~/External *\|/{next};"\
8186 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
8187 " {if(hide[section]) next};"\
8188 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
8189 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
8190 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
8191 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
8192 " ' prfx=^$ac_symprfx"
8193 else
8194 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
8195 fi
74448196
74458197 # Check to see that the pipe works correctly.
74468198 pipe_works=no
74478199
74488200 rm -f conftest*
7449 cat > conftest.$ac_ext <<EOF
8201 cat > conftest.$ac_ext <<_LT_EOF
74508202 #ifdef __cplusplus
74518203 extern "C" {
74528204 #endif
74538205 char nm_test_var;
7454 void nm_test_func(){}
8206 void nm_test_func(void);
8207 void nm_test_func(void){}
74558208 #ifdef __cplusplus
74568209 }
74578210 #endif
74588211 int main(){nm_test_var='a';nm_test_func();return(0);}
7459 EOF
8212 _LT_EOF
74608213
74618214 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
74628215 (eval $ac_compile) 2>&5
74638216 ac_status=$?
7464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8217 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
74658218 (exit $ac_status); }; then
74668219 # Now try to grab the symbols.
74678220 nlist=conftest.nm
74688221 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
74698222 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
74708223 ac_status=$?
7471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8224 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
74728225 (exit $ac_status); } && test -s "$nlist"; then
74738226 # Try sorting and uniquifying the output.
74748227 if sort "$nlist" | uniq > "$nlist"T; then
74788231 fi
74798232
74808233 # Make sure that we snagged all the symbols we need.
7481 if grep ' nm_test_var$' "$nlist" >/dev/null; then
7482 if grep ' nm_test_func$' "$nlist" >/dev/null; then
7483 cat <<EOF > conftest.$ac_ext
8234 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
8235 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
8236 cat <<_LT_EOF > conftest.$ac_ext
74848237 #ifdef __cplusplus
74858238 extern "C" {
74868239 #endif
74878240
7488 EOF
8241 _LT_EOF
74898242 # Now generate the symbol file.
7490 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
7491
7492 cat <<EOF >> conftest.$ac_ext
7493 #if defined (__STDC__) && __STDC__
7494 # define lt_ptr_t void *
7495 #else
7496 # define lt_ptr_t char *
7497 # define const
7498 #endif
7499
7500 /* The mapping between symbol names and symbols. */
8243 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
8244
8245 cat <<_LT_EOF >> conftest.$ac_ext
8246
8247 /* The mapping between symbol names and symbols. */
75018248 const struct {
75028249 const char *name;
7503 lt_ptr_t address;
8250 void *address;
75048251 }
7505 lt_preloaded_symbols[] =
8252 lt__PROGRAM__LTX_preloaded_symbols[] =
75068253 {
7507 EOF
7508 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
7509 cat <<\EOF >> conftest.$ac_ext
7510 {0, (lt_ptr_t) 0}
8254 { "@PROGRAM@", (void *) 0 },
8255 _LT_EOF
8256 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
8257 cat <<\_LT_EOF >> conftest.$ac_ext
8258 {0, (void *) 0}
75118259 };
8260
8261 /* This works around a problem in FreeBSD linker */
8262 #ifdef FREEBSD_WORKAROUND
8263 static const void *lt_preloaded_setup() {
8264 return lt__PROGRAM__LTX_preloaded_symbols;
8265 }
8266 #endif
75128267
75138268 #ifdef __cplusplus
75148269 }
75158270 #endif
7516 EOF
8271 _LT_EOF
75178272 # Now try linking the two files.
75188273 mv conftest.$ac_objext conftstm.$ac_objext
75198274 lt_save_LIBS="$LIBS"
75238278 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
75248279 (eval $ac_link) 2>&5
75258280 ac_status=$?
7526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8281 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
75278282 (exit $ac_status); } && test -s conftest${ac_exeext}; then
75288283 pipe_works=yes
75298284 fi
75428297 echo "$progname: failed program was:" >&5
75438298 cat conftest.$ac_ext >&5
75448299 fi
7545 rm -f conftest* conftst*
8300 rm -rf conftest* conftst*
75468301
75478302 # Do not use the global_symbol_pipe unless it works.
75488303 if test "$pipe_works" = yes; then
75588313 lt_cv_sys_global_symbol_to_cdecl=
75598314 fi
75608315 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7561 { echo "$as_me:$LINENO: result: failed" >&5
7562 echo "${ECHO_T}failed" >&6; }
7563 else
7564 { echo "$as_me:$LINENO: result: ok" >&5
7565 echo "${ECHO_T}ok" >&6; }
7566 fi
7567
7568 { echo "$as_me:$LINENO: checking for objdir" >&5
7569 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
8316 { $as_echo "$as_me:$LINENO: result: failed" >&5
8317 $as_echo "failed" >&6; }
8318 else
8319 { $as_echo "$as_me:$LINENO: result: ok" >&5
8320 $as_echo "ok" >&6; }
8321 fi
8322
8323
8324
8325
8326
8327
8328
8329
8330
8331
8332
8333
8334
8335
8336
8337
8338
8339
8340
8341
8342
8343
8344 # Check whether --enable-libtool-lock was given.
8345 if test "${enable_libtool_lock+set}" = set; then
8346 enableval=$enable_libtool_lock;
8347 fi
8348
8349 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
8350
8351 # Some flags need to be propagated to the compiler or linker for good
8352 # libtool support.
8353 case $host in
8354 ia64-*-hpux*)
8355 # Find out which ABI we are using.
8356 echo 'int i;' > conftest.$ac_ext
8357 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8358 (eval $ac_compile) 2>&5
8359 ac_status=$?
8360 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8361 (exit $ac_status); }; then
8362 case `/usr/bin/file conftest.$ac_objext` in
8363 *ELF-32*)
8364 HPUX_IA64_MODE="32"
8365 ;;
8366 *ELF-64*)
8367 HPUX_IA64_MODE="64"
8368 ;;
8369 esac
8370 fi
8371 rm -rf conftest*
8372 ;;
8373 *-*-irix6*)
8374 # Find out which ABI we are using.
8375 echo '#line 8376 "configure"' > conftest.$ac_ext
8376 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8377 (eval $ac_compile) 2>&5
8378 ac_status=$?
8379 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8380 (exit $ac_status); }; then
8381 if test "$lt_cv_prog_gnu_ld" = yes; then
8382 case `/usr/bin/file conftest.$ac_objext` in
8383 *32-bit*)
8384 LD="${LD-ld} -melf32bsmip"
8385 ;;
8386 *N32*)
8387 LD="${LD-ld} -melf32bmipn32"
8388 ;;
8389 *64-bit*)
8390 LD="${LD-ld} -melf64bmip"
8391 ;;
8392 esac
8393 else
8394 case `/usr/bin/file conftest.$ac_objext` in
8395 *32-bit*)
8396 LD="${LD-ld} -32"
8397 ;;
8398 *N32*)
8399 LD="${LD-ld} -n32"
8400 ;;
8401 *64-bit*)
8402 LD="${LD-ld} -64"
8403 ;;
8404 esac
8405 fi
8406 fi
8407 rm -rf conftest*
8408 ;;
8409
8410 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
8411 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
8412 # Find out which ABI we are using.
8413 echo 'int i;' > conftest.$ac_ext
8414 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8415 (eval $ac_compile) 2>&5
8416 ac_status=$?
8417 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8418 (exit $ac_status); }; then
8419 case `/usr/bin/file conftest.o` in
8420 *32-bit*)
8421 case $host in
8422 x86_64-*kfreebsd*-gnu)
8423 LD="${LD-ld} -m elf_i386_fbsd"
8424 ;;
8425 x86_64-*linux*)
8426 LD="${LD-ld} -m elf_i386"
8427 ;;
8428 ppc64-*linux*|powerpc64-*linux*)
8429 LD="${LD-ld} -m elf32ppclinux"
8430 ;;
8431 s390x-*linux*)
8432 LD="${LD-ld} -m elf_s390"
8433 ;;
8434 sparc64-*linux*)
8435 LD="${LD-ld} -m elf32_sparc"
8436 ;;
8437 esac
8438 ;;
8439 *64-bit*)
8440 case $host in
8441 x86_64-*kfreebsd*-gnu)
8442 LD="${LD-ld} -m elf_x86_64_fbsd"
8443 ;;
8444 x86_64-*linux*)
8445 LD="${LD-ld} -m elf_x86_64"
8446 ;;
8447 ppc*-*linux*|powerpc*-*linux*)
8448 LD="${LD-ld} -m elf64ppc"
8449 ;;
8450 s390*-*linux*|s390*-*tpf*)
8451 LD="${LD-ld} -m elf64_s390"
8452 ;;
8453 sparc*-*linux*)
8454 LD="${LD-ld} -m elf64_sparc"
8455 ;;
8456 esac
8457 ;;
8458 esac
8459 fi
8460 rm -rf conftest*
8461 ;;
8462
8463 *-*-sco3.2v5*)
8464 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
8465 SAVE_CFLAGS="$CFLAGS"
8466 CFLAGS="$CFLAGS -belf"
8467 { $as_echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
8468 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
8469 if test "${lt_cv_cc_needs_belf+set}" = set; then
8470 $as_echo_n "(cached) " >&6
8471 else
8472 ac_ext=c
8473 ac_cpp='$CPP $CPPFLAGS'
8474 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8475 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8476 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8477
8478 cat >conftest.$ac_ext <<_ACEOF
8479 /* confdefs.h. */
8480 _ACEOF
8481 cat confdefs.h >>conftest.$ac_ext
8482 cat >>conftest.$ac_ext <<_ACEOF
8483 /* end confdefs.h. */
8484
8485 int
8486 main ()
8487 {
8488
8489 ;
8490 return 0;
8491 }
8492 _ACEOF
8493 rm -f conftest.$ac_objext conftest$ac_exeext
8494 if { (ac_try="$ac_link"
8495 case "(($ac_try" in
8496 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8497 *) ac_try_echo=$ac_try;;
8498 esac
8499 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8500 $as_echo "$ac_try_echo") >&5
8501 (eval "$ac_link") 2>conftest.er1
8502 ac_status=$?
8503 grep -v '^ *+' conftest.er1 >conftest.err
8504 rm -f conftest.er1
8505 cat conftest.err >&5
8506 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8507 (exit $ac_status); } && {
8508 test -z "$ac_c_werror_flag" ||
8509 test ! -s conftest.err
8510 } && test -s conftest$ac_exeext && {
8511 test "$cross_compiling" = yes ||
8512 $as_test_x conftest$ac_exeext
8513 }; then
8514 lt_cv_cc_needs_belf=yes
8515 else
8516 $as_echo "$as_me: failed program was:" >&5
8517 sed 's/^/| /' conftest.$ac_ext >&5
8518
8519 lt_cv_cc_needs_belf=no
8520 fi
8521
8522 rm -rf conftest.dSYM
8523 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8524 conftest$ac_exeext conftest.$ac_ext
8525 ac_ext=c
8526 ac_cpp='$CPP $CPPFLAGS'
8527 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8528 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8529 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8530
8531 fi
8532 { $as_echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
8533 $as_echo "$lt_cv_cc_needs_belf" >&6; }
8534 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
8535 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
8536 CFLAGS="$SAVE_CFLAGS"
8537 fi
8538 ;;
8539 sparc*-*solaris*)
8540 # Find out which ABI we are using.
8541 echo 'int i;' > conftest.$ac_ext
8542 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8543 (eval $ac_compile) 2>&5
8544 ac_status=$?
8545 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8546 (exit $ac_status); }; then
8547 case `/usr/bin/file conftest.o` in
8548 *64-bit*)
8549 case $lt_cv_prog_gnu_ld in
8550 yes*) LD="${LD-ld} -m elf64_sparc" ;;
8551 *)
8552 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
8553 LD="${LD-ld} -64"
8554 fi
8555 ;;
8556 esac
8557 ;;
8558 esac
8559 fi
8560 rm -rf conftest*
8561 ;;
8562 esac
8563
8564 need_locks="$enable_libtool_lock"
8565
8566
8567 case $host_os in
8568 rhapsody* | darwin*)
8569 if test -n "$ac_tool_prefix"; then
8570 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
8571 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
8572 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
8573 $as_echo_n "checking for $ac_word... " >&6; }
8574 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then
8575 $as_echo_n "(cached) " >&6
8576 else
8577 if test -n "$DSYMUTIL"; then
8578 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
8579 else
8580 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8581 for as_dir in $PATH
8582 do
8583 IFS=$as_save_IFS
8584 test -z "$as_dir" && as_dir=.
8585 for ac_exec_ext in '' $ac_executable_extensions; do
8586 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8587 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
8588 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8589 break 2
8590 fi
8591 done
8592 done
8593 IFS=$as_save_IFS
8594
8595 fi
8596 fi
8597 DSYMUTIL=$ac_cv_prog_DSYMUTIL
8598 if test -n "$DSYMUTIL"; then
8599 { $as_echo "$as_me:$LINENO: result: $DSYMUTIL" >&5
8600 $as_echo "$DSYMUTIL" >&6; }
8601 else
8602 { $as_echo "$as_me:$LINENO: result: no" >&5
8603 $as_echo "no" >&6; }
8604 fi
8605
8606
8607 fi
8608 if test -z "$ac_cv_prog_DSYMUTIL"; then
8609 ac_ct_DSYMUTIL=$DSYMUTIL
8610 # Extract the first word of "dsymutil", so it can be a program name with args.
8611 set dummy dsymutil; ac_word=$2
8612 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
8613 $as_echo_n "checking for $ac_word... " >&6; }
8614 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then
8615 $as_echo_n "(cached) " >&6
8616 else
8617 if test -n "$ac_ct_DSYMUTIL"; then
8618 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
8619 else
8620 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8621 for as_dir in $PATH
8622 do
8623 IFS=$as_save_IFS
8624 test -z "$as_dir" && as_dir=.
8625 for ac_exec_ext in '' $ac_executable_extensions; do
8626 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8627 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
8628 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8629 break 2
8630 fi
8631 done
8632 done
8633 IFS=$as_save_IFS
8634
8635 fi
8636 fi
8637 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
8638 if test -n "$ac_ct_DSYMUTIL"; then
8639 { $as_echo "$as_me:$LINENO: result: $ac_ct_DSYMUTIL" >&5
8640 $as_echo "$ac_ct_DSYMUTIL" >&6; }
8641 else
8642 { $as_echo "$as_me:$LINENO: result: no" >&5
8643 $as_echo "no" >&6; }
8644 fi
8645
8646 if test "x$ac_ct_DSYMUTIL" = x; then
8647 DSYMUTIL=":"
8648 else
8649 case $cross_compiling:$ac_tool_warned in
8650 yes:)
8651 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
8652 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8653 ac_tool_warned=yes ;;
8654 esac
8655 DSYMUTIL=$ac_ct_DSYMUTIL
8656 fi
8657 else
8658 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
8659 fi
8660
8661 if test -n "$ac_tool_prefix"; then
8662 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
8663 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
8664 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
8665 $as_echo_n "checking for $ac_word... " >&6; }
8666 if test "${ac_cv_prog_NMEDIT+set}" = set; then
8667 $as_echo_n "(cached) " >&6
8668 else
8669 if test -n "$NMEDIT"; then
8670 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
8671 else
8672 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8673 for as_dir in $PATH
8674 do
8675 IFS=$as_save_IFS
8676 test -z "$as_dir" && as_dir=.
8677 for ac_exec_ext in '' $ac_executable_extensions; do
8678 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8679 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
8680 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8681 break 2
8682 fi
8683 done
8684 done
8685 IFS=$as_save_IFS
8686
8687 fi
8688 fi
8689 NMEDIT=$ac_cv_prog_NMEDIT
8690 if test -n "$NMEDIT"; then
8691 { $as_echo "$as_me:$LINENO: result: $NMEDIT" >&5
8692 $as_echo "$NMEDIT" >&6; }
8693 else
8694 { $as_echo "$as_me:$LINENO: result: no" >&5
8695 $as_echo "no" >&6; }
8696 fi
8697
8698
8699 fi
8700 if test -z "$ac_cv_prog_NMEDIT"; then
8701 ac_ct_NMEDIT=$NMEDIT
8702 # Extract the first word of "nmedit", so it can be a program name with args.
8703 set dummy nmedit; ac_word=$2
8704 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
8705 $as_echo_n "checking for $ac_word... " >&6; }
8706 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then
8707 $as_echo_n "(cached) " >&6
8708 else
8709 if test -n "$ac_ct_NMEDIT"; then
8710 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
8711 else
8712 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8713 for as_dir in $PATH
8714 do
8715 IFS=$as_save_IFS
8716 test -z "$as_dir" && as_dir=.
8717 for ac_exec_ext in '' $ac_executable_extensions; do
8718 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8719 ac_cv_prog_ac_ct_NMEDIT="nmedit"
8720 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8721 break 2
8722 fi
8723 done
8724 done
8725 IFS=$as_save_IFS
8726
8727 fi
8728 fi
8729 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
8730 if test -n "$ac_ct_NMEDIT"; then
8731 { $as_echo "$as_me:$LINENO: result: $ac_ct_NMEDIT" >&5
8732 $as_echo "$ac_ct_NMEDIT" >&6; }
8733 else
8734 { $as_echo "$as_me:$LINENO: result: no" >&5
8735 $as_echo "no" >&6; }
8736 fi
8737
8738 if test "x$ac_ct_NMEDIT" = x; then
8739 NMEDIT=":"
8740 else
8741 case $cross_compiling:$ac_tool_warned in
8742 yes:)
8743 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
8744 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8745 ac_tool_warned=yes ;;
8746 esac
8747 NMEDIT=$ac_ct_NMEDIT
8748 fi
8749 else
8750 NMEDIT="$ac_cv_prog_NMEDIT"
8751 fi
8752
8753 if test -n "$ac_tool_prefix"; then
8754 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
8755 set dummy ${ac_tool_prefix}lipo; ac_word=$2
8756 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
8757 $as_echo_n "checking for $ac_word... " >&6; }
8758 if test "${ac_cv_prog_LIPO+set}" = set; then
8759 $as_echo_n "(cached) " >&6
8760 else
8761 if test -n "$LIPO"; then
8762 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8763 else
8764 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8765 for as_dir in $PATH
8766 do
8767 IFS=$as_save_IFS
8768 test -z "$as_dir" && as_dir=.
8769 for ac_exec_ext in '' $ac_executable_extensions; do
8770 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8771 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
8772 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8773 break 2
8774 fi
8775 done
8776 done
8777 IFS=$as_save_IFS
8778
8779 fi
8780 fi
8781 LIPO=$ac_cv_prog_LIPO
8782 if test -n "$LIPO"; then
8783 { $as_echo "$as_me:$LINENO: result: $LIPO" >&5
8784 $as_echo "$LIPO" >&6; }
8785 else
8786 { $as_echo "$as_me:$LINENO: result: no" >&5
8787 $as_echo "no" >&6; }
8788 fi
8789
8790
8791 fi
8792 if test -z "$ac_cv_prog_LIPO"; then
8793 ac_ct_LIPO=$LIPO
8794 # Extract the first word of "lipo", so it can be a program name with args.
8795 set dummy lipo; ac_word=$2
8796 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
8797 $as_echo_n "checking for $ac_word... " >&6; }
8798 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then
8799 $as_echo_n "(cached) " >&6
8800 else
8801 if test -n "$ac_ct_LIPO"; then
8802 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
8803 else
8804 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8805 for as_dir in $PATH
8806 do
8807 IFS=$as_save_IFS
8808 test -z "$as_dir" && as_dir=.
8809 for ac_exec_ext in '' $ac_executable_extensions; do
8810 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8811 ac_cv_prog_ac_ct_LIPO="lipo"
8812 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8813 break 2
8814 fi
8815 done
8816 done
8817 IFS=$as_save_IFS
8818
8819 fi
8820 fi
8821 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
8822 if test -n "$ac_ct_LIPO"; then
8823 { $as_echo "$as_me:$LINENO: result: $ac_ct_LIPO" >&5
8824 $as_echo "$ac_ct_LIPO" >&6; }
8825 else
8826 { $as_echo "$as_me:$LINENO: result: no" >&5
8827 $as_echo "no" >&6; }
8828 fi
8829
8830 if test "x$ac_ct_LIPO" = x; then
8831 LIPO=":"
8832 else
8833 case $cross_compiling:$ac_tool_warned in
8834 yes:)
8835 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
8836 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8837 ac_tool_warned=yes ;;
8838 esac
8839 LIPO=$ac_ct_LIPO
8840 fi
8841 else
8842 LIPO="$ac_cv_prog_LIPO"
8843 fi
8844
8845 if test -n "$ac_tool_prefix"; then
8846 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
8847 set dummy ${ac_tool_prefix}otool; ac_word=$2
8848 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
8849 $as_echo_n "checking for $ac_word... " >&6; }
8850 if test "${ac_cv_prog_OTOOL+set}" = set; then
8851 $as_echo_n "(cached) " >&6
8852 else
8853 if test -n "$OTOOL"; then
8854 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
8855 else
8856 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8857 for as_dir in $PATH
8858 do
8859 IFS=$as_save_IFS
8860 test -z "$as_dir" && as_dir=.
8861 for ac_exec_ext in '' $ac_executable_extensions; do
8862 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8863 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
8864 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8865 break 2
8866 fi
8867 done
8868 done
8869 IFS=$as_save_IFS
8870
8871 fi
8872 fi
8873 OTOOL=$ac_cv_prog_OTOOL
8874 if test -n "$OTOOL"; then
8875 { $as_echo "$as_me:$LINENO: result: $OTOOL" >&5
8876 $as_echo "$OTOOL" >&6; }
8877 else
8878 { $as_echo "$as_me:$LINENO: result: no" >&5
8879 $as_echo "no" >&6; }
8880 fi
8881
8882
8883 fi
8884 if test -z "$ac_cv_prog_OTOOL"; then
8885 ac_ct_OTOOL=$OTOOL
8886 # Extract the first word of "otool", so it can be a program name with args.
8887 set dummy otool; ac_word=$2
8888 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
8889 $as_echo_n "checking for $ac_word... " >&6; }
8890 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then
8891 $as_echo_n "(cached) " >&6
8892 else
8893 if test -n "$ac_ct_OTOOL"; then
8894 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
8895 else
8896 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8897 for as_dir in $PATH
8898 do
8899 IFS=$as_save_IFS
8900 test -z "$as_dir" && as_dir=.
8901 for ac_exec_ext in '' $ac_executable_extensions; do
8902 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8903 ac_cv_prog_ac_ct_OTOOL="otool"
8904 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8905 break 2
8906 fi
8907 done
8908 done
8909 IFS=$as_save_IFS
8910
8911 fi
8912 fi
8913 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
8914 if test -n "$ac_ct_OTOOL"; then
8915 { $as_echo "$as_me:$LINENO: result: $ac_ct_OTOOL" >&5
8916 $as_echo "$ac_ct_OTOOL" >&6; }
8917 else
8918 { $as_echo "$as_me:$LINENO: result: no" >&5
8919 $as_echo "no" >&6; }
8920 fi
8921
8922 if test "x$ac_ct_OTOOL" = x; then
8923 OTOOL=":"
8924 else
8925 case $cross_compiling:$ac_tool_warned in
8926 yes:)
8927 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
8928 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8929 ac_tool_warned=yes ;;
8930 esac
8931 OTOOL=$ac_ct_OTOOL
8932 fi
8933 else
8934 OTOOL="$ac_cv_prog_OTOOL"
8935 fi
8936
8937 if test -n "$ac_tool_prefix"; then
8938 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
8939 set dummy ${ac_tool_prefix}otool64; ac_word=$2
8940 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
8941 $as_echo_n "checking for $ac_word... " >&6; }
8942 if test "${ac_cv_prog_OTOOL64+set}" = set; then
8943 $as_echo_n "(cached) " >&6
8944 else
8945 if test -n "$OTOOL64"; then
8946 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
8947 else
8948 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8949 for as_dir in $PATH
8950 do
8951 IFS=$as_save_IFS
8952 test -z "$as_dir" && as_dir=.
8953 for ac_exec_ext in '' $ac_executable_extensions; do
8954 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8955 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
8956 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8957 break 2
8958 fi
8959 done
8960 done
8961 IFS=$as_save_IFS
8962
8963 fi
8964 fi
8965 OTOOL64=$ac_cv_prog_OTOOL64
8966 if test -n "$OTOOL64"; then
8967 { $as_echo "$as_me:$LINENO: result: $OTOOL64" >&5
8968 $as_echo "$OTOOL64" >&6; }
8969 else
8970 { $as_echo "$as_me:$LINENO: result: no" >&5
8971 $as_echo "no" >&6; }
8972 fi
8973
8974
8975 fi
8976 if test -z "$ac_cv_prog_OTOOL64"; then
8977 ac_ct_OTOOL64=$OTOOL64
8978 # Extract the first word of "otool64", so it can be a program name with args.
8979 set dummy otool64; ac_word=$2
8980 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
8981 $as_echo_n "checking for $ac_word... " >&6; }
8982 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then
8983 $as_echo_n "(cached) " >&6
8984 else
8985 if test -n "$ac_ct_OTOOL64"; then
8986 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
8987 else
8988 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8989 for as_dir in $PATH
8990 do
8991 IFS=$as_save_IFS
8992 test -z "$as_dir" && as_dir=.
8993 for ac_exec_ext in '' $ac_executable_extensions; do
8994 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8995 ac_cv_prog_ac_ct_OTOOL64="otool64"
8996 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8997 break 2
8998 fi
8999 done
9000 done
9001 IFS=$as_save_IFS
9002
9003 fi
9004 fi
9005 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
9006 if test -n "$ac_ct_OTOOL64"; then
9007 { $as_echo "$as_me:$LINENO: result: $ac_ct_OTOOL64" >&5
9008 $as_echo "$ac_ct_OTOOL64" >&6; }
9009 else
9010 { $as_echo "$as_me:$LINENO: result: no" >&5
9011 $as_echo "no" >&6; }
9012 fi
9013
9014 if test "x$ac_ct_OTOOL64" = x; then
9015 OTOOL64=":"
9016 else
9017 case $cross_compiling:$ac_tool_warned in
9018 yes:)
9019 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
9020 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9021 ac_tool_warned=yes ;;
9022 esac
9023 OTOOL64=$ac_ct_OTOOL64
9024 fi
9025 else
9026 OTOOL64="$ac_cv_prog_OTOOL64"
9027 fi
9028
9029
9030
9031
9032
9033
9034
9035
9036
9037
9038
9039
9040
9041
9042
9043
9044
9045
9046
9047
9048
9049
9050
9051
9052
9053
9054
9055 { $as_echo "$as_me:$LINENO: checking for -single_module linker flag" >&5
9056 $as_echo_n "checking for -single_module linker flag... " >&6; }
9057 if test "${lt_cv_apple_cc_single_mod+set}" = set; then
9058 $as_echo_n "(cached) " >&6
9059 else
9060 lt_cv_apple_cc_single_mod=no
9061 if test -z "${LT_MULTI_MODULE}"; then
9062 # By default we will add the -single_module flag. You can override
9063 # by either setting the environment variable LT_MULTI_MODULE
9064 # non-empty at configure time, or by adding -multi_module to the
9065 # link flags.
9066 rm -rf libconftest.dylib*
9067 echo "int foo(void){return 1;}" > conftest.c
9068 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
9069 -dynamiclib -Wl,-single_module conftest.c" >&5
9070 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
9071 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
9072 _lt_result=$?
9073 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
9074 lt_cv_apple_cc_single_mod=yes
9075 else
9076 cat conftest.err >&5
9077 fi
9078 rm -rf libconftest.dylib*
9079 rm -f conftest.*
9080 fi
9081 fi
9082 { $as_echo "$as_me:$LINENO: result: $lt_cv_apple_cc_single_mod" >&5
9083 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
9084 { $as_echo "$as_me:$LINENO: checking for -exported_symbols_list linker flag" >&5
9085 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
9086 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then
9087 $as_echo_n "(cached) " >&6
9088 else
9089 lt_cv_ld_exported_symbols_list=no
9090 save_LDFLAGS=$LDFLAGS
9091 echo "_main" > conftest.sym
9092 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
9093 cat >conftest.$ac_ext <<_ACEOF
9094 /* confdefs.h. */
9095 _ACEOF
9096 cat confdefs.h >>conftest.$ac_ext
9097 cat >>conftest.$ac_ext <<_ACEOF
9098 /* end confdefs.h. */
9099
9100 int
9101 main ()
9102 {
9103
9104 ;
9105 return 0;
9106 }
9107 _ACEOF
9108 rm -f conftest.$ac_objext conftest$ac_exeext
9109 if { (ac_try="$ac_link"
9110 case "(($ac_try" in
9111 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9112 *) ac_try_echo=$ac_try;;
9113 esac
9114 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9115 $as_echo "$ac_try_echo") >&5
9116 (eval "$ac_link") 2>conftest.er1
9117 ac_status=$?
9118 grep -v '^ *+' conftest.er1 >conftest.err
9119 rm -f conftest.er1
9120 cat conftest.err >&5
9121 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9122 (exit $ac_status); } && {
9123 test -z "$ac_c_werror_flag" ||
9124 test ! -s conftest.err
9125 } && test -s conftest$ac_exeext && {
9126 test "$cross_compiling" = yes ||
9127 $as_test_x conftest$ac_exeext
9128 }; then
9129 lt_cv_ld_exported_symbols_list=yes
9130 else
9131 $as_echo "$as_me: failed program was:" >&5
9132 sed 's/^/| /' conftest.$ac_ext >&5
9133
9134 lt_cv_ld_exported_symbols_list=no
9135 fi
9136
9137 rm -rf conftest.dSYM
9138 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9139 conftest$ac_exeext conftest.$ac_ext
9140 LDFLAGS="$save_LDFLAGS"
9141
9142 fi
9143 { $as_echo "$as_me:$LINENO: result: $lt_cv_ld_exported_symbols_list" >&5
9144 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
9145 case $host_os in
9146 rhapsody* | darwin1.[012])
9147 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
9148 darwin1.*)
9149 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
9150 darwin*) # darwin 5.x on
9151 # if running on 10.5 or later, the deployment target defaults
9152 # to the OS version, if on x86, and 10.4, the deployment
9153 # target defaults to 10.4. Don't you love it?
9154 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
9155 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
9156 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
9157 10.[012]*)
9158 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
9159 10.*)
9160 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
9161 esac
9162 ;;
9163 esac
9164 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
9165 _lt_dar_single_mod='$single_module'
9166 fi
9167 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
9168 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
9169 else
9170 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
9171 fi
9172 if test "$DSYMUTIL" != ":"; then
9173 _lt_dsymutil='~$DSYMUTIL $lib || :'
9174 else
9175 _lt_dsymutil=
9176 fi
9177 ;;
9178 esac
9179
9180
9181 for ac_header in dlfcn.h
9182 do
9183 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9184 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
9185 $as_echo_n "checking for $ac_header... " >&6; }
9186 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9187 $as_echo_n "(cached) " >&6
9188 else
9189 cat >conftest.$ac_ext <<_ACEOF
9190 /* confdefs.h. */
9191 _ACEOF
9192 cat confdefs.h >>conftest.$ac_ext
9193 cat >>conftest.$ac_ext <<_ACEOF
9194 /* end confdefs.h. */
9195 $ac_includes_default
9196
9197 #include <$ac_header>
9198 _ACEOF
9199 rm -f conftest.$ac_objext
9200 if { (ac_try="$ac_compile"
9201 case "(($ac_try" in
9202 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9203 *) ac_try_echo=$ac_try;;
9204 esac
9205 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9206 $as_echo "$ac_try_echo") >&5
9207 (eval "$ac_compile") 2>conftest.er1
9208 ac_status=$?
9209 grep -v '^ *+' conftest.er1 >conftest.err
9210 rm -f conftest.er1
9211 cat conftest.err >&5
9212 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9213 (exit $ac_status); } && {
9214 test -z "$ac_c_werror_flag" ||
9215 test ! -s conftest.err
9216 } && test -s conftest.$ac_objext; then
9217 eval "$as_ac_Header=yes"
9218 else
9219 $as_echo "$as_me: failed program was:" >&5
9220 sed 's/^/| /' conftest.$ac_ext >&5
9221
9222 eval "$as_ac_Header=no"
9223 fi
9224
9225 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9226 fi
9227 ac_res=`eval 'as_val=${'$as_ac_Header'}
9228 $as_echo "$as_val"'`
9229 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
9230 $as_echo "$ac_res" >&6; }
9231 as_val=`eval 'as_val=${'$as_ac_Header'}
9232 $as_echo "$as_val"'`
9233 if test "x$as_val" = x""yes; then
9234 cat >>confdefs.h <<_ACEOF
9235 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9236 _ACEOF
9237
9238 fi
9239
9240 done
9241
9242
9243
9244
9245
9246 # Set options
9247
9248
9249
9250 enable_dlopen=no
9251
9252
9253 enable_win32_dll=no
9254
9255
9256 # Check whether --enable-shared was given.
9257 if test "${enable_shared+set}" = set; then
9258 enableval=$enable_shared; p=${PACKAGE-default}
9259 case $enableval in
9260 yes) enable_shared=yes ;;
9261 no) enable_shared=no ;;
9262 *)
9263 enable_shared=no
9264 # Look at the argument we got. We use all the common list separators.
9265 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9266 for pkg in $enableval; do
9267 IFS="$lt_save_ifs"
9268 if test "X$pkg" = "X$p"; then
9269 enable_shared=yes
9270 fi
9271 done
9272 IFS="$lt_save_ifs"
9273 ;;
9274 esac
9275 else
9276 enable_shared=yes
9277 fi
9278
9279
9280
9281
9282
9283
9284
9285
9286
9287 # Check whether --enable-static was given.
9288 if test "${enable_static+set}" = set; then
9289 enableval=$enable_static; p=${PACKAGE-default}
9290 case $enableval in
9291 yes) enable_static=yes ;;
9292 no) enable_static=no ;;
9293 *)
9294 enable_static=no
9295 # Look at the argument we got. We use all the common list separators.
9296 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9297 for pkg in $enableval; do
9298 IFS="$lt_save_ifs"
9299 if test "X$pkg" = "X$p"; then
9300 enable_static=yes
9301 fi
9302 done
9303 IFS="$lt_save_ifs"
9304 ;;
9305 esac
9306 else
9307 enable_static=yes
9308 fi
9309
9310
9311
9312
9313
9314
9315
9316
9317
9318
9319 # Check whether --with-pic was given.
9320 if test "${with_pic+set}" = set; then
9321 withval=$with_pic; pic_mode="$withval"
9322 else
9323 pic_mode=default
9324 fi
9325
9326
9327 test -z "$pic_mode" && pic_mode=default
9328
9329
9330
9331
9332
9333
9334
9335 # Check whether --enable-fast-install was given.
9336 if test "${enable_fast_install+set}" = set; then
9337 enableval=$enable_fast_install; p=${PACKAGE-default}
9338 case $enableval in
9339 yes) enable_fast_install=yes ;;
9340 no) enable_fast_install=no ;;
9341 *)
9342 enable_fast_install=no
9343 # Look at the argument we got. We use all the common list separators.
9344 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9345 for pkg in $enableval; do
9346 IFS="$lt_save_ifs"
9347 if test "X$pkg" = "X$p"; then
9348 enable_fast_install=yes
9349 fi
9350 done
9351 IFS="$lt_save_ifs"
9352 ;;
9353 esac
9354 else
9355 enable_fast_install=yes
9356 fi
9357
9358
9359
9360
9361
9362
9363
9364
9365
9366
9367
9368 # This can be used to rebuild libtool when needed
9369 LIBTOOL_DEPS="$ltmain"
9370
9371 # Always use our own libtool.
9372 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
9373
9374
9375
9376
9377
9378
9379
9380
9381
9382
9383
9384
9385
9386
9387
9388
9389
9390
9391
9392
9393
9394
9395
9396
9397
9398 test -z "$LN_S" && LN_S="ln -s"
9399
9400
9401
9402
9403
9404
9405
9406
9407
9408
9409
9410
9411
9412
9413 if test -n "${ZSH_VERSION+set}" ; then
9414 setopt NO_GLOB_SUBST
9415 fi
9416
9417 { $as_echo "$as_me:$LINENO: checking for objdir" >&5
9418 $as_echo_n "checking for objdir... " >&6; }
75709419 if test "${lt_cv_objdir+set}" = set; then
7571 echo $ECHO_N "(cached) $ECHO_C" >&6
9420 $as_echo_n "(cached) " >&6
75729421 else
75739422 rm -f .libs 2>/dev/null
75749423 mkdir .libs 2>/dev/null
75809429 fi
75819430 rmdir .libs 2>/dev/null
75829431 fi
7583 { echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
7584 echo "${ECHO_T}$lt_cv_objdir" >&6; }
9432 { $as_echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
9433 $as_echo "$lt_cv_objdir" >&6; }
75859434 objdir=$lt_cv_objdir
9435
9436
9437
9438
9439
9440 cat >>confdefs.h <<_ACEOF
9441 #define LT_OBJDIR "$lt_cv_objdir/"
9442 _ACEOF
9443
9444
9445
9446
9447
9448
9449
9450
9451
9452
9453
9454
75869455
75879456
75889457
76029471
76039472 # Sed substitution that helps us do robust quoting. It backslashifies
76049473 # metacharacters that are still active within double-quoted strings.
7605 Xsed='sed -e 1s/^X//'
7606 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
9474 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
76079475
76089476 # Same as above, but do not quote variable references.
7609 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
9477 double_quote_subst='s/\(["`\\]\)/\\\1/g'
76109478
76119479 # Sed substitution to delay expansion of an escaped shell variable in a
76129480 # double_quote_subst'ed string.
76139481 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
76149482
9483 # Sed substitution to delay expansion of an escaped single quote.
9484 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
9485
76159486 # Sed substitution to avoid accidental globbing in evaled expressions
76169487 no_glob_subst='s/\*/\\\*/g'
76179488
7618 # Constants:
7619 rm="rm -f"
7620
76219489 # Global variables:
7622 default_ofile=libtool
9490 ofile=libtool
76239491 can_build_shared=yes
76249492
76259493 # All known linkers require a `.a' archive for static linking (except MSVC,
76269494 # which needs '.lib').
76279495 libext=a
7628 ltmain="$ac_aux_dir/ltmain.sh"
7629 ofile="$default_ofile"
9496
76309497 with_gnu_ld="$lt_cv_prog_gnu_ld"
7631
7632 if test -n "$ac_tool_prefix"; then
7633 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
7634 set dummy ${ac_tool_prefix}ar; ac_word=$2
7635 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7636 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7637 if test "${ac_cv_prog_AR+set}" = set; then
7638 echo $ECHO_N "(cached) $ECHO_C" >&6
7639 else
7640 if test -n "$AR"; then
7641 ac_cv_prog_AR="$AR" # Let the user override the test.
7642 else
7643 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7644 for as_dir in $PATH
7645 do
7646 IFS=$as_save_IFS
7647 test -z "$as_dir" && as_dir=.
7648 for ac_exec_ext in '' $ac_executable_extensions; do
7649 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7650 ac_cv_prog_AR="${ac_tool_prefix}ar"
7651 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7652 break 2
7653 fi
7654 done
7655 done
7656 IFS=$as_save_IFS
7657
7658 fi
7659 fi
7660 AR=$ac_cv_prog_AR
7661 if test -n "$AR"; then
7662 { echo "$as_me:$LINENO: result: $AR" >&5
7663 echo "${ECHO_T}$AR" >&6; }
7664 else
7665 { echo "$as_me:$LINENO: result: no" >&5
7666 echo "${ECHO_T}no" >&6; }
7667 fi
7668
7669
7670 fi
7671 if test -z "$ac_cv_prog_AR"; then
7672 ac_ct_AR=$AR
7673 # Extract the first word of "ar", so it can be a program name with args.
7674 set dummy ar; ac_word=$2
7675 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7676 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7677 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
7678 echo $ECHO_N "(cached) $ECHO_C" >&6
7679 else
7680 if test -n "$ac_ct_AR"; then
7681 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7682 else
7683 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7684 for as_dir in $PATH
7685 do
7686 IFS=$as_save_IFS
7687 test -z "$as_dir" && as_dir=.
7688 for ac_exec_ext in '' $ac_executable_extensions; do
7689 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7690 ac_cv_prog_ac_ct_AR="ar"
7691 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7692 break 2
7693 fi
7694 done
7695 done
7696 IFS=$as_save_IFS
7697
7698 fi
7699 fi
7700 ac_ct_AR=$ac_cv_prog_ac_ct_AR
7701 if test -n "$ac_ct_AR"; then
7702 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
7703 echo "${ECHO_T}$ac_ct_AR" >&6; }
7704 else
7705 { echo "$as_me:$LINENO: result: no" >&5
7706 echo "${ECHO_T}no" >&6; }
7707 fi
7708
7709 if test "x$ac_ct_AR" = x; then
7710 AR="false"
7711 else
7712 case $cross_compiling:$ac_tool_warned in
7713 yes:)
7714 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7715 whose name does not start with the host triplet. If you think this
7716 configuration is useful to you, please write to autoconf@gnu.org." >&5
7717 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7718 whose name does not start with the host triplet. If you think this
7719 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7720 ac_tool_warned=yes ;;
7721 esac
7722 AR=$ac_ct_AR
7723 fi
7724 else
7725 AR="$ac_cv_prog_AR"
7726 fi
7727
7728 if test -n "$ac_tool_prefix"; then
7729 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7730 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7731 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7732 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7733 if test "${ac_cv_prog_RANLIB+set}" = set; then
7734 echo $ECHO_N "(cached) $ECHO_C" >&6
7735 else
7736 if test -n "$RANLIB"; then
7737 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7738 else
7739 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7740 for as_dir in $PATH
7741 do
7742 IFS=$as_save_IFS
7743 test -z "$as_dir" && as_dir=.
7744 for ac_exec_ext in '' $ac_executable_extensions; do
7745 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7746 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7747 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7748 break 2
7749 fi
7750 done
7751 done
7752 IFS=$as_save_IFS
7753
7754 fi
7755 fi
7756 RANLIB=$ac_cv_prog_RANLIB
7757 if test -n "$RANLIB"; then
7758 { echo "$as_me:$LINENO: result: $RANLIB" >&5
7759 echo "${ECHO_T}$RANLIB" >&6; }
7760 else
7761 { echo "$as_me:$LINENO: result: no" >&5
7762 echo "${ECHO_T}no" >&6; }
7763 fi
7764
7765
7766 fi
7767 if test -z "$ac_cv_prog_RANLIB"; then
7768 ac_ct_RANLIB=$RANLIB
7769 # Extract the first word of "ranlib", so it can be a program name with args.
7770 set dummy ranlib; ac_word=$2
7771 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7772 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7773 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
7774 echo $ECHO_N "(cached) $ECHO_C" >&6
7775 else
7776 if test -n "$ac_ct_RANLIB"; then
7777 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7778 else
7779 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7780 for as_dir in $PATH
7781 do
7782 IFS=$as_save_IFS
7783 test -z "$as_dir" && as_dir=.
7784 for ac_exec_ext in '' $ac_executable_extensions; do
7785 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7786 ac_cv_prog_ac_ct_RANLIB="ranlib"
7787 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7788 break 2
7789 fi
7790 done
7791 done
7792 IFS=$as_save_IFS
7793
7794 fi
7795 fi
7796 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7797 if test -n "$ac_ct_RANLIB"; then
7798 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
7799 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
7800 else
7801 { echo "$as_me:$LINENO: result: no" >&5
7802 echo "${ECHO_T}no" >&6; }
7803 fi
7804
7805 if test "x$ac_ct_RANLIB" = x; then
7806 RANLIB=":"
7807 else
7808 case $cross_compiling:$ac_tool_warned in
7809 yes:)
7810 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7811 whose name does not start with the host triplet. If you think this
7812 configuration is useful to you, please write to autoconf@gnu.org." >&5
7813 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7814 whose name does not start with the host triplet. If you think this
7815 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7816 ac_tool_warned=yes ;;
7817 esac
7818 RANLIB=$ac_ct_RANLIB
7819 fi
7820 else
7821 RANLIB="$ac_cv_prog_RANLIB"
7822 fi
7823
7824 if test -n "$ac_tool_prefix"; then
7825 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7826 set dummy ${ac_tool_prefix}strip; ac_word=$2
7827 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7828 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7829 if test "${ac_cv_prog_STRIP+set}" = set; then
7830 echo $ECHO_N "(cached) $ECHO_C" >&6
7831 else
7832 if test -n "$STRIP"; then
7833 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7834 else
7835 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7836 for as_dir in $PATH
7837 do
7838 IFS=$as_save_IFS
7839 test -z "$as_dir" && as_dir=.
7840 for ac_exec_ext in '' $ac_executable_extensions; do
7841 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7842 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7843 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7844 break 2
7845 fi
7846 done
7847 done
7848 IFS=$as_save_IFS
7849
7850 fi
7851 fi
7852 STRIP=$ac_cv_prog_STRIP
7853 if test -n "$STRIP"; then
7854 { echo "$as_me:$LINENO: result: $STRIP" >&5
7855 echo "${ECHO_T}$STRIP" >&6; }
7856 else
7857 { echo "$as_me:$LINENO: result: no" >&5
7858 echo "${ECHO_T}no" >&6; }
7859 fi
7860
7861
7862 fi
7863 if test -z "$ac_cv_prog_STRIP"; then
7864 ac_ct_STRIP=$STRIP
7865 # Extract the first word of "strip", so it can be a program name with args.
7866 set dummy strip; ac_word=$2
7867 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7868 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7869 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
7870 echo $ECHO_N "(cached) $ECHO_C" >&6
7871 else
7872 if test -n "$ac_ct_STRIP"; then
7873 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7874 else
7875 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7876 for as_dir in $PATH
7877 do
7878 IFS=$as_save_IFS
7879 test -z "$as_dir" && as_dir=.
7880 for ac_exec_ext in '' $ac_executable_extensions; do
7881 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7882 ac_cv_prog_ac_ct_STRIP="strip"
7883 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7884 break 2
7885 fi
7886 done
7887 done
7888 IFS=$as_save_IFS
7889
7890 fi
7891 fi
7892 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7893 if test -n "$ac_ct_STRIP"; then
7894 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
7895 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
7896 else
7897 { echo "$as_me:$LINENO: result: no" >&5
7898 echo "${ECHO_T}no" >&6; }
7899 fi
7900
7901 if test "x$ac_ct_STRIP" = x; then
7902 STRIP=":"
7903 else
7904 case $cross_compiling:$ac_tool_warned in
7905 yes:)
7906 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7907 whose name does not start with the host triplet. If you think this
7908 configuration is useful to you, please write to autoconf@gnu.org." >&5
7909 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7910 whose name does not start with the host triplet. If you think this
7911 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7912 ac_tool_warned=yes ;;
7913 esac
7914 STRIP=$ac_ct_STRIP
7915 fi
7916 else
7917 STRIP="$ac_cv_prog_STRIP"
7918 fi
7919
79209498
79219499 old_CC="$CC"
79229500 old_CFLAGS="$CFLAGS"
79239501
79249502 # Set sane defaults for various variables
7925 test -z "$AR" && AR=ar
7926 test -z "$AR_FLAGS" && AR_FLAGS=cru
7927 test -z "$AS" && AS=as
79289503 test -z "$CC" && CC=cc
79299504 test -z "$LTCC" && LTCC=$CC
79309505 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7931 test -z "$DLLTOOL" && DLLTOOL=dlltool
79329506 test -z "$LD" && LD=ld
7933 test -z "$LN_S" && LN_S="ln -s"
7934 test -z "$MAGIC_CMD" && MAGIC_CMD=file
7935 test -z "$NM" && NM=nm
7936 test -z "$SED" && SED=sed
7937 test -z "$OBJDUMP" && OBJDUMP=objdump
7938 test -z "$RANLIB" && RANLIB=:
7939 test -z "$STRIP" && STRIP=:
79409507 test -z "$ac_objext" && ac_objext=o
7941
7942 # Determine commands to create old-style static archives.
7943 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
7944 old_postinstall_cmds='chmod 644 $oldlib'
7945 old_postuninstall_cmds=
7946
7947 if test -n "$RANLIB"; then
7948 case $host_os in
7949 openbsd*)
7950 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
7951 ;;
7952 *)
7953 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
7954 ;;
7955 esac
7956 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
7957 fi
79589508
79599509 for cc_temp in $compiler""; do
79609510 case $cc_temp in
79649514 *) break;;
79659515 esac
79669516 done
7967 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
9517 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
79689518
79699519
79709520 # Only perform the check for file, if the check method requires it
9521 test -z "$MAGIC_CMD" && MAGIC_CMD=file
79719522 case $deplibs_check_method in
79729523 file_magic*)
79739524 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7974 { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
7975 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
9525 { $as_echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
9526 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
79769527 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7977 echo $ECHO_N "(cached) $ECHO_C" >&6
9528 $as_echo_n "(cached) " >&6
79789529 else
79799530 case $MAGIC_CMD in
79809531 [\\/*] | ?:[\\/]*)
79989549 $EGREP "$file_magic_regex" > /dev/null; then
79999550 :
80009551 else
8001 cat <<EOF 1>&2
9552 cat <<_LT_EOF 1>&2
80029553
80039554 *** Warning: the command libtool uses to detect shared libraries,
80049555 *** $file_magic_cmd, produces output that libtool cannot recognize.
80099560 *** may want to report the problem to your system manager and/or to
80109561 *** bug-libtool@gnu.org
80119562
8012 EOF
9563 _LT_EOF
80139564 fi ;;
80149565 esac
80159566 fi
80249575
80259576 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
80269577 if test -n "$MAGIC_CMD"; then
8027 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
8028 echo "${ECHO_T}$MAGIC_CMD" >&6; }
8029 else
8030 { echo "$as_me:$LINENO: result: no" >&5
8031 echo "${ECHO_T}no" >&6; }
8032 fi
9578 { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
9579 $as_echo "$MAGIC_CMD" >&6; }
9580 else
9581 { $as_echo "$as_me:$LINENO: result: no" >&5
9582 $as_echo "no" >&6; }
9583 fi
9584
9585
9586
9587
80339588
80349589 if test -z "$lt_cv_path_MAGIC_CMD"; then
80359590 if test -n "$ac_tool_prefix"; then
8036 { echo "$as_me:$LINENO: checking for file" >&5
8037 echo $ECHO_N "checking for file... $ECHO_C" >&6; }
9591 { $as_echo "$as_me:$LINENO: checking for file" >&5
9592 $as_echo_n "checking for file... " >&6; }
80389593 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
8039 echo $ECHO_N "(cached) $ECHO_C" >&6
9594 $as_echo_n "(cached) " >&6
80409595 else
80419596 case $MAGIC_CMD in
80429597 [\\/*] | ?:[\\/]*)
80609615 $EGREP "$file_magic_regex" > /dev/null; then
80619616 :
80629617 else
8063 cat <<EOF 1>&2
9618 cat <<_LT_EOF 1>&2
80649619
80659620 *** Warning: the command libtool uses to detect shared libraries,
80669621 *** $file_magic_cmd, produces output that libtool cannot recognize.
80719626 *** may want to report the problem to your system manager and/or to
80729627 *** bug-libtool@gnu.org
80739628
8074 EOF
9629 _LT_EOF
80759630 fi ;;
80769631 esac
80779632 fi
80869641
80879642 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
80889643 if test -n "$MAGIC_CMD"; then
8089 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
8090 echo "${ECHO_T}$MAGIC_CMD" >&6; }
8091 else
8092 { echo "$as_me:$LINENO: result: no" >&5
8093 echo "${ECHO_T}no" >&6; }
8094 fi
9644 { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
9645 $as_echo "$MAGIC_CMD" >&6; }
9646 else
9647 { $as_echo "$as_me:$LINENO: result: no" >&5
9648 $as_echo "no" >&6; }
9649 fi
9650
80959651
80969652 else
80979653 MAGIC_CMD=:
81029658 ;;
81039659 esac
81049660
8105 enable_dlopen=no
8106 enable_win32_dll=no
8107
8108 # Check whether --enable-libtool-lock was given.
8109 if test "${enable_libtool_lock+set}" = set; then
8110 enableval=$enable_libtool_lock;
8111 fi
8112
8113 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
8114
8115
8116 # Check whether --with-pic was given.
8117 if test "${with_pic+set}" = set; then
8118 withval=$with_pic; pic_mode="$withval"
8119 else
8120 pic_mode=default
8121 fi
8122
8123 test -z "$pic_mode" && pic_mode=default
8124
81259661 # Use C for the default configuration in the libtool script
8126 tagname=
9662
81279663 lt_save_CC="$CC"
81289664 ac_ext=c
81299665 ac_cpp='$CPP $CPPFLAGS'
81469682 lt_simple_link_test_code='int main(){return(0);}'
81479683
81489684
9685
9686
9687
9688
9689
81499690 # If no C compiler was specified, use CC.
81509691 LTCC=${LTCC-"$CC"}
81519692
81559696 # Allow CC to be a program name with arguments.
81569697 compiler=$CC
81579698
9699 # Save the default compiler, since it gets overwritten when the other
9700 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
9701 compiler_DEFAULT=$CC
81589702
81599703 # save warnings/boilerplate of simple test code
81609704 ac_outfile=conftest.$ac_objext
81619705 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
81629706 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
81639707 _lt_compiler_boilerplate=`cat conftest.err`
8164 $rm conftest*
9708 $RM conftest*
81659709
81669710 ac_outfile=conftest.$ac_objext
81679711 echo "$lt_simple_link_test_code" >conftest.$ac_ext
81689712 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
81699713 _lt_linker_boilerplate=`cat conftest.err`
8170 $rm conftest*
8171
8172
9714 $RM -r conftest*
9715
9716
9717 if test -n "$compiler"; then
81739718
81749719 lt_prog_compiler_no_builtin_flag=
81759720
81769721 if test "$GCC" = yes; then
81779722 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
81789723
8179
8180 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8181 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
9724 { $as_echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
9725 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
81829726 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
8183 echo $ECHO_N "(cached) $ECHO_C" >&6
9727 $as_echo_n "(cached) " >&6
81849728 else
81859729 lt_cv_prog_compiler_rtti_exceptions=no
8186 ac_outfile=conftest.$ac_objext
9730 ac_outfile=conftest.$ac_objext
81879731 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
81889732 lt_compiler_flag="-fno-rtti -fno-exceptions"
81899733 # Insert the option either (1) after the last *FLAGS variable, or
81959739 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
81969740 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
81979741 -e 's:$: $lt_compiler_flag:'`
8198 (eval echo "\"\$as_me:8199: $lt_compile\"" >&5)
9742 (eval echo "\"\$as_me:9743: $lt_compile\"" >&5)
81999743 (eval "$lt_compile" 2>conftest.err)
82009744 ac_status=$?
82019745 cat conftest.err >&5
8202 echo "$as_me:8203: \$? = $ac_status" >&5
9746 echo "$as_me:9747: \$? = $ac_status" >&5
82039747 if (exit $ac_status) && test -s "$ac_outfile"; then
82049748 # The compiler can only warn and ignore the option if not recognized
82059749 # So say no if there are warnings other than the usual output.
8206 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
9750 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
82079751 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
82089752 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
82099753 lt_cv_prog_compiler_rtti_exceptions=yes
82109754 fi
82119755 fi
8212 $rm conftest*
8213
8214 fi
8215 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8216 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
9756 $RM conftest*
9757
9758 fi
9759 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
9760 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
82179761
82189762 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
82199763 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
82239767
82249768 fi
82259769
8226 lt_prog_compiler_wl=
9770
9771
9772
9773
9774
9775 lt_prog_compiler_wl=
82279776 lt_prog_compiler_pic=
82289777 lt_prog_compiler_static=
82299778
8230 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
8231 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
9779 { $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
9780 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
82329781
82339782 if test "$GCC" = yes; then
82349783 lt_prog_compiler_wl='-Wl,'
82449793 ;;
82459794
82469795 amigaos*)
8247 # FIXME: we need at least 68020 code to build shared libraries, but
8248 # adding the `-m68020' flag to GCC prevents building anything better,
8249 # like `-m68040'.
8250 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
9796 case $host_cpu in
9797 powerpc)
9798 # see comment about AmigaOS4 .so support
9799 lt_prog_compiler_pic='-fPIC'
9800 ;;
9801 m68k)
9802 # FIXME: we need at least 68020 code to build shared libraries, but
9803 # adding the `-m68020' flag to GCC prevents building anything better,
9804 # like `-m68040'.
9805 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
9806 ;;
9807 esac
82519808 ;;
82529809
82539810 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
82549811 # PIC is the default for these OSes.
82559812 ;;
82569813
8257 mingw* | cygwin* | pw32* | os2*)
9814 mingw* | cygwin* | pw32* | os2* | cegcc*)
82589815 # This hack is so that the source file can tell whether it is being
82599816 # built for inclusion in a dll (and should export symbols for example).
82609817 # Although the cygwin gcc ignores -fPIC, still need this for old-style
82689825 lt_prog_compiler_pic='-fno-common'
82699826 ;;
82709827
9828 hpux*)
9829 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
9830 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
9831 # sets the default TLS model and affects inlining.
9832 case $host_cpu in
9833 hppa*64*)
9834 # +Z the default
9835 ;;
9836 *)
9837 lt_prog_compiler_pic='-fPIC'
9838 ;;
9839 esac
9840 ;;
9841
82719842 interix[3-9]*)
82729843 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
82739844 # Instead, we relocate shared libraries at runtime.
82809851 enable_shared=no
82819852 ;;
82829853
9854 *nto* | *qnx*)
9855 # QNX uses GNU C++, but need to define -shared option too, otherwise
9856 # it will coredump.
9857 lt_prog_compiler_pic='-fPIC -shared'
9858 ;;
9859
82839860 sysv4*MP*)
82849861 if test -d /usr/nec; then
82859862 lt_prog_compiler_pic=-Kconform_pic
82869863 fi
8287 ;;
8288
8289 hpux*)
8290 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8291 # not for PA HP-UX.
8292 case $host_cpu in
8293 hppa*64*|ia64*)
8294 # +Z the default
8295 ;;
8296 *)
8297 lt_prog_compiler_pic='-fPIC'
8298 ;;
8299 esac
83009864 ;;
83019865
83029866 *)
83159879 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
83169880 fi
83179881 ;;
8318 darwin*)
8319 # PIC is the default on this platform
8320 # Common symbols not allowed in MH_DYLIB files
8321 case $cc_basename in
8322 xlc*)
8323 lt_prog_compiler_pic='-qnocommon'
8324 lt_prog_compiler_wl='-Wl,'
8325 ;;
8326 esac
8327 ;;
8328
8329 mingw* | cygwin* | pw32* | os2*)
9882
9883 mingw* | cygwin* | pw32* | os2* | cegcc*)
83309884 # This hack is so that the source file can tell whether it is being
83319885 # built for inclusion in a dll (and should export symbols for example).
83329886 lt_prog_compiler_pic='-DDLL_EXPORT'
83549908 lt_prog_compiler_static='-non_shared'
83559909 ;;
83569910
8357 newsos6)
8358 lt_prog_compiler_pic='-KPIC'
8359 lt_prog_compiler_static='-Bstatic'
8360 ;;
8361
83629911 linux* | k*bsd*-gnu)
83639912 case $cc_basename in
8364 icc* | ecc*)
9913 # old Intel for x86_64 which still supported -KPIC.
9914 ecc*)
83659915 lt_prog_compiler_wl='-Wl,'
83669916 lt_prog_compiler_pic='-KPIC'
83679917 lt_prog_compiler_static='-static'
83689918 ;;
9919 # icc used to be incompatible with GCC.
9920 # ICC 10 doesn't accept -KPIC any more.
9921 icc* | ifort*)
9922 lt_prog_compiler_wl='-Wl,'
9923 lt_prog_compiler_pic='-fPIC'
9924 lt_prog_compiler_static='-static'
9925 ;;
9926 # Lahey Fortran 8.1.
9927 lf95*)
9928 lt_prog_compiler_wl='-Wl,'
9929 lt_prog_compiler_pic='--shared'
9930 lt_prog_compiler_static='--static'
9931 ;;
83699932 pgcc* | pgf77* | pgf90* | pgf95*)
83709933 # Portland Group compilers (*not* the Pentium gcc compiler,
83719934 # which looks to be a dead project)
83789941 # All Alpha code is PIC.
83799942 lt_prog_compiler_static='-non_shared'
83809943 ;;
9944 xl*)
9945 # IBM XL C 8.0/Fortran 10.1 on PPC
9946 lt_prog_compiler_wl='-Wl,'
9947 lt_prog_compiler_pic='-qpic'
9948 lt_prog_compiler_static='-qstaticlink'
9949 ;;
83819950 *)
8382 case `$CC -V 2>&1 | sed 5q` in
9951 case `$CC -V 2>&1 | sed 5q` in
83839952 *Sun\ C*)
83849953 # Sun C 5.9
83859954 lt_prog_compiler_pic='-KPIC'
83979966 esac
83989967 ;;
83999968
9969 newsos6)
9970 lt_prog_compiler_pic='-KPIC'
9971 lt_prog_compiler_static='-Bstatic'
9972 ;;
9973
9974 *nto* | *qnx*)
9975 # QNX uses GNU C++, but need to define -shared option too, otherwise
9976 # it will coredump.
9977 lt_prog_compiler_pic='-fPIC -shared'
9978 ;;
9979
84009980 osf3* | osf4* | osf5*)
84019981 lt_prog_compiler_wl='-Wl,'
84029982 # All OSF/1 code is PIC.
845910039 esac
846010040 fi
846110041
8462 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
8463 echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
10042 case $host_os in
10043 # For platforms which do not support PIC, -DPIC is meaningless:
10044 *djgpp*)
10045 lt_prog_compiler_pic=
10046 ;;
10047 *)
10048 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
10049 ;;
10050 esac
10051 { $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
10052 $as_echo "$lt_prog_compiler_pic" >&6; }
10053
10054
10055
10056
10057
846410058
846510059 #
846610060 # Check to make sure the PIC flag actually works.
846710061 #
846810062 if test -n "$lt_prog_compiler_pic"; then
8469
8470 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8471 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
8472 if test "${lt_prog_compiler_pic_works+set}" = set; then
8473 echo $ECHO_N "(cached) $ECHO_C" >&6
8474 else
8475 lt_prog_compiler_pic_works=no
8476 ac_outfile=conftest.$ac_objext
10063 { $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
10064 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
10065 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then
10066 $as_echo_n "(cached) " >&6
10067 else
10068 lt_cv_prog_compiler_pic_works=no
10069 ac_outfile=conftest.$ac_objext
847710070 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
847810071 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
847910072 # Insert the option either (1) after the last *FLAGS variable, or
848510078 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
848610079 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
848710080 -e 's:$: $lt_compiler_flag:'`
8488 (eval echo "\"\$as_me:8489: $lt_compile\"" >&5)
10081 (eval echo "\"\$as_me:10082: $lt_compile\"" >&5)
848910082 (eval "$lt_compile" 2>conftest.err)
849010083 ac_status=$?
849110084 cat conftest.err >&5
8492 echo "$as_me:8493: \$? = $ac_status" >&5
10085 echo "$as_me:10086: \$? = $ac_status" >&5
849310086 if (exit $ac_status) && test -s "$ac_outfile"; then
849410087 # The compiler can only warn and ignore the option if not recognized
849510088 # So say no if there are warnings other than the usual output.
8496 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
10089 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
849710090 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
849810091 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8499 lt_prog_compiler_pic_works=yes
10092 lt_cv_prog_compiler_pic_works=yes
850010093 fi
850110094 fi
8502 $rm conftest*
8503
8504 fi
8505 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
8506 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6; }
8507
8508 if test x"$lt_prog_compiler_pic_works" = xyes; then
10095 $RM conftest*
10096
10097 fi
10098 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works" >&5
10099 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
10100
10101 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
850910102 case $lt_prog_compiler_pic in
851010103 "" | " "*) ;;
851110104 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
851610109 fi
851710110
851810111 fi
8519 case $host_os in
8520 # For platforms which do not support PIC, -DPIC is meaningless:
8521 *djgpp*)
8522 lt_prog_compiler_pic=
8523 ;;
8524 *)
8525 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8526 ;;
8527 esac
10112
10113
10114
10115
10116
852810117
852910118 #
853010119 # Check to make sure the static flag actually works.
853110120 #
853210121 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8533 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8534 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
8535 if test "${lt_prog_compiler_static_works+set}" = set; then
8536 echo $ECHO_N "(cached) $ECHO_C" >&6
8537 else
8538 lt_prog_compiler_static_works=no
10122 { $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
10123 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
10124 if test "${lt_cv_prog_compiler_static_works+set}" = set; then
10125 $as_echo_n "(cached) " >&6
10126 else
10127 lt_cv_prog_compiler_static_works=no
853910128 save_LDFLAGS="$LDFLAGS"
854010129 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
854110130 echo "$lt_simple_link_test_code" > conftest.$ac_ext
854510134 if test -s conftest.err; then
854610135 # Append any errors to the config.log.
854710136 cat conftest.err 1>&5
8548 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
10137 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
854910138 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
855010139 if diff conftest.exp conftest.er2 >/dev/null; then
8551 lt_prog_compiler_static_works=yes
10140 lt_cv_prog_compiler_static_works=yes
855210141 fi
855310142 else
8554 lt_prog_compiler_static_works=yes
10143 lt_cv_prog_compiler_static_works=yes
855510144 fi
855610145 fi
8557 $rm conftest*
10146 $RM -r conftest*
855810147 LDFLAGS="$save_LDFLAGS"
855910148
856010149 fi
8561 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
8562 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6; }
8563
8564 if test x"$lt_prog_compiler_static_works" = xyes; then
10150 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works" >&5
10151 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
10152
10153 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
856510154 :
856610155 else
856710156 lt_prog_compiler_static=
856810157 fi
856910158
857010159
8571 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
8572 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
10160
10161
10162
10163
10164
10165 { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
10166 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
857310167 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
8574 echo $ECHO_N "(cached) $ECHO_C" >&6
10168 $as_echo_n "(cached) " >&6
857510169 else
857610170 lt_cv_prog_compiler_c_o=no
8577 $rm -r conftest 2>/dev/null
10171 $RM -r conftest 2>/dev/null
857810172 mkdir conftest
857910173 cd conftest
858010174 mkdir out
858910183 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
859010184 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
859110185 -e 's:$: $lt_compiler_flag:'`
8592 (eval echo "\"\$as_me:8593: $lt_compile\"" >&5)
10186 (eval echo "\"\$as_me:10187: $lt_compile\"" >&5)
859310187 (eval "$lt_compile" 2>out/conftest.err)
859410188 ac_status=$?
859510189 cat out/conftest.err >&5
8596 echo "$as_me:8597: \$? = $ac_status" >&5
10190 echo "$as_me:10191: \$? = $ac_status" >&5
859710191 if (exit $ac_status) && test -s out/conftest2.$ac_objext
859810192 then
859910193 # The compiler can only warn and ignore the option if not recognized
860010194 # So say no if there are warnings
8601 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
10195 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
860210196 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
860310197 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
860410198 lt_cv_prog_compiler_c_o=yes
860510199 fi
860610200 fi
860710201 chmod u+w . 2>&5
8608 $rm conftest*
10202 $RM conftest*
860910203 # SGI C++ compiler will create directory out/ii_files/ for
861010204 # template instantiation
8611 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
8612 $rm out/* && rmdir out
10205 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10206 $RM out/* && rmdir out
861310207 cd ..
8614 rmdir conftest
8615 $rm conftest*
8616
8617 fi
8618 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
8619 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
10208 $RM -r conftest
10209 $RM conftest*
10210
10211 fi
10212 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
10213 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
10214
10215
10216
10217
10218
10219
10220 { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
10221 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
10222 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
10223 $as_echo_n "(cached) " >&6
10224 else
10225 lt_cv_prog_compiler_c_o=no
10226 $RM -r conftest 2>/dev/null
10227 mkdir conftest
10228 cd conftest
10229 mkdir out
10230 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10231
10232 lt_compiler_flag="-o out/conftest2.$ac_objext"
10233 # Insert the option either (1) after the last *FLAGS variable, or
10234 # (2) before a word containing "conftest.", or (3) at the end.
10235 # Note that $ac_compile itself does not contain backslashes and begins
10236 # with a dollar sign (not a hyphen), so the echo should work correctly.
10237 lt_compile=`echo "$ac_compile" | $SED \
10238 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10239 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10240 -e 's:$: $lt_compiler_flag:'`
10241 (eval echo "\"\$as_me:10242: $lt_compile\"" >&5)
10242 (eval "$lt_compile" 2>out/conftest.err)
10243 ac_status=$?
10244 cat out/conftest.err >&5
10245 echo "$as_me:10246: \$? = $ac_status" >&5
10246 if (exit $ac_status) && test -s out/conftest2.$ac_objext
10247 then
10248 # The compiler can only warn and ignore the option if not recognized
10249 # So say no if there are warnings
10250 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
10251 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10252 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10253 lt_cv_prog_compiler_c_o=yes
10254 fi
10255 fi
10256 chmod u+w . 2>&5
10257 $RM conftest*
10258 # SGI C++ compiler will create directory out/ii_files/ for
10259 # template instantiation
10260 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10261 $RM out/* && rmdir out
10262 cd ..
10263 $RM -r conftest
10264 $RM conftest*
10265
10266 fi
10267 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
10268 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
10269
10270
862010271
862110272
862210273 hard_links="nottested"
862310274 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
862410275 # do not overwrite the value of need_locks provided by the user
8625 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
8626 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
10276 { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
10277 $as_echo_n "checking if we can lock with hard links... " >&6; }
862710278 hard_links=yes
8628 $rm conftest*
10279 $RM conftest*
862910280 ln conftest.a conftest.b 2>/dev/null && hard_links=no
863010281 touch conftest.a
863110282 ln conftest.a conftest.b 2>&5 || hard_links=no
863210283 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8633 { echo "$as_me:$LINENO: result: $hard_links" >&5
8634 echo "${ECHO_T}$hard_links" >&6; }
10284 { $as_echo "$as_me:$LINENO: result: $hard_links" >&5
10285 $as_echo "$hard_links" >&6; }
863510286 if test "$hard_links" = no; then
8636 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8637 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
10287 { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
10288 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
863810289 need_locks=warn
863910290 fi
864010291 else
864110292 need_locks=no
864210293 fi
864310294
8644 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8645 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
10295
10296
10297
10298
10299
10300 { $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10301 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
864610302
864710303 runpath_var=
864810304 allow_undefined_flag=
8649 enable_shared_with_static_runtimes=no
10305 always_export_symbols=no
865010306 archive_cmds=
865110307 archive_expsym_cmds=
8652 old_archive_From_new_cmds=
8653 old_archive_from_expsyms_cmds=
10308 compiler_needs_object=no
10309 enable_shared_with_static_runtimes=no
865410310 export_dynamic_flag_spec=
8655 whole_archive_flag_spec=
8656 thread_safe_flag_spec=
10311 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10312 hardcode_automatic=no
10313 hardcode_direct=no
10314 hardcode_direct_absolute=no
865710315 hardcode_libdir_flag_spec=
865810316 hardcode_libdir_flag_spec_ld=
865910317 hardcode_libdir_separator=
8660 hardcode_direct=no
866110318 hardcode_minus_L=no
866210319 hardcode_shlibpath_var=unsupported
10320 inherit_rpath=no
866310321 link_all_deplibs=unknown
8664 hardcode_automatic=no
866510322 module_cmds=
866610323 module_expsym_cmds=
8667 always_export_symbols=no
8668 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10324 old_archive_from_new_cmds=
10325 old_archive_from_expsyms_cmds=
10326 thread_safe_flag_spec=
10327 whole_archive_flag_spec=
866910328 # include_expsyms should be a list of space-separated symbols to be *always*
867010329 # included in the symbol list
867110330 include_expsyms=
867310332 # it will be wrapped by ` (' and `)$', so one must not match beginning or
867410333 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
867510334 # as well as any symbol that contains `d'.
8676 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
10335 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
867710336 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
867810337 # platforms (ab)use it in PIC code, but their linkers get confused if
867910338 # the symbol is explicitly referenced. Since portable code cannot
868010339 # rely on this symbol name, it's probably fine to never include it in
868110340 # preloaded symbol tables.
10341 # Exclude shared library initialization/finalization symbols.
868210342 extract_expsyms_cmds=
8683 # Just being paranoid about ensuring that cc_basename is set.
8684 for cc_temp in $compiler""; do
8685 case $cc_temp in
8686 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8687 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8688 \-*) ;;
8689 *) break;;
8690 esac
8691 done
8692 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
869310343
869410344 case $host_os in
8695 cygwin* | mingw* | pw32*)
10345 cygwin* | mingw* | pw32* | cegcc*)
869610346 # FIXME: the MSVC++ port hasn't been tested in a loooong time
869710347 # When not using gcc, we currently assume that we are using
869810348 # Microsoft Visual C++.
871810368 # are reset later if shared libraries are not supported. Putting them
871910369 # here allows them to be overridden if necessary.
872010370 runpath_var=LD_RUN_PATH
8721 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
10371 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
872210372 export_dynamic_flag_spec='${wl}--export-dynamic'
872310373 # ancient GNU ld didn't support --whole-archive et. al.
8724 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
8725 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8726 else
8727 whole_archive_flag_spec=
10374 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
10375 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10376 else
10377 whole_archive_flag_spec=
872810378 fi
872910379 supports_anon_versioning=no
8730 case `$LD -v 2>/dev/null` in
10380 case `$LD -v 2>&1` in
873110381 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
873210382 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
873310383 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
873710387
873810388 # See if GNU ld supports shared libraries.
873910389 case $host_os in
8740 aix3* | aix4* | aix5*)
10390 aix[3-9]*)
874110391 # On AIX/PPC, the GNU linker is very broken
874210392 if test "$host_cpu" != ia64; then
874310393 ld_shlibs=no
8744 cat <<EOF 1>&2
10394 cat <<_LT_EOF 1>&2
874510395
874610396 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
874710397 *** to be unable to reliably create shared libraries on AIX.
874910399 *** really care for shared libraries, you may want to modify your PATH
875010400 *** so that a non-GNU linker is found, and then restart.
875110401
8752 EOF
10402 _LT_EOF
875310403 fi
875410404 ;;
875510405
875610406 amigaos*)
8757 archive_cmds='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
8758 hardcode_libdir_flag_spec='-L$libdir'
8759 hardcode_minus_L=yes
8760
8761 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
8762 # that the semantics of dynamic libraries on AmigaOS, at least up
8763 # to version 4, is to share data among multiple programs linked
8764 # with the same dynamic library. Since this doesn't match the
8765 # behavior of shared libraries on other platforms, we can't use
8766 # them.
8767 ld_shlibs=no
10407 case $host_cpu in
10408 powerpc)
10409 # see comment about AmigaOS4 .so support
10410 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10411 archive_expsym_cmds=''
10412 ;;
10413 m68k)
10414 archive_cmds='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
10415 hardcode_libdir_flag_spec='-L$libdir'
10416 hardcode_minus_L=yes
10417 ;;
10418 esac
876810419 ;;
876910420
877010421 beos*)
8771 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
10422 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
877210423 allow_undefined_flag=unsupported
877310424 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
877410425 # support --undefined. This deserves some investigation. FIXME
877810429 fi
877910430 ;;
878010431
8781 cygwin* | mingw* | pw32*)
8782 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
10432 cygwin* | mingw* | pw32* | cegcc*)
10433 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
878310434 # as there is no search path for DLLs.
878410435 hardcode_libdir_flag_spec='-L$libdir'
878510436 allow_undefined_flag=unsupported
878610437 always_export_symbols=no
878710438 enable_shared_with_static_runtimes=yes
8788 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8789
8790 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
10439 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
10440
10441 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
879110442 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
879210443 # If the export-symbols file already is a .def file (1st line
879310444 # is EXPORTS), use it as is; otherwise, prepend...
881810469 archive_expsym_cmds='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
881910470 ;;
882010471
8821 gnu* | linux* | k*bsd*-gnu)
8822 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
10472 gnu* | linux* | tpf* | k*bsd*-gnu)
10473 tmp_diet=no
10474 if test "$host_os" = linux-dietlibc; then
10475 case $cc_basename in
10476 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
10477 esac
10478 fi
10479 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
10480 && test "$tmp_diet" = no
10481 then
882310482 tmp_addflag=
10483 tmp_sharedflag='-shared'
882410484 case $cc_basename,$host_cpu in
8825 pgcc*) # Portland Group C compiler
8826 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
10485 pgcc*) # Portland Group C compiler
10486 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
882710487 tmp_addflag=' $pic_flag'
882810488 ;;
882910489 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
8830 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
10490 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
883110491 tmp_addflag=' $pic_flag -Mnomain' ;;
8832 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
10492 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
883310493 tmp_addflag=' -i_dynamic' ;;
883410494 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
883510495 tmp_addflag=' -i_dynamic -nofor_main' ;;
883610496 ifc* | ifort*) # Intel Fortran compiler
883710497 tmp_addflag=' -nofor_main' ;;
10498 lf95*) # Lahey Fortran 8.1
10499 whole_archive_flag_spec=
10500 tmp_sharedflag='--shared' ;;
10501 xl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
10502 tmp_sharedflag='-qmkshrobj'
10503 tmp_addflag= ;;
883810504 esac
883910505 case `$CC -V 2>&1 | sed 5q` in
884010506 *Sun\ C*) # Sun C 5.9
8841 whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
10507 whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
10508 compiler_needs_object=yes
884210509 tmp_sharedflag='-G' ;;
884310510 *Sun\ F*) # Sun Fortran 8.3
884410511 tmp_sharedflag='-G' ;;
8845 *)
8846 tmp_sharedflag='-shared' ;;
884710512 esac
884810513 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
884910514
8850 if test $supports_anon_versioning = yes; then
8851 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
8852 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8853 $echo "local: *; };" >> $output_objdir/$libname.ver~
8854 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8855 fi
10515 if test "x$supports_anon_versioning" = xyes; then
10516 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10517 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10518 echo "local: *; };" >> $output_objdir/$libname.ver~
10519 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
10520 fi
10521
10522 case $cc_basename in
10523 xlf*)
10524 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
10525 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
10526 hardcode_libdir_flag_spec=
10527 hardcode_libdir_flag_spec_ld='-rpath $libdir'
10528 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
10529 if test "x$supports_anon_versioning" = xyes; then
10530 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10531 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10532 echo "local: *; };" >> $output_objdir/$libname.ver~
10533 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
10534 fi
10535 ;;
10536 esac
885610537 else
8857 ld_shlibs=no
10538 ld_shlibs=no
885810539 fi
885910540 ;;
886010541
886110542 netbsd*)
8862 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
10543 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
886310544 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
886410545 wlarc=
886510546 else
886910550 ;;
887010551
887110552 solaris*)
8872 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
10553 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
887310554 ld_shlibs=no
8874 cat <<EOF 1>&2
10555 cat <<_LT_EOF 1>&2
887510556
887610557 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
887710558 *** create shared libraries on Solaris systems. Therefore, libtool
888010561 *** your PATH or compiler configuration so that the native linker is
888110562 *** used, and then restart.
888210563
8883 EOF
8884 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
10564 _LT_EOF
10565 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
888510566 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
888610567 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
888710568 else
890510586 _LT_EOF
890610587 ;;
890710588 *)
8908 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8909 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
8910 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
8911 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
10589 # For security reasons, it is highly recommended that you always
10590 # use absolute paths for naming shared libraries, and exclude the
10591 # DT_RUNPATH tag from executables and libraries. But doing so
10592 # requires that you compile everything twice, which is a pain.
10593 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10594 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10595 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10596 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
891210597 else
891310598 ld_shlibs=no
891410599 fi
892410609 ;;
892510610
892610611 *)
8927 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
10612 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
892810613 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
892910614 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
893010615 else
895610641 fi
895710642 ;;
895810643
8959 aix4* | aix5*)
10644 aix[4-9]*)
896010645 if test "$host_cpu" = ia64; then
896110646 # On IA64, the linker does run time linking by default, so we don't
896210647 # have to do anything special.
896610651 else
896710652 # If we're using GNU nm, then we don't want the "-C" option.
896810653 # -C means demangle to AIX nm, but means don't demangle with GNU nm
8969 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
8970 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
10654 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
10655 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
897110656 else
8972 export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
10657 export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
897310658 fi
897410659 aix_use_runtimelinking=no
897510660
897610661 # Test if we are trying to use run time linking or normal
897710662 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
897810663 # need to do runtime linking.
8979 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
10664 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
898010665 for ld_flag in $LDFLAGS; do
8981 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8982 aix_use_runtimelinking=yes
8983 break
8984 fi
10666 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
10667 aix_use_runtimelinking=yes
10668 break
10669 fi
898510670 done
898610671 ;;
898710672 esac
899810683
899910684 archive_cmds=''
900010685 hardcode_direct=yes
10686 hardcode_direct_absolute=yes
900110687 hardcode_libdir_separator=':'
900210688 link_all_deplibs=yes
10689 file_list_spec='${wl}-f,'
900310690
900410691 if test "$GCC" = yes; then
900510692 case $host_os in aix4.[012]|aix4.[012].*)
900610693 # We only want to do this on AIX 4.2 and lower, the check
900710694 # below for broken collect2 doesn't work under 4.3+
900810695 collect2name=`${CC} -print-prog-name=collect2`
9009 if test -f "$collect2name" && \
9010 strings "$collect2name" | grep resolve_lib_name >/dev/null
10696 if test -f "$collect2name" &&
10697 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
901110698 then
9012 # We have reworked collect2
9013 :
10699 # We have reworked collect2
10700 :
901410701 else
9015 # We have old collect2
9016 hardcode_direct=unsupported
9017 # It fails to find uninstalled libraries when the uninstalled
9018 # path is not listed in the libpath. Setting hardcode_minus_L
9019 # to unsupported forces relinking
9020 hardcode_minus_L=yes
9021 hardcode_libdir_flag_spec='-L$libdir'
9022 hardcode_libdir_separator=
10702 # We have old collect2
10703 hardcode_direct=unsupported
10704 # It fails to find uninstalled libraries when the uninstalled
10705 # path is not listed in the libpath. Setting hardcode_minus_L
10706 # to unsupported forces relinking
10707 hardcode_minus_L=yes
10708 hardcode_libdir_flag_spec='-L$libdir'
10709 hardcode_libdir_separator=
902310710 fi
902410711 ;;
902510712 esac
903010717 else
903110718 # not using gcc
903210719 if test "$host_cpu" = ia64; then
9033 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9034 # chokes on -Wl,-G. The following line is correct:
10720 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10721 # chokes on -Wl,-G. The following line is correct:
903510722 shared_flag='-G'
903610723 else
903710724 if test "$aix_use_runtimelinking" = yes; then
904210729 fi
904310730 fi
904410731
10732 export_dynamic_flag_spec='${wl}-bexpall'
904510733 # It seems that -bexpall does not export symbols beginning with
904610734 # underscore (_), so it is better to generate a list of symbols to export.
904710735 always_export_symbols=yes
904910737 # Warning - without using the other runtime loading flags (-brtl),
905010738 # -berok will link without error, but may produce a broken library.
905110739 allow_undefined_flag='-berok'
9052 # Determine the default libpath from the value encoded in an empty executable.
9053 cat >conftest.$ac_ext <<_ACEOF
10740 # Determine the default libpath from the value encoded in an
10741 # empty executable.
10742 cat >conftest.$ac_ext <<_ACEOF
905410743 /* confdefs.h. */
905510744 _ACEOF
905610745 cat confdefs.h >>conftest.$ac_ext
907110760 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
907210761 *) ac_try_echo=$ac_try;;
907310762 esac
9074 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10763 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10764 $as_echo "$ac_try_echo") >&5
907510765 (eval "$ac_link") 2>conftest.er1
907610766 ac_status=$?
907710767 grep -v '^ *+' conftest.er1 >conftest.err
907810768 rm -f conftest.er1
907910769 cat conftest.err >&5
9080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10770 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
908110771 (exit $ac_status); } && {
908210772 test -z "$ac_c_werror_flag" ||
908310773 test ! -s conftest.err
9084 } && test -s conftest$ac_exeext &&
9085 $as_test_x conftest$ac_exeext; then
10774 } && test -s conftest$ac_exeext && {
10775 test "$cross_compiling" = yes ||
10776 $as_test_x conftest$ac_exeext
10777 }; then
908610778
908710779 lt_aix_libpath_sed='
908810780 /Import File Strings/,/^$/ {
909710789 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
909810790 fi
909910791 else
9100 echo "$as_me: failed program was:" >&5
10792 $as_echo "$as_me: failed program was:" >&5
910110793 sed 's/^/| /' conftest.$ac_ext >&5
910210794
910310795
910410796 fi
910510797
10798 rm -rf conftest.dSYM
910610799 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
910710800 conftest$ac_exeext conftest.$ac_ext
910810801 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
910910802
9110 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9111 archive_expsym_cmds="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
9112 else
10803 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10804 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then $ECHO "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
10805 else
911310806 if test "$host_cpu" = ia64; then
911410807 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
911510808 allow_undefined_flag="-z nodefs"
911610809 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
911710810 else
9118 # Determine the default libpath from the value encoded in an empty executable.
10811 # Determine the default libpath from the value encoded in an
10812 # empty executable.
911910813 cat >conftest.$ac_ext <<_ACEOF
912010814 /* confdefs.h. */
912110815 _ACEOF
913710831 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
913810832 *) ac_try_echo=$ac_try;;
913910833 esac
9140 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10834 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10835 $as_echo "$ac_try_echo") >&5
914110836 (eval "$ac_link") 2>conftest.er1
914210837 ac_status=$?
914310838 grep -v '^ *+' conftest.er1 >conftest.err
914410839 rm -f conftest.er1
914510840 cat conftest.err >&5
9146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10841 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
914710842 (exit $ac_status); } && {
914810843 test -z "$ac_c_werror_flag" ||
914910844 test ! -s conftest.err
9150 } && test -s conftest$ac_exeext &&
9151 $as_test_x conftest$ac_exeext; then
10845 } && test -s conftest$ac_exeext && {
10846 test "$cross_compiling" = yes ||
10847 $as_test_x conftest$ac_exeext
10848 }; then
915210849
915310850 lt_aix_libpath_sed='
915410851 /Import File Strings/,/^$/ {
916310860 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
916410861 fi
916510862 else
9166 echo "$as_me: failed program was:" >&5
10863 $as_echo "$as_me: failed program was:" >&5
916710864 sed 's/^/| /' conftest.$ac_ext >&5
916810865
916910866
917010867 fi
917110868
10869 rm -rf conftest.dSYM
917210870 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
917310871 conftest$ac_exeext conftest.$ac_ext
917410872 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
918810886 ;;
918910887
919010888 amigaos*)
9191 archive_cmds='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
9192 hardcode_libdir_flag_spec='-L$libdir'
9193 hardcode_minus_L=yes
9194 # see comment about different semantics on the GNU ld section
9195 ld_shlibs=no
10889 case $host_cpu in
10890 powerpc)
10891 # see comment about AmigaOS4 .so support
10892 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10893 archive_expsym_cmds=''
10894 ;;
10895 m68k)
10896 archive_cmds='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
10897 hardcode_libdir_flag_spec='-L$libdir'
10898 hardcode_minus_L=yes
10899 ;;
10900 esac
919610901 ;;
919710902
919810903 bsdi[45]*)
919910904 export_dynamic_flag_spec=-rdynamic
920010905 ;;
920110906
9202 cygwin* | mingw* | pw32*)
10907 cygwin* | mingw* | pw32* | cegcc*)
920310908 # When not using gcc, we currently assume that we are using
920410909 # Microsoft Visual C++.
920510910 # hardcode_libdir_flag_spec is actually meaningless, as there is
921110916 # Tell ltmain to make .dll files, not .so files.
921210917 shrext_cmds=".dll"
921310918 # FIXME: Setting linknames here is a bad hack.
9214 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
10919 archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
921510920 # The linker will automatically build a .lib file if we build a DLL.
9216 old_archive_From_new_cmds='true'
10921 old_archive_from_new_cmds='true'
921710922 # FIXME: Should let the user specify the lib program.
921810923 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
921910924 fix_srcfile_path='`cygpath -w "$srcfile"`'
922110926 ;;
922210927
922310928 darwin* | rhapsody*)
9224 case $host_os in
9225 rhapsody* | darwin1.[012])
9226 allow_undefined_flag='${wl}-undefined ${wl}suppress'
9227 ;;
9228 *) # Darwin 1.3 on
9229 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
9230 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
9231 else
9232 case ${MACOSX_DEPLOYMENT_TARGET} in
9233 10.[012])
9234 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
9235 ;;
9236 10.*)
9237 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
9238 ;;
9239 esac
9240 fi
9241 ;;
9242 esac
9243 archive_cmds_need_lc=no
9244 hardcode_direct=no
9245 hardcode_automatic=yes
9246 hardcode_shlibpath_var=unsupported
9247 whole_archive_flag_spec=''
9248 link_all_deplibs=yes
9249 if test "$GCC" = yes ; then
9250 output_verbose_link_cmd='echo'
9251 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
9252 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
9253 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
9254 archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
9255 module_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
9256 else
9257 case $cc_basename in
9258 xlc*)
9259 output_verbose_link_cmd='echo'
9260 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
9261 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
9262 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
9263 archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
9264 module_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
9265 ;;
9266 *)
9267 ld_shlibs=no
9268 ;;
9269 esac
9270 fi
10929
10930
10931 archive_cmds_need_lc=no
10932 hardcode_direct=no
10933 hardcode_automatic=yes
10934 hardcode_shlibpath_var=unsupported
10935 whole_archive_flag_spec=''
10936 link_all_deplibs=yes
10937 allow_undefined_flag="$_lt_dar_allow_undefined"
10938 case $cc_basename in
10939 ifort*) _lt_dar_can_shared=yes ;;
10940 *) _lt_dar_can_shared=$GCC ;;
10941 esac
10942 if test "$_lt_dar_can_shared" = "yes"; then
10943 output_verbose_link_cmd=echo
10944 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
10945 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
10946 archive_expsym_cmds="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}"
10947 module_expsym_cmds="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}"
10948
10949 else
10950 ld_shlibs=no
10951 fi
10952
927110953 ;;
927210954
927310955 dgux*)
930910991
931010992 hpux9*)
931110993 if test "$GCC" = yes; then
9312 archive_cmds='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
10994 archive_cmds='$RM $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
931310995 else
9314 archive_cmds='$rm $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
10996 archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
931510997 fi
931610998 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
931710999 hardcode_libdir_separator=:
933111013 fi
933211014 if test "$with_gnu_ld" = no; then
933311015 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
11016 hardcode_libdir_flag_spec_ld='+b $libdir'
933411017 hardcode_libdir_separator=:
9335
933611018 hardcode_direct=yes
11019 hardcode_direct_absolute=yes
933711020 export_dynamic_flag_spec='${wl}-E'
9338
933911021 # hardcode_minus_L: Not really in the search PATH,
934011022 # but as the default location of the library.
934111023 hardcode_minus_L=yes
934911031 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
935011032 ;;
935111033 ia64*)
9352 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
11034 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
935311035 ;;
935411036 *)
935511037 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
937411056
937511057 case $host_cpu in
937611058 hppa*64*|ia64*)
9377 hardcode_libdir_flag_spec_ld='+b $libdir'
937811059 hardcode_direct=no
937911060 hardcode_shlibpath_var=no
938011061 ;;
938111062 *)
938211063 hardcode_direct=yes
11064 hardcode_direct_absolute=yes
938311065 export_dynamic_flag_spec='${wl}-E'
938411066
938511067 # hardcode_minus_L: Not really in the search PATH,
939211074
939311075 irix5* | irix6* | nonstopux*)
939411076 if test "$GCC" = yes; then
9395 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
11077 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
11078 # Try to use the -exported_symbol ld option, if it does not
11079 # work, assume that -exports_file does not work either and
11080 # implicitly export all symbols.
11081 save_LDFLAGS="$LDFLAGS"
11082 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
11083 cat >conftest.$ac_ext <<_ACEOF
11084 int foo(void) {}
11085 _ACEOF
11086 rm -f conftest.$ac_objext conftest$ac_exeext
11087 if { (ac_try="$ac_link"
11088 case "(($ac_try" in
11089 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11090 *) ac_try_echo=$ac_try;;
11091 esac
11092 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11093 $as_echo "$ac_try_echo") >&5
11094 (eval "$ac_link") 2>conftest.er1
11095 ac_status=$?
11096 grep -v '^ *+' conftest.er1 >conftest.err
11097 rm -f conftest.er1
11098 cat conftest.err >&5
11099 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11100 (exit $ac_status); } && {
11101 test -z "$ac_c_werror_flag" ||
11102 test ! -s conftest.err
11103 } && test -s conftest$ac_exeext && {
11104 test "$cross_compiling" = yes ||
11105 $as_test_x conftest$ac_exeext
11106 }; then
11107 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
11108
11109 else
11110 $as_echo "$as_me: failed program was:" >&5
11111 sed 's/^/| /' conftest.$ac_ext >&5
11112
11113
11114 fi
11115
11116 rm -rf conftest.dSYM
11117 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11118 conftest$ac_exeext conftest.$ac_ext
11119 LDFLAGS="$save_LDFLAGS"
939611120 else
9397 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
9398 hardcode_libdir_flag_spec_ld='-rpath $libdir'
11121 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
11122 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
939911123 fi
11124 archive_cmds_need_lc='no'
940011125 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
940111126 hardcode_libdir_separator=:
11127 inherit_rpath=yes
940211128 link_all_deplibs=yes
940311129 ;;
940411130
940511131 netbsd*)
9406 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
11132 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
940711133 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
940811134 else
940911135 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
942111147 hardcode_shlibpath_var=no
942211148 ;;
942311149
11150 *nto* | *qnx*)
11151 ;;
11152
942411153 openbsd*)
942511154 if test -f /usr/libexec/ld.so; then
942611155 hardcode_direct=yes
942711156 hardcode_shlibpath_var=no
9428 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11157 hardcode_direct_absolute=yes
11158 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
942911159 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
943011160 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
943111161 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
944111171 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
944211172 ;;
944311173 esac
9444 fi
11174 fi
944511175 else
944611176 ld_shlibs=no
944711177 fi
945111181 hardcode_libdir_flag_spec='-L$libdir'
945211182 hardcode_minus_L=yes
945311183 allow_undefined_flag=unsupported
9454 archive_cmds='$echo "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$echo "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$echo DATA >> $output_objdir/$libname.def~$echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~$echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
9455 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
11184 archive_cmds='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$ECHO DATA >> $output_objdir/$libname.def~$ECHO " SINGLE NONSHARED" >> $output_objdir/$libname.def~$ECHO EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
11185 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
945611186 ;;
945711187
945811188 osf3*)
945911189 if test "$GCC" = yes; then
946011190 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9461 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
11191 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
946211192 else
946311193 allow_undefined_flag=' -expect_unresolved \*'
9464 archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
11194 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
946511195 fi
11196 archive_cmds_need_lc='no'
946611197 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
946711198 hardcode_libdir_separator=:
946811199 ;;
947011201 osf4* | osf5*) # as osf3* with the addition of -msym flag
947111202 if test "$GCC" = yes; then
947211203 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9473 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
11204 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
947411205 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
947511206 else
947611207 allow_undefined_flag=' -expect_unresolved \*'
9477 archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
9478 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
9479 $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
11208 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
11209 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%s\\n" "-hidden">> $lib.exp~
11210 $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
948011211
948111212 # Both c and cxx compiler support -rpath directly
948211213 hardcode_libdir_flag_spec='-rpath $libdir'
948311214 fi
11215 archive_cmds_need_lc='no'
948411216 hardcode_libdir_separator=:
948511217 ;;
948611218
948711219 solaris*)
9488 no_undefined_flag=' -z text'
11220 no_undefined_flag=' -z defs'
948911221 if test "$GCC" = yes; then
949011222 wlarc='${wl}'
9491 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9492 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9493 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
11223 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
11224 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11225 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
949411226 else
9495 wlarc=''
9496 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9497 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9498 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
11227 case `$CC -V 2>&1` in
11228 *"Compilers 5.0"*)
11229 wlarc=''
11230 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
11231 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11232 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
11233 ;;
11234 *)
11235 wlarc='${wl}'
11236 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
11237 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11238 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
11239 ;;
11240 esac
949911241 fi
950011242 hardcode_libdir_flag_spec='-R$libdir'
950111243 hardcode_shlibpath_var=no
950511247 # The compiler driver will combine and reorder linker options,
950611248 # but understands `-z linker_flag'. GCC discards it without `$wl',
950711249 # but is careful enough not to reorder.
9508 # Supported since Solaris 2.6 (maybe 2.5.1?)
11250 # Supported since Solaris 2.6 (maybe 2.5.1?)
950911251 if test "$GCC" = yes; then
951011252 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
951111253 else
959411336 allow_undefined_flag='${wl}-z,nodefs'
959511337 archive_cmds_need_lc=no
959611338 hardcode_shlibpath_var=no
9597 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
11339 hardcode_libdir_flag_spec='${wl}-R,$libdir'
959811340 hardcode_libdir_separator=':'
959911341 link_all_deplibs=yes
960011342 export_dynamic_flag_spec='${wl}-Bexport'
960111343 runpath_var='LD_RUN_PATH'
960211344
960311345 if test "$GCC" = yes; then
9604 archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9605 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11346 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11347 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
960611348 else
9607 archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9608 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11349 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11350 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
960911351 fi
961011352 ;;
961111353
961911361 ld_shlibs=no
962011362 ;;
962111363 esac
11364
11365 if test x$host_vendor = xsni; then
11366 case $host in
11367 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11368 export_dynamic_flag_spec='${wl}-Blargedynsym'
11369 ;;
11370 esac
11371 fi
962211372 fi
962311373
9624 { echo "$as_me:$LINENO: result: $ld_shlibs" >&5
9625 echo "${ECHO_T}$ld_shlibs" >&6; }
11374 { $as_echo "$as_me:$LINENO: result: $ld_shlibs" >&5
11375 $as_echo "$ld_shlibs" >&6; }
962611376 test "$ld_shlibs" = no && can_build_shared=no
11377
11378 with_gnu_ld=$with_gnu_ld
11379
11380
11381
11382
11383
11384
11385
11386
11387
11388
11389
11390
11391
11392
962711393
962811394 #
962911395 # Do we need to explicitly link libc?
964211408 # Test whether the compiler implicitly links with -lc since on some
964311409 # systems, -lgcc has to come before -lc. If gcc already passes -lc
964411410 # to ld, don't add -lc before -lgcc.
9645 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
9646 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
9647 $rm conftest*
11411 { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
11412 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
11413 $RM conftest*
964811414 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
964911415
965011416 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
965111417 (eval $ac_compile) 2>&5
965211418 ac_status=$?
9653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11419 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
965411420 (exit $ac_status); } 2>conftest.err; then
965511421 soname=conftest
965611422 lib=conftest
966511431 libname=conftest
966611432 lt_save_allow_undefined_flag=$allow_undefined_flag
966711433 allow_undefined_flag=
9668 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
9669 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
11434 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
11435 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
967011436 ac_status=$?
9671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11437 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
967211438 (exit $ac_status); }
967311439 then
967411440 archive_cmds_need_lc=no
967911445 else
968011446 cat conftest.err 1>&5
968111447 fi
9682 $rm conftest*
9683 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
9684 echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
11448 $RM conftest*
11449 { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
11450 $as_echo "$archive_cmds_need_lc" >&6; }
968511451 ;;
968611452 esac
968711453 fi
968811454 ;;
968911455 esac
969011456
9691 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
9692 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
9693 library_names_spec=
9694 libname_spec='lib$name'
9695 soname_spec=
9696 shrext_cmds=".so"
9697 postinstall_cmds=
9698 postuninstall_cmds=
9699 finish_cmds=
9700 finish_eval=
9701 shlibpath_var=
9702 shlibpath_overrides_runpath=unknown
9703 version_type=none
9704 dynamic_linker="$host_os ld.so"
9705 sys_lib_dlsearch_path_spec="/lib /usr/lib"
11457
11458
11459
11460
11461
11462
11463
11464
11465
11466
11467
11468
11469
11470
11471
11472
11473
11474
11475
11476
11477
11478
11479
11480
11481
11482
11483
11484
11485
11486
11487
11488
11489
11490
11491
11492
11493
11494
11495
11496
11497
11498
11499
11500
11501
11502
11503
11504
11505
11506
11507
11508
11509
11510
11511
11512
11513
11514
11515
11516
11517
11518
11519
11520
11521
11522
11523
11524
11525
11526
11527
11528
11529
11530
11531
11532
11533
11534
11535
11536
11537
11538
11539
11540
11541
11542
11543
11544
11545
11546
11547
11548
11549
11550
11551
11552
11553
11554
11555
11556
11557
11558
11559
11560
11561
11562
11563
11564
11565
11566
11567
11568
11569
11570
11571
11572
11573
11574
11575
11576
11577
11578
11579
11580
11581
11582
11583
11584
11585
11586
11587
11588
11589
11590
11591
11592
11593
11594
11595
11596
11597
11598
11599
11600
11601
11602
11603
11604
11605
11606
11607
11608
11609
11610
11611
11612
11613 { $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
11614 $as_echo_n "checking dynamic linker characteristics... " >&6; }
970611615
970711616 if test "$GCC" = yes; then
970811617 case $host_os in
971011619 *) lt_awk_arg="/^libraries:/" ;;
971111620 esac
971211621 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9713 if echo "$lt_search_path_spec" | grep ';' >/dev/null ; then
11622 if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
971411623 # if the path contains ";" then we assume it to be the separator
971511624 # otherwise default to the standard path separator (i.e. ":") - it is
971611625 # assumed that no part of a normal pathname contains ";" but that should
971711626 # okay in the real world where ";" in dirpaths is itself problematic.
9718 lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e 's/;/ /g'`
11627 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
971911628 else
9720 lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11629 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
972111630 fi
972211631 # Ok, now we have the path, separated by spaces, we can step through it
972311632 # and add multilib dir if necessary.
973111640 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
973211641 fi
973311642 done
9734 lt_search_path_spec=`echo $lt_tmp_lt_search_path_spec | awk '
11643 lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
973511644 BEGIN {RS=" "; FS="/|\n";} {
973611645 lt_foo="";
973711646 lt_count=0;
975111660 if (lt_foo != "") { lt_freq[lt_foo]++; }
975211661 if (lt_freq[lt_foo] == 1) { print lt_foo; }
975311662 }'`
9754 sys_lib_search_path_spec=`echo $lt_search_path_spec`
11663 sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
975511664 else
975611665 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
975711666 fi
11667 library_names_spec=
11668 libname_spec='lib$name'
11669 soname_spec=
11670 shrext_cmds=".so"
11671 postinstall_cmds=
11672 postuninstall_cmds=
11673 finish_cmds=
11674 finish_eval=
11675 shlibpath_var=
11676 shlibpath_overrides_runpath=unknown
11677 version_type=none
11678 dynamic_linker="$host_os ld.so"
11679 sys_lib_dlsearch_path_spec="/lib /usr/lib"
975811680 need_lib_prefix=unknown
975911681 hardcode_into_libs=no
976011682
977211694 soname_spec='${libname}${release}${shared_ext}$major'
977311695 ;;
977411696
9775 aix4* | aix5*)
11697 aix[4-9]*)
977611698 version_type=linux
977711699 need_lib_prefix=no
977811700 need_version=no
979111713 aix4 | aix4.[01] | aix4.[01].*)
979211714 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
979311715 echo ' yes '
9794 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
11716 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
979511717 :
979611718 else
979711719 can_build_shared=no
981711739 ;;
981811740
981911741 amigaos*)
9820 library_names_spec='$libname.ixlibrary $libname.a'
9821 # Create ${libname}_ixlibrary.a entries in /sys/libs.
9822 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'
11742 case $host_cpu in
11743 powerpc)
11744 # Since July 2007 AmigaOS4 officially supports .so libraries.
11745 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
11746 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11747 ;;
11748 m68k)
11749 library_names_spec='$libname.ixlibrary $libname.a'
11750 # Create ${libname}_ixlibrary.a entries in /sys/libs.
11751 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'
11752 ;;
11753 esac
982311754 ;;
982411755
982511756 beos*)
984211773 # libtool to hard-code these into programs
984311774 ;;
984411775
9845 cygwin* | mingw* | pw32*)
11776 cygwin* | mingw* | pw32* | cegcc*)
984611777 version_type=windows
984711778 shrext_cmds=".dll"
984811779 need_version=no
984911780 need_lib_prefix=no
985011781
985111782 case $GCC,$host_os in
9852 yes,cygwin* | yes,mingw* | yes,pw32*)
11783 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
985311784 library_names_spec='$libname.dll.a'
985411785 # DLL is installed to $(libdir)/../bin by postinstall_cmds
985511786 postinstall_cmds='base_file=`basename \${file}`~
9856 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
11787 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
985711788 dldir=$destdir/`dirname \$dlpath`~
985811789 test -d \$dldir || mkdir -p \$dldir~
985911790 $install_prog $dir/$dlname \$dldir/$dlname~
9860 chmod a+x \$dldir/$dlname'
11791 chmod a+x \$dldir/$dlname~
11792 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11793 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11794 fi'
986111795 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
986211796 dlpath=$dir/\$dldll~
9863 $rm \$dlpath'
11797 $RM \$dlpath'
986411798 shlibpath_overrides_runpath=yes
986511799
986611800 case $host_os in
986911803 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
987011804 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
987111805 ;;
9872 mingw*)
11806 mingw* | cegcc*)
987311807 # MinGW DLLs use traditional 'lib' prefix
987411808 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9875 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9876 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
11809 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11810 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
987711811 # It is most probably a Windows format PATH printed by
987811812 # mingw gcc, but we are running on Cygwin. Gcc prints its search
987911813 # path with ; separators, and with drive letters. We can handle the
988011814 # drive letters (cygwin fileutils understands them), so leave them,
988111815 # especially as we might pass files found there to a mingw objdump,
988211816 # which wouldn't understand a cygwinified path. Ahh.
9883 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11817 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
988411818 else
9885 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11819 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
988611820 fi
988711821 ;;
988811822 pw32*)
990611840 version_type=darwin
990711841 need_lib_prefix=no
990811842 need_version=no
9909 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11843 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
991011844 soname_spec='${libname}${release}${major}$shared_ext'
991111845 shlibpath_overrides_runpath=yes
991211846 shlibpath_var=DYLD_LIBRARY_PATH
1000511939 fi
1000611940 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
1000711941 ;;
10008 hppa*64*)
10009 shrext_cmds='.sl'
10010 hardcode_into_libs=yes
10011 dynamic_linker="$host_os dld.sl"
10012 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10013 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10014 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10015 soname_spec='${libname}${release}${shared_ext}$major'
10016 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10017 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10018 ;;
10019 *)
11942 hppa*64*)
11943 shrext_cmds='.sl'
11944 hardcode_into_libs=yes
11945 dynamic_linker="$host_os dld.sl"
11946 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11947 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11948 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11949 soname_spec='${libname}${release}${shared_ext}$major'
11950 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11951 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11952 ;;
11953 *)
1002011954 shrext_cmds='.sl'
1002111955 dynamic_linker="$host_os dld.sl"
1002211956 shlibpath_var=SHLIB_PATH
1009312027 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
1009412028 shlibpath_var=LD_LIBRARY_PATH
1009512029 shlibpath_overrides_runpath=no
12030 # Some binutils ld are patched to set DT_RUNPATH
12031 save_LDFLAGS=$LDFLAGS
12032 save_libdir=$libdir
12033 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
12034 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
12035 cat >conftest.$ac_ext <<_ACEOF
12036 /* confdefs.h. */
12037 _ACEOF
12038 cat confdefs.h >>conftest.$ac_ext
12039 cat >>conftest.$ac_ext <<_ACEOF
12040 /* end confdefs.h. */
12041
12042 int
12043 main ()
12044 {
12045
12046 ;
12047 return 0;
12048 }
12049 _ACEOF
12050 rm -f conftest.$ac_objext conftest$ac_exeext
12051 if { (ac_try="$ac_link"
12052 case "(($ac_try" in
12053 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12054 *) ac_try_echo=$ac_try;;
12055 esac
12056 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12057 $as_echo "$ac_try_echo") >&5
12058 (eval "$ac_link") 2>conftest.er1
12059 ac_status=$?
12060 grep -v '^ *+' conftest.er1 >conftest.err
12061 rm -f conftest.er1
12062 cat conftest.err >&5
12063 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12064 (exit $ac_status); } && {
12065 test -z "$ac_c_werror_flag" ||
12066 test ! -s conftest.err
12067 } && test -s conftest$ac_exeext && {
12068 test "$cross_compiling" = yes ||
12069 $as_test_x conftest$ac_exeext
12070 }; then
12071 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then
12072 shlibpath_overrides_runpath=yes
12073 fi
12074
12075 else
12076 $as_echo "$as_me: failed program was:" >&5
12077 sed 's/^/| /' conftest.$ac_ext >&5
12078
12079
12080 fi
12081
12082 rm -rf conftest.dSYM
12083 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12084 conftest$ac_exeext conftest.$ac_ext
12085 LDFLAGS=$save_LDFLAGS
12086 libdir=$save_libdir
12087
1009612088 # This implies no fast_install, which is unacceptable.
1009712089 # Some rework will be needed to allow for fast_install
1009812090 # before this can be enabled.
1009912091 hardcode_into_libs=yes
10100 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10101 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
12092
12093 # Add ABI-specific directories to the system library path.
12094 sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
1010212095
1010312096 # Append ld.so.conf contents to the search path
1010412097 if test -f /etc/ld.so.conf; then
10105 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' ' '`
12098 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' ' '`
1010612099 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
1010712100 fi
1010812101
1011912112 version_type=sunos
1012012113 need_lib_prefix=no
1012112114 need_version=no
10122 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12115 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
1012312116 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
1012412117 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
1012512118 dynamic_linker='NetBSD (a.out) ld.so'
1014012133 shlibpath_overrides_runpath=yes
1014112134 ;;
1014212135
10143 nto-qnx*)
10144 version_type=linux
12136 *nto* | *qnx*)
12137 version_type=qnx
1014512138 need_lib_prefix=no
1014612139 need_version=no
1014712140 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
1014812141 soname_spec='${libname}${release}${shared_ext}$major'
1014912142 shlibpath_var=LD_LIBRARY_PATH
10150 shlibpath_overrides_runpath=yes
12143 shlibpath_overrides_runpath=no
12144 hardcode_into_libs=yes
12145 dynamic_linker='ldqnx.so'
1015112146 ;;
1015212147
1015312148 openbsd*)
1015612151 need_lib_prefix=no
1015712152 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
1015812153 case $host_os in
10159 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10160 *) need_version=no ;;
12154 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
12155 *) need_version=no ;;
1016112156 esac
1016212157 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
1016312158 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
1016412159 shlibpath_var=LD_LIBRARY_PATH
10165 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12160 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
1016612161 case $host_os in
1016712162 openbsd2.[89] | openbsd2.[89].*)
1016812163 shlibpath_overrides_runpath=no
1023412229 sni)
1023512230 shlibpath_overrides_runpath=no
1023612231 need_lib_prefix=no
10237 export_dynamic_flag_spec='${wl}-Blargedynsym'
1023812232 runpath_var=LD_RUN_PATH
1023912233 ;;
1024012234 siemens)
1026512259 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
1026612260 soname_spec='${libname}${release}${shared_ext}$major'
1026712261 shlibpath_var=LD_LIBRARY_PATH
12262 shlibpath_overrides_runpath=yes
1026812263 hardcode_into_libs=yes
1026912264 if test "$with_gnu_ld" = yes; then
1027012265 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10271 shlibpath_overrides_runpath=no
1027212266 else
1027312267 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10274 shlibpath_overrides_runpath=yes
1027512268 case $host_os in
1027612269 sco3.2v5*)
1027712270 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
1028112274 sys_lib_dlsearch_path_spec='/usr/lib'
1028212275 ;;
1028312276
12277 tpf*)
12278 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
12279 version_type=linux
12280 need_lib_prefix=no
12281 need_version=no
12282 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12283 shlibpath_var=LD_LIBRARY_PATH
12284 shlibpath_overrides_runpath=no
12285 hardcode_into_libs=yes
12286 ;;
12287
1028412288 uts4*)
1028512289 version_type=linux
1028612290 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
1029212296 dynamic_linker=no
1029312297 ;;
1029412298 esac
10295 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
10296 echo "${ECHO_T}$dynamic_linker" >&6; }
12299 { $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5
12300 $as_echo "$dynamic_linker" >&6; }
1029712301 test "$dynamic_linker" = no && can_build_shared=no
1029812302
1029912303 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
1030112305 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
1030212306 fi
1030312307
10304 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
10305 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
12308 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
12309 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
12310 fi
12311 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
12312 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
12313 fi
12314
12315
12316
12317
12318
12319
12320
12321
12322
12323
12324
12325
12326
12327
12328
12329
12330
12331
12332
12333
12334
12335
12336
12337
12338
12339
12340
12341
12342
12343
12344
12345
12346
12347
12348
12349
12350
12351
12352
12353
12354
12355
12356
12357
12358
12359
12360
12361
12362
12363
12364
12365
12366
12367
12368
12369
12370
12371
12372
12373
12374
12375
12376
12377
12378
12379
12380
12381
12382
12383
12384
12385
12386
12387
12388
12389
12390
12391
12392
12393
12394
12395
12396
12397
12398
12399
12400
12401 { $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
12402 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
1030612403 hardcode_action=
10307 if test -n "$hardcode_libdir_flag_spec" || \
10308 test -n "$runpath_var" || \
12404 if test -n "$hardcode_libdir_flag_spec" ||
12405 test -n "$runpath_var" ||
1030912406 test "X$hardcode_automatic" = "Xyes" ; then
1031012407
10311 # We can hardcode non-existant directories.
12408 # We can hardcode non-existent directories.
1031212409 if test "$hardcode_direct" != no &&
1031312410 # If the only mechanism to avoid hardcoding is shlibpath_var, we
1031412411 # have to relink, otherwise we might link with an installed library
1031512412 # when we should be linking with a yet-to-be-installed one
10316 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
12413 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
1031712414 test "$hardcode_minus_L" != no; then
1031812415 # Linking always hardcodes the temporary library directory.
1031912416 hardcode_action=relink
1032612423 # directories.
1032712424 hardcode_action=unsupported
1032812425 fi
10329 { echo "$as_me:$LINENO: result: $hardcode_action" >&5
10330 echo "${ECHO_T}$hardcode_action" >&6; }
10331
10332 if test "$hardcode_action" = relink; then
12426 { $as_echo "$as_me:$LINENO: result: $hardcode_action" >&5
12427 $as_echo "$hardcode_action" >&6; }
12428
12429 if test "$hardcode_action" = relink ||
12430 test "$inherit_rpath" = yes; then
1033312431 # Fast installation is not supported
1033412432 enable_fast_install=no
1033512433 elif test "$shlibpath_overrides_runpath" = yes ||
1033812436 enable_fast_install=needless
1033912437 fi
1034012438
10341 striplib=
10342 old_striplib=
10343 { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
10344 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
10345 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
10346 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
10347 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
10348 { echo "$as_me:$LINENO: result: yes" >&5
10349 echo "${ECHO_T}yes" >&6; }
10350 else
10351 # FIXME - insert some real tests, host_os isn't really good enough
10352 case $host_os in
10353 darwin*)
10354 if test -n "$STRIP" ; then
10355 striplib="$STRIP -x"
10356 old_striplib="$STRIP -S"
10357 { echo "$as_me:$LINENO: result: yes" >&5
10358 echo "${ECHO_T}yes" >&6; }
10359 else
10360 { echo "$as_me:$LINENO: result: no" >&5
10361 echo "${ECHO_T}no" >&6; }
10362 fi
10363 ;;
10364 *)
10365 { echo "$as_me:$LINENO: result: no" >&5
10366 echo "${ECHO_T}no" >&6; }
10367 ;;
10368 esac
10369 fi
10370
10371 if test "x$enable_dlopen" != xyes; then
12439
12440
12441
12442
12443
12444 if test "x$enable_dlopen" != xyes; then
1037212445 enable_dlopen=unknown
1037312446 enable_dlopen_self=unknown
1037412447 enable_dlopen_self_static=unknown
1038312456 lt_cv_dlopen_self=yes
1038412457 ;;
1038512458
10386 mingw* | pw32*)
12459 mingw* | pw32* | cegcc*)
1038712460 lt_cv_dlopen="LoadLibrary"
1038812461 lt_cv_dlopen_libs=
10389 ;;
12462 ;;
1039012463
1039112464 cygwin*)
1039212465 lt_cv_dlopen="dlopen"
1039312466 lt_cv_dlopen_libs=
10394 ;;
12467 ;;
1039512468
1039612469 darwin*)
1039712470 # if libdl is installed we need to link against it
10398 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10399 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
12471 { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
12472 $as_echo_n "checking for dlopen in -ldl... " >&6; }
1040012473 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10401 echo $ECHO_N "(cached) $ECHO_C" >&6
12474 $as_echo_n "(cached) " >&6
1040212475 else
1040312476 ac_check_lib_save_LIBS=$LIBS
1040412477 LIBS="-ldl $LIBS"
1043012503 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1043112504 *) ac_try_echo=$ac_try;;
1043212505 esac
10433 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12506 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12507 $as_echo "$ac_try_echo") >&5
1043412508 (eval "$ac_link") 2>conftest.er1
1043512509 ac_status=$?
1043612510 grep -v '^ *+' conftest.er1 >conftest.err
1043712511 rm -f conftest.er1
1043812512 cat conftest.err >&5
10439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12513 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
1044012514 (exit $ac_status); } && {
1044112515 test -z "$ac_c_werror_flag" ||
1044212516 test ! -s conftest.err
10443 } && test -s conftest$ac_exeext &&
10444 $as_test_x conftest$ac_exeext; then
12517 } && test -s conftest$ac_exeext && {
12518 test "$cross_compiling" = yes ||
12519 $as_test_x conftest$ac_exeext
12520 }; then
1044512521 ac_cv_lib_dl_dlopen=yes
1044612522 else
10447 echo "$as_me: failed program was:" >&5
12523 $as_echo "$as_me: failed program was:" >&5
1044812524 sed 's/^/| /' conftest.$ac_ext >&5
1044912525
1045012526 ac_cv_lib_dl_dlopen=no
1045112527 fi
1045212528
12529 rm -rf conftest.dSYM
1045312530 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
1045412531 conftest$ac_exeext conftest.$ac_ext
1045512532 LIBS=$ac_check_lib_save_LIBS
1045612533 fi
10457 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10458 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
10459 if test $ac_cv_lib_dl_dlopen = yes; then
12534 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
12535 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12536 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then
1046012537 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
1046112538 else
1046212539
1046612543
1046712544 fi
1046812545
10469 ;;
12546 ;;
1047012547
1047112548 *)
10472 { echo "$as_me:$LINENO: checking for shl_load" >&5
10473 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
12549 { $as_echo "$as_me:$LINENO: checking for shl_load" >&5
12550 $as_echo_n "checking for shl_load... " >&6; }
1047412551 if test "${ac_cv_func_shl_load+set}" = set; then
10475 echo $ECHO_N "(cached) $ECHO_C" >&6
12552 $as_echo_n "(cached) " >&6
1047612553 else
1047712554 cat >conftest.$ac_ext <<_ACEOF
1047812555 /* confdefs.h. */
1052512602 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1052612603 *) ac_try_echo=$ac_try;;
1052712604 esac
10528 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12605 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12606 $as_echo "$ac_try_echo") >&5
1052912607 (eval "$ac_link") 2>conftest.er1
1053012608 ac_status=$?
1053112609 grep -v '^ *+' conftest.er1 >conftest.err
1053212610 rm -f conftest.er1
1053312611 cat conftest.err >&5
10534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12612 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
1053512613 (exit $ac_status); } && {
1053612614 test -z "$ac_c_werror_flag" ||
1053712615 test ! -s conftest.err
10538 } && test -s conftest$ac_exeext &&
10539 $as_test_x conftest$ac_exeext; then
12616 } && test -s conftest$ac_exeext && {
12617 test "$cross_compiling" = yes ||
12618 $as_test_x conftest$ac_exeext
12619 }; then
1054012620 ac_cv_func_shl_load=yes
1054112621 else
10542 echo "$as_me: failed program was:" >&5
12622 $as_echo "$as_me: failed program was:" >&5
1054312623 sed 's/^/| /' conftest.$ac_ext >&5
1054412624
1054512625 ac_cv_func_shl_load=no
1054612626 fi
1054712627
12628 rm -rf conftest.dSYM
1054812629 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
1054912630 conftest$ac_exeext conftest.$ac_ext
1055012631 fi
10551 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
10552 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
10553 if test $ac_cv_func_shl_load = yes; then
12632 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
12633 $as_echo "$ac_cv_func_shl_load" >&6; }
12634 if test "x$ac_cv_func_shl_load" = x""yes; then
1055412635 lt_cv_dlopen="shl_load"
1055512636 else
10556 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
10557 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
12637 { $as_echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
12638 $as_echo_n "checking for shl_load in -ldld... " >&6; }
1055812639 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
10559 echo $ECHO_N "(cached) $ECHO_C" >&6
12640 $as_echo_n "(cached) " >&6
1056012641 else
1056112642 ac_check_lib_save_LIBS=$LIBS
1056212643 LIBS="-ldld $LIBS"
1058812669 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1058912670 *) ac_try_echo=$ac_try;;
1059012671 esac
10591 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12672 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12673 $as_echo "$ac_try_echo") >&5
1059212674 (eval "$ac_link") 2>conftest.er1
1059312675 ac_status=$?
1059412676 grep -v '^ *+' conftest.er1 >conftest.err
1059512677 rm -f conftest.er1
1059612678 cat conftest.err >&5
10597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12679 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
1059812680 (exit $ac_status); } && {
1059912681 test -z "$ac_c_werror_flag" ||
1060012682 test ! -s conftest.err
10601 } && test -s conftest$ac_exeext &&
10602 $as_test_x conftest$ac_exeext; then
12683 } && test -s conftest$ac_exeext && {
12684 test "$cross_compiling" = yes ||
12685 $as_test_x conftest$ac_exeext
12686 }; then
1060312687 ac_cv_lib_dld_shl_load=yes
1060412688 else
10605 echo "$as_me: failed program was:" >&5
12689 $as_echo "$as_me: failed program was:" >&5
1060612690 sed 's/^/| /' conftest.$ac_ext >&5
1060712691
1060812692 ac_cv_lib_dld_shl_load=no
1060912693 fi
1061012694
12695 rm -rf conftest.dSYM
1061112696 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
1061212697 conftest$ac_exeext conftest.$ac_ext
1061312698 LIBS=$ac_check_lib_save_LIBS
1061412699 fi
10615 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
10616 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
10617 if test $ac_cv_lib_dld_shl_load = yes; then
10618 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
10619 else
10620 { echo "$as_me:$LINENO: checking for dlopen" >&5
10621 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
12700 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
12701 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
12702 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then
12703 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
12704 else
12705 { $as_echo "$as_me:$LINENO: checking for dlopen" >&5
12706 $as_echo_n "checking for dlopen... " >&6; }
1062212707 if test "${ac_cv_func_dlopen+set}" = set; then
10623 echo $ECHO_N "(cached) $ECHO_C" >&6
12708 $as_echo_n "(cached) " >&6
1062412709 else
1062512710 cat >conftest.$ac_ext <<_ACEOF
1062612711 /* confdefs.h. */
1067312758 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1067412759 *) ac_try_echo=$ac_try;;
1067512760 esac
10676 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12761 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12762 $as_echo "$ac_try_echo") >&5
1067712763 (eval "$ac_link") 2>conftest.er1
1067812764 ac_status=$?
1067912765 grep -v '^ *+' conftest.er1 >conftest.err
1068012766 rm -f conftest.er1
1068112767 cat conftest.err >&5
10682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12768 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
1068312769 (exit $ac_status); } && {
1068412770 test -z "$ac_c_werror_flag" ||
1068512771 test ! -s conftest.err
10686 } && test -s conftest$ac_exeext &&
10687 $as_test_x conftest$ac_exeext; then
12772 } && test -s conftest$ac_exeext && {
12773 test "$cross_compiling" = yes ||
12774 $as_test_x conftest$ac_exeext
12775 }; then
1068812776 ac_cv_func_dlopen=yes
1068912777 else
10690 echo "$as_me: failed program was:" >&5
12778 $as_echo "$as_me: failed program was:" >&5
1069112779 sed 's/^/| /' conftest.$ac_ext >&5
1069212780
1069312781 ac_cv_func_dlopen=no
1069412782 fi
1069512783
12784 rm -rf conftest.dSYM
1069612785 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
1069712786 conftest$ac_exeext conftest.$ac_ext
1069812787 fi
10699 { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
10700 echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
10701 if test $ac_cv_func_dlopen = yes; then
12788 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
12789 $as_echo "$ac_cv_func_dlopen" >&6; }
12790 if test "x$ac_cv_func_dlopen" = x""yes; then
1070212791 lt_cv_dlopen="dlopen"
1070312792 else
10704 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10705 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
12793 { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
12794 $as_echo_n "checking for dlopen in -ldl... " >&6; }
1070612795 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10707 echo $ECHO_N "(cached) $ECHO_C" >&6
12796 $as_echo_n "(cached) " >&6
1070812797 else
1070912798 ac_check_lib_save_LIBS=$LIBS
1071012799 LIBS="-ldl $LIBS"
1073612825 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1073712826 *) ac_try_echo=$ac_try;;
1073812827 esac
10739 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12828 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12829 $as_echo "$ac_try_echo") >&5
1074012830 (eval "$ac_link") 2>conftest.er1
1074112831 ac_status=$?
1074212832 grep -v '^ *+' conftest.er1 >conftest.err
1074312833 rm -f conftest.er1
1074412834 cat conftest.err >&5
10745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12835 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
1074612836 (exit $ac_status); } && {
1074712837 test -z "$ac_c_werror_flag" ||
1074812838 test ! -s conftest.err
10749 } && test -s conftest$ac_exeext &&
10750 $as_test_x conftest$ac_exeext; then
12839 } && test -s conftest$ac_exeext && {
12840 test "$cross_compiling" = yes ||
12841 $as_test_x conftest$ac_exeext
12842 }; then
1075112843 ac_cv_lib_dl_dlopen=yes
1075212844 else
10753 echo "$as_me: failed program was:" >&5
12845 $as_echo "$as_me: failed program was:" >&5
1075412846 sed 's/^/| /' conftest.$ac_ext >&5
1075512847
1075612848 ac_cv_lib_dl_dlopen=no
1075712849 fi
1075812850
12851 rm -rf conftest.dSYM
1075912852 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
1076012853 conftest$ac_exeext conftest.$ac_ext
1076112854 LIBS=$ac_check_lib_save_LIBS
1076212855 fi
10763 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10764 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
10765 if test $ac_cv_lib_dl_dlopen = yes; then
12856 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
12857 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12858 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then
1076612859 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
1076712860 else
10768 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10769 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
12861 { $as_echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
12862 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
1077012863 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10771 echo $ECHO_N "(cached) $ECHO_C" >&6
12864 $as_echo_n "(cached) " >&6
1077212865 else
1077312866 ac_check_lib_save_LIBS=$LIBS
1077412867 LIBS="-lsvld $LIBS"
1080012893 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1080112894 *) ac_try_echo=$ac_try;;
1080212895 esac
10803 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12896 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12897 $as_echo "$ac_try_echo") >&5
1080412898 (eval "$ac_link") 2>conftest.er1
1080512899 ac_status=$?
1080612900 grep -v '^ *+' conftest.er1 >conftest.err
1080712901 rm -f conftest.er1
1080812902 cat conftest.err >&5
10809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12903 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
1081012904 (exit $ac_status); } && {
1081112905 test -z "$ac_c_werror_flag" ||
1081212906 test ! -s conftest.err
10813 } && test -s conftest$ac_exeext &&
10814 $as_test_x conftest$ac_exeext; then
12907 } && test -s conftest$ac_exeext && {
12908 test "$cross_compiling" = yes ||
12909 $as_test_x conftest$ac_exeext
12910 }; then
1081512911 ac_cv_lib_svld_dlopen=yes
1081612912 else
10817 echo "$as_me: failed program was:" >&5
12913 $as_echo "$as_me: failed program was:" >&5
1081812914 sed 's/^/| /' conftest.$ac_ext >&5
1081912915
1082012916 ac_cv_lib_svld_dlopen=no
1082112917 fi
1082212918
12919 rm -rf conftest.dSYM
1082312920 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
1082412921 conftest$ac_exeext conftest.$ac_ext
1082512922 LIBS=$ac_check_lib_save_LIBS
1082612923 fi
10827 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10828 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
10829 if test $ac_cv_lib_svld_dlopen = yes; then
12924 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
12925 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
12926 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then
1083012927 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
1083112928 else
10832 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10833 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
12929 { $as_echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
12930 $as_echo_n "checking for dld_link in -ldld... " >&6; }
1083412931 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10835 echo $ECHO_N "(cached) $ECHO_C" >&6
12932 $as_echo_n "(cached) " >&6
1083612933 else
1083712934 ac_check_lib_save_LIBS=$LIBS
1083812935 LIBS="-ldld $LIBS"
1086412961 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1086512962 *) ac_try_echo=$ac_try;;
1086612963 esac
10867 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12964 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12965 $as_echo "$ac_try_echo") >&5
1086812966 (eval "$ac_link") 2>conftest.er1
1086912967 ac_status=$?
1087012968 grep -v '^ *+' conftest.er1 >conftest.err
1087112969 rm -f conftest.er1
1087212970 cat conftest.err >&5
10873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12971 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
1087412972 (exit $ac_status); } && {
1087512973 test -z "$ac_c_werror_flag" ||
1087612974 test ! -s conftest.err
10877 } && test -s conftest$ac_exeext &&
10878 $as_test_x conftest$ac_exeext; then
12975 } && test -s conftest$ac_exeext && {
12976 test "$cross_compiling" = yes ||
12977 $as_test_x conftest$ac_exeext
12978 }; then
1087912979 ac_cv_lib_dld_dld_link=yes
1088012980 else
10881 echo "$as_me: failed program was:" >&5
12981 $as_echo "$as_me: failed program was:" >&5
1088212982 sed 's/^/| /' conftest.$ac_ext >&5
1088312983
1088412984 ac_cv_lib_dld_dld_link=no
1088512985 fi
1088612986
12987 rm -rf conftest.dSYM
1088712988 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
1088812989 conftest$ac_exeext conftest.$ac_ext
1088912990 LIBS=$ac_check_lib_save_LIBS
1089012991 fi
10891 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10892 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
10893 if test $ac_cv_lib_dld_dld_link = yes; then
10894 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
12992 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
12993 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
12994 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then
12995 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
1089512996 fi
1089612997
1089712998
1092913030 save_LIBS="$LIBS"
1093013031 LIBS="$lt_cv_dlopen_libs $LIBS"
1093113032
10932 { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
10933 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
13033 { $as_echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
13034 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
1093413035 if test "${lt_cv_dlopen_self+set}" = set; then
10935 echo $ECHO_N "(cached) $ECHO_C" >&6
13036 $as_echo_n "(cached) " >&6
1093613037 else
1093713038 if test "$cross_compiling" = yes; then :
1093813039 lt_cv_dlopen_self=cross
1093913040 else
1094013041 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
1094113042 lt_status=$lt_dlunknown
10942 cat > conftest.$ac_ext <<EOF
10943 #line 10944 "configure"
13043 cat > conftest.$ac_ext <<_LT_EOF
13044 #line 13045 "configure"
1094413045 #include "confdefs.h"
1094513046
1094613047 #if HAVE_DLFCN_H
1098113082 # endif
1098213083 #endif
1098313084
10984 #ifdef __cplusplus
10985 extern "C" void exit (int);
10986 #endif
10987
1098813085 void fnord() { int i=42;}
1098913086 int main ()
1099013087 {
1100013097 else
1100113098 puts (dlerror ());
1100213099
11003 exit (status);
13100 return status;
1100413101 }
11005 EOF
13102 _LT_EOF
1100613103 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1100713104 (eval $ac_link) 2>&5
1100813105 ac_status=$?
11009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13106 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
1101013107 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
1101113108 (./conftest; exit; ) >&5 2>/dev/null
1101213109 lt_status=$?
1102413121
1102513122
1102613123 fi
11027 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
11028 echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
13124 { $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
13125 $as_echo "$lt_cv_dlopen_self" >&6; }
1102913126
1103013127 if test "x$lt_cv_dlopen_self" = xyes; then
1103113128 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11032 { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
11033 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
13129 { $as_echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
13130 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
1103413131 if test "${lt_cv_dlopen_self_static+set}" = set; then
11035 echo $ECHO_N "(cached) $ECHO_C" >&6
13132 $as_echo_n "(cached) " >&6
1103613133 else
1103713134 if test "$cross_compiling" = yes; then :
1103813135 lt_cv_dlopen_self_static=cross
1103913136 else
1104013137 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
1104113138 lt_status=$lt_dlunknown
11042 cat > conftest.$ac_ext <<EOF
11043 #line 11044 "configure"
13139 cat > conftest.$ac_ext <<_LT_EOF
13140 #line 13141 "configure"
1104413141 #include "confdefs.h"
1104513142
1104613143 #if HAVE_DLFCN_H
1108113178 # endif
1108213179 #endif
1108313180
11084 #ifdef __cplusplus
11085 extern "C" void exit (int);
11086 #endif
11087
1108813181 void fnord() { int i=42;}
1108913182 int main ()
1109013183 {
1110013193 else
1110113194 puts (dlerror ());
1110213195
11103 exit (status);
13196 return status;
1110413197 }
11105 EOF
13198 _LT_EOF
1110613199 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1110713200 (eval $ac_link) 2>&5
1110813201 ac_status=$?
11109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13202 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
1111013203 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
1111113204 (./conftest; exit; ) >&5 2>/dev/null
1111213205 lt_status=$?
1112413217
1112513218
1112613219 fi
11127 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
11128 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
13220 { $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
13221 $as_echo "$lt_cv_dlopen_self_static" >&6; }
1112913222 fi
1113013223
1113113224 CPPFLAGS="$save_CPPFLAGS"
1114613239 fi
1114713240
1114813241
11149 # Report which library types will actually be built
11150 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
11151 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
11152 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
11153 echo "${ECHO_T}$can_build_shared" >&6; }
11154
11155 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
11156 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
11157 test "$can_build_shared" = "no" && enable_shared=no
11158
11159 # On AIX, shared libraries and static libraries use the same namespace, and
11160 # are all built from PIC.
11161 case $host_os in
11162 aix3*)
11163 test "$enable_shared" = yes && enable_static=no
11164 if test -n "$RANLIB"; then
11165 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11166 postinstall_cmds='$RANLIB $lib'
11167 fi
11168 ;;
11169
11170 aix4* | aix5*)
11171 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11172 test "$enable_shared" = yes && enable_static=no
11173 fi
13242
13243
13244
13245
13246
13247
13248
13249
13250
13251
13252
13253
13254
13255
13256
13257 striplib=
13258 old_striplib=
13259 { $as_echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
13260 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
13261 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
13262 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
13263 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
13264 { $as_echo "$as_me:$LINENO: result: yes" >&5
13265 $as_echo "yes" >&6; }
13266 else
13267 # FIXME - insert some real tests, host_os isn't really good enough
13268 case $host_os in
13269 darwin*)
13270 if test -n "$STRIP" ; then
13271 striplib="$STRIP -x"
13272 old_striplib="$STRIP -S"
13273 { $as_echo "$as_me:$LINENO: result: yes" >&5
13274 $as_echo "yes" >&6; }
13275 else
13276 { $as_echo "$as_me:$LINENO: result: no" >&5
13277 $as_echo "no" >&6; }
13278 fi
1117413279 ;;
11175 esac
11176 { echo "$as_me:$LINENO: result: $enable_shared" >&5
11177 echo "${ECHO_T}$enable_shared" >&6; }
11178
11179 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
11180 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
11181 # Make sure either enable_shared or enable_static is yes.
11182 test "$enable_shared" = yes || enable_static=yes
11183 { echo "$as_me:$LINENO: result: $enable_static" >&5
11184 echo "${ECHO_T}$enable_static" >&6; }
11185
11186 # The else clause should only fire when bootstrapping the
11187 # libtool distribution, otherwise you forgot to ship ltmain.sh
11188 # with your package, and you will get complaints that there are
11189 # no rules to generate ltmain.sh.
11190 if test -f "$ltmain"; then
11191 # See if we are running on zsh, and set the options which allow our commands through
11192 # without removal of \ escapes.
11193 if test -n "${ZSH_VERSION+set}" ; then
11194 setopt NO_GLOB_SUBST
11195 fi
11196 # Now quote all the things that may contain metacharacters while being
11197 # careful not to overquote the AC_SUBSTed values. We take copies of the
11198 # variables and quote the copies for generation of the libtool script.
11199 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
11200 SED SHELL STRIP \
11201 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
11202 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
11203 deplibs_check_method reload_flag reload_cmds need_locks \
11204 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
11205 lt_cv_sys_global_symbol_to_c_name_address \
11206 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
11207 old_postinstall_cmds old_postuninstall_cmds \
11208 compiler \
11209 CC \
11210 LD \
11211 lt_prog_compiler_wl \
11212 lt_prog_compiler_pic \
11213 lt_prog_compiler_static \
11214 lt_prog_compiler_no_builtin_flag \
11215 export_dynamic_flag_spec \
11216 thread_safe_flag_spec \
11217 whole_archive_flag_spec \
11218 enable_shared_with_static_runtimes \
11219 old_archive_cmds \
11220 old_archive_from_new_cmds \
11221 predep_objects \
11222 postdep_objects \
11223 predeps \
11224 postdeps \
11225 compiler_lib_search_path \
11226 archive_cmds \
11227 archive_expsym_cmds \
11228 postinstall_cmds \
11229 postuninstall_cmds \
11230 old_archive_from_expsyms_cmds \
11231 allow_undefined_flag \
11232 no_undefined_flag \
11233 export_symbols_cmds \
11234 hardcode_libdir_flag_spec \
11235 hardcode_libdir_flag_spec_ld \
11236 hardcode_libdir_separator \
11237 hardcode_automatic \
11238 module_cmds \
11239 module_expsym_cmds \
11240 lt_cv_prog_compiler_c_o \
11241 fix_srcfile_path \
11242 exclude_expsyms \
11243 include_expsyms; do
11244
11245 case $var in
11246 old_archive_cmds | \
11247 old_archive_from_new_cmds | \
11248 archive_cmds | \
11249 archive_expsym_cmds | \
11250 module_cmds | \
11251 module_expsym_cmds | \
11252 old_archive_from_expsyms_cmds | \
11253 export_symbols_cmds | \
11254 extract_expsyms_cmds | reload_cmds | finish_cmds | \
11255 postinstall_cmds | postuninstall_cmds | \
11256 old_postinstall_cmds | old_postuninstall_cmds | \
11257 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
11258 # Double-quote double-evaled strings.
11259 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
11260 ;;
11261 *)
11262 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
11263 ;;
11264 esac
11265 done
11266
11267 case $lt_echo in
11268 *'\$0 --fallback-echo"')
11269 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
13280 *)
13281 { $as_echo "$as_me:$LINENO: result: no" >&5
13282 $as_echo "no" >&6; }
1127013283 ;;
1127113284 esac
11272
11273 cfgfile="${ofile}T"
11274 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
11275 $rm -f "$cfgfile"
11276 { echo "$as_me:$LINENO: creating $ofile" >&5
11277 echo "$as_me: creating $ofile" >&6;}
11278
11279 cat <<__EOF__ >> "$cfgfile"
11280 #! $SHELL
11281
11282 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
11283 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
11284 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
11285 #
11286 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007
11287 # Free Software Foundation, Inc.
11288 #
11289 # This file is part of GNU Libtool:
11290 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
11291 #
11292 # This program is free software; you can redistribute it and/or modify
11293 # it under the terms of the GNU General Public License as published by
11294 # the Free Software Foundation; either version 2 of the License, or
11295 # (at your option) any later version.
11296 #
11297 # This program is distributed in the hope that it will be useful, but
11298 # WITHOUT ANY WARRANTY; without even the implied warranty of
11299 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
11300 # General Public License for more details.
11301 #
11302 # You should have received a copy of the GNU General Public License
11303 # along with this program; if not, write to the Free Software
11304 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
11305 #
11306 # As a special exception to the GNU General Public License, if you
11307 # distribute this file as part of a program that contains a
11308 # configuration script generated by Autoconf, you may include it under
11309 # the same distribution terms that you use for the rest of that program.
11310
11311 # A sed program that does not truncate output.
11312 SED=$lt_SED
11313
11314 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
11315 Xsed="$SED -e 1s/^X//"
11316
11317 # The HP-UX ksh and POSIX shell print the target directory to stdout
11318 # if CDPATH is set.
11319 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
11320
11321 # The names of the tagged configurations supported by this script.
11322 available_tags=
11323
11324 # ### BEGIN LIBTOOL CONFIG
11325
11326 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
11327
11328 # Shell to use when invoking shell scripts.
11329 SHELL=$lt_SHELL
11330
11331 # Whether or not to build shared libraries.
11332 build_libtool_libs=$enable_shared
11333
11334 # Whether or not to build static libraries.
11335 build_old_libs=$enable_static
11336
11337 # Whether or not to add -lc for building shared libraries.
11338 build_libtool_need_lc=$archive_cmds_need_lc
11339
11340 # Whether or not to disallow shared libs when runtime libs are static
11341 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
11342
11343 # Whether or not to optimize for fast installation.
11344 fast_install=$enable_fast_install
11345
11346 # The host system.
11347 host_alias=$host_alias
11348 host=$host
11349 host_os=$host_os
11350
11351 # The build system.
11352 build_alias=$build_alias
11353 build=$build
11354 build_os=$build_os
11355
11356 # An echo program that does not interpret backslashes.
11357 echo=$lt_echo
11358
11359 # The archiver.
11360 AR=$lt_AR
11361 AR_FLAGS=$lt_AR_FLAGS
11362
11363 # A C compiler.
11364 LTCC=$lt_LTCC
11365
11366 # LTCC compiler flags.
11367 LTCFLAGS=$lt_LTCFLAGS
11368
11369 # A language-specific compiler.
11370 CC=$lt_compiler
11371
11372 # Is the compiler the GNU C compiler?
11373 with_gcc=$GCC
11374
11375 # An ERE matcher.
11376 EGREP=$lt_EGREP
11377
11378 # The linker used to build libraries.
11379 LD=$lt_LD
11380
11381 # Whether we need hard or soft links.
11382 LN_S=$lt_LN_S
11383
11384 # A BSD-compatible nm program.
11385 NM=$lt_NM
11386
11387 # A symbol stripping program
11388 STRIP=$lt_STRIP
11389
11390 # Used to examine libraries when file_magic_cmd begins "file"
11391 MAGIC_CMD=$MAGIC_CMD
11392
11393 # Used on cygwin: DLL creation program.
11394 DLLTOOL="$DLLTOOL"
11395
11396 # Used on cygwin: object dumper.
11397 OBJDUMP="$OBJDUMP"
11398
11399 # Used on cygwin: assembler.
11400 AS="$AS"
11401
11402 # The name of the directory that contains temporary libtool files.
11403 objdir=$objdir
11404
11405 # How to create reloadable object files.
11406 reload_flag=$lt_reload_flag
11407 reload_cmds=$lt_reload_cmds
11408
11409 # How to pass a linker flag through the compiler.
11410 wl=$lt_lt_prog_compiler_wl
11411
11412 # Object file suffix (normally "o").
11413 objext="$ac_objext"
11414
11415 # Old archive suffix (normally "a").
11416 libext="$libext"
11417
11418 # Shared library suffix (normally ".so").
11419 shrext_cmds='$shrext_cmds'
11420
11421 # Executable file suffix (normally "").
11422 exeext="$exeext"
11423
11424 # Additional compiler flags for building library objects.
11425 pic_flag=$lt_lt_prog_compiler_pic
11426 pic_mode=$pic_mode
11427
11428 # What is the maximum length of a command?
11429 max_cmd_len=$lt_cv_sys_max_cmd_len
11430
11431 # Does compiler simultaneously support -c and -o options?
11432 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
11433
11434 # Must we lock files when doing compilation?
11435 need_locks=$lt_need_locks
11436
11437 # Do we need the lib prefix for modules?
11438 need_lib_prefix=$need_lib_prefix
11439
11440 # Do we need a version for libraries?
11441 need_version=$need_version
11442
11443 # Whether dlopen is supported.
11444 dlopen_support=$enable_dlopen
11445
11446 # Whether dlopen of programs is supported.
11447 dlopen_self=$enable_dlopen_self
11448
11449 # Whether dlopen of statically linked programs is supported.
11450 dlopen_self_static=$enable_dlopen_self_static
11451
11452 # Compiler flag to prevent dynamic linking.
11453 link_static_flag=$lt_lt_prog_compiler_static
11454
11455 # Compiler flag to turn off builtin functions.
11456 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
11457
11458 # Compiler flag to allow reflexive dlopens.
11459 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
11460
11461 # Compiler flag to generate shared objects directly from archives.
11462 whole_archive_flag_spec=$lt_whole_archive_flag_spec
11463
11464 # Compiler flag to generate thread-safe objects.
11465 thread_safe_flag_spec=$lt_thread_safe_flag_spec
11466
11467 # Library versioning type.
11468 version_type=$version_type
11469
11470 # Format of library name prefix.
11471 libname_spec=$lt_libname_spec
11472
11473 # List of archive names. First name is the real one, the rest are links.
11474 # The last name is the one that the linker finds with -lNAME.
11475 library_names_spec=$lt_library_names_spec
11476
11477 # The coded name of the library, if different from the real name.
11478 soname_spec=$lt_soname_spec
11479
11480 # Commands used to build and install an old-style archive.
11481 RANLIB=$lt_RANLIB
11482 old_archive_cmds=$lt_old_archive_cmds
11483 old_postinstall_cmds=$lt_old_postinstall_cmds
11484 old_postuninstall_cmds=$lt_old_postuninstall_cmds
11485
11486 # Create an old-style archive from a shared archive.
11487 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
11488
11489 # Create a temporary old-style archive to link instead of a shared archive.
11490 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
11491
11492 # Commands used to build and install a shared archive.
11493 archive_cmds=$lt_archive_cmds
11494 archive_expsym_cmds=$lt_archive_expsym_cmds
11495 postinstall_cmds=$lt_postinstall_cmds
11496 postuninstall_cmds=$lt_postuninstall_cmds
11497
11498 # Commands used to build a loadable module (assumed same as above if empty)
11499 module_cmds=$lt_module_cmds
11500 module_expsym_cmds=$lt_module_expsym_cmds
11501
11502 # Commands to strip libraries.
11503 old_striplib=$lt_old_striplib
11504 striplib=$lt_striplib
11505
11506 # Dependencies to place before the objects being linked to create a
11507 # shared library.
11508 predep_objects=$lt_predep_objects
11509
11510 # Dependencies to place after the objects being linked to create a
11511 # shared library.
11512 postdep_objects=$lt_postdep_objects
11513
11514 # Dependencies to place before the objects being linked to create a
11515 # shared library.
11516 predeps=$lt_predeps
11517
11518 # Dependencies to place after the objects being linked to create a
11519 # shared library.
11520 postdeps=$lt_postdeps
11521
11522 # The library search path used internally by the compiler when linking
11523 # a shared library.
11524 compiler_lib_search_path=$lt_compiler_lib_search_path
11525
11526 # Method to check whether dependent libraries are shared objects.
11527 deplibs_check_method=$lt_deplibs_check_method
11528
11529 # Command to use when deplibs_check_method == file_magic.
11530 file_magic_cmd=$lt_file_magic_cmd
11531
11532 # Flag that allows shared libraries with undefined symbols to be built.
11533 allow_undefined_flag=$lt_allow_undefined_flag
11534
11535 # Flag that forces no undefined symbols.
11536 no_undefined_flag=$lt_no_undefined_flag
11537
11538 # Commands used to finish a libtool library installation in a directory.
11539 finish_cmds=$lt_finish_cmds
11540
11541 # Same as above, but a single script fragment to be evaled but not shown.
11542 finish_eval=$lt_finish_eval
11543
11544 # Take the output of nm and produce a listing of raw symbols and C names.
11545 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
11546
11547 # Transform the output of nm in a proper C declaration
11548 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
11549
11550 # Transform the output of nm in a C name address pair
11551 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
11552
11553 # This is the shared library runtime path variable.
11554 runpath_var=$runpath_var
11555
11556 # This is the shared library path variable.
11557 shlibpath_var=$shlibpath_var
11558
11559 # Is shlibpath searched before the hard-coded library search path?
11560 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
11561
11562 # How to hardcode a shared library path into an executable.
11563 hardcode_action=$hardcode_action
11564
11565 # Whether we should hardcode library paths into libraries.
11566 hardcode_into_libs=$hardcode_into_libs
11567
11568 # Flag to hardcode \$libdir into a binary during linking.
11569 # This must work even if \$libdir does not exist.
11570 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
11571
11572 # If ld is used when linking, flag to hardcode \$libdir into
11573 # a binary during linking. This must work even if \$libdir does
11574 # not exist.
11575 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
11576
11577 # Whether we need a single -rpath flag with a separated argument.
11578 hardcode_libdir_separator=$lt_hardcode_libdir_separator
11579
11580 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
11581 # resulting binary.
11582 hardcode_direct=$hardcode_direct
11583
11584 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
11585 # resulting binary.
11586 hardcode_minus_L=$hardcode_minus_L
11587
11588 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
11589 # the resulting binary.
11590 hardcode_shlibpath_var=$hardcode_shlibpath_var
11591
11592 # Set to yes if building a shared library automatically hardcodes DIR into the library
11593 # and all subsequent libraries and executables linked against it.
11594 hardcode_automatic=$hardcode_automatic
11595
11596 # Variables whose values should be saved in libtool wrapper scripts and
11597 # restored at relink time.
11598 variables_saved_for_relink="$variables_saved_for_relink"
11599
11600 # Whether libtool must link a program against all its dependency libraries.
11601 link_all_deplibs=$link_all_deplibs
11602
11603 # Compile-time system search path for libraries
11604 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
11605
11606 # Run-time system search path for libraries
11607 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
11608
11609 # Fix the shell variable \$srcfile for the compiler.
11610 fix_srcfile_path=$lt_fix_srcfile_path
11611
11612 # Set to yes if exported symbols are required.
11613 always_export_symbols=$always_export_symbols
11614
11615 # The commands to list exported symbols.
11616 export_symbols_cmds=$lt_export_symbols_cmds
11617
11618 # The commands to extract the exported symbol list from a shared archive.
11619 extract_expsyms_cmds=$lt_extract_expsyms_cmds
11620
11621 # Symbols that should not be listed in the preloaded symbols.
11622 exclude_expsyms=$lt_exclude_expsyms
11623
11624 # Symbols that must always be exported.
11625 include_expsyms=$lt_include_expsyms
11626
11627 # ### END LIBTOOL CONFIG
11628
11629 __EOF__
11630
11631
13285 fi
13286
13287
13288
13289
13290
13291
13292
13293
13294
13295
13296
13297
13298 # Report which library types will actually be built
13299 { $as_echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
13300 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
13301 { $as_echo "$as_me:$LINENO: result: $can_build_shared" >&5
13302 $as_echo "$can_build_shared" >&6; }
13303
13304 { $as_echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
13305 $as_echo_n "checking whether to build shared libraries... " >&6; }
13306 test "$can_build_shared" = "no" && enable_shared=no
13307
13308 # On AIX, shared libraries and static libraries use the same namespace, and
13309 # are all built from PIC.
1163213310 case $host_os in
1163313311 aix3*)
11634 cat <<\EOF >> "$cfgfile"
11635
11636 # AIX sometimes has problems with the GCC collect2 program. For some
11637 # reason, if we set the COLLECT_NAMES environment variable, the problems
11638 # vanish in a puff of smoke.
11639 if test "X${COLLECT_NAMES+set}" != Xset; then
11640 COLLECT_NAMES=
11641 export COLLECT_NAMES
11642 fi
11643 EOF
13312 test "$enable_shared" = yes && enable_static=no
13313 if test -n "$RANLIB"; then
13314 archive_cmds="$archive_cmds~\$RANLIB \$lib"
13315 postinstall_cmds='$RANLIB $lib'
13316 fi
13317 ;;
13318
13319 aix[4-9]*)
13320 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
13321 test "$enable_shared" = yes && enable_static=no
13322 fi
1164413323 ;;
1164513324 esac
11646
11647 # We use sed instead of cat because bash on DJGPP gets confused if
11648 # if finds mixed CR/LF and LF-only lines. Since sed operates in
11649 # text mode, it properly converts lines to CR/LF. This bash problem
11650 # is reportedly fixed, but why not run on old versions too?
11651 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
11652
11653 mv -f "$cfgfile" "$ofile" || \
11654 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
11655 chmod +x "$ofile"
11656
11657 else
11658 # If there is no Makefile yet, we rely on a make rule to execute
11659 # `config.status --recheck' to rerun these tests and create the
11660 # libtool script then.
11661 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
11662 if test -f "$ltmain_in"; then
11663 test -f Makefile && make "$ltmain"
11664 fi
11665 fi
11666
11667
13325 { $as_echo "$as_me:$LINENO: result: $enable_shared" >&5
13326 $as_echo "$enable_shared" >&6; }
13327
13328 { $as_echo "$as_me:$LINENO: checking whether to build static libraries" >&5
13329 $as_echo_n "checking whether to build static libraries... " >&6; }
13330 # Make sure either enable_shared or enable_static is yes.
13331 test "$enable_shared" = yes || enable_static=yes
13332 { $as_echo "$as_me:$LINENO: result: $enable_static" >&5
13333 $as_echo "$enable_static" >&6; }
13334
13335
13336
13337
13338 fi
1166813339 ac_ext=c
1166913340 ac_cpp='$CPP $CPPFLAGS'
1167013341 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1167413345 CC="$lt_save_CC"
1167513346
1167613347
11677 # Check whether --with-tags was given.
11678 if test "${with_tags+set}" = set; then
11679 withval=$with_tags; tagnames="$withval"
11680 fi
11681
11682
11683 if test -f "$ltmain" && test -n "$tagnames"; then
11684 if test ! -f "${ofile}"; then
11685 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
11686 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
11687 fi
11688
11689 if test -z "$LTCC"; then
11690 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
11691 if test -z "$LTCC"; then
11692 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
11693 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
11694 else
11695 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
11696 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
11697 fi
11698 fi
11699 if test -z "$LTCFLAGS"; then
11700 eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
11701 fi
11702
11703 # Extract list of available tagged configurations in $ofile.
11704 # Note that this assumes the entire list is on one line.
11705 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
11706
11707 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
11708 for tagname in $tagnames; do
11709 IFS="$lt_save_ifs"
11710 # Check whether tagname contains only valid characters
11711 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
11712 "") ;;
11713 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
11714 echo "$as_me: error: invalid tag name: $tagname" >&2;}
11715 { (exit 1); exit 1; }; }
11716 ;;
11717 esac
11718
11719 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
11720 then
11721 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
11722 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
11723 { (exit 1); exit 1; }; }
11724 fi
11725
11726 # Update the list of available tags.
11727 if test -n "$tagname"; then
11728 echo appending configuration tag \"$tagname\" to $ofile
11729
11730 case $tagname in
11731 CXX)
11732 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
11733 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
11734 (test "X$CXX" != "Xg++"))) ; then
11735 ac_ext=cpp
11736 ac_cpp='$CXXCPP $CPPFLAGS'
11737 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11738 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11739 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11740
11741
11742
11743
11744 archive_cmds_need_lc_CXX=no
11745 allow_undefined_flag_CXX=
11746 always_export_symbols_CXX=no
11747 archive_expsym_cmds_CXX=
11748 export_dynamic_flag_spec_CXX=
11749 hardcode_direct_CXX=no
11750 hardcode_libdir_flag_spec_CXX=
11751 hardcode_libdir_flag_spec_ld_CXX=
11752 hardcode_libdir_separator_CXX=
11753 hardcode_minus_L_CXX=no
11754 hardcode_shlibpath_var_CXX=unsupported
11755 hardcode_automatic_CXX=no
11756 module_cmds_CXX=
11757 module_expsym_cmds_CXX=
11758 link_all_deplibs_CXX=unknown
11759 old_archive_cmds_CXX=$old_archive_cmds
11760 no_undefined_flag_CXX=
11761 whole_archive_flag_spec_CXX=
11762 enable_shared_with_static_runtimes_CXX=no
11763
11764 # Dependencies to place before and after the object being linked:
11765 predep_objects_CXX=
11766 postdep_objects_CXX=
11767 predeps_CXX=
11768 postdeps_CXX=
11769 compiler_lib_search_path_CXX=
11770
11771 # Source file extension for C++ test sources.
11772 ac_ext=cpp
11773
11774 # Object file extension for compiled C++ test sources.
11775 objext=o
11776 objext_CXX=$objext
11777
11778 # Code to be used in simple compile tests
11779 lt_simple_compile_test_code="int some_variable = 0;"
11780
11781 # Code to be used in simple link tests
11782 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
11783
11784 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
11785
11786 # If no C compiler was specified, use CC.
11787 LTCC=${LTCC-"$CC"}
11788
11789 # If no C compiler flags were specified, use CFLAGS.
11790 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
11791
11792 # Allow CC to be a program name with arguments.
11793 compiler=$CC
11794
11795
11796 # save warnings/boilerplate of simple test code
11797 ac_outfile=conftest.$ac_objext
11798 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
11799 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11800 _lt_compiler_boilerplate=`cat conftest.err`
11801 $rm conftest*
11802
11803 ac_outfile=conftest.$ac_objext
11804 echo "$lt_simple_link_test_code" >conftest.$ac_ext
11805 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11806 _lt_linker_boilerplate=`cat conftest.err`
11807 $rm conftest*
11808
11809
11810 # Allow CC to be a program name with arguments.
11811 lt_save_CC=$CC
11812 lt_save_LD=$LD
11813 lt_save_GCC=$GCC
11814 GCC=$GXX
11815 lt_save_with_gnu_ld=$with_gnu_ld
11816 lt_save_path_LD=$lt_cv_path_LD
11817 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
11818 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
11819 else
11820 $as_unset lt_cv_prog_gnu_ld
11821 fi
11822 if test -n "${lt_cv_path_LDCXX+set}"; then
11823 lt_cv_path_LD=$lt_cv_path_LDCXX
11824 else
11825 $as_unset lt_cv_path_LD
11826 fi
11827 test -z "${LDCXX+set}" || LD=$LDCXX
11828 CC=${CXX-"c++"}
11829 compiler=$CC
11830 compiler_CXX=$CC
11831 for cc_temp in $compiler""; do
11832 case $cc_temp in
11833 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
11834 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
11835 \-*) ;;
11836 *) break;;
11837 esac
11838 done
11839 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
11840
11841
11842 # We don't want -fno-exception wen compiling C++ code, so set the
11843 # no_builtin_flag separately
11844 if test "$GXX" = yes; then
11845 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
11846 else
11847 lt_prog_compiler_no_builtin_flag_CXX=
11848 fi
11849
11850 if test "$GXX" = yes; then
11851 # Set up default GNU C++ configuration
11852
11853
11854 # Check whether --with-gnu-ld was given.
11855 if test "${with_gnu_ld+set}" = set; then
11856 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
11857 else
11858 with_gnu_ld=no
11859 fi
11860
11861 ac_prog=ld
11862 if test "$GCC" = yes; then
11863 # Check if gcc -print-prog-name=ld gives a path.
11864 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
11865 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
11866 case $host in
11867 *-*-mingw*)
11868 # gcc leaves a trailing carriage return which upsets mingw
11869 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
11870 *)
11871 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
11872 esac
11873 case $ac_prog in
11874 # Accept absolute paths.
11875 [\\/]* | ?:[\\/]*)
11876 re_direlt='/[^/][^/]*/\.\./'
11877 # Canonicalize the pathname of ld
11878 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
11879 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
11880 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
11881 done
11882 test -z "$LD" && LD="$ac_prog"
11883 ;;
11884 "")
11885 # If it fails, then pretend we aren't using GCC.
11886 ac_prog=ld
11887 ;;
11888 *)
11889 # If it is relative, then search for the first ld in PATH.
11890 with_gnu_ld=unknown
11891 ;;
11892 esac
11893 elif test "$with_gnu_ld" = yes; then
11894 { echo "$as_me:$LINENO: checking for GNU ld" >&5
11895 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
11896 else
11897 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
11898 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
11899 fi
11900 if test "${lt_cv_path_LD+set}" = set; then
11901 echo $ECHO_N "(cached) $ECHO_C" >&6
11902 else
11903 if test -z "$LD"; then
11904 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11905 for ac_dir in $PATH; do
11906 IFS="$lt_save_ifs"
11907 test -z "$ac_dir" && ac_dir=.
11908 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
11909 lt_cv_path_LD="$ac_dir/$ac_prog"
11910 # Check to see if the program is GNU ld. I'd rather use --version,
11911 # but apparently some variants of GNU ld only accept -v.
11912 # Break only if it was the GNU/non-GNU ld that we prefer.
11913 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
11914 *GNU* | *'with BFD'*)
11915 test "$with_gnu_ld" != no && break
11916 ;;
11917 *)
11918 test "$with_gnu_ld" != yes && break
11919 ;;
11920 esac
11921 fi
11922 done
11923 IFS="$lt_save_ifs"
11924 else
11925 lt_cv_path_LD="$LD" # Let the user override the test with a path.
11926 fi
11927 fi
11928
11929 LD="$lt_cv_path_LD"
11930 if test -n "$LD"; then
11931 { echo "$as_me:$LINENO: result: $LD" >&5
11932 echo "${ECHO_T}$LD" >&6; }
11933 else
11934 { echo "$as_me:$LINENO: result: no" >&5
11935 echo "${ECHO_T}no" >&6; }
11936 fi
11937 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
11938 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
11939 { (exit 1); exit 1; }; }
11940 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
11941 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
11942 if test "${lt_cv_prog_gnu_ld+set}" = set; then
11943 echo $ECHO_N "(cached) $ECHO_C" >&6
11944 else
11945 # I'd rather use --version here, but apparently some GNU lds only accept -v.
11946 case `$LD -v 2>&1 </dev/null` in
11947 *GNU* | *'with BFD'*)
11948 lt_cv_prog_gnu_ld=yes
11949 ;;
11950 *)
11951 lt_cv_prog_gnu_ld=no
11952 ;;
11953 esac
11954 fi
11955 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
11956 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
11957 with_gnu_ld=$lt_cv_prog_gnu_ld
11958
11959
11960
11961 # Check if GNU C++ uses GNU ld as the underlying linker, since the
11962 # archiving commands below assume that GNU ld is being used.
11963 if test "$with_gnu_ld" = yes; then
11964 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11965 archive_expsym_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
11966
11967 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
11968 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11969
11970 # If archive_cmds runs LD, not CC, wlarc should be empty
11971 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
11972 # investigate it a little bit more. (MM)
11973 wlarc='${wl}'
11974
11975 # ancient GNU ld didn't support --whole-archive et. al.
11976 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
11977 grep 'no-whole-archive' > /dev/null; then
11978 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11979 else
11980 whole_archive_flag_spec_CXX=
11981 fi
11982 else
11983 with_gnu_ld=no
11984 wlarc=
11985
11986 # A generic and very simple default shared library creation
11987 # command for GNU C++ for the case where it uses the native
11988 # linker, instead of GNU ld. If possible, this setting should
11989 # overridden to take advantage of the native linker features on
11990 # the platform it is being used on.
11991 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11992 fi
11993
11994 # Commands to make compiler produce verbose output that lists
11995 # what "hidden" libraries, object files and flags are used when
11996 # linking a shared library.
11997 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11998
11999 else
12000 GXX=no
12001 with_gnu_ld=no
12002 wlarc=
12003 fi
12004
12005 # PORTME: fill in a description of your system's C++ link characteristics
12006 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12007 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
12008 ld_shlibs_CXX=yes
12009 case $host_os in
12010 aix3*)
12011 # FIXME: insert proper C++ library support
12012 ld_shlibs_CXX=no
12013 ;;
12014 aix4* | aix5*)
12015 if test "$host_cpu" = ia64; then
12016 # On IA64, the linker does run time linking by default, so we don't
12017 # have to do anything special.
12018 aix_use_runtimelinking=no
12019 exp_sym_flag='-Bexport'
12020 no_entry_flag=""
12021 else
12022 aix_use_runtimelinking=no
12023
12024 # Test if we are trying to use run time linking or normal
12025 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
12026 # need to do runtime linking.
12027 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
12028 for ld_flag in $LDFLAGS; do
12029 case $ld_flag in
12030 *-brtl*)
12031 aix_use_runtimelinking=yes
12032 break
12033 ;;
12034 esac
12035 done
12036 ;;
12037 esac
12038
12039 exp_sym_flag='-bexport'
12040 no_entry_flag='-bnoentry'
12041 fi
12042
12043 # When large executables or shared objects are built, AIX ld can
12044 # have problems creating the table of contents. If linking a library
12045 # or program results in "error TOC overflow" add -mminimal-toc to
12046 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
12047 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12048
12049 archive_cmds_CXX=''
12050 hardcode_direct_CXX=yes
12051 hardcode_libdir_separator_CXX=':'
12052 link_all_deplibs_CXX=yes
12053
12054 if test "$GXX" = yes; then
12055 case $host_os in aix4.[012]|aix4.[012].*)
12056 # We only want to do this on AIX 4.2 and lower, the check
12057 # below for broken collect2 doesn't work under 4.3+
12058 collect2name=`${CC} -print-prog-name=collect2`
12059 if test -f "$collect2name" && \
12060 strings "$collect2name" | grep resolve_lib_name >/dev/null
12061 then
12062 # We have reworked collect2
12063 :
12064 else
12065 # We have old collect2
12066 hardcode_direct_CXX=unsupported
12067 # It fails to find uninstalled libraries when the uninstalled
12068 # path is not listed in the libpath. Setting hardcode_minus_L
12069 # to unsupported forces relinking
12070 hardcode_minus_L_CXX=yes
12071 hardcode_libdir_flag_spec_CXX='-L$libdir'
12072 hardcode_libdir_separator_CXX=
12073 fi
12074 ;;
12075 esac
12076 shared_flag='-shared'
12077 if test "$aix_use_runtimelinking" = yes; then
12078 shared_flag="$shared_flag "'${wl}-G'
12079 fi
12080 else
12081 # not using gcc
12082 if test "$host_cpu" = ia64; then
12083 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12084 # chokes on -Wl,-G. The following line is correct:
12085 shared_flag='-G'
12086 else
12087 if test "$aix_use_runtimelinking" = yes; then
12088 shared_flag='${wl}-G'
12089 else
12090 shared_flag='${wl}-bM:SRE'
12091 fi
12092 fi
12093 fi
12094
12095 # It seems that -bexpall does not export symbols beginning with
12096 # underscore (_), so it is better to generate a list of symbols to export.
12097 always_export_symbols_CXX=yes
12098 if test "$aix_use_runtimelinking" = yes; then
12099 # Warning - without using the other runtime loading flags (-brtl),
12100 # -berok will link without error, but may produce a broken library.
12101 allow_undefined_flag_CXX='-berok'
12102 # Determine the default libpath from the value encoded in an empty executable.
12103 cat >conftest.$ac_ext <<_ACEOF
12104 /* confdefs.h. */
12105 _ACEOF
12106 cat confdefs.h >>conftest.$ac_ext
12107 cat >>conftest.$ac_ext <<_ACEOF
12108 /* end confdefs.h. */
12109
12110 int
12111 main ()
12112 {
12113
12114 ;
12115 return 0;
12116 }
12117 _ACEOF
12118 rm -f conftest.$ac_objext conftest$ac_exeext
12119 if { (ac_try="$ac_link"
12120 case "(($ac_try" in
12121 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12122 *) ac_try_echo=$ac_try;;
12123 esac
12124 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12125 (eval "$ac_link") 2>conftest.er1
12126 ac_status=$?
12127 grep -v '^ *+' conftest.er1 >conftest.err
12128 rm -f conftest.er1
12129 cat conftest.err >&5
12130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12131 (exit $ac_status); } && {
12132 test -z "$ac_cxx_werror_flag" ||
12133 test ! -s conftest.err
12134 } && test -s conftest$ac_exeext &&
12135 $as_test_x conftest$ac_exeext; then
12136
12137 lt_aix_libpath_sed='
12138 /Import File Strings/,/^$/ {
12139 /^0/ {
12140 s/^0 *\(.*\)$/\1/
12141 p
12142 }
12143 }'
12144 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12145 # Check for a 64-bit object if we didn't find anything.
12146 if test -z "$aix_libpath"; then
12147 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12148 fi
12149 else
12150 echo "$as_me: failed program was:" >&5
12151 sed 's/^/| /' conftest.$ac_ext >&5
12152
12153
12154 fi
12155
12156 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12157 conftest$ac_exeext conftest.$ac_ext
12158 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12159
12160 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12161
12162 archive_expsym_cmds_CXX="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
12163 else
12164 if test "$host_cpu" = ia64; then
12165 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
12166 allow_undefined_flag_CXX="-z nodefs"
12167 archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
12168 else
12169 # Determine the default libpath from the value encoded in an empty executable.
12170 cat >conftest.$ac_ext <<_ACEOF
12171 /* confdefs.h. */
12172 _ACEOF
12173 cat confdefs.h >>conftest.$ac_ext
12174 cat >>conftest.$ac_ext <<_ACEOF
12175 /* end confdefs.h. */
12176
12177 int
12178 main ()
12179 {
12180
12181 ;
12182 return 0;
12183 }
12184 _ACEOF
12185 rm -f conftest.$ac_objext conftest$ac_exeext
12186 if { (ac_try="$ac_link"
12187 case "(($ac_try" in
12188 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12189 *) ac_try_echo=$ac_try;;
12190 esac
12191 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12192 (eval "$ac_link") 2>conftest.er1
12193 ac_status=$?
12194 grep -v '^ *+' conftest.er1 >conftest.err
12195 rm -f conftest.er1
12196 cat conftest.err >&5
12197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12198 (exit $ac_status); } && {
12199 test -z "$ac_cxx_werror_flag" ||
12200 test ! -s conftest.err
12201 } && test -s conftest$ac_exeext &&
12202 $as_test_x conftest$ac_exeext; then
12203
12204 lt_aix_libpath_sed='
12205 /Import File Strings/,/^$/ {
12206 /^0/ {
12207 s/^0 *\(.*\)$/\1/
12208 p
12209 }
12210 }'
12211 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12212 # Check for a 64-bit object if we didn't find anything.
12213 if test -z "$aix_libpath"; then
12214 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12215 fi
12216 else
12217 echo "$as_me: failed program was:" >&5
12218 sed 's/^/| /' conftest.$ac_ext >&5
12219
12220
12221 fi
12222
12223 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12224 conftest$ac_exeext conftest.$ac_ext
12225 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12226
12227 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12228 # Warning - without using the other run time loading flags,
12229 # -berok will link without error, but may produce a broken library.
12230 no_undefined_flag_CXX=' ${wl}-bernotok'
12231 allow_undefined_flag_CXX=' ${wl}-berok'
12232 # Exported symbols can be pulled into shared objects from archives
12233 whole_archive_flag_spec_CXX='$convenience'
12234 archive_cmds_need_lc_CXX=yes
12235 # This is similar to how AIX traditionally builds its shared libraries.
12236 archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
12237 fi
12238 fi
12239 ;;
12240
12241 beos*)
12242 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
12243 allow_undefined_flag_CXX=unsupported
12244 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12245 # support --undefined. This deserves some investigation. FIXME
12246 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12247 else
12248 ld_shlibs_CXX=no
12249 fi
12250 ;;
12251
12252 chorus*)
12253 case $cc_basename in
12254 *)
12255 # FIXME: insert proper C++ library support
12256 ld_shlibs_CXX=no
12257 ;;
12258 esac
12259 ;;
12260
12261 cygwin* | mingw* | pw32*)
12262 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
12263 # as there is no search path for DLLs.
12264 hardcode_libdir_flag_spec_CXX='-L$libdir'
12265 allow_undefined_flag_CXX=unsupported
12266 always_export_symbols_CXX=no
12267 enable_shared_with_static_runtimes_CXX=yes
12268
12269 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
12270 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
12271 # If the export-symbols file already is a .def file (1st line
12272 # is EXPORTS), use it as is; otherwise, prepend...
12273 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12274 cp $export_symbols $output_objdir/$soname.def;
12275 else
12276 echo EXPORTS > $output_objdir/$soname.def;
12277 cat $export_symbols >> $output_objdir/$soname.def;
12278 fi~
12279 $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
12280 else
12281 ld_shlibs_CXX=no
12282 fi
12283 ;;
12284 darwin* | rhapsody*)
12285 case $host_os in
12286 rhapsody* | darwin1.[012])
12287 allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
12288 ;;
12289 *) # Darwin 1.3 on
12290 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
12291 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
12292 else
12293 case ${MACOSX_DEPLOYMENT_TARGET} in
12294 10.[012])
12295 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
12296 ;;
12297 10.*)
12298 allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
12299 ;;
12300 esac
12301 fi
12302 ;;
12303 esac
12304 archive_cmds_need_lc_CXX=no
12305 hardcode_direct_CXX=no
12306 hardcode_automatic_CXX=yes
12307 hardcode_shlibpath_var_CXX=unsupported
12308 whole_archive_flag_spec_CXX=''
12309 link_all_deplibs_CXX=yes
12310
12311 if test "$GXX" = yes ; then
12312 lt_int_apple_cc_single_mod=no
12313 output_verbose_link_cmd='echo'
12314 if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
12315 lt_int_apple_cc_single_mod=yes
12316 fi
12317 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
12318 archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
12319 else
12320 archive_cmds_CXX='$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'
12321 fi
12322 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
12323 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
12324 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
12325 archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
12326 else
12327 archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
12328 fi
12329 module_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
12330 else
12331 case $cc_basename in
12332 xlc*)
12333 output_verbose_link_cmd='echo'
12334 archive_cmds_CXX='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
12335 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
12336 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
12337 archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
12338 module_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
12339 ;;
12340 *)
12341 ld_shlibs_CXX=no
12342 ;;
12343 esac
12344 fi
12345 ;;
12346
12347 dgux*)
12348 case $cc_basename in
12349 ec++*)
12350 # FIXME: insert proper C++ library support
12351 ld_shlibs_CXX=no
12352 ;;
12353 ghcx*)
12354 # Green Hills C++ Compiler
12355 # FIXME: insert proper C++ library support
12356 ld_shlibs_CXX=no
12357 ;;
12358 *)
12359 # FIXME: insert proper C++ library support
12360 ld_shlibs_CXX=no
12361 ;;
12362 esac
12363 ;;
12364 freebsd[12]*)
12365 # C++ shared libraries reported to be fairly broken before switch to ELF
12366 ld_shlibs_CXX=no
12367 ;;
12368 freebsd-elf*)
12369 archive_cmds_need_lc_CXX=no
12370 ;;
12371 freebsd* | dragonfly*)
12372 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
12373 # conventions
12374 ld_shlibs_CXX=yes
12375 ;;
12376 gnu*)
12377 ;;
12378 hpux9*)
12379 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12380 hardcode_libdir_separator_CXX=:
12381 export_dynamic_flag_spec_CXX='${wl}-E'
12382 hardcode_direct_CXX=yes
12383 hardcode_minus_L_CXX=yes # Not in the search PATH,
12384 # but as the default
12385 # location of the library.
12386
12387 case $cc_basename in
12388 CC*)
12389 # FIXME: insert proper C++ library support
12390 ld_shlibs_CXX=no
12391 ;;
12392 aCC*)
12393 archive_cmds_CXX='$rm $output_objdir/$soname~$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
12394 # Commands to make compiler produce verbose output that lists
12395 # what "hidden" libraries, object files and flags are used when
12396 # linking a shared library.
12397 #
12398 # There doesn't appear to be a way to prevent this compiler from
12399 # explicitly linking system object files so we need to strip them
12400 # from the output so that they don't get included in the library
12401 # dependencies.
12402 output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | grep "[-]L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
12403 ;;
12404 *)
12405 if test "$GXX" = yes; then
12406 archive_cmds_CXX='$rm $output_objdir/$soname~$CC -shared -nostdlib -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
12407 else
12408 # FIXME: insert proper C++ library support
12409 ld_shlibs_CXX=no
12410 fi
12411 ;;
12412 esac
12413 ;;
12414 hpux10*|hpux11*)
12415 if test $with_gnu_ld = no; then
12416 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12417 hardcode_libdir_separator_CXX=:
12418
12419 case $host_cpu in
12420 hppa*64*|ia64*) ;;
12421 *)
12422 export_dynamic_flag_spec_CXX='${wl}-E'
12423 ;;
12424 esac
12425 fi
12426 case $host_cpu in
12427 hppa*64*|ia64*)
12428 hardcode_direct_CXX=no
12429 hardcode_shlibpath_var_CXX=no
12430 ;;
12431 *)
12432 hardcode_direct_CXX=yes
12433 hardcode_minus_L_CXX=yes # Not in the search PATH,
12434 # but as the default
12435 # location of the library.
12436 ;;
12437 esac
12438
12439 case $cc_basename in
12440 CC*)
12441 # FIXME: insert proper C++ library support
12442 ld_shlibs_CXX=no
12443 ;;
12444 aCC*)
12445 case $host_cpu in
12446 hppa*64*)
12447 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12448 ;;
12449 ia64*)
12450 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12451 ;;
12452 *)
12453 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12454 ;;
12455 esac
12456 # Commands to make compiler produce verbose output that lists
12457 # what "hidden" libraries, object files and flags are used when
12458 # linking a shared library.
12459 #
12460 # There doesn't appear to be a way to prevent this compiler from
12461 # explicitly linking system object files so we need to strip them
12462 # from the output so that they don't get included in the library
12463 # dependencies.
12464 output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | grep "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
12465 ;;
12466 *)
12467 if test "$GXX" = yes; then
12468 if test $with_gnu_ld = no; then
12469 case $host_cpu in
12470 hppa*64*)
12471 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12472 ;;
12473 ia64*)
12474 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12475 ;;
12476 *)
12477 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12478 ;;
12479 esac
12480 fi
12481 else
12482 # FIXME: insert proper C++ library support
12483 ld_shlibs_CXX=no
12484 fi
12485 ;;
12486 esac
12487 ;;
12488 interix[3-9]*)
12489 hardcode_direct_CXX=no
12490 hardcode_shlibpath_var_CXX=no
12491 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12492 export_dynamic_flag_spec_CXX='${wl}-E'
12493 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
12494 # Instead, shared libraries are loaded at an image base (0x10000000 by
12495 # default) and relocated if they conflict, which is a slow very memory
12496 # consuming and fragmenting process. To avoid this, we pick a random,
12497 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
12498 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
12499 archive_cmds_CXX='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
12500 archive_expsym_cmds_CXX='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
12501 ;;
12502 irix5* | irix6*)
12503 case $cc_basename in
12504 CC*)
12505 # SGI C++
12506 archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
12507
12508 # Archives containing C++ object files must be created using
12509 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
12510 # necessary to make sure instantiated templates are included
12511 # in the archive.
12512 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
12513 ;;
12514 *)
12515 if test "$GXX" = yes; then
12516 if test "$with_gnu_ld" = no; then
12517 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
12518 else
12519 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` -o $lib'
12520 fi
12521 fi
12522 link_all_deplibs_CXX=yes
12523 ;;
12524 esac
12525 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12526 hardcode_libdir_separator_CXX=:
12527 ;;
12528 linux* | k*bsd*-gnu)
12529 case $cc_basename in
12530 KCC*)
12531 # Kuck and Associates, Inc. (KAI) C++ Compiler
12532
12533 # KCC will only create a shared library if the output file
12534 # ends with ".so" (or ".sl" for HP-UX), so rename the library
12535 # to its proper name (with version) after linking.
12536 archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
12537 archive_expsym_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib ${wl}-retain-symbols-file,$export_symbols; mv \$templib $lib'
12538 # Commands to make compiler produce verbose output that lists
12539 # what "hidden" libraries, object files and flags are used when
12540 # linking a shared library.
12541 #
12542 # There doesn't appear to be a way to prevent this compiler from
12543 # explicitly linking system object files so we need to strip them
12544 # from the output so that they don't get included in the library
12545 # dependencies.
12546 output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | grep "ld"`; rm -f libconftest$shared_ext; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
12547
12548 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
12549 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12550
12551 # Archives containing C++ object files must be created using
12552 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
12553 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
12554 ;;
12555 icpc*)
12556 # Intel C++
12557 with_gnu_ld=yes
12558 # version 8.0 and above of icpc choke on multiply defined symbols
12559 # if we add $predep_objects and $postdep_objects, however 7.1 and
12560 # earlier do not add the objects themselves.
12561 case `$CC -V 2>&1` in
12562 *"Version 7."*)
12563 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12564 archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12565 ;;
12566 *) # Version 8.0 or newer
12567 tmp_idyn=
12568 case $host_cpu in
12569 ia64*) tmp_idyn=' -i_dynamic';;
12570 esac
12571 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12572 archive_expsym_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12573 ;;
12574 esac
12575 archive_cmds_need_lc_CXX=no
12576 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12577 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12578 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
12579 ;;
12580 pgCC*)
12581 # Portland Group C++ compiler
12582 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
12583 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
12584
12585 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
12586 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12587 whole_archive_flag_spec_CXX='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
12588 ;;
12589 cxx*)
12590 # Compaq C++
12591 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12592 archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib ${wl}-retain-symbols-file $wl$export_symbols'
12593
12594 runpath_var=LD_RUN_PATH
12595 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12596 hardcode_libdir_separator_CXX=:
12597
12598 # Commands to make compiler produce verbose output that lists
12599 # what "hidden" libraries, object files and flags are used when
12600 # linking a shared library.
12601 #
12602 # There doesn't appear to be a way to prevent this compiler from
12603 # explicitly linking system object files so we need to strip them
12604 # from the output so that they don't get included in the library
12605 # dependencies.
12606 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
12607 ;;
12608 *)
12609 case `$CC -V 2>&1 | sed 5q` in
12610 *Sun\ C*)
12611 # Sun C++ 5.9
12612 no_undefined_flag_CXX=' -zdefs'
12613 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12614 archive_expsym_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file ${wl}$export_symbols'
12615 hardcode_libdir_flag_spec_CXX='-R$libdir'
12616 whole_archive_flag_spec_CXX='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
12617
12618 # Not sure whether something based on
12619 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
12620 # would be better.
12621 output_verbose_link_cmd='echo'
12622
12623 # Archives containing C++ object files must be created using
12624 # "CC -xar", where "CC" is the Sun C++ compiler. This is
12625 # necessary to make sure instantiated templates are included
12626 # in the archive.
12627 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
12628 ;;
12629 esac
12630 ;;
12631 esac
12632 ;;
12633 lynxos*)
12634 # FIXME: insert proper C++ library support
12635 ld_shlibs_CXX=no
12636 ;;
12637 m88k*)
12638 # FIXME: insert proper C++ library support
12639 ld_shlibs_CXX=no
12640 ;;
12641 mvs*)
12642 case $cc_basename in
12643 cxx*)
12644 # FIXME: insert proper C++ library support
12645 ld_shlibs_CXX=no
12646 ;;
12647 *)
12648 # FIXME: insert proper C++ library support
12649 ld_shlibs_CXX=no
12650 ;;
12651 esac
12652 ;;
12653 netbsd*)
12654 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12655 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
12656 wlarc=
12657 hardcode_libdir_flag_spec_CXX='-R$libdir'
12658 hardcode_direct_CXX=yes
12659 hardcode_shlibpath_var_CXX=no
12660 fi
12661 # Workaround some broken pre-1.5 toolchains
12662 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
12663 ;;
12664 openbsd2*)
12665 # C++ shared libraries are fairly broken
12666 ld_shlibs_CXX=no
12667 ;;
12668 openbsd*)
12669 if test -f /usr/libexec/ld.so; then
12670 hardcode_direct_CXX=yes
12671 hardcode_shlibpath_var_CXX=no
12672 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12673 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12674 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12675 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
12676 export_dynamic_flag_spec_CXX='${wl}-E'
12677 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12678 fi
12679 output_verbose_link_cmd='echo'
12680 else
12681 ld_shlibs_CXX=no
12682 fi
12683 ;;
12684 osf3*)
12685 case $cc_basename in
12686 KCC*)
12687 # Kuck and Associates, Inc. (KAI) C++ Compiler
12688
12689 # KCC will only create a shared library if the output file
12690 # ends with ".so" (or ".sl" for HP-UX), so rename the library
12691 # to its proper name (with version) after linking.
12692 archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
12693
12694 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12695 hardcode_libdir_separator_CXX=:
12696
12697 # Archives containing C++ object files must be created using
12698 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
12699 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
12700
12701 ;;
12702 RCC*)
12703 # Rational C++ 2.4.1
12704 # FIXME: insert proper C++ library support
12705 ld_shlibs_CXX=no
12706 ;;
12707 cxx*)
12708 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12709 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && echo ${wl}-set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
12710
12711 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12712 hardcode_libdir_separator_CXX=:
12713
12714 # Commands to make compiler produce verbose output that lists
12715 # what "hidden" libraries, object files and flags are used when
12716 # linking a shared library.
12717 #
12718 # There doesn't appear to be a way to prevent this compiler from
12719 # explicitly linking system object files so we need to strip them
12720 # from the output so that they don't get included in the library
12721 # dependencies.
12722 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
12723 ;;
12724 *)
12725 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12726 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12727 archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
12728
12729 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12730 hardcode_libdir_separator_CXX=:
12731
12732 # Commands to make compiler produce verbose output that lists
12733 # what "hidden" libraries, object files and flags are used when
12734 # linking a shared library.
12735 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
12736
12737 else
12738 # FIXME: insert proper C++ library support
12739 ld_shlibs_CXX=no
12740 fi
12741 ;;
12742 esac
12743 ;;
12744 osf4* | osf5*)
12745 case $cc_basename in
12746 KCC*)
12747 # Kuck and Associates, Inc. (KAI) C++ Compiler
12748
12749 # KCC will only create a shared library if the output file
12750 # ends with ".so" (or ".sl" for HP-UX), so rename the library
12751 # to its proper name (with version) after linking.
12752 archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
12753
12754 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12755 hardcode_libdir_separator_CXX=:
12756
12757 # Archives containing C++ object files must be created using
12758 # the KAI C++ compiler.
12759 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
12760 ;;
12761 RCC*)
12762 # Rational C++ 2.4.1
12763 # FIXME: insert proper C++ library support
12764 ld_shlibs_CXX=no
12765 ;;
12766 cxx*)
12767 allow_undefined_flag_CXX=' -expect_unresolved \*'
12768 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
12769 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
12770 echo "-hidden">> $lib.exp~
12771 $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname -Wl,-input -Wl,$lib.exp `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~
12772 $rm $lib.exp'
12773
12774 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12775 hardcode_libdir_separator_CXX=:
12776
12777 # Commands to make compiler produce verbose output that lists
12778 # what "hidden" libraries, object files and flags are used when
12779 # linking a shared library.
12780 #
12781 # There doesn't appear to be a way to prevent this compiler from
12782 # explicitly linking system object files so we need to strip them
12783 # from the output so that they don't get included in the library
12784 # dependencies.
12785 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
12786 ;;
12787 *)
12788 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12789 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12790 archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
12791
12792 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12793 hardcode_libdir_separator_CXX=:
12794
12795 # Commands to make compiler produce verbose output that lists
12796 # what "hidden" libraries, object files and flags are used when
12797 # linking a shared library.
12798 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
12799
12800 else
12801 # FIXME: insert proper C++ library support
12802 ld_shlibs_CXX=no
12803 fi
12804 ;;
12805 esac
12806 ;;
12807 psos*)
12808 # FIXME: insert proper C++ library support
12809 ld_shlibs_CXX=no
12810 ;;
12811 sunos4*)
12812 case $cc_basename in
12813 CC*)
12814 # Sun C++ 4.x
12815 # FIXME: insert proper C++ library support
12816 ld_shlibs_CXX=no
12817 ;;
12818 lcc*)
12819 # Lucid
12820 # FIXME: insert proper C++ library support
12821 ld_shlibs_CXX=no
12822 ;;
12823 *)
12824 # FIXME: insert proper C++ library support
12825 ld_shlibs_CXX=no
12826 ;;
12827 esac
12828 ;;
12829 solaris*)
12830 case $cc_basename in
12831 CC*)
12832 # Sun C++ 4.2, 5.x and Centerline C++
12833 archive_cmds_need_lc_CXX=yes
12834 no_undefined_flag_CXX=' -zdefs'
12835 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12836 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12837 $CC -G${allow_undefined_flag} ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
12838
12839 hardcode_libdir_flag_spec_CXX='-R$libdir'
12840 hardcode_shlibpath_var_CXX=no
12841 case $host_os in
12842 solaris2.[0-5] | solaris2.[0-5].*) ;;
12843 *)
12844 # The compiler driver will combine and reorder linker options,
12845 # but understands `-z linker_flag'.
12846 # Supported since Solaris 2.6 (maybe 2.5.1?)
12847 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
12848 ;;
12849 esac
12850 link_all_deplibs_CXX=yes
12851
12852 output_verbose_link_cmd='echo'
12853
12854 # Archives containing C++ object files must be created using
12855 # "CC -xar", where "CC" is the Sun C++ compiler. This is
12856 # necessary to make sure instantiated templates are included
12857 # in the archive.
12858 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
12859 ;;
12860 gcx*)
12861 # Green Hills C++ Compiler
12862 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12863
12864 # The C++ compiler must be used to create the archive.
12865 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
12866 ;;
12867 *)
12868 # GNU C++ compiler with Solaris linker
12869 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12870 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
12871 if $CC --version | grep -v '^2\.7' > /dev/null; then
12872 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12873 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12874 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
12875
12876 # Commands to make compiler produce verbose output that lists
12877 # what "hidden" libraries, object files and flags are used when
12878 # linking a shared library.
12879 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
12880 else
12881 # g++ 2.7 appears to require `-G' NOT `-shared' on this
12882 # platform.
12883 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12884 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12885 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
12886
12887 # Commands to make compiler produce verbose output that lists
12888 # what "hidden" libraries, object files and flags are used when
12889 # linking a shared library.
12890 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
12891 fi
12892
12893 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
12894 case $host_os in
12895 solaris2.[0-5] | solaris2.[0-5].*) ;;
12896 *)
12897 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
12898 ;;
12899 esac
12900 fi
12901 ;;
12902 esac
12903 ;;
12904 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
12905 no_undefined_flag_CXX='${wl}-z,text'
12906 archive_cmds_need_lc_CXX=no
12907 hardcode_shlibpath_var_CXX=no
12908 runpath_var='LD_RUN_PATH'
12909
12910 case $cc_basename in
12911 CC*)
12912 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12913 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12914 ;;
12915 *)
12916 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12917 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12918 ;;
12919 esac
12920 ;;
12921 sysv5* | sco3.2v5* | sco5v6*)
12922 # Note: We can NOT use -z defs as we might desire, because we do not
12923 # link with -lc, and that would cause any symbols used from libc to
12924 # always be unresolved, which means just about no library would
12925 # ever link correctly. If we're not using GNU ld we use -z text
12926 # though, which does catch some bad symbols but isn't as heavy-handed
12927 # as -z defs.
12928 # For security reasons, it is highly recommended that you always
12929 # use absolute paths for naming shared libraries, and exclude the
12930 # DT_RUNPATH tag from executables and libraries. But doing so
12931 # requires that you compile everything twice, which is a pain.
12932 # So that behaviour is only enabled if SCOABSPATH is set to a
12933 # non-empty value in the environment. Most likely only useful for
12934 # creating official distributions of packages.
12935 # This is a hack until libtool officially supports absolute path
12936 # names for shared libraries.
12937 no_undefined_flag_CXX='${wl}-z,text'
12938 allow_undefined_flag_CXX='${wl}-z,nodefs'
12939 archive_cmds_need_lc_CXX=no
12940 hardcode_shlibpath_var_CXX=no
12941 hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
12942 hardcode_libdir_separator_CXX=':'
12943 link_all_deplibs_CXX=yes
12944 export_dynamic_flag_spec_CXX='${wl}-Bexport'
12945 runpath_var='LD_RUN_PATH'
12946
12947 case $cc_basename in
12948 CC*)
12949 archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12950 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12951 ;;
12952 *)
12953 archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12954 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12955 ;;
12956 esac
12957 ;;
12958 tandem*)
12959 case $cc_basename in
12960 NCC*)
12961 # NonStop-UX NCC 3.20
12962 # FIXME: insert proper C++ library support
12963 ld_shlibs_CXX=no
12964 ;;
12965 *)
12966 # FIXME: insert proper C++ library support
12967 ld_shlibs_CXX=no
12968 ;;
12969 esac
12970 ;;
12971 vxworks*)
12972 # FIXME: insert proper C++ library support
12973 ld_shlibs_CXX=no
12974 ;;
12975 *)
12976 # FIXME: insert proper C++ library support
12977 ld_shlibs_CXX=no
12978 ;;
12979 esac
12980 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
12981 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
12982 test "$ld_shlibs_CXX" = no && can_build_shared=no
12983
12984 GCC_CXX="$GXX"
12985 LD_CXX="$LD"
12986
12987
12988 cat > conftest.$ac_ext <<EOF
12989 class Foo
12990 {
12991 public:
12992 Foo (void) { a = 0; }
12993 private:
12994 int a;
12995 };
12996 EOF
12997
12998 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12999 (eval $ac_compile) 2>&5
13000 ac_status=$?
13001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13002 (exit $ac_status); }; then
13003 # Parse the compiler output and extract the necessary
13004 # objects, libraries and library flags.
13005
13006 # Sentinel used to keep track of whether or not we are before
13007 # the conftest object file.
13008 pre_test_object_deps_done=no
13009
13010 # The `*' in the case matches for architectures that use `case' in
13011 # $output_verbose_cmd can trigger glob expansion during the loop
13012 # eval without this substitution.
13013 output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
13014
13015 for p in `eval $output_verbose_link_cmd`; do
13016 case $p in
13017
13018 -L* | -R* | -l*)
13019 # Some compilers place space between "-{L,R}" and the path.
13020 # Remove the space.
13021 if test $p = "-L" \
13022 || test $p = "-R"; then
13023 prev=$p
13024 continue
13025 else
13026 prev=
13027 fi
13028
13029 if test "$pre_test_object_deps_done" = no; then
13030 case $p in
13031 -L* | -R*)
13032 # Internal compiler library paths should come after those
13033 # provided the user. The postdeps already come after the
13034 # user supplied libs so there is no need to process them.
13035 if test -z "$compiler_lib_search_path_CXX"; then
13036 compiler_lib_search_path_CXX="${prev}${p}"
13037 else
13038 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
13039 fi
13040 ;;
13041 # The "-l" case would never come before the object being
13042 # linked, so don't bother handling this case.
13043 esac
13044 else
13045 if test -z "$postdeps_CXX"; then
13046 postdeps_CXX="${prev}${p}"
13047 else
13048 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
13049 fi
13050 fi
13051 ;;
13052
13053 *.$objext)
13054 # This assumes that the test object file only shows up
13055 # once in the compiler output.
13056 if test "$p" = "conftest.$objext"; then
13057 pre_test_object_deps_done=yes
13058 continue
13059 fi
13060
13061 if test "$pre_test_object_deps_done" = no; then
13062 if test -z "$predep_objects_CXX"; then
13063 predep_objects_CXX="$p"
13064 else
13065 predep_objects_CXX="$predep_objects_CXX $p"
13066 fi
13067 else
13068 if test -z "$postdep_objects_CXX"; then
13069 postdep_objects_CXX="$p"
13070 else
13071 postdep_objects_CXX="$postdep_objects_CXX $p"
13072 fi
13073 fi
13074 ;;
13075
13076 *) ;; # Ignore the rest.
13077
13078 esac
13079 done
13080
13081 # Clean up.
13082 rm -f a.out a.exe
13083 else
13084 echo "libtool.m4: error: problem compiling CXX test program"
13085 fi
13086
13087 $rm -f confest.$objext
13088
13089 # PORTME: override above test on systems where it is broken
13090 case $host_os in
13091 interix[3-9]*)
13092 # Interix 3.5 installs completely hosed .la files for C++, so rather than
13093 # hack all around it, let's just trust "g++" to DTRT.
13094 predep_objects_CXX=
13095 postdep_objects_CXX=
13096 postdeps_CXX=
13097 ;;
13098
13099 linux*)
13100 case `$CC -V 2>&1 | sed 5q` in
13101 *Sun\ C*)
13102 # Sun C++ 5.9
13103 #
13104 # The more standards-conforming stlport4 library is
13105 # incompatible with the Cstd library. Avoid specifying
13106 # it if it's in CXXFLAGS. Ignore libCrun as
13107 # -library=stlport4 depends on it.
13108 case " $CXX $CXXFLAGS " in
13109 *" -library=stlport4 "*)
13110 solaris_use_stlport4=yes
13111 ;;
13112 esac
13113 if test "$solaris_use_stlport4" != yes; then
13114 postdeps_CXX='-library=Cstd -library=Crun'
13115 fi
13116 ;;
13117 esac
13118 ;;
13119
13120 solaris*)
13121 case $cc_basename in
13122 CC*)
13123 # The more standards-conforming stlport4 library is
13124 # incompatible with the Cstd library. Avoid specifying
13125 # it if it's in CXXFLAGS. Ignore libCrun as
13126 # -library=stlport4 depends on it.
13127 case " $CXX $CXXFLAGS " in
13128 *" -library=stlport4 "*)
13129 solaris_use_stlport4=yes
13130 ;;
13131 esac
13132
13133 # Adding this requires a known-good setup of shared libraries for
13134 # Sun compiler versions before 5.6, else PIC objects from an old
13135 # archive will be linked into the output, leading to subtle bugs.
13136 if test "$solaris_use_stlport4" != yes; then
13137 postdeps_CXX='-library=Cstd -library=Crun'
13138 fi
13139 ;;
13140 esac
13141 ;;
13142 esac
13143
13144
13145 case " $postdeps_CXX " in
13146 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
13147 esac
13148
13149 lt_prog_compiler_wl_CXX=
13150 lt_prog_compiler_pic_CXX=
13151 lt_prog_compiler_static_CXX=
13152
13153 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
13154 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
13155
13156 # C++ specific cases for pic, static, wl, etc.
13157 if test "$GXX" = yes; then
13158 lt_prog_compiler_wl_CXX='-Wl,'
13159 lt_prog_compiler_static_CXX='-static'
13160
13161 case $host_os in
13162 aix*)
13163 # All AIX code is PIC.
13164 if test "$host_cpu" = ia64; then
13165 # AIX 5 now supports IA64 processor
13166 lt_prog_compiler_static_CXX='-Bstatic'
13167 fi
13168 ;;
13169 amigaos*)
13170 # FIXME: we need at least 68020 code to build shared libraries, but
13171 # adding the `-m68020' flag to GCC prevents building anything better,
13172 # like `-m68040'.
13173 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
13174 ;;
13175 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13176 # PIC is the default for these OSes.
13177 ;;
13178 mingw* | cygwin* | os2* | pw32*)
13179 # This hack is so that the source file can tell whether it is being
13180 # built for inclusion in a dll (and should export symbols for example).
13181 # Although the cygwin gcc ignores -fPIC, still need this for old-style
13182 # (--disable-auto-import) libraries
13183 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
13184 ;;
13185 darwin* | rhapsody*)
13186 # PIC is the default on this platform
13187 # Common symbols not allowed in MH_DYLIB files
13188 lt_prog_compiler_pic_CXX='-fno-common'
13189 ;;
13190 *djgpp*)
13191 # DJGPP does not support shared libraries at all
13192 lt_prog_compiler_pic_CXX=
13193 ;;
13194 interix[3-9]*)
13195 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13196 # Instead, we relocate shared libraries at runtime.
13197 ;;
13198 sysv4*MP*)
13199 if test -d /usr/nec; then
13200 lt_prog_compiler_pic_CXX=-Kconform_pic
13201 fi
13202 ;;
13203 hpux*)
13204 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13205 # not for PA HP-UX.
13206 case $host_cpu in
13207 hppa*64*|ia64*)
13208 ;;
13209 *)
13210 lt_prog_compiler_pic_CXX='-fPIC'
13211 ;;
13212 esac
13213 ;;
13214 *)
13215 lt_prog_compiler_pic_CXX='-fPIC'
13216 ;;
13217 esac
13218 else
13219 case $host_os in
13220 aix4* | aix5*)
13221 # All AIX code is PIC.
13222 if test "$host_cpu" = ia64; then
13223 # AIX 5 now supports IA64 processor
13224 lt_prog_compiler_static_CXX='-Bstatic'
13225 else
13226 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
13227 fi
13228 ;;
13229 chorus*)
13230 case $cc_basename in
13231 cxch68*)
13232 # Green Hills C++ Compiler
13233 # _LT_AC_TAGVAR(lt_prog_compiler_static, CXX)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a"
13234 ;;
13235 esac
13236 ;;
13237 darwin*)
13238 # PIC is the default on this platform
13239 # Common symbols not allowed in MH_DYLIB files
13240 case $cc_basename in
13241 xlc*)
13242 lt_prog_compiler_pic_CXX='-qnocommon'
13243 lt_prog_compiler_wl_CXX='-Wl,'
13244 ;;
13245 esac
13246 ;;
13247 dgux*)
13248 case $cc_basename in
13249 ec++*)
13250 lt_prog_compiler_pic_CXX='-KPIC'
13251 ;;
13252 ghcx*)
13253 # Green Hills C++ Compiler
13254 lt_prog_compiler_pic_CXX='-pic'
13255 ;;
13256 *)
13257 ;;
13258 esac
13259 ;;
13260 freebsd* | dragonfly*)
13261 # FreeBSD uses GNU C++
13262 ;;
13263 hpux9* | hpux10* | hpux11*)
13264 case $cc_basename in
13265 CC*)
13266 lt_prog_compiler_wl_CXX='-Wl,'
13267 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
13268 if test "$host_cpu" != ia64; then
13269 lt_prog_compiler_pic_CXX='+Z'
13270 fi
13271 ;;
13272 aCC*)
13273 lt_prog_compiler_wl_CXX='-Wl,'
13274 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
13275 case $host_cpu in
13276 hppa*64*|ia64*)
13277 # +Z the default
13278 ;;
13279 *)
13280 lt_prog_compiler_pic_CXX='+Z'
13281 ;;
13282 esac
13283 ;;
13284 *)
13285 ;;
13286 esac
13287 ;;
13288 interix*)
13289 # This is c89, which is MS Visual C++ (no shared libs)
13290 # Anyone wants to do a port?
13291 ;;
13292 irix5* | irix6* | nonstopux*)
13293 case $cc_basename in
13294 CC*)
13295 lt_prog_compiler_wl_CXX='-Wl,'
13296 lt_prog_compiler_static_CXX='-non_shared'
13297 # CC pic flag -KPIC is the default.
13298 ;;
13299 *)
13300 ;;
13301 esac
13302 ;;
13303 linux* | k*bsd*-gnu)
13304 case $cc_basename in
13305 KCC*)
13306 # KAI C++ Compiler
13307 lt_prog_compiler_wl_CXX='--backend -Wl,'
13308 lt_prog_compiler_pic_CXX='-fPIC'
13309 ;;
13310 icpc* | ecpc*)
13311 # Intel C++
13312 lt_prog_compiler_wl_CXX='-Wl,'
13313 lt_prog_compiler_pic_CXX='-KPIC'
13314 lt_prog_compiler_static_CXX='-static'
13315 ;;
13316 pgCC*)
13317 # Portland Group C++ compiler.
13318 lt_prog_compiler_wl_CXX='-Wl,'
13319 lt_prog_compiler_pic_CXX='-fpic'
13320 lt_prog_compiler_static_CXX='-Bstatic'
13321 ;;
13322 cxx*)
13323 # Compaq C++
13324 # Make sure the PIC flag is empty. It appears that all Alpha
13325 # Linux and Compaq Tru64 Unix objects are PIC.
13326 lt_prog_compiler_pic_CXX=
13327 lt_prog_compiler_static_CXX='-non_shared'
13328 ;;
13329 *)
13330 case `$CC -V 2>&1 | sed 5q` in
13331 *Sun\ C*)
13332 # Sun C++ 5.9
13333 lt_prog_compiler_pic_CXX='-KPIC'
13334 lt_prog_compiler_static_CXX='-Bstatic'
13335 lt_prog_compiler_wl_CXX='-Qoption ld '
13336 ;;
13337 esac
13338 ;;
13339 esac
13340 ;;
13341 lynxos*)
13342 ;;
13343 m88k*)
13344 ;;
13345 mvs*)
13346 case $cc_basename in
13347 cxx*)
13348 lt_prog_compiler_pic_CXX='-W c,exportall'
13349 ;;
13350 *)
13351 ;;
13352 esac
13353 ;;
13354 netbsd*)
13355 ;;
13356 osf3* | osf4* | osf5*)
13357 case $cc_basename in
13358 KCC*)
13359 lt_prog_compiler_wl_CXX='--backend -Wl,'
13360 ;;
13361 RCC*)
13362 # Rational C++ 2.4.1
13363 lt_prog_compiler_pic_CXX='-pic'
13364 ;;
13365 cxx*)
13366 # Digital/Compaq C++
13367 lt_prog_compiler_wl_CXX='-Wl,'
13368 # Make sure the PIC flag is empty. It appears that all Alpha
13369 # Linux and Compaq Tru64 Unix objects are PIC.
13370 lt_prog_compiler_pic_CXX=
13371 lt_prog_compiler_static_CXX='-non_shared'
13372 ;;
13373 *)
13374 ;;
13375 esac
13376 ;;
13377 psos*)
13378 ;;
13379 solaris*)
13380 case $cc_basename in
13381 CC*)
13382 # Sun C++ 4.2, 5.x and Centerline C++
13383 lt_prog_compiler_pic_CXX='-KPIC'
13384 lt_prog_compiler_static_CXX='-Bstatic'
13385 lt_prog_compiler_wl_CXX='-Qoption ld '
13386 ;;
13387 gcx*)
13388 # Green Hills C++ Compiler
13389 lt_prog_compiler_pic_CXX='-PIC'
13390 ;;
13391 *)
13392 ;;
13393 esac
13394 ;;
13395 sunos4*)
13396 case $cc_basename in
13397 CC*)
13398 # Sun C++ 4.x
13399 lt_prog_compiler_pic_CXX='-pic'
13400 lt_prog_compiler_static_CXX='-Bstatic'
13401 ;;
13402 lcc*)
13403 # Lucid
13404 lt_prog_compiler_pic_CXX='-pic'
13405 ;;
13406 *)
13407 ;;
13408 esac
13409 ;;
13410 tandem*)
13411 case $cc_basename in
13412 NCC*)
13413 # NonStop-UX NCC 3.20
13414 lt_prog_compiler_pic_CXX='-KPIC'
13415 ;;
13416 *)
13417 ;;
13418 esac
13419 ;;
13420 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
13421 case $cc_basename in
13422 CC*)
13423 lt_prog_compiler_wl_CXX='-Wl,'
13424 lt_prog_compiler_pic_CXX='-KPIC'
13425 lt_prog_compiler_static_CXX='-Bstatic'
13426 ;;
13427 esac
13428 ;;
13429 vxworks*)
13430 ;;
13431 *)
13432 lt_prog_compiler_can_build_shared_CXX=no
13433 ;;
13434 esac
13435 fi
13436
13437 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
13438 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
13439
13440 #
13441 # Check to make sure the PIC flag actually works.
13442 #
13443 if test -n "$lt_prog_compiler_pic_CXX"; then
13444
13445 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
13446 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
13447 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
13448 echo $ECHO_N "(cached) $ECHO_C" >&6
13449 else
13450 lt_prog_compiler_pic_works_CXX=no
13451 ac_outfile=conftest.$ac_objext
13452 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13453 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
13454 # Insert the option either (1) after the last *FLAGS variable, or
13455 # (2) before a word containing "conftest.", or (3) at the end.
13456 # Note that $ac_compile itself does not contain backslashes and begins
13457 # with a dollar sign (not a hyphen), so the echo should work correctly.
13458 # The option is referenced via a variable to avoid confusing sed.
13459 lt_compile=`echo "$ac_compile" | $SED \
13460 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13461 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13462 -e 's:$: $lt_compiler_flag:'`
13463 (eval echo "\"\$as_me:13464: $lt_compile\"" >&5)
13464 (eval "$lt_compile" 2>conftest.err)
13465 ac_status=$?
13466 cat conftest.err >&5
13467 echo "$as_me:13468: \$? = $ac_status" >&5
13468 if (exit $ac_status) && test -s "$ac_outfile"; then
13469 # The compiler can only warn and ignore the option if not recognized
13470 # So say no if there are warnings other than the usual output.
13471 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
13472 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13473 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
13474 lt_prog_compiler_pic_works_CXX=yes
13475 fi
13476 fi
13477 $rm conftest*
13478
13479 fi
13480 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
13481 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6; }
13482
13483 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
13484 case $lt_prog_compiler_pic_CXX in
13485 "" | " "*) ;;
13486 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
13487 esac
13488 else
13489 lt_prog_compiler_pic_CXX=
13490 lt_prog_compiler_can_build_shared_CXX=no
13491 fi
13492
13493 fi
13494 case $host_os in
13495 # For platforms which do not support PIC, -DPIC is meaningless:
13496 *djgpp*)
13497 lt_prog_compiler_pic_CXX=
13498 ;;
13499 *)
13500 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
13501 ;;
13502 esac
13503
13504 #
13505 # Check to make sure the static flag actually works.
13506 #
13507 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
13508 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
13509 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
13510 if test "${lt_prog_compiler_static_works_CXX+set}" = set; then
13511 echo $ECHO_N "(cached) $ECHO_C" >&6
13512 else
13513 lt_prog_compiler_static_works_CXX=no
13514 save_LDFLAGS="$LDFLAGS"
13515 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
13516 echo "$lt_simple_link_test_code" > conftest.$ac_ext
13517 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
13518 # The linker can only warn and ignore the option if not recognized
13519 # So say no if there are warnings
13520 if test -s conftest.err; then
13521 # Append any errors to the config.log.
13522 cat conftest.err 1>&5
13523 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
13524 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13525 if diff conftest.exp conftest.er2 >/dev/null; then
13526 lt_prog_compiler_static_works_CXX=yes
13527 fi
13528 else
13529 lt_prog_compiler_static_works_CXX=yes
13530 fi
13531 fi
13532 $rm conftest*
13533 LDFLAGS="$save_LDFLAGS"
13534
13535 fi
13536 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5
13537 echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6; }
13538
13539 if test x"$lt_prog_compiler_static_works_CXX" = xyes; then
13540 :
13541 else
13542 lt_prog_compiler_static_CXX=
13543 fi
13544
13545
13546 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
13547 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
13548 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
13549 echo $ECHO_N "(cached) $ECHO_C" >&6
13550 else
13551 lt_cv_prog_compiler_c_o_CXX=no
13552 $rm -r conftest 2>/dev/null
13553 mkdir conftest
13554 cd conftest
13555 mkdir out
13556 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13557
13558 lt_compiler_flag="-o out/conftest2.$ac_objext"
13559 # Insert the option either (1) after the last *FLAGS variable, or
13560 # (2) before a word containing "conftest.", or (3) at the end.
13561 # Note that $ac_compile itself does not contain backslashes and begins
13562 # with a dollar sign (not a hyphen), so the echo should work correctly.
13563 lt_compile=`echo "$ac_compile" | $SED \
13564 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13565 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13566 -e 's:$: $lt_compiler_flag:'`
13567 (eval echo "\"\$as_me:13568: $lt_compile\"" >&5)
13568 (eval "$lt_compile" 2>out/conftest.err)
13569 ac_status=$?
13570 cat out/conftest.err >&5
13571 echo "$as_me:13572: \$? = $ac_status" >&5
13572 if (exit $ac_status) && test -s out/conftest2.$ac_objext
13573 then
13574 # The compiler can only warn and ignore the option if not recognized
13575 # So say no if there are warnings
13576 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
13577 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13578 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13579 lt_cv_prog_compiler_c_o_CXX=yes
13580 fi
13581 fi
13582 chmod u+w . 2>&5
13583 $rm conftest*
13584 # SGI C++ compiler will create directory out/ii_files/ for
13585 # template instantiation
13586 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
13587 $rm out/* && rmdir out
13588 cd ..
13589 rmdir conftest
13590 $rm conftest*
13591
13592 fi
13593 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
13594 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
13595
13596
13597 hard_links="nottested"
13598 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
13599 # do not overwrite the value of need_locks provided by the user
13600 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
13601 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
13602 hard_links=yes
13603 $rm conftest*
13604 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13605 touch conftest.a
13606 ln conftest.a conftest.b 2>&5 || hard_links=no
13607 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13608 { echo "$as_me:$LINENO: result: $hard_links" >&5
13609 echo "${ECHO_T}$hard_links" >&6; }
13610 if test "$hard_links" = no; then
13611 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13612 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13613 need_locks=warn
13614 fi
13615 else
13616 need_locks=no
13617 fi
13618
13619 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13620 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
13621
13622 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13623 case $host_os in
13624 aix4* | aix5*)
13625 # If we're using GNU nm, then we don't want the "-C" option.
13626 # -C means demangle to AIX nm, but means don't demangle with GNU nm
13627 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
13628 export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
13629 else
13630 export_symbols_cmds_CXX='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
13631 fi
13632 ;;
13633 pw32*)
13634 export_symbols_cmds_CXX="$ltdll_cmds"
13635 ;;
13636 cygwin* | mingw*)
13637 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;/^.*[ ]__nm__/s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
13638 ;;
13639 *)
13640 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13641 ;;
13642 esac
13643
13644 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
13645 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
13646 test "$ld_shlibs_CXX" = no && can_build_shared=no
13647
13648 #
13649 # Do we need to explicitly link libc?
13650 #
13651 case "x$archive_cmds_need_lc_CXX" in
13652 x|xyes)
13653 # Assume -lc should be added
13654 archive_cmds_need_lc_CXX=yes
13655
13656 if test "$enable_shared" = yes && test "$GCC" = yes; then
13657 case $archive_cmds_CXX in
13658 *'~'*)
13659 # FIXME: we may have to deal with multi-command sequences.
13660 ;;
13661 '$CC '*)
13662 # Test whether the compiler implicitly links with -lc since on some
13663 # systems, -lgcc has to come before -lc. If gcc already passes -lc
13664 # to ld, don't add -lc before -lgcc.
13665 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
13666 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
13667 $rm conftest*
13668 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13669
13670 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13671 (eval $ac_compile) 2>&5
13672 ac_status=$?
13673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13674 (exit $ac_status); } 2>conftest.err; then
13675 soname=conftest
13676 lib=conftest
13677 libobjs=conftest.$ac_objext
13678 deplibs=
13679 wl=$lt_prog_compiler_wl_CXX
13680 pic_flag=$lt_prog_compiler_pic_CXX
13681 compiler_flags=-v
13682 linker_flags=-v
13683 verstring=
13684 output_objdir=.
13685 libname=conftest
13686 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
13687 allow_undefined_flag_CXX=
13688 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
13689 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
13690 ac_status=$?
13691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13692 (exit $ac_status); }
13693 then
13694 archive_cmds_need_lc_CXX=no
13695 else
13696 archive_cmds_need_lc_CXX=yes
13697 fi
13698 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
13699 else
13700 cat conftest.err 1>&5
13701 fi
13702 $rm conftest*
13703 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
13704 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
13705 ;;
13706 esac
13707 fi
13708 ;;
13709 esac
13710
13711 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
13712 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
13713 library_names_spec=
13714 libname_spec='lib$name'
13715 soname_spec=
13716 shrext_cmds=".so"
13717 postinstall_cmds=
13718 postuninstall_cmds=
13719 finish_cmds=
13720 finish_eval=
13721 shlibpath_var=
13722 shlibpath_overrides_runpath=unknown
13723 version_type=none
13724 dynamic_linker="$host_os ld.so"
13725 sys_lib_dlsearch_path_spec="/lib /usr/lib"
13726
13727 need_lib_prefix=unknown
13728 hardcode_into_libs=no
13729
13730 # when you set need_version to no, make sure it does not cause -set_version
13731 # flags to be left without arguments
13732 need_version=unknown
13733
13734 case $host_os in
13735 aix3*)
13736 version_type=linux
13737 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
13738 shlibpath_var=LIBPATH
13739
13740 # AIX 3 has no versioning support, so we append a major version to the name.
13741 soname_spec='${libname}${release}${shared_ext}$major'
13742 ;;
13743
13744 aix4* | aix5*)
13745 version_type=linux
13746 need_lib_prefix=no
13747 need_version=no
13748 hardcode_into_libs=yes
13749 if test "$host_cpu" = ia64; then
13750 # AIX 5 supports IA64
13751 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
13752 shlibpath_var=LD_LIBRARY_PATH
13753 else
13754 # With GCC up to 2.95.x, collect2 would create an import file
13755 # for dependence libraries. The import file would start with
13756 # the line `#! .'. This would cause the generated library to
13757 # depend on `.', always an invalid library. This was fixed in
13758 # development snapshots of GCC prior to 3.0.
13759 case $host_os in
13760 aix4 | aix4.[01] | aix4.[01].*)
13761 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
13762 echo ' yes '
13763 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
13764 :
13765 else
13766 can_build_shared=no
13767 fi
13768 ;;
13769 esac
13770 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
13771 # soname into executable. Probably we can add versioning support to
13772 # collect2, so additional links can be useful in future.
13773 if test "$aix_use_runtimelinking" = yes; then
13774 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
13775 # instead of lib<name>.a to let people know that these are not
13776 # typical AIX shared libraries.
13777 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13778 else
13779 # We preserve .a as extension for shared libraries through AIX4.2
13780 # and later when we are not doing run time linking.
13781 library_names_spec='${libname}${release}.a $libname.a'
13782 soname_spec='${libname}${release}${shared_ext}$major'
13783 fi
13784 shlibpath_var=LIBPATH
13785 fi
13786 ;;
13787
13788 amigaos*)
13789 library_names_spec='$libname.ixlibrary $libname.a'
13790 # Create ${libname}_ixlibrary.a entries in /sys/libs.
13791 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'
13792 ;;
13793
13794 beos*)
13795 library_names_spec='${libname}${shared_ext}'
13796 dynamic_linker="$host_os ld.so"
13797 shlibpath_var=LIBRARY_PATH
13798 ;;
13799
13800 bsdi[45]*)
13801 version_type=linux
13802 need_version=no
13803 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13804 soname_spec='${libname}${release}${shared_ext}$major'
13805 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
13806 shlibpath_var=LD_LIBRARY_PATH
13807 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
13808 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
13809 # the default ld.so.conf also contains /usr/contrib/lib and
13810 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
13811 # libtool to hard-code these into programs
13812 ;;
13813
13814 cygwin* | mingw* | pw32*)
13815 version_type=windows
13816 shrext_cmds=".dll"
13817 need_version=no
13818 need_lib_prefix=no
13819
13820 case $GCC,$host_os in
13821 yes,cygwin* | yes,mingw* | yes,pw32*)
13822 library_names_spec='$libname.dll.a'
13823 # DLL is installed to $(libdir)/../bin by postinstall_cmds
13824 postinstall_cmds='base_file=`basename \${file}`~
13825 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
13826 dldir=$destdir/`dirname \$dlpath`~
13827 test -d \$dldir || mkdir -p \$dldir~
13828 $install_prog $dir/$dlname \$dldir/$dlname~
13829 chmod a+x \$dldir/$dlname'
13830 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13831 dlpath=$dir/\$dldll~
13832 $rm \$dlpath'
13833 shlibpath_overrides_runpath=yes
13834
13835 case $host_os in
13836 cygwin*)
13837 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
13838 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13839 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
13840 ;;
13841 mingw*)
13842 # MinGW DLLs use traditional 'lib' prefix
13843 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13844 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13845 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
13846 # It is most probably a Windows format PATH printed by
13847 # mingw gcc, but we are running on Cygwin. Gcc prints its search
13848 # path with ; separators, and with drive letters. We can handle the
13849 # drive letters (cygwin fileutils understands them), so leave them,
13850 # especially as we might pass files found there to a mingw objdump,
13851 # which wouldn't understand a cygwinified path. Ahh.
13852 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13853 else
13854 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
13855 fi
13856 ;;
13857 pw32*)
13858 # pw32 DLLs use 'pw' prefix rather than 'lib'
13859 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13860 ;;
13861 esac
13862 ;;
13863
13864 *)
13865 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
13866 ;;
13867 esac
13868 dynamic_linker='Win32 ld.exe'
13869 # FIXME: first we should search . and the directory the executable is in
13870 shlibpath_var=PATH
13871 ;;
13872
13873 darwin* | rhapsody*)
13874 dynamic_linker="$host_os dyld"
13875 version_type=darwin
13876 need_lib_prefix=no
13877 need_version=no
13878 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
13879 soname_spec='${libname}${release}${major}$shared_ext'
13880 shlibpath_overrides_runpath=yes
13881 shlibpath_var=DYLD_LIBRARY_PATH
13882 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
13883
13884 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
13885 ;;
13886
13887 dgux*)
13888 version_type=linux
13889 need_lib_prefix=no
13890 need_version=no
13891 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
13892 soname_spec='${libname}${release}${shared_ext}$major'
13893 shlibpath_var=LD_LIBRARY_PATH
13894 ;;
13895
13896 freebsd1*)
13897 dynamic_linker=no
13898 ;;
13899
13900 freebsd* | dragonfly*)
13901 # DragonFly does not have aout. When/if they implement a new
13902 # versioning mechanism, adjust this.
13903 if test -x /usr/bin/objformat; then
13904 objformat=`/usr/bin/objformat`
13905 else
13906 case $host_os in
13907 freebsd[123]*) objformat=aout ;;
13908 *) objformat=elf ;;
13909 esac
13910 fi
13911 version_type=freebsd-$objformat
13912 case $version_type in
13913 freebsd-elf*)
13914 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13915 need_version=no
13916 need_lib_prefix=no
13917 ;;
13918 freebsd-*)
13919 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
13920 need_version=yes
13921 ;;
13922 esac
13923 shlibpath_var=LD_LIBRARY_PATH
13924 case $host_os in
13925 freebsd2*)
13926 shlibpath_overrides_runpath=yes
13927 ;;
13928 freebsd3.[01]* | freebsdelf3.[01]*)
13929 shlibpath_overrides_runpath=yes
13930 hardcode_into_libs=yes
13931 ;;
13932 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
13933 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
13934 shlibpath_overrides_runpath=no
13935 hardcode_into_libs=yes
13936 ;;
13937 *) # from 4.6 on, and DragonFly
13938 shlibpath_overrides_runpath=yes
13939 hardcode_into_libs=yes
13940 ;;
13941 esac
13942 ;;
13943
13944 gnu*)
13945 version_type=linux
13946 need_lib_prefix=no
13947 need_version=no
13948 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
13949 soname_spec='${libname}${release}${shared_ext}$major'
13950 shlibpath_var=LD_LIBRARY_PATH
13951 hardcode_into_libs=yes
13952 ;;
13953
13954 hpux9* | hpux10* | hpux11*)
13955 # Give a soname corresponding to the major version so that dld.sl refuses to
13956 # link against other versions.
13957 version_type=sunos
13958 need_lib_prefix=no
13959 need_version=no
13960 case $host_cpu in
13961 ia64*)
13962 shrext_cmds='.so'
13963 hardcode_into_libs=yes
13964 dynamic_linker="$host_os dld.so"
13965 shlibpath_var=LD_LIBRARY_PATH
13966 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13967 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13968 soname_spec='${libname}${release}${shared_ext}$major'
13969 if test "X$HPUX_IA64_MODE" = X32; then
13970 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
13971 else
13972 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
13973 fi
13974 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13975 ;;
13976 hppa*64*)
13977 shrext_cmds='.sl'
13978 hardcode_into_libs=yes
13979 dynamic_linker="$host_os dld.sl"
13980 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
13981 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13982 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13983 soname_spec='${libname}${release}${shared_ext}$major'
13984 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
13985 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13986 ;;
13987 *)
13988 shrext_cmds='.sl'
13989 dynamic_linker="$host_os dld.sl"
13990 shlibpath_var=SHLIB_PATH
13991 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
13992 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13993 soname_spec='${libname}${release}${shared_ext}$major'
13994 ;;
13995 esac
13996 # HP-UX runs *really* slowly unless shared libraries are mode 555.
13997 postinstall_cmds='chmod 555 $lib'
13998 ;;
13999
14000 interix[3-9]*)
14001 version_type=linux
14002 need_lib_prefix=no
14003 need_version=no
14004 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14005 soname_spec='${libname}${release}${shared_ext}$major'
14006 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
14007 shlibpath_var=LD_LIBRARY_PATH
14008 shlibpath_overrides_runpath=no
14009 hardcode_into_libs=yes
14010 ;;
14011
14012 irix5* | irix6* | nonstopux*)
14013 case $host_os in
14014 nonstopux*) version_type=nonstopux ;;
14015 *)
14016 if test "$lt_cv_prog_gnu_ld" = yes; then
14017 version_type=linux
14018 else
14019 version_type=irix
14020 fi ;;
14021 esac
14022 need_lib_prefix=no
14023 need_version=no
14024 soname_spec='${libname}${release}${shared_ext}$major'
14025 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14026 case $host_os in
14027 irix5* | nonstopux*)
14028 libsuff= shlibsuff=
14029 ;;
14030 *)
14031 case $LD in # libtool.m4 will add one of these switches to LD
14032 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14033 libsuff= shlibsuff= libmagic=32-bit;;
14034 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14035 libsuff=32 shlibsuff=N32 libmagic=N32;;
14036 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14037 libsuff=64 shlibsuff=64 libmagic=64-bit;;
14038 *) libsuff= shlibsuff= libmagic=never-match;;
14039 esac
14040 ;;
14041 esac
14042 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14043 shlibpath_overrides_runpath=no
14044 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14045 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14046 hardcode_into_libs=yes
14047 ;;
14048
14049 # No shared lib support for Linux oldld, aout, or coff.
14050 linux*oldld* | linux*aout* | linux*coff*)
14051 dynamic_linker=no
14052 ;;
14053
14054 # This must be Linux ELF.
14055 linux* | k*bsd*-gnu)
14056 version_type=linux
14057 need_lib_prefix=no
14058 need_version=no
14059 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14060 soname_spec='${libname}${release}${shared_ext}$major'
14061 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14062 shlibpath_var=LD_LIBRARY_PATH
14063 shlibpath_overrides_runpath=no
14064 # This implies no fast_install, which is unacceptable.
14065 # Some rework will be needed to allow for fast_install
14066 # before this can be enabled.
14067 hardcode_into_libs=yes
14068 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14069 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14070
14071 # Append ld.so.conf contents to the search path
14072 if test -f /etc/ld.so.conf; then
14073 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' ' '`
14074 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
14075 fi
14076
14077 # We used to test for /lib/ld.so.1 and disable shared libraries on
14078 # powerpc, because MkLinux only supported shared libraries with the
14079 # GNU dynamic linker. Since this was broken with cross compilers,
14080 # most powerpc-linux boxes support dynamic linking these days and
14081 # people can always --disable-shared, the test was removed, and we
14082 # assume the GNU/Linux dynamic linker is in use.
14083 dynamic_linker='GNU/Linux ld.so'
14084 ;;
14085
14086 netbsd*)
14087 version_type=sunos
14088 need_lib_prefix=no
14089 need_version=no
14090 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14091 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14092 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14093 dynamic_linker='NetBSD (a.out) ld.so'
14094 else
14095 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14096 soname_spec='${libname}${release}${shared_ext}$major'
14097 dynamic_linker='NetBSD ld.elf_so'
14098 fi
14099 shlibpath_var=LD_LIBRARY_PATH
14100 shlibpath_overrides_runpath=yes
14101 hardcode_into_libs=yes
14102 ;;
14103
14104 newsos6)
14105 version_type=linux
14106 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14107 shlibpath_var=LD_LIBRARY_PATH
14108 shlibpath_overrides_runpath=yes
14109 ;;
14110
14111 nto-qnx*)
14112 version_type=linux
14113 need_lib_prefix=no
14114 need_version=no
14115 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14116 soname_spec='${libname}${release}${shared_ext}$major'
14117 shlibpath_var=LD_LIBRARY_PATH
14118 shlibpath_overrides_runpath=yes
14119 ;;
14120
14121 openbsd*)
14122 version_type=sunos
14123 sys_lib_dlsearch_path_spec="/usr/lib"
14124 need_lib_prefix=no
14125 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
14126 case $host_os in
14127 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
14128 *) need_version=no ;;
14129 esac
14130 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14131 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14132 shlibpath_var=LD_LIBRARY_PATH
14133 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14134 case $host_os in
14135 openbsd2.[89] | openbsd2.[89].*)
14136 shlibpath_overrides_runpath=no
14137 ;;
14138 *)
14139 shlibpath_overrides_runpath=yes
14140 ;;
14141 esac
14142 else
14143 shlibpath_overrides_runpath=yes
14144 fi
14145 ;;
14146
14147 os2*)
14148 libname_spec='$name'
14149 shrext_cmds=".dll"
14150 need_lib_prefix=no
14151 library_names_spec='$libname${shared_ext} $libname.a'
14152 dynamic_linker='OS/2 ld.exe'
14153 shlibpath_var=LIBPATH
14154 ;;
14155
14156 osf3* | osf4* | osf5*)
14157 version_type=osf
14158 need_lib_prefix=no
14159 need_version=no
14160 soname_spec='${libname}${release}${shared_ext}$major'
14161 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14162 shlibpath_var=LD_LIBRARY_PATH
14163 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14164 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
14165 ;;
14166
14167 rdos*)
14168 dynamic_linker=no
14169 ;;
14170
14171 solaris*)
14172 version_type=linux
14173 need_lib_prefix=no
14174 need_version=no
14175 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14176 soname_spec='${libname}${release}${shared_ext}$major'
14177 shlibpath_var=LD_LIBRARY_PATH
14178 shlibpath_overrides_runpath=yes
14179 hardcode_into_libs=yes
14180 # ldd complains unless libraries are executable
14181 postinstall_cmds='chmod +x $lib'
14182 ;;
14183
14184 sunos4*)
14185 version_type=sunos
14186 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14187 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14188 shlibpath_var=LD_LIBRARY_PATH
14189 shlibpath_overrides_runpath=yes
14190 if test "$with_gnu_ld" = yes; then
14191 need_lib_prefix=no
14192 fi
14193 need_version=yes
14194 ;;
14195
14196 sysv4 | sysv4.3*)
14197 version_type=linux
14198 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14199 soname_spec='${libname}${release}${shared_ext}$major'
14200 shlibpath_var=LD_LIBRARY_PATH
14201 case $host_vendor in
14202 sni)
14203 shlibpath_overrides_runpath=no
14204 need_lib_prefix=no
14205 export_dynamic_flag_spec='${wl}-Blargedynsym'
14206 runpath_var=LD_RUN_PATH
14207 ;;
14208 siemens)
14209 need_lib_prefix=no
14210 ;;
14211 motorola)
14212 need_lib_prefix=no
14213 need_version=no
14214 shlibpath_overrides_runpath=no
14215 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14216 ;;
14217 esac
14218 ;;
14219
14220 sysv4*MP*)
14221 if test -d /usr/nec ;then
14222 version_type=linux
14223 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14224 soname_spec='$libname${shared_ext}.$major'
14225 shlibpath_var=LD_LIBRARY_PATH
14226 fi
14227 ;;
14228
14229 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
14230 version_type=freebsd-elf
14231 need_lib_prefix=no
14232 need_version=no
14233 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14234 soname_spec='${libname}${release}${shared_ext}$major'
14235 shlibpath_var=LD_LIBRARY_PATH
14236 hardcode_into_libs=yes
14237 if test "$with_gnu_ld" = yes; then
14238 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
14239 shlibpath_overrides_runpath=no
14240 else
14241 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
14242 shlibpath_overrides_runpath=yes
14243 case $host_os in
14244 sco3.2v5*)
14245 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
14246 ;;
14247 esac
14248 fi
14249 sys_lib_dlsearch_path_spec='/usr/lib'
14250 ;;
14251
14252 uts4*)
14253 version_type=linux
14254 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14255 soname_spec='${libname}${release}${shared_ext}$major'
14256 shlibpath_var=LD_LIBRARY_PATH
14257 ;;
14258
14259 *)
14260 dynamic_linker=no
14261 ;;
14262 esac
14263 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
14264 echo "${ECHO_T}$dynamic_linker" >&6; }
14265 test "$dynamic_linker" = no && can_build_shared=no
14266
14267 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
14268 if test "$GCC" = yes; then
14269 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14270 fi
14271
14272 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
14273 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
14274 hardcode_action_CXX=
14275 if test -n "$hardcode_libdir_flag_spec_CXX" || \
14276 test -n "$runpath_var_CXX" || \
14277 test "X$hardcode_automatic_CXX" = "Xyes" ; then
14278
14279 # We can hardcode non-existant directories.
14280 if test "$hardcode_direct_CXX" != no &&
14281 # If the only mechanism to avoid hardcoding is shlibpath_var, we
14282 # have to relink, otherwise we might link with an installed library
14283 # when we should be linking with a yet-to-be-installed one
14284 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
14285 test "$hardcode_minus_L_CXX" != no; then
14286 # Linking always hardcodes the temporary library directory.
14287 hardcode_action_CXX=relink
14288 else
14289 # We can link without hardcoding, and we can hardcode nonexisting dirs.
14290 hardcode_action_CXX=immediate
14291 fi
14292 else
14293 # We cannot hardcode anything, or else we can only hardcode existing
14294 # directories.
14295 hardcode_action_CXX=unsupported
14296 fi
14297 { echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
14298 echo "${ECHO_T}$hardcode_action_CXX" >&6; }
14299
14300 if test "$hardcode_action_CXX" = relink; then
14301 # Fast installation is not supported
14302 enable_fast_install=no
14303 elif test "$shlibpath_overrides_runpath" = yes ||
14304 test "$enable_shared" = no; then
14305 # Fast installation is not necessary
14306 enable_fast_install=needless
14307 fi
14308
14309
14310 # The else clause should only fire when bootstrapping the
14311 # libtool distribution, otherwise you forgot to ship ltmain.sh
14312 # with your package, and you will get complaints that there are
14313 # no rules to generate ltmain.sh.
14314 if test -f "$ltmain"; then
14315 # See if we are running on zsh, and set the options which allow our commands through
14316 # without removal of \ escapes.
14317 if test -n "${ZSH_VERSION+set}" ; then
14318 setopt NO_GLOB_SUBST
14319 fi
14320 # Now quote all the things that may contain metacharacters while being
14321 # careful not to overquote the AC_SUBSTed values. We take copies of the
14322 # variables and quote the copies for generation of the libtool script.
14323 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
14324 SED SHELL STRIP \
14325 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
14326 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
14327 deplibs_check_method reload_flag reload_cmds need_locks \
14328 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
14329 lt_cv_sys_global_symbol_to_c_name_address \
14330 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
14331 old_postinstall_cmds old_postuninstall_cmds \
14332 compiler_CXX \
14333 CC_CXX \
14334 LD_CXX \
14335 lt_prog_compiler_wl_CXX \
14336 lt_prog_compiler_pic_CXX \
14337 lt_prog_compiler_static_CXX \
14338 lt_prog_compiler_no_builtin_flag_CXX \
14339 export_dynamic_flag_spec_CXX \
14340 thread_safe_flag_spec_CXX \
14341 whole_archive_flag_spec_CXX \
14342 enable_shared_with_static_runtimes_CXX \
14343 old_archive_cmds_CXX \
14344 old_archive_from_new_cmds_CXX \
14345 predep_objects_CXX \
14346 postdep_objects_CXX \
14347 predeps_CXX \
14348 postdeps_CXX \
14349 compiler_lib_search_path_CXX \
14350 archive_cmds_CXX \
14351 archive_expsym_cmds_CXX \
14352 postinstall_cmds_CXX \
14353 postuninstall_cmds_CXX \
14354 old_archive_from_expsyms_cmds_CXX \
14355 allow_undefined_flag_CXX \
14356 no_undefined_flag_CXX \
14357 export_symbols_cmds_CXX \
14358 hardcode_libdir_flag_spec_CXX \
14359 hardcode_libdir_flag_spec_ld_CXX \
14360 hardcode_libdir_separator_CXX \
14361 hardcode_automatic_CXX \
14362 module_cmds_CXX \
14363 module_expsym_cmds_CXX \
14364 lt_cv_prog_compiler_c_o_CXX \
14365 fix_srcfile_path_CXX \
14366 exclude_expsyms_CXX \
14367 include_expsyms_CXX; do
14368
14369 case $var in
14370 old_archive_cmds_CXX | \
14371 old_archive_from_new_cmds_CXX | \
14372 archive_cmds_CXX | \
14373 archive_expsym_cmds_CXX | \
14374 module_cmds_CXX | \
14375 module_expsym_cmds_CXX | \
14376 old_archive_from_expsyms_cmds_CXX | \
14377 export_symbols_cmds_CXX | \
14378 extract_expsyms_cmds | reload_cmds | finish_cmds | \
14379 postinstall_cmds | postuninstall_cmds | \
14380 old_postinstall_cmds | old_postuninstall_cmds | \
14381 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
14382 # Double-quote double-evaled strings.
14383 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
14384 ;;
14385 *)
14386 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
14387 ;;
14388 esac
14389 done
14390
14391 case $lt_echo in
14392 *'\$0 --fallback-echo"')
14393 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
14394 ;;
14395 esac
14396
14397 cfgfile="$ofile"
14398
14399 cat <<__EOF__ >> "$cfgfile"
14400 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
14401
14402 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14403
14404 # Shell to use when invoking shell scripts.
14405 SHELL=$lt_SHELL
14406
14407 # Whether or not to build shared libraries.
14408 build_libtool_libs=$enable_shared
14409
14410 # Whether or not to build static libraries.
14411 build_old_libs=$enable_static
14412
14413 # Whether or not to add -lc for building shared libraries.
14414 build_libtool_need_lc=$archive_cmds_need_lc_CXX
14415
14416 # Whether or not to disallow shared libs when runtime libs are static
14417 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
14418
14419 # Whether or not to optimize for fast installation.
14420 fast_install=$enable_fast_install
14421
14422 # The host system.
14423 host_alias=$host_alias
14424 host=$host
14425 host_os=$host_os
14426
14427 # The build system.
14428 build_alias=$build_alias
14429 build=$build
14430 build_os=$build_os
14431
14432 # An echo program that does not interpret backslashes.
14433 echo=$lt_echo
14434
14435 # The archiver.
14436 AR=$lt_AR
14437 AR_FLAGS=$lt_AR_FLAGS
14438
14439 # A C compiler.
14440 LTCC=$lt_LTCC
14441
14442 # LTCC compiler flags.
14443 LTCFLAGS=$lt_LTCFLAGS
14444
14445 # A language-specific compiler.
14446 CC=$lt_compiler_CXX
14447
14448 # Is the compiler the GNU C compiler?
14449 with_gcc=$GCC_CXX
14450
14451 # An ERE matcher.
14452 EGREP=$lt_EGREP
14453
14454 # The linker used to build libraries.
14455 LD=$lt_LD_CXX
14456
14457 # Whether we need hard or soft links.
14458 LN_S=$lt_LN_S
14459
14460 # A BSD-compatible nm program.
14461 NM=$lt_NM
14462
14463 # A symbol stripping program
14464 STRIP=$lt_STRIP
14465
14466 # Used to examine libraries when file_magic_cmd begins "file"
14467 MAGIC_CMD=$MAGIC_CMD
14468
14469 # Used on cygwin: DLL creation program.
14470 DLLTOOL="$DLLTOOL"
14471
14472 # Used on cygwin: object dumper.
14473 OBJDUMP="$OBJDUMP"
14474
14475 # Used on cygwin: assembler.
14476 AS="$AS"
14477
14478 # The name of the directory that contains temporary libtool files.
14479 objdir=$objdir
14480
14481 # How to create reloadable object files.
14482 reload_flag=$lt_reload_flag
14483 reload_cmds=$lt_reload_cmds
14484
14485 # How to pass a linker flag through the compiler.
14486 wl=$lt_lt_prog_compiler_wl_CXX
14487
14488 # Object file suffix (normally "o").
14489 objext="$ac_objext"
14490
14491 # Old archive suffix (normally "a").
14492 libext="$libext"
14493
14494 # Shared library suffix (normally ".so").
14495 shrext_cmds='$shrext_cmds'
14496
14497 # Executable file suffix (normally "").
14498 exeext="$exeext"
14499
14500 # Additional compiler flags for building library objects.
14501 pic_flag=$lt_lt_prog_compiler_pic_CXX
14502 pic_mode=$pic_mode
14503
14504 # What is the maximum length of a command?
14505 max_cmd_len=$lt_cv_sys_max_cmd_len
14506
14507 # Does compiler simultaneously support -c and -o options?
14508 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
14509
14510 # Must we lock files when doing compilation?
14511 need_locks=$lt_need_locks
14512
14513 # Do we need the lib prefix for modules?
14514 need_lib_prefix=$need_lib_prefix
14515
14516 # Do we need a version for libraries?
14517 need_version=$need_version
14518
14519 # Whether dlopen is supported.
14520 dlopen_support=$enable_dlopen
14521
14522 # Whether dlopen of programs is supported.
14523 dlopen_self=$enable_dlopen_self
14524
14525 # Whether dlopen of statically linked programs is supported.
14526 dlopen_self_static=$enable_dlopen_self_static
14527
14528 # Compiler flag to prevent dynamic linking.
14529 link_static_flag=$lt_lt_prog_compiler_static_CXX
14530
14531 # Compiler flag to turn off builtin functions.
14532 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
14533
14534 # Compiler flag to allow reflexive dlopens.
14535 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
14536
14537 # Compiler flag to generate shared objects directly from archives.
14538 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
14539
14540 # Compiler flag to generate thread-safe objects.
14541 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
14542
14543 # Library versioning type.
14544 version_type=$version_type
14545
14546 # Format of library name prefix.
14547 libname_spec=$lt_libname_spec
14548
14549 # List of archive names. First name is the real one, the rest are links.
14550 # The last name is the one that the linker finds with -lNAME.
14551 library_names_spec=$lt_library_names_spec
14552
14553 # The coded name of the library, if different from the real name.
14554 soname_spec=$lt_soname_spec
14555
14556 # Commands used to build and install an old-style archive.
14557 RANLIB=$lt_RANLIB
14558 old_archive_cmds=$lt_old_archive_cmds_CXX
14559 old_postinstall_cmds=$lt_old_postinstall_cmds
14560 old_postuninstall_cmds=$lt_old_postuninstall_cmds
14561
14562 # Create an old-style archive from a shared archive.
14563 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
14564
14565 # Create a temporary old-style archive to link instead of a shared archive.
14566 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
14567
14568 # Commands used to build and install a shared archive.
14569 archive_cmds=$lt_archive_cmds_CXX
14570 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
14571 postinstall_cmds=$lt_postinstall_cmds
14572 postuninstall_cmds=$lt_postuninstall_cmds
14573
14574 # Commands used to build a loadable module (assumed same as above if empty)
14575 module_cmds=$lt_module_cmds_CXX
14576 module_expsym_cmds=$lt_module_expsym_cmds_CXX
14577
14578 # Commands to strip libraries.
14579 old_striplib=$lt_old_striplib
14580 striplib=$lt_striplib
14581
14582 # Dependencies to place before the objects being linked to create a
14583 # shared library.
14584 predep_objects=$lt_predep_objects_CXX
14585
14586 # Dependencies to place after the objects being linked to create a
14587 # shared library.
14588 postdep_objects=$lt_postdep_objects_CXX
14589
14590 # Dependencies to place before the objects being linked to create a
14591 # shared library.
14592 predeps=$lt_predeps_CXX
14593
14594 # Dependencies to place after the objects being linked to create a
14595 # shared library.
14596 postdeps=$lt_postdeps_CXX
14597
14598 # The library search path used internally by the compiler when linking
14599 # a shared library.
14600 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
14601
14602 # Method to check whether dependent libraries are shared objects.
14603 deplibs_check_method=$lt_deplibs_check_method
14604
14605 # Command to use when deplibs_check_method == file_magic.
14606 file_magic_cmd=$lt_file_magic_cmd
14607
14608 # Flag that allows shared libraries with undefined symbols to be built.
14609 allow_undefined_flag=$lt_allow_undefined_flag_CXX
14610
14611 # Flag that forces no undefined symbols.
14612 no_undefined_flag=$lt_no_undefined_flag_CXX
14613
14614 # Commands used to finish a libtool library installation in a directory.
14615 finish_cmds=$lt_finish_cmds
14616
14617 # Same as above, but a single script fragment to be evaled but not shown.
14618 finish_eval=$lt_finish_eval
14619
14620 # Take the output of nm and produce a listing of raw symbols and C names.
14621 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
14622
14623 # Transform the output of nm in a proper C declaration
14624 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
14625
14626 # Transform the output of nm in a C name address pair
14627 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
14628
14629 # This is the shared library runtime path variable.
14630 runpath_var=$runpath_var
14631
14632 # This is the shared library path variable.
14633 shlibpath_var=$shlibpath_var
14634
14635 # Is shlibpath searched before the hard-coded library search path?
14636 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14637
14638 # How to hardcode a shared library path into an executable.
14639 hardcode_action=$hardcode_action_CXX
14640
14641 # Whether we should hardcode library paths into libraries.
14642 hardcode_into_libs=$hardcode_into_libs
14643
14644 # Flag to hardcode \$libdir into a binary during linking.
14645 # This must work even if \$libdir does not exist.
14646 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
14647
14648 # If ld is used when linking, flag to hardcode \$libdir into
14649 # a binary during linking. This must work even if \$libdir does
14650 # not exist.
14651 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
14652
14653 # Whether we need a single -rpath flag with a separated argument.
14654 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
14655
14656 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
14657 # resulting binary.
14658 hardcode_direct=$hardcode_direct_CXX
14659
14660 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
14661 # resulting binary.
14662 hardcode_minus_L=$hardcode_minus_L_CXX
14663
14664 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
14665 # the resulting binary.
14666 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
14667
14668 # Set to yes if building a shared library automatically hardcodes DIR into the library
14669 # and all subsequent libraries and executables linked against it.
14670 hardcode_automatic=$hardcode_automatic_CXX
14671
14672 # Variables whose values should be saved in libtool wrapper scripts and
14673 # restored at relink time.
14674 variables_saved_for_relink="$variables_saved_for_relink"
14675
14676 # Whether libtool must link a program against all its dependency libraries.
14677 link_all_deplibs=$link_all_deplibs_CXX
14678
14679 # Compile-time system search path for libraries
14680 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
14681
14682 # Run-time system search path for libraries
14683 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
14684
14685 # Fix the shell variable \$srcfile for the compiler.
14686 fix_srcfile_path=$lt_fix_srcfile_path
14687
14688 # Set to yes if exported symbols are required.
14689 always_export_symbols=$always_export_symbols_CXX
14690
14691 # The commands to list exported symbols.
14692 export_symbols_cmds=$lt_export_symbols_cmds_CXX
14693
14694 # The commands to extract the exported symbol list from a shared archive.
14695 extract_expsyms_cmds=$lt_extract_expsyms_cmds
14696
14697 # Symbols that should not be listed in the preloaded symbols.
14698 exclude_expsyms=$lt_exclude_expsyms_CXX
14699
14700 # Symbols that must always be exported.
14701 include_expsyms=$lt_include_expsyms_CXX
14702
14703 # ### END LIBTOOL TAG CONFIG: $tagname
14704
14705 __EOF__
14706
14707
14708 else
14709 # If there is no Makefile yet, we rely on a make rule to execute
14710 # `config.status --recheck' to rerun these tests and create the
14711 # libtool script then.
14712 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
14713 if test -f "$ltmain_in"; then
14714 test -f Makefile && make "$ltmain"
14715 fi
14716 fi
14717
14718
14719 ac_ext=c
14720 ac_cpp='$CPP $CPPFLAGS'
14721 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14722 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14723 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14724
14725 CC=$lt_save_CC
14726 LDCXX=$LD
14727 LD=$lt_save_LD
14728 GCC=$lt_save_GCC
14729 with_gnu_ldcxx=$with_gnu_ld
14730 with_gnu_ld=$lt_save_with_gnu_ld
14731 lt_cv_path_LDCXX=$lt_cv_path_LD
14732 lt_cv_path_LD=$lt_save_path_LD
14733 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
14734 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
14735
14736 else
14737 tagname=""
14738 fi
14739 ;;
14740
14741 F77)
14742 if test -n "$F77" && test "X$F77" != "Xno"; then
14743
14744 ac_ext=f
14745 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
14746 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14747 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
14748
14749
14750 archive_cmds_need_lc_F77=no
14751 allow_undefined_flag_F77=
14752 always_export_symbols_F77=no
14753 archive_expsym_cmds_F77=
14754 export_dynamic_flag_spec_F77=
14755 hardcode_direct_F77=no
14756 hardcode_libdir_flag_spec_F77=
14757 hardcode_libdir_flag_spec_ld_F77=
14758 hardcode_libdir_separator_F77=
14759 hardcode_minus_L_F77=no
14760 hardcode_automatic_F77=no
14761 module_cmds_F77=
14762 module_expsym_cmds_F77=
14763 link_all_deplibs_F77=unknown
14764 old_archive_cmds_F77=$old_archive_cmds
14765 no_undefined_flag_F77=
14766 whole_archive_flag_spec_F77=
14767 enable_shared_with_static_runtimes_F77=no
14768
14769 # Source file extension for f77 test sources.
14770 ac_ext=f
14771
14772 # Object file extension for compiled f77 test sources.
14773 objext=o
14774 objext_F77=$objext
14775
14776 # Code to be used in simple compile tests
14777 lt_simple_compile_test_code="\
14778 subroutine t
14779 return
14780 end
14781 "
14782
14783 # Code to be used in simple link tests
14784 lt_simple_link_test_code="\
14785 program t
14786 end
14787 "
14788
14789 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
14790
14791 # If no C compiler was specified, use CC.
14792 LTCC=${LTCC-"$CC"}
14793
14794 # If no C compiler flags were specified, use CFLAGS.
14795 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14796
14797 # Allow CC to be a program name with arguments.
14798 compiler=$CC
14799
14800
14801 # save warnings/boilerplate of simple test code
14802 ac_outfile=conftest.$ac_objext
14803 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
14804 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14805 _lt_compiler_boilerplate=`cat conftest.err`
14806 $rm conftest*
14807
14808 ac_outfile=conftest.$ac_objext
14809 echo "$lt_simple_link_test_code" >conftest.$ac_ext
14810 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14811 _lt_linker_boilerplate=`cat conftest.err`
14812 $rm conftest*
14813
14814
14815 # Allow CC to be a program name with arguments.
14816 lt_save_CC="$CC"
14817 CC=${F77-"f77"}
14818 compiler=$CC
14819 compiler_F77=$CC
14820 for cc_temp in $compiler""; do
14821 case $cc_temp in
14822 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14823 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14824 \-*) ;;
14825 *) break;;
14826 esac
14827 done
14828 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14829
14830
14831 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
14832 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
14833 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
14834 echo "${ECHO_T}$can_build_shared" >&6; }
14835
14836 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
14837 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
14838 test "$can_build_shared" = "no" && enable_shared=no
14839
14840 # On AIX, shared libraries and static libraries use the same namespace, and
14841 # are all built from PIC.
14842 case $host_os in
14843 aix3*)
14844 test "$enable_shared" = yes && enable_static=no
14845 if test -n "$RANLIB"; then
14846 archive_cmds="$archive_cmds~\$RANLIB \$lib"
14847 postinstall_cmds='$RANLIB $lib'
14848 fi
14849 ;;
14850 aix4* | aix5*)
14851 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
14852 test "$enable_shared" = yes && enable_static=no
14853 fi
14854 ;;
14855 esac
14856 { echo "$as_me:$LINENO: result: $enable_shared" >&5
14857 echo "${ECHO_T}$enable_shared" >&6; }
14858
14859 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
14860 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
14861 # Make sure either enable_shared or enable_static is yes.
14862 test "$enable_shared" = yes || enable_static=yes
14863 { echo "$as_me:$LINENO: result: $enable_static" >&5
14864 echo "${ECHO_T}$enable_static" >&6; }
14865
14866 GCC_F77="$G77"
14867 LD_F77="$LD"
14868
14869 lt_prog_compiler_wl_F77=
14870 lt_prog_compiler_pic_F77=
14871 lt_prog_compiler_static_F77=
14872
14873 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
14874 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
14875
14876 if test "$GCC" = yes; then
14877 lt_prog_compiler_wl_F77='-Wl,'
14878 lt_prog_compiler_static_F77='-static'
14879
14880 case $host_os in
14881 aix*)
14882 # All AIX code is PIC.
14883 if test "$host_cpu" = ia64; then
14884 # AIX 5 now supports IA64 processor
14885 lt_prog_compiler_static_F77='-Bstatic'
14886 fi
14887 ;;
14888
14889 amigaos*)
14890 # FIXME: we need at least 68020 code to build shared libraries, but
14891 # adding the `-m68020' flag to GCC prevents building anything better,
14892 # like `-m68040'.
14893 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
14894 ;;
14895
14896 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14897 # PIC is the default for these OSes.
14898 ;;
14899
14900 mingw* | cygwin* | pw32* | os2*)
14901 # This hack is so that the source file can tell whether it is being
14902 # built for inclusion in a dll (and should export symbols for example).
14903 # Although the cygwin gcc ignores -fPIC, still need this for old-style
14904 # (--disable-auto-import) libraries
14905 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
14906 ;;
14907
14908 darwin* | rhapsody*)
14909 # PIC is the default on this platform
14910 # Common symbols not allowed in MH_DYLIB files
14911 lt_prog_compiler_pic_F77='-fno-common'
14912 ;;
14913
14914 interix[3-9]*)
14915 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14916 # Instead, we relocate shared libraries at runtime.
14917 ;;
14918
14919 msdosdjgpp*)
14920 # Just because we use GCC doesn't mean we suddenly get shared libraries
14921 # on systems that don't support them.
14922 lt_prog_compiler_can_build_shared_F77=no
14923 enable_shared=no
14924 ;;
14925
14926 sysv4*MP*)
14927 if test -d /usr/nec; then
14928 lt_prog_compiler_pic_F77=-Kconform_pic
14929 fi
14930 ;;
14931
14932 hpux*)
14933 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14934 # not for PA HP-UX.
14935 case $host_cpu in
14936 hppa*64*|ia64*)
14937 # +Z the default
14938 ;;
14939 *)
14940 lt_prog_compiler_pic_F77='-fPIC'
14941 ;;
14942 esac
14943 ;;
14944
14945 *)
14946 lt_prog_compiler_pic_F77='-fPIC'
14947 ;;
14948 esac
14949 else
14950 # PORTME Check for flag to pass linker flags through the system compiler.
14951 case $host_os in
14952 aix*)
14953 lt_prog_compiler_wl_F77='-Wl,'
14954 if test "$host_cpu" = ia64; then
14955 # AIX 5 now supports IA64 processor
14956 lt_prog_compiler_static_F77='-Bstatic'
14957 else
14958 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
14959 fi
14960 ;;
14961 darwin*)
14962 # PIC is the default on this platform
14963 # Common symbols not allowed in MH_DYLIB files
14964 case $cc_basename in
14965 xlc*)
14966 lt_prog_compiler_pic_F77='-qnocommon'
14967 lt_prog_compiler_wl_F77='-Wl,'
14968 ;;
14969 esac
14970 ;;
14971
14972 mingw* | cygwin* | pw32* | os2*)
14973 # This hack is so that the source file can tell whether it is being
14974 # built for inclusion in a dll (and should export symbols for example).
14975 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
14976 ;;
14977
14978 hpux9* | hpux10* | hpux11*)
14979 lt_prog_compiler_wl_F77='-Wl,'
14980 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14981 # not for PA HP-UX.
14982 case $host_cpu in
14983 hppa*64*|ia64*)
14984 # +Z the default
14985 ;;
14986 *)
14987 lt_prog_compiler_pic_F77='+Z'
14988 ;;
14989 esac
14990 # Is there a better lt_prog_compiler_static that works with the bundled CC?
14991 lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
14992 ;;
14993
14994 irix5* | irix6* | nonstopux*)
14995 lt_prog_compiler_wl_F77='-Wl,'
14996 # PIC (with -KPIC) is the default.
14997 lt_prog_compiler_static_F77='-non_shared'
14998 ;;
14999
15000 newsos6)
15001 lt_prog_compiler_pic_F77='-KPIC'
15002 lt_prog_compiler_static_F77='-Bstatic'
15003 ;;
15004
15005 linux* | k*bsd*-gnu)
15006 case $cc_basename in
15007 icc* | ecc*)
15008 lt_prog_compiler_wl_F77='-Wl,'
15009 lt_prog_compiler_pic_F77='-KPIC'
15010 lt_prog_compiler_static_F77='-static'
15011 ;;
15012 pgcc* | pgf77* | pgf90* | pgf95*)
15013 # Portland Group compilers (*not* the Pentium gcc compiler,
15014 # which looks to be a dead project)
15015 lt_prog_compiler_wl_F77='-Wl,'
15016 lt_prog_compiler_pic_F77='-fpic'
15017 lt_prog_compiler_static_F77='-Bstatic'
15018 ;;
15019 ccc*)
15020 lt_prog_compiler_wl_F77='-Wl,'
15021 # All Alpha code is PIC.
15022 lt_prog_compiler_static_F77='-non_shared'
15023 ;;
15024 *)
15025 case `$CC -V 2>&1 | sed 5q` in
15026 *Sun\ C*)
15027 # Sun C 5.9
15028 lt_prog_compiler_pic_F77='-KPIC'
15029 lt_prog_compiler_static_F77='-Bstatic'
15030 lt_prog_compiler_wl_F77='-Wl,'
15031 ;;
15032 *Sun\ F*)
15033 # Sun Fortran 8.3 passes all unrecognized flags to the linker
15034 lt_prog_compiler_pic_F77='-KPIC'
15035 lt_prog_compiler_static_F77='-Bstatic'
15036 lt_prog_compiler_wl_F77=''
15037 ;;
15038 esac
15039 ;;
15040 esac
15041 ;;
15042
15043 osf3* | osf4* | osf5*)
15044 lt_prog_compiler_wl_F77='-Wl,'
15045 # All OSF/1 code is PIC.
15046 lt_prog_compiler_static_F77='-non_shared'
15047 ;;
15048
15049 rdos*)
15050 lt_prog_compiler_static_F77='-non_shared'
15051 ;;
15052
15053 solaris*)
15054 lt_prog_compiler_pic_F77='-KPIC'
15055 lt_prog_compiler_static_F77='-Bstatic'
15056 case $cc_basename in
15057 f77* | f90* | f95*)
15058 lt_prog_compiler_wl_F77='-Qoption ld ';;
15059 *)
15060 lt_prog_compiler_wl_F77='-Wl,';;
15061 esac
15062 ;;
15063
15064 sunos4*)
15065 lt_prog_compiler_wl_F77='-Qoption ld '
15066 lt_prog_compiler_pic_F77='-PIC'
15067 lt_prog_compiler_static_F77='-Bstatic'
15068 ;;
15069
15070 sysv4 | sysv4.2uw2* | sysv4.3*)
15071 lt_prog_compiler_wl_F77='-Wl,'
15072 lt_prog_compiler_pic_F77='-KPIC'
15073 lt_prog_compiler_static_F77='-Bstatic'
15074 ;;
15075
15076 sysv4*MP*)
15077 if test -d /usr/nec ;then
15078 lt_prog_compiler_pic_F77='-Kconform_pic'
15079 lt_prog_compiler_static_F77='-Bstatic'
15080 fi
15081 ;;
15082
15083 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
15084 lt_prog_compiler_wl_F77='-Wl,'
15085 lt_prog_compiler_pic_F77='-KPIC'
15086 lt_prog_compiler_static_F77='-Bstatic'
15087 ;;
15088
15089 unicos*)
15090 lt_prog_compiler_wl_F77='-Wl,'
15091 lt_prog_compiler_can_build_shared_F77=no
15092 ;;
15093
15094 uts4*)
15095 lt_prog_compiler_pic_F77='-pic'
15096 lt_prog_compiler_static_F77='-Bstatic'
15097 ;;
15098
15099 *)
15100 lt_prog_compiler_can_build_shared_F77=no
15101 ;;
15102 esac
15103 fi
15104
15105 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
15106 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; }
15107
15108 #
15109 # Check to make sure the PIC flag actually works.
15110 #
15111 if test -n "$lt_prog_compiler_pic_F77"; then
15112
15113 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
15114 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; }
15115 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
15116 echo $ECHO_N "(cached) $ECHO_C" >&6
15117 else
15118 lt_prog_compiler_pic_works_F77=no
15119 ac_outfile=conftest.$ac_objext
15120 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15121 lt_compiler_flag="$lt_prog_compiler_pic_F77"
15122 # Insert the option either (1) after the last *FLAGS variable, or
15123 # (2) before a word containing "conftest.", or (3) at the end.
15124 # Note that $ac_compile itself does not contain backslashes and begins
15125 # with a dollar sign (not a hyphen), so the echo should work correctly.
15126 # The option is referenced via a variable to avoid confusing sed.
15127 lt_compile=`echo "$ac_compile" | $SED \
15128 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15129 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15130 -e 's:$: $lt_compiler_flag:'`
15131 (eval echo "\"\$as_me:15132: $lt_compile\"" >&5)
15132 (eval "$lt_compile" 2>conftest.err)
15133 ac_status=$?
15134 cat conftest.err >&5
15135 echo "$as_me:15136: \$? = $ac_status" >&5
15136 if (exit $ac_status) && test -s "$ac_outfile"; then
15137 # The compiler can only warn and ignore the option if not recognized
15138 # So say no if there are warnings other than the usual output.
15139 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
15140 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15141 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15142 lt_prog_compiler_pic_works_F77=yes
15143 fi
15144 fi
15145 $rm conftest*
15146
15147 fi
15148 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
15149 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6; }
15150
15151 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
15152 case $lt_prog_compiler_pic_F77 in
15153 "" | " "*) ;;
15154 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
15155 esac
15156 else
15157 lt_prog_compiler_pic_F77=
15158 lt_prog_compiler_can_build_shared_F77=no
15159 fi
15160
15161 fi
15162 case $host_os in
15163 # For platforms which do not support PIC, -DPIC is meaningless:
15164 *djgpp*)
15165 lt_prog_compiler_pic_F77=
15166 ;;
15167 *)
15168 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
15169 ;;
15170 esac
15171
15172 #
15173 # Check to make sure the static flag actually works.
15174 #
15175 wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
15176 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
15177 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
15178 if test "${lt_prog_compiler_static_works_F77+set}" = set; then
15179 echo $ECHO_N "(cached) $ECHO_C" >&6
15180 else
15181 lt_prog_compiler_static_works_F77=no
15182 save_LDFLAGS="$LDFLAGS"
15183 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
15184 echo "$lt_simple_link_test_code" > conftest.$ac_ext
15185 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15186 # The linker can only warn and ignore the option if not recognized
15187 # So say no if there are warnings
15188 if test -s conftest.err; then
15189 # Append any errors to the config.log.
15190 cat conftest.err 1>&5
15191 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
15192 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15193 if diff conftest.exp conftest.er2 >/dev/null; then
15194 lt_prog_compiler_static_works_F77=yes
15195 fi
15196 else
15197 lt_prog_compiler_static_works_F77=yes
15198 fi
15199 fi
15200 $rm conftest*
15201 LDFLAGS="$save_LDFLAGS"
15202
15203 fi
15204 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5
15205 echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6; }
15206
15207 if test x"$lt_prog_compiler_static_works_F77" = xyes; then
15208 :
15209 else
15210 lt_prog_compiler_static_F77=
15211 fi
15212
15213
15214 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
15215 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
15216 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
15217 echo $ECHO_N "(cached) $ECHO_C" >&6
15218 else
15219 lt_cv_prog_compiler_c_o_F77=no
15220 $rm -r conftest 2>/dev/null
15221 mkdir conftest
15222 cd conftest
15223 mkdir out
15224 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15225
15226 lt_compiler_flag="-o out/conftest2.$ac_objext"
15227 # Insert the option either (1) after the last *FLAGS variable, or
15228 # (2) before a word containing "conftest.", or (3) at the end.
15229 # Note that $ac_compile itself does not contain backslashes and begins
15230 # with a dollar sign (not a hyphen), so the echo should work correctly.
15231 lt_compile=`echo "$ac_compile" | $SED \
15232 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15233 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15234 -e 's:$: $lt_compiler_flag:'`
15235 (eval echo "\"\$as_me:15236: $lt_compile\"" >&5)
15236 (eval "$lt_compile" 2>out/conftest.err)
15237 ac_status=$?
15238 cat out/conftest.err >&5
15239 echo "$as_me:15240: \$? = $ac_status" >&5
15240 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15241 then
15242 # The compiler can only warn and ignore the option if not recognized
15243 # So say no if there are warnings
15244 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
15245 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15246 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15247 lt_cv_prog_compiler_c_o_F77=yes
15248 fi
15249 fi
15250 chmod u+w . 2>&5
15251 $rm conftest*
15252 # SGI C++ compiler will create directory out/ii_files/ for
15253 # template instantiation
15254 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
15255 $rm out/* && rmdir out
15256 cd ..
15257 rmdir conftest
15258 $rm conftest*
15259
15260 fi
15261 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
15262 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; }
15263
15264
15265 hard_links="nottested"
15266 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
15267 # do not overwrite the value of need_locks provided by the user
15268 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
15269 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
15270 hard_links=yes
15271 $rm conftest*
15272 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15273 touch conftest.a
15274 ln conftest.a conftest.b 2>&5 || hard_links=no
15275 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15276 { echo "$as_me:$LINENO: result: $hard_links" >&5
15277 echo "${ECHO_T}$hard_links" >&6; }
15278 if test "$hard_links" = no; then
15279 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15280 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15281 need_locks=warn
15282 fi
15283 else
15284 need_locks=no
15285 fi
15286
15287 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15288 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
15289
15290 runpath_var=
15291 allow_undefined_flag_F77=
15292 enable_shared_with_static_runtimes_F77=no
15293 archive_cmds_F77=
15294 archive_expsym_cmds_F77=
15295 old_archive_From_new_cmds_F77=
15296 old_archive_from_expsyms_cmds_F77=
15297 export_dynamic_flag_spec_F77=
15298 whole_archive_flag_spec_F77=
15299 thread_safe_flag_spec_F77=
15300 hardcode_libdir_flag_spec_F77=
15301 hardcode_libdir_flag_spec_ld_F77=
15302 hardcode_libdir_separator_F77=
15303 hardcode_direct_F77=no
15304 hardcode_minus_L_F77=no
15305 hardcode_shlibpath_var_F77=unsupported
15306 link_all_deplibs_F77=unknown
15307 hardcode_automatic_F77=no
15308 module_cmds_F77=
15309 module_expsym_cmds_F77=
15310 always_export_symbols_F77=no
15311 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15312 # include_expsyms should be a list of space-separated symbols to be *always*
15313 # included in the symbol list
15314 include_expsyms_F77=
15315 # exclude_expsyms can be an extended regexp of symbols to exclude
15316 # it will be wrapped by ` (' and `)$', so one must not match beginning or
15317 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
15318 # as well as any symbol that contains `d'.
15319 exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
15320 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
15321 # platforms (ab)use it in PIC code, but their linkers get confused if
15322 # the symbol is explicitly referenced. Since portable code cannot
15323 # rely on this symbol name, it's probably fine to never include it in
15324 # preloaded symbol tables.
15325 extract_expsyms_cmds=
15326 # Just being paranoid about ensuring that cc_basename is set.
15327 for cc_temp in $compiler""; do
15328 case $cc_temp in
15329 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
15330 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
15331 \-*) ;;
15332 *) break;;
15333 esac
15334 done
15335 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
15336
15337 case $host_os in
15338 cygwin* | mingw* | pw32*)
15339 # FIXME: the MSVC++ port hasn't been tested in a loooong time
15340 # When not using gcc, we currently assume that we are using
15341 # Microsoft Visual C++.
15342 if test "$GCC" != yes; then
15343 with_gnu_ld=no
15344 fi
15345 ;;
15346 interix*)
15347 # we just hope/assume this is gcc and not c89 (= MSVC++)
15348 with_gnu_ld=yes
15349 ;;
15350 openbsd*)
15351 with_gnu_ld=no
15352 ;;
15353 esac
15354
15355 ld_shlibs_F77=yes
15356 if test "$with_gnu_ld" = yes; then
15357 # If archive_cmds runs LD, not CC, wlarc should be empty
15358 wlarc='${wl}'
15359
15360 # Set some defaults for GNU ld with shared library support. These
15361 # are reset later if shared libraries are not supported. Putting them
15362 # here allows them to be overridden if necessary.
15363 runpath_var=LD_RUN_PATH
15364 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
15365 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
15366 # ancient GNU ld didn't support --whole-archive et. al.
15367 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
15368 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15369 else
15370 whole_archive_flag_spec_F77=
15371 fi
15372 supports_anon_versioning=no
15373 case `$LD -v 2>/dev/null` in
15374 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
15375 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
15376 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
15377 *\ 2.11.*) ;; # other 2.11 versions
15378 *) supports_anon_versioning=yes ;;
15379 esac
15380
15381 # See if GNU ld supports shared libraries.
15382 case $host_os in
15383 aix3* | aix4* | aix5*)
15384 # On AIX/PPC, the GNU linker is very broken
15385 if test "$host_cpu" != ia64; then
15386 ld_shlibs_F77=no
15387 cat <<EOF 1>&2
15388
15389 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
15390 *** to be unable to reliably create shared libraries on AIX.
15391 *** Therefore, libtool is disabling shared libraries support. If you
15392 *** really care for shared libraries, you may want to modify your PATH
15393 *** so that a non-GNU linker is found, and then restart.
15394
15395 EOF
15396 fi
15397 ;;
15398
15399 amigaos*)
15400 archive_cmds_F77='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
15401 hardcode_libdir_flag_spec_F77='-L$libdir'
15402 hardcode_minus_L_F77=yes
15403
15404 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
15405 # that the semantics of dynamic libraries on AmigaOS, at least up
15406 # to version 4, is to share data among multiple programs linked
15407 # with the same dynamic library. Since this doesn't match the
15408 # behavior of shared libraries on other platforms, we can't use
15409 # them.
15410 ld_shlibs_F77=no
15411 ;;
15412
15413 beos*)
15414 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15415 allow_undefined_flag_F77=unsupported
15416 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
15417 # support --undefined. This deserves some investigation. FIXME
15418 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15419 else
15420 ld_shlibs_F77=no
15421 fi
15422 ;;
15423
15424 cygwin* | mingw* | pw32*)
15425 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
15426 # as there is no search path for DLLs.
15427 hardcode_libdir_flag_spec_F77='-L$libdir'
15428 allow_undefined_flag_F77=unsupported
15429 always_export_symbols_F77=no
15430 enable_shared_with_static_runtimes_F77=yes
15431 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
15432
15433 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
15434 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15435 # If the export-symbols file already is a .def file (1st line
15436 # is EXPORTS), use it as is; otherwise, prepend...
15437 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15438 cp $export_symbols $output_objdir/$soname.def;
15439 else
15440 echo EXPORTS > $output_objdir/$soname.def;
15441 cat $export_symbols >> $output_objdir/$soname.def;
15442 fi~
15443 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15444 else
15445 ld_shlibs_F77=no
15446 fi
15447 ;;
15448
15449 interix[3-9]*)
15450 hardcode_direct_F77=no
15451 hardcode_shlibpath_var_F77=no
15452 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15453 export_dynamic_flag_spec_F77='${wl}-E'
15454 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
15455 # Instead, shared libraries are loaded at an image base (0x10000000 by
15456 # default) and relocated if they conflict, which is a slow very memory
15457 # consuming and fragmenting process. To avoid this, we pick a random,
15458 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
15459 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
15460 archive_cmds_F77='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
15461 archive_expsym_cmds_F77='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
15462 ;;
15463
15464 gnu* | linux* | k*bsd*-gnu)
15465 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15466 tmp_addflag=
15467 case $cc_basename,$host_cpu in
15468 pgcc*) # Portland Group C compiler
15469 whole_archive_flag_spec_F77='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
15470 tmp_addflag=' $pic_flag'
15471 ;;
15472 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
15473 whole_archive_flag_spec_F77='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
15474 tmp_addflag=' $pic_flag -Mnomain' ;;
15475 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
15476 tmp_addflag=' -i_dynamic' ;;
15477 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
15478 tmp_addflag=' -i_dynamic -nofor_main' ;;
15479 ifc* | ifort*) # Intel Fortran compiler
15480 tmp_addflag=' -nofor_main' ;;
15481 esac
15482 case `$CC -V 2>&1 | sed 5q` in
15483 *Sun\ C*) # Sun C 5.9
15484 whole_archive_flag_spec_F77='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
15485 tmp_sharedflag='-G' ;;
15486 *Sun\ F*) # Sun Fortran 8.3
15487 tmp_sharedflag='-G' ;;
15488 *)
15489 tmp_sharedflag='-shared' ;;
15490 esac
15491 archive_cmds_F77='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15492
15493 if test $supports_anon_versioning = yes; then
15494 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
15495 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15496 $echo "local: *; };" >> $output_objdir/$libname.ver~
15497 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
15498 fi
15499 else
15500 ld_shlibs_F77=no
15501 fi
15502 ;;
15503
15504 netbsd*)
15505 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15506 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
15507 wlarc=
15508 else
15509 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15510 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15511 fi
15512 ;;
15513
15514 solaris*)
15515 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
15516 ld_shlibs_F77=no
15517 cat <<EOF 1>&2
15518
15519 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
15520 *** create shared libraries on Solaris systems. Therefore, libtool
15521 *** is disabling shared libraries support. We urge you to upgrade GNU
15522 *** binutils to release 2.9.1 or newer. Another option is to modify
15523 *** your PATH or compiler configuration so that the native linker is
15524 *** used, and then restart.
15525
15526 EOF
15527 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15528 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15529 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15530 else
15531 ld_shlibs_F77=no
15532 fi
15533 ;;
15534
15535 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
15536 case `$LD -v 2>&1` in
15537 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
15538 ld_shlibs_F77=no
15539 cat <<_LT_EOF 1>&2
15540
15541 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
15542 *** reliably create shared libraries on SCO systems. Therefore, libtool
15543 *** is disabling shared libraries support. We urge you to upgrade GNU
15544 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
15545 *** your PATH or compiler configuration so that the native linker is
15546 *** used, and then restart.
15547
15548 _LT_EOF
15549 ;;
15550 *)
15551 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15552 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
15553 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
15554 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
15555 else
15556 ld_shlibs_F77=no
15557 fi
15558 ;;
15559 esac
15560 ;;
15561
15562 sunos4*)
15563 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15564 wlarc=
15565 hardcode_direct_F77=yes
15566 hardcode_shlibpath_var_F77=no
15567 ;;
15568
15569 *)
15570 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15571 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15572 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15573 else
15574 ld_shlibs_F77=no
15575 fi
15576 ;;
15577 esac
15578
15579 if test "$ld_shlibs_F77" = no; then
15580 runpath_var=
15581 hardcode_libdir_flag_spec_F77=
15582 export_dynamic_flag_spec_F77=
15583 whole_archive_flag_spec_F77=
15584 fi
15585 else
15586 # PORTME fill in a description of your system's linker (not GNU ld)
15587 case $host_os in
15588 aix3*)
15589 allow_undefined_flag_F77=unsupported
15590 always_export_symbols_F77=yes
15591 archive_expsym_cmds_F77='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
15592 # Note: this linker hardcodes the directories in LIBPATH if there
15593 # are no directories specified by -L.
15594 hardcode_minus_L_F77=yes
15595 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
15596 # Neither direct hardcoding nor static linking is supported with a
15597 # broken collect2.
15598 hardcode_direct_F77=unsupported
15599 fi
15600 ;;
15601
15602 aix4* | aix5*)
15603 if test "$host_cpu" = ia64; then
15604 # On IA64, the linker does run time linking by default, so we don't
15605 # have to do anything special.
15606 aix_use_runtimelinking=no
15607 exp_sym_flag='-Bexport'
15608 no_entry_flag=""
15609 else
15610 # If we're using GNU nm, then we don't want the "-C" option.
15611 # -C means demangle to AIX nm, but means don't demangle with GNU nm
15612 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
15613 export_symbols_cmds_F77='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
15614 else
15615 export_symbols_cmds_F77='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
15616 fi
15617 aix_use_runtimelinking=no
15618
15619 # Test if we are trying to use run time linking or normal
15620 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15621 # need to do runtime linking.
15622 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
15623 for ld_flag in $LDFLAGS; do
15624 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
15625 aix_use_runtimelinking=yes
15626 break
15627 fi
15628 done
15629 ;;
15630 esac
15631
15632 exp_sym_flag='-bexport'
15633 no_entry_flag='-bnoentry'
15634 fi
15635
15636 # When large executables or shared objects are built, AIX ld can
15637 # have problems creating the table of contents. If linking a library
15638 # or program results in "error TOC overflow" add -mminimal-toc to
15639 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
15640 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15641
15642 archive_cmds_F77=''
15643 hardcode_direct_F77=yes
15644 hardcode_libdir_separator_F77=':'
15645 link_all_deplibs_F77=yes
15646
15647 if test "$GCC" = yes; then
15648 case $host_os in aix4.[012]|aix4.[012].*)
15649 # We only want to do this on AIX 4.2 and lower, the check
15650 # below for broken collect2 doesn't work under 4.3+
15651 collect2name=`${CC} -print-prog-name=collect2`
15652 if test -f "$collect2name" && \
15653 strings "$collect2name" | grep resolve_lib_name >/dev/null
15654 then
15655 # We have reworked collect2
15656 :
15657 else
15658 # We have old collect2
15659 hardcode_direct_F77=unsupported
15660 # It fails to find uninstalled libraries when the uninstalled
15661 # path is not listed in the libpath. Setting hardcode_minus_L
15662 # to unsupported forces relinking
15663 hardcode_minus_L_F77=yes
15664 hardcode_libdir_flag_spec_F77='-L$libdir'
15665 hardcode_libdir_separator_F77=
15666 fi
15667 ;;
15668 esac
15669 shared_flag='-shared'
15670 if test "$aix_use_runtimelinking" = yes; then
15671 shared_flag="$shared_flag "'${wl}-G'
15672 fi
15673 else
15674 # not using gcc
15675 if test "$host_cpu" = ia64; then
15676 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15677 # chokes on -Wl,-G. The following line is correct:
15678 shared_flag='-G'
15679 else
15680 if test "$aix_use_runtimelinking" = yes; then
15681 shared_flag='${wl}-G'
15682 else
15683 shared_flag='${wl}-bM:SRE'
15684 fi
15685 fi
15686 fi
15687
15688 # It seems that -bexpall does not export symbols beginning with
15689 # underscore (_), so it is better to generate a list of symbols to export.
15690 always_export_symbols_F77=yes
15691 if test "$aix_use_runtimelinking" = yes; then
15692 # Warning - without using the other runtime loading flags (-brtl),
15693 # -berok will link without error, but may produce a broken library.
15694 allow_undefined_flag_F77='-berok'
15695 # Determine the default libpath from the value encoded in an empty executable.
15696 cat >conftest.$ac_ext <<_ACEOF
15697 program main
15698
15699 end
15700 _ACEOF
15701 rm -f conftest.$ac_objext conftest$ac_exeext
15702 if { (ac_try="$ac_link"
15703 case "(($ac_try" in
15704 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15705 *) ac_try_echo=$ac_try;;
15706 esac
15707 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15708 (eval "$ac_link") 2>conftest.er1
15709 ac_status=$?
15710 grep -v '^ *+' conftest.er1 >conftest.err
15711 rm -f conftest.er1
15712 cat conftest.err >&5
15713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15714 (exit $ac_status); } && {
15715 test -z "$ac_f77_werror_flag" ||
15716 test ! -s conftest.err
15717 } && test -s conftest$ac_exeext &&
15718 $as_test_x conftest$ac_exeext; then
15719
15720 lt_aix_libpath_sed='
15721 /Import File Strings/,/^$/ {
15722 /^0/ {
15723 s/^0 *\(.*\)$/\1/
15724 p
15725 }
15726 }'
15727 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15728 # Check for a 64-bit object if we didn't find anything.
15729 if test -z "$aix_libpath"; then
15730 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15731 fi
15732 else
15733 echo "$as_me: failed program was:" >&5
15734 sed 's/^/| /' conftest.$ac_ext >&5
15735
15736
15737 fi
15738
15739 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15740 conftest$ac_exeext conftest.$ac_ext
15741 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15742
15743 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
15744 archive_expsym_cmds_F77="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
15745 else
15746 if test "$host_cpu" = ia64; then
15747 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
15748 allow_undefined_flag_F77="-z nodefs"
15749 archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
15750 else
15751 # Determine the default libpath from the value encoded in an empty executable.
15752 cat >conftest.$ac_ext <<_ACEOF
15753 program main
15754
15755 end
15756 _ACEOF
15757 rm -f conftest.$ac_objext conftest$ac_exeext
15758 if { (ac_try="$ac_link"
15759 case "(($ac_try" in
15760 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15761 *) ac_try_echo=$ac_try;;
15762 esac
15763 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15764 (eval "$ac_link") 2>conftest.er1
15765 ac_status=$?
15766 grep -v '^ *+' conftest.er1 >conftest.err
15767 rm -f conftest.er1
15768 cat conftest.err >&5
15769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15770 (exit $ac_status); } && {
15771 test -z "$ac_f77_werror_flag" ||
15772 test ! -s conftest.err
15773 } && test -s conftest$ac_exeext &&
15774 $as_test_x conftest$ac_exeext; then
15775
15776 lt_aix_libpath_sed='
15777 /Import File Strings/,/^$/ {
15778 /^0/ {
15779 s/^0 *\(.*\)$/\1/
15780 p
15781 }
15782 }'
15783 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15784 # Check for a 64-bit object if we didn't find anything.
15785 if test -z "$aix_libpath"; then
15786 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15787 fi
15788 else
15789 echo "$as_me: failed program was:" >&5
15790 sed 's/^/| /' conftest.$ac_ext >&5
15791
15792
15793 fi
15794
15795 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15796 conftest$ac_exeext conftest.$ac_ext
15797 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15798
15799 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
15800 # Warning - without using the other run time loading flags,
15801 # -berok will link without error, but may produce a broken library.
15802 no_undefined_flag_F77=' ${wl}-bernotok'
15803 allow_undefined_flag_F77=' ${wl}-berok'
15804 # Exported symbols can be pulled into shared objects from archives
15805 whole_archive_flag_spec_F77='$convenience'
15806 archive_cmds_need_lc_F77=yes
15807 # This is similar to how AIX traditionally builds its shared libraries.
15808 archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
15809 fi
15810 fi
15811 ;;
15812
15813 amigaos*)
15814 archive_cmds_F77='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
15815 hardcode_libdir_flag_spec_F77='-L$libdir'
15816 hardcode_minus_L_F77=yes
15817 # see comment about different semantics on the GNU ld section
15818 ld_shlibs_F77=no
15819 ;;
15820
15821 bsdi[45]*)
15822 export_dynamic_flag_spec_F77=-rdynamic
15823 ;;
15824
15825 cygwin* | mingw* | pw32*)
15826 # When not using gcc, we currently assume that we are using
15827 # Microsoft Visual C++.
15828 # hardcode_libdir_flag_spec is actually meaningless, as there is
15829 # no search path for DLLs.
15830 hardcode_libdir_flag_spec_F77=' '
15831 allow_undefined_flag_F77=unsupported
15832 # Tell ltmain to make .lib files, not .a files.
15833 libext=lib
15834 # Tell ltmain to make .dll files, not .so files.
15835 shrext_cmds=".dll"
15836 # FIXME: Setting linknames here is a bad hack.
15837 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
15838 # The linker will automatically build a .lib file if we build a DLL.
15839 old_archive_From_new_cmds_F77='true'
15840 # FIXME: Should let the user specify the lib program.
15841 old_archive_cmds_F77='lib -OUT:$oldlib$oldobjs$old_deplibs'
15842 fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
15843 enable_shared_with_static_runtimes_F77=yes
15844 ;;
15845
15846 darwin* | rhapsody*)
15847 case $host_os in
15848 rhapsody* | darwin1.[012])
15849 allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
15850 ;;
15851 *) # Darwin 1.3 on
15852 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
15853 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15854 else
15855 case ${MACOSX_DEPLOYMENT_TARGET} in
15856 10.[012])
15857 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15858 ;;
15859 10.*)
15860 allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
15861 ;;
15862 esac
15863 fi
15864 ;;
15865 esac
15866 archive_cmds_need_lc_F77=no
15867 hardcode_direct_F77=no
15868 hardcode_automatic_F77=yes
15869 hardcode_shlibpath_var_F77=unsupported
15870 whole_archive_flag_spec_F77=''
15871 link_all_deplibs_F77=yes
15872 if test "$GCC" = yes ; then
15873 output_verbose_link_cmd='echo'
15874 archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
15875 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15876 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
15877 archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
15878 module_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
15879 else
15880 case $cc_basename in
15881 xlc*)
15882 output_verbose_link_cmd='echo'
15883 archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
15884 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15885 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
15886 archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
15887 module_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
15888 ;;
15889 *)
15890 ld_shlibs_F77=no
15891 ;;
15892 esac
15893 fi
15894 ;;
15895
15896 dgux*)
15897 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15898 hardcode_libdir_flag_spec_F77='-L$libdir'
15899 hardcode_shlibpath_var_F77=no
15900 ;;
15901
15902 freebsd1*)
15903 ld_shlibs_F77=no
15904 ;;
15905
15906 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15907 # support. Future versions do this automatically, but an explicit c++rt0.o
15908 # does not break anything, and helps significantly (at the cost of a little
15909 # extra space).
15910 freebsd2.2*)
15911 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
15912 hardcode_libdir_flag_spec_F77='-R$libdir'
15913 hardcode_direct_F77=yes
15914 hardcode_shlibpath_var_F77=no
15915 ;;
15916
15917 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
15918 freebsd2*)
15919 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15920 hardcode_direct_F77=yes
15921 hardcode_minus_L_F77=yes
15922 hardcode_shlibpath_var_F77=no
15923 ;;
15924
15925 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
15926 freebsd* | dragonfly*)
15927 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
15928 hardcode_libdir_flag_spec_F77='-R$libdir'
15929 hardcode_direct_F77=yes
15930 hardcode_shlibpath_var_F77=no
15931 ;;
15932
15933 hpux9*)
15934 if test "$GCC" = yes; then
15935 archive_cmds_F77='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
15936 else
15937 archive_cmds_F77='$rm $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
15938 fi
15939 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15940 hardcode_libdir_separator_F77=:
15941 hardcode_direct_F77=yes
15942
15943 # hardcode_minus_L: Not really in the search PATH,
15944 # but as the default location of the library.
15945 hardcode_minus_L_F77=yes
15946 export_dynamic_flag_spec_F77='${wl}-E'
15947 ;;
15948
15949 hpux10*)
15950 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15951 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15952 else
15953 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15954 fi
15955 if test "$with_gnu_ld" = no; then
15956 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15957 hardcode_libdir_separator_F77=:
15958
15959 hardcode_direct_F77=yes
15960 export_dynamic_flag_spec_F77='${wl}-E'
15961
15962 # hardcode_minus_L: Not really in the search PATH,
15963 # but as the default location of the library.
15964 hardcode_minus_L_F77=yes
15965 fi
15966 ;;
15967
15968 hpux11*)
15969 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15970 case $host_cpu in
15971 hppa*64*)
15972 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15973 ;;
15974 ia64*)
15975 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15976 ;;
15977 *)
15978 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15979 ;;
15980 esac
15981 else
15982 case $host_cpu in
15983 hppa*64*)
15984 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15985 ;;
15986 ia64*)
15987 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15988 ;;
15989 *)
15990 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15991 ;;
15992 esac
15993 fi
15994 if test "$with_gnu_ld" = no; then
15995 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15996 hardcode_libdir_separator_F77=:
15997
15998 case $host_cpu in
15999 hppa*64*|ia64*)
16000 hardcode_libdir_flag_spec_ld_F77='+b $libdir'
16001 hardcode_direct_F77=no
16002 hardcode_shlibpath_var_F77=no
16003 ;;
16004 *)
16005 hardcode_direct_F77=yes
16006 export_dynamic_flag_spec_F77='${wl}-E'
16007
16008 # hardcode_minus_L: Not really in the search PATH,
16009 # but as the default location of the library.
16010 hardcode_minus_L_F77=yes
16011 ;;
16012 esac
16013 fi
16014 ;;
16015
16016 irix5* | irix6* | nonstopux*)
16017 if test "$GCC" = yes; then
16018 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
16019 else
16020 archive_cmds_F77='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
16021 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
16022 fi
16023 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
16024 hardcode_libdir_separator_F77=:
16025 link_all_deplibs_F77=yes
16026 ;;
16027
16028 netbsd*)
16029 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16030 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
16031 else
16032 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
16033 fi
16034 hardcode_libdir_flag_spec_F77='-R$libdir'
16035 hardcode_direct_F77=yes
16036 hardcode_shlibpath_var_F77=no
16037 ;;
16038
16039 newsos6)
16040 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16041 hardcode_direct_F77=yes
16042 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
16043 hardcode_libdir_separator_F77=:
16044 hardcode_shlibpath_var_F77=no
16045 ;;
16046
16047 openbsd*)
16048 if test -f /usr/libexec/ld.so; then
16049 hardcode_direct_F77=yes
16050 hardcode_shlibpath_var_F77=no
16051 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16052 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16053 archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
16054 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
16055 export_dynamic_flag_spec_F77='${wl}-E'
16056 else
16057 case $host_os in
16058 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
16059 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16060 hardcode_libdir_flag_spec_F77='-R$libdir'
16061 ;;
16062 *)
16063 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16064 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
16065 ;;
16066 esac
16067 fi
16068 else
16069 ld_shlibs_F77=no
16070 fi
16071 ;;
16072
16073 os2*)
16074 hardcode_libdir_flag_spec_F77='-L$libdir'
16075 hardcode_minus_L_F77=yes
16076 allow_undefined_flag_F77=unsupported
16077 archive_cmds_F77='$echo "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$echo "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$echo DATA >> $output_objdir/$libname.def~$echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~$echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
16078 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
16079 ;;
16080
16081 osf3*)
16082 if test "$GCC" = yes; then
16083 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
16084 archive_cmds_F77='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
16085 else
16086 allow_undefined_flag_F77=' -expect_unresolved \*'
16087 archive_cmds_F77='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
16088 fi
16089 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
16090 hardcode_libdir_separator_F77=:
16091 ;;
16092
16093 osf4* | osf5*) # as osf3* with the addition of -msym flag
16094 if test "$GCC" = yes; then
16095 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
16096 archive_cmds_F77='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
16097 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
16098 else
16099 allow_undefined_flag_F77=' -expect_unresolved \*'
16100 archive_cmds_F77='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
16101 archive_expsym_cmds_F77='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
16102 $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
16103
16104 # Both c and cxx compiler support -rpath directly
16105 hardcode_libdir_flag_spec_F77='-rpath $libdir'
16106 fi
16107 hardcode_libdir_separator_F77=:
16108 ;;
16109
16110 solaris*)
16111 no_undefined_flag_F77=' -z text'
16112 if test "$GCC" = yes; then
16113 wlarc='${wl}'
16114 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16115 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16116 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
16117 else
16118 wlarc=''
16119 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16120 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16121 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
16122 fi
16123 hardcode_libdir_flag_spec_F77='-R$libdir'
16124 hardcode_shlibpath_var_F77=no
16125 case $host_os in
16126 solaris2.[0-5] | solaris2.[0-5].*) ;;
16127 *)
16128 # The compiler driver will combine and reorder linker options,
16129 # but understands `-z linker_flag'. GCC discards it without `$wl',
16130 # but is careful enough not to reorder.
16131 # Supported since Solaris 2.6 (maybe 2.5.1?)
16132 if test "$GCC" = yes; then
16133 whole_archive_flag_spec_F77='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
16134 else
16135 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract'
16136 fi
16137 ;;
16138 esac
16139 link_all_deplibs_F77=yes
16140 ;;
16141
16142 sunos4*)
16143 if test "x$host_vendor" = xsequent; then
16144 # Use $CC to link under sequent, because it throws in some extra .o
16145 # files that make .init and .fini sections work.
16146 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
16147 else
16148 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
16149 fi
16150 hardcode_libdir_flag_spec_F77='-L$libdir'
16151 hardcode_direct_F77=yes
16152 hardcode_minus_L_F77=yes
16153 hardcode_shlibpath_var_F77=no
16154 ;;
16155
16156 sysv4)
16157 case $host_vendor in
16158 sni)
16159 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16160 hardcode_direct_F77=yes # is this really true???
16161 ;;
16162 siemens)
16163 ## LD is ld it makes a PLAMLIB
16164 ## CC just makes a GrossModule.
16165 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16166 reload_cmds_F77='$CC -r -o $output$reload_objs'
16167 hardcode_direct_F77=no
16168 ;;
16169 motorola)
16170 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16171 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
16172 ;;
16173 esac
16174 runpath_var='LD_RUN_PATH'
16175 hardcode_shlibpath_var_F77=no
16176 ;;
16177
16178 sysv4.3*)
16179 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16180 hardcode_shlibpath_var_F77=no
16181 export_dynamic_flag_spec_F77='-Bexport'
16182 ;;
16183
16184 sysv4*MP*)
16185 if test -d /usr/nec; then
16186 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16187 hardcode_shlibpath_var_F77=no
16188 runpath_var=LD_RUN_PATH
16189 hardcode_runpath_var=yes
16190 ld_shlibs_F77=yes
16191 fi
16192 ;;
16193
16194 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
16195 no_undefined_flag_F77='${wl}-z,text'
16196 archive_cmds_need_lc_F77=no
16197 hardcode_shlibpath_var_F77=no
16198 runpath_var='LD_RUN_PATH'
16199
16200 if test "$GCC" = yes; then
16201 archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16202 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16203 else
16204 archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16205 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16206 fi
16207 ;;
16208
16209 sysv5* | sco3.2v5* | sco5v6*)
16210 # Note: We can NOT use -z defs as we might desire, because we do not
16211 # link with -lc, and that would cause any symbols used from libc to
16212 # always be unresolved, which means just about no library would
16213 # ever link correctly. If we're not using GNU ld we use -z text
16214 # though, which does catch some bad symbols but isn't as heavy-handed
16215 # as -z defs.
16216 no_undefined_flag_F77='${wl}-z,text'
16217 allow_undefined_flag_F77='${wl}-z,nodefs'
16218 archive_cmds_need_lc_F77=no
16219 hardcode_shlibpath_var_F77=no
16220 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
16221 hardcode_libdir_separator_F77=':'
16222 link_all_deplibs_F77=yes
16223 export_dynamic_flag_spec_F77='${wl}-Bexport'
16224 runpath_var='LD_RUN_PATH'
16225
16226 if test "$GCC" = yes; then
16227 archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16228 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16229 else
16230 archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16231 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16232 fi
16233 ;;
16234
16235 uts4*)
16236 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16237 hardcode_libdir_flag_spec_F77='-L$libdir'
16238 hardcode_shlibpath_var_F77=no
16239 ;;
16240
16241 *)
16242 ld_shlibs_F77=no
16243 ;;
16244 esac
16245 fi
16246
16247 { echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
16248 echo "${ECHO_T}$ld_shlibs_F77" >&6; }
16249 test "$ld_shlibs_F77" = no && can_build_shared=no
16250
16251 #
16252 # Do we need to explicitly link libc?
16253 #
16254 case "x$archive_cmds_need_lc_F77" in
16255 x|xyes)
16256 # Assume -lc should be added
16257 archive_cmds_need_lc_F77=yes
16258
16259 if test "$enable_shared" = yes && test "$GCC" = yes; then
16260 case $archive_cmds_F77 in
16261 *'~'*)
16262 # FIXME: we may have to deal with multi-command sequences.
16263 ;;
16264 '$CC '*)
16265 # Test whether the compiler implicitly links with -lc since on some
16266 # systems, -lgcc has to come before -lc. If gcc already passes -lc
16267 # to ld, don't add -lc before -lgcc.
16268 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
16269 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
16270 $rm conftest*
16271 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16272
16273 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16274 (eval $ac_compile) 2>&5
16275 ac_status=$?
16276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16277 (exit $ac_status); } 2>conftest.err; then
16278 soname=conftest
16279 lib=conftest
16280 libobjs=conftest.$ac_objext
16281 deplibs=
16282 wl=$lt_prog_compiler_wl_F77
16283 pic_flag=$lt_prog_compiler_pic_F77
16284 compiler_flags=-v
16285 linker_flags=-v
16286 verstring=
16287 output_objdir=.
16288 libname=conftest
16289 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
16290 allow_undefined_flag_F77=
16291 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
16292 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
16293 ac_status=$?
16294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16295 (exit $ac_status); }
16296 then
16297 archive_cmds_need_lc_F77=no
16298 else
16299 archive_cmds_need_lc_F77=yes
16300 fi
16301 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
16302 else
16303 cat conftest.err 1>&5
16304 fi
16305 $rm conftest*
16306 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
16307 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; }
16308 ;;
16309 esac
16310 fi
16311 ;;
16312 esac
16313
16314 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
16315 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
16316 library_names_spec=
16317 libname_spec='lib$name'
16318 soname_spec=
16319 shrext_cmds=".so"
16320 postinstall_cmds=
16321 postuninstall_cmds=
16322 finish_cmds=
16323 finish_eval=
16324 shlibpath_var=
16325 shlibpath_overrides_runpath=unknown
16326 version_type=none
16327 dynamic_linker="$host_os ld.so"
16328 sys_lib_dlsearch_path_spec="/lib /usr/lib"
16329
16330 need_lib_prefix=unknown
16331 hardcode_into_libs=no
16332
16333 # when you set need_version to no, make sure it does not cause -set_version
16334 # flags to be left without arguments
16335 need_version=unknown
16336
16337 case $host_os in
16338 aix3*)
16339 version_type=linux
16340 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
16341 shlibpath_var=LIBPATH
16342
16343 # AIX 3 has no versioning support, so we append a major version to the name.
16344 soname_spec='${libname}${release}${shared_ext}$major'
16345 ;;
16346
16347 aix4* | aix5*)
16348 version_type=linux
16349 need_lib_prefix=no
16350 need_version=no
16351 hardcode_into_libs=yes
16352 if test "$host_cpu" = ia64; then
16353 # AIX 5 supports IA64
16354 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16355 shlibpath_var=LD_LIBRARY_PATH
16356 else
16357 # With GCC up to 2.95.x, collect2 would create an import file
16358 # for dependence libraries. The import file would start with
16359 # the line `#! .'. This would cause the generated library to
16360 # depend on `.', always an invalid library. This was fixed in
16361 # development snapshots of GCC prior to 3.0.
16362 case $host_os in
16363 aix4 | aix4.[01] | aix4.[01].*)
16364 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16365 echo ' yes '
16366 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
16367 :
16368 else
16369 can_build_shared=no
16370 fi
16371 ;;
16372 esac
16373 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16374 # soname into executable. Probably we can add versioning support to
16375 # collect2, so additional links can be useful in future.
16376 if test "$aix_use_runtimelinking" = yes; then
16377 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16378 # instead of lib<name>.a to let people know that these are not
16379 # typical AIX shared libraries.
16380 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16381 else
16382 # We preserve .a as extension for shared libraries through AIX4.2
16383 # and later when we are not doing run time linking.
16384 library_names_spec='${libname}${release}.a $libname.a'
16385 soname_spec='${libname}${release}${shared_ext}$major'
16386 fi
16387 shlibpath_var=LIBPATH
16388 fi
16389 ;;
16390
16391 amigaos*)
16392 library_names_spec='$libname.ixlibrary $libname.a'
16393 # Create ${libname}_ixlibrary.a entries in /sys/libs.
16394 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'
16395 ;;
16396
16397 beos*)
16398 library_names_spec='${libname}${shared_ext}'
16399 dynamic_linker="$host_os ld.so"
16400 shlibpath_var=LIBRARY_PATH
16401 ;;
16402
16403 bsdi[45]*)
16404 version_type=linux
16405 need_version=no
16406 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16407 soname_spec='${libname}${release}${shared_ext}$major'
16408 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16409 shlibpath_var=LD_LIBRARY_PATH
16410 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16411 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16412 # the default ld.so.conf also contains /usr/contrib/lib and
16413 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16414 # libtool to hard-code these into programs
16415 ;;
16416
16417 cygwin* | mingw* | pw32*)
16418 version_type=windows
16419 shrext_cmds=".dll"
16420 need_version=no
16421 need_lib_prefix=no
16422
16423 case $GCC,$host_os in
16424 yes,cygwin* | yes,mingw* | yes,pw32*)
16425 library_names_spec='$libname.dll.a'
16426 # DLL is installed to $(libdir)/../bin by postinstall_cmds
16427 postinstall_cmds='base_file=`basename \${file}`~
16428 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
16429 dldir=$destdir/`dirname \$dlpath`~
16430 test -d \$dldir || mkdir -p \$dldir~
16431 $install_prog $dir/$dlname \$dldir/$dlname~
16432 chmod a+x \$dldir/$dlname'
16433 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16434 dlpath=$dir/\$dldll~
16435 $rm \$dlpath'
16436 shlibpath_overrides_runpath=yes
16437
16438 case $host_os in
16439 cygwin*)
16440 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16441 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16442 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
16443 ;;
16444 mingw*)
16445 # MinGW DLLs use traditional 'lib' prefix
16446 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16447 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16448 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
16449 # It is most probably a Windows format PATH printed by
16450 # mingw gcc, but we are running on Cygwin. Gcc prints its search
16451 # path with ; separators, and with drive letters. We can handle the
16452 # drive letters (cygwin fileutils understands them), so leave them,
16453 # especially as we might pass files found there to a mingw objdump,
16454 # which wouldn't understand a cygwinified path. Ahh.
16455 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16456 else
16457 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16458 fi
16459 ;;
16460 pw32*)
16461 # pw32 DLLs use 'pw' prefix rather than 'lib'
16462 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16463 ;;
16464 esac
16465 ;;
16466
16467 *)
16468 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
16469 ;;
16470 esac
16471 dynamic_linker='Win32 ld.exe'
16472 # FIXME: first we should search . and the directory the executable is in
16473 shlibpath_var=PATH
16474 ;;
16475
16476 darwin* | rhapsody*)
16477 dynamic_linker="$host_os dyld"
16478 version_type=darwin
16479 need_lib_prefix=no
16480 need_version=no
16481 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16482 soname_spec='${libname}${release}${major}$shared_ext'
16483 shlibpath_overrides_runpath=yes
16484 shlibpath_var=DYLD_LIBRARY_PATH
16485 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
16486
16487 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16488 ;;
16489
16490 dgux*)
16491 version_type=linux
16492 need_lib_prefix=no
16493 need_version=no
16494 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16495 soname_spec='${libname}${release}${shared_ext}$major'
16496 shlibpath_var=LD_LIBRARY_PATH
16497 ;;
16498
16499 freebsd1*)
16500 dynamic_linker=no
16501 ;;
16502
16503 freebsd* | dragonfly*)
16504 # DragonFly does not have aout. When/if they implement a new
16505 # versioning mechanism, adjust this.
16506 if test -x /usr/bin/objformat; then
16507 objformat=`/usr/bin/objformat`
16508 else
16509 case $host_os in
16510 freebsd[123]*) objformat=aout ;;
16511 *) objformat=elf ;;
16512 esac
16513 fi
16514 version_type=freebsd-$objformat
16515 case $version_type in
16516 freebsd-elf*)
16517 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16518 need_version=no
16519 need_lib_prefix=no
16520 ;;
16521 freebsd-*)
16522 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16523 need_version=yes
16524 ;;
16525 esac
16526 shlibpath_var=LD_LIBRARY_PATH
16527 case $host_os in
16528 freebsd2*)
16529 shlibpath_overrides_runpath=yes
16530 ;;
16531 freebsd3.[01]* | freebsdelf3.[01]*)
16532 shlibpath_overrides_runpath=yes
16533 hardcode_into_libs=yes
16534 ;;
16535 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
16536 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
16537 shlibpath_overrides_runpath=no
16538 hardcode_into_libs=yes
16539 ;;
16540 *) # from 4.6 on, and DragonFly
16541 shlibpath_overrides_runpath=yes
16542 hardcode_into_libs=yes
16543 ;;
16544 esac
16545 ;;
16546
16547 gnu*)
16548 version_type=linux
16549 need_lib_prefix=no
16550 need_version=no
16551 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16552 soname_spec='${libname}${release}${shared_ext}$major'
16553 shlibpath_var=LD_LIBRARY_PATH
16554 hardcode_into_libs=yes
16555 ;;
16556
16557 hpux9* | hpux10* | hpux11*)
16558 # Give a soname corresponding to the major version so that dld.sl refuses to
16559 # link against other versions.
16560 version_type=sunos
16561 need_lib_prefix=no
16562 need_version=no
16563 case $host_cpu in
16564 ia64*)
16565 shrext_cmds='.so'
16566 hardcode_into_libs=yes
16567 dynamic_linker="$host_os dld.so"
16568 shlibpath_var=LD_LIBRARY_PATH
16569 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16570 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16571 soname_spec='${libname}${release}${shared_ext}$major'
16572 if test "X$HPUX_IA64_MODE" = X32; then
16573 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16574 else
16575 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16576 fi
16577 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16578 ;;
16579 hppa*64*)
16580 shrext_cmds='.sl'
16581 hardcode_into_libs=yes
16582 dynamic_linker="$host_os dld.sl"
16583 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16584 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16585 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16586 soname_spec='${libname}${release}${shared_ext}$major'
16587 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16588 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16589 ;;
16590 *)
16591 shrext_cmds='.sl'
16592 dynamic_linker="$host_os dld.sl"
16593 shlibpath_var=SHLIB_PATH
16594 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16595 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16596 soname_spec='${libname}${release}${shared_ext}$major'
16597 ;;
16598 esac
16599 # HP-UX runs *really* slowly unless shared libraries are mode 555.
16600 postinstall_cmds='chmod 555 $lib'
16601 ;;
16602
16603 interix[3-9]*)
16604 version_type=linux
16605 need_lib_prefix=no
16606 need_version=no
16607 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16608 soname_spec='${libname}${release}${shared_ext}$major'
16609 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
16610 shlibpath_var=LD_LIBRARY_PATH
16611 shlibpath_overrides_runpath=no
16612 hardcode_into_libs=yes
16613 ;;
16614
16615 irix5* | irix6* | nonstopux*)
16616 case $host_os in
16617 nonstopux*) version_type=nonstopux ;;
16618 *)
16619 if test "$lt_cv_prog_gnu_ld" = yes; then
16620 version_type=linux
16621 else
16622 version_type=irix
16623 fi ;;
16624 esac
16625 need_lib_prefix=no
16626 need_version=no
16627 soname_spec='${libname}${release}${shared_ext}$major'
16628 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
16629 case $host_os in
16630 irix5* | nonstopux*)
16631 libsuff= shlibsuff=
16632 ;;
16633 *)
16634 case $LD in # libtool.m4 will add one of these switches to LD
16635 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16636 libsuff= shlibsuff= libmagic=32-bit;;
16637 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16638 libsuff=32 shlibsuff=N32 libmagic=N32;;
16639 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16640 libsuff=64 shlibsuff=64 libmagic=64-bit;;
16641 *) libsuff= shlibsuff= libmagic=never-match;;
16642 esac
16643 ;;
16644 esac
16645 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16646 shlibpath_overrides_runpath=no
16647 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16648 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16649 hardcode_into_libs=yes
16650 ;;
16651
16652 # No shared lib support for Linux oldld, aout, or coff.
16653 linux*oldld* | linux*aout* | linux*coff*)
16654 dynamic_linker=no
16655 ;;
16656
16657 # This must be Linux ELF.
16658 linux* | k*bsd*-gnu)
16659 version_type=linux
16660 need_lib_prefix=no
16661 need_version=no
16662 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16663 soname_spec='${libname}${release}${shared_ext}$major'
16664 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16665 shlibpath_var=LD_LIBRARY_PATH
16666 shlibpath_overrides_runpath=no
16667 # This implies no fast_install, which is unacceptable.
16668 # Some rework will be needed to allow for fast_install
16669 # before this can be enabled.
16670 hardcode_into_libs=yes
16671 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16672 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16673
16674 # Append ld.so.conf contents to the search path
16675 if test -f /etc/ld.so.conf; then
16676 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' ' '`
16677 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
16678 fi
16679
16680 # We used to test for /lib/ld.so.1 and disable shared libraries on
16681 # powerpc, because MkLinux only supported shared libraries with the
16682 # GNU dynamic linker. Since this was broken with cross compilers,
16683 # most powerpc-linux boxes support dynamic linking these days and
16684 # people can always --disable-shared, the test was removed, and we
16685 # assume the GNU/Linux dynamic linker is in use.
16686 dynamic_linker='GNU/Linux ld.so'
16687 ;;
16688
16689 netbsd*)
16690 version_type=sunos
16691 need_lib_prefix=no
16692 need_version=no
16693 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16694 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16695 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16696 dynamic_linker='NetBSD (a.out) ld.so'
16697 else
16698 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16699 soname_spec='${libname}${release}${shared_ext}$major'
16700 dynamic_linker='NetBSD ld.elf_so'
16701 fi
16702 shlibpath_var=LD_LIBRARY_PATH
16703 shlibpath_overrides_runpath=yes
16704 hardcode_into_libs=yes
16705 ;;
16706
16707 newsos6)
16708 version_type=linux
16709 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16710 shlibpath_var=LD_LIBRARY_PATH
16711 shlibpath_overrides_runpath=yes
16712 ;;
16713
16714 nto-qnx*)
16715 version_type=linux
16716 need_lib_prefix=no
16717 need_version=no
16718 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16719 soname_spec='${libname}${release}${shared_ext}$major'
16720 shlibpath_var=LD_LIBRARY_PATH
16721 shlibpath_overrides_runpath=yes
16722 ;;
16723
16724 openbsd*)
16725 version_type=sunos
16726 sys_lib_dlsearch_path_spec="/usr/lib"
16727 need_lib_prefix=no
16728 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
16729 case $host_os in
16730 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
16731 *) need_version=no ;;
16732 esac
16733 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16734 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16735 shlibpath_var=LD_LIBRARY_PATH
16736 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16737 case $host_os in
16738 openbsd2.[89] | openbsd2.[89].*)
16739 shlibpath_overrides_runpath=no
16740 ;;
16741 *)
16742 shlibpath_overrides_runpath=yes
16743 ;;
16744 esac
16745 else
16746 shlibpath_overrides_runpath=yes
16747 fi
16748 ;;
16749
16750 os2*)
16751 libname_spec='$name'
16752 shrext_cmds=".dll"
16753 need_lib_prefix=no
16754 library_names_spec='$libname${shared_ext} $libname.a'
16755 dynamic_linker='OS/2 ld.exe'
16756 shlibpath_var=LIBPATH
16757 ;;
16758
16759 osf3* | osf4* | osf5*)
16760 version_type=osf
16761 need_lib_prefix=no
16762 need_version=no
16763 soname_spec='${libname}${release}${shared_ext}$major'
16764 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16765 shlibpath_var=LD_LIBRARY_PATH
16766 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16767 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16768 ;;
16769
16770 rdos*)
16771 dynamic_linker=no
16772 ;;
16773
16774 solaris*)
16775 version_type=linux
16776 need_lib_prefix=no
16777 need_version=no
16778 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16779 soname_spec='${libname}${release}${shared_ext}$major'
16780 shlibpath_var=LD_LIBRARY_PATH
16781 shlibpath_overrides_runpath=yes
16782 hardcode_into_libs=yes
16783 # ldd complains unless libraries are executable
16784 postinstall_cmds='chmod +x $lib'
16785 ;;
16786
16787 sunos4*)
16788 version_type=sunos
16789 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16790 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16791 shlibpath_var=LD_LIBRARY_PATH
16792 shlibpath_overrides_runpath=yes
16793 if test "$with_gnu_ld" = yes; then
16794 need_lib_prefix=no
16795 fi
16796 need_version=yes
16797 ;;
16798
16799 sysv4 | sysv4.3*)
16800 version_type=linux
16801 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16802 soname_spec='${libname}${release}${shared_ext}$major'
16803 shlibpath_var=LD_LIBRARY_PATH
16804 case $host_vendor in
16805 sni)
16806 shlibpath_overrides_runpath=no
16807 need_lib_prefix=no
16808 export_dynamic_flag_spec='${wl}-Blargedynsym'
16809 runpath_var=LD_RUN_PATH
16810 ;;
16811 siemens)
16812 need_lib_prefix=no
16813 ;;
16814 motorola)
16815 need_lib_prefix=no
16816 need_version=no
16817 shlibpath_overrides_runpath=no
16818 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16819 ;;
16820 esac
16821 ;;
16822
16823 sysv4*MP*)
16824 if test -d /usr/nec ;then
16825 version_type=linux
16826 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16827 soname_spec='$libname${shared_ext}.$major'
16828 shlibpath_var=LD_LIBRARY_PATH
16829 fi
16830 ;;
16831
16832 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16833 version_type=freebsd-elf
16834 need_lib_prefix=no
16835 need_version=no
16836 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16837 soname_spec='${libname}${release}${shared_ext}$major'
16838 shlibpath_var=LD_LIBRARY_PATH
16839 hardcode_into_libs=yes
16840 if test "$with_gnu_ld" = yes; then
16841 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16842 shlibpath_overrides_runpath=no
16843 else
16844 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
16845 shlibpath_overrides_runpath=yes
16846 case $host_os in
16847 sco3.2v5*)
16848 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
16849 ;;
16850 esac
16851 fi
16852 sys_lib_dlsearch_path_spec='/usr/lib'
16853 ;;
16854
16855 uts4*)
16856 version_type=linux
16857 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16858 soname_spec='${libname}${release}${shared_ext}$major'
16859 shlibpath_var=LD_LIBRARY_PATH
16860 ;;
16861
16862 *)
16863 dynamic_linker=no
16864 ;;
16865 esac
16866 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
16867 echo "${ECHO_T}$dynamic_linker" >&6; }
16868 test "$dynamic_linker" = no && can_build_shared=no
16869
16870 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16871 if test "$GCC" = yes; then
16872 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16873 fi
16874
16875 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
16876 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
16877 hardcode_action_F77=
16878 if test -n "$hardcode_libdir_flag_spec_F77" || \
16879 test -n "$runpath_var_F77" || \
16880 test "X$hardcode_automatic_F77" = "Xyes" ; then
16881
16882 # We can hardcode non-existant directories.
16883 if test "$hardcode_direct_F77" != no &&
16884 # If the only mechanism to avoid hardcoding is shlibpath_var, we
16885 # have to relink, otherwise we might link with an installed library
16886 # when we should be linking with a yet-to-be-installed one
16887 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
16888 test "$hardcode_minus_L_F77" != no; then
16889 # Linking always hardcodes the temporary library directory.
16890 hardcode_action_F77=relink
16891 else
16892 # We can link without hardcoding, and we can hardcode nonexisting dirs.
16893 hardcode_action_F77=immediate
16894 fi
16895 else
16896 # We cannot hardcode anything, or else we can only hardcode existing
16897 # directories.
16898 hardcode_action_F77=unsupported
16899 fi
16900 { echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
16901 echo "${ECHO_T}$hardcode_action_F77" >&6; }
16902
16903 if test "$hardcode_action_F77" = relink; then
16904 # Fast installation is not supported
16905 enable_fast_install=no
16906 elif test "$shlibpath_overrides_runpath" = yes ||
16907 test "$enable_shared" = no; then
16908 # Fast installation is not necessary
16909 enable_fast_install=needless
16910 fi
16911
16912
16913 # The else clause should only fire when bootstrapping the
16914 # libtool distribution, otherwise you forgot to ship ltmain.sh
16915 # with your package, and you will get complaints that there are
16916 # no rules to generate ltmain.sh.
16917 if test -f "$ltmain"; then
16918 # See if we are running on zsh, and set the options which allow our commands through
16919 # without removal of \ escapes.
16920 if test -n "${ZSH_VERSION+set}" ; then
16921 setopt NO_GLOB_SUBST
16922 fi
16923 # Now quote all the things that may contain metacharacters while being
16924 # careful not to overquote the AC_SUBSTed values. We take copies of the
16925 # variables and quote the copies for generation of the libtool script.
16926 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
16927 SED SHELL STRIP \
16928 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
16929 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
16930 deplibs_check_method reload_flag reload_cmds need_locks \
16931 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
16932 lt_cv_sys_global_symbol_to_c_name_address \
16933 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
16934 old_postinstall_cmds old_postuninstall_cmds \
16935 compiler_F77 \
16936 CC_F77 \
16937 LD_F77 \
16938 lt_prog_compiler_wl_F77 \
16939 lt_prog_compiler_pic_F77 \
16940 lt_prog_compiler_static_F77 \
16941 lt_prog_compiler_no_builtin_flag_F77 \
16942 export_dynamic_flag_spec_F77 \
16943 thread_safe_flag_spec_F77 \
16944 whole_archive_flag_spec_F77 \
16945 enable_shared_with_static_runtimes_F77 \
16946 old_archive_cmds_F77 \
16947 old_archive_from_new_cmds_F77 \
16948 predep_objects_F77 \
16949 postdep_objects_F77 \
16950 predeps_F77 \
16951 postdeps_F77 \
16952 compiler_lib_search_path_F77 \
16953 archive_cmds_F77 \
16954 archive_expsym_cmds_F77 \
16955 postinstall_cmds_F77 \
16956 postuninstall_cmds_F77 \
16957 old_archive_from_expsyms_cmds_F77 \
16958 allow_undefined_flag_F77 \
16959 no_undefined_flag_F77 \
16960 export_symbols_cmds_F77 \
16961 hardcode_libdir_flag_spec_F77 \
16962 hardcode_libdir_flag_spec_ld_F77 \
16963 hardcode_libdir_separator_F77 \
16964 hardcode_automatic_F77 \
16965 module_cmds_F77 \
16966 module_expsym_cmds_F77 \
16967 lt_cv_prog_compiler_c_o_F77 \
16968 fix_srcfile_path_F77 \
16969 exclude_expsyms_F77 \
16970 include_expsyms_F77; do
16971
16972 case $var in
16973 old_archive_cmds_F77 | \
16974 old_archive_from_new_cmds_F77 | \
16975 archive_cmds_F77 | \
16976 archive_expsym_cmds_F77 | \
16977 module_cmds_F77 | \
16978 module_expsym_cmds_F77 | \
16979 old_archive_from_expsyms_cmds_F77 | \
16980 export_symbols_cmds_F77 | \
16981 extract_expsyms_cmds | reload_cmds | finish_cmds | \
16982 postinstall_cmds | postuninstall_cmds | \
16983 old_postinstall_cmds | old_postuninstall_cmds | \
16984 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
16985 # Double-quote double-evaled strings.
16986 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
16987 ;;
16988 *)
16989 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
16990 ;;
16991 esac
16992 done
16993
16994 case $lt_echo in
16995 *'\$0 --fallback-echo"')
16996 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
16997 ;;
16998 esac
16999
17000 cfgfile="$ofile"
17001
17002 cat <<__EOF__ >> "$cfgfile"
17003 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
17004
17005 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17006
17007 # Shell to use when invoking shell scripts.
17008 SHELL=$lt_SHELL
17009
17010 # Whether or not to build shared libraries.
17011 build_libtool_libs=$enable_shared
17012
17013 # Whether or not to build static libraries.
17014 build_old_libs=$enable_static
17015
17016 # Whether or not to add -lc for building shared libraries.
17017 build_libtool_need_lc=$archive_cmds_need_lc_F77
17018
17019 # Whether or not to disallow shared libs when runtime libs are static
17020 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
17021
17022 # Whether or not to optimize for fast installation.
17023 fast_install=$enable_fast_install
17024
17025 # The host system.
17026 host_alias=$host_alias
17027 host=$host
17028 host_os=$host_os
17029
17030 # The build system.
17031 build_alias=$build_alias
17032 build=$build
17033 build_os=$build_os
17034
17035 # An echo program that does not interpret backslashes.
17036 echo=$lt_echo
17037
17038 # The archiver.
17039 AR=$lt_AR
17040 AR_FLAGS=$lt_AR_FLAGS
17041
17042 # A C compiler.
17043 LTCC=$lt_LTCC
17044
17045 # LTCC compiler flags.
17046 LTCFLAGS=$lt_LTCFLAGS
17047
17048 # A language-specific compiler.
17049 CC=$lt_compiler_F77
17050
17051 # Is the compiler the GNU C compiler?
17052 with_gcc=$GCC_F77
17053
17054 # An ERE matcher.
17055 EGREP=$lt_EGREP
17056
17057 # The linker used to build libraries.
17058 LD=$lt_LD_F77
17059
17060 # Whether we need hard or soft links.
17061 LN_S=$lt_LN_S
17062
17063 # A BSD-compatible nm program.
17064 NM=$lt_NM
17065
17066 # A symbol stripping program
17067 STRIP=$lt_STRIP
17068
17069 # Used to examine libraries when file_magic_cmd begins "file"
17070 MAGIC_CMD=$MAGIC_CMD
17071
17072 # Used on cygwin: DLL creation program.
17073 DLLTOOL="$DLLTOOL"
17074
17075 # Used on cygwin: object dumper.
17076 OBJDUMP="$OBJDUMP"
17077
17078 # Used on cygwin: assembler.
17079 AS="$AS"
17080
17081 # The name of the directory that contains temporary libtool files.
17082 objdir=$objdir
17083
17084 # How to create reloadable object files.
17085 reload_flag=$lt_reload_flag
17086 reload_cmds=$lt_reload_cmds
17087
17088 # How to pass a linker flag through the compiler.
17089 wl=$lt_lt_prog_compiler_wl_F77
17090
17091 # Object file suffix (normally "o").
17092 objext="$ac_objext"
17093
17094 # Old archive suffix (normally "a").
17095 libext="$libext"
17096
17097 # Shared library suffix (normally ".so").
17098 shrext_cmds='$shrext_cmds'
17099
17100 # Executable file suffix (normally "").
17101 exeext="$exeext"
17102
17103 # Additional compiler flags for building library objects.
17104 pic_flag=$lt_lt_prog_compiler_pic_F77
17105 pic_mode=$pic_mode
17106
17107 # What is the maximum length of a command?
17108 max_cmd_len=$lt_cv_sys_max_cmd_len
17109
17110 # Does compiler simultaneously support -c and -o options?
17111 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
17112
17113 # Must we lock files when doing compilation?
17114 need_locks=$lt_need_locks
17115
17116 # Do we need the lib prefix for modules?
17117 need_lib_prefix=$need_lib_prefix
17118
17119 # Do we need a version for libraries?
17120 need_version=$need_version
17121
17122 # Whether dlopen is supported.
17123 dlopen_support=$enable_dlopen
17124
17125 # Whether dlopen of programs is supported.
17126 dlopen_self=$enable_dlopen_self
17127
17128 # Whether dlopen of statically linked programs is supported.
17129 dlopen_self_static=$enable_dlopen_self_static
17130
17131 # Compiler flag to prevent dynamic linking.
17132 link_static_flag=$lt_lt_prog_compiler_static_F77
17133
17134 # Compiler flag to turn off builtin functions.
17135 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
17136
17137 # Compiler flag to allow reflexive dlopens.
17138 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
17139
17140 # Compiler flag to generate shared objects directly from archives.
17141 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
17142
17143 # Compiler flag to generate thread-safe objects.
17144 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
17145
17146 # Library versioning type.
17147 version_type=$version_type
17148
17149 # Format of library name prefix.
17150 libname_spec=$lt_libname_spec
17151
17152 # List of archive names. First name is the real one, the rest are links.
17153 # The last name is the one that the linker finds with -lNAME.
17154 library_names_spec=$lt_library_names_spec
17155
17156 # The coded name of the library, if different from the real name.
17157 soname_spec=$lt_soname_spec
17158
17159 # Commands used to build and install an old-style archive.
17160 RANLIB=$lt_RANLIB
17161 old_archive_cmds=$lt_old_archive_cmds_F77
17162 old_postinstall_cmds=$lt_old_postinstall_cmds
17163 old_postuninstall_cmds=$lt_old_postuninstall_cmds
17164
17165 # Create an old-style archive from a shared archive.
17166 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
17167
17168 # Create a temporary old-style archive to link instead of a shared archive.
17169 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
17170
17171 # Commands used to build and install a shared archive.
17172 archive_cmds=$lt_archive_cmds_F77
17173 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
17174 postinstall_cmds=$lt_postinstall_cmds
17175 postuninstall_cmds=$lt_postuninstall_cmds
17176
17177 # Commands used to build a loadable module (assumed same as above if empty)
17178 module_cmds=$lt_module_cmds_F77
17179 module_expsym_cmds=$lt_module_expsym_cmds_F77
17180
17181 # Commands to strip libraries.
17182 old_striplib=$lt_old_striplib
17183 striplib=$lt_striplib
17184
17185 # Dependencies to place before the objects being linked to create a
17186 # shared library.
17187 predep_objects=$lt_predep_objects_F77
17188
17189 # Dependencies to place after the objects being linked to create a
17190 # shared library.
17191 postdep_objects=$lt_postdep_objects_F77
17192
17193 # Dependencies to place before the objects being linked to create a
17194 # shared library.
17195 predeps=$lt_predeps_F77
17196
17197 # Dependencies to place after the objects being linked to create a
17198 # shared library.
17199 postdeps=$lt_postdeps_F77
17200
17201 # The library search path used internally by the compiler when linking
17202 # a shared library.
17203 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
17204
17205 # Method to check whether dependent libraries are shared objects.
17206 deplibs_check_method=$lt_deplibs_check_method
17207
17208 # Command to use when deplibs_check_method == file_magic.
17209 file_magic_cmd=$lt_file_magic_cmd
17210
17211 # Flag that allows shared libraries with undefined symbols to be built.
17212 allow_undefined_flag=$lt_allow_undefined_flag_F77
17213
17214 # Flag that forces no undefined symbols.
17215 no_undefined_flag=$lt_no_undefined_flag_F77
17216
17217 # Commands used to finish a libtool library installation in a directory.
17218 finish_cmds=$lt_finish_cmds
17219
17220 # Same as above, but a single script fragment to be evaled but not shown.
17221 finish_eval=$lt_finish_eval
17222
17223 # Take the output of nm and produce a listing of raw symbols and C names.
17224 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
17225
17226 # Transform the output of nm in a proper C declaration
17227 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
17228
17229 # Transform the output of nm in a C name address pair
17230 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
17231
17232 # This is the shared library runtime path variable.
17233 runpath_var=$runpath_var
17234
17235 # This is the shared library path variable.
17236 shlibpath_var=$shlibpath_var
17237
17238 # Is shlibpath searched before the hard-coded library search path?
17239 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17240
17241 # How to hardcode a shared library path into an executable.
17242 hardcode_action=$hardcode_action_F77
17243
17244 # Whether we should hardcode library paths into libraries.
17245 hardcode_into_libs=$hardcode_into_libs
17246
17247 # Flag to hardcode \$libdir into a binary during linking.
17248 # This must work even if \$libdir does not exist.
17249 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
17250
17251 # If ld is used when linking, flag to hardcode \$libdir into
17252 # a binary during linking. This must work even if \$libdir does
17253 # not exist.
17254 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
17255
17256 # Whether we need a single -rpath flag with a separated argument.
17257 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
17258
17259 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
17260 # resulting binary.
17261 hardcode_direct=$hardcode_direct_F77
17262
17263 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
17264 # resulting binary.
17265 hardcode_minus_L=$hardcode_minus_L_F77
17266
17267 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
17268 # the resulting binary.
17269 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
17270
17271 # Set to yes if building a shared library automatically hardcodes DIR into the library
17272 # and all subsequent libraries and executables linked against it.
17273 hardcode_automatic=$hardcode_automatic_F77
17274
17275 # Variables whose values should be saved in libtool wrapper scripts and
17276 # restored at relink time.
17277 variables_saved_for_relink="$variables_saved_for_relink"
17278
17279 # Whether libtool must link a program against all its dependency libraries.
17280 link_all_deplibs=$link_all_deplibs_F77
17281
17282 # Compile-time system search path for libraries
17283 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17284
17285 # Run-time system search path for libraries
17286 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
17287
17288 # Fix the shell variable \$srcfile for the compiler.
17289 fix_srcfile_path=$lt_fix_srcfile_path
17290
17291 # Set to yes if exported symbols are required.
17292 always_export_symbols=$always_export_symbols_F77
17293
17294 # The commands to list exported symbols.
17295 export_symbols_cmds=$lt_export_symbols_cmds_F77
17296
17297 # The commands to extract the exported symbol list from a shared archive.
17298 extract_expsyms_cmds=$lt_extract_expsyms_cmds
17299
17300 # Symbols that should not be listed in the preloaded symbols.
17301 exclude_expsyms=$lt_exclude_expsyms_F77
17302
17303 # Symbols that must always be exported.
17304 include_expsyms=$lt_include_expsyms_F77
17305
17306 # ### END LIBTOOL TAG CONFIG: $tagname
17307
17308 __EOF__
17309
17310
17311 else
17312 # If there is no Makefile yet, we rely on a make rule to execute
17313 # `config.status --recheck' to rerun these tests and create the
17314 # libtool script then.
17315 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
17316 if test -f "$ltmain_in"; then
17317 test -f Makefile && make "$ltmain"
17318 fi
17319 fi
17320
17321
17322 ac_ext=c
17323 ac_cpp='$CPP $CPPFLAGS'
17324 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17325 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17326 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17327
17328 CC="$lt_save_CC"
17329
17330 else
17331 tagname=""
17332 fi
17333 ;;
17334
17335 GCJ)
17336 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
17337
17338
17339 # Source file extension for Java test sources.
17340 ac_ext=java
17341
17342 # Object file extension for compiled Java test sources.
17343 objext=o
17344 objext_GCJ=$objext
17345
17346 # Code to be used in simple compile tests
17347 lt_simple_compile_test_code="class foo {}"
17348
17349 # Code to be used in simple link tests
17350 lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }'
17351
17352 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
17353
17354 # If no C compiler was specified, use CC.
17355 LTCC=${LTCC-"$CC"}
17356
17357 # If no C compiler flags were specified, use CFLAGS.
17358 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
17359
17360 # Allow CC to be a program name with arguments.
17361 compiler=$CC
17362
17363
17364 # save warnings/boilerplate of simple test code
17365 ac_outfile=conftest.$ac_objext
17366 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
17367 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
17368 _lt_compiler_boilerplate=`cat conftest.err`
17369 $rm conftest*
17370
17371 ac_outfile=conftest.$ac_objext
17372 echo "$lt_simple_link_test_code" >conftest.$ac_ext
17373 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
17374 _lt_linker_boilerplate=`cat conftest.err`
17375 $rm conftest*
17376
17377
17378 # Allow CC to be a program name with arguments.
17379 lt_save_CC="$CC"
17380 CC=${GCJ-"gcj"}
17381 compiler=$CC
17382 compiler_GCJ=$CC
17383 for cc_temp in $compiler""; do
17384 case $cc_temp in
17385 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
17386 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
17387 \-*) ;;
17388 *) break;;
17389 esac
17390 done
17391 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
17392
17393
17394 # GCJ did not exist at the time GCC didn't implicitly link libc in.
17395 archive_cmds_need_lc_GCJ=no
17396
17397 old_archive_cmds_GCJ=$old_archive_cmds
17398
17399
17400 lt_prog_compiler_no_builtin_flag_GCJ=
17401
17402 if test "$GCC" = yes; then
17403 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
17404
17405
17406 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
17407 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
17408 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
17409 echo $ECHO_N "(cached) $ECHO_C" >&6
17410 else
17411 lt_cv_prog_compiler_rtti_exceptions=no
17412 ac_outfile=conftest.$ac_objext
17413 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17414 lt_compiler_flag="-fno-rtti -fno-exceptions"
17415 # Insert the option either (1) after the last *FLAGS variable, or
17416 # (2) before a word containing "conftest.", or (3) at the end.
17417 # Note that $ac_compile itself does not contain backslashes and begins
17418 # with a dollar sign (not a hyphen), so the echo should work correctly.
17419 # The option is referenced via a variable to avoid confusing sed.
17420 lt_compile=`echo "$ac_compile" | $SED \
17421 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17422 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17423 -e 's:$: $lt_compiler_flag:'`
17424 (eval echo "\"\$as_me:17425: $lt_compile\"" >&5)
17425 (eval "$lt_compile" 2>conftest.err)
17426 ac_status=$?
17427 cat conftest.err >&5
17428 echo "$as_me:17429: \$? = $ac_status" >&5
17429 if (exit $ac_status) && test -s "$ac_outfile"; then
17430 # The compiler can only warn and ignore the option if not recognized
17431 # So say no if there are warnings other than the usual output.
17432 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
17433 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17434 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
17435 lt_cv_prog_compiler_rtti_exceptions=yes
17436 fi
17437 fi
17438 $rm conftest*
17439
17440 fi
17441 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
17442 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
17443
17444 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
17445 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
17446 else
17447 :
17448 fi
17449
17450 fi
17451
17452 lt_prog_compiler_wl_GCJ=
17453 lt_prog_compiler_pic_GCJ=
17454 lt_prog_compiler_static_GCJ=
17455
17456 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
17457 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
17458
17459 if test "$GCC" = yes; then
17460 lt_prog_compiler_wl_GCJ='-Wl,'
17461 lt_prog_compiler_static_GCJ='-static'
17462
17463 case $host_os in
17464 aix*)
17465 # All AIX code is PIC.
17466 if test "$host_cpu" = ia64; then
17467 # AIX 5 now supports IA64 processor
17468 lt_prog_compiler_static_GCJ='-Bstatic'
17469 fi
17470 ;;
17471
17472 amigaos*)
17473 # FIXME: we need at least 68020 code to build shared libraries, but
17474 # adding the `-m68020' flag to GCC prevents building anything better,
17475 # like `-m68040'.
17476 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
17477 ;;
17478
17479 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
17480 # PIC is the default for these OSes.
17481 ;;
17482
17483 mingw* | cygwin* | pw32* | os2*)
17484 # This hack is so that the source file can tell whether it is being
17485 # built for inclusion in a dll (and should export symbols for example).
17486 # Although the cygwin gcc ignores -fPIC, still need this for old-style
17487 # (--disable-auto-import) libraries
17488 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
17489 ;;
17490
17491 darwin* | rhapsody*)
17492 # PIC is the default on this platform
17493 # Common symbols not allowed in MH_DYLIB files
17494 lt_prog_compiler_pic_GCJ='-fno-common'
17495 ;;
17496
17497 interix[3-9]*)
17498 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
17499 # Instead, we relocate shared libraries at runtime.
17500 ;;
17501
17502 msdosdjgpp*)
17503 # Just because we use GCC doesn't mean we suddenly get shared libraries
17504 # on systems that don't support them.
17505 lt_prog_compiler_can_build_shared_GCJ=no
17506 enable_shared=no
17507 ;;
17508
17509 sysv4*MP*)
17510 if test -d /usr/nec; then
17511 lt_prog_compiler_pic_GCJ=-Kconform_pic
17512 fi
17513 ;;
17514
17515 hpux*)
17516 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
17517 # not for PA HP-UX.
17518 case $host_cpu in
17519 hppa*64*|ia64*)
17520 # +Z the default
17521 ;;
17522 *)
17523 lt_prog_compiler_pic_GCJ='-fPIC'
17524 ;;
17525 esac
17526 ;;
17527
17528 *)
17529 lt_prog_compiler_pic_GCJ='-fPIC'
17530 ;;
17531 esac
17532 else
17533 # PORTME Check for flag to pass linker flags through the system compiler.
17534 case $host_os in
17535 aix*)
17536 lt_prog_compiler_wl_GCJ='-Wl,'
17537 if test "$host_cpu" = ia64; then
17538 # AIX 5 now supports IA64 processor
17539 lt_prog_compiler_static_GCJ='-Bstatic'
17540 else
17541 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
17542 fi
17543 ;;
17544 darwin*)
17545 # PIC is the default on this platform
17546 # Common symbols not allowed in MH_DYLIB files
17547 case $cc_basename in
17548 xlc*)
17549 lt_prog_compiler_pic_GCJ='-qnocommon'
17550 lt_prog_compiler_wl_GCJ='-Wl,'
17551 ;;
17552 esac
17553 ;;
17554
17555 mingw* | cygwin* | pw32* | os2*)
17556 # This hack is so that the source file can tell whether it is being
17557 # built for inclusion in a dll (and should export symbols for example).
17558 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
17559 ;;
17560
17561 hpux9* | hpux10* | hpux11*)
17562 lt_prog_compiler_wl_GCJ='-Wl,'
17563 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
17564 # not for PA HP-UX.
17565 case $host_cpu in
17566 hppa*64*|ia64*)
17567 # +Z the default
17568 ;;
17569 *)
17570 lt_prog_compiler_pic_GCJ='+Z'
17571 ;;
17572 esac
17573 # Is there a better lt_prog_compiler_static that works with the bundled CC?
17574 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
17575 ;;
17576
17577 irix5* | irix6* | nonstopux*)
17578 lt_prog_compiler_wl_GCJ='-Wl,'
17579 # PIC (with -KPIC) is the default.
17580 lt_prog_compiler_static_GCJ='-non_shared'
17581 ;;
17582
17583 newsos6)
17584 lt_prog_compiler_pic_GCJ='-KPIC'
17585 lt_prog_compiler_static_GCJ='-Bstatic'
17586 ;;
17587
17588 linux* | k*bsd*-gnu)
17589 case $cc_basename in
17590 icc* | ecc*)
17591 lt_prog_compiler_wl_GCJ='-Wl,'
17592 lt_prog_compiler_pic_GCJ='-KPIC'
17593 lt_prog_compiler_static_GCJ='-static'
17594 ;;
17595 pgcc* | pgf77* | pgf90* | pgf95*)
17596 # Portland Group compilers (*not* the Pentium gcc compiler,
17597 # which looks to be a dead project)
17598 lt_prog_compiler_wl_GCJ='-Wl,'
17599 lt_prog_compiler_pic_GCJ='-fpic'
17600 lt_prog_compiler_static_GCJ='-Bstatic'
17601 ;;
17602 ccc*)
17603 lt_prog_compiler_wl_GCJ='-Wl,'
17604 # All Alpha code is PIC.
17605 lt_prog_compiler_static_GCJ='-non_shared'
17606 ;;
17607 *)
17608 case `$CC -V 2>&1 | sed 5q` in
17609 *Sun\ C*)
17610 # Sun C 5.9
17611 lt_prog_compiler_pic_GCJ='-KPIC'
17612 lt_prog_compiler_static_GCJ='-Bstatic'
17613 lt_prog_compiler_wl_GCJ='-Wl,'
17614 ;;
17615 *Sun\ F*)
17616 # Sun Fortran 8.3 passes all unrecognized flags to the linker
17617 lt_prog_compiler_pic_GCJ='-KPIC'
17618 lt_prog_compiler_static_GCJ='-Bstatic'
17619 lt_prog_compiler_wl_GCJ=''
17620 ;;
17621 esac
17622 ;;
17623 esac
17624 ;;
17625
17626 osf3* | osf4* | osf5*)
17627 lt_prog_compiler_wl_GCJ='-Wl,'
17628 # All OSF/1 code is PIC.
17629 lt_prog_compiler_static_GCJ='-non_shared'
17630 ;;
17631
17632 rdos*)
17633 lt_prog_compiler_static_GCJ='-non_shared'
17634 ;;
17635
17636 solaris*)
17637 lt_prog_compiler_pic_GCJ='-KPIC'
17638 lt_prog_compiler_static_GCJ='-Bstatic'
17639 case $cc_basename in
17640 f77* | f90* | f95*)
17641 lt_prog_compiler_wl_GCJ='-Qoption ld ';;
17642 *)
17643 lt_prog_compiler_wl_GCJ='-Wl,';;
17644 esac
17645 ;;
17646
17647 sunos4*)
17648 lt_prog_compiler_wl_GCJ='-Qoption ld '
17649 lt_prog_compiler_pic_GCJ='-PIC'
17650 lt_prog_compiler_static_GCJ='-Bstatic'
17651 ;;
17652
17653 sysv4 | sysv4.2uw2* | sysv4.3*)
17654 lt_prog_compiler_wl_GCJ='-Wl,'
17655 lt_prog_compiler_pic_GCJ='-KPIC'
17656 lt_prog_compiler_static_GCJ='-Bstatic'
17657 ;;
17658
17659 sysv4*MP*)
17660 if test -d /usr/nec ;then
17661 lt_prog_compiler_pic_GCJ='-Kconform_pic'
17662 lt_prog_compiler_static_GCJ='-Bstatic'
17663 fi
17664 ;;
17665
17666 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
17667 lt_prog_compiler_wl_GCJ='-Wl,'
17668 lt_prog_compiler_pic_GCJ='-KPIC'
17669 lt_prog_compiler_static_GCJ='-Bstatic'
17670 ;;
17671
17672 unicos*)
17673 lt_prog_compiler_wl_GCJ='-Wl,'
17674 lt_prog_compiler_can_build_shared_GCJ=no
17675 ;;
17676
17677 uts4*)
17678 lt_prog_compiler_pic_GCJ='-pic'
17679 lt_prog_compiler_static_GCJ='-Bstatic'
17680 ;;
17681
17682 *)
17683 lt_prog_compiler_can_build_shared_GCJ=no
17684 ;;
17685 esac
17686 fi
17687
17688 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
17689 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; }
17690
17691 #
17692 # Check to make sure the PIC flag actually works.
17693 #
17694 if test -n "$lt_prog_compiler_pic_GCJ"; then
17695
17696 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
17697 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; }
17698 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
17699 echo $ECHO_N "(cached) $ECHO_C" >&6
17700 else
17701 lt_prog_compiler_pic_works_GCJ=no
17702 ac_outfile=conftest.$ac_objext
17703 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17704 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
17705 # Insert the option either (1) after the last *FLAGS variable, or
17706 # (2) before a word containing "conftest.", or (3) at the end.
17707 # Note that $ac_compile itself does not contain backslashes and begins
17708 # with a dollar sign (not a hyphen), so the echo should work correctly.
17709 # The option is referenced via a variable to avoid confusing sed.
17710 lt_compile=`echo "$ac_compile" | $SED \
17711 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17712 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17713 -e 's:$: $lt_compiler_flag:'`
17714 (eval echo "\"\$as_me:17715: $lt_compile\"" >&5)
17715 (eval "$lt_compile" 2>conftest.err)
17716 ac_status=$?
17717 cat conftest.err >&5
17718 echo "$as_me:17719: \$? = $ac_status" >&5
17719 if (exit $ac_status) && test -s "$ac_outfile"; then
17720 # The compiler can only warn and ignore the option if not recognized
17721 # So say no if there are warnings other than the usual output.
17722 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
17723 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17724 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
17725 lt_prog_compiler_pic_works_GCJ=yes
17726 fi
17727 fi
17728 $rm conftest*
17729
17730 fi
17731 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
17732 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6; }
17733
17734 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
17735 case $lt_prog_compiler_pic_GCJ in
17736 "" | " "*) ;;
17737 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
17738 esac
17739 else
17740 lt_prog_compiler_pic_GCJ=
17741 lt_prog_compiler_can_build_shared_GCJ=no
17742 fi
17743
17744 fi
17745 case $host_os in
17746 # For platforms which do not support PIC, -DPIC is meaningless:
17747 *djgpp*)
17748 lt_prog_compiler_pic_GCJ=
17749 ;;
17750 *)
17751 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
17752 ;;
17753 esac
17754
17755 #
17756 # Check to make sure the static flag actually works.
17757 #
17758 wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
17759 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
17760 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
17761 if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then
17762 echo $ECHO_N "(cached) $ECHO_C" >&6
17763 else
17764 lt_prog_compiler_static_works_GCJ=no
17765 save_LDFLAGS="$LDFLAGS"
17766 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
17767 echo "$lt_simple_link_test_code" > conftest.$ac_ext
17768 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
17769 # The linker can only warn and ignore the option if not recognized
17770 # So say no if there are warnings
17771 if test -s conftest.err; then
17772 # Append any errors to the config.log.
17773 cat conftest.err 1>&5
17774 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
17775 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17776 if diff conftest.exp conftest.er2 >/dev/null; then
17777 lt_prog_compiler_static_works_GCJ=yes
17778 fi
17779 else
17780 lt_prog_compiler_static_works_GCJ=yes
17781 fi
17782 fi
17783 $rm conftest*
17784 LDFLAGS="$save_LDFLAGS"
17785
17786 fi
17787 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5
17788 echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6; }
17789
17790 if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then
17791 :
17792 else
17793 lt_prog_compiler_static_GCJ=
17794 fi
17795
17796
17797 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
17798 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
17799 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
17800 echo $ECHO_N "(cached) $ECHO_C" >&6
17801 else
17802 lt_cv_prog_compiler_c_o_GCJ=no
17803 $rm -r conftest 2>/dev/null
17804 mkdir conftest
17805 cd conftest
17806 mkdir out
17807 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17808
17809 lt_compiler_flag="-o out/conftest2.$ac_objext"
17810 # Insert the option either (1) after the last *FLAGS variable, or
17811 # (2) before a word containing "conftest.", or (3) at the end.
17812 # Note that $ac_compile itself does not contain backslashes and begins
17813 # with a dollar sign (not a hyphen), so the echo should work correctly.
17814 lt_compile=`echo "$ac_compile" | $SED \
17815 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17816 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17817 -e 's:$: $lt_compiler_flag:'`
17818 (eval echo "\"\$as_me:17819: $lt_compile\"" >&5)
17819 (eval "$lt_compile" 2>out/conftest.err)
17820 ac_status=$?
17821 cat out/conftest.err >&5
17822 echo "$as_me:17823: \$? = $ac_status" >&5
17823 if (exit $ac_status) && test -s out/conftest2.$ac_objext
17824 then
17825 # The compiler can only warn and ignore the option if not recognized
17826 # So say no if there are warnings
17827 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
17828 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
17829 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
17830 lt_cv_prog_compiler_c_o_GCJ=yes
17831 fi
17832 fi
17833 chmod u+w . 2>&5
17834 $rm conftest*
17835 # SGI C++ compiler will create directory out/ii_files/ for
17836 # template instantiation
17837 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
17838 $rm out/* && rmdir out
17839 cd ..
17840 rmdir conftest
17841 $rm conftest*
17842
17843 fi
17844 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
17845 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; }
17846
17847
17848 hard_links="nottested"
17849 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
17850 # do not overwrite the value of need_locks provided by the user
17851 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
17852 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
17853 hard_links=yes
17854 $rm conftest*
17855 ln conftest.a conftest.b 2>/dev/null && hard_links=no
17856 touch conftest.a
17857 ln conftest.a conftest.b 2>&5 || hard_links=no
17858 ln conftest.a conftest.b 2>/dev/null && hard_links=no
17859 { echo "$as_me:$LINENO: result: $hard_links" >&5
17860 echo "${ECHO_T}$hard_links" >&6; }
17861 if test "$hard_links" = no; then
17862 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
17863 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
17864 need_locks=warn
17865 fi
17866 else
17867 need_locks=no
17868 fi
17869
17870 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
17871 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
17872
17873 runpath_var=
17874 allow_undefined_flag_GCJ=
17875 enable_shared_with_static_runtimes_GCJ=no
17876 archive_cmds_GCJ=
17877 archive_expsym_cmds_GCJ=
17878 old_archive_From_new_cmds_GCJ=
17879 old_archive_from_expsyms_cmds_GCJ=
17880 export_dynamic_flag_spec_GCJ=
17881 whole_archive_flag_spec_GCJ=
17882 thread_safe_flag_spec_GCJ=
17883 hardcode_libdir_flag_spec_GCJ=
17884 hardcode_libdir_flag_spec_ld_GCJ=
17885 hardcode_libdir_separator_GCJ=
17886 hardcode_direct_GCJ=no
17887 hardcode_minus_L_GCJ=no
17888 hardcode_shlibpath_var_GCJ=unsupported
17889 link_all_deplibs_GCJ=unknown
17890 hardcode_automatic_GCJ=no
17891 module_cmds_GCJ=
17892 module_expsym_cmds_GCJ=
17893 always_export_symbols_GCJ=no
17894 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
17895 # include_expsyms should be a list of space-separated symbols to be *always*
17896 # included in the symbol list
17897 include_expsyms_GCJ=
17898 # exclude_expsyms can be an extended regexp of symbols to exclude
17899 # it will be wrapped by ` (' and `)$', so one must not match beginning or
17900 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
17901 # as well as any symbol that contains `d'.
17902 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
17903 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
17904 # platforms (ab)use it in PIC code, but their linkers get confused if
17905 # the symbol is explicitly referenced. Since portable code cannot
17906 # rely on this symbol name, it's probably fine to never include it in
17907 # preloaded symbol tables.
17908 extract_expsyms_cmds=
17909 # Just being paranoid about ensuring that cc_basename is set.
17910 for cc_temp in $compiler""; do
17911 case $cc_temp in
17912 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
17913 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
17914 \-*) ;;
17915 *) break;;
17916 esac
17917 done
17918 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
17919
17920 case $host_os in
17921 cygwin* | mingw* | pw32*)
17922 # FIXME: the MSVC++ port hasn't been tested in a loooong time
17923 # When not using gcc, we currently assume that we are using
17924 # Microsoft Visual C++.
17925 if test "$GCC" != yes; then
17926 with_gnu_ld=no
17927 fi
17928 ;;
17929 interix*)
17930 # we just hope/assume this is gcc and not c89 (= MSVC++)
17931 with_gnu_ld=yes
17932 ;;
17933 openbsd*)
17934 with_gnu_ld=no
17935 ;;
17936 esac
17937
17938 ld_shlibs_GCJ=yes
17939 if test "$with_gnu_ld" = yes; then
17940 # If archive_cmds runs LD, not CC, wlarc should be empty
17941 wlarc='${wl}'
17942
17943 # Set some defaults for GNU ld with shared library support. These
17944 # are reset later if shared libraries are not supported. Putting them
17945 # here allows them to be overridden if necessary.
17946 runpath_var=LD_RUN_PATH
17947 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
17948 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
17949 # ancient GNU ld didn't support --whole-archive et. al.
17950 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
17951 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
17952 else
17953 whole_archive_flag_spec_GCJ=
17954 fi
17955 supports_anon_versioning=no
17956 case `$LD -v 2>/dev/null` in
17957 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
17958 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
17959 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
17960 *\ 2.11.*) ;; # other 2.11 versions
17961 *) supports_anon_versioning=yes ;;
17962 esac
17963
17964 # See if GNU ld supports shared libraries.
17965 case $host_os in
17966 aix3* | aix4* | aix5*)
17967 # On AIX/PPC, the GNU linker is very broken
17968 if test "$host_cpu" != ia64; then
17969 ld_shlibs_GCJ=no
17970 cat <<EOF 1>&2
17971
17972 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
17973 *** to be unable to reliably create shared libraries on AIX.
17974 *** Therefore, libtool is disabling shared libraries support. If you
17975 *** really care for shared libraries, you may want to modify your PATH
17976 *** so that a non-GNU linker is found, and then restart.
17977
17978 EOF
17979 fi
17980 ;;
17981
17982 amigaos*)
17983 archive_cmds_GCJ='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
17984 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17985 hardcode_minus_L_GCJ=yes
17986
17987 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
17988 # that the semantics of dynamic libraries on AmigaOS, at least up
17989 # to version 4, is to share data among multiple programs linked
17990 # with the same dynamic library. Since this doesn't match the
17991 # behavior of shared libraries on other platforms, we can't use
17992 # them.
17993 ld_shlibs_GCJ=no
17994 ;;
17995
17996 beos*)
17997 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17998 allow_undefined_flag_GCJ=unsupported
17999 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
18000 # support --undefined. This deserves some investigation. FIXME
18001 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18002 else
18003 ld_shlibs_GCJ=no
18004 fi
18005 ;;
18006
18007 cygwin* | mingw* | pw32*)
18008 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
18009 # as there is no search path for DLLs.
18010 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18011 allow_undefined_flag_GCJ=unsupported
18012 always_export_symbols_GCJ=no
18013 enable_shared_with_static_runtimes_GCJ=yes
18014 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
18015
18016 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
18017 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
18018 # If the export-symbols file already is a .def file (1st line
18019 # is EXPORTS), use it as is; otherwise, prepend...
18020 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
18021 cp $export_symbols $output_objdir/$soname.def;
18022 else
18023 echo EXPORTS > $output_objdir/$soname.def;
18024 cat $export_symbols >> $output_objdir/$soname.def;
18025 fi~
18026 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
18027 else
18028 ld_shlibs_GCJ=no
18029 fi
18030 ;;
18031
18032 interix[3-9]*)
18033 hardcode_direct_GCJ=no
18034 hardcode_shlibpath_var_GCJ=no
18035 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
18036 export_dynamic_flag_spec_GCJ='${wl}-E'
18037 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
18038 # Instead, shared libraries are loaded at an image base (0x10000000 by
18039 # default) and relocated if they conflict, which is a slow very memory
18040 # consuming and fragmenting process. To avoid this, we pick a random,
18041 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
18042 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
18043 archive_cmds_GCJ='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
18044 archive_expsym_cmds_GCJ='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
18045 ;;
18046
18047 gnu* | linux* | k*bsd*-gnu)
18048 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
18049 tmp_addflag=
18050 case $cc_basename,$host_cpu in
18051 pgcc*) # Portland Group C compiler
18052 whole_archive_flag_spec_GCJ='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
18053 tmp_addflag=' $pic_flag'
18054 ;;
18055 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
18056 whole_archive_flag_spec_GCJ='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
18057 tmp_addflag=' $pic_flag -Mnomain' ;;
18058 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
18059 tmp_addflag=' -i_dynamic' ;;
18060 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
18061 tmp_addflag=' -i_dynamic -nofor_main' ;;
18062 ifc* | ifort*) # Intel Fortran compiler
18063 tmp_addflag=' -nofor_main' ;;
18064 esac
18065 case `$CC -V 2>&1 | sed 5q` in
18066 *Sun\ C*) # Sun C 5.9
18067 whole_archive_flag_spec_GCJ='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
18068 tmp_sharedflag='-G' ;;
18069 *Sun\ F*) # Sun Fortran 8.3
18070 tmp_sharedflag='-G' ;;
18071 *)
18072 tmp_sharedflag='-shared' ;;
18073 esac
18074 archive_cmds_GCJ='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18075
18076 if test $supports_anon_versioning = yes; then
18077 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
18078 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
18079 $echo "local: *; };" >> $output_objdir/$libname.ver~
18080 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
18081 fi
18082 else
18083 ld_shlibs_GCJ=no
18084 fi
18085 ;;
18086
18087 netbsd*)
18088 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18089 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
18090 wlarc=
18091 else
18092 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18093 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
18094 fi
18095 ;;
18096
18097 solaris*)
18098 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
18099 ld_shlibs_GCJ=no
18100 cat <<EOF 1>&2
18101
18102 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
18103 *** create shared libraries on Solaris systems. Therefore, libtool
18104 *** is disabling shared libraries support. We urge you to upgrade GNU
18105 *** binutils to release 2.9.1 or newer. Another option is to modify
18106 *** your PATH or compiler configuration so that the native linker is
18107 *** used, and then restart.
18108
18109 EOF
18110 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
18111 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18112 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
18113 else
18114 ld_shlibs_GCJ=no
18115 fi
18116 ;;
18117
18118 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
18119 case `$LD -v 2>&1` in
18120 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
18121 ld_shlibs_GCJ=no
18122 cat <<_LT_EOF 1>&2
18123
18124 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
18125 *** reliably create shared libraries on SCO systems. Therefore, libtool
18126 *** is disabling shared libraries support. We urge you to upgrade GNU
18127 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
18128 *** your PATH or compiler configuration so that the native linker is
18129 *** used, and then restart.
18130
18131 _LT_EOF
18132 ;;
18133 *)
18134 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
18135 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
18136 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
18137 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
18138 else
18139 ld_shlibs_GCJ=no
18140 fi
18141 ;;
18142 esac
18143 ;;
18144
18145 sunos4*)
18146 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
18147 wlarc=
18148 hardcode_direct_GCJ=yes
18149 hardcode_shlibpath_var_GCJ=no
18150 ;;
18151
18152 *)
18153 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
18154 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18155 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
18156 else
18157 ld_shlibs_GCJ=no
18158 fi
18159 ;;
18160 esac
18161
18162 if test "$ld_shlibs_GCJ" = no; then
18163 runpath_var=
18164 hardcode_libdir_flag_spec_GCJ=
18165 export_dynamic_flag_spec_GCJ=
18166 whole_archive_flag_spec_GCJ=
18167 fi
18168 else
18169 # PORTME fill in a description of your system's linker (not GNU ld)
18170 case $host_os in
18171 aix3*)
18172 allow_undefined_flag_GCJ=unsupported
18173 always_export_symbols_GCJ=yes
18174 archive_expsym_cmds_GCJ='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
18175 # Note: this linker hardcodes the directories in LIBPATH if there
18176 # are no directories specified by -L.
18177 hardcode_minus_L_GCJ=yes
18178 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
18179 # Neither direct hardcoding nor static linking is supported with a
18180 # broken collect2.
18181 hardcode_direct_GCJ=unsupported
18182 fi
18183 ;;
18184
18185 aix4* | aix5*)
18186 if test "$host_cpu" = ia64; then
18187 # On IA64, the linker does run time linking by default, so we don't
18188 # have to do anything special.
18189 aix_use_runtimelinking=no
18190 exp_sym_flag='-Bexport'
18191 no_entry_flag=""
18192 else
18193 # If we're using GNU nm, then we don't want the "-C" option.
18194 # -C means demangle to AIX nm, but means don't demangle with GNU nm
18195 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
18196 export_symbols_cmds_GCJ='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
18197 else
18198 export_symbols_cmds_GCJ='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
18199 fi
18200 aix_use_runtimelinking=no
18201
18202 # Test if we are trying to use run time linking or normal
18203 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
18204 # need to do runtime linking.
18205 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
18206 for ld_flag in $LDFLAGS; do
18207 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
18208 aix_use_runtimelinking=yes
18209 break
18210 fi
18211 done
18212 ;;
18213 esac
18214
18215 exp_sym_flag='-bexport'
18216 no_entry_flag='-bnoentry'
18217 fi
18218
18219 # When large executables or shared objects are built, AIX ld can
18220 # have problems creating the table of contents. If linking a library
18221 # or program results in "error TOC overflow" add -mminimal-toc to
18222 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
18223 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
18224
18225 archive_cmds_GCJ=''
18226 hardcode_direct_GCJ=yes
18227 hardcode_libdir_separator_GCJ=':'
18228 link_all_deplibs_GCJ=yes
18229
18230 if test "$GCC" = yes; then
18231 case $host_os in aix4.[012]|aix4.[012].*)
18232 # We only want to do this on AIX 4.2 and lower, the check
18233 # below for broken collect2 doesn't work under 4.3+
18234 collect2name=`${CC} -print-prog-name=collect2`
18235 if test -f "$collect2name" && \
18236 strings "$collect2name" | grep resolve_lib_name >/dev/null
18237 then
18238 # We have reworked collect2
18239 :
18240 else
18241 # We have old collect2
18242 hardcode_direct_GCJ=unsupported
18243 # It fails to find uninstalled libraries when the uninstalled
18244 # path is not listed in the libpath. Setting hardcode_minus_L
18245 # to unsupported forces relinking
18246 hardcode_minus_L_GCJ=yes
18247 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18248 hardcode_libdir_separator_GCJ=
18249 fi
18250 ;;
18251 esac
18252 shared_flag='-shared'
18253 if test "$aix_use_runtimelinking" = yes; then
18254 shared_flag="$shared_flag "'${wl}-G'
18255 fi
18256 else
18257 # not using gcc
18258 if test "$host_cpu" = ia64; then
18259 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
18260 # chokes on -Wl,-G. The following line is correct:
18261 shared_flag='-G'
18262 else
18263 if test "$aix_use_runtimelinking" = yes; then
18264 shared_flag='${wl}-G'
18265 else
18266 shared_flag='${wl}-bM:SRE'
18267 fi
18268 fi
18269 fi
18270
18271 # It seems that -bexpall does not export symbols beginning with
18272 # underscore (_), so it is better to generate a list of symbols to export.
18273 always_export_symbols_GCJ=yes
18274 if test "$aix_use_runtimelinking" = yes; then
18275 # Warning - without using the other runtime loading flags (-brtl),
18276 # -berok will link without error, but may produce a broken library.
18277 allow_undefined_flag_GCJ='-berok'
18278 # Determine the default libpath from the value encoded in an empty executable.
18279 cat >conftest.$ac_ext <<_ACEOF
18280 /* confdefs.h. */
18281 _ACEOF
18282 cat confdefs.h >>conftest.$ac_ext
18283 cat >>conftest.$ac_ext <<_ACEOF
18284 /* end confdefs.h. */
18285
18286 int
18287 main ()
18288 {
18289
18290 ;
18291 return 0;
18292 }
18293 _ACEOF
18294 rm -f conftest.$ac_objext conftest$ac_exeext
18295 if { (ac_try="$ac_link"
18296 case "(($ac_try" in
18297 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18298 *) ac_try_echo=$ac_try;;
18299 esac
18300 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18301 (eval "$ac_link") 2>conftest.er1
18302 ac_status=$?
18303 grep -v '^ *+' conftest.er1 >conftest.err
18304 rm -f conftest.er1
18305 cat conftest.err >&5
18306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18307 (exit $ac_status); } && {
18308 test -z "$ac_c_werror_flag" ||
18309 test ! -s conftest.err
18310 } && test -s conftest$ac_exeext &&
18311 $as_test_x conftest$ac_exeext; then
18312
18313 lt_aix_libpath_sed='
18314 /Import File Strings/,/^$/ {
18315 /^0/ {
18316 s/^0 *\(.*\)$/\1/
18317 p
18318 }
18319 }'
18320 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18321 # Check for a 64-bit object if we didn't find anything.
18322 if test -z "$aix_libpath"; then
18323 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18324 fi
18325 else
18326 echo "$as_me: failed program was:" >&5
18327 sed 's/^/| /' conftest.$ac_ext >&5
18328
18329
18330 fi
18331
18332 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18333 conftest$ac_exeext conftest.$ac_ext
18334 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18335
18336 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
18337 archive_expsym_cmds_GCJ="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
18338 else
18339 if test "$host_cpu" = ia64; then
18340 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
18341 allow_undefined_flag_GCJ="-z nodefs"
18342 archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
18343 else
18344 # Determine the default libpath from the value encoded in an empty executable.
18345 cat >conftest.$ac_ext <<_ACEOF
18346 /* confdefs.h. */
18347 _ACEOF
18348 cat confdefs.h >>conftest.$ac_ext
18349 cat >>conftest.$ac_ext <<_ACEOF
18350 /* end confdefs.h. */
18351
18352 int
18353 main ()
18354 {
18355
18356 ;
18357 return 0;
18358 }
18359 _ACEOF
18360 rm -f conftest.$ac_objext conftest$ac_exeext
18361 if { (ac_try="$ac_link"
18362 case "(($ac_try" in
18363 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18364 *) ac_try_echo=$ac_try;;
18365 esac
18366 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18367 (eval "$ac_link") 2>conftest.er1
18368 ac_status=$?
18369 grep -v '^ *+' conftest.er1 >conftest.err
18370 rm -f conftest.er1
18371 cat conftest.err >&5
18372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18373 (exit $ac_status); } && {
18374 test -z "$ac_c_werror_flag" ||
18375 test ! -s conftest.err
18376 } && test -s conftest$ac_exeext &&
18377 $as_test_x conftest$ac_exeext; then
18378
18379 lt_aix_libpath_sed='
18380 /Import File Strings/,/^$/ {
18381 /^0/ {
18382 s/^0 *\(.*\)$/\1/
18383 p
18384 }
18385 }'
18386 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18387 # Check for a 64-bit object if we didn't find anything.
18388 if test -z "$aix_libpath"; then
18389 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18390 fi
18391 else
18392 echo "$as_me: failed program was:" >&5
18393 sed 's/^/| /' conftest.$ac_ext >&5
18394
18395
18396 fi
18397
18398 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18399 conftest$ac_exeext conftest.$ac_ext
18400 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18401
18402 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
18403 # Warning - without using the other run time loading flags,
18404 # -berok will link without error, but may produce a broken library.
18405 no_undefined_flag_GCJ=' ${wl}-bernotok'
18406 allow_undefined_flag_GCJ=' ${wl}-berok'
18407 # Exported symbols can be pulled into shared objects from archives
18408 whole_archive_flag_spec_GCJ='$convenience'
18409 archive_cmds_need_lc_GCJ=yes
18410 # This is similar to how AIX traditionally builds its shared libraries.
18411 archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
18412 fi
18413 fi
18414 ;;
18415
18416 amigaos*)
18417 archive_cmds_GCJ='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
18418 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18419 hardcode_minus_L_GCJ=yes
18420 # see comment about different semantics on the GNU ld section
18421 ld_shlibs_GCJ=no
18422 ;;
18423
18424 bsdi[45]*)
18425 export_dynamic_flag_spec_GCJ=-rdynamic
18426 ;;
18427
18428 cygwin* | mingw* | pw32*)
18429 # When not using gcc, we currently assume that we are using
18430 # Microsoft Visual C++.
18431 # hardcode_libdir_flag_spec is actually meaningless, as there is
18432 # no search path for DLLs.
18433 hardcode_libdir_flag_spec_GCJ=' '
18434 allow_undefined_flag_GCJ=unsupported
18435 # Tell ltmain to make .lib files, not .a files.
18436 libext=lib
18437 # Tell ltmain to make .dll files, not .so files.
18438 shrext_cmds=".dll"
18439 # FIXME: Setting linknames here is a bad hack.
18440 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
18441 # The linker will automatically build a .lib file if we build a DLL.
18442 old_archive_From_new_cmds_GCJ='true'
18443 # FIXME: Should let the user specify the lib program.
18444 old_archive_cmds_GCJ='lib -OUT:$oldlib$oldobjs$old_deplibs'
18445 fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
18446 enable_shared_with_static_runtimes_GCJ=yes
18447 ;;
18448
18449 darwin* | rhapsody*)
18450 case $host_os in
18451 rhapsody* | darwin1.[012])
18452 allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
18453 ;;
18454 *) # Darwin 1.3 on
18455 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
18456 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
18457 else
18458 case ${MACOSX_DEPLOYMENT_TARGET} in
18459 10.[012])
18460 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
18461 ;;
18462 10.*)
18463 allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
18464 ;;
18465 esac
18466 fi
18467 ;;
18468 esac
18469 archive_cmds_need_lc_GCJ=no
18470 hardcode_direct_GCJ=no
18471 hardcode_automatic_GCJ=yes
18472 hardcode_shlibpath_var_GCJ=unsupported
18473 whole_archive_flag_spec_GCJ=''
18474 link_all_deplibs_GCJ=yes
18475 if test "$GCC" = yes ; then
18476 output_verbose_link_cmd='echo'
18477 archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
18478 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
18479 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
18480 archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
18481 module_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
18482 else
18483 case $cc_basename in
18484 xlc*)
18485 output_verbose_link_cmd='echo'
18486 archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
18487 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
18488 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
18489 archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
18490 module_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
18491 ;;
18492 *)
18493 ld_shlibs_GCJ=no
18494 ;;
18495 esac
18496 fi
18497 ;;
18498
18499 dgux*)
18500 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18501 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18502 hardcode_shlibpath_var_GCJ=no
18503 ;;
18504
18505 freebsd1*)
18506 ld_shlibs_GCJ=no
18507 ;;
18508
18509 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
18510 # support. Future versions do this automatically, but an explicit c++rt0.o
18511 # does not break anything, and helps significantly (at the cost of a little
18512 # extra space).
18513 freebsd2.2*)
18514 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
18515 hardcode_libdir_flag_spec_GCJ='-R$libdir'
18516 hardcode_direct_GCJ=yes
18517 hardcode_shlibpath_var_GCJ=no
18518 ;;
18519
18520 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
18521 freebsd2*)
18522 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
18523 hardcode_direct_GCJ=yes
18524 hardcode_minus_L_GCJ=yes
18525 hardcode_shlibpath_var_GCJ=no
18526 ;;
18527
18528 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
18529 freebsd* | dragonfly*)
18530 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
18531 hardcode_libdir_flag_spec_GCJ='-R$libdir'
18532 hardcode_direct_GCJ=yes
18533 hardcode_shlibpath_var_GCJ=no
18534 ;;
18535
18536 hpux9*)
18537 if test "$GCC" = yes; then
18538 archive_cmds_GCJ='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
18539 else
18540 archive_cmds_GCJ='$rm $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
18541 fi
18542 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
18543 hardcode_libdir_separator_GCJ=:
18544 hardcode_direct_GCJ=yes
18545
18546 # hardcode_minus_L: Not really in the search PATH,
18547 # but as the default location of the library.
18548 hardcode_minus_L_GCJ=yes
18549 export_dynamic_flag_spec_GCJ='${wl}-E'
18550 ;;
18551
18552 hpux10*)
18553 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
18554 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18555 else
18556 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
18557 fi
18558 if test "$with_gnu_ld" = no; then
18559 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
18560 hardcode_libdir_separator_GCJ=:
18561
18562 hardcode_direct_GCJ=yes
18563 export_dynamic_flag_spec_GCJ='${wl}-E'
18564
18565 # hardcode_minus_L: Not really in the search PATH,
18566 # but as the default location of the library.
18567 hardcode_minus_L_GCJ=yes
18568 fi
18569 ;;
18570
18571 hpux11*)
18572 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
18573 case $host_cpu in
18574 hppa*64*)
18575 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18576 ;;
18577 ia64*)
18578 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
18579 ;;
18580 *)
18581 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18582 ;;
18583 esac
18584 else
18585 case $host_cpu in
18586 hppa*64*)
18587 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18588 ;;
18589 ia64*)
18590 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
18591 ;;
18592 *)
18593 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18594 ;;
18595 esac
18596 fi
18597 if test "$with_gnu_ld" = no; then
18598 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
18599 hardcode_libdir_separator_GCJ=:
18600
18601 case $host_cpu in
18602 hppa*64*|ia64*)
18603 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
18604 hardcode_direct_GCJ=no
18605 hardcode_shlibpath_var_GCJ=no
18606 ;;
18607 *)
18608 hardcode_direct_GCJ=yes
18609 export_dynamic_flag_spec_GCJ='${wl}-E'
18610
18611 # hardcode_minus_L: Not really in the search PATH,
18612 # but as the default location of the library.
18613 hardcode_minus_L_GCJ=yes
18614 ;;
18615 esac
18616 fi
18617 ;;
18618
18619 irix5* | irix6* | nonstopux*)
18620 if test "$GCC" = yes; then
18621 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
18622 else
18623 archive_cmds_GCJ='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
18624 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
18625 fi
18626 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18627 hardcode_libdir_separator_GCJ=:
18628 link_all_deplibs_GCJ=yes
18629 ;;
18630
18631 netbsd*)
18632 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18633 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
18634 else
18635 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
18636 fi
18637 hardcode_libdir_flag_spec_GCJ='-R$libdir'
18638 hardcode_direct_GCJ=yes
18639 hardcode_shlibpath_var_GCJ=no
18640 ;;
18641
18642 newsos6)
18643 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18644 hardcode_direct_GCJ=yes
18645 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18646 hardcode_libdir_separator_GCJ=:
18647 hardcode_shlibpath_var_GCJ=no
18648 ;;
18649
18650 openbsd*)
18651 if test -f /usr/libexec/ld.so; then
18652 hardcode_direct_GCJ=yes
18653 hardcode_shlibpath_var_GCJ=no
18654 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18655 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
18656 archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
18657 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
18658 export_dynamic_flag_spec_GCJ='${wl}-E'
18659 else
18660 case $host_os in
18661 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
18662 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
18663 hardcode_libdir_flag_spec_GCJ='-R$libdir'
18664 ;;
18665 *)
18666 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
18667 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
18668 ;;
18669 esac
18670 fi
18671 else
18672 ld_shlibs_GCJ=no
18673 fi
18674 ;;
18675
18676 os2*)
18677 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18678 hardcode_minus_L_GCJ=yes
18679 allow_undefined_flag_GCJ=unsupported
18680 archive_cmds_GCJ='$echo "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$echo "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$echo DATA >> $output_objdir/$libname.def~$echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~$echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
18681 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
18682 ;;
18683
18684 osf3*)
18685 if test "$GCC" = yes; then
18686 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
18687 archive_cmds_GCJ='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
18688 else
18689 allow_undefined_flag_GCJ=' -expect_unresolved \*'
18690 archive_cmds_GCJ='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
18691 fi
18692 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18693 hardcode_libdir_separator_GCJ=:
18694 ;;
18695
18696 osf4* | osf5*) # as osf3* with the addition of -msym flag
18697 if test "$GCC" = yes; then
18698 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
18699 archive_cmds_GCJ='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
18700 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18701 else
18702 allow_undefined_flag_GCJ=' -expect_unresolved \*'
18703 archive_cmds_GCJ='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
18704 archive_expsym_cmds_GCJ='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
18705 $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
18706
18707 # Both c and cxx compiler support -rpath directly
18708 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
18709 fi
18710 hardcode_libdir_separator_GCJ=:
18711 ;;
18712
18713 solaris*)
18714 no_undefined_flag_GCJ=' -z text'
18715 if test "$GCC" = yes; then
18716 wlarc='${wl}'
18717 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18718 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
18719 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
18720 else
18721 wlarc=''
18722 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
18723 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
18724 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
18725 fi
18726 hardcode_libdir_flag_spec_GCJ='-R$libdir'
18727 hardcode_shlibpath_var_GCJ=no
18728 case $host_os in
18729 solaris2.[0-5] | solaris2.[0-5].*) ;;
18730 *)
18731 # The compiler driver will combine and reorder linker options,
18732 # but understands `-z linker_flag'. GCC discards it without `$wl',
18733 # but is careful enough not to reorder.
18734 # Supported since Solaris 2.6 (maybe 2.5.1?)
18735 if test "$GCC" = yes; then
18736 whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
18737 else
18738 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract'
18739 fi
18740 ;;
18741 esac
18742 link_all_deplibs_GCJ=yes
18743 ;;
18744
18745 sunos4*)
18746 if test "x$host_vendor" = xsequent; then
18747 # Use $CC to link under sequent, because it throws in some extra .o
18748 # files that make .init and .fini sections work.
18749 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
18750 else
18751 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
18752 fi
18753 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18754 hardcode_direct_GCJ=yes
18755 hardcode_minus_L_GCJ=yes
18756 hardcode_shlibpath_var_GCJ=no
18757 ;;
18758
18759 sysv4)
18760 case $host_vendor in
18761 sni)
18762 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18763 hardcode_direct_GCJ=yes # is this really true???
18764 ;;
18765 siemens)
18766 ## LD is ld it makes a PLAMLIB
18767 ## CC just makes a GrossModule.
18768 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
18769 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
18770 hardcode_direct_GCJ=no
18771 ;;
18772 motorola)
18773 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18774 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
18775 ;;
18776 esac
18777 runpath_var='LD_RUN_PATH'
18778 hardcode_shlibpath_var_GCJ=no
18779 ;;
18780
18781 sysv4.3*)
18782 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18783 hardcode_shlibpath_var_GCJ=no
18784 export_dynamic_flag_spec_GCJ='-Bexport'
18785 ;;
18786
18787 sysv4*MP*)
18788 if test -d /usr/nec; then
18789 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18790 hardcode_shlibpath_var_GCJ=no
18791 runpath_var=LD_RUN_PATH
18792 hardcode_runpath_var=yes
18793 ld_shlibs_GCJ=yes
18794 fi
18795 ;;
18796
18797 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
18798 no_undefined_flag_GCJ='${wl}-z,text'
18799 archive_cmds_need_lc_GCJ=no
18800 hardcode_shlibpath_var_GCJ=no
18801 runpath_var='LD_RUN_PATH'
18802
18803 if test "$GCC" = yes; then
18804 archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18805 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18806 else
18807 archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18808 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18809 fi
18810 ;;
18811
18812 sysv5* | sco3.2v5* | sco5v6*)
18813 # Note: We can NOT use -z defs as we might desire, because we do not
18814 # link with -lc, and that would cause any symbols used from libc to
18815 # always be unresolved, which means just about no library would
18816 # ever link correctly. If we're not using GNU ld we use -z text
18817 # though, which does catch some bad symbols but isn't as heavy-handed
18818 # as -z defs.
18819 no_undefined_flag_GCJ='${wl}-z,text'
18820 allow_undefined_flag_GCJ='${wl}-z,nodefs'
18821 archive_cmds_need_lc_GCJ=no
18822 hardcode_shlibpath_var_GCJ=no
18823 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
18824 hardcode_libdir_separator_GCJ=':'
18825 link_all_deplibs_GCJ=yes
18826 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
18827 runpath_var='LD_RUN_PATH'
18828
18829 if test "$GCC" = yes; then
18830 archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18831 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18832 else
18833 archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18834 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18835 fi
18836 ;;
18837
18838 uts4*)
18839 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18840 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18841 hardcode_shlibpath_var_GCJ=no
18842 ;;
18843
18844 *)
18845 ld_shlibs_GCJ=no
18846 ;;
18847 esac
18848 fi
18849
18850 { echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
18851 echo "${ECHO_T}$ld_shlibs_GCJ" >&6; }
18852 test "$ld_shlibs_GCJ" = no && can_build_shared=no
18853
18854 #
18855 # Do we need to explicitly link libc?
18856 #
18857 case "x$archive_cmds_need_lc_GCJ" in
18858 x|xyes)
18859 # Assume -lc should be added
18860 archive_cmds_need_lc_GCJ=yes
18861
18862 if test "$enable_shared" = yes && test "$GCC" = yes; then
18863 case $archive_cmds_GCJ in
18864 *'~'*)
18865 # FIXME: we may have to deal with multi-command sequences.
18866 ;;
18867 '$CC '*)
18868 # Test whether the compiler implicitly links with -lc since on some
18869 # systems, -lgcc has to come before -lc. If gcc already passes -lc
18870 # to ld, don't add -lc before -lgcc.
18871 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
18872 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
18873 $rm conftest*
18874 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
18875
18876 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18877 (eval $ac_compile) 2>&5
18878 ac_status=$?
18879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18880 (exit $ac_status); } 2>conftest.err; then
18881 soname=conftest
18882 lib=conftest
18883 libobjs=conftest.$ac_objext
18884 deplibs=
18885 wl=$lt_prog_compiler_wl_GCJ
18886 pic_flag=$lt_prog_compiler_pic_GCJ
18887 compiler_flags=-v
18888 linker_flags=-v
18889 verstring=
18890 output_objdir=.
18891 libname=conftest
18892 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
18893 allow_undefined_flag_GCJ=
18894 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
18895 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
18896 ac_status=$?
18897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18898 (exit $ac_status); }
18899 then
18900 archive_cmds_need_lc_GCJ=no
18901 else
18902 archive_cmds_need_lc_GCJ=yes
18903 fi
18904 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
18905 else
18906 cat conftest.err 1>&5
18907 fi
18908 $rm conftest*
18909 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
18910 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; }
18911 ;;
18912 esac
18913 fi
18914 ;;
18915 esac
18916
18917 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
18918 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
18919 library_names_spec=
18920 libname_spec='lib$name'
18921 soname_spec=
18922 shrext_cmds=".so"
18923 postinstall_cmds=
18924 postuninstall_cmds=
18925 finish_cmds=
18926 finish_eval=
18927 shlibpath_var=
18928 shlibpath_overrides_runpath=unknown
18929 version_type=none
18930 dynamic_linker="$host_os ld.so"
18931 sys_lib_dlsearch_path_spec="/lib /usr/lib"
18932
18933 need_lib_prefix=unknown
18934 hardcode_into_libs=no
18935
18936 # when you set need_version to no, make sure it does not cause -set_version
18937 # flags to be left without arguments
18938 need_version=unknown
18939
18940 case $host_os in
18941 aix3*)
18942 version_type=linux
18943 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
18944 shlibpath_var=LIBPATH
18945
18946 # AIX 3 has no versioning support, so we append a major version to the name.
18947 soname_spec='${libname}${release}${shared_ext}$major'
18948 ;;
18949
18950 aix4* | aix5*)
18951 version_type=linux
18952 need_lib_prefix=no
18953 need_version=no
18954 hardcode_into_libs=yes
18955 if test "$host_cpu" = ia64; then
18956 # AIX 5 supports IA64
18957 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
18958 shlibpath_var=LD_LIBRARY_PATH
18959 else
18960 # With GCC up to 2.95.x, collect2 would create an import file
18961 # for dependence libraries. The import file would start with
18962 # the line `#! .'. This would cause the generated library to
18963 # depend on `.', always an invalid library. This was fixed in
18964 # development snapshots of GCC prior to 3.0.
18965 case $host_os in
18966 aix4 | aix4.[01] | aix4.[01].*)
18967 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
18968 echo ' yes '
18969 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
18970 :
18971 else
18972 can_build_shared=no
18973 fi
18974 ;;
18975 esac
18976 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
18977 # soname into executable. Probably we can add versioning support to
18978 # collect2, so additional links can be useful in future.
18979 if test "$aix_use_runtimelinking" = yes; then
18980 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
18981 # instead of lib<name>.a to let people know that these are not
18982 # typical AIX shared libraries.
18983 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18984 else
18985 # We preserve .a as extension for shared libraries through AIX4.2
18986 # and later when we are not doing run time linking.
18987 library_names_spec='${libname}${release}.a $libname.a'
18988 soname_spec='${libname}${release}${shared_ext}$major'
18989 fi
18990 shlibpath_var=LIBPATH
18991 fi
18992 ;;
18993
18994 amigaos*)
18995 library_names_spec='$libname.ixlibrary $libname.a'
18996 # Create ${libname}_ixlibrary.a entries in /sys/libs.
18997 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'
18998 ;;
18999
19000 beos*)
19001 library_names_spec='${libname}${shared_ext}'
19002 dynamic_linker="$host_os ld.so"
19003 shlibpath_var=LIBRARY_PATH
19004 ;;
19005
19006 bsdi[45]*)
19007 version_type=linux
19008 need_version=no
19009 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19010 soname_spec='${libname}${release}${shared_ext}$major'
19011 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
19012 shlibpath_var=LD_LIBRARY_PATH
19013 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
19014 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
19015 # the default ld.so.conf also contains /usr/contrib/lib and
19016 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
19017 # libtool to hard-code these into programs
19018 ;;
19019
19020 cygwin* | mingw* | pw32*)
19021 version_type=windows
19022 shrext_cmds=".dll"
19023 need_version=no
19024 need_lib_prefix=no
19025
19026 case $GCC,$host_os in
19027 yes,cygwin* | yes,mingw* | yes,pw32*)
19028 library_names_spec='$libname.dll.a'
19029 # DLL is installed to $(libdir)/../bin by postinstall_cmds
19030 postinstall_cmds='base_file=`basename \${file}`~
19031 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
19032 dldir=$destdir/`dirname \$dlpath`~
19033 test -d \$dldir || mkdir -p \$dldir~
19034 $install_prog $dir/$dlname \$dldir/$dlname~
19035 chmod a+x \$dldir/$dlname'
19036 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
19037 dlpath=$dir/\$dldll~
19038 $rm \$dlpath'
19039 shlibpath_overrides_runpath=yes
19040
19041 case $host_os in
19042 cygwin*)
19043 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
19044 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
19045 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
19046 ;;
19047 mingw*)
19048 # MinGW DLLs use traditional 'lib' prefix
19049 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
19050 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
19051 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
19052 # It is most probably a Windows format PATH printed by
19053 # mingw gcc, but we are running on Cygwin. Gcc prints its search
19054 # path with ; separators, and with drive letters. We can handle the
19055 # drive letters (cygwin fileutils understands them), so leave them,
19056 # especially as we might pass files found there to a mingw objdump,
19057 # which wouldn't understand a cygwinified path. Ahh.
19058 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
19059 else
19060 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
19061 fi
19062 ;;
19063 pw32*)
19064 # pw32 DLLs use 'pw' prefix rather than 'lib'
19065 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
19066 ;;
19067 esac
19068 ;;
19069
19070 *)
19071 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
19072 ;;
19073 esac
19074 dynamic_linker='Win32 ld.exe'
19075 # FIXME: first we should search . and the directory the executable is in
19076 shlibpath_var=PATH
19077 ;;
19078
19079 darwin* | rhapsody*)
19080 dynamic_linker="$host_os dyld"
19081 version_type=darwin
19082 need_lib_prefix=no
19083 need_version=no
19084 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
19085 soname_spec='${libname}${release}${major}$shared_ext'
19086 shlibpath_overrides_runpath=yes
19087 shlibpath_var=DYLD_LIBRARY_PATH
19088 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
19089
19090 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
19091 ;;
19092
19093 dgux*)
19094 version_type=linux
19095 need_lib_prefix=no
19096 need_version=no
19097 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
19098 soname_spec='${libname}${release}${shared_ext}$major'
19099 shlibpath_var=LD_LIBRARY_PATH
19100 ;;
19101
19102 freebsd1*)
19103 dynamic_linker=no
19104 ;;
19105
19106 freebsd* | dragonfly*)
19107 # DragonFly does not have aout. When/if they implement a new
19108 # versioning mechanism, adjust this.
19109 if test -x /usr/bin/objformat; then
19110 objformat=`/usr/bin/objformat`
19111 else
19112 case $host_os in
19113 freebsd[123]*) objformat=aout ;;
19114 *) objformat=elf ;;
19115 esac
19116 fi
19117 version_type=freebsd-$objformat
19118 case $version_type in
19119 freebsd-elf*)
19120 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
19121 need_version=no
19122 need_lib_prefix=no
19123 ;;
19124 freebsd-*)
19125 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
19126 need_version=yes
19127 ;;
19128 esac
19129 shlibpath_var=LD_LIBRARY_PATH
19130 case $host_os in
19131 freebsd2*)
19132 shlibpath_overrides_runpath=yes
19133 ;;
19134 freebsd3.[01]* | freebsdelf3.[01]*)
19135 shlibpath_overrides_runpath=yes
19136 hardcode_into_libs=yes
19137 ;;
19138 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
19139 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
19140 shlibpath_overrides_runpath=no
19141 hardcode_into_libs=yes
19142 ;;
19143 *) # from 4.6 on, and DragonFly
19144 shlibpath_overrides_runpath=yes
19145 hardcode_into_libs=yes
19146 ;;
19147 esac
19148 ;;
19149
19150 gnu*)
19151 version_type=linux
19152 need_lib_prefix=no
19153 need_version=no
19154 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
19155 soname_spec='${libname}${release}${shared_ext}$major'
19156 shlibpath_var=LD_LIBRARY_PATH
19157 hardcode_into_libs=yes
19158 ;;
19159
19160 hpux9* | hpux10* | hpux11*)
19161 # Give a soname corresponding to the major version so that dld.sl refuses to
19162 # link against other versions.
19163 version_type=sunos
19164 need_lib_prefix=no
19165 need_version=no
19166 case $host_cpu in
19167 ia64*)
19168 shrext_cmds='.so'
19169 hardcode_into_libs=yes
19170 dynamic_linker="$host_os dld.so"
19171 shlibpath_var=LD_LIBRARY_PATH
19172 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
19173 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19174 soname_spec='${libname}${release}${shared_ext}$major'
19175 if test "X$HPUX_IA64_MODE" = X32; then
19176 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
19177 else
19178 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
19179 fi
19180 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
19181 ;;
19182 hppa*64*)
19183 shrext_cmds='.sl'
19184 hardcode_into_libs=yes
19185 dynamic_linker="$host_os dld.sl"
19186 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
19187 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
19188 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19189 soname_spec='${libname}${release}${shared_ext}$major'
19190 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
19191 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
19192 ;;
19193 *)
19194 shrext_cmds='.sl'
19195 dynamic_linker="$host_os dld.sl"
19196 shlibpath_var=SHLIB_PATH
19197 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
19198 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19199 soname_spec='${libname}${release}${shared_ext}$major'
19200 ;;
19201 esac
19202 # HP-UX runs *really* slowly unless shared libraries are mode 555.
19203 postinstall_cmds='chmod 555 $lib'
19204 ;;
19205
19206 interix[3-9]*)
19207 version_type=linux
19208 need_lib_prefix=no
19209 need_version=no
19210 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
19211 soname_spec='${libname}${release}${shared_ext}$major'
19212 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
19213 shlibpath_var=LD_LIBRARY_PATH
19214 shlibpath_overrides_runpath=no
19215 hardcode_into_libs=yes
19216 ;;
19217
19218 irix5* | irix6* | nonstopux*)
19219 case $host_os in
19220 nonstopux*) version_type=nonstopux ;;
19221 *)
19222 if test "$lt_cv_prog_gnu_ld" = yes; then
19223 version_type=linux
19224 else
19225 version_type=irix
19226 fi ;;
19227 esac
19228 need_lib_prefix=no
19229 need_version=no
19230 soname_spec='${libname}${release}${shared_ext}$major'
19231 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
19232 case $host_os in
19233 irix5* | nonstopux*)
19234 libsuff= shlibsuff=
19235 ;;
19236 *)
19237 case $LD in # libtool.m4 will add one of these switches to LD
19238 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
19239 libsuff= shlibsuff= libmagic=32-bit;;
19240 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
19241 libsuff=32 shlibsuff=N32 libmagic=N32;;
19242 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
19243 libsuff=64 shlibsuff=64 libmagic=64-bit;;
19244 *) libsuff= shlibsuff= libmagic=never-match;;
19245 esac
19246 ;;
19247 esac
19248 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
19249 shlibpath_overrides_runpath=no
19250 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
19251 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
19252 hardcode_into_libs=yes
19253 ;;
19254
19255 # No shared lib support for Linux oldld, aout, or coff.
19256 linux*oldld* | linux*aout* | linux*coff*)
19257 dynamic_linker=no
19258 ;;
19259
19260 # This must be Linux ELF.
19261 linux* | k*bsd*-gnu)
19262 version_type=linux
19263 need_lib_prefix=no
19264 need_version=no
19265 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19266 soname_spec='${libname}${release}${shared_ext}$major'
19267 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
19268 shlibpath_var=LD_LIBRARY_PATH
19269 shlibpath_overrides_runpath=no
19270 # This implies no fast_install, which is unacceptable.
19271 # Some rework will be needed to allow for fast_install
19272 # before this can be enabled.
19273 hardcode_into_libs=yes
19274 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
19275 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
19276
19277 # Append ld.so.conf contents to the search path
19278 if test -f /etc/ld.so.conf; then
19279 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' ' '`
19280 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
19281 fi
19282
19283 # We used to test for /lib/ld.so.1 and disable shared libraries on
19284 # powerpc, because MkLinux only supported shared libraries with the
19285 # GNU dynamic linker. Since this was broken with cross compilers,
19286 # most powerpc-linux boxes support dynamic linking these days and
19287 # people can always --disable-shared, the test was removed, and we
19288 # assume the GNU/Linux dynamic linker is in use.
19289 dynamic_linker='GNU/Linux ld.so'
19290 ;;
19291
19292 netbsd*)
19293 version_type=sunos
19294 need_lib_prefix=no
19295 need_version=no
19296 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
19297 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19298 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
19299 dynamic_linker='NetBSD (a.out) ld.so'
19300 else
19301 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
19302 soname_spec='${libname}${release}${shared_ext}$major'
19303 dynamic_linker='NetBSD ld.elf_so'
19304 fi
19305 shlibpath_var=LD_LIBRARY_PATH
19306 shlibpath_overrides_runpath=yes
19307 hardcode_into_libs=yes
19308 ;;
19309
19310 newsos6)
19311 version_type=linux
19312 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19313 shlibpath_var=LD_LIBRARY_PATH
19314 shlibpath_overrides_runpath=yes
19315 ;;
19316
19317 nto-qnx*)
19318 version_type=linux
19319 need_lib_prefix=no
19320 need_version=no
19321 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19322 soname_spec='${libname}${release}${shared_ext}$major'
19323 shlibpath_var=LD_LIBRARY_PATH
19324 shlibpath_overrides_runpath=yes
19325 ;;
19326
19327 openbsd*)
19328 version_type=sunos
19329 sys_lib_dlsearch_path_spec="/usr/lib"
19330 need_lib_prefix=no
19331 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
19332 case $host_os in
19333 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
19334 *) need_version=no ;;
19335 esac
19336 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19337 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
19338 shlibpath_var=LD_LIBRARY_PATH
19339 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
19340 case $host_os in
19341 openbsd2.[89] | openbsd2.[89].*)
19342 shlibpath_overrides_runpath=no
19343 ;;
19344 *)
19345 shlibpath_overrides_runpath=yes
19346 ;;
19347 esac
19348 else
19349 shlibpath_overrides_runpath=yes
19350 fi
19351 ;;
19352
19353 os2*)
19354 libname_spec='$name'
19355 shrext_cmds=".dll"
19356 need_lib_prefix=no
19357 library_names_spec='$libname${shared_ext} $libname.a'
19358 dynamic_linker='OS/2 ld.exe'
19359 shlibpath_var=LIBPATH
19360 ;;
19361
19362 osf3* | osf4* | osf5*)
19363 version_type=osf
19364 need_lib_prefix=no
19365 need_version=no
19366 soname_spec='${libname}${release}${shared_ext}$major'
19367 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19368 shlibpath_var=LD_LIBRARY_PATH
19369 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
19370 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
19371 ;;
19372
19373 rdos*)
19374 dynamic_linker=no
19375 ;;
19376
19377 solaris*)
19378 version_type=linux
19379 need_lib_prefix=no
19380 need_version=no
19381 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19382 soname_spec='${libname}${release}${shared_ext}$major'
19383 shlibpath_var=LD_LIBRARY_PATH
19384 shlibpath_overrides_runpath=yes
19385 hardcode_into_libs=yes
19386 # ldd complains unless libraries are executable
19387 postinstall_cmds='chmod +x $lib'
19388 ;;
19389
19390 sunos4*)
19391 version_type=sunos
19392 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19393 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
19394 shlibpath_var=LD_LIBRARY_PATH
19395 shlibpath_overrides_runpath=yes
19396 if test "$with_gnu_ld" = yes; then
19397 need_lib_prefix=no
19398 fi
19399 need_version=yes
19400 ;;
19401
19402 sysv4 | sysv4.3*)
19403 version_type=linux
19404 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19405 soname_spec='${libname}${release}${shared_ext}$major'
19406 shlibpath_var=LD_LIBRARY_PATH
19407 case $host_vendor in
19408 sni)
19409 shlibpath_overrides_runpath=no
19410 need_lib_prefix=no
19411 export_dynamic_flag_spec='${wl}-Blargedynsym'
19412 runpath_var=LD_RUN_PATH
19413 ;;
19414 siemens)
19415 need_lib_prefix=no
19416 ;;
19417 motorola)
19418 need_lib_prefix=no
19419 need_version=no
19420 shlibpath_overrides_runpath=no
19421 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
19422 ;;
19423 esac
19424 ;;
19425
19426 sysv4*MP*)
19427 if test -d /usr/nec ;then
19428 version_type=linux
19429 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
19430 soname_spec='$libname${shared_ext}.$major'
19431 shlibpath_var=LD_LIBRARY_PATH
19432 fi
19433 ;;
19434
19435 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
19436 version_type=freebsd-elf
19437 need_lib_prefix=no
19438 need_version=no
19439 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
19440 soname_spec='${libname}${release}${shared_ext}$major'
19441 shlibpath_var=LD_LIBRARY_PATH
19442 hardcode_into_libs=yes
19443 if test "$with_gnu_ld" = yes; then
19444 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
19445 shlibpath_overrides_runpath=no
19446 else
19447 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
19448 shlibpath_overrides_runpath=yes
19449 case $host_os in
19450 sco3.2v5*)
19451 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
19452 ;;
19453 esac
19454 fi
19455 sys_lib_dlsearch_path_spec='/usr/lib'
19456 ;;
19457
19458 uts4*)
19459 version_type=linux
19460 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19461 soname_spec='${libname}${release}${shared_ext}$major'
19462 shlibpath_var=LD_LIBRARY_PATH
19463 ;;
19464
19465 *)
19466 dynamic_linker=no
19467 ;;
19468 esac
19469 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
19470 echo "${ECHO_T}$dynamic_linker" >&6; }
19471 test "$dynamic_linker" = no && can_build_shared=no
19472
19473 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
19474 if test "$GCC" = yes; then
19475 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
19476 fi
19477
19478 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
19479 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
19480 hardcode_action_GCJ=
19481 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
19482 test -n "$runpath_var_GCJ" || \
19483 test "X$hardcode_automatic_GCJ" = "Xyes" ; then
19484
19485 # We can hardcode non-existant directories.
19486 if test "$hardcode_direct_GCJ" != no &&
19487 # If the only mechanism to avoid hardcoding is shlibpath_var, we
19488 # have to relink, otherwise we might link with an installed library
19489 # when we should be linking with a yet-to-be-installed one
19490 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
19491 test "$hardcode_minus_L_GCJ" != no; then
19492 # Linking always hardcodes the temporary library directory.
19493 hardcode_action_GCJ=relink
19494 else
19495 # We can link without hardcoding, and we can hardcode nonexisting dirs.
19496 hardcode_action_GCJ=immediate
19497 fi
19498 else
19499 # We cannot hardcode anything, or else we can only hardcode existing
19500 # directories.
19501 hardcode_action_GCJ=unsupported
19502 fi
19503 { echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
19504 echo "${ECHO_T}$hardcode_action_GCJ" >&6; }
19505
19506 if test "$hardcode_action_GCJ" = relink; then
19507 # Fast installation is not supported
19508 enable_fast_install=no
19509 elif test "$shlibpath_overrides_runpath" = yes ||
19510 test "$enable_shared" = no; then
19511 # Fast installation is not necessary
19512 enable_fast_install=needless
19513 fi
19514
19515
19516 # The else clause should only fire when bootstrapping the
19517 # libtool distribution, otherwise you forgot to ship ltmain.sh
19518 # with your package, and you will get complaints that there are
19519 # no rules to generate ltmain.sh.
19520 if test -f "$ltmain"; then
19521 # See if we are running on zsh, and set the options which allow our commands through
19522 # without removal of \ escapes.
19523 if test -n "${ZSH_VERSION+set}" ; then
19524 setopt NO_GLOB_SUBST
19525 fi
19526 # Now quote all the things that may contain metacharacters while being
19527 # careful not to overquote the AC_SUBSTed values. We take copies of the
19528 # variables and quote the copies for generation of the libtool script.
19529 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
19530 SED SHELL STRIP \
19531 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
19532 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
19533 deplibs_check_method reload_flag reload_cmds need_locks \
19534 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
19535 lt_cv_sys_global_symbol_to_c_name_address \
19536 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
19537 old_postinstall_cmds old_postuninstall_cmds \
19538 compiler_GCJ \
19539 CC_GCJ \
19540 LD_GCJ \
19541 lt_prog_compiler_wl_GCJ \
19542 lt_prog_compiler_pic_GCJ \
19543 lt_prog_compiler_static_GCJ \
19544 lt_prog_compiler_no_builtin_flag_GCJ \
19545 export_dynamic_flag_spec_GCJ \
19546 thread_safe_flag_spec_GCJ \
19547 whole_archive_flag_spec_GCJ \
19548 enable_shared_with_static_runtimes_GCJ \
19549 old_archive_cmds_GCJ \
19550 old_archive_from_new_cmds_GCJ \
19551 predep_objects_GCJ \
19552 postdep_objects_GCJ \
19553 predeps_GCJ \
19554 postdeps_GCJ \
19555 compiler_lib_search_path_GCJ \
19556 archive_cmds_GCJ \
19557 archive_expsym_cmds_GCJ \
19558 postinstall_cmds_GCJ \
19559 postuninstall_cmds_GCJ \
19560 old_archive_from_expsyms_cmds_GCJ \
19561 allow_undefined_flag_GCJ \
19562 no_undefined_flag_GCJ \
19563 export_symbols_cmds_GCJ \
19564 hardcode_libdir_flag_spec_GCJ \
19565 hardcode_libdir_flag_spec_ld_GCJ \
19566 hardcode_libdir_separator_GCJ \
19567 hardcode_automatic_GCJ \
19568 module_cmds_GCJ \
19569 module_expsym_cmds_GCJ \
19570 lt_cv_prog_compiler_c_o_GCJ \
19571 fix_srcfile_path_GCJ \
19572 exclude_expsyms_GCJ \
19573 include_expsyms_GCJ; do
19574
19575 case $var in
19576 old_archive_cmds_GCJ | \
19577 old_archive_from_new_cmds_GCJ | \
19578 archive_cmds_GCJ | \
19579 archive_expsym_cmds_GCJ | \
19580 module_cmds_GCJ | \
19581 module_expsym_cmds_GCJ | \
19582 old_archive_from_expsyms_cmds_GCJ | \
19583 export_symbols_cmds_GCJ | \
19584 extract_expsyms_cmds | reload_cmds | finish_cmds | \
19585 postinstall_cmds | postuninstall_cmds | \
19586 old_postinstall_cmds | old_postuninstall_cmds | \
19587 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
19588 # Double-quote double-evaled strings.
19589 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
19590 ;;
19591 *)
19592 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
19593 ;;
19594 esac
19595 done
19596
19597 case $lt_echo in
19598 *'\$0 --fallback-echo"')
19599 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
19600 ;;
19601 esac
19602
19603 cfgfile="$ofile"
19604
19605 cat <<__EOF__ >> "$cfgfile"
19606 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
19607
19608 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19609
19610 # Shell to use when invoking shell scripts.
19611 SHELL=$lt_SHELL
19612
19613 # Whether or not to build shared libraries.
19614 build_libtool_libs=$enable_shared
19615
19616 # Whether or not to build static libraries.
19617 build_old_libs=$enable_static
19618
19619 # Whether or not to add -lc for building shared libraries.
19620 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
19621
19622 # Whether or not to disallow shared libs when runtime libs are static
19623 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
19624
19625 # Whether or not to optimize for fast installation.
19626 fast_install=$enable_fast_install
19627
19628 # The host system.
19629 host_alias=$host_alias
19630 host=$host
19631 host_os=$host_os
19632
19633 # The build system.
19634 build_alias=$build_alias
19635 build=$build
19636 build_os=$build_os
19637
19638 # An echo program that does not interpret backslashes.
19639 echo=$lt_echo
19640
19641 # The archiver.
19642 AR=$lt_AR
19643 AR_FLAGS=$lt_AR_FLAGS
19644
19645 # A C compiler.
19646 LTCC=$lt_LTCC
19647
19648 # LTCC compiler flags.
19649 LTCFLAGS=$lt_LTCFLAGS
19650
19651 # A language-specific compiler.
19652 CC=$lt_compiler_GCJ
19653
19654 # Is the compiler the GNU C compiler?
19655 with_gcc=$GCC_GCJ
19656
19657 # An ERE matcher.
19658 EGREP=$lt_EGREP
19659
19660 # The linker used to build libraries.
19661 LD=$lt_LD_GCJ
19662
19663 # Whether we need hard or soft links.
19664 LN_S=$lt_LN_S
19665
19666 # A BSD-compatible nm program.
19667 NM=$lt_NM
19668
19669 # A symbol stripping program
19670 STRIP=$lt_STRIP
19671
19672 # Used to examine libraries when file_magic_cmd begins "file"
19673 MAGIC_CMD=$MAGIC_CMD
19674
19675 # Used on cygwin: DLL creation program.
19676 DLLTOOL="$DLLTOOL"
19677
19678 # Used on cygwin: object dumper.
19679 OBJDUMP="$OBJDUMP"
19680
19681 # Used on cygwin: assembler.
19682 AS="$AS"
19683
19684 # The name of the directory that contains temporary libtool files.
19685 objdir=$objdir
19686
19687 # How to create reloadable object files.
19688 reload_flag=$lt_reload_flag
19689 reload_cmds=$lt_reload_cmds
19690
19691 # How to pass a linker flag through the compiler.
19692 wl=$lt_lt_prog_compiler_wl_GCJ
19693
19694 # Object file suffix (normally "o").
19695 objext="$ac_objext"
19696
19697 # Old archive suffix (normally "a").
19698 libext="$libext"
19699
19700 # Shared library suffix (normally ".so").
19701 shrext_cmds='$shrext_cmds'
19702
19703 # Executable file suffix (normally "").
19704 exeext="$exeext"
19705
19706 # Additional compiler flags for building library objects.
19707 pic_flag=$lt_lt_prog_compiler_pic_GCJ
19708 pic_mode=$pic_mode
19709
19710 # What is the maximum length of a command?
19711 max_cmd_len=$lt_cv_sys_max_cmd_len
19712
19713 # Does compiler simultaneously support -c and -o options?
19714 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
19715
19716 # Must we lock files when doing compilation?
19717 need_locks=$lt_need_locks
19718
19719 # Do we need the lib prefix for modules?
19720 need_lib_prefix=$need_lib_prefix
19721
19722 # Do we need a version for libraries?
19723 need_version=$need_version
19724
19725 # Whether dlopen is supported.
19726 dlopen_support=$enable_dlopen
19727
19728 # Whether dlopen of programs is supported.
19729 dlopen_self=$enable_dlopen_self
19730
19731 # Whether dlopen of statically linked programs is supported.
19732 dlopen_self_static=$enable_dlopen_self_static
19733
19734 # Compiler flag to prevent dynamic linking.
19735 link_static_flag=$lt_lt_prog_compiler_static_GCJ
19736
19737 # Compiler flag to turn off builtin functions.
19738 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
19739
19740 # Compiler flag to allow reflexive dlopens.
19741 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
19742
19743 # Compiler flag to generate shared objects directly from archives.
19744 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
19745
19746 # Compiler flag to generate thread-safe objects.
19747 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
19748
19749 # Library versioning type.
19750 version_type=$version_type
19751
19752 # Format of library name prefix.
19753 libname_spec=$lt_libname_spec
19754
19755 # List of archive names. First name is the real one, the rest are links.
19756 # The last name is the one that the linker finds with -lNAME.
19757 library_names_spec=$lt_library_names_spec
19758
19759 # The coded name of the library, if different from the real name.
19760 soname_spec=$lt_soname_spec
19761
19762 # Commands used to build and install an old-style archive.
19763 RANLIB=$lt_RANLIB
19764 old_archive_cmds=$lt_old_archive_cmds_GCJ
19765 old_postinstall_cmds=$lt_old_postinstall_cmds
19766 old_postuninstall_cmds=$lt_old_postuninstall_cmds
19767
19768 # Create an old-style archive from a shared archive.
19769 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
19770
19771 # Create a temporary old-style archive to link instead of a shared archive.
19772 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
19773
19774 # Commands used to build and install a shared archive.
19775 archive_cmds=$lt_archive_cmds_GCJ
19776 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
19777 postinstall_cmds=$lt_postinstall_cmds
19778 postuninstall_cmds=$lt_postuninstall_cmds
19779
19780 # Commands used to build a loadable module (assumed same as above if empty)
19781 module_cmds=$lt_module_cmds_GCJ
19782 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
19783
19784 # Commands to strip libraries.
19785 old_striplib=$lt_old_striplib
19786 striplib=$lt_striplib
19787
19788 # Dependencies to place before the objects being linked to create a
19789 # shared library.
19790 predep_objects=$lt_predep_objects_GCJ
19791
19792 # Dependencies to place after the objects being linked to create a
19793 # shared library.
19794 postdep_objects=$lt_postdep_objects_GCJ
19795
19796 # Dependencies to place before the objects being linked to create a
19797 # shared library.
19798 predeps=$lt_predeps_GCJ
19799
19800 # Dependencies to place after the objects being linked to create a
19801 # shared library.
19802 postdeps=$lt_postdeps_GCJ
19803
19804 # The library search path used internally by the compiler when linking
19805 # a shared library.
19806 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
19807
19808 # Method to check whether dependent libraries are shared objects.
19809 deplibs_check_method=$lt_deplibs_check_method
19810
19811 # Command to use when deplibs_check_method == file_magic.
19812 file_magic_cmd=$lt_file_magic_cmd
19813
19814 # Flag that allows shared libraries with undefined symbols to be built.
19815 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
19816
19817 # Flag that forces no undefined symbols.
19818 no_undefined_flag=$lt_no_undefined_flag_GCJ
19819
19820 # Commands used to finish a libtool library installation in a directory.
19821 finish_cmds=$lt_finish_cmds
19822
19823 # Same as above, but a single script fragment to be evaled but not shown.
19824 finish_eval=$lt_finish_eval
19825
19826 # Take the output of nm and produce a listing of raw symbols and C names.
19827 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19828
19829 # Transform the output of nm in a proper C declaration
19830 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19831
19832 # Transform the output of nm in a C name address pair
19833 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19834
19835 # This is the shared library runtime path variable.
19836 runpath_var=$runpath_var
19837
19838 # This is the shared library path variable.
19839 shlibpath_var=$shlibpath_var
19840
19841 # Is shlibpath searched before the hard-coded library search path?
19842 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19843
19844 # How to hardcode a shared library path into an executable.
19845 hardcode_action=$hardcode_action_GCJ
19846
19847 # Whether we should hardcode library paths into libraries.
19848 hardcode_into_libs=$hardcode_into_libs
19849
19850 # Flag to hardcode \$libdir into a binary during linking.
19851 # This must work even if \$libdir does not exist.
19852 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
19853
19854 # If ld is used when linking, flag to hardcode \$libdir into
19855 # a binary during linking. This must work even if \$libdir does
19856 # not exist.
19857 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
19858
19859 # Whether we need a single -rpath flag with a separated argument.
19860 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
19861
19862 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19863 # resulting binary.
19864 hardcode_direct=$hardcode_direct_GCJ
19865
19866 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19867 # resulting binary.
19868 hardcode_minus_L=$hardcode_minus_L_GCJ
19869
19870 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19871 # the resulting binary.
19872 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
19873
19874 # Set to yes if building a shared library automatically hardcodes DIR into the library
19875 # and all subsequent libraries and executables linked against it.
19876 hardcode_automatic=$hardcode_automatic_GCJ
19877
19878 # Variables whose values should be saved in libtool wrapper scripts and
19879 # restored at relink time.
19880 variables_saved_for_relink="$variables_saved_for_relink"
19881
19882 # Whether libtool must link a program against all its dependency libraries.
19883 link_all_deplibs=$link_all_deplibs_GCJ
19884
19885 # Compile-time system search path for libraries
19886 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19887
19888 # Run-time system search path for libraries
19889 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19890
19891 # Fix the shell variable \$srcfile for the compiler.
19892 fix_srcfile_path=$lt_fix_srcfile_path
19893
19894 # Set to yes if exported symbols are required.
19895 always_export_symbols=$always_export_symbols_GCJ
19896
19897 # The commands to list exported symbols.
19898 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
19899
19900 # The commands to extract the exported symbol list from a shared archive.
19901 extract_expsyms_cmds=$lt_extract_expsyms_cmds
19902
19903 # Symbols that should not be listed in the preloaded symbols.
19904 exclude_expsyms=$lt_exclude_expsyms_GCJ
19905
19906 # Symbols that must always be exported.
19907 include_expsyms=$lt_include_expsyms_GCJ
19908
19909 # ### END LIBTOOL TAG CONFIG: $tagname
19910
19911 __EOF__
19912
19913
19914 else
19915 # If there is no Makefile yet, we rely on a make rule to execute
19916 # `config.status --recheck' to rerun these tests and create the
19917 # libtool script then.
19918 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19919 if test -f "$ltmain_in"; then
19920 test -f Makefile && make "$ltmain"
19921 fi
19922 fi
19923
19924
19925 ac_ext=c
19926 ac_cpp='$CPP $CPPFLAGS'
19927 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19928 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19929 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19930
19931 CC="$lt_save_CC"
19932
19933 else
19934 tagname=""
19935 fi
19936 ;;
19937
19938 RC)
19939
19940
19941 # Source file extension for RC test sources.
19942 ac_ext=rc
19943
19944 # Object file extension for compiled RC test sources.
19945 objext=o
19946 objext_RC=$objext
19947
19948 # Code to be used in simple compile tests
19949 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
19950
19951 # Code to be used in simple link tests
19952 lt_simple_link_test_code="$lt_simple_compile_test_code"
19953
19954 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
19955
19956 # If no C compiler was specified, use CC.
19957 LTCC=${LTCC-"$CC"}
19958
19959 # If no C compiler flags were specified, use CFLAGS.
19960 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
19961
19962 # Allow CC to be a program name with arguments.
19963 compiler=$CC
19964
19965
19966 # save warnings/boilerplate of simple test code
19967 ac_outfile=conftest.$ac_objext
19968 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
19969 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
19970 _lt_compiler_boilerplate=`cat conftest.err`
19971 $rm conftest*
19972
19973 ac_outfile=conftest.$ac_objext
19974 echo "$lt_simple_link_test_code" >conftest.$ac_ext
19975 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
19976 _lt_linker_boilerplate=`cat conftest.err`
19977 $rm conftest*
19978
19979
19980 # Allow CC to be a program name with arguments.
19981 lt_save_CC="$CC"
19982 CC=${RC-"windres"}
19983 compiler=$CC
19984 compiler_RC=$CC
19985 for cc_temp in $compiler""; do
19986 case $cc_temp in
19987 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
19988 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
19989 \-*) ;;
19990 *) break;;
19991 esac
19992 done
19993 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
19994
19995 lt_cv_prog_compiler_c_o_RC=yes
19996
19997 # The else clause should only fire when bootstrapping the
19998 # libtool distribution, otherwise you forgot to ship ltmain.sh
19999 # with your package, and you will get complaints that there are
20000 # no rules to generate ltmain.sh.
20001 if test -f "$ltmain"; then
20002 # See if we are running on zsh, and set the options which allow our commands through
20003 # without removal of \ escapes.
20004 if test -n "${ZSH_VERSION+set}" ; then
20005 setopt NO_GLOB_SUBST
20006 fi
20007 # Now quote all the things that may contain metacharacters while being
20008 # careful not to overquote the AC_SUBSTed values. We take copies of the
20009 # variables and quote the copies for generation of the libtool script.
20010 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
20011 SED SHELL STRIP \
20012 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
20013 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
20014 deplibs_check_method reload_flag reload_cmds need_locks \
20015 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
20016 lt_cv_sys_global_symbol_to_c_name_address \
20017 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
20018 old_postinstall_cmds old_postuninstall_cmds \
20019 compiler_RC \
20020 CC_RC \
20021 LD_RC \
20022 lt_prog_compiler_wl_RC \
20023 lt_prog_compiler_pic_RC \
20024 lt_prog_compiler_static_RC \
20025 lt_prog_compiler_no_builtin_flag_RC \
20026 export_dynamic_flag_spec_RC \
20027 thread_safe_flag_spec_RC \
20028 whole_archive_flag_spec_RC \
20029 enable_shared_with_static_runtimes_RC \
20030 old_archive_cmds_RC \
20031 old_archive_from_new_cmds_RC \
20032 predep_objects_RC \
20033 postdep_objects_RC \
20034 predeps_RC \
20035 postdeps_RC \
20036 compiler_lib_search_path_RC \
20037 archive_cmds_RC \
20038 archive_expsym_cmds_RC \
20039 postinstall_cmds_RC \
20040 postuninstall_cmds_RC \
20041 old_archive_from_expsyms_cmds_RC \
20042 allow_undefined_flag_RC \
20043 no_undefined_flag_RC \
20044 export_symbols_cmds_RC \
20045 hardcode_libdir_flag_spec_RC \
20046 hardcode_libdir_flag_spec_ld_RC \
20047 hardcode_libdir_separator_RC \
20048 hardcode_automatic_RC \
20049 module_cmds_RC \
20050 module_expsym_cmds_RC \
20051 lt_cv_prog_compiler_c_o_RC \
20052 fix_srcfile_path_RC \
20053 exclude_expsyms_RC \
20054 include_expsyms_RC; do
20055
20056 case $var in
20057 old_archive_cmds_RC | \
20058 old_archive_from_new_cmds_RC | \
20059 archive_cmds_RC | \
20060 archive_expsym_cmds_RC | \
20061 module_cmds_RC | \
20062 module_expsym_cmds_RC | \
20063 old_archive_from_expsyms_cmds_RC | \
20064 export_symbols_cmds_RC | \
20065 extract_expsyms_cmds | reload_cmds | finish_cmds | \
20066 postinstall_cmds | postuninstall_cmds | \
20067 old_postinstall_cmds | old_postuninstall_cmds | \
20068 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
20069 # Double-quote double-evaled strings.
20070 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
20071 ;;
20072 *)
20073 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
20074 ;;
20075 esac
20076 done
20077
20078 case $lt_echo in
20079 *'\$0 --fallback-echo"')
20080 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
20081 ;;
20082 esac
20083
20084 cfgfile="$ofile"
20085
20086 cat <<__EOF__ >> "$cfgfile"
20087 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
20088
20089 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
20090
20091 # Shell to use when invoking shell scripts.
20092 SHELL=$lt_SHELL
20093
20094 # Whether or not to build shared libraries.
20095 build_libtool_libs=$enable_shared
20096
20097 # Whether or not to build static libraries.
20098 build_old_libs=$enable_static
20099
20100 # Whether or not to add -lc for building shared libraries.
20101 build_libtool_need_lc=$archive_cmds_need_lc_RC
20102
20103 # Whether or not to disallow shared libs when runtime libs are static
20104 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
20105
20106 # Whether or not to optimize for fast installation.
20107 fast_install=$enable_fast_install
20108
20109 # The host system.
20110 host_alias=$host_alias
20111 host=$host
20112 host_os=$host_os
20113
20114 # The build system.
20115 build_alias=$build_alias
20116 build=$build
20117 build_os=$build_os
20118
20119 # An echo program that does not interpret backslashes.
20120 echo=$lt_echo
20121
20122 # The archiver.
20123 AR=$lt_AR
20124 AR_FLAGS=$lt_AR_FLAGS
20125
20126 # A C compiler.
20127 LTCC=$lt_LTCC
20128
20129 # LTCC compiler flags.
20130 LTCFLAGS=$lt_LTCFLAGS
20131
20132 # A language-specific compiler.
20133 CC=$lt_compiler_RC
20134
20135 # Is the compiler the GNU C compiler?
20136 with_gcc=$GCC_RC
20137
20138 # An ERE matcher.
20139 EGREP=$lt_EGREP
20140
20141 # The linker used to build libraries.
20142 LD=$lt_LD_RC
20143
20144 # Whether we need hard or soft links.
20145 LN_S=$lt_LN_S
20146
20147 # A BSD-compatible nm program.
20148 NM=$lt_NM
20149
20150 # A symbol stripping program
20151 STRIP=$lt_STRIP
20152
20153 # Used to examine libraries when file_magic_cmd begins "file"
20154 MAGIC_CMD=$MAGIC_CMD
20155
20156 # Used on cygwin: DLL creation program.
20157 DLLTOOL="$DLLTOOL"
20158
20159 # Used on cygwin: object dumper.
20160 OBJDUMP="$OBJDUMP"
20161
20162 # Used on cygwin: assembler.
20163 AS="$AS"
20164
20165 # The name of the directory that contains temporary libtool files.
20166 objdir=$objdir
20167
20168 # How to create reloadable object files.
20169 reload_flag=$lt_reload_flag
20170 reload_cmds=$lt_reload_cmds
20171
20172 # How to pass a linker flag through the compiler.
20173 wl=$lt_lt_prog_compiler_wl_RC
20174
20175 # Object file suffix (normally "o").
20176 objext="$ac_objext"
20177
20178 # Old archive suffix (normally "a").
20179 libext="$libext"
20180
20181 # Shared library suffix (normally ".so").
20182 shrext_cmds='$shrext_cmds'
20183
20184 # Executable file suffix (normally "").
20185 exeext="$exeext"
20186
20187 # Additional compiler flags for building library objects.
20188 pic_flag=$lt_lt_prog_compiler_pic_RC
20189 pic_mode=$pic_mode
20190
20191 # What is the maximum length of a command?
20192 max_cmd_len=$lt_cv_sys_max_cmd_len
20193
20194 # Does compiler simultaneously support -c and -o options?
20195 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
20196
20197 # Must we lock files when doing compilation?
20198 need_locks=$lt_need_locks
20199
20200 # Do we need the lib prefix for modules?
20201 need_lib_prefix=$need_lib_prefix
20202
20203 # Do we need a version for libraries?
20204 need_version=$need_version
20205
20206 # Whether dlopen is supported.
20207 dlopen_support=$enable_dlopen
20208
20209 # Whether dlopen of programs is supported.
20210 dlopen_self=$enable_dlopen_self
20211
20212 # Whether dlopen of statically linked programs is supported.
20213 dlopen_self_static=$enable_dlopen_self_static
20214
20215 # Compiler flag to prevent dynamic linking.
20216 link_static_flag=$lt_lt_prog_compiler_static_RC
20217
20218 # Compiler flag to turn off builtin functions.
20219 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
20220
20221 # Compiler flag to allow reflexive dlopens.
20222 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
20223
20224 # Compiler flag to generate shared objects directly from archives.
20225 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
20226
20227 # Compiler flag to generate thread-safe objects.
20228 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
20229
20230 # Library versioning type.
20231 version_type=$version_type
20232
20233 # Format of library name prefix.
20234 libname_spec=$lt_libname_spec
20235
20236 # List of archive names. First name is the real one, the rest are links.
20237 # The last name is the one that the linker finds with -lNAME.
20238 library_names_spec=$lt_library_names_spec
20239
20240 # The coded name of the library, if different from the real name.
20241 soname_spec=$lt_soname_spec
20242
20243 # Commands used to build and install an old-style archive.
20244 RANLIB=$lt_RANLIB
20245 old_archive_cmds=$lt_old_archive_cmds_RC
20246 old_postinstall_cmds=$lt_old_postinstall_cmds
20247 old_postuninstall_cmds=$lt_old_postuninstall_cmds
20248
20249 # Create an old-style archive from a shared archive.
20250 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
20251
20252 # Create a temporary old-style archive to link instead of a shared archive.
20253 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
20254
20255 # Commands used to build and install a shared archive.
20256 archive_cmds=$lt_archive_cmds_RC
20257 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
20258 postinstall_cmds=$lt_postinstall_cmds
20259 postuninstall_cmds=$lt_postuninstall_cmds
20260
20261 # Commands used to build a loadable module (assumed same as above if empty)
20262 module_cmds=$lt_module_cmds_RC
20263 module_expsym_cmds=$lt_module_expsym_cmds_RC
20264
20265 # Commands to strip libraries.
20266 old_striplib=$lt_old_striplib
20267 striplib=$lt_striplib
20268
20269 # Dependencies to place before the objects being linked to create a
20270 # shared library.
20271 predep_objects=$lt_predep_objects_RC
20272
20273 # Dependencies to place after the objects being linked to create a
20274 # shared library.
20275 postdep_objects=$lt_postdep_objects_RC
20276
20277 # Dependencies to place before the objects being linked to create a
20278 # shared library.
20279 predeps=$lt_predeps_RC
20280
20281 # Dependencies to place after the objects being linked to create a
20282 # shared library.
20283 postdeps=$lt_postdeps_RC
20284
20285 # The library search path used internally by the compiler when linking
20286 # a shared library.
20287 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
20288
20289 # Method to check whether dependent libraries are shared objects.
20290 deplibs_check_method=$lt_deplibs_check_method
20291
20292 # Command to use when deplibs_check_method == file_magic.
20293 file_magic_cmd=$lt_file_magic_cmd
20294
20295 # Flag that allows shared libraries with undefined symbols to be built.
20296 allow_undefined_flag=$lt_allow_undefined_flag_RC
20297
20298 # Flag that forces no undefined symbols.
20299 no_undefined_flag=$lt_no_undefined_flag_RC
20300
20301 # Commands used to finish a libtool library installation in a directory.
20302 finish_cmds=$lt_finish_cmds
20303
20304 # Same as above, but a single script fragment to be evaled but not shown.
20305 finish_eval=$lt_finish_eval
20306
20307 # Take the output of nm and produce a listing of raw symbols and C names.
20308 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
20309
20310 # Transform the output of nm in a proper C declaration
20311 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
20312
20313 # Transform the output of nm in a C name address pair
20314 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
20315
20316 # This is the shared library runtime path variable.
20317 runpath_var=$runpath_var
20318
20319 # This is the shared library path variable.
20320 shlibpath_var=$shlibpath_var
20321
20322 # Is shlibpath searched before the hard-coded library search path?
20323 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
20324
20325 # How to hardcode a shared library path into an executable.
20326 hardcode_action=$hardcode_action_RC
20327
20328 # Whether we should hardcode library paths into libraries.
20329 hardcode_into_libs=$hardcode_into_libs
20330
20331 # Flag to hardcode \$libdir into a binary during linking.
20332 # This must work even if \$libdir does not exist.
20333 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
20334
20335 # If ld is used when linking, flag to hardcode \$libdir into
20336 # a binary during linking. This must work even if \$libdir does
20337 # not exist.
20338 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
20339
20340 # Whether we need a single -rpath flag with a separated argument.
20341 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
20342
20343 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
20344 # resulting binary.
20345 hardcode_direct=$hardcode_direct_RC
20346
20347 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
20348 # resulting binary.
20349 hardcode_minus_L=$hardcode_minus_L_RC
20350
20351 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
20352 # the resulting binary.
20353 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
20354
20355 # Set to yes if building a shared library automatically hardcodes DIR into the library
20356 # and all subsequent libraries and executables linked against it.
20357 hardcode_automatic=$hardcode_automatic_RC
20358
20359 # Variables whose values should be saved in libtool wrapper scripts and
20360 # restored at relink time.
20361 variables_saved_for_relink="$variables_saved_for_relink"
20362
20363 # Whether libtool must link a program against all its dependency libraries.
20364 link_all_deplibs=$link_all_deplibs_RC
20365
20366 # Compile-time system search path for libraries
20367 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
20368
20369 # Run-time system search path for libraries
20370 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
20371
20372 # Fix the shell variable \$srcfile for the compiler.
20373 fix_srcfile_path=$lt_fix_srcfile_path
20374
20375 # Set to yes if exported symbols are required.
20376 always_export_symbols=$always_export_symbols_RC
20377
20378 # The commands to list exported symbols.
20379 export_symbols_cmds=$lt_export_symbols_cmds_RC
20380
20381 # The commands to extract the exported symbol list from a shared archive.
20382 extract_expsyms_cmds=$lt_extract_expsyms_cmds
20383
20384 # Symbols that should not be listed in the preloaded symbols.
20385 exclude_expsyms=$lt_exclude_expsyms_RC
20386
20387 # Symbols that must always be exported.
20388 include_expsyms=$lt_include_expsyms_RC
20389
20390 # ### END LIBTOOL TAG CONFIG: $tagname
20391
20392 __EOF__
20393
20394
20395 else
20396 # If there is no Makefile yet, we rely on a make rule to execute
20397 # `config.status --recheck' to rerun these tests and create the
20398 # libtool script then.
20399 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
20400 if test -f "$ltmain_in"; then
20401 test -f Makefile && make "$ltmain"
20402 fi
20403 fi
20404
20405
20406 ac_ext=c
20407 ac_cpp='$CPP $CPPFLAGS'
20408 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20409 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20410 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20411
20412 CC="$lt_save_CC"
20413
20414 ;;
20415
20416 *)
20417 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
20418 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
20419 { (exit 1); exit 1; }; }
20420 ;;
20421 esac
20422
20423 # Append the new tag name to the list of available tags.
20424 if test -n "$tagname" ; then
20425 available_tags="$available_tags $tagname"
20426 fi
20427 fi
20428 done
20429 IFS="$lt_save_ifs"
20430
20431 # Now substitute the updated list of available tags.
20432 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
20433 mv "${ofile}T" "$ofile"
20434 chmod +x "$ofile"
20435 else
20436 rm -f "${ofile}T"
20437 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
20438 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
20439 { (exit 1); exit 1; }; }
20440 fi
20441 fi
20442
20443
20444
20445 # This can be used to rebuild libtool when needed
20446 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
20447
20448 # Always use our own libtool.
20449 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
20450
20451 # Prevent multiple expansion
20452
20453
20454
20455
20456 :
20457 :
20458
20459
20460
13348
13349
13350
13351
13352
13353
13354
13355
13356
13357
13358
13359 ac_config_commands="$ac_config_commands libtool"
13360
13361
13362
13363
13364 # Only expand once:
2046113365
2046213366
2046313367
2048213386
2048313387 for ac_header in stdarg.h stdbool.h netinet/in.h sys/param.h sys/socket.h sys/uio.h sys/resource.h arpa/inet.h syslog.h netdb.h sys/wait.h pwd.h glob.h grp.h login_cap.h winsock2.h ws2tcpip.h
2048413388 do
20485 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20486 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20487 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13389 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13390 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
13391 $as_echo_n "checking for $ac_header... " >&6; }
2048813392 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20489 echo $ECHO_N "(cached) $ECHO_C" >&6
13393 $as_echo_n "(cached) " >&6
2049013394 else
2049113395 cat >conftest.$ac_ext <<_ACEOF
2049213396 /* confdefs.h. */
2050413408 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2050513409 *) ac_try_echo=$ac_try;;
2050613410 esac
20507 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13411 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13412 $as_echo "$ac_try_echo") >&5
2050813413 (eval "$ac_compile") 2>conftest.er1
2050913414 ac_status=$?
2051013415 grep -v '^ *+' conftest.er1 >conftest.err
2051113416 rm -f conftest.er1
2051213417 cat conftest.err >&5
20513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13418 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2051413419 (exit $ac_status); } && {
2051513420 test -z "$ac_c_werror_flag" ||
2051613421 test ! -s conftest.err
2051713422 } && test -s conftest.$ac_objext; then
2051813423 eval "$as_ac_Header=yes"
2051913424 else
20520 echo "$as_me: failed program was:" >&5
13425 $as_echo "$as_me: failed program was:" >&5
2052113426 sed 's/^/| /' conftest.$ac_ext >&5
2052213427
2052313428 eval "$as_ac_Header=no"
2052513430
2052613431 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2052713432 fi
20528 ac_res=`eval echo '${'$as_ac_Header'}'`
20529 { echo "$as_me:$LINENO: result: $ac_res" >&5
20530 echo "${ECHO_T}$ac_res" >&6; }
20531 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13433 ac_res=`eval 'as_val=${'$as_ac_Header'}
13434 $as_echo "$as_val"'`
13435 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
13436 $as_echo "$ac_res" >&6; }
13437 as_val=`eval 'as_val=${'$as_ac_Header'}
13438 $as_echo "$as_val"'`
13439 if test "x$as_val" = x""yes; then
2053213440 cat >>confdefs.h <<_ACEOF
20533 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13441 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
2053413442 _ACEOF
2053513443
2053613444 fi
2054013448
2054113449 # check for types.
2054213450 # Using own tests for int64* because autoconf builtin only give 32bit.
20543 { echo "$as_me:$LINENO: checking for int8_t" >&5
20544 echo $ECHO_N "checking for int8_t... $ECHO_C" >&6; }
13451 { $as_echo "$as_me:$LINENO: checking for int8_t" >&5
13452 $as_echo_n "checking for int8_t... " >&6; }
2054513453 if test "${ac_cv_type_int8_t+set}" = set; then
20546 echo $ECHO_N "(cached) $ECHO_C" >&6
20547 else
20548 cat >conftest.$ac_ext <<_ACEOF
13454 $as_echo_n "(cached) " >&6
13455 else
13456 ac_cv_type_int8_t=no
13457 cat >conftest.$ac_ext <<_ACEOF
2054913458 /* confdefs.h. */
2055013459 _ACEOF
2055113460 cat confdefs.h >>conftest.$ac_ext
2055213461 cat >>conftest.$ac_ext <<_ACEOF
2055313462 /* end confdefs.h. */
2055413463 $ac_includes_default
20555 typedef int8_t ac__type_new_;
2055613464 int
2055713465 main ()
2055813466 {
20559 if ((ac__type_new_ *) 0)
20560 return 0;
20561 if (sizeof (ac__type_new_))
20562 return 0;
13467 if (sizeof (int8_t))
13468 return 0;
2056313469 ;
2056413470 return 0;
2056513471 }
2057013476 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2057113477 *) ac_try_echo=$ac_try;;
2057213478 esac
20573 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13479 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13480 $as_echo "$ac_try_echo") >&5
2057413481 (eval "$ac_compile") 2>conftest.er1
2057513482 ac_status=$?
2057613483 grep -v '^ *+' conftest.er1 >conftest.err
2057713484 rm -f conftest.er1
2057813485 cat conftest.err >&5
20579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13486 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2058013487 (exit $ac_status); } && {
2058113488 test -z "$ac_c_werror_flag" ||
2058213489 test ! -s conftest.err
2058313490 } && test -s conftest.$ac_objext; then
20584 ac_cv_type_int8_t=yes
20585 else
20586 echo "$as_me: failed program was:" >&5
20587 sed 's/^/| /' conftest.$ac_ext >&5
20588
20589 ac_cv_type_int8_t=no
20590 fi
20591
20592 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20593 fi
20594 { echo "$as_me:$LINENO: result: $ac_cv_type_int8_t" >&5
20595 echo "${ECHO_T}$ac_cv_type_int8_t" >&6; }
20596 if test $ac_cv_type_int8_t = yes; then
20597 :
20598 else
20599
20600 cat >>confdefs.h <<_ACEOF
20601 #define int8_t signed char
20602 _ACEOF
20603
20604 fi
20605
20606 { echo "$as_me:$LINENO: checking for int16_t" >&5
20607 echo $ECHO_N "checking for int16_t... $ECHO_C" >&6; }
20608 if test "${ac_cv_type_int16_t+set}" = set; then
20609 echo $ECHO_N "(cached) $ECHO_C" >&6
20610 else
2061113491 cat >conftest.$ac_ext <<_ACEOF
2061213492 /* confdefs.h. */
2061313493 _ACEOF
2061513495 cat >>conftest.$ac_ext <<_ACEOF
2061613496 /* end confdefs.h. */
2061713497 $ac_includes_default
20618 typedef int16_t ac__type_new_;
2061913498 int
2062013499 main ()
2062113500 {
20622 if ((ac__type_new_ *) 0)
20623 return 0;
20624 if (sizeof (ac__type_new_))
20625 return 0;
13501 if (sizeof ((int8_t)))
13502 return 0;
2062613503 ;
2062713504 return 0;
2062813505 }
2063313510 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2063413511 *) ac_try_echo=$ac_try;;
2063513512 esac
20636 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13513 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13514 $as_echo "$ac_try_echo") >&5
2063713515 (eval "$ac_compile") 2>conftest.er1
2063813516 ac_status=$?
2063913517 grep -v '^ *+' conftest.er1 >conftest.err
2064013518 rm -f conftest.er1
2064113519 cat conftest.err >&5
20642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13520 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2064313521 (exit $ac_status); } && {
2064413522 test -z "$ac_c_werror_flag" ||
2064513523 test ! -s conftest.err
2064613524 } && test -s conftest.$ac_objext; then
20647 ac_cv_type_int16_t=yes
20648 else
20649 echo "$as_me: failed program was:" >&5
13525 :
13526 else
13527 $as_echo "$as_me: failed program was:" >&5
2065013528 sed 's/^/| /' conftest.$ac_ext >&5
2065113529
20652 ac_cv_type_int16_t=no
13530 ac_cv_type_int8_t=yes
2065313531 fi
2065413532
2065513533 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20656 fi
20657 { echo "$as_me:$LINENO: result: $ac_cv_type_int16_t" >&5
20658 echo "${ECHO_T}$ac_cv_type_int16_t" >&6; }
20659 if test $ac_cv_type_int16_t = yes; then
13534 else
13535 $as_echo "$as_me: failed program was:" >&5
13536 sed 's/^/| /' conftest.$ac_ext >&5
13537
13538
13539 fi
13540
13541 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13542 fi
13543 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_int8_t" >&5
13544 $as_echo "$ac_cv_type_int8_t" >&6; }
13545 if test "x$ac_cv_type_int8_t" = x""yes; then
2066013546 :
2066113547 else
2066213548
2066313549 cat >>confdefs.h <<_ACEOF
20664 #define int16_t short
20665 _ACEOF
20666
20667 fi
20668
20669 { echo "$as_me:$LINENO: checking for int32_t" >&5
20670 echo $ECHO_N "checking for int32_t... $ECHO_C" >&6; }
20671 if test "${ac_cv_type_int32_t+set}" = set; then
20672 echo $ECHO_N "(cached) $ECHO_C" >&6
20673 else
20674 cat >conftest.$ac_ext <<_ACEOF
13550 #define int8_t signed char
13551 _ACEOF
13552
13553 fi
13554
13555 { $as_echo "$as_me:$LINENO: checking for int16_t" >&5
13556 $as_echo_n "checking for int16_t... " >&6; }
13557 if test "${ac_cv_type_int16_t+set}" = set; then
13558 $as_echo_n "(cached) " >&6
13559 else
13560 ac_cv_type_int16_t=no
13561 cat >conftest.$ac_ext <<_ACEOF
2067513562 /* confdefs.h. */
2067613563 _ACEOF
2067713564 cat confdefs.h >>conftest.$ac_ext
2067813565 cat >>conftest.$ac_ext <<_ACEOF
2067913566 /* end confdefs.h. */
2068013567 $ac_includes_default
20681 typedef int32_t ac__type_new_;
2068213568 int
2068313569 main ()
2068413570 {
20685 if ((ac__type_new_ *) 0)
20686 return 0;
20687 if (sizeof (ac__type_new_))
20688 return 0;
13571 if (sizeof (int16_t))
13572 return 0;
2068913573 ;
2069013574 return 0;
2069113575 }
2069613580 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2069713581 *) ac_try_echo=$ac_try;;
2069813582 esac
20699 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13583 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13584 $as_echo "$ac_try_echo") >&5
2070013585 (eval "$ac_compile") 2>conftest.er1
2070113586 ac_status=$?
2070213587 grep -v '^ *+' conftest.er1 >conftest.err
2070313588 rm -f conftest.er1
2070413589 cat conftest.err >&5
20705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13590 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2070613591 (exit $ac_status); } && {
2070713592 test -z "$ac_c_werror_flag" ||
2070813593 test ! -s conftest.err
2070913594 } && test -s conftest.$ac_objext; then
20710 ac_cv_type_int32_t=yes
20711 else
20712 echo "$as_me: failed program was:" >&5
20713 sed 's/^/| /' conftest.$ac_ext >&5
20714
20715 ac_cv_type_int32_t=no
20716 fi
20717
20718 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20719 fi
20720 { echo "$as_me:$LINENO: result: $ac_cv_type_int32_t" >&5
20721 echo "${ECHO_T}$ac_cv_type_int32_t" >&6; }
20722 if test $ac_cv_type_int32_t = yes; then
20723 :
20724 else
20725
20726 cat >>confdefs.h <<_ACEOF
20727 #define int32_t int
20728 _ACEOF
20729
20730 fi
20731
20732 { echo "$as_me:$LINENO: checking for int64_t" >&5
20733 echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; }
20734 if test "${ac_cv_type_int64_t+set}" = set; then
20735 echo $ECHO_N "(cached) $ECHO_C" >&6
20736 else
2073713595 cat >conftest.$ac_ext <<_ACEOF
2073813596 /* confdefs.h. */
2073913597 _ACEOF
2074113599 cat >>conftest.$ac_ext <<_ACEOF
2074213600 /* end confdefs.h. */
2074313601 $ac_includes_default
20744 typedef int64_t ac__type_new_;
2074513602 int
2074613603 main ()
2074713604 {
20748 if ((ac__type_new_ *) 0)
20749 return 0;
20750 if (sizeof (ac__type_new_))
20751 return 0;
13605 if (sizeof ((int16_t)))
13606 return 0;
2075213607 ;
2075313608 return 0;
2075413609 }
2075913614 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2076013615 *) ac_try_echo=$ac_try;;
2076113616 esac
20762 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13617 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13618 $as_echo "$ac_try_echo") >&5
2076313619 (eval "$ac_compile") 2>conftest.er1
2076413620 ac_status=$?
2076513621 grep -v '^ *+' conftest.er1 >conftest.err
2076613622 rm -f conftest.er1
2076713623 cat conftest.err >&5
20768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13624 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2076913625 (exit $ac_status); } && {
2077013626 test -z "$ac_c_werror_flag" ||
2077113627 test ! -s conftest.err
2077213628 } && test -s conftest.$ac_objext; then
20773 ac_cv_type_int64_t=yes
20774 else
20775 echo "$as_me: failed program was:" >&5
13629 :
13630 else
13631 $as_echo "$as_me: failed program was:" >&5
2077613632 sed 's/^/| /' conftest.$ac_ext >&5
2077713633
20778 ac_cv_type_int64_t=no
13634 ac_cv_type_int16_t=yes
2077913635 fi
2078013636
2078113637 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20782 fi
20783 { echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
20784 echo "${ECHO_T}$ac_cv_type_int64_t" >&6; }
20785 if test $ac_cv_type_int64_t = yes; then
13638 else
13639 $as_echo "$as_me: failed program was:" >&5
13640 sed 's/^/| /' conftest.$ac_ext >&5
13641
13642
13643 fi
13644
13645 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13646 fi
13647 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_int16_t" >&5
13648 $as_echo "$ac_cv_type_int16_t" >&6; }
13649 if test "x$ac_cv_type_int16_t" = x""yes; then
2078613650 :
2078713651 else
2078813652
2078913653 cat >>confdefs.h <<_ACEOF
20790 #define int64_t long long
20791 _ACEOF
20792
20793 fi
20794
20795 { echo "$as_me:$LINENO: checking for uint8_t" >&5
20796 echo $ECHO_N "checking for uint8_t... $ECHO_C" >&6; }
20797 if test "${ac_cv_type_uint8_t+set}" = set; then
20798 echo $ECHO_N "(cached) $ECHO_C" >&6
20799 else
20800 cat >conftest.$ac_ext <<_ACEOF
13654 #define int16_t short
13655 _ACEOF
13656
13657 fi
13658
13659 { $as_echo "$as_me:$LINENO: checking for int32_t" >&5
13660 $as_echo_n "checking for int32_t... " >&6; }
13661 if test "${ac_cv_type_int32_t+set}" = set; then
13662 $as_echo_n "(cached) " >&6
13663 else
13664 ac_cv_type_int32_t=no
13665 cat >conftest.$ac_ext <<_ACEOF
2080113666 /* confdefs.h. */
2080213667 _ACEOF
2080313668 cat confdefs.h >>conftest.$ac_ext
2080413669 cat >>conftest.$ac_ext <<_ACEOF
2080513670 /* end confdefs.h. */
2080613671 $ac_includes_default
20807 typedef uint8_t ac__type_new_;
2080813672 int
2080913673 main ()
2081013674 {
20811 if ((ac__type_new_ *) 0)
20812 return 0;
20813 if (sizeof (ac__type_new_))
20814 return 0;
13675 if (sizeof (int32_t))
13676 return 0;
2081513677 ;
2081613678 return 0;
2081713679 }
2082213684 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2082313685 *) ac_try_echo=$ac_try;;
2082413686 esac
20825 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13687 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13688 $as_echo "$ac_try_echo") >&5
2082613689 (eval "$ac_compile") 2>conftest.er1
2082713690 ac_status=$?
2082813691 grep -v '^ *+' conftest.er1 >conftest.err
2082913692 rm -f conftest.er1
2083013693 cat conftest.err >&5
20831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13694 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2083213695 (exit $ac_status); } && {
2083313696 test -z "$ac_c_werror_flag" ||
2083413697 test ! -s conftest.err
2083513698 } && test -s conftest.$ac_objext; then
20836 ac_cv_type_uint8_t=yes
20837 else
20838 echo "$as_me: failed program was:" >&5
20839 sed 's/^/| /' conftest.$ac_ext >&5
20840
20841 ac_cv_type_uint8_t=no
20842 fi
20843
20844 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20845 fi
20846 { echo "$as_me:$LINENO: result: $ac_cv_type_uint8_t" >&5
20847 echo "${ECHO_T}$ac_cv_type_uint8_t" >&6; }
20848 if test $ac_cv_type_uint8_t = yes; then
20849 :
20850 else
20851
20852 cat >>confdefs.h <<_ACEOF
20853 #define uint8_t unsigned char
20854 _ACEOF
20855
20856 fi
20857
20858 { echo "$as_me:$LINENO: checking for uint16_t" >&5
20859 echo $ECHO_N "checking for uint16_t... $ECHO_C" >&6; }
20860 if test "${ac_cv_type_uint16_t+set}" = set; then
20861 echo $ECHO_N "(cached) $ECHO_C" >&6
20862 else
2086313699 cat >conftest.$ac_ext <<_ACEOF
2086413700 /* confdefs.h. */
2086513701 _ACEOF
2086713703 cat >>conftest.$ac_ext <<_ACEOF
2086813704 /* end confdefs.h. */
2086913705 $ac_includes_default
20870 typedef uint16_t ac__type_new_;
2087113706 int
2087213707 main ()
2087313708 {
20874 if ((ac__type_new_ *) 0)
20875 return 0;
20876 if (sizeof (ac__type_new_))
20877 return 0;
13709 if (sizeof ((int32_t)))
13710 return 0;
2087813711 ;
2087913712 return 0;
2088013713 }
2088513718 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2088613719 *) ac_try_echo=$ac_try;;
2088713720 esac
20888 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13721 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13722 $as_echo "$ac_try_echo") >&5
2088913723 (eval "$ac_compile") 2>conftest.er1
2089013724 ac_status=$?
2089113725 grep -v '^ *+' conftest.er1 >conftest.err
2089213726 rm -f conftest.er1
2089313727 cat conftest.err >&5
20894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13728 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2089513729 (exit $ac_status); } && {
2089613730 test -z "$ac_c_werror_flag" ||
2089713731 test ! -s conftest.err
2089813732 } && test -s conftest.$ac_objext; then
20899 ac_cv_type_uint16_t=yes
20900 else
20901 echo "$as_me: failed program was:" >&5
13733 :
13734 else
13735 $as_echo "$as_me: failed program was:" >&5
2090213736 sed 's/^/| /' conftest.$ac_ext >&5
2090313737
20904 ac_cv_type_uint16_t=no
13738 ac_cv_type_int32_t=yes
2090513739 fi
2090613740
2090713741 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20908 fi
20909 { echo "$as_me:$LINENO: result: $ac_cv_type_uint16_t" >&5
20910 echo "${ECHO_T}$ac_cv_type_uint16_t" >&6; }
20911 if test $ac_cv_type_uint16_t = yes; then
13742 else
13743 $as_echo "$as_me: failed program was:" >&5
13744 sed 's/^/| /' conftest.$ac_ext >&5
13745
13746
13747 fi
13748
13749 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13750 fi
13751 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_int32_t" >&5
13752 $as_echo "$ac_cv_type_int32_t" >&6; }
13753 if test "x$ac_cv_type_int32_t" = x""yes; then
2091213754 :
2091313755 else
2091413756
2091513757 cat >>confdefs.h <<_ACEOF
20916 #define uint16_t unsigned short
20917 _ACEOF
20918
20919 fi
20920
20921 { echo "$as_me:$LINENO: checking for uint32_t" >&5
20922 echo $ECHO_N "checking for uint32_t... $ECHO_C" >&6; }
20923 if test "${ac_cv_type_uint32_t+set}" = set; then
20924 echo $ECHO_N "(cached) $ECHO_C" >&6
20925 else
20926 cat >conftest.$ac_ext <<_ACEOF
13758 #define int32_t int
13759 _ACEOF
13760
13761 fi
13762
13763 { $as_echo "$as_me:$LINENO: checking for int64_t" >&5
13764 $as_echo_n "checking for int64_t... " >&6; }
13765 if test "${ac_cv_type_int64_t+set}" = set; then
13766 $as_echo_n "(cached) " >&6
13767 else
13768 ac_cv_type_int64_t=no
13769 cat >conftest.$ac_ext <<_ACEOF
2092713770 /* confdefs.h. */
2092813771 _ACEOF
2092913772 cat confdefs.h >>conftest.$ac_ext
2093013773 cat >>conftest.$ac_ext <<_ACEOF
2093113774 /* end confdefs.h. */
2093213775 $ac_includes_default
20933 typedef uint32_t ac__type_new_;
2093413776 int
2093513777 main ()
2093613778 {
20937 if ((ac__type_new_ *) 0)
20938 return 0;
20939 if (sizeof (ac__type_new_))
20940 return 0;
13779 if (sizeof (int64_t))
13780 return 0;
2094113781 ;
2094213782 return 0;
2094313783 }
2094813788 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2094913789 *) ac_try_echo=$ac_try;;
2095013790 esac
20951 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13791 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13792 $as_echo "$ac_try_echo") >&5
2095213793 (eval "$ac_compile") 2>conftest.er1
2095313794 ac_status=$?
2095413795 grep -v '^ *+' conftest.er1 >conftest.err
2095513796 rm -f conftest.er1
2095613797 cat conftest.err >&5
20957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13798 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2095813799 (exit $ac_status); } && {
2095913800 test -z "$ac_c_werror_flag" ||
2096013801 test ! -s conftest.err
2096113802 } && test -s conftest.$ac_objext; then
20962 ac_cv_type_uint32_t=yes
20963 else
20964 echo "$as_me: failed program was:" >&5
20965 sed 's/^/| /' conftest.$ac_ext >&5
20966
20967 ac_cv_type_uint32_t=no
20968 fi
20969
20970 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20971 fi
20972 { echo "$as_me:$LINENO: result: $ac_cv_type_uint32_t" >&5
20973 echo "${ECHO_T}$ac_cv_type_uint32_t" >&6; }
20974 if test $ac_cv_type_uint32_t = yes; then
20975 :
20976 else
20977
20978 cat >>confdefs.h <<_ACEOF
20979 #define uint32_t unsigned int
20980 _ACEOF
20981
20982 fi
20983
20984 { echo "$as_me:$LINENO: checking for uint64_t" >&5
20985 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6; }
20986 if test "${ac_cv_type_uint64_t+set}" = set; then
20987 echo $ECHO_N "(cached) $ECHO_C" >&6
20988 else
2098913803 cat >conftest.$ac_ext <<_ACEOF
2099013804 /* confdefs.h. */
2099113805 _ACEOF
2099313807 cat >>conftest.$ac_ext <<_ACEOF
2099413808 /* end confdefs.h. */
2099513809 $ac_includes_default
20996 typedef uint64_t ac__type_new_;
2099713810 int
2099813811 main ()
2099913812 {
21000 if ((ac__type_new_ *) 0)
21001 return 0;
21002 if (sizeof (ac__type_new_))
21003 return 0;
13813 if (sizeof ((int64_t)))
13814 return 0;
2100413815 ;
2100513816 return 0;
2100613817 }
2101113822 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2101213823 *) ac_try_echo=$ac_try;;
2101313824 esac
21014 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13825 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13826 $as_echo "$ac_try_echo") >&5
2101513827 (eval "$ac_compile") 2>conftest.er1
2101613828 ac_status=$?
2101713829 grep -v '^ *+' conftest.er1 >conftest.err
2101813830 rm -f conftest.er1
2101913831 cat conftest.err >&5
21020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13832 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2102113833 (exit $ac_status); } && {
2102213834 test -z "$ac_c_werror_flag" ||
2102313835 test ! -s conftest.err
2102413836 } && test -s conftest.$ac_objext; then
21025 ac_cv_type_uint64_t=yes
21026 else
21027 echo "$as_me: failed program was:" >&5
13837 :
13838 else
13839 $as_echo "$as_me: failed program was:" >&5
2102813840 sed 's/^/| /' conftest.$ac_ext >&5
2102913841
21030 ac_cv_type_uint64_t=no
13842 ac_cv_type_int64_t=yes
2103113843 fi
2103213844
2103313845 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21034 fi
21035 { echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
21036 echo "${ECHO_T}$ac_cv_type_uint64_t" >&6; }
21037 if test $ac_cv_type_uint64_t = yes; then
13846 else
13847 $as_echo "$as_me: failed program was:" >&5
13848 sed 's/^/| /' conftest.$ac_ext >&5
13849
13850
13851 fi
13852
13853 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13854 fi
13855 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
13856 $as_echo "$ac_cv_type_int64_t" >&6; }
13857 if test "x$ac_cv_type_int64_t" = x""yes; then
2103813858 :
2103913859 else
2104013860
2104113861 cat >>confdefs.h <<_ACEOF
21042 #define uint64_t unsigned long long
21043 _ACEOF
21044
21045 fi
21046
21047 { echo "$as_me:$LINENO: checking for size_t" >&5
21048 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
21049 if test "${ac_cv_type_size_t+set}" = set; then
21050 echo $ECHO_N "(cached) $ECHO_C" >&6
21051 else
21052 cat >conftest.$ac_ext <<_ACEOF
13862 #define int64_t long long
13863 _ACEOF
13864
13865 fi
13866
13867 { $as_echo "$as_me:$LINENO: checking for uint8_t" >&5
13868 $as_echo_n "checking for uint8_t... " >&6; }
13869 if test "${ac_cv_type_uint8_t+set}" = set; then
13870 $as_echo_n "(cached) " >&6
13871 else
13872 ac_cv_type_uint8_t=no
13873 cat >conftest.$ac_ext <<_ACEOF
2105313874 /* confdefs.h. */
2105413875 _ACEOF
2105513876 cat confdefs.h >>conftest.$ac_ext
2105613877 cat >>conftest.$ac_ext <<_ACEOF
2105713878 /* end confdefs.h. */
2105813879 $ac_includes_default
21059 typedef size_t ac__type_new_;
2106013880 int
2106113881 main ()
2106213882 {
21063 if ((ac__type_new_ *) 0)
21064 return 0;
21065 if (sizeof (ac__type_new_))
21066 return 0;
13883 if (sizeof (uint8_t))
13884 return 0;
2106713885 ;
2106813886 return 0;
2106913887 }
2107413892 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2107513893 *) ac_try_echo=$ac_try;;
2107613894 esac
21077 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13895 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13896 $as_echo "$ac_try_echo") >&5
2107813897 (eval "$ac_compile") 2>conftest.er1
2107913898 ac_status=$?
2108013899 grep -v '^ *+' conftest.er1 >conftest.err
2108113900 rm -f conftest.er1
2108213901 cat conftest.err >&5
21083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13902 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2108413903 (exit $ac_status); } && {
2108513904 test -z "$ac_c_werror_flag" ||
2108613905 test ! -s conftest.err
2108713906 } && test -s conftest.$ac_objext; then
21088 ac_cv_type_size_t=yes
21089 else
21090 echo "$as_me: failed program was:" >&5
21091 sed 's/^/| /' conftest.$ac_ext >&5
21092
21093 ac_cv_type_size_t=no
21094 fi
21095
21096 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21097 fi
21098 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
21099 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
21100 if test $ac_cv_type_size_t = yes; then
21101 :
21102 else
21103
21104 cat >>confdefs.h <<_ACEOF
21105 #define size_t unsigned int
21106 _ACEOF
21107
21108 fi
21109
21110 { echo "$as_me:$LINENO: checking for ssize_t" >&5
21111 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6; }
21112 if test "${ac_cv_type_ssize_t+set}" = set; then
21113 echo $ECHO_N "(cached) $ECHO_C" >&6
21114 else
2111513907 cat >conftest.$ac_ext <<_ACEOF
2111613908 /* confdefs.h. */
2111713909 _ACEOF
2111913911 cat >>conftest.$ac_ext <<_ACEOF
2112013912 /* end confdefs.h. */
2112113913 $ac_includes_default
21122 typedef ssize_t ac__type_new_;
2112313914 int
2112413915 main ()
2112513916 {
21126 if ((ac__type_new_ *) 0)
21127 return 0;
21128 if (sizeof (ac__type_new_))
21129 return 0;
13917 if (sizeof ((uint8_t)))
13918 return 0;
2113013919 ;
2113113920 return 0;
2113213921 }
2113713926 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2113813927 *) ac_try_echo=$ac_try;;
2113913928 esac
21140 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13929 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13930 $as_echo "$ac_try_echo") >&5
2114113931 (eval "$ac_compile") 2>conftest.er1
2114213932 ac_status=$?
2114313933 grep -v '^ *+' conftest.er1 >conftest.err
2114413934 rm -f conftest.er1
2114513935 cat conftest.err >&5
21146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13936 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2114713937 (exit $ac_status); } && {
2114813938 test -z "$ac_c_werror_flag" ||
2114913939 test ! -s conftest.err
2115013940 } && test -s conftest.$ac_objext; then
21151 ac_cv_type_ssize_t=yes
21152 else
21153 echo "$as_me: failed program was:" >&5
13941 :
13942 else
13943 $as_echo "$as_me: failed program was:" >&5
2115413944 sed 's/^/| /' conftest.$ac_ext >&5
2115513945
21156 ac_cv_type_ssize_t=no
13946 ac_cv_type_uint8_t=yes
2115713947 fi
2115813948
2115913949 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21160 fi
21161 { echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
21162 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6; }
21163 if test $ac_cv_type_ssize_t = yes; then
13950 else
13951 $as_echo "$as_me: failed program was:" >&5
13952 sed 's/^/| /' conftest.$ac_ext >&5
13953
13954
13955 fi
13956
13957 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13958 fi
13959 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_uint8_t" >&5
13960 $as_echo "$ac_cv_type_uint8_t" >&6; }
13961 if test "x$ac_cv_type_uint8_t" = x""yes; then
2116413962 :
2116513963 else
2116613964
2116713965 cat >>confdefs.h <<_ACEOF
21168 #define ssize_t int
21169 _ACEOF
21170
21171 fi
21172
21173 { echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
21174 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6; }
21175 if test "${ac_cv_type_uid_t+set}" = set; then
21176 echo $ECHO_N "(cached) $ECHO_C" >&6
21177 else
21178 cat >conftest.$ac_ext <<_ACEOF
21179 /* confdefs.h. */
21180 _ACEOF
21181 cat confdefs.h >>conftest.$ac_ext
21182 cat >>conftest.$ac_ext <<_ACEOF
21183 /* end confdefs.h. */
21184 #include <sys/types.h>
21185
21186 _ACEOF
21187 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21188 $EGREP "uid_t" >/dev/null 2>&1; then
21189 ac_cv_type_uid_t=yes
21190 else
21191 ac_cv_type_uid_t=no
21192 fi
21193 rm -f conftest*
21194
21195 fi
21196 { echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
21197 echo "${ECHO_T}$ac_cv_type_uid_t" >&6; }
21198 if test $ac_cv_type_uid_t = no; then
21199
21200 cat >>confdefs.h <<\_ACEOF
21201 #define uid_t int
21202 _ACEOF
21203
21204
21205 cat >>confdefs.h <<\_ACEOF
21206 #define gid_t int
21207 _ACEOF
21208
21209 fi
21210
21211 { echo "$as_me:$LINENO: checking for pid_t" >&5
21212 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
21213 if test "${ac_cv_type_pid_t+set}" = set; then
21214 echo $ECHO_N "(cached) $ECHO_C" >&6
21215 else
21216 cat >conftest.$ac_ext <<_ACEOF
13966 #define uint8_t unsigned char
13967 _ACEOF
13968
13969 fi
13970
13971 { $as_echo "$as_me:$LINENO: checking for uint16_t" >&5
13972 $as_echo_n "checking for uint16_t... " >&6; }
13973 if test "${ac_cv_type_uint16_t+set}" = set; then
13974 $as_echo_n "(cached) " >&6
13975 else
13976 ac_cv_type_uint16_t=no
13977 cat >conftest.$ac_ext <<_ACEOF
2121713978 /* confdefs.h. */
2121813979 _ACEOF
2121913980 cat confdefs.h >>conftest.$ac_ext
2122013981 cat >>conftest.$ac_ext <<_ACEOF
2122113982 /* end confdefs.h. */
2122213983 $ac_includes_default
21223 typedef pid_t ac__type_new_;
2122413984 int
2122513985 main ()
2122613986 {
21227 if ((ac__type_new_ *) 0)
21228 return 0;
21229 if (sizeof (ac__type_new_))
21230 return 0;
13987 if (sizeof (uint16_t))
13988 return 0;
2123113989 ;
2123213990 return 0;
2123313991 }
2123813996 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2123913997 *) ac_try_echo=$ac_try;;
2124013998 esac
21241 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13999 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14000 $as_echo "$ac_try_echo") >&5
2124214001 (eval "$ac_compile") 2>conftest.er1
2124314002 ac_status=$?
2124414003 grep -v '^ *+' conftest.er1 >conftest.err
2124514004 rm -f conftest.er1
2124614005 cat conftest.err >&5
21247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14006 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2124814007 (exit $ac_status); } && {
2124914008 test -z "$ac_c_werror_flag" ||
2125014009 test ! -s conftest.err
2125114010 } && test -s conftest.$ac_objext; then
21252 ac_cv_type_pid_t=yes
21253 else
21254 echo "$as_me: failed program was:" >&5
21255 sed 's/^/| /' conftest.$ac_ext >&5
21256
21257 ac_cv_type_pid_t=no
21258 fi
21259
21260 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21261 fi
21262 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
21263 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
21264 if test $ac_cv_type_pid_t = yes; then
21265 :
21266 else
21267
21268 cat >>confdefs.h <<_ACEOF
21269 #define pid_t int
21270 _ACEOF
21271
21272 fi
21273
21274 { echo "$as_me:$LINENO: checking for off_t" >&5
21275 echo $ECHO_N "checking for off_t... $ECHO_C" >&6; }
21276 if test "${ac_cv_type_off_t+set}" = set; then
21277 echo $ECHO_N "(cached) $ECHO_C" >&6
21278 else
2127914011 cat >conftest.$ac_ext <<_ACEOF
2128014012 /* confdefs.h. */
2128114013 _ACEOF
2128314015 cat >>conftest.$ac_ext <<_ACEOF
2128414016 /* end confdefs.h. */
2128514017 $ac_includes_default
21286 typedef off_t ac__type_new_;
2128714018 int
2128814019 main ()
2128914020 {
21290 if ((ac__type_new_ *) 0)
21291 return 0;
21292 if (sizeof (ac__type_new_))
21293 return 0;
14021 if (sizeof ((uint16_t)))
14022 return 0;
2129414023 ;
2129514024 return 0;
2129614025 }
2130114030 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2130214031 *) ac_try_echo=$ac_try;;
2130314032 esac
21304 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14033 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14034 $as_echo "$ac_try_echo") >&5
2130514035 (eval "$ac_compile") 2>conftest.er1
2130614036 ac_status=$?
2130714037 grep -v '^ *+' conftest.er1 >conftest.err
2130814038 rm -f conftest.er1
2130914039 cat conftest.err >&5
21310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14040 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2131114041 (exit $ac_status); } && {
2131214042 test -z "$ac_c_werror_flag" ||
2131314043 test ! -s conftest.err
2131414044 } && test -s conftest.$ac_objext; then
21315 ac_cv_type_off_t=yes
21316 else
21317 echo "$as_me: failed program was:" >&5
14045 :
14046 else
14047 $as_echo "$as_me: failed program was:" >&5
2131814048 sed 's/^/| /' conftest.$ac_ext >&5
2131914049
21320 ac_cv_type_off_t=no
14050 ac_cv_type_uint16_t=yes
2132114051 fi
2132214052
2132314053 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21324 fi
21325 { echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
21326 echo "${ECHO_T}$ac_cv_type_off_t" >&6; }
21327 if test $ac_cv_type_off_t = yes; then
14054 else
14055 $as_echo "$as_me: failed program was:" >&5
14056 sed 's/^/| /' conftest.$ac_ext >&5
14057
14058
14059 fi
14060
14061 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14062 fi
14063 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_uint16_t" >&5
14064 $as_echo "$ac_cv_type_uint16_t" >&6; }
14065 if test "x$ac_cv_type_uint16_t" = x""yes; then
2132814066 :
2132914067 else
2133014068
2133114069 cat >>confdefs.h <<_ACEOF
21332 #define off_t long int
21333 _ACEOF
21334
21335 fi
21336
21337 { echo "$as_me:$LINENO: checking for u_char" >&5
21338 echo $ECHO_N "checking for u_char... $ECHO_C" >&6; }
21339 if test "${ac_cv_type_u_char+set}" = set; then
21340 echo $ECHO_N "(cached) $ECHO_C" >&6
21341 else
21342 cat >conftest.$ac_ext <<_ACEOF
14070 #define uint16_t unsigned short
14071 _ACEOF
14072
14073 fi
14074
14075 { $as_echo "$as_me:$LINENO: checking for uint32_t" >&5
14076 $as_echo_n "checking for uint32_t... " >&6; }
14077 if test "${ac_cv_type_uint32_t+set}" = set; then
14078 $as_echo_n "(cached) " >&6
14079 else
14080 ac_cv_type_uint32_t=no
14081 cat >conftest.$ac_ext <<_ACEOF
2134314082 /* confdefs.h. */
2134414083 _ACEOF
2134514084 cat confdefs.h >>conftest.$ac_ext
2134614085 cat >>conftest.$ac_ext <<_ACEOF
2134714086 /* end confdefs.h. */
2134814087 $ac_includes_default
21349 typedef u_char ac__type_new_;
2135014088 int
2135114089 main ()
2135214090 {
21353 if ((ac__type_new_ *) 0)
21354 return 0;
21355 if (sizeof (ac__type_new_))
21356 return 0;
14091 if (sizeof (uint32_t))
14092 return 0;
2135714093 ;
2135814094 return 0;
2135914095 }
2136414100 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2136514101 *) ac_try_echo=$ac_try;;
2136614102 esac
21367 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14103 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14104 $as_echo "$ac_try_echo") >&5
2136814105 (eval "$ac_compile") 2>conftest.er1
2136914106 ac_status=$?
2137014107 grep -v '^ *+' conftest.er1 >conftest.err
2137114108 rm -f conftest.er1
2137214109 cat conftest.err >&5
21373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14110 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2137414111 (exit $ac_status); } && {
2137514112 test -z "$ac_c_werror_flag" ||
2137614113 test ! -s conftest.err
2137714114 } && test -s conftest.$ac_objext; then
21378 ac_cv_type_u_char=yes
21379 else
21380 echo "$as_me: failed program was:" >&5
21381 sed 's/^/| /' conftest.$ac_ext >&5
21382
21383 ac_cv_type_u_char=no
21384 fi
21385
21386 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21387 fi
21388 { echo "$as_me:$LINENO: result: $ac_cv_type_u_char" >&5
21389 echo "${ECHO_T}$ac_cv_type_u_char" >&6; }
21390 if test $ac_cv_type_u_char = yes; then
21391 :
21392 else
21393
21394 cat >>confdefs.h <<_ACEOF
21395 #define u_char unsigned char
21396 _ACEOF
21397
21398 fi
21399
21400 { echo "$as_me:$LINENO: checking for rlim_t" >&5
21401 echo $ECHO_N "checking for rlim_t... $ECHO_C" >&6; }
21402 if test "${ac_cv_type_rlim_t+set}" = set; then
21403 echo $ECHO_N "(cached) $ECHO_C" >&6
21404 else
2140514115 cat >conftest.$ac_ext <<_ACEOF
2140614116 /* confdefs.h. */
2140714117 _ACEOF
2140814118 cat confdefs.h >>conftest.$ac_ext
2140914119 cat >>conftest.$ac_ext <<_ACEOF
2141014120 /* end confdefs.h. */
21411
2141214121 $ac_includes_default
21413 #if HAVE_SYS_RESOURCE_H
21414 # include <sys/resource.h>
21415 #endif
21416
21417
21418 typedef rlim_t ac__type_new_;
2141914122 int
2142014123 main ()
2142114124 {
21422 if ((ac__type_new_ *) 0)
21423 return 0;
21424 if (sizeof (ac__type_new_))
21425 return 0;
14125 if (sizeof ((uint32_t)))
14126 return 0;
2142614127 ;
2142714128 return 0;
2142814129 }
2143314134 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2143414135 *) ac_try_echo=$ac_try;;
2143514136 esac
21436 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14137 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14138 $as_echo "$ac_try_echo") >&5
2143714139 (eval "$ac_compile") 2>conftest.er1
2143814140 ac_status=$?
2143914141 grep -v '^ *+' conftest.er1 >conftest.err
2144014142 rm -f conftest.er1
2144114143 cat conftest.err >&5
21442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14144 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2144314145 (exit $ac_status); } && {
2144414146 test -z "$ac_c_werror_flag" ||
2144514147 test ! -s conftest.err
2144614148 } && test -s conftest.$ac_objext; then
21447 ac_cv_type_rlim_t=yes
21448 else
21449 echo "$as_me: failed program was:" >&5
14149 :
14150 else
14151 $as_echo "$as_me: failed program was:" >&5
2145014152 sed 's/^/| /' conftest.$ac_ext >&5
2145114153
21452 ac_cv_type_rlim_t=no
14154 ac_cv_type_uint32_t=yes
2145314155 fi
2145414156
2145514157 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21456 fi
21457 { echo "$as_me:$LINENO: result: $ac_cv_type_rlim_t" >&5
21458 echo "${ECHO_T}$ac_cv_type_rlim_t" >&6; }
21459 if test $ac_cv_type_rlim_t = yes; then
14158 else
14159 $as_echo "$as_me: failed program was:" >&5
14160 sed 's/^/| /' conftest.$ac_ext >&5
14161
14162
14163 fi
14164
14165 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14166 fi
14167 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_uint32_t" >&5
14168 $as_echo "$ac_cv_type_uint32_t" >&6; }
14169 if test "x$ac_cv_type_uint32_t" = x""yes; then
2146014170 :
2146114171 else
2146214172
21463 cat >>confdefs.h <<\_ACEOF
21464 #define rlim_t unsigned long
21465 _ACEOF
21466
21467 fi
21468
21469
21470 { echo "$as_me:$LINENO: checking for socklen_t" >&5
21471 echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6; }
21472 if test "${ac_cv_type_socklen_t+set}" = set; then
21473 echo $ECHO_N "(cached) $ECHO_C" >&6
21474 else
21475 cat >conftest.$ac_ext <<_ACEOF
14173 cat >>confdefs.h <<_ACEOF
14174 #define uint32_t unsigned int
14175 _ACEOF
14176
14177 fi
14178
14179 { $as_echo "$as_me:$LINENO: checking for uint64_t" >&5
14180 $as_echo_n "checking for uint64_t... " >&6; }
14181 if test "${ac_cv_type_uint64_t+set}" = set; then
14182 $as_echo_n "(cached) " >&6
14183 else
14184 ac_cv_type_uint64_t=no
14185 cat >conftest.$ac_ext <<_ACEOF
2147614186 /* confdefs.h. */
2147714187 _ACEOF
2147814188 cat confdefs.h >>conftest.$ac_ext
2147914189 cat >>conftest.$ac_ext <<_ACEOF
2148014190 /* end confdefs.h. */
21481
2148214191 $ac_includes_default
21483 #if HAVE_SYS_SOCKET_H
21484 # include <sys/socket.h>
21485 #endif
21486
21487
21488 typedef socklen_t ac__type_new_;
2148914192 int
2149014193 main ()
2149114194 {
21492 if ((ac__type_new_ *) 0)
21493 return 0;
21494 if (sizeof (ac__type_new_))
21495 return 0;
14195 if (sizeof (uint64_t))
14196 return 0;
2149614197 ;
2149714198 return 0;
2149814199 }
2150314204 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2150414205 *) ac_try_echo=$ac_try;;
2150514206 esac
21506 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14207 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14208 $as_echo "$ac_try_echo") >&5
2150714209 (eval "$ac_compile") 2>conftest.er1
2150814210 ac_status=$?
2150914211 grep -v '^ *+' conftest.er1 >conftest.err
2151014212 rm -f conftest.er1
2151114213 cat conftest.err >&5
21512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14214 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2151314215 (exit $ac_status); } && {
2151414216 test -z "$ac_c_werror_flag" ||
2151514217 test ! -s conftest.err
2151614218 } && test -s conftest.$ac_objext; then
21517 ac_cv_type_socklen_t=yes
21518 else
21519 echo "$as_me: failed program was:" >&5
14219 cat >conftest.$ac_ext <<_ACEOF
14220 /* confdefs.h. */
14221 _ACEOF
14222 cat confdefs.h >>conftest.$ac_ext
14223 cat >>conftest.$ac_ext <<_ACEOF
14224 /* end confdefs.h. */
14225 $ac_includes_default
14226 int
14227 main ()
14228 {
14229 if (sizeof ((uint64_t)))
14230 return 0;
14231 ;
14232 return 0;
14233 }
14234 _ACEOF
14235 rm -f conftest.$ac_objext
14236 if { (ac_try="$ac_compile"
14237 case "(($ac_try" in
14238 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14239 *) ac_try_echo=$ac_try;;
14240 esac
14241 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14242 $as_echo "$ac_try_echo") >&5
14243 (eval "$ac_compile") 2>conftest.er1
14244 ac_status=$?
14245 grep -v '^ *+' conftest.er1 >conftest.err
14246 rm -f conftest.er1
14247 cat conftest.err >&5
14248 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14249 (exit $ac_status); } && {
14250 test -z "$ac_c_werror_flag" ||
14251 test ! -s conftest.err
14252 } && test -s conftest.$ac_objext; then
14253 :
14254 else
14255 $as_echo "$as_me: failed program was:" >&5
2152014256 sed 's/^/| /' conftest.$ac_ext >&5
2152114257
21522 ac_cv_type_socklen_t=no
14258 ac_cv_type_uint64_t=yes
2152314259 fi
2152414260
2152514261 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21526 fi
21527 { echo "$as_me:$LINENO: result: $ac_cv_type_socklen_t" >&5
21528 echo "${ECHO_T}$ac_cv_type_socklen_t" >&6; }
21529 if test $ac_cv_type_socklen_t = yes; then
14262 else
14263 $as_echo "$as_me: failed program was:" >&5
14264 sed 's/^/| /' conftest.$ac_ext >&5
14265
14266
14267 fi
14268
14269 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14270 fi
14271 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
14272 $as_echo "$ac_cv_type_uint64_t" >&6; }
14273 if test "x$ac_cv_type_uint64_t" = x""yes; then
14274 :
14275 else
14276
14277 cat >>confdefs.h <<_ACEOF
14278 #define uint64_t unsigned long long
14279 _ACEOF
14280
14281 fi
14282
14283 { $as_echo "$as_me:$LINENO: checking for size_t" >&5
14284 $as_echo_n "checking for size_t... " >&6; }
14285 if test "${ac_cv_type_size_t+set}" = set; then
14286 $as_echo_n "(cached) " >&6
14287 else
14288 ac_cv_type_size_t=no
14289 cat >conftest.$ac_ext <<_ACEOF
14290 /* confdefs.h. */
14291 _ACEOF
14292 cat confdefs.h >>conftest.$ac_ext
14293 cat >>conftest.$ac_ext <<_ACEOF
14294 /* end confdefs.h. */
14295 $ac_includes_default
14296 int
14297 main ()
14298 {
14299 if (sizeof (size_t))
14300 return 0;
14301 ;
14302 return 0;
14303 }
14304 _ACEOF
14305 rm -f conftest.$ac_objext
14306 if { (ac_try="$ac_compile"
14307 case "(($ac_try" in
14308 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14309 *) ac_try_echo=$ac_try;;
14310 esac
14311 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14312 $as_echo "$ac_try_echo") >&5
14313 (eval "$ac_compile") 2>conftest.er1
14314 ac_status=$?
14315 grep -v '^ *+' conftest.er1 >conftest.err
14316 rm -f conftest.er1
14317 cat conftest.err >&5
14318 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14319 (exit $ac_status); } && {
14320 test -z "$ac_c_werror_flag" ||
14321 test ! -s conftest.err
14322 } && test -s conftest.$ac_objext; then
14323 cat >conftest.$ac_ext <<_ACEOF
14324 /* confdefs.h. */
14325 _ACEOF
14326 cat confdefs.h >>conftest.$ac_ext
14327 cat >>conftest.$ac_ext <<_ACEOF
14328 /* end confdefs.h. */
14329 $ac_includes_default
14330 int
14331 main ()
14332 {
14333 if (sizeof ((size_t)))
14334 return 0;
14335 ;
14336 return 0;
14337 }
14338 _ACEOF
14339 rm -f conftest.$ac_objext
14340 if { (ac_try="$ac_compile"
14341 case "(($ac_try" in
14342 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14343 *) ac_try_echo=$ac_try;;
14344 esac
14345 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14346 $as_echo "$ac_try_echo") >&5
14347 (eval "$ac_compile") 2>conftest.er1
14348 ac_status=$?
14349 grep -v '^ *+' conftest.er1 >conftest.err
14350 rm -f conftest.er1
14351 cat conftest.err >&5
14352 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14353 (exit $ac_status); } && {
14354 test -z "$ac_c_werror_flag" ||
14355 test ! -s conftest.err
14356 } && test -s conftest.$ac_objext; then
14357 :
14358 else
14359 $as_echo "$as_me: failed program was:" >&5
14360 sed 's/^/| /' conftest.$ac_ext >&5
14361
14362 ac_cv_type_size_t=yes
14363 fi
14364
14365 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14366 else
14367 $as_echo "$as_me: failed program was:" >&5
14368 sed 's/^/| /' conftest.$ac_ext >&5
14369
14370
14371 fi
14372
14373 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14374 fi
14375 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
14376 $as_echo "$ac_cv_type_size_t" >&6; }
14377 if test "x$ac_cv_type_size_t" = x""yes; then
14378 :
14379 else
14380
14381 cat >>confdefs.h <<_ACEOF
14382 #define size_t unsigned int
14383 _ACEOF
14384
14385 fi
14386
14387 { $as_echo "$as_me:$LINENO: checking for ssize_t" >&5
14388 $as_echo_n "checking for ssize_t... " >&6; }
14389 if test "${ac_cv_type_ssize_t+set}" = set; then
14390 $as_echo_n "(cached) " >&6
14391 else
14392 ac_cv_type_ssize_t=no
14393 cat >conftest.$ac_ext <<_ACEOF
14394 /* confdefs.h. */
14395 _ACEOF
14396 cat confdefs.h >>conftest.$ac_ext
14397 cat >>conftest.$ac_ext <<_ACEOF
14398 /* end confdefs.h. */
14399 $ac_includes_default
14400 int
14401 main ()
14402 {
14403 if (sizeof (ssize_t))
14404 return 0;
14405 ;
14406 return 0;
14407 }
14408 _ACEOF
14409 rm -f conftest.$ac_objext
14410 if { (ac_try="$ac_compile"
14411 case "(($ac_try" in
14412 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14413 *) ac_try_echo=$ac_try;;
14414 esac
14415 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14416 $as_echo "$ac_try_echo") >&5
14417 (eval "$ac_compile") 2>conftest.er1
14418 ac_status=$?
14419 grep -v '^ *+' conftest.er1 >conftest.err
14420 rm -f conftest.er1
14421 cat conftest.err >&5
14422 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14423 (exit $ac_status); } && {
14424 test -z "$ac_c_werror_flag" ||
14425 test ! -s conftest.err
14426 } && test -s conftest.$ac_objext; then
14427 cat >conftest.$ac_ext <<_ACEOF
14428 /* confdefs.h. */
14429 _ACEOF
14430 cat confdefs.h >>conftest.$ac_ext
14431 cat >>conftest.$ac_ext <<_ACEOF
14432 /* end confdefs.h. */
14433 $ac_includes_default
14434 int
14435 main ()
14436 {
14437 if (sizeof ((ssize_t)))
14438 return 0;
14439 ;
14440 return 0;
14441 }
14442 _ACEOF
14443 rm -f conftest.$ac_objext
14444 if { (ac_try="$ac_compile"
14445 case "(($ac_try" in
14446 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14447 *) ac_try_echo=$ac_try;;
14448 esac
14449 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14450 $as_echo "$ac_try_echo") >&5
14451 (eval "$ac_compile") 2>conftest.er1
14452 ac_status=$?
14453 grep -v '^ *+' conftest.er1 >conftest.err
14454 rm -f conftest.er1
14455 cat conftest.err >&5
14456 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14457 (exit $ac_status); } && {
14458 test -z "$ac_c_werror_flag" ||
14459 test ! -s conftest.err
14460 } && test -s conftest.$ac_objext; then
14461 :
14462 else
14463 $as_echo "$as_me: failed program was:" >&5
14464 sed 's/^/| /' conftest.$ac_ext >&5
14465
14466 ac_cv_type_ssize_t=yes
14467 fi
14468
14469 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14470 else
14471 $as_echo "$as_me: failed program was:" >&5
14472 sed 's/^/| /' conftest.$ac_ext >&5
14473
14474
14475 fi
14476
14477 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14478 fi
14479 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
14480 $as_echo "$ac_cv_type_ssize_t" >&6; }
14481 if test "x$ac_cv_type_ssize_t" = x""yes; then
14482 :
14483 else
14484
14485 cat >>confdefs.h <<_ACEOF
14486 #define ssize_t int
14487 _ACEOF
14488
14489 fi
14490
14491 { $as_echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
14492 $as_echo_n "checking for uid_t in sys/types.h... " >&6; }
14493 if test "${ac_cv_type_uid_t+set}" = set; then
14494 $as_echo_n "(cached) " >&6
14495 else
14496 cat >conftest.$ac_ext <<_ACEOF
14497 /* confdefs.h. */
14498 _ACEOF
14499 cat confdefs.h >>conftest.$ac_ext
14500 cat >>conftest.$ac_ext <<_ACEOF
14501 /* end confdefs.h. */
14502 #include <sys/types.h>
14503
14504 _ACEOF
14505 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14506 $EGREP "uid_t" >/dev/null 2>&1; then
14507 ac_cv_type_uid_t=yes
14508 else
14509 ac_cv_type_uid_t=no
14510 fi
14511 rm -f conftest*
14512
14513 fi
14514 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
14515 $as_echo "$ac_cv_type_uid_t" >&6; }
14516 if test $ac_cv_type_uid_t = no; then
14517
14518 cat >>confdefs.h <<\_ACEOF
14519 #define uid_t int
14520 _ACEOF
14521
14522
14523 cat >>confdefs.h <<\_ACEOF
14524 #define gid_t int
14525 _ACEOF
14526
14527 fi
14528
14529 { $as_echo "$as_me:$LINENO: checking for pid_t" >&5
14530 $as_echo_n "checking for pid_t... " >&6; }
14531 if test "${ac_cv_type_pid_t+set}" = set; then
14532 $as_echo_n "(cached) " >&6
14533 else
14534 ac_cv_type_pid_t=no
14535 cat >conftest.$ac_ext <<_ACEOF
14536 /* confdefs.h. */
14537 _ACEOF
14538 cat confdefs.h >>conftest.$ac_ext
14539 cat >>conftest.$ac_ext <<_ACEOF
14540 /* end confdefs.h. */
14541 $ac_includes_default
14542 int
14543 main ()
14544 {
14545 if (sizeof (pid_t))
14546 return 0;
14547 ;
14548 return 0;
14549 }
14550 _ACEOF
14551 rm -f conftest.$ac_objext
14552 if { (ac_try="$ac_compile"
14553 case "(($ac_try" in
14554 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14555 *) ac_try_echo=$ac_try;;
14556 esac
14557 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14558 $as_echo "$ac_try_echo") >&5
14559 (eval "$ac_compile") 2>conftest.er1
14560 ac_status=$?
14561 grep -v '^ *+' conftest.er1 >conftest.err
14562 rm -f conftest.er1
14563 cat conftest.err >&5
14564 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14565 (exit $ac_status); } && {
14566 test -z "$ac_c_werror_flag" ||
14567 test ! -s conftest.err
14568 } && test -s conftest.$ac_objext; then
14569 cat >conftest.$ac_ext <<_ACEOF
14570 /* confdefs.h. */
14571 _ACEOF
14572 cat confdefs.h >>conftest.$ac_ext
14573 cat >>conftest.$ac_ext <<_ACEOF
14574 /* end confdefs.h. */
14575 $ac_includes_default
14576 int
14577 main ()
14578 {
14579 if (sizeof ((pid_t)))
14580 return 0;
14581 ;
14582 return 0;
14583 }
14584 _ACEOF
14585 rm -f conftest.$ac_objext
14586 if { (ac_try="$ac_compile"
14587 case "(($ac_try" in
14588 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14589 *) ac_try_echo=$ac_try;;
14590 esac
14591 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14592 $as_echo "$ac_try_echo") >&5
14593 (eval "$ac_compile") 2>conftest.er1
14594 ac_status=$?
14595 grep -v '^ *+' conftest.er1 >conftest.err
14596 rm -f conftest.er1
14597 cat conftest.err >&5
14598 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14599 (exit $ac_status); } && {
14600 test -z "$ac_c_werror_flag" ||
14601 test ! -s conftest.err
14602 } && test -s conftest.$ac_objext; then
14603 :
14604 else
14605 $as_echo "$as_me: failed program was:" >&5
14606 sed 's/^/| /' conftest.$ac_ext >&5
14607
14608 ac_cv_type_pid_t=yes
14609 fi
14610
14611 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14612 else
14613 $as_echo "$as_me: failed program was:" >&5
14614 sed 's/^/| /' conftest.$ac_ext >&5
14615
14616
14617 fi
14618
14619 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14620 fi
14621 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
14622 $as_echo "$ac_cv_type_pid_t" >&6; }
14623 if test "x$ac_cv_type_pid_t" = x""yes; then
14624 :
14625 else
14626
14627 cat >>confdefs.h <<_ACEOF
14628 #define pid_t int
14629 _ACEOF
14630
14631 fi
14632
14633 { $as_echo "$as_me:$LINENO: checking for off_t" >&5
14634 $as_echo_n "checking for off_t... " >&6; }
14635 if test "${ac_cv_type_off_t+set}" = set; then
14636 $as_echo_n "(cached) " >&6
14637 else
14638 ac_cv_type_off_t=no
14639 cat >conftest.$ac_ext <<_ACEOF
14640 /* confdefs.h. */
14641 _ACEOF
14642 cat confdefs.h >>conftest.$ac_ext
14643 cat >>conftest.$ac_ext <<_ACEOF
14644 /* end confdefs.h. */
14645 $ac_includes_default
14646 int
14647 main ()
14648 {
14649 if (sizeof (off_t))
14650 return 0;
14651 ;
14652 return 0;
14653 }
14654 _ACEOF
14655 rm -f conftest.$ac_objext
14656 if { (ac_try="$ac_compile"
14657 case "(($ac_try" in
14658 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14659 *) ac_try_echo=$ac_try;;
14660 esac
14661 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14662 $as_echo "$ac_try_echo") >&5
14663 (eval "$ac_compile") 2>conftest.er1
14664 ac_status=$?
14665 grep -v '^ *+' conftest.er1 >conftest.err
14666 rm -f conftest.er1
14667 cat conftest.err >&5
14668 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14669 (exit $ac_status); } && {
14670 test -z "$ac_c_werror_flag" ||
14671 test ! -s conftest.err
14672 } && test -s conftest.$ac_objext; then
14673 cat >conftest.$ac_ext <<_ACEOF
14674 /* confdefs.h. */
14675 _ACEOF
14676 cat confdefs.h >>conftest.$ac_ext
14677 cat >>conftest.$ac_ext <<_ACEOF
14678 /* end confdefs.h. */
14679 $ac_includes_default
14680 int
14681 main ()
14682 {
14683 if (sizeof ((off_t)))
14684 return 0;
14685 ;
14686 return 0;
14687 }
14688 _ACEOF
14689 rm -f conftest.$ac_objext
14690 if { (ac_try="$ac_compile"
14691 case "(($ac_try" in
14692 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14693 *) ac_try_echo=$ac_try;;
14694 esac
14695 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14696 $as_echo "$ac_try_echo") >&5
14697 (eval "$ac_compile") 2>conftest.er1
14698 ac_status=$?
14699 grep -v '^ *+' conftest.er1 >conftest.err
14700 rm -f conftest.er1
14701 cat conftest.err >&5
14702 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14703 (exit $ac_status); } && {
14704 test -z "$ac_c_werror_flag" ||
14705 test ! -s conftest.err
14706 } && test -s conftest.$ac_objext; then
14707 :
14708 else
14709 $as_echo "$as_me: failed program was:" >&5
14710 sed 's/^/| /' conftest.$ac_ext >&5
14711
14712 ac_cv_type_off_t=yes
14713 fi
14714
14715 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14716 else
14717 $as_echo "$as_me: failed program was:" >&5
14718 sed 's/^/| /' conftest.$ac_ext >&5
14719
14720
14721 fi
14722
14723 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14724 fi
14725 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
14726 $as_echo "$ac_cv_type_off_t" >&6; }
14727 if test "x$ac_cv_type_off_t" = x""yes; then
14728 :
14729 else
14730
14731 cat >>confdefs.h <<_ACEOF
14732 #define off_t long int
14733 _ACEOF
14734
14735 fi
14736
14737 { $as_echo "$as_me:$LINENO: checking for u_char" >&5
14738 $as_echo_n "checking for u_char... " >&6; }
14739 if test "${ac_cv_type_u_char+set}" = set; then
14740 $as_echo_n "(cached) " >&6
14741 else
14742 ac_cv_type_u_char=no
14743 cat >conftest.$ac_ext <<_ACEOF
14744 /* confdefs.h. */
14745 _ACEOF
14746 cat confdefs.h >>conftest.$ac_ext
14747 cat >>conftest.$ac_ext <<_ACEOF
14748 /* end confdefs.h. */
14749 $ac_includes_default
14750 int
14751 main ()
14752 {
14753 if (sizeof (u_char))
14754 return 0;
14755 ;
14756 return 0;
14757 }
14758 _ACEOF
14759 rm -f conftest.$ac_objext
14760 if { (ac_try="$ac_compile"
14761 case "(($ac_try" in
14762 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14763 *) ac_try_echo=$ac_try;;
14764 esac
14765 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14766 $as_echo "$ac_try_echo") >&5
14767 (eval "$ac_compile") 2>conftest.er1
14768 ac_status=$?
14769 grep -v '^ *+' conftest.er1 >conftest.err
14770 rm -f conftest.er1
14771 cat conftest.err >&5
14772 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14773 (exit $ac_status); } && {
14774 test -z "$ac_c_werror_flag" ||
14775 test ! -s conftest.err
14776 } && test -s conftest.$ac_objext; then
14777 cat >conftest.$ac_ext <<_ACEOF
14778 /* confdefs.h. */
14779 _ACEOF
14780 cat confdefs.h >>conftest.$ac_ext
14781 cat >>conftest.$ac_ext <<_ACEOF
14782 /* end confdefs.h. */
14783 $ac_includes_default
14784 int
14785 main ()
14786 {
14787 if (sizeof ((u_char)))
14788 return 0;
14789 ;
14790 return 0;
14791 }
14792 _ACEOF
14793 rm -f conftest.$ac_objext
14794 if { (ac_try="$ac_compile"
14795 case "(($ac_try" in
14796 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14797 *) ac_try_echo=$ac_try;;
14798 esac
14799 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14800 $as_echo "$ac_try_echo") >&5
14801 (eval "$ac_compile") 2>conftest.er1
14802 ac_status=$?
14803 grep -v '^ *+' conftest.er1 >conftest.err
14804 rm -f conftest.er1
14805 cat conftest.err >&5
14806 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14807 (exit $ac_status); } && {
14808 test -z "$ac_c_werror_flag" ||
14809 test ! -s conftest.err
14810 } && test -s conftest.$ac_objext; then
14811 :
14812 else
14813 $as_echo "$as_me: failed program was:" >&5
14814 sed 's/^/| /' conftest.$ac_ext >&5
14815
14816 ac_cv_type_u_char=yes
14817 fi
14818
14819 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14820 else
14821 $as_echo "$as_me: failed program was:" >&5
14822 sed 's/^/| /' conftest.$ac_ext >&5
14823
14824
14825 fi
14826
14827 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14828 fi
14829 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_u_char" >&5
14830 $as_echo "$ac_cv_type_u_char" >&6; }
14831 if test "x$ac_cv_type_u_char" = x""yes; then
14832 :
14833 else
14834
14835 cat >>confdefs.h <<_ACEOF
14836 #define u_char unsigned char
14837 _ACEOF
14838
14839 fi
14840
14841 { $as_echo "$as_me:$LINENO: checking for rlim_t" >&5
14842 $as_echo_n "checking for rlim_t... " >&6; }
14843 if test "${ac_cv_type_rlim_t+set}" = set; then
14844 $as_echo_n "(cached) " >&6
14845 else
14846 ac_cv_type_rlim_t=no
14847 cat >conftest.$ac_ext <<_ACEOF
14848 /* confdefs.h. */
14849 _ACEOF
14850 cat confdefs.h >>conftest.$ac_ext
14851 cat >>conftest.$ac_ext <<_ACEOF
14852 /* end confdefs.h. */
14853
14854 $ac_includes_default
14855 #if HAVE_SYS_RESOURCE_H
14856 # include <sys/resource.h>
14857 #endif
14858
14859
14860 int
14861 main ()
14862 {
14863 if (sizeof (rlim_t))
14864 return 0;
14865 ;
14866 return 0;
14867 }
14868 _ACEOF
14869 rm -f conftest.$ac_objext
14870 if { (ac_try="$ac_compile"
14871 case "(($ac_try" in
14872 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14873 *) ac_try_echo=$ac_try;;
14874 esac
14875 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14876 $as_echo "$ac_try_echo") >&5
14877 (eval "$ac_compile") 2>conftest.er1
14878 ac_status=$?
14879 grep -v '^ *+' conftest.er1 >conftest.err
14880 rm -f conftest.er1
14881 cat conftest.err >&5
14882 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14883 (exit $ac_status); } && {
14884 test -z "$ac_c_werror_flag" ||
14885 test ! -s conftest.err
14886 } && test -s conftest.$ac_objext; then
14887 cat >conftest.$ac_ext <<_ACEOF
14888 /* confdefs.h. */
14889 _ACEOF
14890 cat confdefs.h >>conftest.$ac_ext
14891 cat >>conftest.$ac_ext <<_ACEOF
14892 /* end confdefs.h. */
14893
14894 $ac_includes_default
14895 #if HAVE_SYS_RESOURCE_H
14896 # include <sys/resource.h>
14897 #endif
14898
14899
14900 int
14901 main ()
14902 {
14903 if (sizeof ((rlim_t)))
14904 return 0;
14905 ;
14906 return 0;
14907 }
14908 _ACEOF
14909 rm -f conftest.$ac_objext
14910 if { (ac_try="$ac_compile"
14911 case "(($ac_try" in
14912 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14913 *) ac_try_echo=$ac_try;;
14914 esac
14915 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14916 $as_echo "$ac_try_echo") >&5
14917 (eval "$ac_compile") 2>conftest.er1
14918 ac_status=$?
14919 grep -v '^ *+' conftest.er1 >conftest.err
14920 rm -f conftest.er1
14921 cat conftest.err >&5
14922 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14923 (exit $ac_status); } && {
14924 test -z "$ac_c_werror_flag" ||
14925 test ! -s conftest.err
14926 } && test -s conftest.$ac_objext; then
14927 :
14928 else
14929 $as_echo "$as_me: failed program was:" >&5
14930 sed 's/^/| /' conftest.$ac_ext >&5
14931
14932 ac_cv_type_rlim_t=yes
14933 fi
14934
14935 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14936 else
14937 $as_echo "$as_me: failed program was:" >&5
14938 sed 's/^/| /' conftest.$ac_ext >&5
14939
14940
14941 fi
14942
14943 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14944 fi
14945 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_rlim_t" >&5
14946 $as_echo "$ac_cv_type_rlim_t" >&6; }
14947 if test "x$ac_cv_type_rlim_t" = x""yes; then
14948 :
14949 else
14950
14951 cat >>confdefs.h <<\_ACEOF
14952 #define rlim_t unsigned long
14953 _ACEOF
14954
14955 fi
14956
14957
14958 { $as_echo "$as_me:$LINENO: checking for socklen_t" >&5
14959 $as_echo_n "checking for socklen_t... " >&6; }
14960 if test "${ac_cv_type_socklen_t+set}" = set; then
14961 $as_echo_n "(cached) " >&6
14962 else
14963 ac_cv_type_socklen_t=no
14964 cat >conftest.$ac_ext <<_ACEOF
14965 /* confdefs.h. */
14966 _ACEOF
14967 cat confdefs.h >>conftest.$ac_ext
14968 cat >>conftest.$ac_ext <<_ACEOF
14969 /* end confdefs.h. */
14970
14971 $ac_includes_default
14972 #if HAVE_SYS_SOCKET_H
14973 # include <sys/socket.h>
14974 #endif
14975
14976
14977 int
14978 main ()
14979 {
14980 if (sizeof (socklen_t))
14981 return 0;
14982 ;
14983 return 0;
14984 }
14985 _ACEOF
14986 rm -f conftest.$ac_objext
14987 if { (ac_try="$ac_compile"
14988 case "(($ac_try" in
14989 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14990 *) ac_try_echo=$ac_try;;
14991 esac
14992 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14993 $as_echo "$ac_try_echo") >&5
14994 (eval "$ac_compile") 2>conftest.er1
14995 ac_status=$?
14996 grep -v '^ *+' conftest.er1 >conftest.err
14997 rm -f conftest.er1
14998 cat conftest.err >&5
14999 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15000 (exit $ac_status); } && {
15001 test -z "$ac_c_werror_flag" ||
15002 test ! -s conftest.err
15003 } && test -s conftest.$ac_objext; then
15004 cat >conftest.$ac_ext <<_ACEOF
15005 /* confdefs.h. */
15006 _ACEOF
15007 cat confdefs.h >>conftest.$ac_ext
15008 cat >>conftest.$ac_ext <<_ACEOF
15009 /* end confdefs.h. */
15010
15011 $ac_includes_default
15012 #if HAVE_SYS_SOCKET_H
15013 # include <sys/socket.h>
15014 #endif
15015
15016
15017 int
15018 main ()
15019 {
15020 if (sizeof ((socklen_t)))
15021 return 0;
15022 ;
15023 return 0;
15024 }
15025 _ACEOF
15026 rm -f conftest.$ac_objext
15027 if { (ac_try="$ac_compile"
15028 case "(($ac_try" in
15029 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15030 *) ac_try_echo=$ac_try;;
15031 esac
15032 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15033 $as_echo "$ac_try_echo") >&5
15034 (eval "$ac_compile") 2>conftest.er1
15035 ac_status=$?
15036 grep -v '^ *+' conftest.er1 >conftest.err
15037 rm -f conftest.er1
15038 cat conftest.err >&5
15039 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15040 (exit $ac_status); } && {
15041 test -z "$ac_c_werror_flag" ||
15042 test ! -s conftest.err
15043 } && test -s conftest.$ac_objext; then
15044 :
15045 else
15046 $as_echo "$as_me: failed program was:" >&5
15047 sed 's/^/| /' conftest.$ac_ext >&5
15048
15049 ac_cv_type_socklen_t=yes
15050 fi
15051
15052 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15053 else
15054 $as_echo "$as_me: failed program was:" >&5
15055 sed 's/^/| /' conftest.$ac_ext >&5
15056
15057
15058 fi
15059
15060 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15061 fi
15062 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_socklen_t" >&5
15063 $as_echo "$ac_cv_type_socklen_t" >&6; }
15064 if test "x$ac_cv_type_socklen_t" = x""yes; then
2153015065 :
2153115066 else
2153215067
2153615071
2153715072 fi
2153815073
21539 { echo "$as_me:$LINENO: checking for in_addr_t" >&5
21540 echo $ECHO_N "checking for in_addr_t... $ECHO_C" >&6; }
15074 { $as_echo "$as_me:$LINENO: checking for in_addr_t" >&5
15075 $as_echo_n "checking for in_addr_t... " >&6; }
2154115076 if test "${ac_cv_type_in_addr_t+set}" = set; then
21542 echo $ECHO_N "(cached) $ECHO_C" >&6
21543 else
21544 cat >conftest.$ac_ext <<_ACEOF
15077 $as_echo_n "(cached) " >&6
15078 else
15079 ac_cv_type_in_addr_t=no
15080 cat >conftest.$ac_ext <<_ACEOF
2154515081 /* confdefs.h. */
2154615082 _ACEOF
2154715083 cat confdefs.h >>conftest.$ac_ext
2155715093 #endif
2155815094
2155915095
21560 typedef in_addr_t ac__type_new_;
2156115096 int
2156215097 main ()
2156315098 {
21564 if ((ac__type_new_ *) 0)
21565 return 0;
21566 if (sizeof (ac__type_new_))
21567 return 0;
15099 if (sizeof (in_addr_t))
15100 return 0;
2156815101 ;
2156915102 return 0;
2157015103 }
2157515108 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2157615109 *) ac_try_echo=$ac_try;;
2157715110 esac
21578 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15111 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15112 $as_echo "$ac_try_echo") >&5
2157915113 (eval "$ac_compile") 2>conftest.er1
2158015114 ac_status=$?
2158115115 grep -v '^ *+' conftest.er1 >conftest.err
2158215116 rm -f conftest.er1
2158315117 cat conftest.err >&5
21584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15118 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2158515119 (exit $ac_status); } && {
2158615120 test -z "$ac_c_werror_flag" ||
2158715121 test ! -s conftest.err
2158815122 } && test -s conftest.$ac_objext; then
21589 ac_cv_type_in_addr_t=yes
21590 else
21591 echo "$as_me: failed program was:" >&5
21592 sed 's/^/| /' conftest.$ac_ext >&5
21593
21594 ac_cv_type_in_addr_t=no
21595 fi
21596
21597 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21598 fi
21599 { echo "$as_me:$LINENO: result: $ac_cv_type_in_addr_t" >&5
21600 echo "${ECHO_T}$ac_cv_type_in_addr_t" >&6; }
21601 if test $ac_cv_type_in_addr_t = yes; then
21602 :
21603 else
21604
21605 cat >>confdefs.h <<\_ACEOF
21606 #define in_addr_t uint32_t
21607 _ACEOF
21608
21609 fi
21610
21611 { echo "$as_me:$LINENO: checking for in_port_t" >&5
21612 echo $ECHO_N "checking for in_port_t... $ECHO_C" >&6; }
21613 if test "${ac_cv_type_in_port_t+set}" = set; then
21614 echo $ECHO_N "(cached) $ECHO_C" >&6
21615 else
2161615123 cat >conftest.$ac_ext <<_ACEOF
2161715124 /* confdefs.h. */
2161815125 _ACEOF
2162915136 #endif
2163015137
2163115138
21632 typedef in_port_t ac__type_new_;
2163315139 int
2163415140 main ()
2163515141 {
21636 if ((ac__type_new_ *) 0)
21637 return 0;
21638 if (sizeof (ac__type_new_))
21639 return 0;
15142 if (sizeof ((in_addr_t)))
15143 return 0;
2164015144 ;
2164115145 return 0;
2164215146 }
2164715151 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2164815152 *) ac_try_echo=$ac_try;;
2164915153 esac
21650 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15154 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15155 $as_echo "$ac_try_echo") >&5
2165115156 (eval "$ac_compile") 2>conftest.er1
2165215157 ac_status=$?
2165315158 grep -v '^ *+' conftest.er1 >conftest.err
2165415159 rm -f conftest.er1
2165515160 cat conftest.err >&5
21656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15161 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2165715162 (exit $ac_status); } && {
2165815163 test -z "$ac_c_werror_flag" ||
2165915164 test ! -s conftest.err
2166015165 } && test -s conftest.$ac_objext; then
21661 ac_cv_type_in_port_t=yes
21662 else
21663 echo "$as_me: failed program was:" >&5
15166 :
15167 else
15168 $as_echo "$as_me: failed program was:" >&5
2166415169 sed 's/^/| /' conftest.$ac_ext >&5
2166515170
21666 ac_cv_type_in_port_t=no
15171 ac_cv_type_in_addr_t=yes
2166715172 fi
2166815173
2166915174 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21670 fi
21671 { echo "$as_me:$LINENO: result: $ac_cv_type_in_port_t" >&5
21672 echo "${ECHO_T}$ac_cv_type_in_port_t" >&6; }
21673 if test $ac_cv_type_in_port_t = yes; then
15175 else
15176 $as_echo "$as_me: failed program was:" >&5
15177 sed 's/^/| /' conftest.$ac_ext >&5
15178
15179
15180 fi
15181
15182 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15183 fi
15184 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_in_addr_t" >&5
15185 $as_echo "$ac_cv_type_in_addr_t" >&6; }
15186 if test "x$ac_cv_type_in_addr_t" = x""yes; then
15187 :
15188 else
15189
15190 cat >>confdefs.h <<\_ACEOF
15191 #define in_addr_t uint32_t
15192 _ACEOF
15193
15194 fi
15195
15196 { $as_echo "$as_me:$LINENO: checking for in_port_t" >&5
15197 $as_echo_n "checking for in_port_t... " >&6; }
15198 if test "${ac_cv_type_in_port_t+set}" = set; then
15199 $as_echo_n "(cached) " >&6
15200 else
15201 ac_cv_type_in_port_t=no
15202 cat >conftest.$ac_ext <<_ACEOF
15203 /* confdefs.h. */
15204 _ACEOF
15205 cat confdefs.h >>conftest.$ac_ext
15206 cat >>conftest.$ac_ext <<_ACEOF
15207 /* end confdefs.h. */
15208
15209 $ac_includes_default
15210 #if HAVE_SYS_TYPES_H
15211 # include <sys/types.h>
15212 #endif
15213 #if HAVE_NETINET_IN_H
15214 # include <netinet/in.h>
15215 #endif
15216
15217
15218 int
15219 main ()
15220 {
15221 if (sizeof (in_port_t))
15222 return 0;
15223 ;
15224 return 0;
15225 }
15226 _ACEOF
15227 rm -f conftest.$ac_objext
15228 if { (ac_try="$ac_compile"
15229 case "(($ac_try" in
15230 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15231 *) ac_try_echo=$ac_try;;
15232 esac
15233 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15234 $as_echo "$ac_try_echo") >&5
15235 (eval "$ac_compile") 2>conftest.er1
15236 ac_status=$?
15237 grep -v '^ *+' conftest.er1 >conftest.err
15238 rm -f conftest.er1
15239 cat conftest.err >&5
15240 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15241 (exit $ac_status); } && {
15242 test -z "$ac_c_werror_flag" ||
15243 test ! -s conftest.err
15244 } && test -s conftest.$ac_objext; then
15245 cat >conftest.$ac_ext <<_ACEOF
15246 /* confdefs.h. */
15247 _ACEOF
15248 cat confdefs.h >>conftest.$ac_ext
15249 cat >>conftest.$ac_ext <<_ACEOF
15250 /* end confdefs.h. */
15251
15252 $ac_includes_default
15253 #if HAVE_SYS_TYPES_H
15254 # include <sys/types.h>
15255 #endif
15256 #if HAVE_NETINET_IN_H
15257 # include <netinet/in.h>
15258 #endif
15259
15260
15261 int
15262 main ()
15263 {
15264 if (sizeof ((in_port_t)))
15265 return 0;
15266 ;
15267 return 0;
15268 }
15269 _ACEOF
15270 rm -f conftest.$ac_objext
15271 if { (ac_try="$ac_compile"
15272 case "(($ac_try" in
15273 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15274 *) ac_try_echo=$ac_try;;
15275 esac
15276 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15277 $as_echo "$ac_try_echo") >&5
15278 (eval "$ac_compile") 2>conftest.er1
15279 ac_status=$?
15280 grep -v '^ *+' conftest.er1 >conftest.err
15281 rm -f conftest.er1
15282 cat conftest.err >&5
15283 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15284 (exit $ac_status); } && {
15285 test -z "$ac_c_werror_flag" ||
15286 test ! -s conftest.err
15287 } && test -s conftest.$ac_objext; then
15288 :
15289 else
15290 $as_echo "$as_me: failed program was:" >&5
15291 sed 's/^/| /' conftest.$ac_ext >&5
15292
15293 ac_cv_type_in_port_t=yes
15294 fi
15295
15296 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15297 else
15298 $as_echo "$as_me: failed program was:" >&5
15299 sed 's/^/| /' conftest.$ac_ext >&5
15300
15301
15302 fi
15303
15304 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15305 fi
15306 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_in_port_t" >&5
15307 $as_echo "$ac_cv_type_in_port_t" >&6; }
15308 if test "x$ac_cv_type_in_port_t" = x""yes; then
2167415309 :
2167515310 else
2167615311
2169115326 fi
2169215327
2169315328 if test "x$enable_rpath" = xno; then
21694 { echo "$as_me:$LINENO: result: Fixing libtool for -rpath problems." >&5
21695 echo "${ECHO_T}Fixing libtool for -rpath problems." >&6; }
15329 { $as_echo "$as_me:$LINENO: result: Fixing libtool for -rpath problems." >&5
15330 $as_echo "Fixing libtool for -rpath problems." >&6; }
2169615331 sed < libtool > libtool-2 \
2169715332 's/^hardcode_libdir_flag_spec.*$'/'hardcode_libdir_flag_spec=" -D__LIBTOOL_RPATH_SED__ "/'
2169815333 mv libtool-2 libtool
2173815373 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
2173915374 save_LIBS="$LIBS"
2174015375 LIBS="$PTHREAD_LIBS $LIBS"
21741 { echo "$as_me:$LINENO: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5
21742 echo $ECHO_N "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... $ECHO_C" >&6; }
15376 { $as_echo "$as_me:$LINENO: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5
15377 $as_echo_n "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... " >&6; }
2174315378 cat >conftest.$ac_ext <<_ACEOF
2174415379 /* confdefs.h. */
2174515380 _ACEOF
2176815403 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2176915404 *) ac_try_echo=$ac_try;;
2177015405 esac
21771 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15406 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15407 $as_echo "$ac_try_echo") >&5
2177215408 (eval "$ac_link") 2>conftest.er1
2177315409 ac_status=$?
2177415410 grep -v '^ *+' conftest.er1 >conftest.err
2177515411 rm -f conftest.er1
2177615412 cat conftest.err >&5
21777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15413 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2177815414 (exit $ac_status); } && {
2177915415 test -z "$ac_c_werror_flag" ||
2178015416 test ! -s conftest.err
21781 } && test -s conftest$ac_exeext &&
21782 $as_test_x conftest$ac_exeext; then
15417 } && test -s conftest$ac_exeext && {
15418 test "$cross_compiling" = yes ||
15419 $as_test_x conftest$ac_exeext
15420 }; then
2178315421 acx_pthread_ok=yes
2178415422 else
21785 echo "$as_me: failed program was:" >&5
15423 $as_echo "$as_me: failed program was:" >&5
2178615424 sed 's/^/| /' conftest.$ac_ext >&5
2178715425
2178815426
2178915427 fi
2179015428
15429 rm -rf conftest.dSYM
2179115430 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
2179215431 conftest$ac_exeext conftest.$ac_ext
21793 { echo "$as_me:$LINENO: result: $acx_pthread_ok" >&5
21794 echo "${ECHO_T}$acx_pthread_ok" >&6; }
15432 { $as_echo "$as_me:$LINENO: result: $acx_pthread_ok" >&5
15433 $as_echo "$acx_pthread_ok" >&6; }
2179515434 if test x"$acx_pthread_ok" = xno; then
2179615435 PTHREAD_LIBS=""
2179715436 PTHREAD_CFLAGS=""
2185215491
2185315492 case $flag in
2185415493 none)
21855 { echo "$as_me:$LINENO: checking whether pthreads work without any flags" >&5
21856 echo $ECHO_N "checking whether pthreads work without any flags... $ECHO_C" >&6; }
15494 { $as_echo "$as_me:$LINENO: checking whether pthreads work without any flags" >&5
15495 $as_echo_n "checking whether pthreads work without any flags... " >&6; }
2185715496 ;;
2185815497
2185915498 -*)
21860 { echo "$as_me:$LINENO: checking whether pthreads work with $flag" >&5
21861 echo $ECHO_N "checking whether pthreads work with $flag... $ECHO_C" >&6; }
15499 { $as_echo "$as_me:$LINENO: checking whether pthreads work with $flag" >&5
15500 $as_echo_n "checking whether pthreads work with $flag... " >&6; }
2186215501 PTHREAD_CFLAGS="$flag"
2186315502 ;;
2186415503
2186515504 pthread-config)
2186615505 # Extract the first word of "pthread-config", so it can be a program name with args.
2186715506 set dummy pthread-config; ac_word=$2
21868 { echo "$as_me:$LINENO: checking for $ac_word" >&5
21869 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
15507 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
15508 $as_echo_n "checking for $ac_word... " >&6; }
2187015509 if test "${ac_cv_prog_acx_pthread_config+set}" = set; then
21871 echo $ECHO_N "(cached) $ECHO_C" >&6
15510 $as_echo_n "(cached) " >&6
2187215511 else
2187315512 if test -n "$acx_pthread_config"; then
2187415513 ac_cv_prog_acx_pthread_config="$acx_pthread_config" # Let the user override the test.
2188115520 for ac_exec_ext in '' $ac_executable_extensions; do
2188215521 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2188315522 ac_cv_prog_acx_pthread_config="yes"
21884 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15523 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2188515524 break 2
2188615525 fi
2188715526 done
2189315532 fi
2189415533 acx_pthread_config=$ac_cv_prog_acx_pthread_config
2189515534 if test -n "$acx_pthread_config"; then
21896 { echo "$as_me:$LINENO: result: $acx_pthread_config" >&5
21897 echo "${ECHO_T}$acx_pthread_config" >&6; }
21898 else
21899 { echo "$as_me:$LINENO: result: no" >&5
21900 echo "${ECHO_T}no" >&6; }
15535 { $as_echo "$as_me:$LINENO: result: $acx_pthread_config" >&5
15536 $as_echo "$acx_pthread_config" >&6; }
15537 else
15538 { $as_echo "$as_me:$LINENO: result: no" >&5
15539 $as_echo "no" >&6; }
2190115540 fi
2190215541
2190315542
2190715546 ;;
2190815547
2190915548 *)
21910 { echo "$as_me:$LINENO: checking for the pthreads library -l$flag" >&5
21911 echo $ECHO_N "checking for the pthreads library -l$flag... $ECHO_C" >&6; }
15549 { $as_echo "$as_me:$LINENO: checking for the pthreads library -l$flag" >&5
15550 $as_echo_n "checking for the pthreads library -l$flag... " >&6; }
2191215551 PTHREAD_LIBS="-l$flag"
2191315552 ;;
2191415553 esac
2195015589 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2195115590 *) ac_try_echo=$ac_try;;
2195215591 esac
21953 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15592 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15593 $as_echo "$ac_try_echo") >&5
2195415594 (eval "$ac_link") 2>conftest.er1
2195515595 ac_status=$?
2195615596 grep -v '^ *+' conftest.er1 >conftest.err
2195715597 rm -f conftest.er1
2195815598 cat conftest.err >&5
21959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15599 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2196015600 (exit $ac_status); } && {
2196115601 test -z "$ac_c_werror_flag" ||
2196215602 test ! -s conftest.err
21963 } && test -s conftest$ac_exeext &&
21964 $as_test_x conftest$ac_exeext; then
15603 } && test -s conftest$ac_exeext && {
15604 test "$cross_compiling" = yes ||
15605 $as_test_x conftest$ac_exeext
15606 }; then
2196515607 acx_pthread_ok=yes
2196615608 else
21967 echo "$as_me: failed program was:" >&5
15609 $as_echo "$as_me: failed program was:" >&5
2196815610 sed 's/^/| /' conftest.$ac_ext >&5
2196915611
2197015612
2197115613 fi
2197215614
15615 rm -rf conftest.dSYM
2197315616 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
2197415617 conftest$ac_exeext conftest.$ac_ext
2197515618
2197615619 LIBS="$save_LIBS"
2197715620 CFLAGS="$save_CFLAGS"
2197815621
21979 { echo "$as_me:$LINENO: result: $acx_pthread_ok" >&5
21980 echo "${ECHO_T}$acx_pthread_ok" >&6; }
15622 { $as_echo "$as_me:$LINENO: result: $acx_pthread_ok" >&5
15623 $as_echo "$acx_pthread_ok" >&6; }
2198115624 if test "x$acx_pthread_ok" = xyes; then
2198215625 break;
2198315626 fi
2199515638 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
2199615639
2199715640 # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
21998 { echo "$as_me:$LINENO: checking for joinable pthread attribute" >&5
21999 echo $ECHO_N "checking for joinable pthread attribute... $ECHO_C" >&6; }
15641 { $as_echo "$as_me:$LINENO: checking for joinable pthread attribute" >&5
15642 $as_echo_n "checking for joinable pthread attribute... " >&6; }
2200015643 attr_name=unknown
2200115644 for attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
2200215645 cat >conftest.$ac_ext <<_ACEOF
2202015663 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2202115664 *) ac_try_echo=$ac_try;;
2202215665 esac
22023 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15666 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15667 $as_echo "$ac_try_echo") >&5
2202415668 (eval "$ac_link") 2>conftest.er1
2202515669 ac_status=$?
2202615670 grep -v '^ *+' conftest.er1 >conftest.err
2202715671 rm -f conftest.er1
2202815672 cat conftest.err >&5
22029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15673 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2203015674 (exit $ac_status); } && {
2203115675 test -z "$ac_c_werror_flag" ||
2203215676 test ! -s conftest.err
22033 } && test -s conftest$ac_exeext &&
22034 $as_test_x conftest$ac_exeext; then
15677 } && test -s conftest$ac_exeext && {
15678 test "$cross_compiling" = yes ||
15679 $as_test_x conftest$ac_exeext
15680 }; then
2203515681 attr_name=$attr; break
2203615682 else
22037 echo "$as_me: failed program was:" >&5
15683 $as_echo "$as_me: failed program was:" >&5
2203815684 sed 's/^/| /' conftest.$ac_ext >&5
2203915685
2204015686
2204115687 fi
2204215688
15689 rm -rf conftest.dSYM
2204315690 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
2204415691 conftest$ac_exeext conftest.$ac_ext
2204515692 done
22046 { echo "$as_me:$LINENO: result: $attr_name" >&5
22047 echo "${ECHO_T}$attr_name" >&6; }
15693 { $as_echo "$as_me:$LINENO: result: $attr_name" >&5
15694 $as_echo "$attr_name" >&6; }
2204815695 if test "$attr_name" != PTHREAD_CREATE_JOINABLE; then
2204915696
2205015697 cat >>confdefs.h <<_ACEOF
2205315700
2205415701 fi
2205515702
22056 { echo "$as_me:$LINENO: checking if more special flags are required for pthreads" >&5
22057 echo $ECHO_N "checking if more special flags are required for pthreads... $ECHO_C" >&6; }
15703 { $as_echo "$as_me:$LINENO: checking if more special flags are required for pthreads" >&5
15704 $as_echo_n "checking if more special flags are required for pthreads... " >&6; }
2205815705 flag=no
2205915706 case "${host_cpu}-${host_os}" in
2206015707 *-aix* | *-freebsd* | *-darwin*) flag="-D_THREAD_SAFE";;
2206115708 *solaris* | *-osf* | *-hpux*) flag="-D_REENTRANT";;
2206215709 esac
22063 { echo "$as_me:$LINENO: result: ${flag}" >&5
22064 echo "${ECHO_T}${flag}" >&6; }
15710 { $as_echo "$as_me:$LINENO: result: ${flag}" >&5
15711 $as_echo "${flag}" >&6; }
2206515712 if test "x$flag" != xno; then
2206615713 PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS"
2206715714 fi
2207515722 do
2207615723 # Extract the first word of "$ac_prog", so it can be a program name with args.
2207715724 set dummy $ac_prog; ac_word=$2
22078 { echo "$as_me:$LINENO: checking for $ac_word" >&5
22079 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
15725 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
15726 $as_echo_n "checking for $ac_word... " >&6; }
2208015727 if test "${ac_cv_prog_PTHREAD_CC+set}" = set; then
22081 echo $ECHO_N "(cached) $ECHO_C" >&6
15728 $as_echo_n "(cached) " >&6
2208215729 else
2208315730 if test -n "$PTHREAD_CC"; then
2208415731 ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
2209115738 for ac_exec_ext in '' $ac_executable_extensions; do
2209215739 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2209315740 ac_cv_prog_PTHREAD_CC="$ac_prog"
22094 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15741 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2209515742 break 2
2209615743 fi
2209715744 done
2210215749 fi
2210315750 PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
2210415751 if test -n "$PTHREAD_CC"; then
22105 { echo "$as_me:$LINENO: result: $PTHREAD_CC" >&5
22106 echo "${ECHO_T}$PTHREAD_CC" >&6; }
22107 else
22108 { echo "$as_me:$LINENO: result: no" >&5
22109 echo "${ECHO_T}no" >&6; }
15752 { $as_echo "$as_me:$LINENO: result: $PTHREAD_CC" >&5
15753 $as_echo "$PTHREAD_CC" >&6; }
15754 else
15755 { $as_echo "$as_me:$LINENO: result: no" >&5
15756 $as_echo "no" >&6; }
2211015757 fi
2211115758
2211215759
2213715784 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
2213815785 CC="$PTHREAD_CC"
2213915786 ub_have_pthreads=yes
22140 { echo "$as_me:$LINENO: checking for pthread_spinlock_t" >&5
22141 echo $ECHO_N "checking for pthread_spinlock_t... $ECHO_C" >&6; }
15787 { $as_echo "$as_me:$LINENO: checking for pthread_spinlock_t" >&5
15788 $as_echo_n "checking for pthread_spinlock_t... " >&6; }
2214215789 if test "${ac_cv_type_pthread_spinlock_t+set}" = set; then
22143 echo $ECHO_N "(cached) $ECHO_C" >&6
22144 else
22145 cat >conftest.$ac_ext <<_ACEOF
15790 $as_echo_n "(cached) " >&6
15791 else
15792 ac_cv_type_pthread_spinlock_t=no
15793 cat >conftest.$ac_ext <<_ACEOF
2214615794 /* confdefs.h. */
2214715795 _ACEOF
2214815796 cat confdefs.h >>conftest.$ac_ext
2215015798 /* end confdefs.h. */
2215115799 #include <pthread.h>
2215215800
22153 typedef pthread_spinlock_t ac__type_new_;
2215415801 int
2215515802 main ()
2215615803 {
22157 if ((ac__type_new_ *) 0)
22158 return 0;
22159 if (sizeof (ac__type_new_))
22160 return 0;
15804 if (sizeof (pthread_spinlock_t))
15805 return 0;
2216115806 ;
2216215807 return 0;
2216315808 }
2216815813 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2216915814 *) ac_try_echo=$ac_try;;
2217015815 esac
22171 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15816 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15817 $as_echo "$ac_try_echo") >&5
2217215818 (eval "$ac_compile") 2>conftest.er1
2217315819 ac_status=$?
2217415820 grep -v '^ *+' conftest.er1 >conftest.err
2217515821 rm -f conftest.er1
2217615822 cat conftest.err >&5
22177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15823 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2217815824 (exit $ac_status); } && {
2217915825 test -z "$ac_c_werror_flag" ||
2218015826 test ! -s conftest.err
2218115827 } && test -s conftest.$ac_objext; then
22182 ac_cv_type_pthread_spinlock_t=yes
22183 else
22184 echo "$as_me: failed program was:" >&5
22185 sed 's/^/| /' conftest.$ac_ext >&5
22186
22187 ac_cv_type_pthread_spinlock_t=no
22188 fi
22189
22190 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22191 fi
22192 { echo "$as_me:$LINENO: result: $ac_cv_type_pthread_spinlock_t" >&5
22193 echo "${ECHO_T}$ac_cv_type_pthread_spinlock_t" >&6; }
22194 if test $ac_cv_type_pthread_spinlock_t = yes; then
22195
22196 cat >>confdefs.h <<_ACEOF
22197 #define HAVE_PTHREAD_SPINLOCK_T 1
22198 _ACEOF
22199
22200
22201 fi
22202 { echo "$as_me:$LINENO: checking for pthread_rwlock_t" >&5
22203 echo $ECHO_N "checking for pthread_rwlock_t... $ECHO_C" >&6; }
22204 if test "${ac_cv_type_pthread_rwlock_t+set}" = set; then
22205 echo $ECHO_N "(cached) $ECHO_C" >&6
22206 else
2220715828 cat >conftest.$ac_ext <<_ACEOF
2220815829 /* confdefs.h. */
2220915830 _ACEOF
2221215833 /* end confdefs.h. */
2221315834 #include <pthread.h>
2221415835
22215 typedef pthread_rwlock_t ac__type_new_;
2221615836 int
2221715837 main ()
2221815838 {
22219 if ((ac__type_new_ *) 0)
22220 return 0;
22221 if (sizeof (ac__type_new_))
22222 return 0;
15839 if (sizeof ((pthread_spinlock_t)))
15840 return 0;
2222315841 ;
2222415842 return 0;
2222515843 }
2223015848 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2223115849 *) ac_try_echo=$ac_try;;
2223215850 esac
22233 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15851 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15852 $as_echo "$ac_try_echo") >&5
2223415853 (eval "$ac_compile") 2>conftest.er1
2223515854 ac_status=$?
2223615855 grep -v '^ *+' conftest.er1 >conftest.err
2223715856 rm -f conftest.er1
2223815857 cat conftest.err >&5
22239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15858 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2224015859 (exit $ac_status); } && {
2224115860 test -z "$ac_c_werror_flag" ||
2224215861 test ! -s conftest.err
2224315862 } && test -s conftest.$ac_objext; then
22244 ac_cv_type_pthread_rwlock_t=yes
22245 else
22246 echo "$as_me: failed program was:" >&5
15863 :
15864 else
15865 $as_echo "$as_me: failed program was:" >&5
2224715866 sed 's/^/| /' conftest.$ac_ext >&5
2224815867
22249 ac_cv_type_pthread_rwlock_t=no
15868 ac_cv_type_pthread_spinlock_t=yes
2225015869 fi
2225115870
2225215871 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22253 fi
22254 { echo "$as_me:$LINENO: result: $ac_cv_type_pthread_rwlock_t" >&5
22255 echo "${ECHO_T}$ac_cv_type_pthread_rwlock_t" >&6; }
22256 if test $ac_cv_type_pthread_rwlock_t = yes; then
15872 else
15873 $as_echo "$as_me: failed program was:" >&5
15874 sed 's/^/| /' conftest.$ac_ext >&5
15875
15876
15877 fi
15878
15879 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15880 fi
15881 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_pthread_spinlock_t" >&5
15882 $as_echo "$ac_cv_type_pthread_spinlock_t" >&6; }
15883 if test "x$ac_cv_type_pthread_spinlock_t" = x""yes; then
15884
15885 cat >>confdefs.h <<_ACEOF
15886 #define HAVE_PTHREAD_SPINLOCK_T 1
15887 _ACEOF
15888
15889
15890 fi
15891 { $as_echo "$as_me:$LINENO: checking for pthread_rwlock_t" >&5
15892 $as_echo_n "checking for pthread_rwlock_t... " >&6; }
15893 if test "${ac_cv_type_pthread_rwlock_t+set}" = set; then
15894 $as_echo_n "(cached) " >&6
15895 else
15896 ac_cv_type_pthread_rwlock_t=no
15897 cat >conftest.$ac_ext <<_ACEOF
15898 /* confdefs.h. */
15899 _ACEOF
15900 cat confdefs.h >>conftest.$ac_ext
15901 cat >>conftest.$ac_ext <<_ACEOF
15902 /* end confdefs.h. */
15903 #include <pthread.h>
15904
15905 int
15906 main ()
15907 {
15908 if (sizeof (pthread_rwlock_t))
15909 return 0;
15910 ;
15911 return 0;
15912 }
15913 _ACEOF
15914 rm -f conftest.$ac_objext
15915 if { (ac_try="$ac_compile"
15916 case "(($ac_try" in
15917 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15918 *) ac_try_echo=$ac_try;;
15919 esac
15920 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15921 $as_echo "$ac_try_echo") >&5
15922 (eval "$ac_compile") 2>conftest.er1
15923 ac_status=$?
15924 grep -v '^ *+' conftest.er1 >conftest.err
15925 rm -f conftest.er1
15926 cat conftest.err >&5
15927 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15928 (exit $ac_status); } && {
15929 test -z "$ac_c_werror_flag" ||
15930 test ! -s conftest.err
15931 } && test -s conftest.$ac_objext; then
15932 cat >conftest.$ac_ext <<_ACEOF
15933 /* confdefs.h. */
15934 _ACEOF
15935 cat confdefs.h >>conftest.$ac_ext
15936 cat >>conftest.$ac_ext <<_ACEOF
15937 /* end confdefs.h. */
15938 #include <pthread.h>
15939
15940 int
15941 main ()
15942 {
15943 if (sizeof ((pthread_rwlock_t)))
15944 return 0;
15945 ;
15946 return 0;
15947 }
15948 _ACEOF
15949 rm -f conftest.$ac_objext
15950 if { (ac_try="$ac_compile"
15951 case "(($ac_try" in
15952 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15953 *) ac_try_echo=$ac_try;;
15954 esac
15955 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15956 $as_echo "$ac_try_echo") >&5
15957 (eval "$ac_compile") 2>conftest.er1
15958 ac_status=$?
15959 grep -v '^ *+' conftest.er1 >conftest.err
15960 rm -f conftest.er1
15961 cat conftest.err >&5
15962 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15963 (exit $ac_status); } && {
15964 test -z "$ac_c_werror_flag" ||
15965 test ! -s conftest.err
15966 } && test -s conftest.$ac_objext; then
15967 :
15968 else
15969 $as_echo "$as_me: failed program was:" >&5
15970 sed 's/^/| /' conftest.$ac_ext >&5
15971
15972 ac_cv_type_pthread_rwlock_t=yes
15973 fi
15974
15975 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15976 else
15977 $as_echo "$as_me: failed program was:" >&5
15978 sed 's/^/| /' conftest.$ac_ext >&5
15979
15980
15981 fi
15982
15983 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15984 fi
15985 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_pthread_rwlock_t" >&5
15986 $as_echo "$ac_cv_type_pthread_rwlock_t" >&6; }
15987 if test "x$ac_cv_type_pthread_rwlock_t" = x""yes; then
2225715988
2225815989 cat >>confdefs.h <<_ACEOF
2225915990 #define HAVE_PTHREAD_RWLOCK_T 1
2228916020 ub_have_sol_threads=no
2229016021 if test x_$withval != x_no; then
2229116022 if test x_$ub_have_pthreads != x_no; then
22292 { echo "$as_me:$LINENO: WARNING: Have pthreads already, ignoring --with-solaris-threads" >&5
22293 echo "$as_me: WARNING: Have pthreads already, ignoring --with-solaris-threads" >&2;}
16023 { $as_echo "$as_me:$LINENO: WARNING: Have pthreads already, ignoring --with-solaris-threads" >&5
16024 $as_echo "$as_me: WARNING: Have pthreads already, ignoring --with-solaris-threads" >&2;}
2229416025 else
22295 { echo "$as_me:$LINENO: checking for library containing thr_create" >&5
22296 echo $ECHO_N "checking for library containing thr_create... $ECHO_C" >&6; }
16026 { $as_echo "$as_me:$LINENO: checking for library containing thr_create" >&5
16027 $as_echo_n "checking for library containing thr_create... " >&6; }
2229716028 if test "${ac_cv_search_thr_create+set}" = set; then
22298 echo $ECHO_N "(cached) $ECHO_C" >&6
16029 $as_echo_n "(cached) " >&6
2229916030 else
2230016031 ac_func_search_save_LIBS=$LIBS
2230116032 cat >conftest.$ac_ext <<_ACEOF
2233316064 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2233416065 *) ac_try_echo=$ac_try;;
2233516066 esac
22336 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16067 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16068 $as_echo "$ac_try_echo") >&5
2233716069 (eval "$ac_link") 2>conftest.er1
2233816070 ac_status=$?
2233916071 grep -v '^ *+' conftest.er1 >conftest.err
2234016072 rm -f conftest.er1
2234116073 cat conftest.err >&5
22342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16074 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2234316075 (exit $ac_status); } && {
2234416076 test -z "$ac_c_werror_flag" ||
2234516077 test ! -s conftest.err
22346 } && test -s conftest$ac_exeext &&
22347 $as_test_x conftest$ac_exeext; then
16078 } && test -s conftest$ac_exeext && {
16079 test "$cross_compiling" = yes ||
16080 $as_test_x conftest$ac_exeext
16081 }; then
2234816082 ac_cv_search_thr_create=$ac_res
2234916083 else
22350 echo "$as_me: failed program was:" >&5
16084 $as_echo "$as_me: failed program was:" >&5
2235116085 sed 's/^/| /' conftest.$ac_ext >&5
2235216086
2235316087
2235416088 fi
2235516089
16090 rm -rf conftest.dSYM
2235616091 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
2235716092 conftest$ac_exeext
2235816093 if test "${ac_cv_search_thr_create+set}" = set; then
2236716102 rm conftest.$ac_ext
2236816103 LIBS=$ac_func_search_save_LIBS
2236916104 fi
22370 { echo "$as_me:$LINENO: result: $ac_cv_search_thr_create" >&5
22371 echo "${ECHO_T}$ac_cv_search_thr_create" >&6; }
16105 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_thr_create" >&5
16106 $as_echo "$ac_cv_search_thr_create" >&6; }
2237216107 ac_res=$ac_cv_search_thr_create
2237316108 if test "$ac_res" != no; then
2237416109 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
2238116116
2238216117
2238316118
22384 { echo "$as_me:$LINENO: checking whether $CC supports -mt" >&5
22385 echo $ECHO_N "checking whether $CC supports -mt... $ECHO_C" >&6; }
16119 { $as_echo "$as_me:$LINENO: checking whether $CC supports -mt" >&5
16120 $as_echo_n "checking whether $CC supports -mt... " >&6; }
2238616121 cache=`echo mt | sed 'y%.=/+-%___p_%'`
2238716122 if { as_var=cv_prog_cc_flag_$cache; eval "test \"\${$as_var+set}\" = set"; }; then
22388 echo $ECHO_N "(cached) $ECHO_C" >&6
16123 $as_echo_n "(cached) " >&6
2238916124 else
2239016125
2239116126 echo 'void f(){}' >conftest.c
2239916134 fi
2240016135
2240116136 if eval "test \"`echo '$cv_prog_cc_flag_'$cache`\" = yes"; then
22402 { echo "$as_me:$LINENO: result: yes" >&5
22403 echo "${ECHO_T}yes" >&6; }
16137 { $as_echo "$as_me:$LINENO: result: yes" >&5
16138 $as_echo "yes" >&6; }
2240416139 :
2240516140 CFLAGS="$CFLAGS -mt"
2240616141 else
22407 { echo "$as_me:$LINENO: result: no" >&5
22408 echo "${ECHO_T}no" >&6; }
16142 { $as_echo "$as_me:$LINENO: result: no" >&5
16143 $as_echo "no" >&6; }
2240916144 :
2241016145 CFLAGS="$CFLAGS -D_REENTRANT"
2241116146 fi
2241416149
2241516150 else
2241616151
22417 { { echo "$as_me:$LINENO: error: no solaris threads found." >&5
22418 echo "$as_me: error: no solaris threads found." >&2;}
16152 { { $as_echo "$as_me:$LINENO: error: no solaris threads found." >&5
16153 $as_echo "$as_me: error: no solaris threads found." >&2;}
2241916154 { (exit 1); exit 1; }; }
2242016155
2242116156 fi
2242816163
2242916164 for ac_header in windows.h
2243016165 do
22431 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
22432 { echo "$as_me:$LINENO: checking for $ac_header" >&5
22433 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16166 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
16167 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
16168 $as_echo_n "checking for $ac_header... " >&6; }
2243416169 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22435 echo $ECHO_N "(cached) $ECHO_C" >&6
16170 $as_echo_n "(cached) " >&6
2243616171 else
2243716172 cat >conftest.$ac_ext <<_ACEOF
2243816173 /* confdefs.h. */
2245016185 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2245116186 *) ac_try_echo=$ac_try;;
2245216187 esac
22453 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16188 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16189 $as_echo "$ac_try_echo") >&5
2245416190 (eval "$ac_compile") 2>conftest.er1
2245516191 ac_status=$?
2245616192 grep -v '^ *+' conftest.er1 >conftest.err
2245716193 rm -f conftest.er1
2245816194 cat conftest.err >&5
22459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16195 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2246016196 (exit $ac_status); } && {
2246116197 test -z "$ac_c_werror_flag" ||
2246216198 test ! -s conftest.err
2246316199 } && test -s conftest.$ac_objext; then
2246416200 eval "$as_ac_Header=yes"
2246516201 else
22466 echo "$as_me: failed program was:" >&5
16202 $as_echo "$as_me: failed program was:" >&5
2246716203 sed 's/^/| /' conftest.$ac_ext >&5
2246816204
2246916205 eval "$as_ac_Header=no"
2247116207
2247216208 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2247316209 fi
22474 ac_res=`eval echo '${'$as_ac_Header'}'`
22475 { echo "$as_me:$LINENO: result: $ac_res" >&5
22476 echo "${ECHO_T}$ac_res" >&6; }
22477 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16210 ac_res=`eval 'as_val=${'$as_ac_Header'}
16211 $as_echo "$as_val"'`
16212 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
16213 $as_echo "$ac_res" >&6; }
16214 as_val=`eval 'as_val=${'$as_ac_Header'}
16215 $as_echo "$as_val"'`
16216 if test "x$as_val" = x""yes; then
2247816217 cat >>confdefs.h <<_ACEOF
22479 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16218 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
2248016219 _ACEOF
2248116220
2248216221 fi
2248316222
2248416223 done
2248516224
22486 { echo "$as_me:$LINENO: checking for CreateThread" >&5
22487 echo $ECHO_N "checking for CreateThread... $ECHO_C" >&6; }
16225 { $as_echo "$as_me:$LINENO: checking for CreateThread" >&5
16226 $as_echo_n "checking for CreateThread... " >&6; }
2248816227 cat >conftest.$ac_ext <<_ACEOF
2248916228 /* confdefs.h. */
2249016229 _ACEOF
2251216251 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2251316252 *) ac_try_echo=$ac_try;;
2251416253 esac
22515 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16254 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16255 $as_echo "$ac_try_echo") >&5
2251616256 (eval "$ac_compile") 2>conftest.er1
2251716257 ac_status=$?
2251816258 grep -v '^ *+' conftest.er1 >conftest.err
2251916259 rm -f conftest.er1
2252016260 cat conftest.err >&5
22521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16261 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2252216262 (exit $ac_status); } && {
2252316263 test -z "$ac_c_werror_flag" ||
2252416264 test ! -s conftest.err
2252516265 } && test -s conftest.$ac_objext; then
22526 { echo "$as_me:$LINENO: result: yes" >&5
22527 echo "${ECHO_T}yes" >&6; }
16266 { $as_echo "$as_me:$LINENO: result: yes" >&5
16267 $as_echo "yes" >&6; }
2252816268
2252916269 cat >>confdefs.h <<\_ACEOF
2253016270 #define HAVE_WINDOWS_THREADS 1
2253216272
2253316273
2253416274 else
22535 echo "$as_me: failed program was:" >&5
16275 $as_echo "$as_me: failed program was:" >&5
2253616276 sed 's/^/| /' conftest.$ac_ext >&5
2253716277
22538 { echo "$as_me:$LINENO: result: no" >&5
22539 echo "${ECHO_T}no" >&6; }
16278 { $as_echo "$as_me:$LINENO: result: no" >&5
16279 $as_echo "no" >&6; }
2254016280
2254116281 fi
2254216282
2258916329
2259016330 # Extract the first word of "python[$PYTHON_VERSION]", so it can be a program name with args.
2259116331 set dummy python$PYTHON_VERSION; ac_word=$2
22592 { echo "$as_me:$LINENO: checking for $ac_word" >&5
22593 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
16332 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
16333 $as_echo_n "checking for $ac_word... " >&6; }
2259416334 if test "${ac_cv_path_PYTHON+set}" = set; then
22595 echo $ECHO_N "(cached) $ECHO_C" >&6
16335 $as_echo_n "(cached) " >&6
2259616336 else
2259716337 case $PYTHON in
2259816338 [\\/]* | ?:[\\/]*)
2260716347 for ac_exec_ext in '' $ac_executable_extensions; do
2260816348 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2260916349 ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
22610 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
16350 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2261116351 break 2
2261216352 fi
2261316353 done
2261916359 fi
2262016360 PYTHON=$ac_cv_path_PYTHON
2262116361 if test -n "$PYTHON"; then
22622 { echo "$as_me:$LINENO: result: $PYTHON" >&5
22623 echo "${ECHO_T}$PYTHON" >&6; }
22624 else
22625 { echo "$as_me:$LINENO: result: no" >&5
22626 echo "${ECHO_T}no" >&6; }
16362 { $as_echo "$as_me:$LINENO: result: $PYTHON" >&5
16363 $as_echo "$PYTHON" >&6; }
16364 else
16365 { $as_echo "$as_me:$LINENO: result: no" >&5
16366 $as_echo "no" >&6; }
2262716367 fi
2262816368
2262916369
2263016370 if test -z "$PYTHON"; then
22631 { { echo "$as_me:$LINENO: error: Cannot find python$PYTHON_VERSION in your system path" >&5
22632 echo "$as_me: error: Cannot find python$PYTHON_VERSION in your system path" >&2;}
16371 { { $as_echo "$as_me:$LINENO: error: Cannot find python$PYTHON_VERSION in your system path" >&5
16372 $as_echo "$as_me: error: Cannot find python$PYTHON_VERSION in your system path" >&2;}
2263316373 { (exit 1); exit 1; }; }
2263416374 PYTHON_VERSION=""
2263516375 fi
2264216382 #
2264316383 # Check for a version of Python >= 2.1.0
2264416384 #
22645 { echo "$as_me:$LINENO: checking for a version of Python >= '2.1.0'" >&5
22646 echo $ECHO_N "checking for a version of Python >= '2.1.0'... $ECHO_C" >&6; }
16385 { $as_echo "$as_me:$LINENO: checking for a version of Python >= '2.1.0'" >&5
16386 $as_echo_n "checking for a version of Python >= '2.1.0'... " >&6; }
2264716387 ac_supports_python_ver=`$PYTHON -c "import sys, string; \
2264816388 ver = string.split(sys.version)[0]; \
2264916389 print ver >= '2.1.0'"`
2265016390 if test "$ac_supports_python_ver" != "True"; then
2265116391 if test -z "$PYTHON_NOVERSIONCHECK"; then
22652 { echo "$as_me:$LINENO: result: no" >&5
22653 echo "${ECHO_T}no" >&6; }
22654 { { echo "$as_me:$LINENO: error:
16392 { $as_echo "$as_me:$LINENO: result: no" >&5
16393 $as_echo "no" >&6; }
16394 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
16395 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16396 { { $as_echo "$as_me:$LINENO: error:
2265516397 This version of the AC_PYTHON_DEVEL macro
2265616398 doesn't work properly with versions of Python before
2265716399 2.1.0. You may need to re-run configure, setting the
2266116403 to something else than an empty string.
2266216404
2266316405 See \`config.log' for more details." >&5
22664 echo "$as_me: error:
16406 $as_echo "$as_me: error:
2266516407 This version of the AC_PYTHON_DEVEL macro
2266616408 doesn't work properly with versions of Python before
2266716409 2.1.0. You may need to re-run configure, setting the
2267116413 to something else than an empty string.
2267216414
2267316415 See \`config.log' for more details." >&2;}
22674 { (exit 1); exit 1; }; }
16416 { (exit 1); exit 1; }; }; }
2267516417 else
22676 { echo "$as_me:$LINENO: result: skip at user request" >&5
22677 echo "${ECHO_T}skip at user request" >&6; }
16418 { $as_echo "$as_me:$LINENO: result: skip at user request" >&5
16419 $as_echo "skip at user request" >&6; }
2267816420 fi
2267916421 else
22680 { echo "$as_me:$LINENO: result: yes" >&5
22681 echo "${ECHO_T}yes" >&6; }
16422 { $as_echo "$as_me:$LINENO: result: yes" >&5
16423 $as_echo "yes" >&6; }
2268216424 fi
2268316425
2268416426 #
2268516427 # if the macro parameter ``version'' is set, honour it
2268616428 #
2268716429 if test -n ""; then
22688 { echo "$as_me:$LINENO: checking for a version of Python " >&5
22689 echo $ECHO_N "checking for a version of Python ... $ECHO_C" >&6; }
16430 { $as_echo "$as_me:$LINENO: checking for a version of Python " >&5
16431 $as_echo_n "checking for a version of Python ... " >&6; }
2269016432 ac_supports_python_ver=`$PYTHON -c "import sys, string; \
2269116433 ver = string.split(sys.version)[0]; \
2269216434 print ver "`
2269316435 if test "$ac_supports_python_ver" = "True"; then
22694 { echo "$as_me:$LINENO: result: yes" >&5
22695 echo "${ECHO_T}yes" >&6; }
16436 { $as_echo "$as_me:$LINENO: result: yes" >&5
16437 $as_echo "yes" >&6; }
2269616438 else
22697 { echo "$as_me:$LINENO: result: no" >&5
22698 echo "${ECHO_T}no" >&6; }
22699 { { echo "$as_me:$LINENO: error: this package requires Python .
16439 { $as_echo "$as_me:$LINENO: result: no" >&5
16440 $as_echo "no" >&6; }
16441 { { $as_echo "$as_me:$LINENO: error: this package requires Python .
2270016442 If you have it installed, but it isn't the default Python
2270116443 interpreter in your system path, please pass the PYTHON_VERSION
2270216444 variable to configure. See \`\`configure --help'' for reference.
2270316445 " >&5
22704 echo "$as_me: error: this package requires Python .
16446 $as_echo "$as_me: error: this package requires Python .
2270516447 If you have it installed, but it isn't the default Python
2270616448 interpreter in your system path, please pass the PYTHON_VERSION
2270716449 variable to configure. See \`\`configure --help'' for reference.
2271416456 #
2271516457 # Check if you have distutils, else fail
2271616458 #
22717 { echo "$as_me:$LINENO: checking for the distutils Python package" >&5
22718 echo $ECHO_N "checking for the distutils Python package... $ECHO_C" >&6; }
16459 { $as_echo "$as_me:$LINENO: checking for the distutils Python package" >&5
16460 $as_echo_n "checking for the distutils Python package... " >&6; }
2271916461 ac_distutils_result=`$PYTHON -c "import distutils" 2>&1`
2272016462 if test -z "$ac_distutils_result"; then
22721 { echo "$as_me:$LINENO: result: yes" >&5
22722 echo "${ECHO_T}yes" >&6; }
16463 { $as_echo "$as_me:$LINENO: result: yes" >&5
16464 $as_echo "yes" >&6; }
2272316465 else
22724 { echo "$as_me:$LINENO: result: no" >&5
22725 echo "${ECHO_T}no" >&6; }
22726 { { echo "$as_me:$LINENO: error: cannot import Python module \"distutils\".
16466 { $as_echo "$as_me:$LINENO: result: no" >&5
16467 $as_echo "no" >&6; }
16468 { { $as_echo "$as_me:$LINENO: error: cannot import Python module \"distutils\".
2272716469 Please check your Python installation. The error was:
2272816470 $ac_distutils_result" >&5
22729 echo "$as_me: error: cannot import Python module \"distutils\".
16471 $as_echo "$as_me: error: cannot import Python module \"distutils\".
2273016472 Please check your Python installation. The error was:
2273116473 $ac_distutils_result" >&2;}
2273216474 { (exit 1); exit 1; }; }
2273616478 #
2273716479 # Check for Python include path
2273816480 #
22739 { echo "$as_me:$LINENO: checking for Python include path" >&5
22740 echo $ECHO_N "checking for Python include path... $ECHO_C" >&6; }
16481 { $as_echo "$as_me:$LINENO: checking for Python include path" >&5
16482 $as_echo_n "checking for Python include path... " >&6; }
2274116483 if test -z "$PYTHON_CPPFLAGS"; then
2274216484 python_path=`$PYTHON -c "import distutils.sysconfig; \
2274316485 print distutils.sysconfig.get_python_inc();"`
2274616488 fi
2274716489 PYTHON_CPPFLAGS=$python_path
2274816490 fi
22749 { echo "$as_me:$LINENO: result: $PYTHON_CPPFLAGS" >&5
22750 echo "${ECHO_T}$PYTHON_CPPFLAGS" >&6; }
16491 { $as_echo "$as_me:$LINENO: result: $PYTHON_CPPFLAGS" >&5
16492 $as_echo "$PYTHON_CPPFLAGS" >&6; }
2275116493
2275216494
2275316495 #
2275416496 # Check for Python library path
2275516497 #
22756 { echo "$as_me:$LINENO: checking for Python library path" >&5
22757 echo $ECHO_N "checking for Python library path... $ECHO_C" >&6; }
16498 { $as_echo "$as_me:$LINENO: checking for Python library path" >&5
16499 $as_echo_n "checking for Python library path... " >&6; }
2275816500 if test -z "$PYTHON_LDFLAGS"; then
2275916501 # (makes two attempts to ensure we've got a version number
2276016502 # from the interpreter)
2277616518 '-L' + os.path.dirname(get_python_lib(0,1)), \
2277716519 '-lpython';"`$py_version
2277816520 fi
22779 { echo "$as_me:$LINENO: result: $PYTHON_LDFLAGS" >&5
22780 echo "${ECHO_T}$PYTHON_LDFLAGS" >&6; }
16521 { $as_echo "$as_me:$LINENO: result: $PYTHON_LDFLAGS" >&5
16522 $as_echo "$PYTHON_LDFLAGS" >&6; }
2278116523
2278216524
2278316525 #
2278416526 # Check for site packages
2278516527 #
22786 { echo "$as_me:$LINENO: checking for Python site-packages path" >&5
22787 echo $ECHO_N "checking for Python site-packages path... $ECHO_C" >&6; }
16528 { $as_echo "$as_me:$LINENO: checking for Python site-packages path" >&5
16529 $as_echo_n "checking for Python site-packages path... " >&6; }
2278816530 if test -z "$PYTHON_SITE_PKG"; then
2278916531 PYTHON_SITE_PKG=`$PYTHON -c "import distutils.sysconfig; \
2279016532 print distutils.sysconfig.get_python_lib(0,0);"`
2279116533 fi
22792 { echo "$as_me:$LINENO: result: $PYTHON_SITE_PKG" >&5
22793 echo "${ECHO_T}$PYTHON_SITE_PKG" >&6; }
16534 { $as_echo "$as_me:$LINENO: result: $PYTHON_SITE_PKG" >&5
16535 $as_echo "$PYTHON_SITE_PKG" >&6; }
2279416536
2279516537
2279616538 #
2279716539 # libraries which must be linked in when embedding
2279816540 #
22799 { echo "$as_me:$LINENO: checking python extra libraries" >&5
22800 echo $ECHO_N "checking python extra libraries... $ECHO_C" >&6; }
16541 { $as_echo "$as_me:$LINENO: checking python extra libraries" >&5
16542 $as_echo_n "checking python extra libraries... " >&6; }
2280116543 if test -z "$PYTHON_EXTRA_LIBS"; then
2280216544 PYTHON_EXTRA_LIBS=`$PYTHON -c "import distutils.sysconfig; \
2280316545 conf = distutils.sysconfig.get_config_var; \
2280416546 print conf('LOCALMODLIBS'), conf('LIBS')"`
2280516547 fi
22806 { echo "$as_me:$LINENO: result: $PYTHON_EXTRA_LIBS" >&5
22807 echo "${ECHO_T}$PYTHON_EXTRA_LIBS" >&6; }
16548 { $as_echo "$as_me:$LINENO: result: $PYTHON_EXTRA_LIBS" >&5
16549 $as_echo "$PYTHON_EXTRA_LIBS" >&6; }
2280816550
2280916551
2281016552 #
2281116553 # linking flags needed when embedding
2281216554 #
22813 { echo "$as_me:$LINENO: checking python extra linking flags" >&5
22814 echo $ECHO_N "checking python extra linking flags... $ECHO_C" >&6; }
16555 { $as_echo "$as_me:$LINENO: checking python extra linking flags" >&5
16556 $as_echo_n "checking python extra linking flags... " >&6; }
2281516557 if test -z "$PYTHON_EXTRA_LDFLAGS"; then
2281616558 PYTHON_EXTRA_LDFLAGS=`$PYTHON -c "import distutils.sysconfig; \
2281716559 conf = distutils.sysconfig.get_config_var; \
2281816560 print conf('LINKFORSHARED')"`
2281916561 fi
22820 { echo "$as_me:$LINENO: result: $PYTHON_EXTRA_LDFLAGS" >&5
22821 echo "${ECHO_T}$PYTHON_EXTRA_LDFLAGS" >&6; }
16562 { $as_echo "$as_me:$LINENO: result: $PYTHON_EXTRA_LDFLAGS" >&5
16563 $as_echo "$PYTHON_EXTRA_LDFLAGS" >&6; }
2282216564
2282316565
2282416566 #
2282516567 # final check to see if everything compiles alright
2282616568 #
22827 { echo "$as_me:$LINENO: checking consistency of all components of python development environment" >&5
22828 echo $ECHO_N "checking consistency of all components of python development environment... $ECHO_C" >&6; }
16569 { $as_echo "$as_me:$LINENO: checking consistency of all components of python development environment" >&5
16570 $as_echo_n "checking consistency of all components of python development environment... " >&6; }
2282916571 ac_ext=c
2283016572 ac_cpp='$CPP $CPPFLAGS'
2283116573 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2286016602 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2286116603 *) ac_try_echo=$ac_try;;
2286216604 esac
22863 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16605 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16606 $as_echo "$ac_try_echo") >&5
2286416607 (eval "$ac_link") 2>conftest.er1
2286516608 ac_status=$?
2286616609 grep -v '^ *+' conftest.er1 >conftest.err
2286716610 rm -f conftest.er1
2286816611 cat conftest.err >&5
22869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16612 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2287016613 (exit $ac_status); } && {
2287116614 test -z "$ac_c_werror_flag" ||
2287216615 test ! -s conftest.err
22873 } && test -s conftest$ac_exeext &&
22874 $as_test_x conftest$ac_exeext; then
16616 } && test -s conftest$ac_exeext && {
16617 test "$cross_compiling" = yes ||
16618 $as_test_x conftest$ac_exeext
16619 }; then
2287516620 pythonexists=yes
2287616621 else
22877 echo "$as_me: failed program was:" >&5
16622 $as_echo "$as_me: failed program was:" >&5
2287816623 sed 's/^/| /' conftest.$ac_ext >&5
2287916624
2288016625 pythonexists=no
2288116626 fi
2288216627
16628 rm -rf conftest.dSYM
2288316629 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
2288416630 conftest$ac_exeext conftest.$ac_ext
2288516631
22886 { echo "$as_me:$LINENO: result: $pythonexists" >&5
22887 echo "${ECHO_T}$pythonexists" >&6; }
16632 { $as_echo "$as_me:$LINENO: result: $pythonexists" >&5
16633 $as_echo "$pythonexists" >&6; }
2288816634
2288916635 if test ! "$pythonexists" = "yes"; then
22890 { { echo "$as_me:$LINENO: error:
16636 { { $as_echo "$as_me:$LINENO: error:
2289116637 Could not link test program to Python. Maybe the main Python library has been
2289216638 installed in some non-standard library path. If so, pass it to configure,
2289316639 via the LDFLAGS environment variable.
2289816644 for your distribution. The exact name of this package varies among them.
2289916645 ============================================================================
2290016646 " >&5
22901 echo "$as_me: error:
16647 $as_echo "$as_me: error:
2290216648 Could not link test program to Python. Maybe the main Python library has been
2290316649 installed in some non-standard library path. If so, pass it to configure,
2290416650 via the LDFLAGS environment variable.
2292816674
2292916675 if test ! -z "$PYTHON_VERSION"; then
2293016676 if test `$PYTHON -c "print '$PYTHON_VERSION' >= '2.4.0'"` = "False"; then
22931 { { echo "$as_me:$LINENO: error: Python version >= 2.4.0 is required" >&5
22932 echo "$as_me: error: Python version >= 2.4.0 is required" >&2;}
16677 { { $as_echo "$as_me:$LINENO: error: Python version >= 2.4.0 is required" >&5
16678 $as_echo "$as_me: error: Python version >= 2.4.0 is required" >&2;}
2293316679 { (exit 1); exit 1; }; }
2293416680 fi
2293516681
2294816694
2294916695 # Extract the first word of "swig", so it can be a program name with args.
2295016696 set dummy swig; ac_word=$2
22951 { echo "$as_me:$LINENO: checking for $ac_word" >&5
22952 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
16697 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
16698 $as_echo_n "checking for $ac_word... " >&6; }
2295316699 if test "${ac_cv_path_SWIG+set}" = set; then
22954 echo $ECHO_N "(cached) $ECHO_C" >&6
16700 $as_echo_n "(cached) " >&6
2295516701 else
2295616702 case $SWIG in
2295716703 [\\/]* | ?:[\\/]*)
2296616712 for ac_exec_ext in '' $ac_executable_extensions; do
2296716713 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2296816714 ac_cv_path_SWIG="$as_dir/$ac_word$ac_exec_ext"
22969 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
16715 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2297016716 break 2
2297116717 fi
2297216718 done
2297816724 fi
2297916725 SWIG=$ac_cv_path_SWIG
2298016726 if test -n "$SWIG"; then
22981 { echo "$as_me:$LINENO: result: $SWIG" >&5
22982 echo "${ECHO_T}$SWIG" >&6; }
22983 else
22984 { echo "$as_me:$LINENO: result: no" >&5
22985 echo "${ECHO_T}no" >&6; }
16727 { $as_echo "$as_me:$LINENO: result: $SWIG" >&5
16728 $as_echo "$SWIG" >&6; }
16729 else
16730 { $as_echo "$as_me:$LINENO: result: no" >&5
16731 $as_echo "no" >&6; }
2298616732 fi
2298716733
2298816734
2298916735 if test -z "$SWIG" ; then
22990 { echo "$as_me:$LINENO: WARNING: cannot find 'swig' program. You should look at http://www.swig.org" >&5
22991 echo "$as_me: WARNING: cannot find 'swig' program. You should look at http://www.swig.org" >&2;}
16736 { $as_echo "$as_me:$LINENO: WARNING: cannot find 'swig' program. You should look at http://www.swig.org" >&5
16737 $as_echo "$as_me: WARNING: cannot find 'swig' program. You should look at http://www.swig.org" >&2;}
2299216738 SWIG='echo "Error: SWIG is not installed. You should look at http://www.swig.org" ; false'
2299316739 elif test -n "" ; then
22994 { echo "$as_me:$LINENO: checking for SWIG version" >&5
22995 echo $ECHO_N "checking for SWIG version... $ECHO_C" >&6; }
16740 { $as_echo "$as_me:$LINENO: checking for SWIG version" >&5
16741 $as_echo_n "checking for SWIG version... " >&6; }
2299616742 swig_version=`$SWIG -version 2>&1 | grep 'SWIG Version' | sed 's/.*\([0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\).*/\1/g'`
22997 { echo "$as_me:$LINENO: result: $swig_version" >&5
22998 echo "${ECHO_T}$swig_version" >&6; }
16743 { $as_echo "$as_me:$LINENO: result: $swig_version" >&5
16744 $as_echo "$swig_version" >&6; }
2299916745 if test -n "$swig_version" ; then
2300016746 # Calculate the required version number components
2300116747 required=
2303216778 if test $available_major -ne $required_major \
2303316779 -o $available_minor -ne $required_minor \
2303416780 -o $available_patch -lt $required_patch ; then
23035 { echo "$as_me:$LINENO: WARNING: SWIG version >= is required. You have $swig_version. You should look at http://www.swig.org" >&5
23036 echo "$as_me: WARNING: SWIG version >= is required. You have $swig_version. You should look at http://www.swig.org" >&2;}
16781 { $as_echo "$as_me:$LINENO: WARNING: SWIG version >= is required. You have $swig_version. You should look at http://www.swig.org" >&5
16782 $as_echo "$as_me: WARNING: SWIG version >= is required. You have $swig_version. You should look at http://www.swig.org" >&2;}
2303716783 SWIG='echo "Error: SWIG version >= is required. You have '"$swig_version"'. You should look at http://www.swig.org" ; false'
2303816784 else
23039 { echo "$as_me:$LINENO: SWIG executable is '$SWIG'" >&5
23040 echo "$as_me: SWIG executable is '$SWIG'" >&6;}
16785 { $as_echo "$as_me:$LINENO: SWIG executable is '$SWIG'" >&5
16786 $as_echo "$as_me: SWIG executable is '$SWIG'" >&6;}
2304116787 SWIG_LIB=`$SWIG -swiglib`
23042 { echo "$as_me:$LINENO: SWIG library directory is '$SWIG_LIB'" >&5
23043 echo "$as_me: SWIG library directory is '$SWIG_LIB'" >&6;}
16788 { $as_echo "$as_me:$LINENO: SWIG library directory is '$SWIG_LIB'" >&5
16789 $as_echo "$as_me: SWIG library directory is '$SWIG_LIB'" >&6;}
2304416790 fi
2304516791 else
23046 { echo "$as_me:$LINENO: WARNING: cannot determine SWIG version" >&5
23047 echo "$as_me: WARNING: cannot determine SWIG version" >&2;}
16792 { $as_echo "$as_me:$LINENO: WARNING: cannot determine SWIG version" >&5
16793 $as_echo "$as_me: WARNING: cannot determine SWIG version" >&2;}
2304816794 SWIG='echo "Error: Cannot determine SWIG version. You should look at http://www.swig.org" ; false'
2304916795 fi
2305016796 fi
2305116797
2305216798
23053 { echo "$as_me:$LINENO: checking SWIG" >&5
23054 echo $ECHO_N "checking SWIG... $ECHO_C" >&6; }
16799 { $as_echo "$as_me:$LINENO: checking SWIG" >&5
16800 $as_echo_n "checking SWIG... " >&6; }
2305516801 if test ! -x "$SWIG"; then
23056 { echo "$as_me:$LINENO: result: failed" >&5
23057 echo "${ECHO_T}failed" >&6; }
23058 swig=""
23059
23060 ub_with_pyunbound=no
23061 ub_with_pythonmod=no
16802 { { $as_echo "$as_me:$LINENO: error: failed to find swig tool, install it, or do not build Python module and PyUnbound" >&5
16803 $as_echo "$as_me: error: failed to find swig tool, install it, or do not build Python module and PyUnbound" >&2;}
16804 { (exit 1); exit 1; }; }
2306216805 else
2306316806
2306416807 cat >>confdefs.h <<\_ACEOF
2306716810
2306816811 swig="$SWIG"
2306916812
23070 { echo "$as_me:$LINENO: result: present" >&5
23071 echo "${ECHO_T}present" >&6; }
16813 { $as_echo "$as_me:$LINENO: result: present" >&5
16814 $as_echo "present" >&6; }
2307216815
2307316816 # If have Python & SWIG
2307416817 # Declare PythonMod
2309416837 fi
2309516838 fi
2309616839 else
23097 { echo "$as_me:$LINENO: result: *** Python libraries not found, won't build PythonMod or PyUnbound ***" >&5
23098 echo "${ECHO_T}*** Python libraries not found, won't build PythonMod or PyUnbound ***" >&6; }
16840 { $as_echo "$as_me:$LINENO: result: *** Python libraries not found, won't build PythonMod or PyUnbound ***" >&5
16841 $as_echo "*** Python libraries not found, won't build PythonMod or PyUnbound ***" >&6; }
2309916842 ub_with_pyunbound=no
2310016843 ub_with_pythonmod=no
2310116844 fi
2311516858 fi
2311616859
2311716860 if test x_$withval = x_no; then
23118 { { echo "$as_me:$LINENO: error: Need SSL library to do digital signature cryptography" >&5
23119 echo "$as_me: error: Need SSL library to do digital signature cryptography" >&2;}
16861 { { $as_echo "$as_me:$LINENO: error: Need SSL library to do digital signature cryptography" >&5
16862 $as_echo "$as_me: error: Need SSL library to do digital signature cryptography" >&2;}
2312016863 { (exit 1); exit 1; }; }
2312116864 fi
2312216865 if test x_$withval != x_no; then
23123 { echo "$as_me:$LINENO: checking for SSL" >&5
23124 echo $ECHO_N "checking for SSL... $ECHO_C" >&6; }
16866 { $as_echo "$as_me:$LINENO: checking for SSL" >&5
16867 $as_echo_n "checking for SSL... " >&6; }
2312516868 if test x_$withval = x_ -o x_$withval = x_yes; then
2312616869 withval="/usr/local/ssl /usr/lib/ssl /usr/ssl /usr/pkg /usr/local /opt/local /usr/sfw /usr"
2312716870 fi
2313116874 found_ssl="yes"
2313216875
2313316876 cat >>confdefs.h <<_ACEOF
23134 #define HAVE_SSL
16877 #define HAVE_SSL /**/
2313516878 _ACEOF
2313616879
2313716880 if test "$ssldir" != "/usr"; then
2314116884 fi
2314216885 done
2314316886 if test x_$found_ssl != x_yes; then
23144 { { echo "$as_me:$LINENO: error: Cannot find the SSL libraries in $withval" >&5
23145 echo "$as_me: error: Cannot find the SSL libraries in $withval" >&2;}
16887 { { $as_echo "$as_me:$LINENO: error: Cannot find the SSL libraries in $withval" >&5
16888 $as_echo "$as_me: error: Cannot find the SSL libraries in $withval" >&2;}
2314616889 { (exit 1); exit 1; }; }
2314716890 else
23148 { echo "$as_me:$LINENO: result: found in $ssldir" >&5
23149 echo "${ECHO_T}found in $ssldir" >&6; }
16891 { $as_echo "$as_me:$LINENO: result: found in $ssldir" >&5
16892 $as_echo "found in $ssldir" >&6; }
2315016893 HAVE_SSL=yes
23151 if test "$ssldir" != "/usr"; then
16894 if test "$ssldir" != "/usr" -a "$ssldir" != ""; then
2315216895 LDFLAGS="$LDFLAGS -L$ssldir/lib"
2315316896
2315416897 if test "x$enable_rpath" = xyes; then
2315916902
2316016903 fi
2316116904
23162 { echo "$as_me:$LINENO: checking for HMAC_CTX_init in -lcrypto" >&5
23163 echo $ECHO_N "checking for HMAC_CTX_init in -lcrypto... $ECHO_C" >&6; }
16905 { $as_echo "$as_me:$LINENO: checking for HMAC_CTX_init in -lcrypto" >&5
16906 $as_echo_n "checking for HMAC_CTX_init in -lcrypto... " >&6; }
2316416907 LIBS="$LIBS -lcrypto"
2316516908 cat >conftest.$ac_ext <<_ACEOF
2316616909 /* confdefs.h. */
2318616929 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2318716930 *) ac_try_echo=$ac_try;;
2318816931 esac
23189 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16932 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16933 $as_echo "$ac_try_echo") >&5
2319016934 (eval "$ac_link") 2>conftest.er1
2319116935 ac_status=$?
2319216936 grep -v '^ *+' conftest.er1 >conftest.err
2319316937 rm -f conftest.er1
2319416938 cat conftest.err >&5
23195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16939 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2319616940 (exit $ac_status); } && {
2319716941 test -z "$ac_c_werror_flag" ||
2319816942 test ! -s conftest.err
23199 } && test -s conftest$ac_exeext &&
23200 $as_test_x conftest$ac_exeext; then
23201
23202 { echo "$as_me:$LINENO: result: yes" >&5
23203 echo "${ECHO_T}yes" >&6; }
16943 } && test -s conftest$ac_exeext && {
16944 test "$cross_compiling" = yes ||
16945 $as_test_x conftest$ac_exeext
16946 }; then
16947
16948 { $as_echo "$as_me:$LINENO: result: yes" >&5
16949 $as_echo "yes" >&6; }
2320416950
2320516951 cat >>confdefs.h <<\_ACEOF
2320616952 #define HAVE_HMAC_CTX_INIT 1
2320816954
2320916955
2321016956 else
23211 echo "$as_me: failed program was:" >&5
16957 $as_echo "$as_me: failed program was:" >&5
2321216958 sed 's/^/| /' conftest.$ac_ext >&5
2321316959
2321416960
23215 { echo "$as_me:$LINENO: result: no" >&5
23216 echo "${ECHO_T}no" >&6; }
16961 { $as_echo "$as_me:$LINENO: result: no" >&5
16962 $as_echo "no" >&6; }
2321716963 # check if -lwsock32 or -lgdi32 are needed.
2321816964 BAKLIBS="$LIBS"
2321916965 LIBS="$LIBS -lgdi32"
23220 { echo "$as_me:$LINENO: checking if -lcrypto needs -lgdi32" >&5
23221 echo $ECHO_N "checking if -lcrypto needs -lgdi32... $ECHO_C" >&6; }
16966 { $as_echo "$as_me:$LINENO: checking if -lcrypto needs -lgdi32" >&5
16967 $as_echo_n "checking if -lcrypto needs -lgdi32... " >&6; }
2322216968 cat >conftest.$ac_ext <<_ACEOF
2322316969 /* confdefs.h. */
2322416970 _ACEOF
2324316989 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2324416990 *) ac_try_echo=$ac_try;;
2324516991 esac
23246 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16992 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16993 $as_echo "$ac_try_echo") >&5
2324716994 (eval "$ac_link") 2>conftest.er1
2324816995 ac_status=$?
2324916996 grep -v '^ *+' conftest.er1 >conftest.err
2325016997 rm -f conftest.er1
2325116998 cat conftest.err >&5
23252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16999 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2325317000 (exit $ac_status); } && {
2325417001 test -z "$ac_c_werror_flag" ||
2325517002 test ! -s conftest.err
23256 } && test -s conftest$ac_exeext &&
23257 $as_test_x conftest$ac_exeext; then
17003 } && test -s conftest$ac_exeext && {
17004 test "$cross_compiling" = yes ||
17005 $as_test_x conftest$ac_exeext
17006 }; then
2325817007
2325917008
2326017009 cat >>confdefs.h <<\_ACEOF
2326117010 #define HAVE_HMAC_CTX_INIT 1
2326217011 _ACEOF
2326317012
23264 { echo "$as_me:$LINENO: result: yes" >&5
23265 echo "${ECHO_T}yes" >&6; }
23266
23267 else
23268 echo "$as_me: failed program was:" >&5
17013 { $as_echo "$as_me:$LINENO: result: yes" >&5
17014 $as_echo "yes" >&6; }
17015
17016 else
17017 $as_echo "$as_me: failed program was:" >&5
2326917018 sed 's/^/| /' conftest.$ac_ext >&5
2327017019
2327117020
23272 { echo "$as_me:$LINENO: result: no" >&5
23273 echo "${ECHO_T}no" >&6; }
17021 { $as_echo "$as_me:$LINENO: result: no" >&5
17022 $as_echo "no" >&6; }
2327417023 LIBS="$BAKLIBS"
2327517024 LIBS="$LIBS -ldl"
23276 { echo "$as_me:$LINENO: checking if -lcrypto needs -ldl" >&5
23277 echo $ECHO_N "checking if -lcrypto needs -ldl... $ECHO_C" >&6; }
17025 { $as_echo "$as_me:$LINENO: checking if -lcrypto needs -ldl" >&5
17026 $as_echo_n "checking if -lcrypto needs -ldl... " >&6; }
2327817027 cat >conftest.$ac_ext <<_ACEOF
2327917028 /* confdefs.h. */
2328017029 _ACEOF
2329917048 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2330017049 *) ac_try_echo=$ac_try;;
2330117050 esac
23302 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17051 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17052 $as_echo "$ac_try_echo") >&5
2330317053 (eval "$ac_link") 2>conftest.er1
2330417054 ac_status=$?
2330517055 grep -v '^ *+' conftest.er1 >conftest.err
2330617056 rm -f conftest.er1
2330717057 cat conftest.err >&5
23308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17058 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2330917059 (exit $ac_status); } && {
2331017060 test -z "$ac_c_werror_flag" ||
2331117061 test ! -s conftest.err
23312 } && test -s conftest$ac_exeext &&
23313 $as_test_x conftest$ac_exeext; then
17062 } && test -s conftest$ac_exeext && {
17063 test "$cross_compiling" = yes ||
17064 $as_test_x conftest$ac_exeext
17065 }; then
2331417066
2331517067
2331617068 cat >>confdefs.h <<\_ACEOF
2331717069 #define HAVE_HMAC_CTX_INIT 1
2331817070 _ACEOF
2331917071
23320 { echo "$as_me:$LINENO: result: yes" >&5
23321 echo "${ECHO_T}yes" >&6; }
23322
23323 else
23324 echo "$as_me: failed program was:" >&5
17072 { $as_echo "$as_me:$LINENO: result: yes" >&5
17073 $as_echo "yes" >&6; }
17074
17075 else
17076 $as_echo "$as_me: failed program was:" >&5
2332517077 sed 's/^/| /' conftest.$ac_ext >&5
2332617078
2332717079
23328 { echo "$as_me:$LINENO: result: no" >&5
23329 echo "${ECHO_T}no" >&6; }
23330 { { echo "$as_me:$LINENO: error: OpenSSL found in $ssldir, but version 0.9.7 or higher is required" >&5
23331 echo "$as_me: error: OpenSSL found in $ssldir, but version 0.9.7 or higher is required" >&2;}
17080 { $as_echo "$as_me:$LINENO: result: no" >&5
17081 $as_echo "no" >&6; }
17082 { { $as_echo "$as_me:$LINENO: error: OpenSSL found in $ssldir, but version 0.9.7 or higher is required" >&5
17083 $as_echo "$as_me: error: OpenSSL found in $ssldir, but version 0.9.7 or higher is required" >&2;}
2333217084 { (exit 1); exit 1; }; }
2333317085
2333417086 fi
2333517087
17088 rm -rf conftest.dSYM
2333617089 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
2333717090 conftest$ac_exeext conftest.$ac_ext
2333817091
2333917092 fi
2334017093
17094 rm -rf conftest.dSYM
2334117095 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
2334217096 conftest$ac_exeext conftest.$ac_ext
2334317097
2334417098 fi
2334517099
17100 rm -rf conftest.dSYM
2334617101 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
2334717102 conftest$ac_exeext conftest.$ac_ext
2334817103 fi
2335217107
2335317108 for ac_header in openssl/ssl.h
2335417109 do
23355 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
23356 { echo "$as_me:$LINENO: checking for $ac_header" >&5
23357 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
17110 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
17111 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
17112 $as_echo_n "checking for $ac_header... " >&6; }
2335817113 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23359 echo $ECHO_N "(cached) $ECHO_C" >&6
17114 $as_echo_n "(cached) " >&6
2336017115 else
2336117116 cat >conftest.$ac_ext <<_ACEOF
2336217117 /* confdefs.h. */
2337417129 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2337517130 *) ac_try_echo=$ac_try;;
2337617131 esac
23377 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17132 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17133 $as_echo "$ac_try_echo") >&5
2337817134 (eval "$ac_compile") 2>conftest.er1
2337917135 ac_status=$?
2338017136 grep -v '^ *+' conftest.er1 >conftest.err
2338117137 rm -f conftest.er1
2338217138 cat conftest.err >&5
23383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17139 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2338417140 (exit $ac_status); } && {
2338517141 test -z "$ac_c_werror_flag" ||
2338617142 test ! -s conftest.err
2338717143 } && test -s conftest.$ac_objext; then
2338817144 eval "$as_ac_Header=yes"
2338917145 else
23390 echo "$as_me: failed program was:" >&5
17146 $as_echo "$as_me: failed program was:" >&5
2339117147 sed 's/^/| /' conftest.$ac_ext >&5
2339217148
2339317149 eval "$as_ac_Header=no"
2339517151
2339617152 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2339717153 fi
23398 ac_res=`eval echo '${'$as_ac_Header'}'`
23399 { echo "$as_me:$LINENO: result: $ac_res" >&5
23400 echo "${ECHO_T}$ac_res" >&6; }
23401 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17154 ac_res=`eval 'as_val=${'$as_ac_Header'}
17155 $as_echo "$as_val"'`
17156 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
17157 $as_echo "$ac_res" >&6; }
17158 as_val=`eval 'as_val=${'$as_ac_Header'}
17159 $as_echo "$as_val"'`
17160 if test "x$as_val" = x""yes; then
2340217161 cat >>confdefs.h <<_ACEOF
23403 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17162 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
2340417163 _ACEOF
2340517164
2340617165 fi
2341017169
2341117170 for ac_header in openssl/err.h
2341217171 do
23413 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
23414 { echo "$as_me:$LINENO: checking for $ac_header" >&5
23415 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
17172 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
17173 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
17174 $as_echo_n "checking for $ac_header... " >&6; }
2341617175 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23417 echo $ECHO_N "(cached) $ECHO_C" >&6
17176 $as_echo_n "(cached) " >&6
2341817177 else
2341917178 cat >conftest.$ac_ext <<_ACEOF
2342017179 /* confdefs.h. */
2343217191 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2343317192 *) ac_try_echo=$ac_try;;
2343417193 esac
23435 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17194 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17195 $as_echo "$ac_try_echo") >&5
2343617196 (eval "$ac_compile") 2>conftest.er1
2343717197 ac_status=$?
2343817198 grep -v '^ *+' conftest.er1 >conftest.err
2343917199 rm -f conftest.er1
2344017200 cat conftest.err >&5
23441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17201 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2344217202 (exit $ac_status); } && {
2344317203 test -z "$ac_c_werror_flag" ||
2344417204 test ! -s conftest.err
2344517205 } && test -s conftest.$ac_objext; then
2344617206 eval "$as_ac_Header=yes"
2344717207 else
23448 echo "$as_me: failed program was:" >&5
17208 $as_echo "$as_me: failed program was:" >&5
2344917209 sed 's/^/| /' conftest.$ac_ext >&5
2345017210
2345117211 eval "$as_ac_Header=no"
2345317213
2345417214 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2345517215 fi
23456 ac_res=`eval echo '${'$as_ac_Header'}'`
23457 { echo "$as_me:$LINENO: result: $ac_res" >&5
23458 echo "${ECHO_T}$ac_res" >&6; }
23459 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17216 ac_res=`eval 'as_val=${'$as_ac_Header'}
17217 $as_echo "$as_val"'`
17218 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
17219 $as_echo "$ac_res" >&6; }
17220 as_val=`eval 'as_val=${'$as_ac_Header'}
17221 $as_echo "$as_val"'`
17222 if test "x$as_val" = x""yes; then
2346017223 cat >>confdefs.h <<_ACEOF
23461 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17224 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
2346217225 _ACEOF
2346317226
2346417227 fi
2346817231
2346917232 for ac_header in openssl/rand.h
2347017233 do
23471 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
23472 { echo "$as_me:$LINENO: checking for $ac_header" >&5
23473 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
17234 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
17235 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
17236 $as_echo_n "checking for $ac_header... " >&6; }
2347417237 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23475 echo $ECHO_N "(cached) $ECHO_C" >&6
17238 $as_echo_n "(cached) " >&6
2347617239 else
2347717240 cat >conftest.$ac_ext <<_ACEOF
2347817241 /* confdefs.h. */
2349017253 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2349117254 *) ac_try_echo=$ac_try;;
2349217255 esac
23493 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17256 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17257 $as_echo "$ac_try_echo") >&5
2349417258 (eval "$ac_compile") 2>conftest.er1
2349517259 ac_status=$?
2349617260 grep -v '^ *+' conftest.er1 >conftest.err
2349717261 rm -f conftest.er1
2349817262 cat conftest.err >&5
23499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17263 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2350017264 (exit $ac_status); } && {
2350117265 test -z "$ac_c_werror_flag" ||
2350217266 test ! -s conftest.err
2350317267 } && test -s conftest.$ac_objext; then
2350417268 eval "$as_ac_Header=yes"
2350517269 else
23506 echo "$as_me: failed program was:" >&5
17270 $as_echo "$as_me: failed program was:" >&5
2350717271 sed 's/^/| /' conftest.$ac_ext >&5
2350817272
2350917273 eval "$as_ac_Header=no"
2351117275
2351217276 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2351317277 fi
23514 ac_res=`eval echo '${'$as_ac_Header'}'`
23515 { echo "$as_me:$LINENO: result: $ac_res" >&5
23516 echo "${ECHO_T}$ac_res" >&6; }
23517 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17278 ac_res=`eval 'as_val=${'$as_ac_Header'}
17279 $as_echo "$as_val"'`
17280 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
17281 $as_echo "$ac_res" >&6; }
17282 as_val=`eval 'as_val=${'$as_ac_Header'}
17283 $as_echo "$as_val"'`
17284 if test "x$as_val" = x""yes; then
2351817285 cat >>confdefs.h <<_ACEOF
23519 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17286 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
2352017287 _ACEOF
2352117288
2352217289 fi
2352817295 # check if libssl needs libdl
2352917296 BAKLIBS="$LIBS"
2353017297 LIBS="-lssl $LIBS"
23531 { echo "$as_me:$LINENO: checking if libssl needs libdl" >&5
23532 echo $ECHO_N "checking if libssl needs libdl... $ECHO_C" >&6; }
17298 { $as_echo "$as_me:$LINENO: checking if libssl needs libdl" >&5
17299 $as_echo_n "checking if libssl needs libdl... " >&6; }
2353317300 cat >conftest.$ac_ext <<_ACEOF
2353417301 /* confdefs.h. */
2353517302 _ACEOF
2355817325 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2355917326 *) ac_try_echo=$ac_try;;
2356017327 esac
23561 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17328 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17329 $as_echo "$ac_try_echo") >&5
2356217330 (eval "$ac_link") 2>conftest.er1
2356317331 ac_status=$?
2356417332 grep -v '^ *+' conftest.er1 >conftest.err
2356517333 rm -f conftest.er1
2356617334 cat conftest.err >&5
23567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17335 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2356817336 (exit $ac_status); } && {
2356917337 test -z "$ac_c_werror_flag" ||
2357017338 test ! -s conftest.err
23571 } && test -s conftest$ac_exeext &&
23572 $as_test_x conftest$ac_exeext; then
23573
23574 { echo "$as_me:$LINENO: result: no" >&5
23575 echo "${ECHO_T}no" >&6; }
17339 } && test -s conftest$ac_exeext && {
17340 test "$cross_compiling" = yes ||
17341 $as_test_x conftest$ac_exeext
17342 }; then
17343
17344 { $as_echo "$as_me:$LINENO: result: no" >&5
17345 $as_echo "no" >&6; }
2357617346 LIBS="$BAKLIBS"
2357717347
2357817348 else
23579 echo "$as_me: failed program was:" >&5
17349 $as_echo "$as_me: failed program was:" >&5
2358017350 sed 's/^/| /' conftest.$ac_ext >&5
2358117351
2358217352
23583 { echo "$as_me:$LINENO: result: yes" >&5
23584 echo "${ECHO_T}yes" >&6; }
17353 { $as_echo "$as_me:$LINENO: result: yes" >&5
17354 $as_echo "yes" >&6; }
2358517355 LIBS="$BAKLIBS"
23586 { echo "$as_me:$LINENO: checking for library containing dlopen" >&5
23587 echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; }
17356 { $as_echo "$as_me:$LINENO: checking for library containing dlopen" >&5
17357 $as_echo_n "checking for library containing dlopen... " >&6; }
2358817358 if test "${ac_cv_search_dlopen+set}" = set; then
23589 echo $ECHO_N "(cached) $ECHO_C" >&6
17359 $as_echo_n "(cached) " >&6
2359017360 else
2359117361 ac_func_search_save_LIBS=$LIBS
2359217362 cat >conftest.$ac_ext <<_ACEOF
2362417394 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2362517395 *) ac_try_echo=$ac_try;;
2362617396 esac
23627 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17397 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17398 $as_echo "$ac_try_echo") >&5
2362817399 (eval "$ac_link") 2>conftest.er1
2362917400 ac_status=$?
2363017401 grep -v '^ *+' conftest.er1 >conftest.err
2363117402 rm -f conftest.er1
2363217403 cat conftest.err >&5
23633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17404 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2363417405 (exit $ac_status); } && {
2363517406 test -z "$ac_c_werror_flag" ||
2363617407 test ! -s conftest.err
23637 } && test -s conftest$ac_exeext &&
23638 $as_test_x conftest$ac_exeext; then
17408 } && test -s conftest$ac_exeext && {
17409 test "$cross_compiling" = yes ||
17410 $as_test_x conftest$ac_exeext
17411 }; then
2363917412 ac_cv_search_dlopen=$ac_res
2364017413 else
23641 echo "$as_me: failed program was:" >&5
17414 $as_echo "$as_me: failed program was:" >&5
2364217415 sed 's/^/| /' conftest.$ac_ext >&5
2364317416
2364417417
2364517418 fi
2364617419
17420 rm -rf conftest.dSYM
2364717421 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
2364817422 conftest$ac_exeext
2364917423 if test "${ac_cv_search_dlopen+set}" = set; then
2365817432 rm conftest.$ac_ext
2365917433 LIBS=$ac_func_search_save_LIBS
2366017434 fi
23661 { echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
23662 echo "${ECHO_T}$ac_cv_search_dlopen" >&6; }
17435 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
17436 $as_echo "$ac_cv_search_dlopen" >&6; }
2366317437 ac_res=$ac_cv_search_dlopen
2366417438 if test "$ac_res" != no; then
2366517439 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
2366917443
2367017444 fi
2367117445
17446 rm -rf conftest.dSYM
2367217447 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
2367317448 conftest$ac_exeext conftest.$ac_ext
2367417449
2367717452
2367817453 for ac_func in EVP_sha1 EVP_sha256 EVP_sha512 ENGINE_load_gost
2367917454 do
23680 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
23681 { echo "$as_me:$LINENO: checking for $ac_func" >&5
23682 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17455 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
17456 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
17457 $as_echo_n "checking for $ac_func... " >&6; }
2368317458 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
23684 echo $ECHO_N "(cached) $ECHO_C" >&6
17459 $as_echo_n "(cached) " >&6
2368517460 else
2368617461 cat >conftest.$ac_ext <<_ACEOF
2368717462 /* confdefs.h. */
2373417509 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2373517510 *) ac_try_echo=$ac_try;;
2373617511 esac
23737 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17512 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17513 $as_echo "$ac_try_echo") >&5
2373817514 (eval "$ac_link") 2>conftest.er1
2373917515 ac_status=$?
2374017516 grep -v '^ *+' conftest.er1 >conftest.err
2374117517 rm -f conftest.er1
2374217518 cat conftest.err >&5
23743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17519 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2374417520 (exit $ac_status); } && {
2374517521 test -z "$ac_c_werror_flag" ||
2374617522 test ! -s conftest.err
23747 } && test -s conftest$ac_exeext &&
23748 $as_test_x conftest$ac_exeext; then
17523 } && test -s conftest$ac_exeext && {
17524 test "$cross_compiling" = yes ||
17525 $as_test_x conftest$ac_exeext
17526 }; then
2374917527 eval "$as_ac_var=yes"
2375017528 else
23751 echo "$as_me: failed program was:" >&5
17529 $as_echo "$as_me: failed program was:" >&5
2375217530 sed 's/^/| /' conftest.$ac_ext >&5
2375317531
2375417532 eval "$as_ac_var=no"
2375517533 fi
2375617534
17535 rm -rf conftest.dSYM
2375717536 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
2375817537 conftest$ac_exeext conftest.$ac_ext
2375917538 fi
23760 ac_res=`eval echo '${'$as_ac_var'}'`
23761 { echo "$as_me:$LINENO: result: $ac_res" >&5
23762 echo "${ECHO_T}$ac_res" >&6; }
23763 if test `eval echo '${'$as_ac_var'}'` = yes; then
17539 ac_res=`eval 'as_val=${'$as_ac_var'}
17540 $as_echo "$as_val"'`
17541 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
17542 $as_echo "$ac_res" >&6; }
17543 as_val=`eval 'as_val=${'$as_ac_var'}
17544 $as_echo "$as_val"'`
17545 if test "x$as_val" = x""yes; then
2376417546 cat >>confdefs.h <<_ACEOF
23765 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17547 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
2376617548 _ACEOF
2376717549
2376817550 fi
2377817560 yes)
2377917561
2378017562 cat >>confdefs.h <<_ACEOF
23781 #define USE_SHA2
17563 #define USE_SHA2 /**/
2378217564 _ACEOF
2378317565
2378417566 ;;
2378717569 esac
2378817570
2378917571 # check to see if libraries are needed for these functions.
23790 { echo "$as_me:$LINENO: checking for library containing inet_pton" >&5
23791 echo $ECHO_N "checking for library containing inet_pton... $ECHO_C" >&6; }
17572 { $as_echo "$as_me:$LINENO: checking for library containing inet_pton" >&5
17573 $as_echo_n "checking for library containing inet_pton... " >&6; }
2379217574 if test "${ac_cv_search_inet_pton+set}" = set; then
23793 echo $ECHO_N "(cached) $ECHO_C" >&6
17575 $as_echo_n "(cached) " >&6
2379417576 else
2379517577 ac_func_search_save_LIBS=$LIBS
2379617578 cat >conftest.$ac_ext <<_ACEOF
2382817610 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2382917611 *) ac_try_echo=$ac_try;;
2383017612 esac
23831 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17613 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17614 $as_echo "$ac_try_echo") >&5
2383217615 (eval "$ac_link") 2>conftest.er1
2383317616 ac_status=$?
2383417617 grep -v '^ *+' conftest.er1 >conftest.err
2383517618 rm -f conftest.er1
2383617619 cat conftest.err >&5
23837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17620 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2383817621 (exit $ac_status); } && {
2383917622 test -z "$ac_c_werror_flag" ||
2384017623 test ! -s conftest.err
23841 } && test -s conftest$ac_exeext &&
23842 $as_test_x conftest$ac_exeext; then
17624 } && test -s conftest$ac_exeext && {
17625 test "$cross_compiling" = yes ||
17626 $as_test_x conftest$ac_exeext
17627 }; then
2384317628 ac_cv_search_inet_pton=$ac_res
2384417629 else
23845 echo "$as_me: failed program was:" >&5
17630 $as_echo "$as_me: failed program was:" >&5
2384617631 sed 's/^/| /' conftest.$ac_ext >&5
2384717632
2384817633
2384917634 fi
2385017635
17636 rm -rf conftest.dSYM
2385117637 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
2385217638 conftest$ac_exeext
2385317639 if test "${ac_cv_search_inet_pton+set}" = set; then
2386217648 rm conftest.$ac_ext
2386317649 LIBS=$ac_func_search_save_LIBS
2386417650 fi
23865 { echo "$as_me:$LINENO: result: $ac_cv_search_inet_pton" >&5
23866 echo "${ECHO_T}$ac_cv_search_inet_pton" >&6; }
17651 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_inet_pton" >&5
17652 $as_echo "$ac_cv_search_inet_pton" >&6; }
2386717653 ac_res=$ac_cv_search_inet_pton
2386817654 if test "$ac_res" != no; then
2386917655 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
2387017656
2387117657 fi
2387217658
23873 { echo "$as_me:$LINENO: checking for library containing socket" >&5
23874 echo $ECHO_N "checking for library containing socket... $ECHO_C" >&6; }
17659 { $as_echo "$as_me:$LINENO: checking for library containing socket" >&5
17660 $as_echo_n "checking for library containing socket... " >&6; }
2387517661 if test "${ac_cv_search_socket+set}" = set; then
23876 echo $ECHO_N "(cached) $ECHO_C" >&6
17662 $as_echo_n "(cached) " >&6
2387717663 else
2387817664 ac_func_search_save_LIBS=$LIBS
2387917665 cat >conftest.$ac_ext <<_ACEOF
2391117697 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2391217698 *) ac_try_echo=$ac_try;;
2391317699 esac
23914 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17700 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17701 $as_echo "$ac_try_echo") >&5
2391517702 (eval "$ac_link") 2>conftest.er1
2391617703 ac_status=$?
2391717704 grep -v '^ *+' conftest.er1 >conftest.err
2391817705 rm -f conftest.er1
2391917706 cat conftest.err >&5
23920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17707 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2392117708 (exit $ac_status); } && {
2392217709 test -z "$ac_c_werror_flag" ||
2392317710 test ! -s conftest.err
23924 } && test -s conftest$ac_exeext &&
23925 $as_test_x conftest$ac_exeext; then
17711 } && test -s conftest$ac_exeext && {
17712 test "$cross_compiling" = yes ||
17713 $as_test_x conftest$ac_exeext
17714 }; then
2392617715 ac_cv_search_socket=$ac_res
2392717716 else
23928 echo "$as_me: failed program was:" >&5
17717 $as_echo "$as_me: failed program was:" >&5
2392917718 sed 's/^/| /' conftest.$ac_ext >&5
2393017719
2393117720
2393217721 fi
2393317722
17723 rm -rf conftest.dSYM
2393417724 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
2393517725 conftest$ac_exeext
2393617726 if test "${ac_cv_search_socket+set}" = set; then
2394517735 rm conftest.$ac_ext
2394617736 LIBS=$ac_func_search_save_LIBS
2394717737 fi
23948 { echo "$as_me:$LINENO: result: $ac_cv_search_socket" >&5
23949 echo "${ECHO_T}$ac_cv_search_socket" >&6; }
17738 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_socket" >&5
17739 $as_echo "$ac_cv_search_socket" >&6; }
2395017740 ac_res=$ac_cv_search_socket
2395117741 if test "$ac_res" != no; then
2395217742 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
2396617756 fi
2396717757
2396817758 if test x_$withval = x_yes -o x_$withval != x_no; then
23969 { echo "$as_me:$LINENO: checking for libevent" >&5
23970 echo $ECHO_N "checking for libevent... $ECHO_C" >&6; }
17759 { $as_echo "$as_me:$LINENO: checking for libevent" >&5
17760 $as_echo_n "checking for libevent... " >&6; }
2397117761 if test x_$withval = x_ -o x_$withval = x_yes; then
2397217762 withval="/usr/local /opt/local /usr/lib /usr/pkg /usr/sfw /usr"
2397317763 fi
2398417774 if test x_$found_libevent != x_yes; then
2398517775 if test -f "$dir/event.h" -a \( -f "$dir/libevent.la" -o -f "$dir/libev.la" \) ; then
2398617776 # libevent source directory
23987 { echo "$as_me:$LINENO: result: found in $thedir" >&5
23988 echo "${ECHO_T}found in $thedir" >&6; }
17777 { $as_echo "$as_me:$LINENO: result: found in $thedir" >&5
17778 $as_echo "found in $thedir" >&6; }
2398917779 CPPFLAGS="$CPPFLAGS -I$thedir -I$thedir/include"
2399017780 BAK_LDFLAGS_SET="1"
2399117781 BAK_LDFLAGS="$LDFLAGS"
2400217792 LATE_LDFLAGS="build/libevent/*.lo -lm"
2400317793 LDFLAGS="build/libevent/*.o $LDFLAGS -lm"
2400417794 else
24005 { { echo "$as_me:$LINENO: error: Cannot find the libevent library in $withval
17795 { { $as_echo "$as_me:$LINENO: error: Cannot find the libevent library in $withval
2400617796 You can restart ./configure --with-libevent=no to use a builtin alternative.
2400717797 Please note that this alternative is not as capable as libevent when using
2400817798 large outgoing port ranges. " >&5
24009 echo "$as_me: error: Cannot find the libevent library in $withval
17799 $as_echo "$as_me: error: Cannot find the libevent library in $withval
2401017800 You can restart ./configure --with-libevent=no to use a builtin alternative.
2401117801 Please note that this alternative is not as capable as libevent when using
2401217802 large outgoing port ranges. " >&2;}
2401317803 { (exit 1); exit 1; }; }
2401417804 fi
2401517805 else
24016 { echo "$as_me:$LINENO: result: found in $thedir" >&5
24017 echo "${ECHO_T}found in $thedir" >&6; }
24018 if test "$thedir" != "/usr"; then
17806 { $as_echo "$as_me:$LINENO: result: found in $thedir" >&5
17807 $as_echo "found in $thedir" >&6; }
17808 if test "$thedir" != "/usr" -a "$thedir" != ""; then
2401917809 LDFLAGS="$LDFLAGS -L$thedir/lib"
2402017810
2402117811 if test "x$enable_rpath" = xyes; then
2402717817 fi
2402817818 fi
2402917819 # check for library used by libevent after 1.3c
24030 { echo "$as_me:$LINENO: checking for library containing clock_gettime" >&5
24031 echo $ECHO_N "checking for library containing clock_gettime... $ECHO_C" >&6; }
17820 { $as_echo "$as_me:$LINENO: checking for library containing clock_gettime" >&5
17821 $as_echo_n "checking for library containing clock_gettime... " >&6; }
2403217822 if test "${ac_cv_search_clock_gettime+set}" = set; then
24033 echo $ECHO_N "(cached) $ECHO_C" >&6
17823 $as_echo_n "(cached) " >&6
2403417824 else
2403517825 ac_func_search_save_LIBS=$LIBS
2403617826 cat >conftest.$ac_ext <<_ACEOF
2406817858 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2406917859 *) ac_try_echo=$ac_try;;
2407017860 esac
24071 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17861 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17862 $as_echo "$ac_try_echo") >&5
2407217863 (eval "$ac_link") 2>conftest.er1
2407317864 ac_status=$?
2407417865 grep -v '^ *+' conftest.er1 >conftest.err
2407517866 rm -f conftest.er1
2407617867 cat conftest.err >&5
24077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17868 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2407817869 (exit $ac_status); } && {
2407917870 test -z "$ac_c_werror_flag" ||
2408017871 test ! -s conftest.err
24081 } && test -s conftest$ac_exeext &&
24082 $as_test_x conftest$ac_exeext; then
17872 } && test -s conftest$ac_exeext && {
17873 test "$cross_compiling" = yes ||
17874 $as_test_x conftest$ac_exeext
17875 }; then
2408317876 ac_cv_search_clock_gettime=$ac_res
2408417877 else
24085 echo "$as_me: failed program was:" >&5
17878 $as_echo "$as_me: failed program was:" >&5
2408617879 sed 's/^/| /' conftest.$ac_ext >&5
2408717880
2408817881
2408917882 fi
2409017883
17884 rm -rf conftest.dSYM
2409117885 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
2409217886 conftest$ac_exeext
2409317887 if test "${ac_cv_search_clock_gettime+set}" = set; then
2410217896 rm conftest.$ac_ext
2410317897 LIBS=$ac_func_search_save_LIBS
2410417898 fi
24105 { echo "$as_me:$LINENO: result: $ac_cv_search_clock_gettime" >&5
24106 echo "${ECHO_T}$ac_cv_search_clock_gettime" >&6; }
17899 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_clock_gettime" >&5
17900 $as_echo "$ac_cv_search_clock_gettime" >&6; }
2410717901 ac_res=$ac_cv_search_clock_gettime
2410817902 if test "$ac_res" != no; then
2410917903 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
2411117905 fi
2411217906
2411317907
24114 { echo "$as_me:$LINENO: checking for library containing event_set" >&5
24115 echo $ECHO_N "checking for library containing event_set... $ECHO_C" >&6; }
17908 { $as_echo "$as_me:$LINENO: checking for library containing event_set" >&5
17909 $as_echo_n "checking for library containing event_set... " >&6; }
2411617910 if test "${ac_cv_search_event_set+set}" = set; then
24117 echo $ECHO_N "(cached) $ECHO_C" >&6
17911 $as_echo_n "(cached) " >&6
2411817912 else
2411917913 ac_func_search_save_LIBS=$LIBS
2412017914 cat >conftest.$ac_ext <<_ACEOF
2415217946 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2415317947 *) ac_try_echo=$ac_try;;
2415417948 esac
24155 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17949 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17950 $as_echo "$ac_try_echo") >&5
2415617951 (eval "$ac_link") 2>conftest.er1
2415717952 ac_status=$?
2415817953 grep -v '^ *+' conftest.er1 >conftest.err
2415917954 rm -f conftest.er1
2416017955 cat conftest.err >&5
24161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17956 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2416217957 (exit $ac_status); } && {
2416317958 test -z "$ac_c_werror_flag" ||
2416417959 test ! -s conftest.err
24165 } && test -s conftest$ac_exeext &&
24166 $as_test_x conftest$ac_exeext; then
17960 } && test -s conftest$ac_exeext && {
17961 test "$cross_compiling" = yes ||
17962 $as_test_x conftest$ac_exeext
17963 }; then
2416717964 ac_cv_search_event_set=$ac_res
2416817965 else
24169 echo "$as_me: failed program was:" >&5
17966 $as_echo "$as_me: failed program was:" >&5
2417017967 sed 's/^/| /' conftest.$ac_ext >&5
2417117968
2417217969
2417317970 fi
2417417971
17972 rm -rf conftest.dSYM
2417517973 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
2417617974 conftest$ac_exeext
2417717975 if test "${ac_cv_search_event_set+set}" = set; then
2418617984 rm conftest.$ac_ext
2418717985 LIBS=$ac_func_search_save_LIBS
2418817986 fi
24189 { echo "$as_me:$LINENO: result: $ac_cv_search_event_set" >&5
24190 echo "${ECHO_T}$ac_cv_search_event_set" >&6; }
17987 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_event_set" >&5
17988 $as_echo "$ac_cv_search_event_set" >&6; }
2419117989 ac_res=$ac_cv_search_event_set
2419217990 if test "$ac_res" != no; then
2419317991 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
2419717995
2419817996 for ac_header in event.h
2419917997 do
24200 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
24201 { echo "$as_me:$LINENO: checking for $ac_header" >&5
24202 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
17998 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
17999 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
18000 $as_echo_n "checking for $ac_header... " >&6; }
2420318001 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24204 echo $ECHO_N "(cached) $ECHO_C" >&6
18002 $as_echo_n "(cached) " >&6
2420518003 else
2420618004 cat >conftest.$ac_ext <<_ACEOF
2420718005 /* confdefs.h. */
2421918017 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2422018018 *) ac_try_echo=$ac_try;;
2422118019 esac
24222 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18020 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18021 $as_echo "$ac_try_echo") >&5
2422318022 (eval "$ac_compile") 2>conftest.er1
2422418023 ac_status=$?
2422518024 grep -v '^ *+' conftest.er1 >conftest.err
2422618025 rm -f conftest.er1
2422718026 cat conftest.err >&5
24228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18027 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2422918028 (exit $ac_status); } && {
2423018029 test -z "$ac_c_werror_flag" ||
2423118030 test ! -s conftest.err
2423218031 } && test -s conftest.$ac_objext; then
2423318032 eval "$as_ac_Header=yes"
2423418033 else
24235 echo "$as_me: failed program was:" >&5
18034 $as_echo "$as_me: failed program was:" >&5
2423618035 sed 's/^/| /' conftest.$ac_ext >&5
2423718036
2423818037 eval "$as_ac_Header=no"
2424018039
2424118040 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2424218041 fi
24243 ac_res=`eval echo '${'$as_ac_Header'}'`
24244 { echo "$as_me:$LINENO: result: $ac_res" >&5
24245 echo "${ECHO_T}$ac_res" >&6; }
24246 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18042 ac_res=`eval 'as_val=${'$as_ac_Header'}
18043 $as_echo "$as_val"'`
18044 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
18045 $as_echo "$ac_res" >&6; }
18046 as_val=`eval 'as_val=${'$as_ac_Header'}
18047 $as_echo "$as_val"'`
18048 if test "x$as_val" = x""yes; then
2424718049 cat >>confdefs.h <<_ACEOF
24248 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18050 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
2424918051 _ACEOF
2425018052
2425118053 fi
2425518057
2425618058 for ac_func in event_base_free
2425718059 do
24258 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24259 { echo "$as_me:$LINENO: checking for $ac_func" >&5
24260 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18060 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
18061 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
18062 $as_echo_n "checking for $ac_func... " >&6; }
2426118063 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
24262 echo $ECHO_N "(cached) $ECHO_C" >&6
18064 $as_echo_n "(cached) " >&6
2426318065 else
2426418066 cat >conftest.$ac_ext <<_ACEOF
2426518067 /* confdefs.h. */
2431218114 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2431318115 *) ac_try_echo=$ac_try;;
2431418116 esac
24315 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18117 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18118 $as_echo "$ac_try_echo") >&5
2431618119 (eval "$ac_link") 2>conftest.er1
2431718120 ac_status=$?
2431818121 grep -v '^ *+' conftest.er1 >conftest.err
2431918122 rm -f conftest.er1
2432018123 cat conftest.err >&5
24321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18124 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2432218125 (exit $ac_status); } && {
2432318126 test -z "$ac_c_werror_flag" ||
2432418127 test ! -s conftest.err
24325 } && test -s conftest$ac_exeext &&
24326 $as_test_x conftest$ac_exeext; then
18128 } && test -s conftest$ac_exeext && {
18129 test "$cross_compiling" = yes ||
18130 $as_test_x conftest$ac_exeext
18131 }; then
2432718132 eval "$as_ac_var=yes"
2432818133 else
24329 echo "$as_me: failed program was:" >&5
18134 $as_echo "$as_me: failed program was:" >&5
2433018135 sed 's/^/| /' conftest.$ac_ext >&5
2433118136
2433218137 eval "$as_ac_var=no"
2433318138 fi
2433418139
18140 rm -rf conftest.dSYM
2433518141 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
2433618142 conftest$ac_exeext conftest.$ac_ext
2433718143 fi
24338 ac_res=`eval echo '${'$as_ac_var'}'`
24339 { echo "$as_me:$LINENO: result: $ac_res" >&5
24340 echo "${ECHO_T}$ac_res" >&6; }
24341 if test `eval echo '${'$as_ac_var'}'` = yes; then
18144 ac_res=`eval 'as_val=${'$as_ac_var'}
18145 $as_echo "$as_val"'`
18146 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
18147 $as_echo "$ac_res" >&6; }
18148 as_val=`eval 'as_val=${'$as_ac_var'}
18149 $as_echo "$as_val"'`
18150 if test "x$as_val" = x""yes; then
2434218151 cat >>confdefs.h <<_ACEOF
24343 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18152 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
2434418153 _ACEOF
2434518154
2434618155 fi
2434918158
2435018159 for ac_func in event_base_once
2435118160 do
24352 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24353 { echo "$as_me:$LINENO: checking for $ac_func" >&5
24354 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18161 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
18162 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
18163 $as_echo_n "checking for $ac_func... " >&6; }
2435518164 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
24356 echo $ECHO_N "(cached) $ECHO_C" >&6
18165 $as_echo_n "(cached) " >&6
2435718166 else
2435818167 cat >conftest.$ac_ext <<_ACEOF
2435918168 /* confdefs.h. */
2440618215 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2440718216 *) ac_try_echo=$ac_try;;
2440818217 esac
24409 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18218 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18219 $as_echo "$ac_try_echo") >&5
2441018220 (eval "$ac_link") 2>conftest.er1
2441118221 ac_status=$?
2441218222 grep -v '^ *+' conftest.er1 >conftest.err
2441318223 rm -f conftest.er1
2441418224 cat conftest.err >&5
24415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18225 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2441618226 (exit $ac_status); } && {
2441718227 test -z "$ac_c_werror_flag" ||
2441818228 test ! -s conftest.err
24419 } && test -s conftest$ac_exeext &&
24420 $as_test_x conftest$ac_exeext; then
18229 } && test -s conftest$ac_exeext && {
18230 test "$cross_compiling" = yes ||
18231 $as_test_x conftest$ac_exeext
18232 }; then
2442118233 eval "$as_ac_var=yes"
2442218234 else
24423 echo "$as_me: failed program was:" >&5
18235 $as_echo "$as_me: failed program was:" >&5
2442418236 sed 's/^/| /' conftest.$ac_ext >&5
2442518237
2442618238 eval "$as_ac_var=no"
2442718239 fi
2442818240
18241 rm -rf conftest.dSYM
2442918242 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
2443018243 conftest$ac_exeext conftest.$ac_ext
2443118244 fi
24432 ac_res=`eval echo '${'$as_ac_var'}'`
24433 { echo "$as_me:$LINENO: result: $ac_res" >&5
24434 echo "${ECHO_T}$ac_res" >&6; }
24435 if test `eval echo '${'$as_ac_var'}'` = yes; then
18245 ac_res=`eval 'as_val=${'$as_ac_var'}
18246 $as_echo "$as_val"'`
18247 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
18248 $as_echo "$ac_res" >&6; }
18249 as_val=`eval 'as_val=${'$as_ac_var'}
18250 $as_echo "$as_val"'`
18251 if test "x$as_val" = x""yes; then
2443618252 cat >>confdefs.h <<_ACEOF
24437 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18253 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
2443818254 _ACEOF
2443918255
2444018256 fi
2444318259
2444418260 for ac_func in event_base_new
2444518261 do
24446 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24447 { echo "$as_me:$LINENO: checking for $ac_func" >&5
24448 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18262 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
18263 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
18264 $as_echo_n "checking for $ac_func... " >&6; }
2444918265 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
24450 echo $ECHO_N "(cached) $ECHO_C" >&6
18266 $as_echo_n "(cached) " >&6
2445118267 else
2445218268 cat >conftest.$ac_ext <<_ACEOF
2445318269 /* confdefs.h. */
2450018316 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2450118317 *) ac_try_echo=$ac_try;;
2450218318 esac
24503 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18319 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18320 $as_echo "$ac_try_echo") >&5
2450418321 (eval "$ac_link") 2>conftest.er1
2450518322 ac_status=$?
2450618323 grep -v '^ *+' conftest.er1 >conftest.err
2450718324 rm -f conftest.er1
2450818325 cat conftest.err >&5
24509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18326 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2451018327 (exit $ac_status); } && {
2451118328 test -z "$ac_c_werror_flag" ||
2451218329 test ! -s conftest.err
24513 } && test -s conftest$ac_exeext &&
24514 $as_test_x conftest$ac_exeext; then
18330 } && test -s conftest$ac_exeext && {
18331 test "$cross_compiling" = yes ||
18332 $as_test_x conftest$ac_exeext
18333 }; then
2451518334 eval "$as_ac_var=yes"
2451618335 else
24517 echo "$as_me: failed program was:" >&5
18336 $as_echo "$as_me: failed program was:" >&5
2451818337 sed 's/^/| /' conftest.$ac_ext >&5
2451918338
2452018339 eval "$as_ac_var=no"
2452118340 fi
2452218341
18342 rm -rf conftest.dSYM
2452318343 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
2452418344 conftest$ac_exeext conftest.$ac_ext
2452518345 fi
24526 ac_res=`eval echo '${'$as_ac_var'}'`
24527 { echo "$as_me:$LINENO: result: $ac_res" >&5
24528 echo "${ECHO_T}$ac_res" >&6; }
24529 if test `eval echo '${'$as_ac_var'}'` = yes; then
18346 ac_res=`eval 'as_val=${'$as_ac_var'}
18347 $as_echo "$as_val"'`
18348 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
18349 $as_echo "$ac_res" >&6; }
18350 as_val=`eval 'as_val=${'$as_ac_var'}
18351 $as_echo "$as_val"'`
18352 if test "x$as_val" = x""yes; then
2453018353 cat >>confdefs.h <<_ACEOF
24531 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18354 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
2453218355 _ACEOF
2453318356
2453418357 fi
2453718360
2453818361 for ac_func in event_base_get_method
2453918362 do
24540 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24541 { echo "$as_me:$LINENO: checking for $ac_func" >&5
24542 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18363 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
18364 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
18365 $as_echo_n "checking for $ac_func... " >&6; }
2454318366 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
24544 echo $ECHO_N "(cached) $ECHO_C" >&6
18367 $as_echo_n "(cached) " >&6
2454518368 else
2454618369 cat >conftest.$ac_ext <<_ACEOF
2454718370 /* confdefs.h. */
2459418417 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2459518418 *) ac_try_echo=$ac_try;;
2459618419 esac
24597 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18420 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18421 $as_echo "$ac_try_echo") >&5
2459818422 (eval "$ac_link") 2>conftest.er1
2459918423 ac_status=$?
2460018424 grep -v '^ *+' conftest.er1 >conftest.err
2460118425 rm -f conftest.er1
2460218426 cat conftest.err >&5
24603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18427 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2460418428 (exit $ac_status); } && {
2460518429 test -z "$ac_c_werror_flag" ||
2460618430 test ! -s conftest.err
24607 } && test -s conftest$ac_exeext &&
24608 $as_test_x conftest$ac_exeext; then
18431 } && test -s conftest$ac_exeext && {
18432 test "$cross_compiling" = yes ||
18433 $as_test_x conftest$ac_exeext
18434 }; then
2460918435 eval "$as_ac_var=yes"
2461018436 else
24611 echo "$as_me: failed program was:" >&5
18437 $as_echo "$as_me: failed program was:" >&5
2461218438 sed 's/^/| /' conftest.$ac_ext >&5
2461318439
2461418440 eval "$as_ac_var=no"
2461518441 fi
2461618442
18443 rm -rf conftest.dSYM
2461718444 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
2461818445 conftest$ac_exeext conftest.$ac_ext
2461918446 fi
24620 ac_res=`eval echo '${'$as_ac_var'}'`
24621 { echo "$as_me:$LINENO: result: $ac_res" >&5
24622 echo "${ECHO_T}$ac_res" >&6; }
24623 if test `eval echo '${'$as_ac_var'}'` = yes; then
18447 ac_res=`eval 'as_val=${'$as_ac_var'}
18448 $as_echo "$as_val"'`
18449 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
18450 $as_echo "$ac_res" >&6; }
18451 as_val=`eval 'as_val=${'$as_ac_var'}
18452 $as_echo "$as_val"'`
18453 if test "x$as_val" = x""yes; then
2462418454 cat >>confdefs.h <<_ACEOF
24625 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18455 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
2462618456 _ACEOF
2462718457
2462818458 fi
2463118461
2463218462 for ac_func in ev_loop
2463318463 do
24634 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24635 { echo "$as_me:$LINENO: checking for $ac_func" >&5
24636 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18464 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
18465 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
18466 $as_echo_n "checking for $ac_func... " >&6; }
2463718467 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
24638 echo $ECHO_N "(cached) $ECHO_C" >&6
18468 $as_echo_n "(cached) " >&6
2463918469 else
2464018470 cat >conftest.$ac_ext <<_ACEOF
2464118471 /* confdefs.h. */
2468818518 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2468918519 *) ac_try_echo=$ac_try;;
2469018520 esac
24691 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18521 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18522 $as_echo "$ac_try_echo") >&5
2469218523 (eval "$ac_link") 2>conftest.er1
2469318524 ac_status=$?
2469418525 grep -v '^ *+' conftest.er1 >conftest.err
2469518526 rm -f conftest.er1
2469618527 cat conftest.err >&5
24697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18528 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2469818529 (exit $ac_status); } && {
2469918530 test -z "$ac_c_werror_flag" ||
2470018531 test ! -s conftest.err
24701 } && test -s conftest$ac_exeext &&
24702 $as_test_x conftest$ac_exeext; then
18532 } && test -s conftest$ac_exeext && {
18533 test "$cross_compiling" = yes ||
18534 $as_test_x conftest$ac_exeext
18535 }; then
2470318536 eval "$as_ac_var=yes"
2470418537 else
24705 echo "$as_me: failed program was:" >&5
18538 $as_echo "$as_me: failed program was:" >&5
2470618539 sed 's/^/| /' conftest.$ac_ext >&5
2470718540
2470818541 eval "$as_ac_var=no"
2470918542 fi
2471018543
18544 rm -rf conftest.dSYM
2471118545 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
2471218546 conftest$ac_exeext conftest.$ac_ext
2471318547 fi
24714 ac_res=`eval echo '${'$as_ac_var'}'`
24715 { echo "$as_me:$LINENO: result: $ac_res" >&5
24716 echo "${ECHO_T}$ac_res" >&6; }
24717 if test `eval echo '${'$as_ac_var'}'` = yes; then
18548 ac_res=`eval 'as_val=${'$as_ac_var'}
18549 $as_echo "$as_val"'`
18550 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
18551 $as_echo "$ac_res" >&6; }
18552 as_val=`eval 'as_val=${'$as_ac_var'}
18553 $as_echo "$as_val"'`
18554 if test "x$as_val" = x""yes; then
2471818555 cat >>confdefs.h <<_ACEOF
24719 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18556 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
2472018557 _ACEOF
2472118558
2472218559 fi
2478018617
2478118618 for ac_header in stdlib.h
2478218619 do
24783 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18620 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
2478418621 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24785 { echo "$as_me:$LINENO: checking for $ac_header" >&5
24786 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
18622 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
18623 $as_echo_n "checking for $ac_header... " >&6; }
2478718624 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24788 echo $ECHO_N "(cached) $ECHO_C" >&6
24789 fi
24790 ac_res=`eval echo '${'$as_ac_Header'}'`
24791 { echo "$as_me:$LINENO: result: $ac_res" >&5
24792 echo "${ECHO_T}$ac_res" >&6; }
18625 $as_echo_n "(cached) " >&6
18626 fi
18627 ac_res=`eval 'as_val=${'$as_ac_Header'}
18628 $as_echo "$as_val"'`
18629 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
18630 $as_echo "$ac_res" >&6; }
2479318631 else
2479418632 # Is the header compilable?
24795 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
24796 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
18633 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
18634 $as_echo_n "checking $ac_header usability... " >&6; }
2479718635 cat >conftest.$ac_ext <<_ACEOF
2479818636 /* confdefs.h. */
2479918637 _ACEOF
2480918647 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2481018648 *) ac_try_echo=$ac_try;;
2481118649 esac
24812 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18650 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18651 $as_echo "$ac_try_echo") >&5
2481318652 (eval "$ac_compile") 2>conftest.er1
2481418653 ac_status=$?
2481518654 grep -v '^ *+' conftest.er1 >conftest.err
2481618655 rm -f conftest.er1
2481718656 cat conftest.err >&5
24818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18657 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2481918658 (exit $ac_status); } && {
2482018659 test -z "$ac_c_werror_flag" ||
2482118660 test ! -s conftest.err
2482218661 } && test -s conftest.$ac_objext; then
2482318662 ac_header_compiler=yes
2482418663 else
24825 echo "$as_me: failed program was:" >&5
18664 $as_echo "$as_me: failed program was:" >&5
2482618665 sed 's/^/| /' conftest.$ac_ext >&5
2482718666
2482818667 ac_header_compiler=no
2482918668 fi
2483018669
2483118670 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24832 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24833 echo "${ECHO_T}$ac_header_compiler" >&6; }
18671 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18672 $as_echo "$ac_header_compiler" >&6; }
2483418673
2483518674 # Is the header present?
24836 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
24837 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
18675 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
18676 $as_echo_n "checking $ac_header presence... " >&6; }
2483818677 cat >conftest.$ac_ext <<_ACEOF
2483918678 /* confdefs.h. */
2484018679 _ACEOF
2484818687 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2484918688 *) ac_try_echo=$ac_try;;
2485018689 esac
24851 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18690 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18691 $as_echo "$ac_try_echo") >&5
2485218692 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
2485318693 ac_status=$?
2485418694 grep -v '^ *+' conftest.er1 >conftest.err
2485518695 rm -f conftest.er1
2485618696 cat conftest.err >&5
24857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18697 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2485818698 (exit $ac_status); } >/dev/null && {
2485918699 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2486018700 test ! -s conftest.err
2486118701 }; then
2486218702 ac_header_preproc=yes
2486318703 else
24864 echo "$as_me: failed program was:" >&5
18704 $as_echo "$as_me: failed program was:" >&5
2486518705 sed 's/^/| /' conftest.$ac_ext >&5
2486618706
2486718707 ac_header_preproc=no
2486818708 fi
2486918709
2487018710 rm -f conftest.err conftest.$ac_ext
24871 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24872 echo "${ECHO_T}$ac_header_preproc" >&6; }
18711 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18712 $as_echo "$ac_header_preproc" >&6; }
2487318713
2487418714 # So? What about this header?
2487518715 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
2487618716 yes:no: )
24877 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
24878 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
24879 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
24880 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
18717 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18718 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18719 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
18720 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
2488118721 ac_header_preproc=yes
2488218722 ;;
2488318723 no:yes:* )
24884 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
24885 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
24886 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
24887 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
24888 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
24889 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
24890 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
24891 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
24892 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
24893 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
24894 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
24895 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
18724 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18725 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18726 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
18727 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
18728 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
18729 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
18730 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
18731 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
18732 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18733 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18734 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
18735 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
2489618736 ( cat <<\_ASBOX
2489718737 ## ---------------------------------------- ##
2489818738 ## Report this to unbound-bugs@nlnetlabs.nl ##
2490118741 ) | sed "s/^/$as_me: WARNING: /" >&2
2490218742 ;;
2490318743 esac
24904 { echo "$as_me:$LINENO: checking for $ac_header" >&5
24905 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
18744 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
18745 $as_echo_n "checking for $ac_header... " >&6; }
2490618746 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24907 echo $ECHO_N "(cached) $ECHO_C" >&6
18747 $as_echo_n "(cached) " >&6
2490818748 else
2490918749 eval "$as_ac_Header=\$ac_header_preproc"
2491018750 fi
24911 ac_res=`eval echo '${'$as_ac_Header'}'`
24912 { echo "$as_me:$LINENO: result: $ac_res" >&5
24913 echo "${ECHO_T}$ac_res" >&6; }
24914
24915 fi
24916 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18751 ac_res=`eval 'as_val=${'$as_ac_Header'}
18752 $as_echo "$as_val"'`
18753 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
18754 $as_echo "$ac_res" >&6; }
18755
18756 fi
18757 as_val=`eval 'as_val=${'$as_ac_Header'}
18758 $as_echo "$as_val"'`
18759 if test "x$as_val" = x""yes; then
2491718760 cat >>confdefs.h <<_ACEOF
24918 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18761 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
2491918762 _ACEOF
2492018763
2492118764 fi
2492218765
2492318766 done
2492418767
24925 { echo "$as_me:$LINENO: checking for GNU libc compatible malloc" >&5
24926 echo $ECHO_N "checking for GNU libc compatible malloc... $ECHO_C" >&6; }
18768 { $as_echo "$as_me:$LINENO: checking for GNU libc compatible malloc" >&5
18769 $as_echo_n "checking for GNU libc compatible malloc... " >&6; }
2492718770 if test "${ac_cv_func_malloc_0_nonnull+set}" = set; then
24928 echo $ECHO_N "(cached) $ECHO_C" >&6
18771 $as_echo_n "(cached) " >&6
2492918772 else
2493018773 if test "$cross_compiling" = yes; then
2493118774 ac_cv_func_malloc_0_nonnull=no
2495618799 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2495718800 *) ac_try_echo=$ac_try;;
2495818801 esac
24959 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18802 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18803 $as_echo "$ac_try_echo") >&5
2496018804 (eval "$ac_link") 2>&5
2496118805 ac_status=$?
24962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18806 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2496318807 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
2496418808 { (case "(($ac_try" in
2496518809 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2496618810 *) ac_try_echo=$ac_try;;
2496718811 esac
24968 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18812 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18813 $as_echo "$ac_try_echo") >&5
2496918814 (eval "$ac_try") 2>&5
2497018815 ac_status=$?
24971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18816 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2497218817 (exit $ac_status); }; }; then
2497318818 ac_cv_func_malloc_0_nonnull=yes
2497418819 else
24975 echo "$as_me: program exited with status $ac_status" >&5
24976 echo "$as_me: failed program was:" >&5
18820 $as_echo "$as_me: program exited with status $ac_status" >&5
18821 $as_echo "$as_me: failed program was:" >&5
2497718822 sed 's/^/| /' conftest.$ac_ext >&5
2497818823
2497918824 ( exit $ac_status )
2498018825 ac_cv_func_malloc_0_nonnull=no
2498118826 fi
18827 rm -rf conftest.dSYM
2498218828 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
2498318829 fi
2498418830
2498518831
2498618832 fi
24987 { echo "$as_me:$LINENO: result: $ac_cv_func_malloc_0_nonnull" >&5
24988 echo "${ECHO_T}$ac_cv_func_malloc_0_nonnull" >&6; }
18833 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_malloc_0_nonnull" >&5
18834 $as_echo "$ac_cv_func_malloc_0_nonnull" >&6; }
2498918835 if test $ac_cv_func_malloc_0_nonnull = yes; then
2499018836
2499118837 cat >>confdefs.h <<\_ACEOF
2501718863
2501818864 for ac_header in unistd.h
2501918865 do
25020 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18866 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
2502118867 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25022 { echo "$as_me:$LINENO: checking for $ac_header" >&5
25023 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
18868 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
18869 $as_echo_n "checking for $ac_header... " >&6; }
2502418870 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25025 echo $ECHO_N "(cached) $ECHO_C" >&6
25026 fi
25027 ac_res=`eval echo '${'$as_ac_Header'}'`
25028 { echo "$as_me:$LINENO: result: $ac_res" >&5
25029 echo "${ECHO_T}$ac_res" >&6; }
18871 $as_echo_n "(cached) " >&6
18872 fi
18873 ac_res=`eval 'as_val=${'$as_ac_Header'}
18874 $as_echo "$as_val"'`
18875 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
18876 $as_echo "$ac_res" >&6; }
2503018877 else
2503118878 # Is the header compilable?
25032 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
25033 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
18879 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
18880 $as_echo_n "checking $ac_header usability... " >&6; }
2503418881 cat >conftest.$ac_ext <<_ACEOF
2503518882 /* confdefs.h. */
2503618883 _ACEOF
2504618893 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2504718894 *) ac_try_echo=$ac_try;;
2504818895 esac
25049 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18896 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18897 $as_echo "$ac_try_echo") >&5
2505018898 (eval "$ac_compile") 2>conftest.er1
2505118899 ac_status=$?
2505218900 grep -v '^ *+' conftest.er1 >conftest.err
2505318901 rm -f conftest.er1
2505418902 cat conftest.err >&5
25055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18903 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2505618904 (exit $ac_status); } && {
2505718905 test -z "$ac_c_werror_flag" ||
2505818906 test ! -s conftest.err
2505918907 } && test -s conftest.$ac_objext; then
2506018908 ac_header_compiler=yes
2506118909 else
25062 echo "$as_me: failed program was:" >&5
18910 $as_echo "$as_me: failed program was:" >&5
2506318911 sed 's/^/| /' conftest.$ac_ext >&5
2506418912
2506518913 ac_header_compiler=no
2506618914 fi
2506718915
2506818916 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25069 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25070 echo "${ECHO_T}$ac_header_compiler" >&6; }
18917 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18918 $as_echo "$ac_header_compiler" >&6; }
2507118919
2507218920 # Is the header present?
25073 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
25074 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
18921 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
18922 $as_echo_n "checking $ac_header presence... " >&6; }
2507518923 cat >conftest.$ac_ext <<_ACEOF
2507618924 /* confdefs.h. */
2507718925 _ACEOF
2508518933 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2508618934 *) ac_try_echo=$ac_try;;
2508718935 esac
25088 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18936 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18937 $as_echo "$ac_try_echo") >&5
2508918938 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
2509018939 ac_status=$?
2509118940 grep -v '^ *+' conftest.er1 >conftest.err
2509218941 rm -f conftest.er1
2509318942 cat conftest.err >&5
25094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18943 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2509518944 (exit $ac_status); } >/dev/null && {
2509618945 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2509718946 test ! -s conftest.err
2509818947 }; then
2509918948 ac_header_preproc=yes
2510018949 else
25101 echo "$as_me: failed program was:" >&5
18950 $as_echo "$as_me: failed program was:" >&5
2510218951 sed 's/^/| /' conftest.$ac_ext >&5
2510318952
2510418953 ac_header_preproc=no
2510518954 fi
2510618955
2510718956 rm -f conftest.err conftest.$ac_ext
25108 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25109 echo "${ECHO_T}$ac_header_preproc" >&6; }
18957 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18958 $as_echo "$ac_header_preproc" >&6; }
2511018959
2511118960 # So? What about this header?
2511218961 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
2511318962 yes:no: )
25114 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
25115 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
25116 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
25117 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
18963 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18964 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18965 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
18966 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
2511818967 ac_header_preproc=yes
2511918968 ;;
2512018969 no:yes:* )
25121 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
25122 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
25123 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
25124 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
25125 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
25126 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
25127 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
25128 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
25129 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
25130 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
25131 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
25132 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
18970 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18971 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18972 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
18973 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
18974 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
18975 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
18976 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
18977 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
18978 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18979 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18980 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
18981 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
2513318982 ( cat <<\_ASBOX
2513418983 ## ---------------------------------------- ##
2513518984 ## Report this to unbound-bugs@nlnetlabs.nl ##
2513818987 ) | sed "s/^/$as_me: WARNING: /" >&2
2513918988 ;;
2514018989 esac
25141 { echo "$as_me:$LINENO: checking for $ac_header" >&5
25142 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
18990 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
18991 $as_echo_n "checking for $ac_header... " >&6; }
2514318992 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25144 echo $ECHO_N "(cached) $ECHO_C" >&6
18993 $as_echo_n "(cached) " >&6
2514518994 else
2514618995 eval "$as_ac_Header=\$ac_header_preproc"
2514718996 fi
25148 ac_res=`eval echo '${'$as_ac_Header'}'`
25149 { echo "$as_me:$LINENO: result: $ac_res" >&5
25150 echo "${ECHO_T}$ac_res" >&6; }
25151
25152 fi
25153 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18997 ac_res=`eval 'as_val=${'$as_ac_Header'}
18998 $as_echo "$as_val"'`
18999 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
19000 $as_echo "$ac_res" >&6; }
19001
19002 fi
19003 as_val=`eval 'as_val=${'$as_ac_Header'}
19004 $as_echo "$as_val"'`
19005 if test "x$as_val" = x""yes; then
2515419006 cat >>confdefs.h <<_ACEOF
25155 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19007 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
2515619008 _ACEOF
2515719009
2515819010 fi
2515919011
2516019012 done
2516119013
25162 { echo "$as_me:$LINENO: checking for working chown" >&5
25163 echo $ECHO_N "checking for working chown... $ECHO_C" >&6; }
19014 { $as_echo "$as_me:$LINENO: checking for working chown" >&5
19015 $as_echo_n "checking for working chown... " >&6; }
2516419016 if test "${ac_cv_func_chown_works+set}" = set; then
25165 echo $ECHO_N "(cached) $ECHO_C" >&6
19017 $as_echo_n "(cached) " >&6
2516619018 else
2516719019 if test "$cross_compiling" = yes; then
2516819020 ac_cv_func_chown_works=no
2520219054 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2520319055 *) ac_try_echo=$ac_try;;
2520419056 esac
25205 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19057 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19058 $as_echo "$ac_try_echo") >&5
2520619059 (eval "$ac_link") 2>&5
2520719060 ac_status=$?
25208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19061 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2520919062 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
2521019063 { (case "(($ac_try" in
2521119064 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2521219065 *) ac_try_echo=$ac_try;;
2521319066 esac
25214 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19067 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19068 $as_echo "$ac_try_echo") >&5
2521519069 (eval "$ac_try") 2>&5
2521619070 ac_status=$?
25217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19071 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2521819072 (exit $ac_status); }; }; then
2521919073 ac_cv_func_chown_works=yes
2522019074 else
25221 echo "$as_me: program exited with status $ac_status" >&5
25222 echo "$as_me: failed program was:" >&5
19075 $as_echo "$as_me: program exited with status $ac_status" >&5
19076 $as_echo "$as_me: failed program was:" >&5
2522319077 sed 's/^/| /' conftest.$ac_ext >&5
2522419078
2522519079 ( exit $ac_status )
2522619080 ac_cv_func_chown_works=no
2522719081 fi
19082 rm -rf conftest.dSYM
2522819083 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
2522919084 fi
2523019085
2523219087 rm -f conftest.chown
2523319088
2523419089 fi
25235 { echo "$as_me:$LINENO: result: $ac_cv_func_chown_works" >&5
25236 echo "${ECHO_T}$ac_cv_func_chown_works" >&6; }
19090 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_chown_works" >&5
19091 $as_echo "$ac_cv_func_chown_works" >&6; }
2523719092 if test $ac_cv_func_chown_works = yes; then
2523819093
2523919094 cat >>confdefs.h <<\_ACEOF
2524519100
2524619101 for ac_header in vfork.h
2524719102 do
25248 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19103 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
2524919104 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25250 { echo "$as_me:$LINENO: checking for $ac_header" >&5
25251 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19105 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
19106 $as_echo_n "checking for $ac_header... " >&6; }
2525219107 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25253 echo $ECHO_N "(cached) $ECHO_C" >&6
25254 fi
25255 ac_res=`eval echo '${'$as_ac_Header'}'`
25256 { echo "$as_me:$LINENO: result: $ac_res" >&5
25257 echo "${ECHO_T}$ac_res" >&6; }
19108 $as_echo_n "(cached) " >&6
19109 fi
19110 ac_res=`eval 'as_val=${'$as_ac_Header'}
19111 $as_echo "$as_val"'`
19112 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
19113 $as_echo "$ac_res" >&6; }
2525819114 else
2525919115 # Is the header compilable?
25260 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
25261 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
19116 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
19117 $as_echo_n "checking $ac_header usability... " >&6; }
2526219118 cat >conftest.$ac_ext <<_ACEOF
2526319119 /* confdefs.h. */
2526419120 _ACEOF
2527419130 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2527519131 *) ac_try_echo=$ac_try;;
2527619132 esac
25277 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19133 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19134 $as_echo "$ac_try_echo") >&5
2527819135 (eval "$ac_compile") 2>conftest.er1
2527919136 ac_status=$?
2528019137 grep -v '^ *+' conftest.er1 >conftest.err
2528119138 rm -f conftest.er1
2528219139 cat conftest.err >&5
25283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19140 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2528419141 (exit $ac_status); } && {
2528519142 test -z "$ac_c_werror_flag" ||
2528619143 test ! -s conftest.err
2528719144 } && test -s conftest.$ac_objext; then
2528819145 ac_header_compiler=yes
2528919146 else
25290 echo "$as_me: failed program was:" >&5
19147 $as_echo "$as_me: failed program was:" >&5
2529119148 sed 's/^/| /' conftest.$ac_ext >&5
2529219149
2529319150 ac_header_compiler=no
2529419151 fi
2529519152
2529619153 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25297 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25298 echo "${ECHO_T}$ac_header_compiler" >&6; }
19154 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19155 $as_echo "$ac_header_compiler" >&6; }
2529919156
2530019157 # Is the header present?
25301 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
25302 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
19158 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
19159 $as_echo_n "checking $ac_header presence... " >&6; }
2530319160 cat >conftest.$ac_ext <<_ACEOF
2530419161 /* confdefs.h. */
2530519162 _ACEOF
2531319170 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2531419171 *) ac_try_echo=$ac_try;;
2531519172 esac
25316 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19173 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19174 $as_echo "$ac_try_echo") >&5
2531719175 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
2531819176 ac_status=$?
2531919177 grep -v '^ *+' conftest.er1 >conftest.err
2532019178 rm -f conftest.er1
2532119179 cat conftest.err >&5
25322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19180 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2532319181 (exit $ac_status); } >/dev/null && {
2532419182 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2532519183 test ! -s conftest.err
2532619184 }; then
2532719185 ac_header_preproc=yes
2532819186 else
25329 echo "$as_me: failed program was:" >&5
19187 $as_echo "$as_me: failed program was:" >&5
2533019188 sed 's/^/| /' conftest.$ac_ext >&5
2533119189
2533219190 ac_header_preproc=no
2533319191 fi
2533419192
2533519193 rm -f conftest.err conftest.$ac_ext
25336 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25337 echo "${ECHO_T}$ac_header_preproc" >&6; }
19194 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19195 $as_echo "$ac_header_preproc" >&6; }
2533819196
2533919197 # So? What about this header?
2534019198 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
2534119199 yes:no: )
25342 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
25343 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
25344 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
25345 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19200 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19201 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19202 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19203 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
2534619204 ac_header_preproc=yes
2534719205 ;;
2534819206 no:yes:* )
25349 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
25350 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
25351 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
25352 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
25353 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
25354 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
25355 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
25356 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
25357 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
25358 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
25359 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
25360 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19207 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19208 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19209 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19210 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19211 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19212 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19213 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19214 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
19215 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19216 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19217 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19218 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
2536119219 ( cat <<\_ASBOX
2536219220 ## ---------------------------------------- ##
2536319221 ## Report this to unbound-bugs@nlnetlabs.nl ##
2536619224 ) | sed "s/^/$as_me: WARNING: /" >&2
2536719225 ;;
2536819226 esac
25369 { echo "$as_me:$LINENO: checking for $ac_header" >&5
25370 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19227 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
19228 $as_echo_n "checking for $ac_header... " >&6; }
2537119229 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25372 echo $ECHO_N "(cached) $ECHO_C" >&6
19230 $as_echo_n "(cached) " >&6
2537319231 else
2537419232 eval "$as_ac_Header=\$ac_header_preproc"
2537519233 fi
25376 ac_res=`eval echo '${'$as_ac_Header'}'`
25377 { echo "$as_me:$LINENO: result: $ac_res" >&5
25378 echo "${ECHO_T}$ac_res" >&6; }
25379
25380 fi
25381 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19234 ac_res=`eval 'as_val=${'$as_ac_Header'}
19235 $as_echo "$as_val"'`
19236 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
19237 $as_echo "$ac_res" >&6; }
19238
19239 fi
19240 as_val=`eval 'as_val=${'$as_ac_Header'}
19241 $as_echo "$as_val"'`
19242 if test "x$as_val" = x""yes; then
2538219243 cat >>confdefs.h <<_ACEOF
25383 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19244 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
2538419245 _ACEOF
2538519246
2538619247 fi
2539119252
2539219253 for ac_func in fork vfork
2539319254 do
25394 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
25395 { echo "$as_me:$LINENO: checking for $ac_func" >&5
25396 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
19255 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
19256 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
19257 $as_echo_n "checking for $ac_func... " >&6; }
2539719258 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
25398 echo $ECHO_N "(cached) $ECHO_C" >&6
19259 $as_echo_n "(cached) " >&6
2539919260 else
2540019261 cat >conftest.$ac_ext <<_ACEOF
2540119262 /* confdefs.h. */
2544819309 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2544919310 *) ac_try_echo=$ac_try;;
2545019311 esac
25451 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19312 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19313 $as_echo "$ac_try_echo") >&5
2545219314 (eval "$ac_link") 2>conftest.er1
2545319315 ac_status=$?
2545419316 grep -v '^ *+' conftest.er1 >conftest.err
2545519317 rm -f conftest.er1
2545619318 cat conftest.err >&5
25457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19319 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2545819320 (exit $ac_status); } && {
2545919321 test -z "$ac_c_werror_flag" ||
2546019322 test ! -s conftest.err
25461 } && test -s conftest$ac_exeext &&
25462 $as_test_x conftest$ac_exeext; then
19323 } && test -s conftest$ac_exeext && {
19324 test "$cross_compiling" = yes ||
19325 $as_test_x conftest$ac_exeext
19326 }; then
2546319327 eval "$as_ac_var=yes"
2546419328 else
25465 echo "$as_me: failed program was:" >&5
19329 $as_echo "$as_me: failed program was:" >&5
2546619330 sed 's/^/| /' conftest.$ac_ext >&5
2546719331
2546819332 eval "$as_ac_var=no"
2546919333 fi
2547019334
19335 rm -rf conftest.dSYM
2547119336 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
2547219337 conftest$ac_exeext conftest.$ac_ext
2547319338 fi
25474 ac_res=`eval echo '${'$as_ac_var'}'`
25475 { echo "$as_me:$LINENO: result: $ac_res" >&5
25476 echo "${ECHO_T}$ac_res" >&6; }
25477 if test `eval echo '${'$as_ac_var'}'` = yes; then
19339 ac_res=`eval 'as_val=${'$as_ac_var'}
19340 $as_echo "$as_val"'`
19341 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
19342 $as_echo "$ac_res" >&6; }
19343 as_val=`eval 'as_val=${'$as_ac_var'}
19344 $as_echo "$as_val"'`
19345 if test "x$as_val" = x""yes; then
2547819346 cat >>confdefs.h <<_ACEOF
25479 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19347 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
2548019348 _ACEOF
2548119349
2548219350 fi
2548319351 done
2548419352
2548519353 if test "x$ac_cv_func_fork" = xyes; then
25486 { echo "$as_me:$LINENO: checking for working fork" >&5
25487 echo $ECHO_N "checking for working fork... $ECHO_C" >&6; }
19354 { $as_echo "$as_me:$LINENO: checking for working fork" >&5
19355 $as_echo_n "checking for working fork... " >&6; }
2548819356 if test "${ac_cv_func_fork_works+set}" = set; then
25489 echo $ECHO_N "(cached) $ECHO_C" >&6
19357 $as_echo_n "(cached) " >&6
2549019358 else
2549119359 if test "$cross_compiling" = yes; then
2549219360 ac_cv_func_fork_works=cross
2551519383 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2551619384 *) ac_try_echo=$ac_try;;
2551719385 esac
25518 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19386 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19387 $as_echo "$ac_try_echo") >&5
2551919388 (eval "$ac_link") 2>&5
2552019389 ac_status=$?
25521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19390 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2552219391 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
2552319392 { (case "(($ac_try" in
2552419393 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2552519394 *) ac_try_echo=$ac_try;;
2552619395 esac
25527 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19396 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19397 $as_echo "$ac_try_echo") >&5
2552819398 (eval "$ac_try") 2>&5
2552919399 ac_status=$?
25530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19400 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2553119401 (exit $ac_status); }; }; then
2553219402 ac_cv_func_fork_works=yes
2553319403 else
25534 echo "$as_me: program exited with status $ac_status" >&5
25535 echo "$as_me: failed program was:" >&5
19404 $as_echo "$as_me: program exited with status $ac_status" >&5
19405 $as_echo "$as_me: failed program was:" >&5
2553619406 sed 's/^/| /' conftest.$ac_ext >&5
2553719407
2553819408 ( exit $ac_status )
2553919409 ac_cv_func_fork_works=no
2554019410 fi
19411 rm -rf conftest.dSYM
2554119412 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
2554219413 fi
2554319414
2554419415
2554519416 fi
25546 { echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
25547 echo "${ECHO_T}$ac_cv_func_fork_works" >&6; }
19417 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
19418 $as_echo "$ac_cv_func_fork_works" >&6; }
2554819419
2554919420 else
2555019421 ac_cv_func_fork_works=$ac_cv_func_fork
2555919430 ac_cv_func_fork_works=yes
2556019431 ;;
2556119432 esac
25562 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
25563 echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
19433 { $as_echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
19434 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
2556419435 fi
2556519436 ac_cv_func_vfork_works=$ac_cv_func_vfork
2556619437 if test "x$ac_cv_func_vfork" = xyes; then
25567 { echo "$as_me:$LINENO: checking for working vfork" >&5
25568 echo $ECHO_N "checking for working vfork... $ECHO_C" >&6; }
19438 { $as_echo "$as_me:$LINENO: checking for working vfork" >&5
19439 $as_echo_n "checking for working vfork... " >&6; }
2556919440 if test "${ac_cv_func_vfork_works+set}" = set; then
25570 echo $ECHO_N "(cached) $ECHO_C" >&6
19441 $as_echo_n "(cached) " >&6
2557119442 else
2557219443 if test "$cross_compiling" = yes; then
2557319444 ac_cv_func_vfork_works=cross
2567419545 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2567519546 *) ac_try_echo=$ac_try;;
2567619547 esac
25677 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19548 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19549 $as_echo "$ac_try_echo") >&5
2567819550 (eval "$ac_link") 2>&5
2567919551 ac_status=$?
25680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19552 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2568119553 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
2568219554 { (case "(($ac_try" in
2568319555 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2568419556 *) ac_try_echo=$ac_try;;
2568519557 esac
25686 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19558 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19559 $as_echo "$ac_try_echo") >&5
2568719560 (eval "$ac_try") 2>&5
2568819561 ac_status=$?
25689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19562 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2569019563 (exit $ac_status); }; }; then
2569119564 ac_cv_func_vfork_works=yes
2569219565 else
25693 echo "$as_me: program exited with status $ac_status" >&5
25694 echo "$as_me: failed program was:" >&5
19566 $as_echo "$as_me: program exited with status $ac_status" >&5
19567 $as_echo "$as_me: failed program was:" >&5
2569519568 sed 's/^/| /' conftest.$ac_ext >&5
2569619569
2569719570 ( exit $ac_status )
2569819571 ac_cv_func_vfork_works=no
2569919572 fi
19573 rm -rf conftest.dSYM
2570019574 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
2570119575 fi
2570219576
2570319577
2570419578 fi
25705 { echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
25706 echo "${ECHO_T}$ac_cv_func_vfork_works" >&6; }
19579 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
19580 $as_echo "$ac_cv_func_vfork_works" >&6; }
2570719581
2570819582 fi;
2570919583 if test "x$ac_cv_func_fork_works" = xcross; then
2571019584 ac_cv_func_vfork_works=$ac_cv_func_vfork
25711 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
25712 echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
19585 { $as_echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
19586 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
2571319587 fi
2571419588
2571519589 if test "x$ac_cv_func_vfork_works" = xyes; then
2573319607
2573419608 fi
2573519609
25736 { echo "$as_me:$LINENO: checking return type of signal handlers" >&5
25737 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
19610 { $as_echo "$as_me:$LINENO: checking return type of signal handlers" >&5
19611 $as_echo_n "checking return type of signal handlers... " >&6; }
2573819612 if test "${ac_cv_type_signal+set}" = set; then
25739 echo $ECHO_N "(cached) $ECHO_C" >&6
19613 $as_echo_n "(cached) " >&6
2574019614 else
2574119615 cat >conftest.$ac_ext <<_ACEOF
2574219616 /* confdefs.h. */
2576119635 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2576219636 *) ac_try_echo=$ac_try;;
2576319637 esac
25764 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19638 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19639 $as_echo "$ac_try_echo") >&5
2576519640 (eval "$ac_compile") 2>conftest.er1
2576619641 ac_status=$?
2576719642 grep -v '^ *+' conftest.er1 >conftest.err
2576819643 rm -f conftest.er1
2576919644 cat conftest.err >&5
25770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19645 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2577119646 (exit $ac_status); } && {
2577219647 test -z "$ac_c_werror_flag" ||
2577319648 test ! -s conftest.err
2577419649 } && test -s conftest.$ac_objext; then
2577519650 ac_cv_type_signal=int
2577619651 else
25777 echo "$as_me: failed program was:" >&5
19652 $as_echo "$as_me: failed program was:" >&5
2577819653 sed 's/^/| /' conftest.$ac_ext >&5
2577919654
2578019655 ac_cv_type_signal=void
2578219657
2578319658 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2578419659 fi
25785 { echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
25786 echo "${ECHO_T}$ac_cv_type_signal" >&6; }
19660 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
19661 $as_echo "$ac_cv_type_signal" >&6; }
2578719662
2578819663 cat >>confdefs.h <<_ACEOF
2578919664 #define RETSIGTYPE $ac_cv_type_signal
2579019665 _ACEOF
2579119666
2579219667
25793 { echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE value needed for large files" >&5
25794 echo $ECHO_N "checking for _LARGEFILE_SOURCE value needed for large files... $ECHO_C" >&6; }
19668 { $as_echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE value needed for large files" >&5
19669 $as_echo_n "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; }
2579519670 if test "${ac_cv_sys_largefile_source+set}" = set; then
25796 echo $ECHO_N "(cached) $ECHO_C" >&6
19671 $as_echo_n "(cached) " >&6
2579719672 else
2579819673 while :; do
2579919674 cat >conftest.$ac_ext <<_ACEOF
2580219677 cat confdefs.h >>conftest.$ac_ext
2580319678 cat >>conftest.$ac_ext <<_ACEOF
2580419679 /* end confdefs.h. */
25805 #include <stdio.h>
19680 #include <sys/types.h> /* for off_t */
19681 #include <stdio.h>
2580619682 int
2580719683 main ()
2580819684 {
25809 return fseeko (stdin, 0, 0) && (fseeko) (stdin, 0, 0);
19685 int (*fp) (FILE *, off_t, int) = fseeko;
19686 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
2581019687 ;
2581119688 return 0;
2581219689 }
2581719694 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2581819695 *) ac_try_echo=$ac_try;;
2581919696 esac
25820 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19697 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19698 $as_echo "$ac_try_echo") >&5
2582119699 (eval "$ac_link") 2>conftest.er1
2582219700 ac_status=$?
2582319701 grep -v '^ *+' conftest.er1 >conftest.err
2582419702 rm -f conftest.er1
2582519703 cat conftest.err >&5
25826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19704 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2582719705 (exit $ac_status); } && {
2582819706 test -z "$ac_c_werror_flag" ||
2582919707 test ! -s conftest.err
25830 } && test -s conftest$ac_exeext &&
25831 $as_test_x conftest$ac_exeext; then
19708 } && test -s conftest$ac_exeext && {
19709 test "$cross_compiling" = yes ||
19710 $as_test_x conftest$ac_exeext
19711 }; then
2583219712 ac_cv_sys_largefile_source=no; break
2583319713 else
25834 echo "$as_me: failed program was:" >&5
19714 $as_echo "$as_me: failed program was:" >&5
2583519715 sed 's/^/| /' conftest.$ac_ext >&5
2583619716
2583719717
2583819718 fi
2583919719
19720 rm -rf conftest.dSYM
2584019721 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
2584119722 conftest$ac_exeext conftest.$ac_ext
2584219723 cat >conftest.$ac_ext <<_ACEOF
2584619727 cat >>conftest.$ac_ext <<_ACEOF
2584719728 /* end confdefs.h. */
2584819729 #define _LARGEFILE_SOURCE 1
25849 #include <stdio.h>
19730 #include <sys/types.h> /* for off_t */
19731 #include <stdio.h>
2585019732 int
2585119733 main ()
2585219734 {
25853 return fseeko (stdin, 0, 0) && (fseeko) (stdin, 0, 0);
19735 int (*fp) (FILE *, off_t, int) = fseeko;
19736 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
2585419737 ;
2585519738 return 0;
2585619739 }
2586119744 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2586219745 *) ac_try_echo=$ac_try;;
2586319746 esac
25864 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19747 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19748 $as_echo "$ac_try_echo") >&5
2586519749 (eval "$ac_link") 2>conftest.er1
2586619750 ac_status=$?
2586719751 grep -v '^ *+' conftest.er1 >conftest.err
2586819752 rm -f conftest.er1
2586919753 cat conftest.err >&5
25870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19754 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2587119755 (exit $ac_status); } && {
2587219756 test -z "$ac_c_werror_flag" ||
2587319757 test ! -s conftest.err
25874 } && test -s conftest$ac_exeext &&
25875 $as_test_x conftest$ac_exeext; then
19758 } && test -s conftest$ac_exeext && {
19759 test "$cross_compiling" = yes ||
19760 $as_test_x conftest$ac_exeext
19761 }; then
2587619762 ac_cv_sys_largefile_source=1; break
2587719763 else
25878 echo "$as_me: failed program was:" >&5
19764 $as_echo "$as_me: failed program was:" >&5
2587919765 sed 's/^/| /' conftest.$ac_ext >&5
2588019766
2588119767
2588219768 fi
2588319769
19770 rm -rf conftest.dSYM
2588419771 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
2588519772 conftest$ac_exeext conftest.$ac_ext
2588619773 ac_cv_sys_largefile_source=unknown
2588719774 break
2588819775 done
2588919776 fi
25890 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
25891 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6; }
19777 { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
19778 $as_echo "$ac_cv_sys_largefile_source" >&6; }
2589219779 case $ac_cv_sys_largefile_source in #(
2589319780 no | unknown) ;;
2589419781 *)
2589719784 _ACEOF
2589819785 ;;
2589919786 esac
25900 rm -f conftest*
19787 rm -rf conftest*
2590119788
2590219789 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
2590319790 # in glibc 2.1.3, but that breaks too many other things.
2591819805
2591919806 if test "$enable_largefile" != no; then
2592019807
25921 { echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
25922 echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6; }
19808 { $as_echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
19809 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
2592319810 if test "${ac_cv_sys_largefile_CC+set}" = set; then
25924 echo $ECHO_N "(cached) $ECHO_C" >&6
19811 $as_echo_n "(cached) " >&6
2592519812 else
2592619813 ac_cv_sys_largefile_CC=no
2592719814 if test "$GCC" != yes; then
2595819845 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2595919846 *) ac_try_echo=$ac_try;;
2596019847 esac
25961 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19848 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19849 $as_echo "$ac_try_echo") >&5
2596219850 (eval "$ac_compile") 2>conftest.er1
2596319851 ac_status=$?
2596419852 grep -v '^ *+' conftest.er1 >conftest.err
2596519853 rm -f conftest.er1
2596619854 cat conftest.err >&5
25967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19855 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2596819856 (exit $ac_status); } && {
2596919857 test -z "$ac_c_werror_flag" ||
2597019858 test ! -s conftest.err
2597119859 } && test -s conftest.$ac_objext; then
2597219860 break
2597319861 else
25974 echo "$as_me: failed program was:" >&5
19862 $as_echo "$as_me: failed program was:" >&5
2597519863 sed 's/^/| /' conftest.$ac_ext >&5
2597619864
2597719865
2598519873 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2598619874 *) ac_try_echo=$ac_try;;
2598719875 esac
25988 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19876 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19877 $as_echo "$ac_try_echo") >&5
2598919878 (eval "$ac_compile") 2>conftest.er1
2599019879 ac_status=$?
2599119880 grep -v '^ *+' conftest.er1 >conftest.err
2599219881 rm -f conftest.er1
2599319882 cat conftest.err >&5
25994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19883 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2599519884 (exit $ac_status); } && {
2599619885 test -z "$ac_c_werror_flag" ||
2599719886 test ! -s conftest.err
2599819887 } && test -s conftest.$ac_objext; then
2599919888 ac_cv_sys_largefile_CC=' -n32'; break
2600019889 else
26001 echo "$as_me: failed program was:" >&5
19890 $as_echo "$as_me: failed program was:" >&5
2600219891 sed 's/^/| /' conftest.$ac_ext >&5
2600319892
2600419893
2601119900 rm -f conftest.$ac_ext
2601219901 fi
2601319902 fi
26014 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
26015 echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6; }
19903 { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
19904 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
2601619905 if test "$ac_cv_sys_largefile_CC" != no; then
2601719906 CC=$CC$ac_cv_sys_largefile_CC
2601819907 fi
2601919908
26020 { echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
26021 echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6; }
19909 { $as_echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
19910 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
2602219911 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
26023 echo $ECHO_N "(cached) $ECHO_C" >&6
19912 $as_echo_n "(cached) " >&6
2602419913 else
2602519914 while :; do
2602619915 cat >conftest.$ac_ext <<_ACEOF
2605219941 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2605319942 *) ac_try_echo=$ac_try;;
2605419943 esac
26055 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19944 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19945 $as_echo "$ac_try_echo") >&5
2605619946 (eval "$ac_compile") 2>conftest.er1
2605719947 ac_status=$?
2605819948 grep -v '^ *+' conftest.er1 >conftest.err
2605919949 rm -f conftest.er1
2606019950 cat conftest.err >&5
26061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19951 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2606219952 (exit $ac_status); } && {
2606319953 test -z "$ac_c_werror_flag" ||
2606419954 test ! -s conftest.err
2606519955 } && test -s conftest.$ac_objext; then
2606619956 ac_cv_sys_file_offset_bits=no; break
2606719957 else
26068 echo "$as_me: failed program was:" >&5
19958 $as_echo "$as_me: failed program was:" >&5
2606919959 sed 's/^/| /' conftest.$ac_ext >&5
2607019960
2607119961
2610219992 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2610319993 *) ac_try_echo=$ac_try;;
2610419994 esac
26105 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19995 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19996 $as_echo "$ac_try_echo") >&5
2610619997 (eval "$ac_compile") 2>conftest.er1
2610719998 ac_status=$?
2610819999 grep -v '^ *+' conftest.er1 >conftest.err
2610920000 rm -f conftest.er1
2611020001 cat conftest.err >&5
26111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20002 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2611220003 (exit $ac_status); } && {
2611320004 test -z "$ac_c_werror_flag" ||
2611420005 test ! -s conftest.err
2611520006 } && test -s conftest.$ac_objext; then
2611620007 ac_cv_sys_file_offset_bits=64; break
2611720008 else
26118 echo "$as_me: failed program was:" >&5
20009 $as_echo "$as_me: failed program was:" >&5
2611920010 sed 's/^/| /' conftest.$ac_ext >&5
2612020011
2612120012
2612620017 break
2612720018 done
2612820019 fi
26129 { echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
26130 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6; }
20020 { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
20021 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
2613120022 case $ac_cv_sys_file_offset_bits in #(
2613220023 no | unknown) ;;
2613320024 *)
2613620027 _ACEOF
2613720028 ;;
2613820029 esac
26139 rm -f conftest*
20030 rm -rf conftest*
2614020031 if test $ac_cv_sys_file_offset_bits = unknown; then
26141 { echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
26142 echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6; }
20032 { $as_echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
20033 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
2614320034 if test "${ac_cv_sys_large_files+set}" = set; then
26144 echo $ECHO_N "(cached) $ECHO_C" >&6
20035 $as_echo_n "(cached) " >&6
2614520036 else
2614620037 while :; do
2614720038 cat >conftest.$ac_ext <<_ACEOF
2617320064 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2617420065 *) ac_try_echo=$ac_try;;
2617520066 esac
26176 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20067 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20068 $as_echo "$ac_try_echo") >&5
2617720069 (eval "$ac_compile") 2>conftest.er1
2617820070 ac_status=$?
2617920071 grep -v '^ *+' conftest.er1 >conftest.err
2618020072 rm -f conftest.er1
2618120073 cat conftest.err >&5
26182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20074 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2618320075 (exit $ac_status); } && {
2618420076 test -z "$ac_c_werror_flag" ||
2618520077 test ! -s conftest.err
2618620078 } && test -s conftest.$ac_objext; then
2618720079 ac_cv_sys_large_files=no; break
2618820080 else
26189 echo "$as_me: failed program was:" >&5
20081 $as_echo "$as_me: failed program was:" >&5
2619020082 sed 's/^/| /' conftest.$ac_ext >&5
2619120083
2619220084
2622320115 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2622420116 *) ac_try_echo=$ac_try;;
2622520117 esac
26226 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20118 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20119 $as_echo "$ac_try_echo") >&5
2622720120 (eval "$ac_compile") 2>conftest.er1
2622820121 ac_status=$?
2622920122 grep -v '^ *+' conftest.er1 >conftest.err
2623020123 rm -f conftest.er1
2623120124 cat conftest.err >&5
26232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20125 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2623320126 (exit $ac_status); } && {
2623420127 test -z "$ac_c_werror_flag" ||
2623520128 test ! -s conftest.err
2623620129 } && test -s conftest.$ac_objext; then
2623720130 ac_cv_sys_large_files=1; break
2623820131 else
26239 echo "$as_me: failed program was:" >&5
20132 $as_echo "$as_me: failed program was:" >&5
2624020133 sed 's/^/| /' conftest.$ac_ext >&5
2624120134
2624220135
2624720140 break
2624820141 done
2624920142 fi
26250 { echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
26251 echo "${ECHO_T}$ac_cv_sys_large_files" >&6; }
20143 { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
20144 $as_echo "$ac_cv_sys_large_files" >&6; }
2625220145 case $ac_cv_sys_large_files in #(
2625320146 no | unknown) ;;
2625420147 *)
2625720150 _ACEOF
2625820151 ;;
2625920152 esac
26260 rm -f conftest*
20153 rm -rf conftest*
2626120154 fi
2626220155 fi
2626320156
2626420157
2626520158
2626620159
26267 { echo "$as_me:$LINENO: checking whether we need -D_LARGEFILE_SOURCE=1 as a flag for $CC" >&5
26268 echo $ECHO_N "checking whether we need -D_LARGEFILE_SOURCE=1 as a flag for $CC... $ECHO_C" >&6; }
20160 { $as_echo "$as_me:$LINENO: checking whether we need -D_LARGEFILE_SOURCE=1 as a flag for $CC" >&5
20161 $as_echo_n "checking whether we need -D_LARGEFILE_SOURCE=1 as a flag for $CC... " >&6; }
2626920162 cache=_D_LARGEFILE_SOURCE_1
2627020163 if { as_var=cv_prog_cc_flag_needed_$cache; eval "test \"\${$as_var+set}\" = set"; }; then
26271 echo $ECHO_N "(cached) $ECHO_C" >&6
20164 $as_echo_n "(cached) " >&6
2627220165 else
2627320166
2627420167 echo '
2630020193 fi
2630120194
2630220195 if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = yes"; then
26303 { echo "$as_me:$LINENO: result: yes" >&5
26304 echo "${ECHO_T}yes" >&6; }
20196 { $as_echo "$as_me:$LINENO: result: yes" >&5
20197 $as_echo "yes" >&6; }
2630520198 :
2630620199 CFLAGS="$CFLAGS -D_LARGEFILE_SOURCE=1"
2630720200 else
2630820201 if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = no"; then
26309 { echo "$as_me:$LINENO: result: no" >&5
26310 echo "${ECHO_T}no" >&6; }
20202 { $as_echo "$as_me:$LINENO: result: no" >&5
20203 $as_echo "no" >&6; }
2631120204 #echo 'Test with flag is no!'
2631220205 #cat conftest.c
2631320206 #echo "$CC $CFLAGS -D_LARGEFILE_SOURCE=1 $ERRFLAG -c conftest.c 2>&1"
2631620209 :
2631720210
2631820211 else
26319 { echo "$as_me:$LINENO: result: failed" >&5
26320 echo "${ECHO_T}failed" >&6; }
20212 { $as_echo "$as_me:$LINENO: result: failed" >&5
20213 $as_echo "failed" >&6; }
2632120214 :
2632220215
2632320216 fi
2632620219
2632720220
2632820221
26329 { echo "$as_me:$LINENO: checking for getaddrinfo" >&5
26330 echo $ECHO_N "checking for getaddrinfo... $ECHO_C" >&6; }
20222 { $as_echo "$as_me:$LINENO: checking for getaddrinfo" >&5
20223 $as_echo_n "checking for getaddrinfo... " >&6; }
2633120224 ac_cv_func_getaddrinfo=no
2633220225 cat >conftest.$ac_ext <<_ACEOF
2633320226
2635220245 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2635320246 *) ac_try_echo=$ac_try;;
2635420247 esac
26355 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20248 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20249 $as_echo "$ac_try_echo") >&5
2635620250 (eval "$ac_link") 2>conftest.er1
2635720251 ac_status=$?
2635820252 grep -v '^ *+' conftest.er1 >conftest.err
2635920253 rm -f conftest.er1
2636020254 cat conftest.err >&5
26361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20255 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2636220256 (exit $ac_status); } && {
2636320257 test -z "$ac_c_werror_flag" ||
2636420258 test ! -s conftest.err
26365 } && test -s conftest$ac_exeext &&
26366 $as_test_x conftest$ac_exeext; then
20259 } && test -s conftest$ac_exeext && {
20260 test "$cross_compiling" = yes ||
20261 $as_test_x conftest$ac_exeext
20262 }; then
2636720263 ac_cv_func_getaddrinfo="yes"
2636820264 else
26369 echo "$as_me: failed program was:" >&5
20265 $as_echo "$as_me: failed program was:" >&5
2637020266 sed 's/^/| /' conftest.$ac_ext >&5
2637120267
2637220268 ORIGLIBS="$LIBS"
2639920295 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2640020296 *) ac_try_echo=$ac_try;;
2640120297 esac
26402 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20298 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20299 $as_echo "$ac_try_echo") >&5
2640320300 (eval "$ac_link") 2>conftest.er1
2640420301 ac_status=$?
2640520302 grep -v '^ *+' conftest.er1 >conftest.err
2640620303 rm -f conftest.er1
2640720304 cat conftest.err >&5
26408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20305 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2640920306 (exit $ac_status); } && {
2641020307 test -z "$ac_c_werror_flag" ||
2641120308 test ! -s conftest.err
26412 } && test -s conftest$ac_exeext &&
26413 $as_test_x conftest$ac_exeext; then
20309 } && test -s conftest$ac_exeext && {
20310 test "$cross_compiling" = yes ||
20311 $as_test_x conftest$ac_exeext
20312 }; then
2641420313
2641520314 ac_cv_func_getaddrinfo="yes"
2641620315
2642120320 USE_WINSOCK="1"
2642220321
2642320322 else
26424 echo "$as_me: failed program was:" >&5
20323 $as_echo "$as_me: failed program was:" >&5
2642520324 sed 's/^/| /' conftest.$ac_ext >&5
2642620325
2642720326
2643020329
2643120330 fi
2643220331
20332 rm -rf conftest.dSYM
2643320333 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
2643420334 conftest$ac_exeext conftest.$ac_ext
2643520335
2643620336 fi
2643720337
20338 rm -rf conftest.dSYM
2643820339 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
2643920340 conftest$ac_exeext conftest.$ac_ext
2644020341
26441 { echo "$as_me:$LINENO: result: $ac_cv_func_getaddrinfo" >&5
26442 echo "${ECHO_T}$ac_cv_func_getaddrinfo" >&6; }
20342 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_getaddrinfo" >&5
20343 $as_echo "$ac_cv_func_getaddrinfo" >&6; }
2644320344 if test $ac_cv_func_getaddrinfo = yes; then
2644420345
2644520346 cat >>confdefs.h <<\_ACEOF
2647020371
2647120372 for ac_func in daemon
2647220373 do
26473 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26474 { echo "$as_me:$LINENO: checking for $ac_func" >&5
26475 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
20374 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20375 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
20376 $as_echo_n "checking for $ac_func... " >&6; }
2647620377 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
26477 echo $ECHO_N "(cached) $ECHO_C" >&6
20378 $as_echo_n "(cached) " >&6
2647820379 else
2647920380 cat >conftest.$ac_ext <<_ACEOF
2648020381 /* confdefs.h. */
2652720428 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2652820429 *) ac_try_echo=$ac_try;;
2652920430 esac
26530 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20431 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20432 $as_echo "$ac_try_echo") >&5
2653120433 (eval "$ac_link") 2>conftest.er1
2653220434 ac_status=$?
2653320435 grep -v '^ *+' conftest.er1 >conftest.err
2653420436 rm -f conftest.er1
2653520437 cat conftest.err >&5
26536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20438 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2653720439 (exit $ac_status); } && {
2653820440 test -z "$ac_c_werror_flag" ||
2653920441 test ! -s conftest.err
26540 } && test -s conftest$ac_exeext &&
26541 $as_test_x conftest$ac_exeext; then
20442 } && test -s conftest$ac_exeext && {
20443 test "$cross_compiling" = yes ||
20444 $as_test_x conftest$ac_exeext
20445 }; then
2654220446 eval "$as_ac_var=yes"
2654320447 else
26544 echo "$as_me: failed program was:" >&5
20448 $as_echo "$as_me: failed program was:" >&5
2654520449 sed 's/^/| /' conftest.$ac_ext >&5
2654620450
2654720451 eval "$as_ac_var=no"
2654820452 fi
2654920453
20454 rm -rf conftest.dSYM
2655020455 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
2655120456 conftest$ac_exeext conftest.$ac_ext
2655220457 fi
26553 ac_res=`eval echo '${'$as_ac_var'}'`
26554 { echo "$as_me:$LINENO: result: $ac_res" >&5
26555 echo "${ECHO_T}$ac_res" >&6; }
26556 if test `eval echo '${'$as_ac_var'}'` = yes; then
20458 ac_res=`eval 'as_val=${'$as_ac_var'}
20459 $as_echo "$as_val"'`
20460 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
20461 $as_echo "$ac_res" >&6; }
20462 as_val=`eval 'as_val=${'$as_ac_var'}
20463 $as_echo "$as_val"'`
20464 if test "x$as_val" = x""yes; then
2655720465 cat >>confdefs.h <<_ACEOF
26558 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20466 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
2655920467 _ACEOF
2656020468
2656120469 fi
2656420472 if test $ac_cv_func_daemon = yes; then
2656520473
2656620474
26567 { echo "$as_me:$LINENO: checking if daemon is deprecated" >&5
26568 echo $ECHO_N "checking if daemon is deprecated... $ECHO_C" >&6; }
20475 { $as_echo "$as_me:$LINENO: checking if daemon is deprecated" >&5
20476 $as_echo_n "checking if daemon is deprecated... " >&6; }
2656920477 cache=`echo daemon | sed 'y%.=/+-%___p_%'`
2657020478 if { as_var=cv_cc_deprecated_$cache; eval "test \"\${$as_var+set}\" = set"; }; then
26571 echo $ECHO_N "(cached) $ECHO_C" >&6
20479 $as_echo_n "(cached) " >&6
2657220480 else
2657320481
2657420482 echo '
2658520493 fi
2658620494
2658720495 if eval "test \"`echo '$cv_cc_deprecated_'$cache`\" = yes"; then
26588 { echo "$as_me:$LINENO: result: yes" >&5
26589 echo "${ECHO_T}yes" >&6; }
20496 { $as_echo "$as_me:$LINENO: result: yes" >&5
20497 $as_echo "yes" >&6; }
2659020498
2659120499 cat >>confdefs.h <<_ACEOF
2659220500 #define DEPRECATED_DAEMON 1
2659520503 :
2659620504
2659720505 else
26598 { echo "$as_me:$LINENO: result: no" >&5
26599 echo "${ECHO_T}no" >&6; }
20506 { $as_echo "$as_me:$LINENO: result: no" >&5
20507 $as_echo "no" >&6; }
2660020508 :
2660120509
2660220510 fi
2660320511
2660420512 fi
2660520513
26606 { echo "$as_me:$LINENO: checking for library containing setusercontext" >&5
26607 echo $ECHO_N "checking for library containing setusercontext... $ECHO_C" >&6; }
20514 { $as_echo "$as_me:$LINENO: checking for library containing setusercontext" >&5
20515 $as_echo_n "checking for library containing setusercontext... " >&6; }
2660820516 if test "${ac_cv_search_setusercontext+set}" = set; then
26609 echo $ECHO_N "(cached) $ECHO_C" >&6
20517 $as_echo_n "(cached) " >&6
2661020518 else
2661120519 ac_func_search_save_LIBS=$LIBS
2661220520 cat >conftest.$ac_ext <<_ACEOF
2664420552 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2664520553 *) ac_try_echo=$ac_try;;
2664620554 esac
26647 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20555 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20556 $as_echo "$ac_try_echo") >&5
2664820557 (eval "$ac_link") 2>conftest.er1
2664920558 ac_status=$?
2665020559 grep -v '^ *+' conftest.er1 >conftest.err
2665120560 rm -f conftest.er1
2665220561 cat conftest.err >&5
26653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20562 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2665420563 (exit $ac_status); } && {
2665520564 test -z "$ac_c_werror_flag" ||
2665620565 test ! -s conftest.err
26657 } && test -s conftest$ac_exeext &&
26658 $as_test_x conftest$ac_exeext; then
20566 } && test -s conftest$ac_exeext && {
20567 test "$cross_compiling" = yes ||
20568 $as_test_x conftest$ac_exeext
20569 }; then
2665920570 ac_cv_search_setusercontext=$ac_res
2666020571 else
26661 echo "$as_me: failed program was:" >&5
20572 $as_echo "$as_me: failed program was:" >&5
2666220573 sed 's/^/| /' conftest.$ac_ext >&5
2666320574
2666420575
2666520576 fi
2666620577
20578 rm -rf conftest.dSYM
2666720579 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
2666820580 conftest$ac_exeext
2666920581 if test "${ac_cv_search_setusercontext+set}" = set; then
2667820590 rm conftest.$ac_ext
2667920591 LIBS=$ac_func_search_save_LIBS
2668020592 fi
26681 { echo "$as_me:$LINENO: result: $ac_cv_search_setusercontext" >&5
26682 echo "${ECHO_T}$ac_cv_search_setusercontext" >&6; }
20593 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_setusercontext" >&5
20594 $as_echo "$ac_cv_search_setusercontext" >&6; }
2668320595 ac_res=$ac_cv_search_setusercontext
2668420596 if test "$ac_res" != no; then
2668520597 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
2671420626
2671520627 for ac_func in tzset sigprocmask fcntl getpwnam getrlimit setsid sbrk chroot kill sleep usleep random srandom recvmsg sendmsg writev setresuid setreuid setresgid setregid glob initgroups strftime localtime_r setusercontext _beginthreadex
2671620628 do
26717 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26718 { echo "$as_me:$LINENO: checking for $ac_func" >&5
26719 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
20629 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20630 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
20631 $as_echo_n "checking for $ac_func... " >&6; }
2672020632 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
26721 echo $ECHO_N "(cached) $ECHO_C" >&6
20633 $as_echo_n "(cached) " >&6
2672220634 else
2672320635 cat >conftest.$ac_ext <<_ACEOF
2672420636 /* confdefs.h. */
2677120683 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2677220684 *) ac_try_echo=$ac_try;;
2677320685 esac
26774 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20686 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20687 $as_echo "$ac_try_echo") >&5
2677520688 (eval "$ac_link") 2>conftest.er1
2677620689 ac_status=$?
2677720690 grep -v '^ *+' conftest.er1 >conftest.err
2677820691 rm -f conftest.er1
2677920692 cat conftest.err >&5
26780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20693 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2678120694 (exit $ac_status); } && {
2678220695 test -z "$ac_c_werror_flag" ||
2678320696 test ! -s conftest.err
26784 } && test -s conftest$ac_exeext &&
26785 $as_test_x conftest$ac_exeext; then
20697 } && test -s conftest$ac_exeext && {
20698 test "$cross_compiling" = yes ||
20699 $as_test_x conftest$ac_exeext
20700 }; then
2678620701 eval "$as_ac_var=yes"
2678720702 else
26788 echo "$as_me: failed program was:" >&5
20703 $as_echo "$as_me: failed program was:" >&5
2678920704 sed 's/^/| /' conftest.$ac_ext >&5
2679020705
2679120706 eval "$as_ac_var=no"
2679220707 fi
2679320708
20709 rm -rf conftest.dSYM
2679420710 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
2679520711 conftest$ac_exeext conftest.$ac_ext
2679620712 fi
26797 ac_res=`eval echo '${'$as_ac_var'}'`
26798 { echo "$as_me:$LINENO: result: $ac_res" >&5
26799 echo "${ECHO_T}$ac_res" >&6; }
26800 if test `eval echo '${'$as_ac_var'}'` = yes; then
20713 ac_res=`eval 'as_val=${'$as_ac_var'}
20714 $as_echo "$as_val"'`
20715 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
20716 $as_echo "$ac_res" >&6; }
20717 as_val=`eval 'as_val=${'$as_ac_var'}
20718 $as_echo "$as_val"'`
20719 if test "x$as_val" = x""yes; then
2680120720 cat >>confdefs.h <<_ACEOF
26802 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20721 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
2680320722 _ACEOF
2680420723
2680520724 fi
2681520734
2681620735 fi
2681720736
26818 { echo "$as_me:$LINENO: checking if nonblocking sockets work" >&5
26819 echo $ECHO_N "checking if nonblocking sockets work... $ECHO_C" >&6; }
20737 { $as_echo "$as_me:$LINENO: checking if nonblocking sockets work" >&5
20738 $as_echo_n "checking if nonblocking sockets work... " >&6; }
2682020739 if test "$cross_compiling" = yes; then
2682120740
26822 { echo "$as_me:$LINENO: result: crosscompile(yes)" >&5
26823 echo "${ECHO_T}crosscompile(yes)" >&6; }
20741 { $as_echo "$as_me:$LINENO: result: crosscompile(yes)" >&5
20742 $as_echo "crosscompile(yes)" >&6; }
2682420743
2682520744 else
2682620745 cat >conftest.$ac_ext <<_ACEOF
2696120880 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2696220881 *) ac_try_echo=$ac_try;;
2696320882 esac
26964 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20883 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20884 $as_echo "$ac_try_echo") >&5
2696520885 (eval "$ac_link") 2>&5
2696620886 ac_status=$?
26967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20887 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2696820888 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
2696920889 { (case "(($ac_try" in
2697020890 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2697120891 *) ac_try_echo=$ac_try;;
2697220892 esac
26973 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20893 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20894 $as_echo "$ac_try_echo") >&5
2697420895 (eval "$ac_try") 2>&5
2697520896 ac_status=$?
26976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20897 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2697720898 (exit $ac_status); }; }; then
2697820899
26979 { echo "$as_me:$LINENO: result: yes" >&5
26980 echo "${ECHO_T}yes" >&6; }
26981
26982 else
26983 echo "$as_me: program exited with status $ac_status" >&5
26984 echo "$as_me: failed program was:" >&5
20900 { $as_echo "$as_me:$LINENO: result: yes" >&5
20901 $as_echo "yes" >&6; }
20902
20903 else
20904 $as_echo "$as_me: program exited with status $ac_status" >&5
20905 $as_echo "$as_me: failed program was:" >&5
2698520906 sed 's/^/| /' conftest.$ac_ext >&5
2698620907
2698720908 ( exit $ac_status )
2698820909
26989 { echo "$as_me:$LINENO: result: no" >&5
26990 echo "${ECHO_T}no" >&6; }
20910 { $as_echo "$as_me:$LINENO: result: no" >&5
20911 $as_echo "no" >&6; }
2699120912
2699220913 cat >>confdefs.h <<\_ACEOF
2699320914 #define NONBLOCKING_IS_BROKEN 1
2699520916
2699620917
2699720918 fi
20919 rm -rf conftest.dSYM
2699820920 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
2699920921 fi
2700020922
2700120923
2700220924
2700320925
27004 { echo "$as_me:$LINENO: checking whether mkdir has one arg" >&5
27005 echo $ECHO_N "checking whether mkdir has one arg... $ECHO_C" >&6; }
20926 { $as_echo "$as_me:$LINENO: checking whether mkdir has one arg" >&5
20927 $as_echo_n "checking whether mkdir has one arg... " >&6; }
2700620928 cat >conftest.$ac_ext <<_ACEOF
2700720929 /* confdefs.h. */
2700820930 _ACEOF
2703520957 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2703620958 *) ac_try_echo=$ac_try;;
2703720959 esac
27038 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20960 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20961 $as_echo "$ac_try_echo") >&5
2703920962 (eval "$ac_compile") 2>conftest.er1
2704020963 ac_status=$?
2704120964 grep -v '^ *+' conftest.er1 >conftest.err
2704220965 rm -f conftest.er1
2704320966 cat conftest.err >&5
27044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20967 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2704520968 (exit $ac_status); } && {
2704620969 test -z "$ac_c_werror_flag" ||
2704720970 test ! -s conftest.err
2704820971 } && test -s conftest.$ac_objext; then
27049 { echo "$as_me:$LINENO: result: yes" >&5
27050 echo "${ECHO_T}yes" >&6; }
20972 { $as_echo "$as_me:$LINENO: result: yes" >&5
20973 $as_echo "yes" >&6; }
2705120974
2705220975 cat >>confdefs.h <<\_ACEOF
2705320976 #define MKDIR_HAS_ONE_ARG 1
2705520978
2705620979
2705720980 else
27058 echo "$as_me: failed program was:" >&5
20981 $as_echo "$as_me: failed program was:" >&5
2705920982 sed 's/^/| /' conftest.$ac_ext >&5
2706020983
27061 { echo "$as_me:$LINENO: result: no" >&5
27062 echo "${ECHO_T}no" >&6; }
20984 { $as_echo "$as_me:$LINENO: result: no" >&5
20985 $as_echo "no" >&6; }
2706320986
2706420987 fi
2706520988
2706720990
2706820991
2706920992 # check ioctlsocket
27070 { echo "$as_me:$LINENO: checking for ioctlsocket" >&5
27071 echo $ECHO_N "checking for ioctlsocket... $ECHO_C" >&6; }
20993 { $as_echo "$as_me:$LINENO: checking for ioctlsocket" >&5
20994 $as_echo_n "checking for ioctlsocket... " >&6; }
2707220995 cat >conftest.$ac_ext <<_ACEOF
2707320996 /* confdefs.h. */
2707420997 _ACEOF
2709621019 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2709721020 *) ac_try_echo=$ac_try;;
2709821021 esac
27099 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21022 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21023 $as_echo "$ac_try_echo") >&5
2710021024 (eval "$ac_link") 2>conftest.er1
2710121025 ac_status=$?
2710221026 grep -v '^ *+' conftest.er1 >conftest.err
2710321027 rm -f conftest.er1
2710421028 cat conftest.err >&5
27105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21029 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2710621030 (exit $ac_status); } && {
2710721031 test -z "$ac_c_werror_flag" ||
2710821032 test ! -s conftest.err
27109 } && test -s conftest$ac_exeext &&
27110 $as_test_x conftest$ac_exeext; then
27111
27112 { echo "$as_me:$LINENO: result: yes" >&5
27113 echo "${ECHO_T}yes" >&6; }
21033 } && test -s conftest$ac_exeext && {
21034 test "$cross_compiling" = yes ||
21035 $as_test_x conftest$ac_exeext
21036 }; then
21037
21038 { $as_echo "$as_me:$LINENO: result: yes" >&5
21039 $as_echo "yes" >&6; }
2711421040
2711521041 cat >>confdefs.h <<\_ACEOF
2711621042 #define HAVE_IOCTLSOCKET 1
2711821044
2711921045
2712021046 else
27121 echo "$as_me: failed program was:" >&5
21047 $as_echo "$as_me: failed program was:" >&5
2712221048 sed 's/^/| /' conftest.$ac_ext >&5
2712321049
27124 { echo "$as_me:$LINENO: result: no" >&5
27125 echo "${ECHO_T}no" >&6; }
27126 fi
27127
21050 { $as_echo "$as_me:$LINENO: result: no" >&5
21051 $as_echo "no" >&6; }
21052 fi
21053
21054 rm -rf conftest.dSYM
2712821055 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
2712921056 conftest$ac_exeext conftest.$ac_ext
2713021057
2713121058
2713221059 for ac_func in inet_aton
2713321060 do
27134 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27135 { echo "$as_me:$LINENO: checking for $ac_func" >&5
27136 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
21061 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
21062 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
21063 $as_echo_n "checking for $ac_func... " >&6; }
2713721064 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
27138 echo $ECHO_N "(cached) $ECHO_C" >&6
21065 $as_echo_n "(cached) " >&6
2713921066 else
2714021067 cat >conftest.$ac_ext <<_ACEOF
2714121068 /* confdefs.h. */
2718821115 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2718921116 *) ac_try_echo=$ac_try;;
2719021117 esac
27191 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21118 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21119 $as_echo "$ac_try_echo") >&5
2719221120 (eval "$ac_link") 2>conftest.er1
2719321121 ac_status=$?
2719421122 grep -v '^ *+' conftest.er1 >conftest.err
2719521123 rm -f conftest.er1
2719621124 cat conftest.err >&5
27197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21125 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2719821126 (exit $ac_status); } && {
2719921127 test -z "$ac_c_werror_flag" ||
2720021128 test ! -s conftest.err
27201 } && test -s conftest$ac_exeext &&
27202 $as_test_x conftest$ac_exeext; then
21129 } && test -s conftest$ac_exeext && {
21130 test "$cross_compiling" = yes ||
21131 $as_test_x conftest$ac_exeext
21132 }; then
2720321133 eval "$as_ac_var=yes"
2720421134 else
27205 echo "$as_me: failed program was:" >&5
21135 $as_echo "$as_me: failed program was:" >&5
2720621136 sed 's/^/| /' conftest.$ac_ext >&5
2720721137
2720821138 eval "$as_ac_var=no"
2720921139 fi
2721021140
21141 rm -rf conftest.dSYM
2721121142 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
2721221143 conftest$ac_exeext conftest.$ac_ext
2721321144 fi
27214 ac_res=`eval echo '${'$as_ac_var'}'`
27215 { echo "$as_me:$LINENO: result: $ac_res" >&5
27216 echo "${ECHO_T}$ac_res" >&6; }
27217 if test `eval echo '${'$as_ac_var'}'` = yes; then
21145 ac_res=`eval 'as_val=${'$as_ac_var'}
21146 $as_echo "$as_val"'`
21147 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
21148 $as_echo "$ac_res" >&6; }
21149 as_val=`eval 'as_val=${'$as_ac_var'}
21150 $as_echo "$as_val"'`
21151 if test "x$as_val" = x""yes; then
2721821152 cat >>confdefs.h <<_ACEOF
27219 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21153 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
2722021154 _ACEOF
2722121155
2722221156 else
2723321167
2723421168 for ac_func in inet_pton
2723521169 do
27236 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27237 { echo "$as_me:$LINENO: checking for $ac_func" >&5
27238 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
21170 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
21171 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
21172 $as_echo_n "checking for $ac_func... " >&6; }
2723921173 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
27240 echo $ECHO_N "(cached) $ECHO_C" >&6
21174 $as_echo_n "(cached) " >&6
2724121175 else
2724221176 cat >conftest.$ac_ext <<_ACEOF
2724321177 /* confdefs.h. */
2729021224 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2729121225 *) ac_try_echo=$ac_try;;
2729221226 esac
27293 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21227 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21228 $as_echo "$ac_try_echo") >&5
2729421229 (eval "$ac_link") 2>conftest.er1
2729521230 ac_status=$?
2729621231 grep -v '^ *+' conftest.er1 >conftest.err
2729721232 rm -f conftest.er1
2729821233 cat conftest.err >&5
27299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21234 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2730021235 (exit $ac_status); } && {
2730121236 test -z "$ac_c_werror_flag" ||
2730221237 test ! -s conftest.err
27303 } && test -s conftest$ac_exeext &&
27304 $as_test_x conftest$ac_exeext; then
21238 } && test -s conftest$ac_exeext && {
21239 test "$cross_compiling" = yes ||
21240 $as_test_x conftest$ac_exeext
21241 }; then
2730521242 eval "$as_ac_var=yes"
2730621243 else
27307 echo "$as_me: failed program was:" >&5
21244 $as_echo "$as_me: failed program was:" >&5
2730821245 sed 's/^/| /' conftest.$ac_ext >&5
2730921246
2731021247 eval "$as_ac_var=no"
2731121248 fi
2731221249
21250 rm -rf conftest.dSYM
2731321251 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
2731421252 conftest$ac_exeext conftest.$ac_ext
2731521253 fi
27316 ac_res=`eval echo '${'$as_ac_var'}'`
27317 { echo "$as_me:$LINENO: result: $ac_res" >&5
27318 echo "${ECHO_T}$ac_res" >&6; }
27319 if test `eval echo '${'$as_ac_var'}'` = yes; then
21254 ac_res=`eval 'as_val=${'$as_ac_var'}
21255 $as_echo "$as_val"'`
21256 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
21257 $as_echo "$ac_res" >&6; }
21258 as_val=`eval 'as_val=${'$as_ac_var'}
21259 $as_echo "$as_val"'`
21260 if test "x$as_val" = x""yes; then
2732021261 cat >>confdefs.h <<_ACEOF
27321 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21262 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
2732221263 _ACEOF
2732321264
2732421265 else
2733521276
2733621277 for ac_func in inet_ntop
2733721278 do
27338 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27339 { echo "$as_me:$LINENO: checking for $ac_func" >&5
27340 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
21279 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
21280 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
21281 $as_echo_n "checking for $ac_func... " >&6; }
2734121282 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
27342 echo $ECHO_N "(cached) $ECHO_C" >&6
21283 $as_echo_n "(cached) " >&6
2734321284 else
2734421285 cat >conftest.$ac_ext <<_ACEOF
2734521286 /* confdefs.h. */
2739221333 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2739321334 *) ac_try_echo=$ac_try;;
2739421335 esac
27395 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21336 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21337 $as_echo "$ac_try_echo") >&5
2739621338 (eval "$ac_link") 2>conftest.er1
2739721339 ac_status=$?
2739821340 grep -v '^ *+' conftest.er1 >conftest.err
2739921341 rm -f conftest.er1
2740021342 cat conftest.err >&5
27401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21343 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2740221344 (exit $ac_status); } && {
2740321345 test -z "$ac_c_werror_flag" ||
2740421346 test ! -s conftest.err
27405 } && test -s conftest$ac_exeext &&
27406 $as_test_x conftest$ac_exeext; then
21347 } && test -s conftest$ac_exeext && {
21348 test "$cross_compiling" = yes ||
21349 $as_test_x conftest$ac_exeext
21350 }; then
2740721351 eval "$as_ac_var=yes"
2740821352 else
27409 echo "$as_me: failed program was:" >&5
21353 $as_echo "$as_me: failed program was:" >&5
2741021354 sed 's/^/| /' conftest.$ac_ext >&5
2741121355
2741221356 eval "$as_ac_var=no"
2741321357 fi
2741421358
21359 rm -rf conftest.dSYM
2741521360 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
2741621361 conftest$ac_exeext conftest.$ac_ext
2741721362 fi
27418 ac_res=`eval echo '${'$as_ac_var'}'`
27419 { echo "$as_me:$LINENO: result: $ac_res" >&5
27420 echo "${ECHO_T}$ac_res" >&6; }
27421 if test `eval echo '${'$as_ac_var'}'` = yes; then
21363 ac_res=`eval 'as_val=${'$as_ac_var'}
21364 $as_echo "$as_val"'`
21365 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
21366 $as_echo "$ac_res" >&6; }
21367 as_val=`eval 'as_val=${'$as_ac_var'}
21368 $as_echo "$as_val"'`
21369 if test "x$as_val" = x""yes; then
2742221370 cat >>confdefs.h <<_ACEOF
27423 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21371 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
2742421372 _ACEOF
2742521373
2742621374 else
2743721385
2743821386 for ac_func in snprintf
2743921387 do
27440 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27441 { echo "$as_me:$LINENO: checking for $ac_func" >&5
27442 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
21388 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
21389 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
21390 $as_echo_n "checking for $ac_func... " >&6; }
2744321391 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
27444 echo $ECHO_N "(cached) $ECHO_C" >&6
21392 $as_echo_n "(cached) " >&6
2744521393 else
2744621394 cat >conftest.$ac_ext <<_ACEOF
2744721395 /* confdefs.h. */
2749421442 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2749521443 *) ac_try_echo=$ac_try;;
2749621444 esac
27497 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21445 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21446 $as_echo "$ac_try_echo") >&5
2749821447 (eval "$ac_link") 2>conftest.er1
2749921448 ac_status=$?
2750021449 grep -v '^ *+' conftest.er1 >conftest.err
2750121450 rm -f conftest.er1
2750221451 cat conftest.err >&5
27503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21452 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2750421453 (exit $ac_status); } && {
2750521454 test -z "$ac_c_werror_flag" ||
2750621455 test ! -s conftest.err
27507 } && test -s conftest$ac_exeext &&
27508 $as_test_x conftest$ac_exeext; then
21456 } && test -s conftest$ac_exeext && {
21457 test "$cross_compiling" = yes ||
21458 $as_test_x conftest$ac_exeext
21459 }; then
2750921460 eval "$as_ac_var=yes"
2751021461 else
27511 echo "$as_me: failed program was:" >&5
21462 $as_echo "$as_me: failed program was:" >&5
2751221463 sed 's/^/| /' conftest.$ac_ext >&5
2751321464
2751421465 eval "$as_ac_var=no"
2751521466 fi
2751621467
21468 rm -rf conftest.dSYM
2751721469 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
2751821470 conftest$ac_exeext conftest.$ac_ext
2751921471 fi
27520 ac_res=`eval echo '${'$as_ac_var'}'`
27521 { echo "$as_me:$LINENO: result: $ac_res" >&5
27522 echo "${ECHO_T}$ac_res" >&6; }
27523 if test `eval echo '${'$as_ac_var'}'` = yes; then
21472 ac_res=`eval 'as_val=${'$as_ac_var'}
21473 $as_echo "$as_val"'`
21474 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
21475 $as_echo "$ac_res" >&6; }
21476 as_val=`eval 'as_val=${'$as_ac_var'}
21477 $as_echo "$as_val"'`
21478 if test "x$as_val" = x""yes; then
2752421479 cat >>confdefs.h <<_ACEOF
27525 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21480 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
2752621481 _ACEOF
2752721482
2752821483 else
2753921494
2754021495 for ac_func in strlcpy
2754121496 do
27542 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27543 { echo "$as_me:$LINENO: checking for $ac_func" >&5
27544 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
21497 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
21498 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
21499 $as_echo_n "checking for $ac_func... " >&6; }
2754521500 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
27546 echo $ECHO_N "(cached) $ECHO_C" >&6
21501 $as_echo_n "(cached) " >&6
2754721502 else
2754821503 cat >conftest.$ac_ext <<_ACEOF
2754921504 /* confdefs.h. */
2759621551 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2759721552 *) ac_try_echo=$ac_try;;
2759821553 esac
27599 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21554 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21555 $as_echo "$ac_try_echo") >&5
2760021556 (eval "$ac_link") 2>conftest.er1
2760121557 ac_status=$?
2760221558 grep -v '^ *+' conftest.er1 >conftest.err
2760321559 rm -f conftest.er1
2760421560 cat conftest.err >&5
27605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21561 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2760621562 (exit $ac_status); } && {
2760721563 test -z "$ac_c_werror_flag" ||
2760821564 test ! -s conftest.err
27609 } && test -s conftest$ac_exeext &&
27610 $as_test_x conftest$ac_exeext; then
21565 } && test -s conftest$ac_exeext && {
21566 test "$cross_compiling" = yes ||
21567 $as_test_x conftest$ac_exeext
21568 }; then
2761121569 eval "$as_ac_var=yes"
2761221570 else
27613 echo "$as_me: failed program was:" >&5
21571 $as_echo "$as_me: failed program was:" >&5
2761421572 sed 's/^/| /' conftest.$ac_ext >&5
2761521573
2761621574 eval "$as_ac_var=no"
2761721575 fi
2761821576
21577 rm -rf conftest.dSYM
2761921578 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
2762021579 conftest$ac_exeext conftest.$ac_ext
2762121580 fi
27622 ac_res=`eval echo '${'$as_ac_var'}'`
27623 { echo "$as_me:$LINENO: result: $ac_res" >&5
27624 echo "${ECHO_T}$ac_res" >&6; }
27625 if test `eval echo '${'$as_ac_var'}'` = yes; then
21581 ac_res=`eval 'as_val=${'$as_ac_var'}
21582 $as_echo "$as_val"'`
21583 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
21584 $as_echo "$ac_res" >&6; }
21585 as_val=`eval 'as_val=${'$as_ac_var'}
21586 $as_echo "$as_val"'`
21587 if test "x$as_val" = x""yes; then
2762621588 cat >>confdefs.h <<_ACEOF
27627 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21589 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
2762821590 _ACEOF
2762921591
2763021592 else
2764121603
2764221604 for ac_func in memmove
2764321605 do
27644 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27645 { echo "$as_me:$LINENO: checking for $ac_func" >&5
27646 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
21606 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
21607 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
21608 $as_echo_n "checking for $ac_func... " >&6; }
2764721609 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
27648 echo $ECHO_N "(cached) $ECHO_C" >&6
21610 $as_echo_n "(cached) " >&6
2764921611 else
2765021612 cat >conftest.$ac_ext <<_ACEOF
2765121613 /* confdefs.h. */
2769821660 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2769921661 *) ac_try_echo=$ac_try;;
2770021662 esac
27701 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21663 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21664 $as_echo "$ac_try_echo") >&5
2770221665 (eval "$ac_link") 2>conftest.er1
2770321666 ac_status=$?
2770421667 grep -v '^ *+' conftest.er1 >conftest.err
2770521668 rm -f conftest.er1
2770621669 cat conftest.err >&5
27707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21670 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2770821671 (exit $ac_status); } && {
2770921672 test -z "$ac_c_werror_flag" ||
2771021673 test ! -s conftest.err
27711 } && test -s conftest$ac_exeext &&
27712 $as_test_x conftest$ac_exeext; then
21674 } && test -s conftest$ac_exeext && {
21675 test "$cross_compiling" = yes ||
21676 $as_test_x conftest$ac_exeext
21677 }; then
2771321678 eval "$as_ac_var=yes"
2771421679 else
27715 echo "$as_me: failed program was:" >&5
21680 $as_echo "$as_me: failed program was:" >&5
2771621681 sed 's/^/| /' conftest.$ac_ext >&5
2771721682
2771821683 eval "$as_ac_var=no"
2771921684 fi
2772021685
21686 rm -rf conftest.dSYM
2772121687 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
2772221688 conftest$ac_exeext conftest.$ac_ext
2772321689 fi
27724 ac_res=`eval echo '${'$as_ac_var'}'`
27725 { echo "$as_me:$LINENO: result: $ac_res" >&5
27726 echo "${ECHO_T}$ac_res" >&6; }
27727 if test `eval echo '${'$as_ac_var'}'` = yes; then
21690 ac_res=`eval 'as_val=${'$as_ac_var'}
21691 $as_echo "$as_val"'`
21692 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
21693 $as_echo "$ac_res" >&6; }
21694 as_val=`eval 'as_val=${'$as_ac_var'}
21695 $as_echo "$as_val"'`
21696 if test "x$as_val" = x""yes; then
2772821697 cat >>confdefs.h <<_ACEOF
27729 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21698 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
2773021699 _ACEOF
2773121700
2773221701 else
2774321712
2774421713 for ac_func in gmtime_r
2774521714 do
27746 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27747 { echo "$as_me:$LINENO: checking for $ac_func" >&5
27748 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
21715 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
21716 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
21717 $as_echo_n "checking for $ac_func... " >&6; }
2774921718 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
27750 echo $ECHO_N "(cached) $ECHO_C" >&6
21719 $as_echo_n "(cached) " >&6
2775121720 else
2775221721 cat >conftest.$ac_ext <<_ACEOF
2775321722 /* confdefs.h. */
2780021769 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2780121770 *) ac_try_echo=$ac_try;;
2780221771 esac
27803 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21772 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21773 $as_echo "$ac_try_echo") >&5
2780421774 (eval "$ac_link") 2>conftest.er1
2780521775 ac_status=$?
2780621776 grep -v '^ *+' conftest.er1 >conftest.err
2780721777 rm -f conftest.er1
2780821778 cat conftest.err >&5
27809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21779 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2781021780 (exit $ac_status); } && {
2781121781 test -z "$ac_c_werror_flag" ||
2781221782 test ! -s conftest.err
27813 } && test -s conftest$ac_exeext &&
27814 $as_test_x conftest$ac_exeext; then
21783 } && test -s conftest$ac_exeext && {
21784 test "$cross_compiling" = yes ||
21785 $as_test_x conftest$ac_exeext
21786 }; then
2781521787 eval "$as_ac_var=yes"
2781621788 else
27817 echo "$as_me: failed program was:" >&5
21789 $as_echo "$as_me: failed program was:" >&5
2781821790 sed 's/^/| /' conftest.$ac_ext >&5
2781921791
2782021792 eval "$as_ac_var=no"
2782121793 fi
2782221794
21795 rm -rf conftest.dSYM
2782321796 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
2782421797 conftest$ac_exeext conftest.$ac_ext
2782521798 fi
27826 ac_res=`eval echo '${'$as_ac_var'}'`
27827 { echo "$as_me:$LINENO: result: $ac_res" >&5
27828 echo "${ECHO_T}$ac_res" >&6; }
27829 if test `eval echo '${'$as_ac_var'}'` = yes; then
21799 ac_res=`eval 'as_val=${'$as_ac_var'}
21800 $as_echo "$as_val"'`
21801 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
21802 $as_echo "$ac_res" >&6; }
21803 as_val=`eval 'as_val=${'$as_ac_var'}
21804 $as_echo "$as_val"'`
21805 if test "x$as_val" = x""yes; then
2783021806 cat >>confdefs.h <<_ACEOF
27831 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21807 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
2783221808 _ACEOF
2783321809
2783421810 else
2785021826 # Check whether --with-ldns was given.
2785121827 if test "${with_ldns+set}" = set; then
2785221828 withval=$with_ldns; specialldnsdir="$withval"
27853 CPPFLAGS="-I$withval/include $CPPFLAGS"
27854 LDFLAGS="-L$withval -L$withval/lib $LDFLAGS"
21829 if test "$withval" != ""; then
21830 CPPFLAGS="-I$withval/include $CPPFLAGS"
21831 LDFLAGS="-L$withval -L$withval/lib $LDFLAGS"
2785521832
2785621833 if test "x$enable_rpath" = xyes; then
2785721834 if echo "$withval/lib" | grep "^/" >/dev/null; then
2785921836 fi
2786021837 fi
2786121838
21839 fi
2786221840 ldnsdir="$withval"
2786321841
2786421842
2787721855 # check if ldns is good enough
2787821856 if test "$use_ldns_builtin" = "no"; then
2787921857
27880 { echo "$as_me:$LINENO: checking for ldns_buffer_copy in -lldns" >&5
27881 echo $ECHO_N "checking for ldns_buffer_copy in -lldns... $ECHO_C" >&6; }
21858 { $as_echo "$as_me:$LINENO: checking for ldns_buffer_copy in -lldns" >&5
21859 $as_echo_n "checking for ldns_buffer_copy in -lldns... " >&6; }
2788221860 if test "${ac_cv_lib_ldns_ldns_buffer_copy+set}" = set; then
27883 echo $ECHO_N "(cached) $ECHO_C" >&6
21861 $as_echo_n "(cached) " >&6
2788421862 else
2788521863 ac_check_lib_save_LIBS=$LIBS
2788621864 LIBS="-lldns $LIBS"
2791221890 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2791321891 *) ac_try_echo=$ac_try;;
2791421892 esac
27915 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21893 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21894 $as_echo "$ac_try_echo") >&5
2791621895 (eval "$ac_link") 2>conftest.er1
2791721896 ac_status=$?
2791821897 grep -v '^ *+' conftest.er1 >conftest.err
2791921898 rm -f conftest.er1
2792021899 cat conftest.err >&5
27921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21900 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2792221901 (exit $ac_status); } && {
2792321902 test -z "$ac_c_werror_flag" ||
2792421903 test ! -s conftest.err
27925 } && test -s conftest$ac_exeext &&
27926 $as_test_x conftest$ac_exeext; then
21904 } && test -s conftest$ac_exeext && {
21905 test "$cross_compiling" = yes ||
21906 $as_test_x conftest$ac_exeext
21907 }; then
2792721908 ac_cv_lib_ldns_ldns_buffer_copy=yes
2792821909 else
27929 echo "$as_me: failed program was:" >&5
21910 $as_echo "$as_me: failed program was:" >&5
2793021911 sed 's/^/| /' conftest.$ac_ext >&5
2793121912
2793221913 ac_cv_lib_ldns_ldns_buffer_copy=no
2793321914 fi
2793421915
21916 rm -rf conftest.dSYM
2793521917 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
2793621918 conftest$ac_exeext conftest.$ac_ext
2793721919 LIBS=$ac_check_lib_save_LIBS
2793821920 fi
27939 { echo "$as_me:$LINENO: result: $ac_cv_lib_ldns_ldns_buffer_copy" >&5
27940 echo "${ECHO_T}$ac_cv_lib_ldns_ldns_buffer_copy" >&6; }
27941 if test $ac_cv_lib_ldns_ldns_buffer_copy = yes; then
21921 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_ldns_ldns_buffer_copy" >&5
21922 $as_echo "$ac_cv_lib_ldns_ldns_buffer_copy" >&6; }
21923 if test "x$ac_cv_lib_ldns_ldns_buffer_copy" = x""yes; then
2794221924 cat >>confdefs.h <<_ACEOF
2794321925 #define HAVE_LIBLDNS 1
2794421926 _ACEOF
2794821930 fi
2794921931
2795021932 if test $ac_cv_lib_ldns_ldns_buffer_copy = yes; then
27951 { echo "$as_me:$LINENO: checking for ldns_b32_ntop_extended_hex" >&5
27952 echo $ECHO_N "checking for ldns_b32_ntop_extended_hex... $ECHO_C" >&6; }
21933 { $as_echo "$as_me:$LINENO: checking for ldns_b32_ntop_extended_hex" >&5
21934 $as_echo_n "checking for ldns_b32_ntop_extended_hex... " >&6; }
2795321935 if test "${ac_cv_func_ldns_b32_ntop_extended_hex+set}" = set; then
27954 echo $ECHO_N "(cached) $ECHO_C" >&6
21936 $as_echo_n "(cached) " >&6
2795521937 else
2795621938 cat >conftest.$ac_ext <<_ACEOF
2795721939 /* confdefs.h. */
2800421986 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2800521987 *) ac_try_echo=$ac_try;;
2800621988 esac
28007 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21989 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21990 $as_echo "$ac_try_echo") >&5
2800821991 (eval "$ac_link") 2>conftest.er1
2800921992 ac_status=$?
2801021993 grep -v '^ *+' conftest.er1 >conftest.err
2801121994 rm -f conftest.er1
2801221995 cat conftest.err >&5
28013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21996 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2801421997 (exit $ac_status); } && {
2801521998 test -z "$ac_c_werror_flag" ||
2801621999 test ! -s conftest.err
28017 } && test -s conftest$ac_exeext &&
28018 $as_test_x conftest$ac_exeext; then
22000 } && test -s conftest$ac_exeext && {
22001 test "$cross_compiling" = yes ||
22002 $as_test_x conftest$ac_exeext
22003 }; then
2801922004 ac_cv_func_ldns_b32_ntop_extended_hex=yes
2802022005 else
28021 echo "$as_me: failed program was:" >&5
22006 $as_echo "$as_me: failed program was:" >&5
2802222007 sed 's/^/| /' conftest.$ac_ext >&5
2802322008
2802422009 ac_cv_func_ldns_b32_ntop_extended_hex=no
2802522010 fi
2802622011
22012 rm -rf conftest.dSYM
2802722013 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
2802822014 conftest$ac_exeext conftest.$ac_ext
2802922015 fi
28030 { echo "$as_me:$LINENO: result: $ac_cv_func_ldns_b32_ntop_extended_hex" >&5
28031 echo "${ECHO_T}$ac_cv_func_ldns_b32_ntop_extended_hex" >&6; }
28032 if test $ac_cv_func_ldns_b32_ntop_extended_hex = yes; then
22016 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_ldns_b32_ntop_extended_hex" >&5
22017 $as_echo "$ac_cv_func_ldns_b32_ntop_extended_hex" >&6; }
22018 if test "x$ac_cv_func_ldns_b32_ntop_extended_hex" = x""yes; then
2803322019 :
2803422020 else
2803522021
28036 { { echo "$as_me:$LINENO: error: ldns version too old, need >=1.4.0" >&5
28037 echo "$as_me: error: ldns version too old, need >=1.4.0" >&2;}
22022 { { $as_echo "$as_me:$LINENO: error: ldns version too old, need >=1.4.0" >&5
22023 $as_echo "$as_me: error: ldns version too old, need >=1.4.0" >&2;}
2803822024 { (exit 1); exit 1; }; }
2803922025 fi
2804022026
2804522031
2804622032 if test "$use_ldns_builtin" = "yes"; then
2804722033 if test ! -f $srcdir/ldns-src.tar.gz; then
28048 { { echo "$as_me:$LINENO: error: No ldns library found and no ldns-src.tar.gz, use --with-ldns=path." >&5
28049 echo "$as_me: error: No ldns library found and no ldns-src.tar.gz, use --with-ldns=path." >&2;}
22034 { { $as_echo "$as_me:$LINENO: error: No ldns library found and no ldns-src.tar.gz, use --with-ldns=path." >&5
22035 $as_echo "$as_me: error: No ldns library found and no ldns-src.tar.gz, use --with-ldns=path." >&2;}
2805022036 { (exit 1); exit 1; }; }
2805122037 fi
2805222038 echo "****************************************************************"
2805722043 if test -d $srcdir/ldns-src; then rm -rf $srcdir/ldns-src; fi
2805822044 mkdir $srcdir/ldns-src; cp $srcdir/ldns-src.tar.gz $srcdir/ldns-src/ldns-src.tar.gz; (cd $srcdir/ldns-src; gzip -cd ldns-src.tar.gz | tar xf -); rm -f $srcdir/ldns-src/ldns-src.tar.gz; mv $srcdir/ldns-src $srcdir/ldns-srcb; mv $srcdir/ldns-srcb/ldns* $srcdir/ldns-src; rmdir $srcdir/ldns-srcb
2805922045 ldnsdir="ldns-src"
28060 { echo "$as_me:$LINENO: Configure $ldnsdir scheduled after config.status" >&5
28061 echo "$as_me: Configure $ldnsdir scheduled after config.status" >&6;}
22046 { $as_echo "$as_me:$LINENO: Configure $ldnsdir scheduled after config.status" >&5
22047 $as_echo "$as_me: Configure $ldnsdir scheduled after config.status" >&6;}
22048
22049
2806222050 subdirs="$subdirs ldns-src"
2806322051
2806422052 CPPFLAGS="-I$ldnsdir/include $CPPFLAGS"
2806622054
2806722055 fi
2806822056
28069 { echo "$as_me:$LINENO: Stripping extension flags..." >&5
28070 echo "$as_me: Stripping extension flags..." >&6;}
22057 { $as_echo "$as_me:$LINENO: Stripping extension flags..." >&5
22058 $as_echo "$as_me: Stripping extension flags..." >&6;}
2807122059
2807222060 if echo $CFLAGS | grep " -D_GNU_SOURCE" >/dev/null 2>&1; then
2807322061 CFLAGS="`echo $CFLAGS | sed -e 's/ -D_GNU_SOURCE//g'`"
2819122179 case $ac_val in #(
2819222180 *${as_nl}*)
2819322181 case $ac_var in #(
28194 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
28195 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
22182 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
22183 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2819622184 esac
2819722185 case $ac_var in #(
2819822186 _ | IFS | as_nl) ;; #(
22187 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2819922188 *) $as_unset $ac_var ;;
2820022189 esac ;;
2820122190 esac
2822822217 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
2822922218 if test -w "$cache_file"; then
2823022219 test "x$cache_file" != "x/dev/null" &&
28231 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
28232 echo "$as_me: updating cache $cache_file" >&6;}
22220 { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
22221 $as_echo "$as_me: updating cache $cache_file" >&6;}
2823322222 cat confcache >$cache_file
2823422223 else
28235 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
28236 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
22224 { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
22225 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
2823722226 fi
2823822227 fi
2823922228 rm -f confcache
2824922238 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
2825022239 # 1. Remove the extension, and $U if already installed.
2825122240 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
28252 ac_i=`echo "$ac_i" | sed "$ac_script"`
22241 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
2825322242 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
2825422243 # will be set to the directory where LIBOBJS objects are built.
2825522244 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
2826222251
2826322252
2826422253 : ${CONFIG_STATUS=./config.status}
22254 ac_write_fail=0
2826522255 ac_clean_files_save=$ac_clean_files
2826622256 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
28267 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
28268 echo "$as_me: creating $CONFIG_STATUS" >&6;}
28269 cat >$CONFIG_STATUS <<_ACEOF
22257 { $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
22258 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
22259 cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
2827022260 #! $SHELL
2827122261 # Generated by $as_me.
2827222262 # Run this file to recreate the current configuration.
2827922269 SHELL=\${CONFIG_SHELL-$SHELL}
2828022270 _ACEOF
2828122271
28282 cat >>$CONFIG_STATUS <<\_ACEOF
22272 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
2828322273 ## --------------------- ##
2828422274 ## M4sh Initialization. ##
2828522275 ## --------------------- ##
2828922279 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
2829022280 emulate sh
2829122281 NULLCMD=:
28292 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
22282 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
2829322283 # is contrary to our usage. Disable this feature.
2829422284 alias -g '${1+"$@"}'='"$@"'
2829522285 setopt NO_GLOB_SUBST
2831122301 as_cr_digits='0123456789'
2831222302 as_cr_alnum=$as_cr_Letters$as_cr_digits
2831322303
22304 as_nl='
22305 '
22306 export as_nl
22307 # Printing a long string crashes Solaris 7 /usr/bin/printf.
22308 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
22309 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
22310 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
22311 if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
22312 as_echo='printf %s\n'
22313 as_echo_n='printf %s'
22314 else
22315 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
22316 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
22317 as_echo_n='/usr/ucb/echo -n'
22318 else
22319 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
22320 as_echo_n_body='eval
22321 arg=$1;
22322 case $arg in
22323 *"$as_nl"*)
22324 expr "X$arg" : "X\\(.*\\)$as_nl";
22325 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
22326 esac;
22327 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
22328 '
22329 export as_echo_n_body
22330 as_echo_n='sh -c $as_echo_n_body as_echo'
22331 fi
22332 export as_echo_body
22333 as_echo='sh -c $as_echo_body as_echo'
22334 fi
22335
2831422336 # The user is always right.
2831522337 if test "${PATH_SEPARATOR+set}" != set; then
28316 echo "#! /bin/sh" >conf$$.sh
28317 echo "exit 0" >>conf$$.sh
28318 chmod +x conf$$.sh
28319 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
28320 PATH_SEPARATOR=';'
28321 else
28322 PATH_SEPARATOR=:
28323 fi
28324 rm -f conf$$.sh
22338 PATH_SEPARATOR=:
22339 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
22340 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
22341 PATH_SEPARATOR=';'
22342 }
2832522343 fi
2832622344
2832722345 # Support unset when possible.
2833722355 # there to prevent editors from complaining about space-tab.
2833822356 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
2833922357 # splitting by setting IFS to empty value.)
28340 as_nl='
28341 '
2834222358 IFS=" "" $as_nl"
2834322359
2834422360 # Find who we are. Look in the path if we contain no directory separator.
2836122377 as_myself=$0
2836222378 fi
2836322379 if test ! -f "$as_myself"; then
28364 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
22380 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
2836522381 { (exit 1); exit 1; }
2836622382 fi
2836722383
2837422390 PS4='+ '
2837522391
2837622392 # NLS nuisances.
28377 for as_var in \
28378 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
28379 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
28380 LC_TELEPHONE LC_TIME
28381 do
28382 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
28383 eval $as_var=C; export $as_var
28384 else
28385 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
28386 fi
28387 done
22393 LC_ALL=C
22394 export LC_ALL
22395 LANGUAGE=C
22396 export LANGUAGE
2838822397
2838922398 # Required to use basename.
2839022399 if expr a : '\(a\)' >/dev/null 2>&1 &&
2840622415 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
2840722416 X"$0" : 'X\(//\)$' \| \
2840822417 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
28409 echo X/"$0" |
22418 $as_echo X/"$0" |
2841022419 sed '/^.*\/\([^/][^/]*\)\/*$/{
2841122420 s//\1/
2841222421 q
2845722466 s/-\n.*//
2845822467 ' >$as_me.lineno &&
2845922468 chmod +x "$as_me.lineno" ||
28460 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
22469 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
2846122470 { (exit 1); exit 1; }; }
2846222471
2846322472 # Don't try to exec as it changes $[0], causing all sort of problems
2848522494 *)
2848622495 ECHO_N='-n';;
2848722496 esac
28488
2848922497 if expr a : '\(a\)' >/dev/null 2>&1 &&
2849022498 test "X`expr 00001 : '.*\(...\)'`" = X001; then
2849122499 as_expr=expr
2849822506 rm -f conf$$.dir/conf$$.file
2849922507 else
2850022508 rm -f conf$$.dir
28501 mkdir conf$$.dir
28502 fi
28503 echo >conf$$.file
28504 if ln -s conf$$.file conf$$ 2>/dev/null; then
28505 as_ln_s='ln -s'
28506 # ... but there are two gotchas:
28507 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
28508 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
28509 # In both cases, we have to default to `cp -p'.
28510 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
22509 mkdir conf$$.dir 2>/dev/null
22510 fi
22511 if (echo >conf$$.file) 2>/dev/null; then
22512 if ln -s conf$$.file conf$$ 2>/dev/null; then
22513 as_ln_s='ln -s'
22514 # ... but there are two gotchas:
22515 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
22516 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
22517 # In both cases, we have to default to `cp -p'.
22518 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
22519 as_ln_s='cp -p'
22520 elif ln conf$$.file conf$$ 2>/dev/null; then
22521 as_ln_s=ln
22522 else
2851122523 as_ln_s='cp -p'
28512 elif ln conf$$.file conf$$ 2>/dev/null; then
28513 as_ln_s=ln
22524 fi
2851422525 else
2851522526 as_ln_s='cp -p'
2851622527 fi
2853522546 as_test_x='
2853622547 eval sh -c '\''
2853722548 if test -d "$1"; then
28538 test -d "$1/.";
22549 test -d "$1/.";
2853922550 else
2854022551 case $1 in
28541 -*)set "./$1";;
22552 -*)set "./$1";;
2854222553 esac;
2854322554 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
2854422555 ???[sx]*):;;*)false;;esac;fi
2856022571 # report actual input values of CONFIG_FILES etc. instead of their
2856122572 # values after options handling.
2856222573 ac_log="
28563 This file was extended by unbound $as_me 1.3.0, which was
28564 generated by GNU Autoconf 2.61. Invocation command line was
22574 This file was extended by unbound $as_me 1.3.2, which was
22575 generated by GNU Autoconf 2.63. Invocation command line was
2856522576
2856622577 CONFIG_FILES = $CONFIG_FILES
2856722578 CONFIG_HEADERS = $CONFIG_HEADERS
2857422585
2857522586 _ACEOF
2857622587
28577 cat >>$CONFIG_STATUS <<_ACEOF
22588 case $ac_config_files in *"
22589 "*) set x $ac_config_files; shift; ac_config_files=$*;;
22590 esac
22591
22592 case $ac_config_headers in *"
22593 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
22594 esac
22595
22596
22597 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
2857822598 # Files that config.status was made for.
2857922599 config_files="$ac_config_files"
2858022600 config_headers="$ac_config_headers"
28581
28582 _ACEOF
28583
28584 cat >>$CONFIG_STATUS <<\_ACEOF
22601 config_commands="$ac_config_commands"
22602
22603 _ACEOF
22604
22605 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
2858522606 ac_cs_usage="\
2858622607 \`$as_me' instantiates files from templates according to the
2858722608 current configuration.
2858822609
28589 Usage: $0 [OPTIONS] [FILE]...
22610 Usage: $0 [OPTION]... [FILE]...
2859022611
2859122612 -h, --help print this help, then exit
2859222613 -V, --version print version number and configuration settings, then exit
28593 -q, --quiet do not print progress messages
22614 -q, --quiet, --silent
22615 do not print progress messages
2859422616 -d, --debug don't remove temporary files
2859522617 --recheck update $as_me by reconfiguring in the same conditions
28596 --file=FILE[:TEMPLATE]
28597 instantiate the configuration file FILE
28598 --header=FILE[:TEMPLATE]
28599 instantiate the configuration header FILE
22618 --file=FILE[:TEMPLATE]
22619 instantiate the configuration file FILE
22620 --header=FILE[:TEMPLATE]
22621 instantiate the configuration header FILE
2860022622
2860122623 Configuration files:
2860222624 $config_files
2860422626 Configuration headers:
2860522627 $config_headers
2860622628
22629 Configuration commands:
22630 $config_commands
22631
2860722632 Report bugs to <bug-autoconf@gnu.org>."
2860822633
2860922634 _ACEOF
28610 cat >>$CONFIG_STATUS <<_ACEOF
22635 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
2861122636 ac_cs_version="\\
28612 unbound config.status 1.3.0
28613 configured by $0, generated by GNU Autoconf 2.61,
28614 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
28615
28616 Copyright (C) 2006 Free Software Foundation, Inc.
22637 unbound config.status 1.3.2
22638 configured by $0, generated by GNU Autoconf 2.63,
22639 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
22640
22641 Copyright (C) 2008 Free Software Foundation, Inc.
2861722642 This config.status script is free software; the Free Software Foundation
2861822643 gives unlimited permission to copy, distribute and modify it."
2861922644
2862022645 ac_pwd='$ac_pwd'
2862122646 srcdir='$srcdir'
28622 _ACEOF
28623
28624 cat >>$CONFIG_STATUS <<\_ACEOF
28625 # If no file are specified by the user, then we need to provide default
28626 # value. By we need to know if files were specified by the user.
22647 test -n "\$AWK" || AWK=awk
22648 _ACEOF
22649
22650 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22651 # The default lists apply if the user does not specify any file.
2862722652 ac_need_defaults=:
2862822653 while test $# != 0
2862922654 do
2864522670 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
2864622671 ac_cs_recheck=: ;;
2864722672 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
28648 echo "$ac_cs_version"; exit ;;
22673 $as_echo "$ac_cs_version"; exit ;;
2864922674 --debug | --debu | --deb | --de | --d | -d )
2865022675 debug=: ;;
2865122676 --file | --fil | --fi | --f )
2865222677 $ac_shift
28653 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
22678 case $ac_optarg in
22679 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
22680 esac
22681 CONFIG_FILES="$CONFIG_FILES '$ac_optarg'"
2865422682 ac_need_defaults=false;;
2865522683 --header | --heade | --head | --hea )
2865622684 $ac_shift
28657 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
22685 case $ac_optarg in
22686 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
22687 esac
22688 CONFIG_HEADERS="$CONFIG_HEADERS '$ac_optarg'"
2865822689 ac_need_defaults=false;;
2865922690 --he | --h)
2866022691 # Conflict between --help and --header
28661 { echo "$as_me: error: ambiguous option: $1
22692 { $as_echo "$as_me: error: ambiguous option: $1
2866222693 Try \`$0 --help' for more information." >&2
2866322694 { (exit 1); exit 1; }; };;
2866422695 --help | --hel | -h )
28665 echo "$ac_cs_usage"; exit ;;
22696 $as_echo "$ac_cs_usage"; exit ;;
2866622697 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2866722698 | -silent | --silent | --silen | --sile | --sil | --si | --s)
2866822699 ac_cs_silent=: ;;
2866922700
2867022701 # This is an error.
28671 -*) { echo "$as_me: error: unrecognized option: $1
22702 -*) { $as_echo "$as_me: error: unrecognized option: $1
2867222703 Try \`$0 --help' for more information." >&2
2867322704 { (exit 1); exit 1; }; } ;;
2867422705
2868722718 fi
2868822719
2868922720 _ACEOF
28690 cat >>$CONFIG_STATUS <<_ACEOF
22721 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
2869122722 if \$ac_cs_recheck; then
28692 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
28693 CONFIG_SHELL=$SHELL
22723 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
22724 shift
22725 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
22726 CONFIG_SHELL='$SHELL'
2869422727 export CONFIG_SHELL
28695 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
28696 fi
28697
28698 _ACEOF
28699 cat >>$CONFIG_STATUS <<\_ACEOF
22728 exec "\$@"
22729 fi
22730
22731 _ACEOF
22732 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
2870022733 exec 5>>config.log
2870122734 {
2870222735 echo
2870322736 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
2870422737 ## Running $as_me. ##
2870522738 _ASBOX
28706 echo "$ac_log"
22739 $as_echo "$ac_log"
2870722740 } >&5
2870822741
2870922742 _ACEOF
28710 cat >>$CONFIG_STATUS <<_ACEOF
28711 _ACEOF
28712
28713 cat >>$CONFIG_STATUS <<\_ACEOF
22743 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22744 #
22745 # INIT-COMMANDS
22746 #
22747
22748
22749 # The HP-UX ksh and POSIX shell print the target directory to stdout
22750 # if CDPATH is set.
22751 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
22752
22753 sed_quote_subst='$sed_quote_subst'
22754 double_quote_subst='$double_quote_subst'
22755 delay_variable_subst='$delay_variable_subst'
22756 macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
22757 macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
22758 enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
22759 enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
22760 pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
22761 enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
22762 host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
22763 host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
22764 host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
22765 build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
22766 build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
22767 build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
22768 SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
22769 Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
22770 GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
22771 EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
22772 FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
22773 LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
22774 NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
22775 LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
22776 max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
22777 ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
22778 exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
22779 lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
22780 lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
22781 lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
22782 reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
22783 reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
22784 OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
22785 deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
22786 file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
22787 AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
22788 AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
22789 STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
22790 RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
22791 old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
22792 old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
22793 old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
22794 CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
22795 CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
22796 compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
22797 GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
22798 lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
22799 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
22800 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address" | $Xsed -e "$delay_single_quote_subst"`'
22801 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
22802 objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
22803 SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
22804 ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
22805 MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
22806 lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
22807 lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
22808 lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
22809 lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
22810 lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
22811 need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
22812 DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
22813 NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
22814 LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
22815 OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
22816 OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
22817 libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
22818 shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
22819 extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
22820 archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
22821 enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
22822 export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
22823 whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
22824 compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
22825 old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
22826 old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
22827 archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
22828 archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
22829 module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
22830 module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
22831 with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
22832 allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
22833 no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
22834 hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
22835 hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
22836 hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
22837 hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
22838 hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
22839 hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
22840 hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
22841 hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
22842 inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
22843 link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
22844 fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
22845 always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
22846 export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
22847 exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
22848 include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
22849 prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
22850 file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
22851 variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
22852 need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
22853 need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
22854 version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
22855 runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
22856 shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
22857 shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
22858 libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
22859 library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
22860 soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
22861 postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
22862 postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
22863 finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
22864 finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
22865 hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
22866 sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
22867 sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
22868 hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
22869 enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
22870 enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
22871 enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
22872 old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
22873 striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
22874
22875 LTCC='$LTCC'
22876 LTCFLAGS='$LTCFLAGS'
22877 compiler='$compiler_DEFAULT'
22878
22879 # Quote evaled strings.
22880 for var in SED \
22881 GREP \
22882 EGREP \
22883 FGREP \
22884 LD \
22885 NM \
22886 LN_S \
22887 lt_SP2NL \
22888 lt_NL2SP \
22889 reload_flag \
22890 OBJDUMP \
22891 deplibs_check_method \
22892 file_magic_cmd \
22893 AR \
22894 AR_FLAGS \
22895 STRIP \
22896 RANLIB \
22897 CC \
22898 CFLAGS \
22899 compiler \
22900 lt_cv_sys_global_symbol_pipe \
22901 lt_cv_sys_global_symbol_to_cdecl \
22902 lt_cv_sys_global_symbol_to_c_name_address \
22903 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
22904 SHELL \
22905 ECHO \
22906 lt_prog_compiler_no_builtin_flag \
22907 lt_prog_compiler_wl \
22908 lt_prog_compiler_pic \
22909 lt_prog_compiler_static \
22910 lt_cv_prog_compiler_c_o \
22911 need_locks \
22912 DSYMUTIL \
22913 NMEDIT \
22914 LIPO \
22915 OTOOL \
22916 OTOOL64 \
22917 shrext_cmds \
22918 export_dynamic_flag_spec \
22919 whole_archive_flag_spec \
22920 compiler_needs_object \
22921 with_gnu_ld \
22922 allow_undefined_flag \
22923 no_undefined_flag \
22924 hardcode_libdir_flag_spec \
22925 hardcode_libdir_flag_spec_ld \
22926 hardcode_libdir_separator \
22927 fix_srcfile_path \
22928 exclude_expsyms \
22929 include_expsyms \
22930 file_list_spec \
22931 variables_saved_for_relink \
22932 libname_spec \
22933 library_names_spec \
22934 soname_spec \
22935 finish_eval \
22936 old_striplib \
22937 striplib; do
22938 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
22939 *[\\\\\\\`\\"\\\$]*)
22940 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
22941 ;;
22942 *)
22943 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
22944 ;;
22945 esac
22946 done
22947
22948 # Double-quote double-evaled strings.
22949 for var in reload_cmds \
22950 old_postinstall_cmds \
22951 old_postuninstall_cmds \
22952 old_archive_cmds \
22953 extract_expsyms_cmds \
22954 old_archive_from_new_cmds \
22955 old_archive_from_expsyms_cmds \
22956 archive_cmds \
22957 archive_expsym_cmds \
22958 module_cmds \
22959 module_expsym_cmds \
22960 export_symbols_cmds \
22961 prelink_cmds \
22962 postinstall_cmds \
22963 postuninstall_cmds \
22964 finish_cmds \
22965 sys_lib_search_path_spec \
22966 sys_lib_dlsearch_path_spec; do
22967 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
22968 *[\\\\\\\`\\"\\\$]*)
22969 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
22970 ;;
22971 *)
22972 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
22973 ;;
22974 esac
22975 done
22976
22977 # Fix-up fallback echo if it was mangled by the above quoting rules.
22978 case \$lt_ECHO in
22979 *'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
22980 ;;
22981 esac
22982
22983 ac_aux_dir='$ac_aux_dir'
22984 xsi_shell='$xsi_shell'
22985 lt_shell_append='$lt_shell_append'
22986
22987 # See if we are running on zsh, and set the options which allow our
22988 # commands through without removal of \ escapes INIT.
22989 if test -n "\${ZSH_VERSION+set}" ; then
22990 setopt NO_GLOB_SUBST
22991 fi
22992
22993
22994 PACKAGE='$PACKAGE'
22995 VERSION='$VERSION'
22996 TIMESTAMP='$TIMESTAMP'
22997 RM='$RM'
22998 ofile='$ofile'
22999
23000
23001
23002
23003 _ACEOF
23004
23005 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
2871423006
2871523007 # Handling of arguments.
2871623008 for ac_config_target in $ac_config_targets
2871723009 do
2871823010 case $ac_config_target in
23011 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
2871923012 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
2872023013 "doc/example.conf") CONFIG_FILES="$CONFIG_FILES doc/example.conf" ;;
2872123014 "doc/libunbound.3") CONFIG_FILES="$CONFIG_FILES doc/libunbound.3" ;;
2872523018 "doc/unbound-control.8") CONFIG_FILES="$CONFIG_FILES doc/unbound-control.8" ;;
2872623019 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
2872723020
28728 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
28729 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
23021 *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
23022 $as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
2873023023 { (exit 1); exit 1; }; };;
2873123024 esac
2873223025 done
2873923032 if $ac_need_defaults; then
2874023033 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
2874123034 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
23035 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
2874223036 fi
2874323037
2874423038 # Have a temporary directory for convenience. Make it in the build tree
2876623060 (umask 077 && mkdir "$tmp")
2876723061 } ||
2876823062 {
28769 echo "$me: cannot create a temporary directory in ." >&2
23063 $as_echo "$as_me: cannot create a temporary directory in ." >&2
2877023064 { (exit 1); exit 1; }
2877123065 }
2877223066
28773 #
28774 # Set up the sed scripts for CONFIG_FILES section.
28775 #
28776
28777 # No need to generate the scripts if there are no CONFIG_FILES.
28778 # This happens for instance when ./config.status config.h
23067 # Set up the scripts for CONFIG_FILES section.
23068 # No need to generate them if there are no CONFIG_FILES.
23069 # This happens for instance with `./config.status config.h'.
2877923070 if test -n "$CONFIG_FILES"; then
2878023071
28781 _ACEOF
28782
28783
28784
23072
23073 ac_cr='
23074 '
23075 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
23076 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
23077 ac_cs_awk_cr='\\r'
23078 else
23079 ac_cs_awk_cr=$ac_cr
23080 fi
23081
23082 echo 'BEGIN {' >"$tmp/subs1.awk" &&
23083 _ACEOF
23084
23085
23086 {
23087 echo "cat >conf$$subs.awk <<_ACEOF" &&
23088 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
23089 echo "_ACEOF"
23090 } >conf$$subs.sh ||
23091 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
23092 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
23093 { (exit 1); exit 1; }; }
23094 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
2878523095 ac_delim='%!_!# '
2878623096 for ac_last_try in false false false false false :; do
28787 cat >conf$$subs.sed <<_ACEOF
28788 SHELL!$SHELL$ac_delim
28789 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
28790 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
28791 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
28792 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
28793 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
28794 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
28795 exec_prefix!$exec_prefix$ac_delim
28796 prefix!$prefix$ac_delim
28797 program_transform_name!$program_transform_name$ac_delim
28798 bindir!$bindir$ac_delim
28799 sbindir!$sbindir$ac_delim
28800 libexecdir!$libexecdir$ac_delim
28801 datarootdir!$datarootdir$ac_delim
28802 datadir!$datadir$ac_delim
28803 sysconfdir!$sysconfdir$ac_delim
28804 sharedstatedir!$sharedstatedir$ac_delim
28805 localstatedir!$localstatedir$ac_delim
28806 includedir!$includedir$ac_delim
28807 oldincludedir!$oldincludedir$ac_delim
28808 docdir!$docdir$ac_delim
28809 infodir!$infodir$ac_delim
28810 htmldir!$htmldir$ac_delim
28811 dvidir!$dvidir$ac_delim
28812 pdfdir!$pdfdir$ac_delim
28813 psdir!$psdir$ac_delim
28814 libdir!$libdir$ac_delim
28815 localedir!$localedir$ac_delim
28816 mandir!$mandir$ac_delim
28817 DEFS!$DEFS$ac_delim
28818 ECHO_C!$ECHO_C$ac_delim
28819 ECHO_N!$ECHO_N$ac_delim
28820 ECHO_T!$ECHO_T$ac_delim
28821 LIBS!$LIBS$ac_delim
28822 build_alias!$build_alias$ac_delim
28823 host_alias!$host_alias$ac_delim
28824 target_alias!$target_alias$ac_delim
28825 LIBUNBOUND_CURRENT!$LIBUNBOUND_CURRENT$ac_delim
28826 LIBUNBOUND_REVISION!$LIBUNBOUND_REVISION$ac_delim
28827 LIBUNBOUND_AGE!$LIBUNBOUND_AGE$ac_delim
28828 CC!$CC$ac_delim
28829 CFLAGS!$CFLAGS$ac_delim
28830 LDFLAGS!$LDFLAGS$ac_delim
28831 CPPFLAGS!$CPPFLAGS$ac_delim
28832 ac_ct_CC!$ac_ct_CC$ac_delim
28833 EXEEXT!$EXEEXT$ac_delim
28834 OBJEXT!$OBJEXT$ac_delim
28835 CPP!$CPP$ac_delim
28836 GREP!$GREP$ac_delim
28837 EGREP!$EGREP$ac_delim
28838 ub_conf_file!$ub_conf_file$ac_delim
28839 UNBOUND_RUN_DIR!$UNBOUND_RUN_DIR$ac_delim
28840 UNBOUND_CHROOT_DIR!$UNBOUND_CHROOT_DIR$ac_delim
28841 UNBOUND_SHARE_DIR!$UNBOUND_SHARE_DIR$ac_delim
28842 UNBOUND_PIDFILE!$UNBOUND_PIDFILE$ac_delim
28843 UNBOUND_USERNAME!$UNBOUND_USERNAME$ac_delim
28844 DEPFLAG!$DEPFLAG$ac_delim
28845 debug_enabled!$debug_enabled$ac_delim
28846 LEX!$LEX$ac_delim
28847 LEX_OUTPUT_ROOT!$LEX_OUTPUT_ROOT$ac_delim
28848 LEXLIB!$LEXLIB$ac_delim
28849 YACC!$YACC$ac_delim
28850 YFLAGS!$YFLAGS$ac_delim
28851 doxygen!$doxygen$ac_delim
28852 libtool!$libtool$ac_delim
28853 build!$build$ac_delim
28854 build_cpu!$build_cpu$ac_delim
28855 build_vendor!$build_vendor$ac_delim
28856 build_os!$build_os$ac_delim
28857 host!$host$ac_delim
28858 host_cpu!$host_cpu$ac_delim
28859 host_vendor!$host_vendor$ac_delim
28860 host_os!$host_os$ac_delim
28861 AR!$AR$ac_delim
28862 SED!$SED$ac_delim
28863 LN_S!$LN_S$ac_delim
28864 ECHO!$ECHO$ac_delim
28865 RANLIB!$RANLIB$ac_delim
28866 STRIP!$STRIP$ac_delim
28867 LIBTOOL!$LIBTOOL$ac_delim
28868 acx_pthread_config!$acx_pthread_config$ac_delim
28869 PTHREAD_CC!$PTHREAD_CC$ac_delim
28870 PTHREAD_LIBS!$PTHREAD_LIBS$ac_delim
28871 PTHREAD_CFLAGS!$PTHREAD_CFLAGS$ac_delim
28872 PYTHON_VERSION!$PYTHON_VERSION$ac_delim
28873 PYTHON!$PYTHON$ac_delim
28874 PYTHON_CPPFLAGS!$PYTHON_CPPFLAGS$ac_delim
28875 PYTHON_LDFLAGS!$PYTHON_LDFLAGS$ac_delim
28876 PYTHON_SITE_PKG!$PYTHON_SITE_PKG$ac_delim
28877 PYTHON_EXTRA_LIBS!$PYTHON_EXTRA_LIBS$ac_delim
28878 PYTHON_EXTRA_LDFLAGS!$PYTHON_EXTRA_LDFLAGS$ac_delim
28879 SWIG!$SWIG$ac_delim
28880 SWIG_LIB!$SWIG_LIB$ac_delim
28881 swig!$swig$ac_delim
28882 WITH_PYTHONMODULE!$WITH_PYTHONMODULE$ac_delim
28883 WITH_PYUNBOUND!$WITH_PYUNBOUND$ac_delim
28884 HAVE_SSL!$HAVE_SSL$ac_delim
28885 _ACEOF
28886
28887 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
23097 . ./conf$$subs.sh ||
23098 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
23099 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
23100 { (exit 1); exit 1; }; }
23101
23102 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
23103 if test $ac_delim_n = $ac_delim_num; then
2888823104 break
2888923105 elif $ac_last_try; then
28890 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
28891 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
23106 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
23107 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
2889223108 { (exit 1); exit 1; }; }
2889323109 else
2889423110 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
2889523111 fi
2889623112 done
28897
28898 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
28899 if test -n "$ac_eof"; then
28900 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
28901 ac_eof=`expr $ac_eof + 1`
28902 fi
28903
28904 cat >>$CONFIG_STATUS <<_ACEOF
28905 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
28906 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
28907 _ACEOF
28908 sed '
28909 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
28910 s/^/s,@/; s/!/@,|#_!!_#|/
28911 :n
28912 t n
28913 s/'"$ac_delim"'$/,g/; t
28914 s/$/\\/; p
28915 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
28916 ' >>$CONFIG_STATUS <conf$$subs.sed
28917 rm -f conf$$subs.sed
28918 cat >>$CONFIG_STATUS <<_ACEOF
28919 CEOF$ac_eof
28920 _ACEOF
28921
28922
28923 ac_delim='%!_!# '
28924 for ac_last_try in false false false false false :; do
28925 cat >conf$$subs.sed <<_ACEOF
28926 RUNTIME_PATH!$RUNTIME_PATH$ac_delim
28927 staticexe!$staticexe$ac_delim
28928 CHECKLOCK_SRC!$CHECKLOCK_SRC$ac_delim
28929 LIBOBJS!$LIBOBJS$ac_delim
28930 UB_ON_WINDOWS!$UB_ON_WINDOWS$ac_delim
28931 ldnsdir!$ldnsdir$ac_delim
28932 subdirs!$subdirs$ac_delim
28933 LTLIBOBJS!$LTLIBOBJS$ac_delim
28934 _ACEOF
28935
28936 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 8; then
28937 break
28938 elif $ac_last_try; then
28939 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
28940 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
23113 rm -f conf$$subs.sh
23114
23115 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23116 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
23117 _ACEOF
23118 sed -n '
23119 h
23120 s/^/S["/; s/!.*/"]=/
23121 p
23122 g
23123 s/^[^!]*!//
23124 :repl
23125 t repl
23126 s/'"$ac_delim"'$//
23127 t delim
23128 :nl
23129 h
23130 s/\(.\{148\}\).*/\1/
23131 t more1
23132 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
23133 p
23134 n
23135 b repl
23136 :more1
23137 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
23138 p
23139 g
23140 s/.\{148\}//
23141 t nl
23142 :delim
23143 h
23144 s/\(.\{148\}\).*/\1/
23145 t more2
23146 s/["\\]/\\&/g; s/^/"/; s/$/"/
23147 p
23148 b
23149 :more2
23150 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
23151 p
23152 g
23153 s/.\{148\}//
23154 t delim
23155 ' <conf$$subs.awk | sed '
23156 /^[^""]/{
23157 N
23158 s/\n//
23159 }
23160 ' >>$CONFIG_STATUS || ac_write_fail=1
23161 rm -f conf$$subs.awk
23162 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23163 _ACAWK
23164 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
23165 for (key in S) S_is_set[key] = 1
23166 FS = ""
23167
23168 }
23169 {
23170 line = $ 0
23171 nfields = split(line, field, "@")
23172 substed = 0
23173 len = length(field[1])
23174 for (i = 2; i < nfields; i++) {
23175 key = field[i]
23176 keylen = length(key)
23177 if (S_is_set[key]) {
23178 value = S[key]
23179 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
23180 len += length(value) + length(field[++i])
23181 substed = 1
23182 } else
23183 len += 1 + keylen
23184 }
23185
23186 print line
23187 }
23188
23189 _ACAWK
23190 _ACEOF
23191 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23192 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
23193 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
23194 else
23195 cat
23196 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
23197 || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5
23198 $as_echo "$as_me: error: could not setup config files machinery" >&2;}
2894123199 { (exit 1); exit 1; }; }
28942 else
28943 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
28944 fi
28945 done
28946
28947 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
28948 if test -n "$ac_eof"; then
28949 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
28950 ac_eof=`expr $ac_eof + 1`
28951 fi
28952
28953 cat >>$CONFIG_STATUS <<_ACEOF
28954 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
28955 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
28956 _ACEOF
28957 sed '
28958 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
28959 s/^/s,@/; s/!/@,|#_!!_#|/
28960 :n
28961 t n
28962 s/'"$ac_delim"'$/,g/; t
28963 s/$/\\/; p
28964 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
28965 ' >>$CONFIG_STATUS <conf$$subs.sed
28966 rm -f conf$$subs.sed
28967 cat >>$CONFIG_STATUS <<_ACEOF
28968 :end
28969 s/|#_!!_#|//g
28970 CEOF$ac_eof
28971 _ACEOF
28972
23200 _ACEOF
2897323201
2897423202 # VPATH may cause trouble with some makes, so we remove $(srcdir),
2897523203 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
2898623214 }'
2898723215 fi
2898823216
28989 cat >>$CONFIG_STATUS <<\_ACEOF
23217 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
2899023218 fi # test -n "$CONFIG_FILES"
2899123219
28992
28993 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS
23220 # Set up the scripts for CONFIG_HEADERS section.
23221 # No need to generate them if there are no CONFIG_HEADERS.
23222 # This happens for instance with `./config.status Makefile'.
23223 if test -n "$CONFIG_HEADERS"; then
23224 cat >"$tmp/defines.awk" <<\_ACAWK ||
23225 BEGIN {
23226 _ACEOF
23227
23228 # Transform confdefs.h into an awk script `defines.awk', embedded as
23229 # here-document in config.status, that substitutes the proper values into
23230 # config.h.in to produce config.h.
23231
23232 # Create a delimiter string that does not exist in confdefs.h, to ease
23233 # handling of long lines.
23234 ac_delim='%!_!# '
23235 for ac_last_try in false false :; do
23236 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
23237 if test -z "$ac_t"; then
23238 break
23239 elif $ac_last_try; then
23240 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_HEADERS" >&5
23241 $as_echo "$as_me: error: could not make $CONFIG_HEADERS" >&2;}
23242 { (exit 1); exit 1; }; }
23243 else
23244 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
23245 fi
23246 done
23247
23248 # For the awk script, D is an array of macro values keyed by name,
23249 # likewise P contains macro parameters if any. Preserve backslash
23250 # newline sequences.
23251
23252 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
23253 sed -n '
23254 s/.\{148\}/&'"$ac_delim"'/g
23255 t rset
23256 :rset
23257 s/^[ ]*#[ ]*define[ ][ ]*/ /
23258 t def
23259 d
23260 :def
23261 s/\\$//
23262 t bsnl
23263 s/["\\]/\\&/g
23264 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
23265 D["\1"]=" \3"/p
23266 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
23267 d
23268 :bsnl
23269 s/["\\]/\\&/g
23270 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
23271 D["\1"]=" \3\\\\\\n"\\/p
23272 t cont
23273 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
23274 t cont
23275 d
23276 :cont
23277 n
23278 s/.\{148\}/&'"$ac_delim"'/g
23279 t clear
23280 :clear
23281 s/\\$//
23282 t bsnlc
23283 s/["\\]/\\&/g; s/^/"/; s/$/"/p
23284 d
23285 :bsnlc
23286 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
23287 b cont
23288 ' <confdefs.h | sed '
23289 s/'"$ac_delim"'/"\\\
23290 "/g' >>$CONFIG_STATUS || ac_write_fail=1
23291
23292 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23293 for (key in D) D_is_set[key] = 1
23294 FS = ""
23295 }
23296 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
23297 line = \$ 0
23298 split(line, arg, " ")
23299 if (arg[1] == "#") {
23300 defundef = arg[2]
23301 mac1 = arg[3]
23302 } else {
23303 defundef = substr(arg[1], 2)
23304 mac1 = arg[2]
23305 }
23306 split(mac1, mac2, "(") #)
23307 macro = mac2[1]
23308 prefix = substr(line, 1, index(line, defundef) - 1)
23309 if (D_is_set[macro]) {
23310 # Preserve the white space surrounding the "#".
23311 print prefix "define", macro P[macro] D[macro]
23312 next
23313 } else {
23314 # Replace #undef with comments. This is necessary, for example,
23315 # in the case of _POSIX_SOURCE, which is predefined and required
23316 # on some systems where configure will not decide to define it.
23317 if (defundef == "undef") {
23318 print "/*", prefix defundef, macro, "*/"
23319 next
23320 }
23321 }
23322 }
23323 { print }
23324 _ACAWK
23325 _ACEOF
23326 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23327 { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5
23328 $as_echo "$as_me: error: could not setup config headers machinery" >&2;}
23329 { (exit 1); exit 1; }; }
23330 fi # test -n "$CONFIG_HEADERS"
23331
23332
23333 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
23334 shift
23335 for ac_tag
2899423336 do
2899523337 case $ac_tag in
2899623338 :[FHLC]) ac_mode=$ac_tag; continue;;
2899723339 esac
2899823340 case $ac_mode$ac_tag in
2899923341 :[FHL]*:*);;
29000 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
29001 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
23342 :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: invalid tag $ac_tag" >&5
23343 $as_echo "$as_me: error: invalid tag $ac_tag" >&2;}
2900223344 { (exit 1); exit 1; }; };;
2900323345 :[FH]-) ac_tag=-:-;;
2900423346 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
2902723369 [\\/$]*) false;;
2902823370 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
2902923371 esac ||
29030 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
29031 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
23372 { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
23373 $as_echo "$as_me: error: cannot find input file: $ac_f" >&2;}
2903223374 { (exit 1); exit 1; }; };;
2903323375 esac
29034 ac_file_inputs="$ac_file_inputs $ac_f"
23376 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
23377 ac_file_inputs="$ac_file_inputs '$ac_f'"
2903523378 done
2903623379
2903723380 # Let's still pretend it is `configure' which instantiates (i.e., don't
2903823381 # use $as_me), people would be surprised to read:
2903923382 # /* config.h. Generated by config.status. */
29040 configure_input="Generated from "`IFS=:
29041 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
23383 configure_input='Generated from '`
23384 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
23385 `' by configure.'
2904223386 if test x"$ac_file" != x-; then
2904323387 configure_input="$ac_file. $configure_input"
29044 { echo "$as_me:$LINENO: creating $ac_file" >&5
29045 echo "$as_me: creating $ac_file" >&6;}
23388 { $as_echo "$as_me:$LINENO: creating $ac_file" >&5
23389 $as_echo "$as_me: creating $ac_file" >&6;}
2904623390 fi
23391 # Neutralize special characters interpreted by sed in replacement strings.
23392 case $configure_input in #(
23393 *\&* | *\|* | *\\* )
23394 ac_sed_conf_input=`$as_echo "$configure_input" |
23395 sed 's/[\\\\&|]/\\\\&/g'`;; #(
23396 *) ac_sed_conf_input=$configure_input;;
23397 esac
2904723398
2904823399 case $ac_tag in
29049 *:-:* | *:-) cat >"$tmp/stdin";;
23400 *:-:* | *:-) cat >"$tmp/stdin" \
23401 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
23402 $as_echo "$as_me: error: could not create $ac_file" >&2;}
23403 { (exit 1); exit 1; }; } ;;
2905023404 esac
2905123405 ;;
2905223406 esac
2905623410 X"$ac_file" : 'X\(//\)[^/]' \| \
2905723411 X"$ac_file" : 'X\(//\)$' \| \
2905823412 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
29059 echo X"$ac_file" |
23413 $as_echo X"$ac_file" |
2906023414 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
2906123415 s//\1/
2906223416 q
2908223436 as_dirs=
2908323437 while :; do
2908423438 case $as_dir in #(
29085 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
23439 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
2908623440 *) as_qdir=$as_dir;;
2908723441 esac
2908823442 as_dirs="'$as_qdir' $as_dirs"
2909123445 X"$as_dir" : 'X\(//\)[^/]' \| \
2909223446 X"$as_dir" : 'X\(//\)$' \| \
2909323447 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
29094 echo X"$as_dir" |
23448 $as_echo X"$as_dir" |
2909523449 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
2909623450 s//\1/
2909723451 q
2911223466 test -d "$as_dir" && break
2911323467 done
2911423468 test -z "$as_dirs" || eval "mkdir $as_dirs"
29115 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
29116 echo "$as_me: error: cannot create directory $as_dir" >&2;}
23469 } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
23470 $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
2911723471 { (exit 1); exit 1; }; }; }
2911823472 ac_builddir=.
2911923473
2912023474 case "$ac_dir" in
2912123475 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
2912223476 *)
29123 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
23477 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
2912423478 # A ".." for each directory in $ac_dir_suffix.
29125 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
23479 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
2912623480 case $ac_top_builddir_sub in
2912723481 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
2912823482 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
2915823512
2915923513 _ACEOF
2916023514
29161 cat >>$CONFIG_STATUS <<\_ACEOF
23515 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
2916223516 # If the template does not know about datarootdir, expand it.
2916323517 # FIXME: This hack should be removed a few years after 2.60.
2916423518 ac_datarootdir_hack=; ac_datarootdir_seen=
2916523519
29166 case `sed -n '/datarootdir/ {
23520 ac_sed_dataroot='
23521 /datarootdir/ {
2916723522 p
2916823523 q
2916923524 }
2917223527 /@infodir@/p
2917323528 /@localedir@/p
2917423529 /@mandir@/p
29175 ' $ac_file_inputs` in
23530 '
23531 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
2917623532 *datarootdir*) ac_datarootdir_seen=yes;;
2917723533 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
29178 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
29179 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
29180 _ACEOF
29181 cat >>$CONFIG_STATUS <<_ACEOF
23534 { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
23535 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
23536 _ACEOF
23537 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
2918223538 ac_datarootdir_hack='
2918323539 s&@datadir@&$datadir&g
2918423540 s&@docdir@&$docdir&g
2919223548 # Neutralize VPATH when `$srcdir' = `.'.
2919323549 # Shell code in configure.ac might set extrasub.
2919423550 # FIXME: do we really want to maintain this feature?
29195 cat >>$CONFIG_STATUS <<_ACEOF
29196 sed "$ac_vpsub
23551 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23552 ac_sed_extra="$ac_vpsub
2919723553 $extrasub
2919823554 _ACEOF
29199 cat >>$CONFIG_STATUS <<\_ACEOF
23555 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
2920023556 :t
2920123557 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
29202 s&@configure_input@&$configure_input&;t t
23558 s|@configure_input@|$ac_sed_conf_input|;t t
2920323559 s&@top_builddir@&$ac_top_builddir_sub&;t t
23560 s&@top_build_prefix@&$ac_top_build_prefix&;t t
2920423561 s&@srcdir@&$ac_srcdir&;t t
2920523562 s&@abs_srcdir@&$ac_abs_srcdir&;t t
2920623563 s&@top_srcdir@&$ac_top_srcdir&;t t
2920923566 s&@abs_builddir@&$ac_abs_builddir&;t t
2921023567 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
2921123568 $ac_datarootdir_hack
29212 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
23569 "
23570 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
23571 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
23572 $as_echo "$as_me: error: could not create $ac_file" >&2;}
23573 { (exit 1); exit 1; }; }
2921323574
2921423575 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
2921523576 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
2921623577 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
29217 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
23578 { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
2921823579 which seems to be undefined. Please make sure it is defined." >&5
29219 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
23580 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
2922023581 which seems to be undefined. Please make sure it is defined." >&2;}
2922123582
2922223583 rm -f "$tmp/stdin"
2922323584 case $ac_file in
29224 -) cat "$tmp/out"; rm -f "$tmp/out";;
29225 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
29226 esac
23585 -) cat "$tmp/out" && rm -f "$tmp/out";;
23586 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
23587 esac \
23588 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
23589 $as_echo "$as_me: error: could not create $ac_file" >&2;}
23590 { (exit 1); exit 1; }; }
2922723591 ;;
2922823592 :H)
2922923593 #
2923023594 # CONFIG_HEADER
2923123595 #
29232 _ACEOF
29233
29234 # Transform confdefs.h into a sed script `conftest.defines', that
29235 # substitutes the proper values into config.h.in to produce config.h.
29236 rm -f conftest.defines conftest.tail
29237 # First, append a space to every undef/define line, to ease matching.
29238 echo 's/$/ /' >conftest.defines
29239 # Then, protect against being on the right side of a sed subst, or in
29240 # an unquoted here document, in config.status. If some macros were
29241 # called several times there might be several #defines for the same
29242 # symbol, which is useless. But do not sort them, since the last
29243 # AC_DEFINE must be honored.
29244 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
29245 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
29246 # NAME is the cpp macro being defined, VALUE is the value it is being given.
29247 # PARAMS is the parameter list in the macro definition--in most cases, it's
29248 # just an empty string.
29249 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
29250 ac_dB='\\)[ (].*,\\1define\\2'
29251 ac_dC=' '
29252 ac_dD=' ,'
29253
29254 uniq confdefs.h |
29255 sed -n '
29256 t rset
29257 :rset
29258 s/^[ ]*#[ ]*define[ ][ ]*//
29259 t ok
29260 d
29261 :ok
29262 s/[\\&,]/\\&/g
29263 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
29264 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
29265 ' >>conftest.defines
29266
29267 # Remove the space that was appended to ease matching.
29268 # Then replace #undef with comments. This is necessary, for
29269 # example, in the case of _POSIX_SOURCE, which is predefined and required
29270 # on some systems where configure will not decide to define it.
29271 # (The regexp can be short, since the line contains either #define or #undef.)
29272 echo 's/ $//
29273 s,^[ #]*u.*,/* & */,' >>conftest.defines
29274
29275 # Break up conftest.defines:
29276 ac_max_sed_lines=50
29277
29278 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
29279 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
29280 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
29281 # et cetera.
29282 ac_in='$ac_file_inputs'
29283 ac_out='"$tmp/out1"'
29284 ac_nxt='"$tmp/out2"'
29285
29286 while :
29287 do
29288 # Write a here document:
29289 cat >>$CONFIG_STATUS <<_ACEOF
29290 # First, check the format of the line:
29291 cat >"\$tmp/defines.sed" <<\\CEOF
29292 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
29293 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
29294 b
29295 :def
29296 _ACEOF
29297 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
29298 echo 'CEOF
29299 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
29300 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
29301 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
29302 grep . conftest.tail >/dev/null || break
29303 rm -f conftest.defines
29304 mv conftest.tail conftest.defines
29305 done
29306 rm -f conftest.defines conftest.tail
29307
29308 echo "ac_result=$ac_in" >>$CONFIG_STATUS
29309 cat >>$CONFIG_STATUS <<\_ACEOF
2931023596 if test x"$ac_file" != x-; then
29311 echo "/* $configure_input */" >"$tmp/config.h"
29312 cat "$ac_result" >>"$tmp/config.h"
29313 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
29314 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
29315 echo "$as_me: $ac_file is unchanged" >&6;}
23597 {
23598 $as_echo "/* $configure_input */" \
23599 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
23600 } >"$tmp/config.h" \
23601 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
23602 $as_echo "$as_me: error: could not create $ac_file" >&2;}
23603 { (exit 1); exit 1; }; }
23604 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
23605 { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5
23606 $as_echo "$as_me: $ac_file is unchanged" >&6;}
2931623607 else
29317 rm -f $ac_file
29318 mv "$tmp/config.h" $ac_file
23608 rm -f "$ac_file"
23609 mv "$tmp/config.h" "$ac_file" \
23610 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
23611 $as_echo "$as_me: error: could not create $ac_file" >&2;}
23612 { (exit 1); exit 1; }; }
2931923613 fi
2932023614 else
29321 echo "/* $configure_input */"
29322 cat "$ac_result"
23615 $as_echo "/* $configure_input */" \
23616 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
23617 || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5
23618 $as_echo "$as_me: error: could not create -" >&2;}
23619 { (exit 1); exit 1; }; }
2932323620 fi
29324 rm -f "$tmp/out12"
2932523621 ;;
2932623622
29327
23623 :C) { $as_echo "$as_me:$LINENO: executing $ac_file commands" >&5
23624 $as_echo "$as_me: executing $ac_file commands" >&6;}
23625 ;;
2932823626 esac
2932923627
23628
23629 case $ac_file$ac_mode in
23630 "libtool":C)
23631
23632 # See if we are running on zsh, and set the options which allow our
23633 # commands through without removal of \ escapes.
23634 if test -n "${ZSH_VERSION+set}" ; then
23635 setopt NO_GLOB_SUBST
23636 fi
23637
23638 cfgfile="${ofile}T"
23639 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
23640 $RM "$cfgfile"
23641
23642 cat <<_LT_EOF >> "$cfgfile"
23643 #! $SHELL
23644
23645 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
23646 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
23647 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
23648 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
23649 #
23650 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
23651 # 2006, 2007, 2008 Free Software Foundation, Inc.
23652 # Written by Gordon Matzigkeit, 1996
23653 #
23654 # This file is part of GNU Libtool.
23655 #
23656 # GNU Libtool is free software; you can redistribute it and/or
23657 # modify it under the terms of the GNU General Public License as
23658 # published by the Free Software Foundation; either version 2 of
23659 # the License, or (at your option) any later version.
23660 #
23661 # As a special exception to the GNU General Public License,
23662 # if you distribute this file as part of a program or library that
23663 # is built using GNU Libtool, you may include this file under the
23664 # same distribution terms that you use for the rest of that program.
23665 #
23666 # GNU Libtool is distributed in the hope that it will be useful,
23667 # but WITHOUT ANY WARRANTY; without even the implied warranty of
23668 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
23669 # GNU General Public License for more details.
23670 #
23671 # You should have received a copy of the GNU General Public License
23672 # along with GNU Libtool; see the file COPYING. If not, a copy
23673 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
23674 # obtained by writing to the Free Software Foundation, Inc.,
23675 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
23676
23677
23678 # The names of the tagged configurations supported by this script.
23679 available_tags=""
23680
23681 # ### BEGIN LIBTOOL CONFIG
23682
23683 # Which release of libtool.m4 was used?
23684 macro_version=$macro_version
23685 macro_revision=$macro_revision
23686
23687 # Whether or not to build shared libraries.
23688 build_libtool_libs=$enable_shared
23689
23690 # Whether or not to build static libraries.
23691 build_old_libs=$enable_static
23692
23693 # What type of objects to build.
23694 pic_mode=$pic_mode
23695
23696 # Whether or not to optimize for fast installation.
23697 fast_install=$enable_fast_install
23698
23699 # The host system.
23700 host_alias=$host_alias
23701 host=$host
23702 host_os=$host_os
23703
23704 # The build system.
23705 build_alias=$build_alias
23706 build=$build
23707 build_os=$build_os
23708
23709 # A sed program that does not truncate output.
23710 SED=$lt_SED
23711
23712 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
23713 Xsed="\$SED -e 1s/^X//"
23714
23715 # A grep program that handles long lines.
23716 GREP=$lt_GREP
23717
23718 # An ERE matcher.
23719 EGREP=$lt_EGREP
23720
23721 # A literal string matcher.
23722 FGREP=$lt_FGREP
23723
23724 # A BSD- or MS-compatible name lister.
23725 NM=$lt_NM
23726
23727 # Whether we need soft or hard links.
23728 LN_S=$lt_LN_S
23729
23730 # What is the maximum length of a command?
23731 max_cmd_len=$max_cmd_len
23732
23733 # Object file suffix (normally "o").
23734 objext=$ac_objext
23735
23736 # Executable file suffix (normally "").
23737 exeext=$exeext
23738
23739 # whether the shell understands "unset".
23740 lt_unset=$lt_unset
23741
23742 # turn spaces into newlines.
23743 SP2NL=$lt_lt_SP2NL
23744
23745 # turn newlines into spaces.
23746 NL2SP=$lt_lt_NL2SP
23747
23748 # How to create reloadable object files.
23749 reload_flag=$lt_reload_flag
23750 reload_cmds=$lt_reload_cmds
23751
23752 # An object symbol dumper.
23753 OBJDUMP=$lt_OBJDUMP
23754
23755 # Method to check whether dependent libraries are shared objects.
23756 deplibs_check_method=$lt_deplibs_check_method
23757
23758 # Command to use when deplibs_check_method == "file_magic".
23759 file_magic_cmd=$lt_file_magic_cmd
23760
23761 # The archiver.
23762 AR=$lt_AR
23763 AR_FLAGS=$lt_AR_FLAGS
23764
23765 # A symbol stripping program.
23766 STRIP=$lt_STRIP
23767
23768 # Commands used to install an old-style archive.
23769 RANLIB=$lt_RANLIB
23770 old_postinstall_cmds=$lt_old_postinstall_cmds
23771 old_postuninstall_cmds=$lt_old_postuninstall_cmds
23772
23773 # A C compiler.
23774 LTCC=$lt_CC
23775
23776 # LTCC compiler flags.
23777 LTCFLAGS=$lt_CFLAGS
23778
23779 # Take the output of nm and produce a listing of raw symbols and C names.
23780 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
23781
23782 # Transform the output of nm in a proper C declaration.
23783 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
23784
23785 # Transform the output of nm in a C name address pair.
23786 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
23787
23788 # Transform the output of nm in a C name address pair when lib prefix is needed.
23789 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
23790
23791 # The name of the directory that contains temporary libtool files.
23792 objdir=$objdir
23793
23794 # Shell to use when invoking shell scripts.
23795 SHELL=$lt_SHELL
23796
23797 # An echo program that does not interpret backslashes.
23798 ECHO=$lt_ECHO
23799
23800 # Used to examine libraries when file_magic_cmd begins with "file".
23801 MAGIC_CMD=$MAGIC_CMD
23802
23803 # Must we lock files when doing compilation?
23804 need_locks=$lt_need_locks
23805
23806 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
23807 DSYMUTIL=$lt_DSYMUTIL
23808
23809 # Tool to change global to local symbols on Mac OS X.
23810 NMEDIT=$lt_NMEDIT
23811
23812 # Tool to manipulate fat objects and archives on Mac OS X.
23813 LIPO=$lt_LIPO
23814
23815 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
23816 OTOOL=$lt_OTOOL
23817
23818 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
23819 OTOOL64=$lt_OTOOL64
23820
23821 # Old archive suffix (normally "a").
23822 libext=$libext
23823
23824 # Shared library suffix (normally ".so").
23825 shrext_cmds=$lt_shrext_cmds
23826
23827 # The commands to extract the exported symbol list from a shared archive.
23828 extract_expsyms_cmds=$lt_extract_expsyms_cmds
23829
23830 # Variables whose values should be saved in libtool wrapper scripts and
23831 # restored at link time.
23832 variables_saved_for_relink=$lt_variables_saved_for_relink
23833
23834 # Do we need the "lib" prefix for modules?
23835 need_lib_prefix=$need_lib_prefix
23836
23837 # Do we need a version for libraries?
23838 need_version=$need_version
23839
23840 # Library versioning type.
23841 version_type=$version_type
23842
23843 # Shared library runtime path variable.
23844 runpath_var=$runpath_var
23845
23846 # Shared library path variable.
23847 shlibpath_var=$shlibpath_var
23848
23849 # Is shlibpath searched before the hard-coded library search path?
23850 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
23851
23852 # Format of library name prefix.
23853 libname_spec=$lt_libname_spec
23854
23855 # List of archive names. First name is the real one, the rest are links.
23856 # The last name is the one that the linker finds with -lNAME
23857 library_names_spec=$lt_library_names_spec
23858
23859 # The coded name of the library, if different from the real name.
23860 soname_spec=$lt_soname_spec
23861
23862 # Command to use after installation of a shared archive.
23863 postinstall_cmds=$lt_postinstall_cmds
23864
23865 # Command to use after uninstallation of a shared archive.
23866 postuninstall_cmds=$lt_postuninstall_cmds
23867
23868 # Commands used to finish a libtool library installation in a directory.
23869 finish_cmds=$lt_finish_cmds
23870
23871 # As "finish_cmds", except a single script fragment to be evaled but
23872 # not shown.
23873 finish_eval=$lt_finish_eval
23874
23875 # Whether we should hardcode library paths into libraries.
23876 hardcode_into_libs=$hardcode_into_libs
23877
23878 # Compile-time system search path for libraries.
23879 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
23880
23881 # Run-time system search path for libraries.
23882 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
23883
23884 # Whether dlopen is supported.
23885 dlopen_support=$enable_dlopen
23886
23887 # Whether dlopen of programs is supported.
23888 dlopen_self=$enable_dlopen_self
23889
23890 # Whether dlopen of statically linked programs is supported.
23891 dlopen_self_static=$enable_dlopen_self_static
23892
23893 # Commands to strip libraries.
23894 old_striplib=$lt_old_striplib
23895 striplib=$lt_striplib
23896
23897
23898 # The linker used to build libraries.
23899 LD=$lt_LD
23900
23901 # Commands used to build an old-style archive.
23902 old_archive_cmds=$lt_old_archive_cmds
23903
23904 # A language specific compiler.
23905 CC=$lt_compiler
23906
23907 # Is the compiler the GNU compiler?
23908 with_gcc=$GCC
23909
23910 # Compiler flag to turn off builtin functions.
23911 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
23912
23913 # How to pass a linker flag through the compiler.
23914 wl=$lt_lt_prog_compiler_wl
23915
23916 # Additional compiler flags for building library objects.
23917 pic_flag=$lt_lt_prog_compiler_pic
23918
23919 # Compiler flag to prevent dynamic linking.
23920 link_static_flag=$lt_lt_prog_compiler_static
23921
23922 # Does compiler simultaneously support -c and -o options?
23923 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
23924
23925 # Whether or not to add -lc for building shared libraries.
23926 build_libtool_need_lc=$archive_cmds_need_lc
23927
23928 # Whether or not to disallow shared libs when runtime libs are static.
23929 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
23930
23931 # Compiler flag to allow reflexive dlopens.
23932 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
23933
23934 # Compiler flag to generate shared objects directly from archives.
23935 whole_archive_flag_spec=$lt_whole_archive_flag_spec
23936
23937 # Whether the compiler copes with passing no objects directly.
23938 compiler_needs_object=$lt_compiler_needs_object
23939
23940 # Create an old-style archive from a shared archive.
23941 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
23942
23943 # Create a temporary old-style archive to link instead of a shared archive.
23944 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
23945
23946 # Commands used to build a shared archive.
23947 archive_cmds=$lt_archive_cmds
23948 archive_expsym_cmds=$lt_archive_expsym_cmds
23949
23950 # Commands used to build a loadable module if different from building
23951 # a shared archive.
23952 module_cmds=$lt_module_cmds
23953 module_expsym_cmds=$lt_module_expsym_cmds
23954
23955 # Whether we are building with GNU ld or not.
23956 with_gnu_ld=$lt_with_gnu_ld
23957
23958 # Flag that allows shared libraries with undefined symbols to be built.
23959 allow_undefined_flag=$lt_allow_undefined_flag
23960
23961 # Flag that enforces no undefined symbols.
23962 no_undefined_flag=$lt_no_undefined_flag
23963
23964 # Flag to hardcode \$libdir into a binary during linking.
23965 # This must work even if \$libdir does not exist
23966 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
23967
23968 # If ld is used when linking, flag to hardcode \$libdir into a binary
23969 # during linking. This must work even if \$libdir does not exist.
23970 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
23971
23972 # Whether we need a single "-rpath" flag with a separated argument.
23973 hardcode_libdir_separator=$lt_hardcode_libdir_separator
23974
23975 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
23976 # DIR into the resulting binary.
23977 hardcode_direct=$hardcode_direct
23978
23979 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
23980 # DIR into the resulting binary and the resulting library dependency is
23981 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
23982 # library is relocated.
23983 hardcode_direct_absolute=$hardcode_direct_absolute
23984
23985 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
23986 # into the resulting binary.
23987 hardcode_minus_L=$hardcode_minus_L
23988
23989 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
23990 # into the resulting binary.
23991 hardcode_shlibpath_var=$hardcode_shlibpath_var
23992
23993 # Set to "yes" if building a shared library automatically hardcodes DIR
23994 # into the library and all subsequent libraries and executables linked
23995 # against it.
23996 hardcode_automatic=$hardcode_automatic
23997
23998 # Set to yes if linker adds runtime paths of dependent libraries
23999 # to runtime path list.
24000 inherit_rpath=$inherit_rpath
24001
24002 # Whether libtool must link a program against all its dependency libraries.
24003 link_all_deplibs=$link_all_deplibs
24004
24005 # Fix the shell variable \$srcfile for the compiler.
24006 fix_srcfile_path=$lt_fix_srcfile_path
24007
24008 # Set to "yes" if exported symbols are required.
24009 always_export_symbols=$always_export_symbols
24010
24011 # The commands to list exported symbols.
24012 export_symbols_cmds=$lt_export_symbols_cmds
24013
24014 # Symbols that should not be listed in the preloaded symbols.
24015 exclude_expsyms=$lt_exclude_expsyms
24016
24017 # Symbols that must always be exported.
24018 include_expsyms=$lt_include_expsyms
24019
24020 # Commands necessary for linking programs (against libraries) with templates.
24021 prelink_cmds=$lt_prelink_cmds
24022
24023 # Specify filename containing input files.
24024 file_list_spec=$lt_file_list_spec
24025
24026 # How to hardcode a shared library path into an executable.
24027 hardcode_action=$hardcode_action
24028
24029 # ### END LIBTOOL CONFIG
24030
24031 _LT_EOF
24032
24033 case $host_os in
24034 aix3*)
24035 cat <<\_LT_EOF >> "$cfgfile"
24036 # AIX sometimes has problems with the GCC collect2 program. For some
24037 # reason, if we set the COLLECT_NAMES environment variable, the problems
24038 # vanish in a puff of smoke.
24039 if test "X${COLLECT_NAMES+set}" != Xset; then
24040 COLLECT_NAMES=
24041 export COLLECT_NAMES
24042 fi
24043 _LT_EOF
24044 ;;
24045 esac
24046
24047
24048 ltmain="$ac_aux_dir/ltmain.sh"
24049
24050
24051 # We use sed instead of cat because bash on DJGPP gets confused if
24052 # if finds mixed CR/LF and LF-only lines. Since sed operates in
24053 # text mode, it properly converts lines to CR/LF. This bash problem
24054 # is reportedly fixed, but why not run on old versions too?
24055 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
24056 || (rm -f "$cfgfile"; exit 1)
24057
24058 case $xsi_shell in
24059 yes)
24060 cat << \_LT_EOF >> "$cfgfile"
24061
24062 # func_dirname file append nondir_replacement
24063 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
24064 # otherwise set result to NONDIR_REPLACEMENT.
24065 func_dirname ()
24066 {
24067 case ${1} in
24068 */*) func_dirname_result="${1%/*}${2}" ;;
24069 * ) func_dirname_result="${3}" ;;
24070 esac
24071 }
24072
24073 # func_basename file
24074 func_basename ()
24075 {
24076 func_basename_result="${1##*/}"
24077 }
24078
24079 # func_dirname_and_basename file append nondir_replacement
24080 # perform func_basename and func_dirname in a single function
24081 # call:
24082 # dirname: Compute the dirname of FILE. If nonempty,
24083 # add APPEND to the result, otherwise set result
24084 # to NONDIR_REPLACEMENT.
24085 # value returned in "$func_dirname_result"
24086 # basename: Compute filename of FILE.
24087 # value retuned in "$func_basename_result"
24088 # Implementation must be kept synchronized with func_dirname
24089 # and func_basename. For efficiency, we do not delegate to
24090 # those functions but instead duplicate the functionality here.
24091 func_dirname_and_basename ()
24092 {
24093 case ${1} in
24094 */*) func_dirname_result="${1%/*}${2}" ;;
24095 * ) func_dirname_result="${3}" ;;
24096 esac
24097 func_basename_result="${1##*/}"
24098 }
24099
24100 # func_stripname prefix suffix name
24101 # strip PREFIX and SUFFIX off of NAME.
24102 # PREFIX and SUFFIX must not contain globbing or regex special
24103 # characters, hashes, percent signs, but SUFFIX may contain a leading
24104 # dot (in which case that matches only a dot).
24105 func_stripname ()
24106 {
24107 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
24108 # positional parameters, so assign one to ordinary parameter first.
24109 func_stripname_result=${3}
24110 func_stripname_result=${func_stripname_result#"${1}"}
24111 func_stripname_result=${func_stripname_result%"${2}"}
24112 }
24113
24114 # func_opt_split
24115 func_opt_split ()
24116 {
24117 func_opt_split_opt=${1%%=*}
24118 func_opt_split_arg=${1#*=}
24119 }
24120
24121 # func_lo2o object
24122 func_lo2o ()
24123 {
24124 case ${1} in
24125 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
24126 *) func_lo2o_result=${1} ;;
24127 esac
24128 }
24129
24130 # func_xform libobj-or-source
24131 func_xform ()
24132 {
24133 func_xform_result=${1%.*}.lo
24134 }
24135
24136 # func_arith arithmetic-term...
24137 func_arith ()
24138 {
24139 func_arith_result=$(( $* ))
24140 }
24141
24142 # func_len string
24143 # STRING may not start with a hyphen.
24144 func_len ()
24145 {
24146 func_len_result=${#1}
24147 }
24148
24149 _LT_EOF
24150 ;;
24151 *) # Bourne compatible functions.
24152 cat << \_LT_EOF >> "$cfgfile"
24153
24154 # func_dirname file append nondir_replacement
24155 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
24156 # otherwise set result to NONDIR_REPLACEMENT.
24157 func_dirname ()
24158 {
24159 # Extract subdirectory from the argument.
24160 func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
24161 if test "X$func_dirname_result" = "X${1}"; then
24162 func_dirname_result="${3}"
24163 else
24164 func_dirname_result="$func_dirname_result${2}"
24165 fi
24166 }
24167
24168 # func_basename file
24169 func_basename ()
24170 {
24171 func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
24172 }
24173
24174
24175 # func_stripname prefix suffix name
24176 # strip PREFIX and SUFFIX off of NAME.
24177 # PREFIX and SUFFIX must not contain globbing or regex special
24178 # characters, hashes, percent signs, but SUFFIX may contain a leading
24179 # dot (in which case that matches only a dot).
24180 # func_strip_suffix prefix name
24181 func_stripname ()
24182 {
24183 case ${2} in
24184 .*) func_stripname_result=`$ECHO "X${3}" \
24185 | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
24186 *) func_stripname_result=`$ECHO "X${3}" \
24187 | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
24188 esac
24189 }
24190
24191 # sed scripts:
24192 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
24193 my_sed_long_arg='1s/^-[^=]*=//'
24194
24195 # func_opt_split
24196 func_opt_split ()
24197 {
24198 func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
24199 func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
24200 }
24201
24202 # func_lo2o object
24203 func_lo2o ()
24204 {
24205 func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
24206 }
24207
24208 # func_xform libobj-or-source
24209 func_xform ()
24210 {
24211 func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
24212 }
24213
24214 # func_arith arithmetic-term...
24215 func_arith ()
24216 {
24217 func_arith_result=`expr "$@"`
24218 }
24219
24220 # func_len string
24221 # STRING may not start with a hyphen.
24222 func_len ()
24223 {
24224 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
24225 }
24226
24227 _LT_EOF
24228 esac
24229
24230 case $lt_shell_append in
24231 yes)
24232 cat << \_LT_EOF >> "$cfgfile"
24233
24234 # func_append var value
24235 # Append VALUE to the end of shell variable VAR.
24236 func_append ()
24237 {
24238 eval "$1+=\$2"
24239 }
24240 _LT_EOF
24241 ;;
24242 *)
24243 cat << \_LT_EOF >> "$cfgfile"
24244
24245 # func_append var value
24246 # Append VALUE to the end of shell variable VAR.
24247 func_append ()
24248 {
24249 eval "$1=\$$1\$2"
24250 }
24251
24252 _LT_EOF
24253 ;;
24254 esac
24255
24256
24257 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
24258 || (rm -f "$cfgfile"; exit 1)
24259
24260 mv -f "$cfgfile" "$ofile" ||
24261 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
24262 chmod +x "$ofile"
24263
24264 ;;
24265
24266 esac
2933024267 done # for ac_tag
2933124268
2933224269
2933424271 _ACEOF
2933524272 chmod +x $CONFIG_STATUS
2933624273 ac_clean_files=$ac_clean_files_save
24274
24275 test $ac_write_fail = 0 ||
24276 { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5
24277 $as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;}
24278 { (exit 1); exit 1; }; }
2933724279
2933824280
2933924281 # configure is writing to config.log, and then calls config.status.
2936224304 #
2936324305 if test "$no_recursion" != yes; then
2936424306
29365 # Remove --cache-file and --srcdir arguments so they do not pile up.
24307 # Remove --cache-file, --srcdir, and --disable-option-checking arguments
24308 # so they do not pile up.
2936624309 ac_sub_configure_args=
2936724310 ac_prev=
2936824311 eval "set x $ac_configure_args"
2939124334 ac_prev=prefix ;;
2939224335 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
2939324336 ;;
24337 --disable-option-checking)
24338 ;;
2939424339 *)
2939524340 case $ac_arg in
29396 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
24341 *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2939724342 esac
2939824343 ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
2939924344 esac
2940324348 # in subdir configurations.
2940424349 ac_arg="--prefix=$prefix"
2940524350 case $ac_arg in
29406 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
24351 *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2940724352 esac
2940824353 ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args"
2940924354
2941224357 ac_sub_configure_args="--silent $ac_sub_configure_args"
2941324358 fi
2941424359
24360 # Always prepend --disable-option-checking to silence warnings, since
24361 # different subdirs can have different --enable and --with options.
24362 ac_sub_configure_args="--disable-option-checking $ac_sub_configure_args"
24363
2941524364 ac_popdir=`pwd`
2941624365 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
2941724366
2942024369 test -d "$srcdir/$ac_dir" || continue
2942124370
2942224371 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
29423 echo "$as_me:$LINENO: $ac_msg" >&5
29424 echo "$ac_msg" >&6
24372 $as_echo "$as_me:$LINENO: $ac_msg" >&5
24373 $as_echo "$ac_msg" >&6
2942524374 { as_dir="$ac_dir"
2942624375 case $as_dir in #(
2942724376 -*) as_dir=./$as_dir;;
2943024379 as_dirs=
2943124380 while :; do
2943224381 case $as_dir in #(
29433 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
24382 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
2943424383 *) as_qdir=$as_dir;;
2943524384 esac
2943624385 as_dirs="'$as_qdir' $as_dirs"
2943924388 X"$as_dir" : 'X\(//\)[^/]' \| \
2944024389 X"$as_dir" : 'X\(//\)$' \| \
2944124390 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
29442 echo X"$as_dir" |
24391 $as_echo X"$as_dir" |
2944324392 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
2944424393 s//\1/
2944524394 q
2946024409 test -d "$as_dir" && break
2946124410 done
2946224411 test -z "$as_dirs" || eval "mkdir $as_dirs"
29463 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
29464 echo "$as_me: error: cannot create directory $as_dir" >&2;}
24412 } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
24413 $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
2946524414 { (exit 1); exit 1; }; }; }
2946624415 ac_builddir=.
2946724416
2946824417 case "$ac_dir" in
2946924418 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
2947024419 *)
29471 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
24420 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
2947224421 # A ".." for each directory in $ac_dir_suffix.
29473 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
24422 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
2947424423 case $ac_top_builddir_sub in
2947524424 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
2947624425 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
2950924458 # This should be Cygnus configure.
2951024459 ac_sub_configure=$ac_aux_dir/configure
2951124460 else
29512 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
29513 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
24461 { $as_echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
24462 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
2951424463 ac_sub_configure=
2951524464 fi
2951624465
2952324472 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
2952424473 esac
2952524474
29526 { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
29527 echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
24475 { $as_echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
24476 $as_echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
2952824477 # The eval makes quoting arguments work.
2952924478 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
2953024479 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
29531 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
29532 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
24480 { { $as_echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
24481 $as_echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
2953324482 { (exit 1); exit 1; }; }
2953424483 fi
2953524484
2953624485 cd "$ac_popdir"
2953724486 done
2953824487 fi
29539
24488 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
24489 { $as_echo "$as_me:$LINENO: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
24490 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
24491 fi
24492
55 sinclude(acx_python.m4)
66 sinclude(ac_pkg_swig.m4)
77
8 AC_INIT(unbound, 1.3.0, unbound-bugs@nlnetlabs.nl, unbound)
8 AC_INIT(unbound, 1.3.2, unbound-bugs@nlnetlabs.nl, unbound)
99
1010 LIBUNBOUND_CURRENT=1
11 LIBUNBOUND_REVISION=0
11 LIBUNBOUND_REVISION=2
1212 LIBUNBOUND_AGE=0
1313 # 1.0.0 had 0:12:0
1414 # 1.0.1 had 0:13:0
1818 # 1.2.0 had 0:17:0
1919 # 1.2.1 had 0:18:0
2020 # 1.3.0 had 1:0:0 # ub_cancel and -export-symbols.
21 # 1.3.1 had 1:1:0
22 # 1.3.2 had 1:2:0
2123
2224 # Current -- the number of the binary API that we're implementing
2325 # Revision -- which iteration of the implementation of the binary
311313 AC_PROG_SWIG
312314 AC_MSG_CHECKING(SWIG)
313315 if test ! -x "$SWIG"; then
314 AC_MSG_RESULT(failed, won't build Python module and PyUnbound)
315 AC_SUBST(swig, "")
316 ub_with_pyunbound=no
317 ub_with_pythonmod=no
316 AC_ERROR([failed to find swig tool, install it, or do not build Python module and PyUnbound])
318317 else
319318 AC_DEFINE(HAVE_SWIG, 1, [Define if you have Swig libraries and header files.])
320319 AC_SUBST(swig, "$SWIG")
409408 fi
410409 else
411410 AC_MSG_RESULT(found in $thedir)
412 dnl assume /usr is in default path.
413 if test "$thedir" != "/usr"; then
411 dnl assume /usr is in default path, do not add "".
412 if test "$thedir" != "/usr" -a "$thedir" != ""; then
414413 LDFLAGS="$LDFLAGS -L$thedir/lib"
415414 ACX_RUNTIME_PATH_ADD([$thedir/lib])
416415 fi
513512 AC_ARG_WITH(ldns, AC_HELP_STRING([--with-ldns=PATH],
514513 [specify prefix of path of ldns library to use]),
515514 [ specialldnsdir="$withval"
516 CPPFLAGS="-I$withval/include $CPPFLAGS"
517 LDFLAGS="-L$withval -L$withval/lib $LDFLAGS"
518 ACX_RUNTIME_PATH_ADD([$withval/lib])
515 if test "$withval" != ""; then
516 CPPFLAGS="-I$withval/include $CPPFLAGS"
517 LDFLAGS="-L$withval -L$withval/lib $LDFLAGS"
518 ACX_RUNTIME_PATH_ADD([$withval/lib])
519 fi
519520 ldnsdir="$withval"
520521 AC_SUBST(ldnsdir)
521522 ])
1111 * unbound_cacti.tar.gz : setup files for cacti statistics report
1212 * selinux: the .fc and .te files for SElinux protection of the unbound daemon
1313 * unbound.plist: launchd configuration file for MacOSX.
14 * build-unbound-localzone-from-hosts.pl: perl script to turn /etc/hosts into
15 a local-zone and local-data include file for unbound.conf.
0 #!/usr/bin/perl -WT
1
2 use strict;
3 use warnings;
4
5 my $hostsfile = '/etc/hosts';
6 my $localzonefile = '/etc/unbound/localzone.conf.new';
7
8 my $localzone = 'example.com';
9
10 open( HOSTS,"<${hostsfile}" ) or die( "Could not open ${hostsfile}: $!" );
11 open( ZONE,">${localzonefile}" ) or die( "Could not open ${localzonefile}: $!" );
12
13 print ZONE "server:\n\n";
14 print ZONE "local-zone: \"${localzone}\" transparent\n\n";
15
16 my %ptrhash;
17
18 while ( my $hostline = <HOSTS> ) {
19
20 # Skip comments
21 if ( $hostline !~ "^#" and $hostline !~ '^\s+$' ) {
22
23 my @entries = split( /\s+/, $hostline );
24
25 my $ip;
26
27 my $count = 0;
28 foreach my $entry ( @entries ) {
29 if ( $count == 0 ) {
30 $ip = $entry;
31 } else {
32
33 if ( $count == 1) {
34
35 # Only return localhost for 127.0.0.1 and ::1
36 if ( ($ip ne '127.0.0.1' and $ip ne '::1') or $entry =~ 'localhost' ) {
37 if ( ! defined $ptrhash{$ip} ) {
38 $ptrhash{$ip} = $entry;
39 print ZONE "local-data-ptr: \"$ip $entry\"\n";
40 }
41 }
42
43 }
44
45 # Use AAAA for IPv6 addresses
46 my $a = 'A';
47 if ( $ip =~ ':' ) {
48 $a = 'AAAA';
49 }
50
51 print ZONE "local-data: \"$entry ${a} $ip\"\n";
52
53 }
54 $count++;
55 }
56 print ZONE "\n";
57
58
59 }
60 }
61
62
63
64
65 __END__
66
0 # initial python set up
1 %{?!with_python: %define with_python 0}
2
3 %if %{with_python}
4 %{!?python_sitelib: %global python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}
5 %{!?python_sitearch: %global python_sitearch %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib(1)")}
6 %endif
7
08 Summary: Validating, recursive, and caching DNS(SEC) resolver
19 Name: unbound
2 Version: 1.2.1rc1
10 Version: 1.3.1rc2
311 Release: 1%{?dist}
412 License: BSD
513 Url: http://www.nlnetlabs.nl/unbound/
715 Source1: unbound.init
816 Source2: unbound.conf
917 Source3: unbound.munin
18 # See the unbound svn repository for further documentation on these
19 Patch0: unbound-1.2-glob.patch
20
1021 Group: System Environment/Daemons
1122 BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
12 BuildRequires: flex, openssl-devel >= 0.9.8g-12, ldns-devel >= 1.5.0,
13 BuildRequires: libevent-devel >= 1.4.5
23 BuildRequires: flex, openssl-devel , ldns-devel >= 1.5.0,
24 BuildRequires: libevent-devel
25 %if %{with_python}
26 BuildRequires: python-devel
27 %endif
28
1429 Requires(post): chkconfig
1530 Requires(preun): chkconfig
1631 Requires(preun): initscripts
1732 Requires(postun): initscripts
18 Requires: ldns >= 1.5.0
33 Requires: ldns >= 1.5.0, dnssec-conf >= 1.19
1934 Requires(pre): shadow-utils
20 # Is this obsolete?
21 #Provides: caching-nameserver
2235
2336 %description
2437 Unbound is a validating, recursive, and caching DNS(SEC) resolver.
5871 %description libs
5972 Contains libraries used by the unbound server and client applications
6073
74 %if %{with_python}
75 %package python
76 Summary: Python modules and extensions for unbound
77 Group: Applications/System
78 Requires: %{name}-libs = %{version}-%{release}
79
80 %description python
81 Python modules and extensions for unbound
82 %endif
83
6184 %prep
6285 %setup -q
86 %patch0 -p1
6387
6488 %build
65 %configure --with-ldns= -with-libevent --with-pthreads --with-ssl \
89 %configure --with-ldns= --with-libevent --with-pthreads --with-ssl \
6690 --disable-rpath --enable-debug --disable-static \
6791 --with-conf-file=%{_sysconfdir}/%{name}/unbound.conf \
68 --with-pidfile=%{_localstatedir}/run/%{name}/%{name}.pid
92 --with-pidfile=%{_localstatedir}/run/%{name}/%{name}.pid \
93 %if %{with_python}
94 --with-pythonmodule --with-pyunbound \
95 %endif
96 --enable-sha2
6997 %{__make} CFLAGS="$RPM_OPT_FLAGS -D_GNU_SOURCE" QUIET=no %{?_smp_mflags}
7098
7199 %install
101129 %{_sbindir}/*
102130 %{_mandir}/*/*
103131
132 %if %{with_python}
133 %files python
134 %{python_sitelib}/*
135 %endif
136
104137 %files munin
105138 %defattr(-,root,root,-)
106139 %config(noreplace) %{_sysconfdir}/munin/plugin-conf.d/unbound
124157 -c "Unbound DNS resolver" unbound
125158 exit 0
126159
127 %post
160 %post
128161 /sbin/chkconfig --add %{name}
162 # Check DNSSEC settings if this is a fresh install
163 if [ "$1" -eq 1 ]; then
164 if [ -r /etc/sysconfig/dnssec ]; then
165 . /etc/sysconfig/dnssec
166 [ -x /usr/sbin/dnssec-configure ] && \
167 dnssec-configure -u --norestart --nocheck --dnssec="$DNSSEC" --dlv="$DLV" > \
168 /dev/null 2>&1
169 fi;
170 fi
129171
130172 %post libs -p /sbin/ldconfig
131
132173
133174 %preun
134175 if [ "$1" -eq 0 ]; then
144185 %postun libs -p /sbin/ldconfig
145186
146187 %changelog
188 * Sat Jun 20 2009 Paul Wouters <paul@xelerance.com> - 1.3.0-2
189 - Added missing glob patch to cvs
190 - Place python macros within the %%with_python check
191
192 * Sat Jun 20 2009 Paul Wouters <paul@xelerance.com> - 1.3.0-1
193 - Updated to 1.3.0
194 - Added unbound-python sub package. disabled for now
195 - Patch from svn to fix DLV lookups
196 - Patches from svn to detect wrong truncated response from BIND 9.6.1 with
197 minimal-responses)
198 - Added Default-Start and Default-Stop to unbound.init
199 - Re-enabled --enable-sha2
200 - Re-enabled glob.patch
201
202 * Wed May 20 2009 Paul Wouters <paul@xelerance.com> - 1.2.1-7
203 - unbound-iterator.patch was not commited
204
205 * Wed May 20 2009 Paul Wouters <paul@xelerance.com> - 1.2.1-6
206 - Fix for https://bugzilla.redhat.com/show_bug.cgi?id=499793
207
208 * Tue Mar 17 2009 Paul Wouters <paul@xelerance.com> - 1.2.1-5
209 - Use --nocheck to avoid giving an error on missing unbound-remote certs/keys
210
211 * Tue Mar 10 2009 Adam Tkac <atkac redhat com> - 1.2.1-4
212 - enable DNSSEC only if it is enabled in sysconfig/dnssec
213
214 * Mon Mar 09 2009 Adam Tkac <atkac redhat com> - 1.2.1-3
215 - add DNSSEC support to initscript and enabled it per default
216 - add requires dnssec-conf
217
218 * Wed Feb 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.2.1-2
219 - Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
220
221 * Tue Feb 10 2009 Paul Wouters <paul@xelerance.com - 1.2.1-1
222 - updated to 1.2.1
223
147224 * Sun Jan 18 2009 Tomas Mraz <tmraz@redhat.com> - 1.2.0-2
148225 - rebuild with new openssl
149226
436436 done
437437 ;;
438438 memory)
439 for x in mem.total.sbrk mem.cache.rrset mem.cache.message \
439 mn=`echo mem.total.sbrk | sed $ABBREV | tr . _`
440 get_value 'mem.total.sbrk'
441 if test $value -eq 0; then
442 chk=`echo $ctrl | sed -e 's/-control$/-checkconf/'`
443 pidf=`$chk -o pidfile $conf 2>&1`
444 pid=`cat $pidf 2>&1`
445 value=`ps -p "$pid" -o rss= 2>&1`
446 if test "`expr $value + 1 - 1 2>&1`" -eq "$value" 2>&1; then
447 value=`expr $value \* 1024`
448 else
449 value=0
450 fi
451 fi
452 echo "$mn.value" $value
453 for x in mem.cache.rrset mem.cache.message \
440454 mem.mod.iterator mem.mod.validator; do
441455 print_value $x
442456 done
461461 local_zones_delete(daemon->local_zones);
462462 daemon->local_zones = NULL;
463463 /* key cache is cleared by module desetup during next daemon_init() */
464 daemon_remote_clear(daemon->rc);
464465 for(i=0; i<daemon->num; i++)
465466 worker_delete(daemon->workers[i]);
466467 free(daemon->workers);
475476 if(!daemon)
476477 return;
477478 modstack_desetup(&daemon->mods, daemon->env);
479 daemon_remote_delete(daemon->rc);
478480 listening_ports_free(daemon->ports);
479481 listening_ports_free(daemon->rc_ports);
480482 if(daemon->env) {
5656 struct acl_list;
5757 struct local_zones;
5858 struct ub_randstate;
59 struct daemon_remote;
5960
6061 /**
6162 * Structure holding worker list.
7273 int listening_port;
7374 /** listening ports, opened, to be shared by threads */
7475 struct listen_port* ports;
75 /** port number fore remote that has ports opened. */
76 /** port number for remote that has ports opened. */
7677 int rc_port;
7778 /** listening ports for remote control */
7879 struct listen_port* rc_ports;
80 /** remote control connections management (for first worker) */
81 struct daemon_remote* rc;
7982 /** num threads allocated */
8083 int num;
8184 /** the worker entries */
135135 }
136136
137137 struct daemon_remote*
138 daemon_remote_create(struct worker* worker)
138 daemon_remote_create(struct config_file* cfg)
139139 {
140140 char* s_cert;
141141 char* s_key;
142 struct config_file* cfg = worker->daemon->cfg;
143142 struct daemon_remote* rc = (struct daemon_remote*)calloc(1,
144143 sizeof(*rc));
145144 if(!rc) {
146145 log_err("out of memory in daemon_remote_create");
147146 return NULL;
148147 }
149 rc->worker = worker;
150148 rc->max_active = 10;
151149
152150 if(!cfg->remote_control_enable) {
165163 daemon_remote_delete(rc);
166164 return NULL;
167165 }
168 s_cert = cfg->server_cert_file;
169 s_key = cfg->server_key_file;
170 if(cfg->chrootdir && cfg->chrootdir[0]) {
171 if(strncmp(s_cert, cfg->chrootdir, strlen(cfg->chrootdir))==0)
172 s_cert += strlen(cfg->chrootdir);
173 if(strncmp(s_key, cfg->chrootdir, strlen(cfg->chrootdir))==0)
174 s_key += strlen(cfg->chrootdir);
166 s_cert = fname_after_chroot(cfg->server_cert_file, cfg, 1);
167 s_key = fname_after_chroot(cfg->server_key_file, cfg, 1);
168 if(!s_cert || !s_key) {
169 log_err("out of memory in remote control fname");
170 goto setup_error;
175171 }
176172 verbose(VERB_ALGO, "setup SSL certificates");
177173 if (!SSL_CTX_use_certificate_file(rc->ctx,s_cert,SSL_FILETYPE_PEM)) {
178174 log_err("Error for server-cert-file: %s", s_cert);
179175 log_crypto_err("Error in SSL_CTX use_certificate_file");
180 daemon_remote_delete(rc);
181 return NULL;
176 goto setup_error;
182177 }
183178 if(!SSL_CTX_use_PrivateKey_file(rc->ctx,s_key,SSL_FILETYPE_PEM)) {
184179 log_err("Error for server-key-file: %s", s_key);
185180 log_crypto_err("Error in SSL_CTX use_PrivateKey_file");
186 daemon_remote_delete(rc);
187 return NULL;
181 goto setup_error;
188182 }
189183 if(!SSL_CTX_check_private_key(rc->ctx)) {
190184 log_err("Error for server-key-file: %s", s_key);
191185 log_crypto_err("Error in SSL_CTX check_private_key");
186 goto setup_error;
187 }
188 if(!SSL_CTX_load_verify_locations(rc->ctx, s_cert, NULL)) {
189 log_crypto_err("Error setting up SSL_CTX verify locations");
190 setup_error:
191 free(s_cert);
192 free(s_key);
192193 daemon_remote_delete(rc);
193194 return NULL;
194195 }
195 if(!SSL_CTX_load_verify_locations(rc->ctx, s_cert, NULL)) {
196 log_crypto_err("Error setting up SSL_CTX verify locations");
197 daemon_remote_delete(rc);
198 return NULL;
199 }
200196 SSL_CTX_set_client_CA_list(rc->ctx, SSL_load_client_CA_file(s_cert));
201197 SSL_CTX_set_verify(rc->ctx, SSL_VERIFY_PEER, NULL);
198 free(s_cert);
199 free(s_key);
202200
203201 return rc;
204202 }
205203
206 void daemon_remote_delete(struct daemon_remote* rc)
204 void daemon_remote_clear(struct daemon_remote* rc)
207205 {
208206 struct rc_state* p, *np;
209207 if(!rc) return;
210208 /* but do not close the ports */
211209 listen_list_delete(rc->accept_list);
210 rc->accept_list = NULL;
212211 /* do close these sockets */
213212 p = rc->busy_list;
214213 while(p) {
219218 free(p);
220219 p = np;
221220 }
221 rc->busy_list = NULL;
222 rc->active = 0;
223 rc->worker = NULL;
224 }
225
226 void daemon_remote_delete(struct daemon_remote* rc)
227 {
228 if(!rc) return;
229 daemon_remote_clear(rc);
222230 if(rc->ctx) {
223231 SSL_CTX_free(rc->ctx);
224232 }
347355 }
348356
349357 int daemon_remote_open_accept(struct daemon_remote* rc,
350 struct listen_port* ports)
358 struct listen_port* ports, struct worker* worker)
351359 {
352360 struct listen_port* p;
361 rc->worker = worker;
353362 for(p = ports; p; p = p->next) {
354363 if(!accept_open(rc, p->fd)) {
355364 log_err("could not create accept comm point");
10331042 free(nm);
10341043 }
10351044
1045 /** flush something from rrset and msg caches */
1046 static void
1047 do_cache_remove(struct worker* worker, uint8_t* nm, size_t nmlen,
1048 uint16_t t, uint16_t c)
1049 {
1050 hashvalue_t h;
1051 struct query_info k;
1052 rrset_cache_remove(worker->env.rrset_cache, nm, nmlen, t, c, 0);
1053 k.qname = nm;
1054 k.qname_len = nmlen;
1055 k.qtype = t;
1056 k.qclass = c;
1057 h = query_info_hash(&k);
1058 slabhash_remove(worker->env.msg_cache, h, &k);
1059 }
1060
10361061 /** flush a type */
10371062 static void
10381063 do_flush_type(SSL* ssl, struct worker* worker, char* arg)
10471072 if(!parse_arg_name(ssl, arg, &nm, &nmlen, &nmlabs))
10481073 return;
10491074 t = ldns_get_rr_type_by_name(arg2);
1050 rrset_cache_remove(worker->env.rrset_cache, nm, nmlen,
1051 t, LDNS_RR_CLASS_IN, 0);
1075 do_cache_remove(worker, nm, nmlen, t, LDNS_RR_CLASS_IN);
10521076
10531077 free(nm);
10541078 send_ok(ssl);
11781202
11791203 /** remove name rrset from cache */
11801204 static void
1181 do_flush_name(SSL* ssl, struct worker* worker, char* arg)
1205 do_flush_name(SSL* ssl, struct worker* w, char* arg)
11821206 {
11831207 uint8_t* nm;
11841208 int nmlabs;
11851209 size_t nmlen;
11861210 if(!parse_arg_name(ssl, arg, &nm, &nmlen, &nmlabs))
11871211 return;
1188 rrset_cache_remove(worker->env.rrset_cache, nm, nmlen,
1189 LDNS_RR_TYPE_A, LDNS_RR_CLASS_IN, 0);
1190 rrset_cache_remove(worker->env.rrset_cache, nm, nmlen,
1191 LDNS_RR_TYPE_AAAA, LDNS_RR_CLASS_IN, 0);
1192 rrset_cache_remove(worker->env.rrset_cache, nm, nmlen,
1193 LDNS_RR_TYPE_NS, LDNS_RR_CLASS_IN, 0);
1194 rrset_cache_remove(worker->env.rrset_cache, nm, nmlen,
1195 LDNS_RR_TYPE_SOA, LDNS_RR_CLASS_IN, 0);
1196 rrset_cache_remove(worker->env.rrset_cache, nm, nmlen,
1197 LDNS_RR_TYPE_CNAME, LDNS_RR_CLASS_IN, 0);
1198 rrset_cache_remove(worker->env.rrset_cache, nm, nmlen,
1199 LDNS_RR_TYPE_DNAME, LDNS_RR_CLASS_IN, 0);
1200 rrset_cache_remove(worker->env.rrset_cache, nm, nmlen,
1201 LDNS_RR_TYPE_MX, LDNS_RR_CLASS_IN, 0);
1202 rrset_cache_remove(worker->env.rrset_cache, nm, nmlen,
1203 LDNS_RR_TYPE_PTR, LDNS_RR_CLASS_IN, 0);
1204 rrset_cache_remove(worker->env.rrset_cache, nm, nmlen,
1205 LDNS_RR_TYPE_SRV, LDNS_RR_CLASS_IN, 0);
1206 rrset_cache_remove(worker->env.rrset_cache, nm, nmlen,
1207 LDNS_RR_TYPE_NAPTR, LDNS_RR_CLASS_IN, 0);
1212 do_cache_remove(w, nm, nmlen, LDNS_RR_TYPE_A, LDNS_RR_CLASS_IN);
1213 do_cache_remove(w, nm, nmlen, LDNS_RR_TYPE_AAAA, LDNS_RR_CLASS_IN);
1214 do_cache_remove(w, nm, nmlen, LDNS_RR_TYPE_NS, LDNS_RR_CLASS_IN);
1215 do_cache_remove(w, nm, nmlen, LDNS_RR_TYPE_SOA, LDNS_RR_CLASS_IN);
1216 do_cache_remove(w, nm, nmlen, LDNS_RR_TYPE_CNAME, LDNS_RR_CLASS_IN);
1217 do_cache_remove(w, nm, nmlen, LDNS_RR_TYPE_DNAME, LDNS_RR_CLASS_IN);
1218 do_cache_remove(w, nm, nmlen, LDNS_RR_TYPE_MX, LDNS_RR_CLASS_IN);
1219 do_cache_remove(w, nm, nmlen, LDNS_RR_TYPE_PTR, LDNS_RR_CLASS_IN);
1220 do_cache_remove(w, nm, nmlen, LDNS_RR_TYPE_SRV, LDNS_RR_CLASS_IN);
1221 do_cache_remove(w, nm, nmlen, LDNS_RR_TYPE_NAPTR, LDNS_RR_CLASS_IN);
12081222
12091223 free(nm);
12101224 send_ok(ssl);
9595
9696 /**
9797 * Create new remote control state for the daemon.
98 * @param worker: worker with communication base. and links to command channels.
98 * @param cfg: config file with key file settings.
9999 * @return new state, or NULL on failure.
100100 */
101 struct daemon_remote* daemon_remote_create(struct worker* worker);
101 struct daemon_remote* daemon_remote_create(struct config_file* cfg);
102102
103103 /**
104104 * remote control state to delete.
105105 * @param rc: state to delete.
106106 */
107107 void daemon_remote_delete(struct daemon_remote* rc);
108
109 /**
110 * remote control state to clear up. Busy and accept points are closed.
111 * Does not delete the rc itself, or the ssl context (with its keys).
112 * @param rc: state to clear.
113 */
114 void daemon_remote_clear(struct daemon_remote* rc);
108115
109116 /**
110117 * Open and create listening ports for remote control.
118125 * Setup comm points for accepting remote control connections.
119126 * @param rc: state
120127 * @param ports: already opened ports.
128 * @param worker: worker with communication base. and links to command channels.
121129 * @return false on error.
122130 */
123131 int daemon_remote_open_accept(struct daemon_remote* rc,
124 struct listen_port* ports);
132 struct listen_port* ports, struct worker* worker);
125133
126134 /**
127135 * Handle nonthreaded remote cmd execution.
4242 #include "config.h"
4343 #include "util/log.h"
4444 #include "daemon/daemon.h"
45 #include "daemon/remote.h"
4546 #include "util/config_file.h"
4647 #include "util/storage/slabhash.h"
4748 #include "services/listen_dnsport.h"
364365 * we cannot chown system logfiles, so we do not open at all.
365366 * So, using a logfile, the user does not see errors unless -d is
366367 * given to unbound on the commandline. */
368
369 /* read ssl keys while superuser and outside chroot */
370 if(!(daemon->rc = daemon_remote_create(cfg)))
371 fatal_exit("could not set up remote-control");
367372
368373 #ifdef HAVE_KILL
369374 /* check old pid file before forking */
495495 return 1;
496496 }
497497
498 /** check cname chain in cache reply */
499 static int
500 check_cache_chain(struct reply_info* rep) {
501 /* check only answer section rrs for matching cname chain.
502 * the cache may return changed rdata, but owner names are untouched.*/
503 size_t i;
504 uint8_t* sname = rep->rrsets[0]->rk.dname;
505 size_t snamelen = rep->rrsets[0]->rk.dname_len;
506 for(i=0; i<rep->an_numrrsets; i++) {
507 uint16_t t = ntohs(rep->rrsets[i]->rk.type);
508 if(t == LDNS_RR_TYPE_DNAME)
509 continue; /* skip dnames; note TTL 0 not cached */
510 /* verify that owner matches current sname */
511 if(query_dname_compare(sname, rep->rrsets[i]->rk.dname) != 0){
512 /* cname chain broken */
513 return 0;
514 }
515 /* if this is a cname; move on */
516 if(t == LDNS_RR_TYPE_CNAME) {
517 get_cname_target(rep->rrsets[i], &sname, &snamelen);
518 }
519 }
520 return 1;
521 }
522
523 /** check security status in cache reply */
524 static int
525 all_rrsets_secure(struct reply_info* rep) {
526 size_t i;
527 for(i=0; i<rep->rrset_count; i++) {
528 if( ((struct packed_rrset_data*)rep->rrsets[i]->entry.data)
529 ->security != sec_status_secure )
530 return 0;
531 }
532 return 1;
533 }
534
535498 /** answer query from the cache */
536499 static int
537500 answer_from_cache(struct worker* worker, struct query_info* qinfo,
557520 if(rep->an_numrrsets > 0 && (rep->rrsets[0]->rk.type ==
558521 htons(LDNS_RR_TYPE_CNAME) || rep->rrsets[0]->rk.type ==
559522 htons(LDNS_RR_TYPE_DNAME))) {
560 if(!check_cache_chain(rep)) {
523 if(!reply_check_cname_chain(rep)) {
561524 /* cname chain invalid, redo iterator steps */
562525 verbose(VERB_ALGO, "Cache reply: cname chain broken");
563526 bail_out:
589552 "validation");
590553 goto bail_out; /* need to validate cache entry first */
591554 } else if(rep->security == sec_status_secure) {
592 if(all_rrsets_secure(rep))
555 if(reply_all_rrsets_secure(rep))
593556 secure = 1;
594557 else {
595558 if(must_validate) {
10371000 return 0;
10381001 }
10391002 #endif /* LIBEVENT_SIGNAL_PROBLEM */
1040 if(!(worker->rc = daemon_remote_create(worker))) {
1041 worker_delete(worker);
1042 return 0;
1043 }
1044 if(!daemon_remote_open_accept(worker->rc,
1045 worker->daemon->rc_ports)) {
1003 if(!daemon_remote_open_accept(worker->daemon->rc,
1004 worker->daemon->rc_ports, worker)) {
10461005 worker_delete(worker);
10471006 return 0;
10481007 }
10511010 #endif /* UB_ON_WINDOWS */
10521011 } else { /* !do_sigs */
10531012 worker->comsig = NULL;
1054 worker->rc = NULL;
10551013 }
10561014 seed = (unsigned int)time(NULL) ^ (unsigned int)getpid() ^
10571015 (((unsigned int)worker->thread_num)<<17);
11711129 comm_signal_delete(worker->comsig);
11721130 tube_delete(worker->cmd);
11731131 comm_timer_delete(worker->stat_timer);
1174 daemon_remote_delete(worker->rc);
11751132 free(worker->ports);
11761133 if(worker->thread_num == 0) {
11771134 log_set_time(NULL);
12901247 log_assert(0);
12911248 }
12921249
1250 void libworker_fg_done_cb(void* ATTR_UNUSED(arg), int ATTR_UNUSED(rcode),
1251 ldns_buffer* ATTR_UNUSED(buf), enum sec_status ATTR_UNUSED(s))
1252 {
1253 log_assert(0);
1254 }
1255
1256 void libworker_bg_done_cb(void* ATTR_UNUSED(arg), int ATTR_UNUSED(rcode),
1257 ldns_buffer* ATTR_UNUSED(buf), enum sec_status ATTR_UNUSED(s))
1258 {
1259 log_assert(0);
1260 }
1261
12931262 int context_query_cmp(const void* ATTR_UNUSED(a), const void* ATTR_UNUSED(b))
12941263 {
12951264 log_assert(0);
100100 struct comm_point* cmd_com;
101101 /** timer for statistics */
102102 struct comm_timer* stat_timer;
103 /** remote control state (for first thread only) */
104 struct daemon_remote* rc;
105103
106104 /** number of requests that can be handled by this worker */
107105 size_t request_size;
0 unbound (1.3.2-1) unstable; urgency=low
1
2 * New upstream release.
3
4 -- Robert S. Edmonds <edmonds@debian.org> Mon, 13 Jul 2009 05:50:47 -0400
5
06 unbound (1.3.0-1) unstable; urgency=low
17
28 * New upstream release; closes: #533613.
1313 Ondřej Surý - running coverity analysis tool on 0.9 dev version.
1414 Alexander Gall - multihomed, anycast testing of unbound resolver server.
1515 Zdenek Vasicek and Marek Vavrusa - python module.
16 cz.nic - sponsoring 'summer of code' development by Zdenek and Marek.
1617 Brett Carr - windows beta testing.
0 13 July 2009: Wouter
1 - Fix for crash at start on windows.
2
3 9 July 2009: Wouter
4 - tag for release 1.3.1.
5 - trunk has version 1.3.2.
6
7 7 July 2009: Wouter
8 - iana portlist updated.
9
10 6 July 2009: Wouter
11 - prettier error handling in SSL setup.
12 - makedist.sh uname fix (same as ldns).
13 - updated fedora spec file.
14
15 3 July 2009: Wouter
16 - fixup linking when ldnsdir is "".
17
18 30 June 2009: Wouter
19 - more lenient truncation checks.
20
21 29 June 2009: Wouter
22 - ldns trunk r2959 imported as tarball, because of solaris cc compile
23 support for c99. r2960 for better configure.
24 - better wrongly_truncated check.
25 - On Linux, fragment IPv6 datagrams to the IPv6 minimum MTU, to
26 avoid dropped packets at routers.
27
28 26 June 2009: Wouter
29 - Fix EDNS fallback when EDNS works for short answers but long answers
30 are dropped.
31
32 22 June 2009: Wouter
33 - fixup iter priv strict aliasing while preserving size of sockaddr.
34 - iana portlist updated. (one less port allocated, one more fraction
35 of a bit for security!)
36 - updated fedora specfile in contrib from Paul Wouters.
37
38 19 June 2009: Wouter
39 - Fixup strict aliasing warning in iter priv code.
40 and config_file code.
41 - iana portlist updated.
42 - harden-referral-path: handle cases where NS is in answer section.
43
44 18 June 2009: Wouter
45 - Fix of message parse bug where (specifically) an NSEC and RRSIG
46 in the wrong order would be parsed, but put wrongly into internal
47 structures so that later validation would fail.
48 - Extreme lenience for wrongly truncated replies where a positive
49 reply has an NS in the authority but no signatures. They are
50 turned into minimal responses with only the (secure) answer.
51 - autoconf 2.63 for configure.
52 - python warnings suppress. Keep python API away from header files.
53
54 17 June 2009: Wouter
55 - CREDITS entry for cz.nic, sponsoring a 'summer of code' that was
56 used for the python code in unbound. (http://www.nic.cz/vip/ in cz).
57
58 16 June 2009: Wouter
59 - Fixup opportunistic target query generation to it does not
60 generate queries that are known to fail.
61 - Touchup on munin total memory report.
62 - messages picked out of the cache by the iterator are checked
63 if their cname chain is still correct and if validation status
64 has to be reexamined.
65
66 15 June 2009: Wouter
67 - iana portlist updated.
68
69 14 June 2009: Wouter
70 - Fixed bug where cached responses would lose their security
71 status on second validation, which especially impacted dlv
72 lookups. Reported by Hauke Lampe.
73
74 13 June 2009: Wouter
75 - bug #254. removed random whitespace from example.conf.
76
77 12 June 2009: Wouter
78 - Fixup potential wrong NSEC picked out of the cache.
79 - If unfulfilled callbacks are deleted they are called with an error.
80 - fptr wlist checks for mesh callbacks.
81 - fwd above stub in configuration works.
82
83 11 June 2009: Wouter
84 - Fix queries for type DS when forward or stub zones are there.
85 They are performed to higherup domains, and thus treated as if
86 going to higher zones when looking up the right forward or stub
87 server. This makes a stub pointing to a local server that has
88 a local view of example.com signed with the same keys as are
89 publicly used work. Reported by Johan Ihren.
90 - Added build-unbound-localzone-from-hosts.pl to contrib, from
91 Dennis DeDonatis. It converts /etc/hosts into config statements.
92 - same thing fixed for forward-zone and DS, chain of trust from
93 public internet into the forward-zone works now. Added unit test.
94
95 9 June 2009: Wouter
96 - openssl key files are opened apache-style, when user is root and
97 before chrooting. This makes permissions on remote-control key
98 files easier to set up. Fixes bug #251.
99 - flush_type and flush_name remove msg cache entries.
100 - codereview - dp copy bogus setting fix.
101
0102 8 June 2009: Wouter
1103 - Removed RFC5011 REVOKE flag support. Partial 5011 support may cause
2104 inadvertant behaviour.
105 - 1.3.0 tarball for release created.
106 - 1.3.1 development in svn trunk.
107 - iana portlist updated.
108 - fix lint from complaining on ldns/sha.h.
109 - help compiler figure out aliasing in priv_rrset_bad() routine.
110 - fail to configure with python if swig is not found.
111 - unbound_munin_ in contrib uses ps to show rss if sbrk does not work.
3112
4113 3 June 2009: Wouter
5114 - fixup bad free() when wrongly encoded DSA signature is seen.
0 README for Unbound 1.3.0
0 README for Unbound 1.3.2
11 Copyright 2007 NLnet Labs
22 http://unbound.net
33
9090 o On Solaris 5.10 some libtool packages from repositories do not work with
9191 gcc, showing errors gcc: unrecognized option `-KPIC'
9292 To solve this do ./configure libtool=./libtool [your options...].
93 o If unbound-control (or munin graphs) do not work, this can often be because
94 the unbound-control-setup script creates the keys with restricted
95 permissions, and the files need to be made readable or ownered by both the
96 unbound daemon and unbound-control.
9397
9498 Acknowledgements
9599 ----------------
3434 o check into rebinding ports for efficiency, configure time test.
3535 o EVP hardware crypto support.
3636 o option to ignore all inception and expiration dates for rrsigs.
37 o option to use builtin ldns explicitly. Or stop shipping builtin tarball.
3837 o cleaner code; return and func statements on newline.
3938 o memcached module that sits before validator module; checks for memcached
4039 data (on local lan), stores recursion lookup. Provides one cache for multiple resolver machines, coherent reply content in anycast setup.
4140 o no openssl_add_all_algorithms, but only the ones necessary, less space.
41 o listen to NOTIFY messages for zones and flush the cache for that zone
42 if received. Useful when also having a stub to that auth server.
43 Needs proper protection, TSIG, in place.
44 o winevent - do not go more than 64 fds (by polling with select one by
45 one), win95/98 have 100fd limit in the kernel, so this ruins w9x portability.
4246
4347 *** Features features, for later
4448 * dTLS, TLS, look to need special port numbers, cert storage, recent libssl.
5458 o local-zone directive with authority service, full authority server
5559 is a non-goal.
5660 o infra and lame cache: easier size config (in Mb), show usage in graphs.
57
61 - store time of dump in cachedumps, so that on a load the ttls can be
62 compared to the absolute time, and now-expired items can be dealt with.
63
64 1.3.x:
65 - spoofed delegpt fixes - if DNSKEY prime fails
66 - set DNSKEY bogus and DNSKEY query msg bogus.
67 - make NS set bogus too - if not validated as secure.
68 - check where queries go - otherwise reduce TTL on NS.
69 - also make DS NSEC bogus. Also DS msg cache entry.
70 - mark bogus under stringent conditions
71 - if DS at parent and validly signed. Then DNSKEY must exist.
72 - Also for trust anchor points themselves. DNSKEY must exist.
73 - so if then DNSKEY keyprime fails
74 - then it is not simply a server that only answers qtype A.
75 - then parent is agreeing (somewhat) with the DS record
76 - but it could still be a lame domain, these exist
77 The objective is to keep tries for genuinely lame domains to a
78 minimum, while detecting forgeries quickly. exponential backoff.
79 - for unbound we can check if we got something to verify while
80 building that chain of trust. If so - not lame, agressive retry.
81 - but security-lame zones also exist and should not pose
82 too high a burden. Exponential backoff again.
83 (fe. badly signed or dnskey reply too large fails).
84 - the delegation NS for the domain is bogus.
85 The referral retried, with exponential backoff.
86 This exponential backoff should go towards values which are close
87 to the TTLs that are used now (on lame delegations for example).
88 so that the extra traffic is manageable.
89 - for unbound, reset the TTL on the NS rrset. Let it timeout.
90 Set NS rrset bogus - no more queries to the domain are done.
91 Also set DNSKEY and DS (rrset, NSEC, msg) bogus and ttl like that.
92 (to the same absolute value, so a clean retry is done).
93 TTL of NS is (rounddown) timeout in seconds.
94 Until the NS times out and referral is done again.
95 Make sure multiple validations for chains of trust do not result
96 in a flood of queries or backoff too quickly.
97 - bogus exponential backoff cache. hash(name,t,c), size(1M, 5%).
98 TTL of 24h. Backoff from 200msec to 24h.
99 x2 on bogus(18 tries), x8 backoff on lameness(6 tries),
100 when servfail for DNSKEY.
101 remove entry when validated as secure.
102 delegptspoofrecheck on lameness when harden-referral-path NS
103 query has servfail, then build chain of trust down (check DS,
104 then perform DNSKEY query) if that DNSKEY query fails servfail,
105 perform the x8 lameness retry fallback.
106
107 * keep a list of guilty IP addresses in the qstate, which contains both
108 the child side guilty IPs and the parent guilty IPs. Valid signed DSes
109 are not made guilty in the global cache. The child IP is made guilty
110 in the global cache.
111 * Retry to higher trust anchors.
112 * option not to retry to higher from this ta.
113 * keep longest must-be-secure name. Do no accept insecure above this point.
114 * if failed ta, blame all lower tas for their DNSKEY (get IP from cached
115 rrset), if failure is insecure - nothing, if at bogus - blame that too.
116 lower tas have isdata=false, so the IP address for the dnskeyrrset in
117 the cache is set to avoid in qstate. Nothing in infracache, no childretry.
118
119 Retry harder to get valid DNSSEC data.
120 Triggered by a trust anchor or by a signed DS record for a zone.
121 * If data is fetched and validation fails for it
122 or DNSKEY is fetched and validated into chain-of-trust fails for it
123 or DS is fetched and validated into chain-of-trust fails for it
124 Then
125 blame(signer zone, IP origin of the data/DNSKEY/DS, x2, isdata)
126 * If data was not fetched (SERVFAIL, lame, ...), and the data
127 is under a signed DS then:
128 blame(thatDSname, IP origin of the data/DNSKEY/DS, x8)
129 x8 because the zone may be lame.
130 This means a chain of trust is built also for unfetched data, to
131 determine if a signed DS is present. If insecure, nothing is done.
132 * If DNSKEY was not fetched for chain of trust (SERVFAIL, lame, ...),
133 Then
134 blame(DNSKEYname, IP origin of the data/DNSKEY/DS, x8)
135 x8 because the zone may be lame.
136 * blame(zonename, guiltyIP, multiplier, isdata):
137 * if isdata:
138 Set the guiltyIP,zonename as DNSSEC-bogus-data=true in lameness cache.
139 Thusly marked servers are avoided if possible, used as last resort.
140 The guilt TTL is the infra cache ttl (15 minutes).
141 The dnssec retry scheme works without this cache entry.
142 * If the key cache entry 'being-backed-off' is true and isdata then:
143 The parent is backedoff, it must be the childs fault. Retry to child.
144 Perform a child-retry - purge dataonly, childside, mark
145 data-IPaddress from child as to avoid-forquery. counterperquery,
146 max is 3, if reached, set this data element RRset&msg to the
147 current backoff TTL end-time or bogus-ttl(60 seconds) whichever is less
148 and done.
149 * if no retry entry exists for the zone key, create one with 24h TTL, 10 ms.
150 else the backoff *= multiplier.
151 * If the backoff is less than a second, remove entries from cache and
152 restart query. Else set the TTL for the entries to that value.
153 * Entries to set or remove: DNSKEY RRset&msg, DS RRset&msg, NS RRset&msg,
154 in-zone glue (A and AAAA) RRset&msg, and key-cache-entry TTL.
155 The the data element RRset&msg to the backoff TTL or bogusttl.
156 If TTL>1sec set key-cache-entry flag 'being-backed-off' to true.
157 when entry times out that flag is reset to false again.
158 * Storage extra is:
159 IP address per RRset and message. A lot of memory really, since that is
160 132 bytes per RRset and per message. Store plain IP: 4/16 bytes, len byte.
161 port number 2bytes. +19bytes per RRset, per msg.
162 guilt flag in infra(lameness) cache.
163 being-backed-off flag for key cache, also backoff time value and its TTL.
164 child-retry-count and guilty-ip-list in qstate.
165 * Load on authorities:
166 For lame servers: 7 tries per day (one per three hours on average).
167 Others get up to 23 tries per day (one per hour on average).
168 +1 for original try makes 8/24 hours and 24/24 hours.
169 Unless the cache entry falls out of the cache due to memory. In that
170 case it can be tried more often, this is similar to the NS entry falling
171 out of the cache due to memory, in that case it also has to be retried.
172 * Performance analysis:
173 * domain is sold. Unbound sees invalid signature (expired) or the old
174 servers refuse the queries. Retry within the second, if parent has
175 new DS and NS available instantly works again (no downtime).
176 * domain is bogus signed. Parent gets 1 query per hour.
177 Domain itself gets couple tries per queryname, per minute.
178 * domain partly bogus. Parent gets 1 query per hour.
179 Domain itself gets couple tries per bogus queryname, per minute.
180 * spoof attempt. Unbound tries a couple times. If not spoofed again,
181 it works, if spoofed every time unbound backs off and stops trying.
182 But childretry is attempted more often, once per minute.
183 * parent has inconsistently signed DS records. Together with a subzone that
184 is badly managed. Unbound backs up to the root once per hour.
185 * parent has bad DS records, different sets on different servers, but they
186 are signed ok. Works as for every query a list of bad nameserver, parent
187 and child side is kept, walks through them. But as backoff increases
188 and becomes bigger than the TTL on the DS records, unbound will blackout.
189 The parent really has to be fixed...
190 The issue is that it is validly signed, but bad data. Unbound will very
191 conservatively retry it.
192 * domain is sold, but decommission is faster than the setup of new server.
193 Unbound does exponential backoff, if new setup is fast, it'll pickup the
194 new data fast.
195 * key rollover failed. The zone has bad keys. Like it was bogus signed.
196 * one nameserver has bad data. Unbound goes back to the parent but also
197 marks that server as guilty. Picks data from other server right after,
198 retry without blackout for the user.
199 When parent starts to get backed off, if the nameserver is childside,
200 queryretries for childservers are made when queries fail.
201 * domain was sold, but unbound has old entries in the cache. These somehow
202 need (re)validation (were queried with +cd, now -cd). The entries are
203 bogus.
204 Unbound performs childretry for these entries. Works once the keys
205 have been successfully reprimed with parentretry.
206 * unbound is configured to talk to upstream caches. These caches have
207 inconsistent bad data. If one is bad, it is marked bad for that zone.
208 If all are bad, there may not be any way for unbound to remove the
209 bad entries from the upstream caches. It simply fails.
210 Recommendation: make the upstream caches validate as well.
211 * Old data that was valid with a long TTL remains in the cache.
212 Valid data has a TTL and this is the protocol.
213 * listing bad servers and trying again may not be good enough, since
214 a combinatorial explosion for DSxDNSKEYxdata is possible for every
215 signature validation (using different nameservers for DS, DNSKEY and
216 data, assuming only the right combination has a chain of trust to data).
217 The parentretries perform DS and DNSKEY searching.
218 childretries perform data searching.
219
220
221 later
222 - selective verbosity; ubcontrol trace example.com
223 - option to log only bogus domainname encountered, for demos
224 - cache fork-dump, pre-load
225 - for fwds, send queries to N servers in fwd-list, use first reply.
226 document high scalable, high available unbound setup onepager.
227 - prefetch DNSKEY when DS in delegation seen (nonCD, underTA).
228 - use libevent if available on system by default(?), default outgoing 256to1024
229
1717 # print statistics to the log (for every thread) every N seconds.
1818 # Set to "" or 0 to disable. Default is disabled.
1919 # statistics-interval: 0
20
20
2121 # enable cumulative statistics, without clearing them after printing.
2222 # statistics-cumulative: no
2323
3636 # interface: 192.0.2.153
3737 # interface: 192.0.2.154
3838 # interface: 2001:DB8::5
39
39
4040 # enable this feature to copy the source address of queries to reply.
4141 # Socket options are not supported on all platforms. experimental.
4242 # interface-automatic: no
5454 # number of ports to allocate per thread, determines the size of the
5555 # port range that can be open simultaneously.
5656 # outgoing-range: 256
57
57
5858 # permit unbound to use this port number or port range for
5959 # making outgoing queries, using an outgoing interface.
6060 # outgoing-port-permit: 32768
7171
7272 # number of incoming simultaneous tcp buffers to hold per thread.
7373 # incoming-num-tcp: 10
74
74
7575 # buffer size for handling DNS data. No messages larger than this
7676 # size can be sent or received, by UDP or TCP. In bytes.
7777 # msg-buffer-size: 65552
190190 # the log file, "" means log to stderr.
191191 # Use of this option sets use-syslog to "no".
192192 # logfile: ""
193
193
194194 # Log to syslog(3) if yes. The log facility LOG_DAEMON is used to
195195 # log to, with identity "unbound". If yes, it overrides the logfile.
196196 # use-syslog: yes
200200
201201 # the pid file. Can be an absolute path outside of chroot/work dir.
202202 # pidfile: "@UNBOUND_PIDFILE@"
203
203
204204 # file to read root hints from.
205205 # get one from ftp://FTP.INTERNIC.NET/domain/named.cache
206206 # root-hints: ""
207
207
208208 # enable to not answer id.server and hostname.bind queries.
209209 # hide-identity: no
210
210
211211 # enable to not answer version.server and version.bind queries.
212212 # hide-version: no
213
213
214214 # the identity to report. Leave "" or default to return hostname.
215215 # identity: ""
216
216
217217 # the version to report. Leave "" or default to return package version.
218218 # version: ""
219
219
220220 # the target fetch policy.
221221 # series of integers describing the policy per dependency depth.
222222 # The number of values in the list determines the maximum dependency
226226 # positive value: fetch that many targets opportunistically.
227227 # Enclose the list of numbers between quotes ("").
228228 # target-fetch-policy: "3 2 1 0 0"
229
229
230230 # Harden against very small EDNS buffer sizes.
231231 # harden-short-bufsize: no
232
232
233233 # Harden against unseemly large queries.
234234 # harden-large-queries: no
235
235
236236 # Harden against out of zone rrsets, to avoid spoofing attempts.
237237 # harden-glue: yes
238
238
239239 # Harden against receiving dnssec-stripped data. If you turn it
240240 # off, failing to validate dnskey data for a trustanchor will
241241 # trigger insecure mode for that zone (like without a trustanchor).
251251 # Use 0x20-encoded random bits in the query to foil spoof attempts.
252252 # This feature is an experimental implementation of draft dns-0x20.
253253 # use-caps-for-id: no
254
254
255255 # Enforce privacy of these addresses. Strips them away from answers.
256256 # It may cause DNSSEC validation to additionally mark it as bogus.
257257 # Protects against 'DNS Rebinding' (uses browser as network proxy).
267267 # Allow the domain (and its subdomains) to contain private addresses.
268268 # local-data statements are allowed to contain private addresses too.
269269 # private-domain: "example.com"
270
270
271271 # If nonzero, unwanted replies are not only reported in statistics,
272272 # but also a running total is kept per thread. If it reaches the
273273 # threshold, a warning is printed and a defensive action is taken,
279279 # List one address per entry. List classless netblocks with /size,
280280 # do-not-query-address: 127.0.0.1/8
281281 # do-not-query-address: ::1
282
282
283283 # if yes, the above default do-not-query-address entries are present.
284284 # if no, localhost can be queried (for testing and debugging).
285285 # do-not-query-localhost: yes
286
286
287287 # module configuration of the server. A string with identifiers
288288 # separated by spaces. "iterator" or "validator iterator"
289289 # module-config: "validator iterator"
290
290
291291 # File with DLV trusted keys. Same format as trust-anchor-file.
292292 # There can be only one DLV configured, it is trusted from root down.
293293 # Download http://ftp.isc.org/www/dlv/dlv.isc.org.key
297297 # with several entries, one file per entry.
298298 # Zone file format, with DS and DNSKEY entries.
299299 # trust-anchor-file: ""
300
300
301301 # Trusted key for validation. DS or DNSKEY. specify the RR on a
302302 # single line, surrounded by "". TTL is ignored. class is IN default.
303303 # (These examples are from August 2007 and may not be valid anymore).
309309 # but has a different file format. Format is BIND-9 style format,
310310 # the trusted-keys { name flag proto algo "key"; }; clauses are read.
311311 # trusted-keys-file: ""
312
312
313313 # Ignore chain of trust. Domain is treated as insecure.
314314 # domain-insecure: "example.com"
315315
317317 # Do not set this unless you are debugging signature inception
318318 # and expiration. "" or "0" turns the feature off.
319319 # val-override-date: ""
320
320
321321 # The time to live for bogus data, rrsets and messages. This avoids
322322 # some of the revalidation, until the time interval expires. in secs.
323323 # val-bogus-ttl: 60
324
324
325325 # The signature inception and expiration dates are allowed to be off
326326 # by 10% of the lifetime of the signature from our local clock.
327327 # This leeway is capped with a minimum and a maximum. In seconds.
328328 # val-sig-skew-min: 3600
329329 # val-sig-skew-max: 86400
330
330
331331 # Should additional section of secure message also be kept clean of
332332 # unsecure data. Useful to shield the users of this validator from
333333 # potential bogus data in the additional section. All unsigned data
334334 # in the additional section is removed from secure messages.
335335 # val-clean-additional: yes
336
336
337337 # Turn permissive mode on to permit bogus messages. Thus, messages
338338 # for which security checks failed will be returned to clients,
339339 # instead of SERVFAIL. It still performs the security checks, which
340340 # result in interesting log files and possibly the AD bit in
341341 # replies if the message is found secure. The default is off.
342342 # val-permissive-mode: no
343
343
344344 # It is possible to configure NSEC3 maximum iteration counts per
345345 # keysize. Keep this table very short, as linear search is done.
346346 # A message with an NSEC3 with larger count is marked insecure.
355355 # the number of slabs must be a power of 2.
356356 # more slabs reduce lock contention, but fragment memory usage.
357357 # key-cache-slabs: 4
358
358
359359 # the amount of memory to use for the negative cache (used for DLV).
360360 # plain value in bytes or you can append k, m or G. default is "1Mb".
361361 # neg-cache-size: 1m
0 .TH "libunbound" "3" "Jun 8, 2009" "NLnet Labs" "unbound 1.3.0"
0 .TH "libunbound" "3" "Jul 13, 2009" "NLnet Labs" "unbound 1.3.2"
11 .\"
22 .\" libunbound.3 -- unbound library functions manual
33 .\"
4040 .B ub_ctx_zone_remove,
4141 .B ub_ctx_data_add,
4242 .B ub_ctx_data_remove
43 \- Unbound DNS validating resolver 1.3.0 functions.
43 \- Unbound DNS validating resolver 1.3.2 functions.
4444 .SH "SYNOPSIS"
4545 .LP
4646 .B #include <unbound.h>
234234 It minimizes the chances of a dropped query making a (DNSSEC) EDNS server
235235 falsely EDNS-nonsupporting, and thus DNSSEC-bogus, works well with
236236 middleboxes, and can detect the occasional authority that drops EDNS.
237 For some boxes it is necessary to probe for every failing query, a
238 reassurance that the DNS server does EDNS does not mean that path can
239 take large DNS answers.
237240
238241 o 0x20 backoff.
239242 The draft describes to back off to the next server, and go through all
0 .TH "unbound-checkconf" "8" "Jun 8, 2009" "NLnet Labs" "unbound 1.3.0"
0 .TH "unbound-checkconf" "8" "Jul 13, 2009" "NLnet Labs" "unbound 1.3.2"
11 .\"
22 .\" unbound-checkconf.8 -- unbound configuration checker manual
33 .\"
0 .TH "unbound-control" "8" "Jun 8, 2009" "NLnet Labs" "unbound 1.3.0"
0 .TH "unbound-control" "8" "Jul 13, 2009" "NLnet Labs" "unbound 1.3.2"
11 .\"
22 .\" unbound-control.8 -- unbound remote control manual
33 .\"
0 .TH "unbound\-host" "1" "Jun 8, 2009" "NLnet Labs" "unbound 1.3.0"
0 .TH "unbound\-host" "1" "Jul 13, 2009" "NLnet Labs" "unbound 1.3.2"
11 .\"
22 .\" unbound-host.1 -- unbound DNS lookup utility
33 .\"
0 .TH "unbound" "8" "Jun 8, 2009" "NLnet Labs" "unbound 1.3.0"
0 .TH "unbound" "8" "Jul 13, 2009" "NLnet Labs" "unbound 1.3.2"
11 .\"
22 .\" unbound.8 -- unbound manual
33 .\"
99 .SH "NAME"
1010 .LP
1111 .B unbound
12 \- Unbound DNS validating resolver 1.3.0.
12 \- Unbound DNS validating resolver 1.3.2.
1313 .SH "SYNOPSIS"
1414 .LP
1515 .B unbound
0 .TH "unbound.conf" "5" "Jun 8, 2009" "NLnet Labs" "unbound 1.3.0"
0 .TH "unbound.conf" "5" "Jul 13, 2009" "NLnet Labs" "unbound 1.3.2"
11 .\"
22 .\" unbound.conf.5 -- unbound.conf manual
33 .\"
00 #!/bin/sh
1 #
21 # install - install a program, script, or datafile
3 # This comes from X11R5 (mit/util/scripts/install.sh).
4 #
5 # Copyright 1991 by the Massachusetts Institute of Technology
6 #
7 # Permission to use, copy, modify, distribute, and sell this software and its
8 # documentation for any purpose is hereby granted without fee, provided that
9 # the above copyright notice appear in all copies and that both that
10 # copyright notice and this permission notice appear in supporting
11 # documentation, and that the name of M.I.T. not be used in advertising or
12 # publicity pertaining to distribution of the software without specific,
13 # written prior permission. M.I.T. makes no representations about the
14 # suitability of this software for any purpose. It is provided "as is"
15 # without express or implied warranty.
2
3 scriptversion=2006-12-25.00
4
5 # This originates from X11R5 (mit/util/scripts/install.sh), which was
6 # later released in X11R6 (xc/config/util/install.sh) with the
7 # following copyright and license.
8 #
9 # Copyright (C) 1994 X Consortium
10 #
11 # Permission is hereby granted, free of charge, to any person obtaining a copy
12 # of this software and associated documentation files (the "Software"), to
13 # deal in the Software without restriction, including without limitation the
14 # rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
15 # sell copies of the Software, and to permit persons to whom the Software is
16 # furnished to do so, subject to the following conditions:
17 #
18 # The above copyright notice and this permission notice shall be included in
19 # all copies or substantial portions of the Software.
20 #
21 # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
22 # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
23 # FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
24 # X CONSORTIUM BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN
25 # AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNEC-
26 # TION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
27 #
28 # Except as contained in this notice, the name of the X Consortium shall not
29 # be used in advertising or otherwise to promote the sale, use or other deal-
30 # ings in this Software without prior written authorization from the X Consor-
31 # tium.
32 #
33 #
34 # FSF changes to this file are in the public domain.
1635 #
1736 # Calling this script install-sh is preferred over install.sh, to prevent
1837 # `make' implicit rules from creating a file called install from it
1938 # when there is no Makefile.
2039 #
2140 # This script is compatible with the BSD install script, but was written
22 # from scratch. It can only install one file at a time, a restriction
23 # shared with many OS's install programs.
24
41 # from scratch.
42
43 nl='
44 '
45 IFS=" "" $nl"
2546
2647 # set DOITPROG to echo to test this script
2748
2849 # Don't use :- since 4.3BSD and earlier shells don't like it.
29 doit="${DOITPROG-}"
30
31
32 # put in absolute paths if you don't have them in your path; or use env. vars.
33
34 mvprog="${MVPROG-mv}"
35 cpprog="${CPPROG-cp}"
36 chmodprog="${CHMODPROG-chmod}"
37 chownprog="${CHOWNPROG-chown}"
38 chgrpprog="${CHGRPPROG-chgrp}"
39 stripprog="${STRIPPROG-strip}"
40 rmprog="${RMPROG-rm}"
41 mkdirprog="${MKDIRPROG-mkdir}"
42
43 transformbasename=""
44 transform_arg=""
45 instcmd="$mvprog"
46 chmodcmd="$chmodprog 0755"
47 chowncmd=""
48 chgrpcmd=""
49 stripcmd=""
50 doit=${DOITPROG-}
51 if test -z "$doit"; then
52 doit_exec=exec
53 else
54 doit_exec=$doit
55 fi
56
57 # Put in absolute file names if you don't have them in your path;
58 # or use environment vars.
59
60 chgrpprog=${CHGRPPROG-chgrp}
61 chmodprog=${CHMODPROG-chmod}
62 chownprog=${CHOWNPROG-chown}
63 cmpprog=${CMPPROG-cmp}
64 cpprog=${CPPROG-cp}
65 mkdirprog=${MKDIRPROG-mkdir}
66 mvprog=${MVPROG-mv}
67 rmprog=${RMPROG-rm}
68 stripprog=${STRIPPROG-strip}
69
70 posix_glob='?'
71 initialize_posix_glob='
72 test "$posix_glob" != "?" || {
73 if (set -f) 2>/dev/null; then
74 posix_glob=
75 else
76 posix_glob=:
77 fi
78 }
79 '
80
81 posix_mkdir=
82
83 # Desired mode of installed file.
84 mode=0755
85
86 chgrpcmd=
87 chmodcmd=$chmodprog
88 chowncmd=
89 mvcmd=$mvprog
5090 rmcmd="$rmprog -f"
51 mvcmd="$mvprog"
52 src=""
53 dst=""
54 dir_arg=""
55
56 while [ x"$1" != x ]; do
57 case $1 in
58 -c) instcmd="$cpprog"
59 shift
60 continue;;
61
62 -d) dir_arg=true
63 shift
64 continue;;
65
66 -m) chmodcmd="$chmodprog $2"
67 shift
68 shift
69 continue;;
70
71 -o) chowncmd="$chownprog $2"
72 shift
73 shift
74 continue;;
75
76 -g) chgrpcmd="$chgrpprog $2"
77 shift
78 shift
79 continue;;
80
81 -s) stripcmd="$stripprog"
82 shift
83 continue;;
84
85 -t=*) transformarg=`echo $1 | sed 's/-t=//'`
86 shift
87 continue;;
88
89 -b=*) transformbasename=`echo $1 | sed 's/-b=//'`
90 shift
91 continue;;
92
93 *) if [ x"$src" = x ]
91 stripcmd=
92
93 src=
94 dst=
95 dir_arg=
96 dst_arg=
97
98 copy_on_change=false
99 no_target_directory=
100
101 usage="\
102 Usage: $0 [OPTION]... [-T] SRCFILE DSTFILE
103 or: $0 [OPTION]... SRCFILES... DIRECTORY
104 or: $0 [OPTION]... -t DIRECTORY SRCFILES...
105 or: $0 [OPTION]... -d DIRECTORIES...
106
107 In the 1st form, copy SRCFILE to DSTFILE.
108 In the 2nd and 3rd, copy all SRCFILES to DIRECTORY.
109 In the 4th, create DIRECTORIES.
110
111 Options:
112 --help display this help and exit.
113 --version display version info and exit.
114
115 -c (ignored)
116 -C install only if different (preserve the last data modification time)
117 -d create directories instead of installing files.
118 -g GROUP $chgrpprog installed files to GROUP.
119 -m MODE $chmodprog installed files to MODE.
120 -o USER $chownprog installed files to USER.
121 -s $stripprog installed files.
122 -t DIRECTORY install into DIRECTORY.
123 -T report an error if DSTFILE is a directory.
124
125 Environment variables override the default commands:
126 CHGRPPROG CHMODPROG CHOWNPROG CMPPROG CPPROG MKDIRPROG MVPROG
127 RMPROG STRIPPROG
128 "
129
130 while test $# -ne 0; do
131 case $1 in
132 -c) ;;
133
134 -C) copy_on_change=true;;
135
136 -d) dir_arg=true;;
137
138 -g) chgrpcmd="$chgrpprog $2"
139 shift;;
140
141 --help) echo "$usage"; exit $?;;
142
143 -m) mode=$2
144 case $mode in
145 *' '* | *' '* | *'
146 '* | *'*'* | *'?'* | *'['*)
147 echo "$0: invalid mode: $mode" >&2
148 exit 1;;
149 esac
150 shift;;
151
152 -o) chowncmd="$chownprog $2"
153 shift;;
154
155 -s) stripcmd=$stripprog;;
156
157 -t) dst_arg=$2
158 shift;;
159
160 -T) no_target_directory=true;;
161
162 --version) echo "$0 $scriptversion"; exit $?;;
163
164 --) shift
165 break;;
166
167 -*) echo "$0: invalid option: $1" >&2
168 exit 1;;
169
170 *) break;;
171 esac
172 shift
173 done
174
175 if test $# -ne 0 && test -z "$dir_arg$dst_arg"; then
176 # When -d is used, all remaining arguments are directories to create.
177 # When -t is used, the destination is already specified.
178 # Otherwise, the last argument is the destination. Remove it from $@.
179 for arg
180 do
181 if test -n "$dst_arg"; then
182 # $@ is not empty: it contains at least $arg.
183 set fnord "$@" "$dst_arg"
184 shift # fnord
185 fi
186 shift # arg
187 dst_arg=$arg
188 done
189 fi
190
191 if test $# -eq 0; then
192 if test -z "$dir_arg"; then
193 echo "$0: no input file specified." >&2
194 exit 1
195 fi
196 # It's OK to call `install-sh -d' without argument.
197 # This can happen when creating conditional directories.
198 exit 0
199 fi
200
201 if test -z "$dir_arg"; then
202 trap '(exit $?); exit' 1 2 13 15
203
204 # Set umask so as not to create temps with too-generous modes.
205 # However, 'strip' requires both read and write access to temps.
206 case $mode in
207 # Optimize common cases.
208 *644) cp_umask=133;;
209 *755) cp_umask=22;;
210
211 *[0-7])
212 if test -z "$stripcmd"; then
213 u_plus_rw=
214 else
215 u_plus_rw='% 200'
216 fi
217 cp_umask=`expr '(' 777 - $mode % 1000 ')' $u_plus_rw`;;
218 *)
219 if test -z "$stripcmd"; then
220 u_plus_rw=
221 else
222 u_plus_rw=,u+rw
223 fi
224 cp_umask=$mode$u_plus_rw;;
225 esac
226 fi
227
228 for src
229 do
230 # Protect names starting with `-'.
231 case $src in
232 -*) src=./$src;;
233 esac
234
235 if test -n "$dir_arg"; then
236 dst=$src
237 dstdir=$dst
238 test -d "$dstdir"
239 dstdir_status=$?
240 else
241
242 # Waiting for this to be detected by the "$cpprog $src $dsttmp" command
243 # might cause directories to be created, which would be especially bad
244 # if $src (and thus $dsttmp) contains '*'.
245 if test ! -f "$src" && test ! -d "$src"; then
246 echo "$0: $src does not exist." >&2
247 exit 1
248 fi
249
250 if test -z "$dst_arg"; then
251 echo "$0: no destination specified." >&2
252 exit 1
253 fi
254
255 dst=$dst_arg
256 # Protect names starting with `-'.
257 case $dst in
258 -*) dst=./$dst;;
259 esac
260
261 # If destination is a directory, append the input filename; won't work
262 # if double slashes aren't ignored.
263 if test -d "$dst"; then
264 if test -n "$no_target_directory"; then
265 echo "$0: $dst_arg: Is a directory" >&2
266 exit 1
267 fi
268 dstdir=$dst
269 dst=$dstdir/`basename "$src"`
270 dstdir_status=0
271 else
272 # Prefer dirname, but fall back on a substitute if dirname fails.
273 dstdir=`
274 (dirname "$dst") 2>/dev/null ||
275 expr X"$dst" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
276 X"$dst" : 'X\(//\)[^/]' \| \
277 X"$dst" : 'X\(//\)$' \| \
278 X"$dst" : 'X\(/\)' \| . 2>/dev/null ||
279 echo X"$dst" |
280 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
281 s//\1/
282 q
283 }
284 /^X\(\/\/\)[^/].*/{
285 s//\1/
286 q
287 }
288 /^X\(\/\/\)$/{
289 s//\1/
290 q
291 }
292 /^X\(\/\).*/{
293 s//\1/
294 q
295 }
296 s/.*/./; q'
297 `
298
299 test -d "$dstdir"
300 dstdir_status=$?
301 fi
302 fi
303
304 obsolete_mkdir_used=false
305
306 if test $dstdir_status != 0; then
307 case $posix_mkdir in
308 '')
309 # Create intermediate dirs using mode 755 as modified by the umask.
310 # This is like FreeBSD 'install' as of 1997-10-28.
311 umask=`umask`
312 case $stripcmd.$umask in
313 # Optimize common cases.
314 *[2367][2367]) mkdir_umask=$umask;;
315 .*0[02][02] | .[02][02] | .[02]) mkdir_umask=22;;
316
317 *[0-7])
318 mkdir_umask=`expr $umask + 22 \
319 - $umask % 100 % 40 + $umask % 20 \
320 - $umask % 10 % 4 + $umask % 2
321 `;;
322 *) mkdir_umask=$umask,go-w;;
323 esac
324
325 # With -d, create the new directory with the user-specified mode.
326 # Otherwise, rely on $mkdir_umask.
327 if test -n "$dir_arg"; then
328 mkdir_mode=-m$mode
329 else
330 mkdir_mode=
331 fi
332
333 posix_mkdir=false
334 case $umask in
335 *[123567][0-7][0-7])
336 # POSIX mkdir -p sets u+wx bits regardless of umask, which
337 # is incompatible with FreeBSD 'install' when (umask & 300) != 0.
338 ;;
339 *)
340 tmpdir=${TMPDIR-/tmp}/ins$RANDOM-$$
341 trap 'ret=$?; rmdir "$tmpdir/d" "$tmpdir" 2>/dev/null; exit $ret' 0
342
343 if (umask $mkdir_umask &&
344 exec $mkdirprog $mkdir_mode -p -- "$tmpdir/d") >/dev/null 2>&1
94345 then
95 src=$1
346 if test -z "$dir_arg" || {
347 # Check for POSIX incompatibilities with -m.
348 # HP-UX 11.23 and IRIX 6.5 mkdir -m -p sets group- or
349 # other-writeable bit of parent directory when it shouldn't.
350 # FreeBSD 6.1 mkdir -m -p sets mode of existing directory.
351 ls_ld_tmpdir=`ls -ld "$tmpdir"`
352 case $ls_ld_tmpdir in
353 d????-?r-*) different_mode=700;;
354 d????-?--*) different_mode=755;;
355 *) false;;
356 esac &&
357 $mkdirprog -m$different_mode -p -- "$tmpdir" && {
358 ls_ld_tmpdir_1=`ls -ld "$tmpdir"`
359 test "$ls_ld_tmpdir" = "$ls_ld_tmpdir_1"
360 }
361 }
362 then posix_mkdir=:
363 fi
364 rmdir "$tmpdir/d" "$tmpdir"
96365 else
97 # this colon is to work around a 386BSD /bin/sh bug
98 :
99 dst=$1
366 # Remove any dirs left behind by ancient mkdir implementations.
367 rmdir ./$mkdir_mode ./-p ./-- 2>/dev/null
100368 fi
101 shift
102 continue;;
369 trap '' 0;;
370 esac;;
103371 esac
372
373 if
374 $posix_mkdir && (
375 umask $mkdir_umask &&
376 $doit_exec $mkdirprog $mkdir_mode -p -- "$dstdir"
377 )
378 then :
379 else
380
381 # The umask is ridiculous, or mkdir does not conform to POSIX,
382 # or it failed possibly due to a race condition. Create the
383 # directory the slow way, step by step, checking for races as we go.
384
385 case $dstdir in
386 /*) prefix='/';;
387 -*) prefix='./';;
388 *) prefix='';;
389 esac
390
391 eval "$initialize_posix_glob"
392
393 oIFS=$IFS
394 IFS=/
395 $posix_glob set -f
396 set fnord $dstdir
397 shift
398 $posix_glob set +f
399 IFS=$oIFS
400
401 prefixes=
402
403 for d
404 do
405 test -z "$d" && continue
406
407 prefix=$prefix$d
408 if test -d "$prefix"; then
409 prefixes=
410 else
411 if $posix_mkdir; then
412 (umask=$mkdir_umask &&
413 $doit_exec $mkdirprog $mkdir_mode -p -- "$dstdir") && break
414 # Don't fail if two instances are running concurrently.
415 test -d "$prefix" || exit 1
416 else
417 case $prefix in
418 *\'*) qprefix=`echo "$prefix" | sed "s/'/'\\\\\\\\''/g"`;;
419 *) qprefix=$prefix;;
420 esac
421 prefixes="$prefixes '$qprefix'"
422 fi
423 fi
424 prefix=$prefix/
425 done
426
427 if test -n "$prefixes"; then
428 # Don't fail if two instances are running concurrently.
429 (umask $mkdir_umask &&
430 eval "\$doit_exec \$mkdirprog $prefixes") ||
431 test -d "$dstdir" || exit 1
432 obsolete_mkdir_used=true
433 fi
434 fi
435 fi
436
437 if test -n "$dir_arg"; then
438 { test -z "$chowncmd" || $doit $chowncmd "$dst"; } &&
439 { test -z "$chgrpcmd" || $doit $chgrpcmd "$dst"; } &&
440 { test "$obsolete_mkdir_used$chowncmd$chgrpcmd" = false ||
441 test -z "$chmodcmd" || $doit $chmodcmd $mode "$dst"; } || exit 1
442 else
443
444 # Make a couple of temp file names in the proper directory.
445 dsttmp=$dstdir/_inst.$$_
446 rmtmp=$dstdir/_rm.$$_
447
448 # Trap to clean up those temp files at exit.
449 trap 'ret=$?; rm -f "$dsttmp" "$rmtmp" && exit $ret' 0
450
451 # Copy the file name to the temp name.
452 (umask $cp_umask && $doit_exec $cpprog "$src" "$dsttmp") &&
453
454 # and set any options; do chmod last to preserve setuid bits.
455 #
456 # If any of these fail, we abort the whole thing. If we want to
457 # ignore errors from any of these, just make sure not to ignore
458 # errors from the above "$doit $cpprog $src $dsttmp" command.
459 #
460 { test -z "$chowncmd" || $doit $chowncmd "$dsttmp"; } &&
461 { test -z "$chgrpcmd" || $doit $chgrpcmd "$dsttmp"; } &&
462 { test -z "$stripcmd" || $doit $stripcmd "$dsttmp"; } &&
463 { test -z "$chmodcmd" || $doit $chmodcmd $mode "$dsttmp"; } &&
464
465 # If -C, don't bother to copy if it wouldn't change the file.
466 if $copy_on_change &&
467 old=`LC_ALL=C ls -dlL "$dst" 2>/dev/null` &&
468 new=`LC_ALL=C ls -dlL "$dsttmp" 2>/dev/null` &&
469
470 eval "$initialize_posix_glob" &&
471 $posix_glob set -f &&
472 set X $old && old=:$2:$4:$5:$6 &&
473 set X $new && new=:$2:$4:$5:$6 &&
474 $posix_glob set +f &&
475
476 test "$old" = "$new" &&
477 $cmpprog "$dst" "$dsttmp" >/dev/null 2>&1
478 then
479 rm -f "$dsttmp"
480 else
481 # Rename the file to the real destination.
482 $doit $mvcmd -f "$dsttmp" "$dst" 2>/dev/null ||
483
484 # The rename failed, perhaps because mv can't rename something else
485 # to itself, or perhaps because mv is so ancient that it does not
486 # support -f.
487 {
488 # Now remove or move aside any old file at destination location.
489 # We try this two ways since rm can't unlink itself on some
490 # systems and the destination file might be busy for other
491 # reasons. In this case, the final cleanup might fail but the new
492 # file should still install successfully.
493 {
494 test ! -f "$dst" ||
495 $doit $rmcmd -f "$dst" 2>/dev/null ||
496 { $doit $mvcmd -f "$dst" "$rmtmp" 2>/dev/null &&
497 { $doit $rmcmd -f "$rmtmp" 2>/dev/null; :; }
498 } ||
499 { echo "$0: cannot unlink or rename $dst" >&2
500 (exit 1); exit 1
501 }
502 } &&
503
504 # Now rename the file to the real destination.
505 $doit $mvcmd "$dsttmp" "$dst"
506 }
507 fi || exit 1
508
509 trap '' 0
510 fi
104511 done
105512
106 if [ x"$src" = x ]
107 then
108 echo "install: no input file specified"
109 exit 1
110 else
111 true
112 fi
113
114 if [ x"$dir_arg" != x ]; then
115 dst=$src
116 src=""
117
118 if [ -d $dst ]; then
119 instcmd=:
120 chmodcmd=""
121 else
122 instcmd=mkdir
123 fi
124 else
125
126 # Waiting for this to be detected by the "$instcmd $src $dsttmp" command
127 # might cause directories to be created, which would be especially bad
128 # if $src (and thus $dsttmp) contains '*'.
129
130 if [ -f $src -o -d $src ]
131 then
132 true
133 else
134 echo "install: $src does not exist"
135 exit 1
136 fi
137
138 if [ x"$dst" = x ]
139 then
140 echo "install: no destination specified"
141 exit 1
142 else
143 true
144 fi
145
146 # If destination is a directory, append the input filename; if your system
147 # does not like double slashes in filenames, you may need to add some logic
148
149 if [ -d $dst ]
150 then
151 dst="$dst"/`basename $src`
152 else
153 true
154 fi
155 fi
156
157 ## this sed command emulates the dirname command
158 dstdir=`echo $dst | sed -e 's,[^/]*$,,;s,/$,,;s,^$,.,'`
159
160 # Make sure that the destination directory exists.
161 # this part is taken from Noah Friedman's mkinstalldirs script
162
163 # Skip lots of stat calls in the usual case.
164 if [ ! -d "$dstdir" ]; then
165 defaultIFS='
166 '
167 IFS="${IFS-${defaultIFS}}"
168
169 oIFS="${IFS}"
170 # Some sh's can't handle IFS=/ for some reason.
171 IFS='%'
172 set - `echo ${dstdir} | sed -e 's@/@%@g' -e 's@^%@/@'`
173 IFS="${oIFS}"
174
175 pathcomp=''
176
177 while [ $# -ne 0 ] ; do
178 pathcomp="${pathcomp}${1}"
179 shift
180
181 if [ ! -d "${pathcomp}" ] ;
182 then
183 $mkdirprog "${pathcomp}"
184 else
185 true
186 fi
187
188 pathcomp="${pathcomp}/"
189 done
190 fi
191
192 if [ x"$dir_arg" != x ]
193 then
194 $doit $instcmd $dst &&
195
196 if [ x"$chowncmd" != x ]; then $doit $chowncmd $dst; else true ; fi &&
197 if [ x"$chgrpcmd" != x ]; then $doit $chgrpcmd $dst; else true ; fi &&
198 if [ x"$stripcmd" != x ]; then $doit $stripcmd $dst; else true ; fi &&
199 if [ x"$chmodcmd" != x ]; then $doit $chmodcmd $dst; else true ; fi
200 else
201
202 # If we're going to rename the final executable, determine the name now.
203
204 if [ x"$transformarg" = x ]
205 then
206 dstfile=`basename $dst`
207 else
208 dstfile=`basename $dst $transformbasename |
209 sed $transformarg`$transformbasename
210 fi
211
212 # don't allow the sed command to completely eliminate the filename
213
214 if [ x"$dstfile" = x ]
215 then
216 dstfile=`basename $dst`
217 else
218 true
219 fi
220
221 # Make a temp file name in the proper directory.
222
223 dsttmp=$dstdir/#inst.$$#
224
225 # Move or copy the file name to the temp name
226
227 $doit $instcmd $src $dsttmp &&
228
229 trap "rm -f ${dsttmp}" 0 &&
230
231 # and set any options; do chmod last to preserve setuid bits
232
233 # If any of these fail, we abort the whole thing. If we want to
234 # ignore errors from any of these, just make sure not to ignore
235 # errors from the above "$doit $instcmd $src $dsttmp" command.
236
237 if [ x"$chowncmd" != x ]; then $doit $chowncmd $dsttmp; else true;fi &&
238 if [ x"$chgrpcmd" != x ]; then $doit $chgrpcmd $dsttmp; else true;fi &&
239 if [ x"$stripcmd" != x ]; then $doit $stripcmd $dsttmp; else true;fi &&
240 if [ x"$chmodcmd" != x ]; then $doit $chmodcmd $dsttmp; else true;fi &&
241
242 # Now rename the file to the real destination.
243
244 $doit $rmcmd -f $dstdir/$dstfile &&
245 $doit $mvcmd $dsttmp $dstdir/$dstfile
246
247 fi &&
248
249
250 exit 0
513 # Local variables:
514 # eval: (add-hook 'write-file-hooks 'time-stamp)
515 # time-stamp-start: "scriptversion="
516 # time-stamp-format: "%:y-%02m-%02d.%02H"
517 # time-stamp-end: "$"
518 # End:
6767 return NULL;
6868 if(!delegpt_set_name(copy, region, dp->name))
6969 return NULL;
70 copy->bogus = dp->bogus;
7071 for(ns = dp->nslist; ns; ns = ns->next) {
7172 if(!delegpt_add_ns(copy, region, ns->name))
7273 return NULL;
8787 free(fwd);
8888 }
8989
90 /** insert new info into forward structure */
90 /** insert info into forward structure */
9191 static int
92 forwards_insert(struct iter_forwards* fwd, uint16_t c, struct delegpt* dp)
92 forwards_insert_data(struct iter_forwards* fwd, uint16_t c, uint8_t* nm,
93 size_t nmlen, int nmlabs, struct delegpt* dp)
9394 {
9495 struct iter_forward_zone* node = regional_alloc(fwd->region,
9596 sizeof(struct iter_forward_zone));
9798 return 0;
9899 node->node.key = node;
99100 node->dclass = c;
100 node->name = regional_alloc_init(fwd->region, dp->name, dp->namelen);
101 node->name = regional_alloc_init(fwd->region, nm, nmlen);
101102 if(!node->name)
102103 return 0;
103 node->namelen = dp->namelen;
104 node->namelabs = dp->namelabs;
104 node->namelen = nmlen;
105 node->namelabs = nmlabs;
105106 node->dp = dp;
106107 if(!rbtree_insert(fwd->tree, &node->node)) {
107108 log_err("duplicate forward zone ignored.");
108109 }
109110 return 1;
111 }
112
113 /** insert new info into forward structure given dp */
114 static int
115 forwards_insert(struct iter_forwards* fwd, uint16_t c, struct delegpt* dp)
116 {
117 return forwards_insert_data(fwd, c, dp->name, dp->namelen,
118 dp->namelabs, dp);
110119 }
111120
112121 /** initialise parent pointers in the tree */
233242 return 1;
234243 }
235244
245 /** see if zone needs to have a hole inserted */
246 static int
247 need_hole_insert(rbtree_t* tree, struct iter_forward_zone* zone)
248 {
249 struct iter_forward_zone k;
250 if(rbtree_search(tree, zone))
251 return 0; /* exact match exists */
252 k = *zone;
253 k.node.key = &k;
254 /* search up the tree */
255 do {
256 dname_remove_label(&k.name, &k.namelen);
257 k.namelabs --;
258 if(rbtree_search(tree, &k))
259 return 1; /* found an upper forward zone, need hole */
260 } while(k.namelabs > 1);
261 return 0; /* no forwards above, no holes needed */
262 }
263
264 /** make NULL entries for stubs */
265 static int
266 make_stub_holes(struct iter_forwards* fwd, struct config_file* cfg)
267 {
268 struct config_stub* s;
269 struct iter_forward_zone key;
270 key.node.key = &key;
271 key.dclass = LDNS_RR_CLASS_IN;
272 for(s = cfg->stubs; s; s = s->next) {
273 ldns_rdf* rdf = ldns_dname_new_frm_str(s->name);
274 if(!rdf) {
275 log_err("cannot parse stub name '%s'", s->name);
276 return 0;
277 }
278 key.name = ldns_rdf_data(rdf);
279 key.namelabs = dname_count_size_labels(key.name, &key.namelen);
280 if(!need_hole_insert(fwd->tree, &key)) {
281 ldns_rdf_deep_free(rdf);
282 continue;
283 }
284 if(!forwards_insert_data(fwd, key.dclass, key.name,
285 key.namelen, key.namelabs, NULL)) {
286 ldns_rdf_deep_free(rdf);
287 log_err("out of memory");
288 return 0;
289 }
290 ldns_rdf_deep_free(rdf);
291 }
292 return 1;
293 }
294
236295 int
237296 forwards_apply_cfg(struct iter_forwards* fwd, struct config_file* cfg)
238297 {
244303
245304 /* read forward zones */
246305 if(!read_forwards(fwd, cfg))
306 return 0;
307 if(!make_stub_holes(fwd, cfg))
247308 return 0;
248309 fwd_init_parents(fwd);
249310 return 1;
7474 size_t namelen;
7575 /** number of labels in name */
7676 int namelabs;
77 /** delegation point with forward server information for this zone. */
77 /** delegation point with forward server information for this zone.
78 * If NULL then this forward entry is used to indicate that a
79 * stub-zone with the same name exists, and should be used. */
7880 struct delegpt* dp;
7981 /** pointer to parent in tree (or NULL if none) */
8082 struct iter_forward_zone* parent;
209209 int priv_rrset_bad(struct iter_priv* priv, ldns_buffer* pkt,
210210 struct rrset_parse* rrset)
211211 {
212 if(priv->a.count == 0)
213 return 0; /* there are no blocked addresses */
214
212215 /* see if it is a private name, that is allowed to have any */
213216 if(priv_lookup_name(priv, pkt, rrset->dname, rrset->dname_len,
214217 ntohs(rrset->rrset_class))) {
215218 return 0;
216219 } else {
217220 /* so its a public name, check the address */
218 struct sockaddr_storage addr;
219221 socklen_t len;
220222 struct rr_parse* rr;
221223 if(rrset->type == LDNS_RR_TYPE_A) {
222 struct sockaddr_in* sa = (struct sockaddr_in*)&addr;
223 len = (socklen_t)sizeof(*sa);
224 memset(sa, 0, len);
225 sa->sin_family = AF_INET;
226 sa->sin_port = (in_port_t)htons(UNBOUND_DNS_PORT);
224 struct sockaddr_storage addr;
225 struct sockaddr_in sa;
226
227 len = (socklen_t)sizeof(sa);
228 memset(&sa, 0, len);
229 sa.sin_family = AF_INET;
230 sa.sin_port = (in_port_t)htons(UNBOUND_DNS_PORT);
227231 for(rr = rrset->rr_first; rr; rr = rr->next) {
228232 if(ldns_read_uint16(rr->ttl_data+4)
229233 != INET_SIZE)
230234 continue;
231 memmove(&sa->sin_addr, rr->ttl_data+4+2,
235 memmove(&sa.sin_addr, rr->ttl_data+4+2,
232236 INET_SIZE);
237 memmove(&addr, &sa, len);
233238 if(priv_lookup_addr(priv, &addr, len))
234239 return 1;
235240 }
236241 } else if(rrset->type == LDNS_RR_TYPE_AAAA) {
237 struct sockaddr_in6* sa = (struct sockaddr_in6*)&addr;
238 len = (socklen_t)sizeof(*sa);
239 memset(sa, 0, len);
240 sa->sin6_family = AF_INET6;
241 sa->sin6_port = (in_port_t)htons(UNBOUND_DNS_PORT);
242 struct sockaddr_storage addr;
243 struct sockaddr_in6 sa;
244 len = (socklen_t)sizeof(sa);
245 memset(&sa, 0, len);
246 sa.sin6_family = AF_INET6;
247 sa.sin6_port = (in_port_t)htons(UNBOUND_DNS_PORT);
242248 for(rr = rrset->rr_first; rr; rr = rr->next) {
243249 if(ldns_read_uint16(rr->ttl_data+4)
244250 != INET6_SIZE)
245251 continue;
246 memmove(&sa->sin6_addr, rr->ttl_data+4+2,
252 memmove(&sa.sin6_addr, rr->ttl_data+4+2,
247253 INET6_SIZE);
248 if(priv_lookup_addr(priv, &addr, len))
254 memmove(&addr, &sa, len);
255 if(priv_lookup_addr(priv, &addr, len))
249256 return 1;
250257 }
251258 }
591591 * @param iq: iterator query state.
592592 * @param ie: iterator global state.
593593 * @param id: module id.
594 * @param qname: request name.
595 * @param qclass: the class to prime.
594 * @param q: request name.
596595 * @return true if a priming subrequest was made, false if not. The will only
597596 * issue a priming request if it detects an unprimed stub.
598597 */
599598 static int
600599 prime_stub(struct module_qstate* qstate, struct iter_qstate* iq,
601 struct iter_env* ie, int id, uint8_t* qname, uint16_t qclass)
600 struct iter_env* ie, int id, struct query_info* q)
602601 {
603602 /* Lookup the stub hint. This will return null if the stub doesn't
604603 * need to be re-primed. */
605 struct iter_hints_stub* stub = hints_lookup_stub(ie->hints,
606 qname, qclass, iq->dp);
604 struct iter_hints_stub* stub;
607605 struct delegpt* stub_dp;
608606 struct module_qstate* subq;
607 uint8_t* delname = q->qname;
608 size_t delnamelen = q->qname_len;
609
610 if(q->qtype == LDNS_RR_TYPE_DS && !dname_is_root(q->qname))
611 /* remove first label, but not for root */
612 dname_remove_label(&delname, &delnamelen);
613
614 stub = hints_lookup_stub(ie->hints, delname, q->qclass, iq->dp);
609615 /* The stub (if there is one) does not need priming. */
610616 if(!stub)
611617 return 0;
622628 return 1; /* return 1 to make module stop, with error */
623629 }
624630 log_nametypeclass(VERB_DETAIL, "use stub", stub_dp->name,
625 LDNS_RR_TYPE_NS, qclass);
631 LDNS_RR_TYPE_NS, q->qclass);
626632 return 0;
627633 }
628634
629635 /* Otherwise, we need to (re)prime the stub. */
630636 log_nametypeclass(VERB_DETAIL, "priming stub", stub_dp->name,
631 LDNS_RR_TYPE_NS, qclass);
637 LDNS_RR_TYPE_NS, q->qclass);
632638
633639 /* Stub priming events start at the QUERYTARGETS state to avoid the
634640 * redundant INIT state processing. */
635641 if(!generate_sub_request(stub_dp->name, stub_dp->namelen,
636 LDNS_RR_TYPE_NS, qclass, qstate, id, iq,
642 LDNS_RR_TYPE_NS, q->qclass, qstate, id, iq,
637643 QUERYTARGETS_STATE, PRIME_RESP_STATE, &subq, 0)) {
638644 verbose(VERB_ALGO, "could not prime stub");
639645 (void)error_response(qstate, id, LDNS_RCODE_SERVFAIL);
780786 static int
781787 forward_request(struct module_qstate* qstate, struct iter_qstate* iq)
782788 {
783 struct delegpt* dp = forwards_lookup(qstate->env->fwds,
784 iq->qchase.qname, iq->qchase.qclass);
789 struct delegpt* dp;
790 uint8_t* delname = iq->qchase.qname;
791 size_t delnamelen = iq->qchase.qname_len;
792 /* strip one label off of DS query to lookup higher for it */
793 if(iq->qchase.qtype == LDNS_RR_TYPE_DS
794 && !dname_is_root(iq->qchase.qname))
795 dname_remove_label(&delname, &delnamelen);
796 dp = forwards_lookup(qstate->env->fwds, delname, iq->qchase.qclass);
785797 if(!dp)
786798 return 0;
787799 /* send recursion desired to forward addr */
10291041 &qstate->qinfo);
10301042
10311043 /* Check to see if we need to prime a stub zone. */
1032 if(prime_stub(qstate, iq, ie, id, iq->qchase.qname,
1033 iq->qchase.qclass)) {
1044 if(prime_stub(qstate, iq, ie, id, &iq->qchase)) {
10341045 /* A priming sub request was made */
10351046 return 0;
10361047 }
12571268 }
12581269
12591270 tf_policy = 0;
1260 if(iq->depth <= ie->max_dependency_depth) {
1271 /* < not <=, because although the array is large enough for <=, the
1272 * generated query will immediately be discarded due to depth and
1273 * that servfail is cached, which is not good as opportunism goes. */
1274 if(iq->depth < ie->max_dependency_depth) {
12611275 tf_policy = ie->target_fetch_policy[iq->depth];
12621276 }
12631277
14981512 /* we know that all other NS rrsets are scrubbed
14991513 * away, thus on referral only one is left.
15001514 * see if that equals the query name... */
1501 && reply_find_rrset_section_ns(iq->response->rep,
1515 && ( /* auth section, but sometimes in answer section*/
1516 reply_find_rrset_section_ns(iq->response->rep,
15021517 qstate->qinfo.qname, qstate->qinfo.qname_len,
15031518 LDNS_RR_TYPE_NS, qstate->qinfo.qclass)
1519 || reply_find_rrset_section_an(iq->response->rep,
1520 qstate->qinfo.qname, qstate->qinfo.qname_len,
1521 LDNS_RR_TYPE_NS, qstate->qinfo.qclass)
1522 )
15041523 )) {
15051524 /* Store the referral under the current query */
15061525 if(!iter_dns_store(qstate->env, &iq->response->qinfo,
Binary diff not shown
457457 libworker_enter_result(q->res, buf, q->w->env->scratch, s);
458458 }
459459
460 /** callback with fg results */
461 static void
460 void
462461 libworker_fg_done_cb(void* arg, int rcode, ldns_buffer* buf, enum sec_status s)
463462 {
464463 struct ctx_query* q = (struct ctx_query*)arg;
573572 }
574573 }
575574
576 /** callback with bg results */
577 static void
575 void
578576 libworker_bg_done_cb(void* arg, int rcode, ldns_buffer* buf, enum sec_status s)
579577 {
580578 struct ctx_query* q = (struct ctx_query*)arg;
155155 void libworker_handle_result_write(struct tube* tube, uint8_t* msg, size_t len,
156156 int err, void* arg);
157157
158 /** mesh callback with fg results */
159 void libworker_fg_done_cb(void* arg, int rcode, ldns_buffer* buf,
160 enum sec_status s);
161
162 /** mesh callback with bg results */
163 void libworker_bg_done_cb(void* arg, int rcode, ldns_buffer* buf,
164 enum sec_status s);
165
158166 /**
159167 * fill result from parsed message, on error fills servfail
160168 * @param res: is clear at start, filled in at end.
4141
4242 .PHONY: testenv clean doc swig
4343
44 _unbound.so: ../../Makefile
45 $(MAKE) -C ../..
44 #_unbound.so: ../../Makefile
45 #$(MAKE) -C ../..
4646
47 ../../.libs/libunbound.so.0: ../../Makefile
48 $(MAKE) -C ../..
47 #../../.libs/libunbound.so.0: ../../Makefile
48 #$(MAKE) -C ../..
4949
50 ../../ldns-src/lib/libldns.so: ../../ldns-src/Makefile
51 $(MAKE) -C ../../ldns-src
50 #../../ldns-src/lib/libldns.so: ../../ldns-src/Makefile
51 #$(MAKE) -C ../../ldns-src
5252
5353 clean:
5454 rm -rdf examples/unbound
5555 rm -f _unbound.so libunbound_wrap.o
5656 $(MAKE) -C ../.. clean
5757
58 testenv: ../../.libs/libunbound.so.0 ../../ldns-src/lib/libldns.so _unbound.so
58 testenv: ../../.libs/libunbound.so.1 ../../ldns-src/lib/libldns.so ../../.libs/_unbound.so
5959 rm -rdf examples/unbound
6060 cd examples && mkdir unbound && ln -s ../../unbound.py unbound/__init__.py && ln -s ../../_unbound.so unbound/_unbound.so && ln -s ../../../../.libs/libunbound.so.1 unbound/libunbound.so.1 && ln -s ../../../../ldns-src/lib/libldns.so.1 unbound/libldns.so.1 && ls -la
61 cd examples && if test -f ../../../.libs/_unbound.so; then cp ../../../.libs/_unbound.so . ; fi
6162 @echo "Run a script by typing ./script_name.py"
6263 cd examples && LD_LIBRARY_PATH=unbound bash
63 rm -rdf examples/unbound
64 rm -rdf examples/unbound examples/_unbound.so
6465
6566 doc: ../../.libs/libunbound.so.0 _unbound.so
6667 $(MAKE) -C docs html
+5292
-3816
ltmain.sh less more
0 # ltmain.sh - Provide generalized library-building support services.
1 # NOTE: Changing this file will not affect anything until you rerun configure.
2 #
3 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, 2006,
4 # 2007 Free Software Foundation, Inc.
5 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
6 #
7 # This program is free software; you can redistribute it and/or modify
0 # Generated from ltmain.m4sh.
1
2 # ltmain.sh (GNU libtool) 2.2.6
3 # Written by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
4
5 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, 2006, 2007 2008 Free Software Foundation, Inc.
6 # This is free software; see the source for copying conditions. There is NO
7 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
8
9 # GNU Libtool is free software; you can redistribute it and/or modify
810 # it under the terms of the GNU General Public License as published by
911 # the Free Software Foundation; either version 2 of the License, or
1012 # (at your option) any later version.
1113 #
12 # This program is distributed in the hope that it will be useful, but
14 # As a special exception to the GNU General Public License,
15 # if you distribute this file as part of a program or library that
16 # is built using GNU Libtool, you may include this file under the
17 # same distribution terms that you use for the rest of that program.
18 #
19 # GNU Libtool is distributed in the hope that it will be useful, but
1320 # WITHOUT ANY WARRANTY; without even the implied warranty of
1421 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
1522 # General Public License for more details.
1623 #
1724 # You should have received a copy of the GNU General Public License
18 # along with this program; if not, write to the Free Software
19 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
25 # along with GNU Libtool; see the file COPYING. If not, a copy
26 # can be downloaded from http://www.gnu.org/licenses/gpl.html,
27 # or obtained by writing to the Free Software Foundation, Inc.,
28 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
29
30 # Usage: $progname [OPTION]... [MODE-ARG]...
2031 #
21 # As a special exception to the GNU General Public License, if you
22 # distribute this file as part of a program that contains a
23 # configuration script generated by Autoconf, you may include it under
24 # the same distribution terms that you use for the rest of that program.
25
26 basename="s,^.*/,,g"
27
28 # Work around backward compatibility issue on IRIX 6.5. On IRIX 6.4+, sh
29 # is ksh but when the shell is invoked as "sh" and the current value of
30 # the _XPG environment variable is not equal to 1 (one), the special
31 # positional parameter $0, within a function call, is the name of the
32 # function.
33 progpath="$0"
34
35 # The name of this program:
36 progname=`echo "$progpath" | $SED $basename`
37 modename="$progname"
38
39 # Global variables:
40 EXIT_SUCCESS=0
41 EXIT_FAILURE=1
32 # Provide generalized library-building support services.
33 #
34 # --config show all configuration variables
35 # --debug enable verbose shell tracing
36 # -n, --dry-run display commands without modifying any files
37 # --features display basic configuration information and exit
38 # --mode=MODE use operation mode MODE
39 # --preserve-dup-deps don't remove duplicate dependency libraries
40 # --quiet, --silent don't print informational messages
41 # --tag=TAG use configuration variables from tag TAG
42 # -v, --verbose print informational messages (default)
43 # --version print version information
44 # -h, --help print short or long help message
45 #
46 # MODE must be one of the following:
47 #
48 # clean remove files from the build directory
49 # compile compile a source file into a libtool object
50 # execute automatically set library path, then run a program
51 # finish complete the installation of libtool libraries
52 # install install libraries or executables
53 # link create a library or an executable
54 # uninstall remove libraries from an installed directory
55 #
56 # MODE-ARGS vary depending on the MODE.
57 # Try `$progname --help --mode=MODE' for a more detailed description of MODE.
58 #
59 # When reporting a bug, please describe a test case to reproduce it and
60 # include the following information:
61 #
62 # host-triplet: $host
63 # shell: $SHELL
64 # compiler: $LTCC
65 # compiler flags: $LTCFLAGS
66 # linker: $LD (gnu? $with_gnu_ld)
67 # $progname: (GNU libtool) 2.2.6
68 # automake: $automake_version
69 # autoconf: $autoconf_version
70 #
71 # Report bugs to <bug-libtool@gnu.org>.
4272
4373 PROGRAM=ltmain.sh
4474 PACKAGE=libtool
45 VERSION=1.5.24
46 TIMESTAMP=" (1.1220.2.456 2007/06/24 02:25:32)"
47
48 # Be Bourne compatible (taken from Autoconf:_AS_BOURNE_COMPATIBLE).
75 VERSION=2.2.6
76 TIMESTAMP=""
77 package_revision=1.3012
78
79 # Be Bourne compatible
4980 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
5081 emulate sh
5182 NULLCMD=:
5990 BIN_SH=xpg4; export BIN_SH # for Tru64
6091 DUALCASE=1; export DUALCASE # for MKS sh
6192
62 # Check that we have a working $echo.
93 # NLS nuisances: We save the old values to restore during execute mode.
94 # Only set LANG and LC_ALL to C if already set.
95 # These must not be set unconditionally because not all systems understand
96 # e.g. LANG=C (notably SCO).
97 lt_user_locale=
98 lt_safe_locale=
99 for lt_var in LANG LANGUAGE LC_ALL LC_CTYPE LC_COLLATE LC_MESSAGES
100 do
101 eval "if test \"\${$lt_var+set}\" = set; then
102 save_$lt_var=\$$lt_var
103 $lt_var=C
104 export $lt_var
105 lt_user_locale=\"$lt_var=\\\$save_\$lt_var; \$lt_user_locale\"
106 lt_safe_locale=\"$lt_var=C; \$lt_safe_locale\"
107 fi"
108 done
109
110 $lt_unset CDPATH
111
112
113
114
115
116 : ${CP="cp -f"}
117 : ${ECHO="echo"}
118 : ${EGREP="/bin/grep -E"}
119 : ${FGREP="/bin/grep -F"}
120 : ${GREP="/bin/grep"}
121 : ${LN_S="ln -s"}
122 : ${MAKE="make"}
123 : ${MKDIR="mkdir"}
124 : ${MV="mv -f"}
125 : ${RM="rm -f"}
126 : ${SED="/bin/sed"}
127 : ${SHELL="${CONFIG_SHELL-/bin/sh}"}
128 : ${Xsed="$SED -e 1s/^X//"}
129
130 # Global variables:
131 EXIT_SUCCESS=0
132 EXIT_FAILURE=1
133 EXIT_MISMATCH=63 # $? = 63 is used to indicate version mismatch to missing.
134 EXIT_SKIP=77 # $? = 77 is used to indicate a skipped test to automake.
135
136 exit_status=$EXIT_SUCCESS
137
138 # Make sure IFS has a sensible default
139 lt_nl='
140 '
141 IFS=" $lt_nl"
142
143 dirname="s,/[^/]*$,,"
144 basename="s,^.*/,,"
145
146 # func_dirname_and_basename file append nondir_replacement
147 # perform func_basename and func_dirname in a single function
148 # call:
149 # dirname: Compute the dirname of FILE. If nonempty,
150 # add APPEND to the result, otherwise set result
151 # to NONDIR_REPLACEMENT.
152 # value returned in "$func_dirname_result"
153 # basename: Compute filename of FILE.
154 # value retuned in "$func_basename_result"
155 # Implementation must be kept synchronized with func_dirname
156 # and func_basename. For efficiency, we do not delegate to
157 # those functions but instead duplicate the functionality here.
158 func_dirname_and_basename ()
159 {
160 # Extract subdirectory from the argument.
161 func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
162 if test "X$func_dirname_result" = "X${1}"; then
163 func_dirname_result="${3}"
164 else
165 func_dirname_result="$func_dirname_result${2}"
166 fi
167 func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
168 }
169
170 # Generated shell functions inserted here.
171
172 # Work around backward compatibility issue on IRIX 6.5. On IRIX 6.4+, sh
173 # is ksh but when the shell is invoked as "sh" and the current value of
174 # the _XPG environment variable is not equal to 1 (one), the special
175 # positional parameter $0, within a function call, is the name of the
176 # function.
177 progpath="$0"
178
179 # The name of this program:
180 # In the unlikely event $progname began with a '-', it would play havoc with
181 # func_echo (imagine progname=-n), so we prepend ./ in that case:
182 func_dirname_and_basename "$progpath"
183 progname=$func_basename_result
184 case $progname in
185 -*) progname=./$progname ;;
186 esac
187
188 # Make sure we have an absolute path for reexecution:
189 case $progpath in
190 [\\/]*|[A-Za-z]:\\*) ;;
191 *[\\/]*)
192 progdir=$func_dirname_result
193 progdir=`cd "$progdir" && pwd`
194 progpath="$progdir/$progname"
195 ;;
196 *)
197 save_IFS="$IFS"
198 IFS=:
199 for progdir in $PATH; do
200 IFS="$save_IFS"
201 test -x "$progdir/$progname" && break
202 done
203 IFS="$save_IFS"
204 test -n "$progdir" || progdir=`pwd`
205 progpath="$progdir/$progname"
206 ;;
207 esac
208
209 # Sed substitution that helps us do robust quoting. It backslashifies
210 # metacharacters that are still active within double-quoted strings.
211 Xsed="${SED}"' -e 1s/^X//'
212 sed_quote_subst='s/\([`"$\\]\)/\\\1/g'
213
214 # Same as above, but do not quote variable references.
215 double_quote_subst='s/\(["`\\]\)/\\\1/g'
216
217 # Re-`\' parameter expansions in output of double_quote_subst that were
218 # `\'-ed in input to the same. If an odd number of `\' preceded a '$'
219 # in input to double_quote_subst, that '$' was protected from expansion.
220 # Since each input `\' is now two `\'s, look for any number of runs of
221 # four `\'s followed by two `\'s and then a '$'. `\' that '$'.
222 bs='\\'
223 bs2='\\\\'
224 bs4='\\\\\\\\'
225 dollar='\$'
226 sed_double_backslash="\
227 s/$bs4/&\\
228 /g
229 s/^$bs2$dollar/$bs&/
230 s/\\([^$bs]\\)$bs2$dollar/\\1$bs2$bs$dollar/g
231 s/\n//g"
232
233 # Standard options:
234 opt_dry_run=false
235 opt_help=false
236 opt_quiet=false
237 opt_verbose=false
238 opt_warning=:
239
240 # func_echo arg...
241 # Echo program name prefixed message, along with the current mode
242 # name if it has been set yet.
243 func_echo ()
244 {
245 $ECHO "$progname${mode+: }$mode: $*"
246 }
247
248 # func_verbose arg...
249 # Echo program name prefixed message in verbose mode only.
250 func_verbose ()
251 {
252 $opt_verbose && func_echo ${1+"$@"}
253
254 # A bug in bash halts the script if the last line of a function
255 # fails when set -e is in force, so we need another command to
256 # work around that:
257 :
258 }
259
260 # func_error arg...
261 # Echo program name prefixed message to standard error.
262 func_error ()
263 {
264 $ECHO "$progname${mode+: }$mode: "${1+"$@"} 1>&2
265 }
266
267 # func_warning arg...
268 # Echo program name prefixed warning message to standard error.
269 func_warning ()
270 {
271 $opt_warning && $ECHO "$progname${mode+: }$mode: warning: "${1+"$@"} 1>&2
272
273 # bash bug again:
274 :
275 }
276
277 # func_fatal_error arg...
278 # Echo program name prefixed message to standard error, and exit.
279 func_fatal_error ()
280 {
281 func_error ${1+"$@"}
282 exit $EXIT_FAILURE
283 }
284
285 # func_fatal_help arg...
286 # Echo program name prefixed message to standard error, followed by
287 # a help hint, and exit.
288 func_fatal_help ()
289 {
290 func_error ${1+"$@"}
291 func_fatal_error "$help"
292 }
293 help="Try \`$progname --help' for more information." ## default
294
295
296 # func_grep expression filename
297 # Check whether EXPRESSION matches any line of FILENAME, without output.
298 func_grep ()
299 {
300 $GREP "$1" "$2" >/dev/null 2>&1
301 }
302
303
304 # func_mkdir_p directory-path
305 # Make sure the entire path to DIRECTORY-PATH is available.
306 func_mkdir_p ()
307 {
308 my_directory_path="$1"
309 my_dir_list=
310
311 if test -n "$my_directory_path" && test "$opt_dry_run" != ":"; then
312
313 # Protect directory names starting with `-'
314 case $my_directory_path in
315 -*) my_directory_path="./$my_directory_path" ;;
316 esac
317
318 # While some portion of DIR does not yet exist...
319 while test ! -d "$my_directory_path"; do
320 # ...make a list in topmost first order. Use a colon delimited
321 # list incase some portion of path contains whitespace.
322 my_dir_list="$my_directory_path:$my_dir_list"
323
324 # If the last portion added has no slash in it, the list is done
325 case $my_directory_path in */*) ;; *) break ;; esac
326
327 # ...otherwise throw away the child directory and loop
328 my_directory_path=`$ECHO "X$my_directory_path" | $Xsed -e "$dirname"`
329 done
330 my_dir_list=`$ECHO "X$my_dir_list" | $Xsed -e 's,:*$,,'`
331
332 save_mkdir_p_IFS="$IFS"; IFS=':'
333 for my_dir in $my_dir_list; do
334 IFS="$save_mkdir_p_IFS"
335 # mkdir can fail with a `File exist' error if two processes
336 # try to create one of the directories concurrently. Don't
337 # stop in that case!
338 $MKDIR "$my_dir" 2>/dev/null || :
339 done
340 IFS="$save_mkdir_p_IFS"
341
342 # Bail out if we (or some other process) failed to create a directory.
343 test -d "$my_directory_path" || \
344 func_fatal_error "Failed to create \`$1'"
345 fi
346 }
347
348
349 # func_mktempdir [string]
350 # Make a temporary directory that won't clash with other running
351 # libtool processes, and avoids race conditions if possible. If
352 # given, STRING is the basename for that directory.
353 func_mktempdir ()
354 {
355 my_template="${TMPDIR-/tmp}/${1-$progname}"
356
357 if test "$opt_dry_run" = ":"; then
358 # Return a directory name, but don't create it in dry-run mode
359 my_tmpdir="${my_template}-$$"
360 else
361
362 # If mktemp works, use that first and foremost
363 my_tmpdir=`mktemp -d "${my_template}-XXXXXXXX" 2>/dev/null`
364
365 if test ! -d "$my_tmpdir"; then
366 # Failing that, at least try and use $RANDOM to avoid a race
367 my_tmpdir="${my_template}-${RANDOM-0}$$"
368
369 save_mktempdir_umask=`umask`
370 umask 0077
371 $MKDIR "$my_tmpdir"
372 umask $save_mktempdir_umask
373 fi
374
375 # If we're not in dry-run mode, bomb out on failure
376 test -d "$my_tmpdir" || \
377 func_fatal_error "cannot create temporary directory \`$my_tmpdir'"
378 fi
379
380 $ECHO "X$my_tmpdir" | $Xsed
381 }
382
383
384 # func_quote_for_eval arg
385 # Aesthetically quote ARG to be evaled later.
386 # This function returns two values: FUNC_QUOTE_FOR_EVAL_RESULT
387 # is double-quoted, suitable for a subsequent eval, whereas
388 # FUNC_QUOTE_FOR_EVAL_UNQUOTED_RESULT has merely all characters
389 # which are still active within double quotes backslashified.
390 func_quote_for_eval ()
391 {
392 case $1 in
393 *[\\\`\"\$]*)
394 func_quote_for_eval_unquoted_result=`$ECHO "X$1" | $Xsed -e "$sed_quote_subst"` ;;
395 *)
396 func_quote_for_eval_unquoted_result="$1" ;;
397 esac
398
399 case $func_quote_for_eval_unquoted_result in
400 # Double-quote args containing shell metacharacters to delay
401 # word splitting, command substitution and and variable
402 # expansion for a subsequent eval.
403 # Many Bourne shells cannot handle close brackets correctly
404 # in scan sets, so we specify it separately.
405 *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
406 func_quote_for_eval_result="\"$func_quote_for_eval_unquoted_result\""
407 ;;
408 *)
409 func_quote_for_eval_result="$func_quote_for_eval_unquoted_result"
410 esac
411 }
412
413
414 # func_quote_for_expand arg
415 # Aesthetically quote ARG to be evaled later; same as above,
416 # but do not quote variable references.
417 func_quote_for_expand ()
418 {
419 case $1 in
420 *[\\\`\"]*)
421 my_arg=`$ECHO "X$1" | $Xsed \
422 -e "$double_quote_subst" -e "$sed_double_backslash"` ;;
423 *)
424 my_arg="$1" ;;
425 esac
426
427 case $my_arg in
428 # Double-quote args containing shell metacharacters to delay
429 # word splitting and command substitution for a subsequent eval.
430 # Many Bourne shells cannot handle close brackets correctly
431 # in scan sets, so we specify it separately.
432 *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
433 my_arg="\"$my_arg\""
434 ;;
435 esac
436
437 func_quote_for_expand_result="$my_arg"
438 }
439
440
441 # func_show_eval cmd [fail_exp]
442 # Unless opt_silent is true, then output CMD. Then, if opt_dryrun is
443 # not true, evaluate CMD. If the evaluation of CMD fails, and FAIL_EXP
444 # is given, then evaluate it.
445 func_show_eval ()
446 {
447 my_cmd="$1"
448 my_fail_exp="${2-:}"
449
450 ${opt_silent-false} || {
451 func_quote_for_expand "$my_cmd"
452 eval "func_echo $func_quote_for_expand_result"
453 }
454
455 if ${opt_dry_run-false}; then :; else
456 eval "$my_cmd"
457 my_status=$?
458 if test "$my_status" -eq 0; then :; else
459 eval "(exit $my_status); $my_fail_exp"
460 fi
461 fi
462 }
463
464
465 # func_show_eval_locale cmd [fail_exp]
466 # Unless opt_silent is true, then output CMD. Then, if opt_dryrun is
467 # not true, evaluate CMD. If the evaluation of CMD fails, and FAIL_EXP
468 # is given, then evaluate it. Use the saved locale for evaluation.
469 func_show_eval_locale ()
470 {
471 my_cmd="$1"
472 my_fail_exp="${2-:}"
473
474 ${opt_silent-false} || {
475 func_quote_for_expand "$my_cmd"
476 eval "func_echo $func_quote_for_expand_result"
477 }
478
479 if ${opt_dry_run-false}; then :; else
480 eval "$lt_user_locale
481 $my_cmd"
482 my_status=$?
483 eval "$lt_safe_locale"
484 if test "$my_status" -eq 0; then :; else
485 eval "(exit $my_status); $my_fail_exp"
486 fi
487 fi
488 }
489
490
491
492
493
494 # func_version
495 # Echo version message to standard output and exit.
496 func_version ()
497 {
498 $SED -n '/^# '$PROGRAM' (GNU /,/# warranty; / {
499 s/^# //
500 s/^# *$//
501 s/\((C)\)[ 0-9,-]*\( [1-9][0-9]*\)/\1\2/
502 p
503 }' < "$progpath"
504 exit $?
505 }
506
507 # func_usage
508 # Echo short help message to standard output and exit.
509 func_usage ()
510 {
511 $SED -n '/^# Usage:/,/# -h/ {
512 s/^# //
513 s/^# *$//
514 s/\$progname/'$progname'/
515 p
516 }' < "$progpath"
517 $ECHO
518 $ECHO "run \`$progname --help | more' for full usage"
519 exit $?
520 }
521
522 # func_help
523 # Echo long help message to standard output and exit.
524 func_help ()
525 {
526 $SED -n '/^# Usage:/,/# Report bugs to/ {
527 s/^# //
528 s/^# *$//
529 s*\$progname*'$progname'*
530 s*\$host*'"$host"'*
531 s*\$SHELL*'"$SHELL"'*
532 s*\$LTCC*'"$LTCC"'*
533 s*\$LTCFLAGS*'"$LTCFLAGS"'*
534 s*\$LD*'"$LD"'*
535 s/\$with_gnu_ld/'"$with_gnu_ld"'/
536 s/\$automake_version/'"`(automake --version) 2>/dev/null |$SED 1q`"'/
537 s/\$autoconf_version/'"`(autoconf --version) 2>/dev/null |$SED 1q`"'/
538 p
539 }' < "$progpath"
540 exit $?
541 }
542
543 # func_missing_arg argname
544 # Echo program name prefixed message to standard error and set global
545 # exit_cmd.
546 func_missing_arg ()
547 {
548 func_error "missing argument for $1"
549 exit_cmd=exit
550 }
551
552 exit_cmd=:
553
554
555
556
557
558 # Check that we have a working $ECHO.
63559 if test "X$1" = X--no-reexec; then
64560 # Discard the --no-reexec flag, and continue.
65561 shift
66562 elif test "X$1" = X--fallback-echo; then
67563 # Avoid inline document here, it may be left over
68564 :
69 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t'; then
70 # Yippee, $echo works!
565 elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t'; then
566 # Yippee, $ECHO works!
71567 :
72568 else
73 # Restart under the correct shell, and then maybe $echo will work.
569 # Restart under the correct shell, and then maybe $ECHO will work.
74570 exec $SHELL "$progpath" --no-reexec ${1+"$@"}
75571 fi
76572
83579 exit $EXIT_SUCCESS
84580 fi
85581
86 default_mode=
87 help="Try \`$progname --help' for more information."
88582 magic="%%%MAGIC variable%%%"
89 mkdir="mkdir"
90 mv="mv -f"
91 rm="rm -f"
92
93 # Sed substitution that helps us do robust quoting. It backslashifies
94 # metacharacters that are still active within double-quoted strings.
95 Xsed="${SED}"' -e 1s/^X//'
96 sed_quote_subst='s/\([\\`\\"$\\\\]\)/\\\1/g'
97 # test EBCDIC or ASCII
98 case `echo X|tr X '\101'` in
99 A) # ASCII based system
100 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
101 SP2NL='tr \040 \012'
102 NL2SP='tr \015\012 \040\040'
103 ;;
104 *) # EBCDIC based system
105 SP2NL='tr \100 \n'
106 NL2SP='tr \r\n \100\100'
107 ;;
108 esac
109
110 # NLS nuisances.
111 # Only set LANG and LC_ALL to C if already set.
112 # These must not be set unconditionally because not all systems understand
113 # e.g. LANG=C (notably SCO).
114 # We save the old values to restore during execute mode.
115 for lt_var in LANG LC_ALL LC_CTYPE LC_COLLATE LC_MESSAGES
116 do
117 eval "if test \"\${$lt_var+set}\" = set; then
118 save_$lt_var=\$$lt_var
119 $lt_var=C
120 export $lt_var
121 fi"
122 done
123
124 # Make sure IFS has a sensible default
125 lt_nl='
126 '
127 IFS=" $lt_nl"
128
129 if test "$build_libtool_libs" != yes && test "$build_old_libs" != yes; then
130 $echo "$modename: not configured to build any kind of library" 1>&2
131 $echo "Fatal configuration error. See the $PACKAGE docs for more information." 1>&2
132 exit $EXIT_FAILURE
133 fi
583 magic_exe="%%%MAGIC EXE variable%%%"
134584
135585 # Global variables.
136 mode=$default_mode
586 # $mode is unset
137587 nonopt=
138 prev=
139 prevopt=
140 run=
141 show="$echo"
142 show_help=
143588 execute_dlfiles=
144 duplicate_deps=no
145589 preserve_args=
146590 lo2o="s/\\.lo\$/.${objext}/"
147591 o2lo="s/\\.${objext}\$/.lo/"
148592 extracted_archives=
149593 extracted_serial=0
150594
151 #####################################
152 # Shell function definitions:
153 # This seems to be the best place for them
154
155 # func_mktempdir [string]
156 # Make a temporary directory that won't clash with other running
157 # libtool processes, and avoids race conditions if possible. If
158 # given, STRING is the basename for that directory.
159 func_mktempdir ()
595 opt_dry_run=false
596 opt_duplicate_deps=false
597 opt_silent=false
598 opt_debug=:
599
600 # If this variable is set in any of the actions, the command in it
601 # will be execed at the end. This prevents here-documents from being
602 # left over by shells.
603 exec_cmd=
604
605 # func_fatal_configuration arg...
606 # Echo program name prefixed message to standard error, followed by
607 # a configuration failure hint, and exit.
608 func_fatal_configuration ()
160609 {
161 my_template="${TMPDIR-/tmp}/${1-$progname}"
162
163 if test "$run" = ":"; then
164 # Return a directory name, but don't create it in dry-run mode
165 my_tmpdir="${my_template}-$$"
610 func_error ${1+"$@"}
611 func_error "See the $PACKAGE documentation for more information."
612 func_fatal_error "Fatal configuration error."
613 }
614
615
616 # func_config
617 # Display the configuration for all the tags in this script.
618 func_config ()
619 {
620 re_begincf='^# ### BEGIN LIBTOOL'
621 re_endcf='^# ### END LIBTOOL'
622
623 # Default configuration.
624 $SED "1,/$re_begincf CONFIG/d;/$re_endcf CONFIG/,\$d" < "$progpath"
625
626 # Now print the configurations for the tags.
627 for tagname in $taglist; do
628 $SED -n "/$re_begincf TAG CONFIG: $tagname\$/,/$re_endcf TAG CONFIG: $tagname\$/p" < "$progpath"
629 done
630
631 exit $?
632 }
633
634 # func_features
635 # Display the features supported by this script.
636 func_features ()
637 {
638 $ECHO "host: $host"
639 if test "$build_libtool_libs" = yes; then
640 $ECHO "enable shared libraries"
166641 else
167
168 # If mktemp works, use that first and foremost
169 my_tmpdir=`mktemp -d "${my_template}-XXXXXXXX" 2>/dev/null`
170
171 if test ! -d "$my_tmpdir"; then
172 # Failing that, at least try and use $RANDOM to avoid a race
173 my_tmpdir="${my_template}-${RANDOM-0}$$"
174
175 save_mktempdir_umask=`umask`
176 umask 0077
177 $mkdir "$my_tmpdir"
178 umask $save_mktempdir_umask
642 $ECHO "disable shared libraries"
643 fi
644 if test "$build_old_libs" = yes; then
645 $ECHO "enable static libraries"
646 else
647 $ECHO "disable static libraries"
648 fi
649
650 exit $?
651 }
652
653 # func_enable_tag tagname
654 # Verify that TAGNAME is valid, and either flag an error and exit, or
655 # enable the TAGNAME tag. We also add TAGNAME to the global $taglist
656 # variable here.
657 func_enable_tag ()
658 {
659 # Global variable:
660 tagname="$1"
661
662 re_begincf="^# ### BEGIN LIBTOOL TAG CONFIG: $tagname\$"
663 re_endcf="^# ### END LIBTOOL TAG CONFIG: $tagname\$"
664 sed_extractcf="/$re_begincf/,/$re_endcf/p"
665
666 # Validate tagname.
667 case $tagname in
668 *[!-_A-Za-z0-9,/]*)
669 func_fatal_error "invalid tag name: $tagname"
670 ;;
671 esac
672
673 # Don't test for the "default" C tag, as we know it's
674 # there but not specially marked.
675 case $tagname in
676 CC) ;;
677 *)
678 if $GREP "$re_begincf" "$progpath" >/dev/null 2>&1; then
679 taglist="$taglist $tagname"
680
681 # Evaluate the configuration. Be careful to quote the path
682 # and the sed script, to avoid splitting on whitespace, but
683 # also don't use non-portable quotes within backquotes within
684 # quotes we have to do it in 2 steps:
685 extractedcf=`$SED -n -e "$sed_extractcf" < "$progpath"`
686 eval "$extractedcf"
687 else
688 func_error "ignoring unknown tag $tagname"
179689 fi
180
181 # If we're not in dry-run mode, bomb out on failure
182 test -d "$my_tmpdir" || {
183 $echo "cannot create temporary directory \`$my_tmpdir'" 1>&2
690 ;;
691 esac
692 }
693
694 # Parse options once, thoroughly. This comes as soon as possible in
695 # the script to make things like `libtool --version' happen quickly.
696 {
697
698 # Shorthand for --mode=foo, only valid as the first argument
699 case $1 in
700 clean|clea|cle|cl)
701 shift; set dummy --mode clean ${1+"$@"}; shift
702 ;;
703 compile|compil|compi|comp|com|co|c)
704 shift; set dummy --mode compile ${1+"$@"}; shift
705 ;;
706 execute|execut|execu|exec|exe|ex|e)
707 shift; set dummy --mode execute ${1+"$@"}; shift
708 ;;
709 finish|finis|fini|fin|fi|f)
710 shift; set dummy --mode finish ${1+"$@"}; shift
711 ;;
712 install|instal|insta|inst|ins|in|i)
713 shift; set dummy --mode install ${1+"$@"}; shift
714 ;;
715 link|lin|li|l)
716 shift; set dummy --mode link ${1+"$@"}; shift
717 ;;
718 uninstall|uninstal|uninsta|uninst|unins|unin|uni|un|u)
719 shift; set dummy --mode uninstall ${1+"$@"}; shift
720 ;;
721 esac
722
723 # Parse non-mode specific arguments:
724 while test "$#" -gt 0; do
725 opt="$1"
726 shift
727
728 case $opt in
729 --config) func_config ;;
730
731 --debug) preserve_args="$preserve_args $opt"
732 func_echo "enabling shell trace mode"
733 opt_debug='set -x'
734 $opt_debug
735 ;;
736
737 -dlopen) test "$#" -eq 0 && func_missing_arg "$opt" && break
738 execute_dlfiles="$execute_dlfiles $1"
739 shift
740 ;;
741
742 --dry-run | -n) opt_dry_run=: ;;
743 --features) func_features ;;
744 --finish) mode="finish" ;;
745
746 --mode) test "$#" -eq 0 && func_missing_arg "$opt" && break
747 case $1 in
748 # Valid mode arguments:
749 clean) ;;
750 compile) ;;
751 execute) ;;
752 finish) ;;
753 install) ;;
754 link) ;;
755 relink) ;;
756 uninstall) ;;
757
758 # Catch anything else as an error
759 *) func_error "invalid argument for $opt"
760 exit_cmd=exit
761 break
762 ;;
763 esac
764
765 mode="$1"
766 shift
767 ;;
768
769 --preserve-dup-deps)
770 opt_duplicate_deps=: ;;
771
772 --quiet|--silent) preserve_args="$preserve_args $opt"
773 opt_silent=:
774 ;;
775
776 --verbose| -v) preserve_args="$preserve_args $opt"
777 opt_silent=false
778 ;;
779
780 --tag) test "$#" -eq 0 && func_missing_arg "$opt" && break
781 preserve_args="$preserve_args $opt $1"
782 func_enable_tag "$1" # tagname is set here
783 shift
784 ;;
785
786 # Separate optargs to long options:
787 -dlopen=*|--mode=*|--tag=*)
788 func_opt_split "$opt"
789 set dummy "$func_opt_split_opt" "$func_opt_split_arg" ${1+"$@"}
790 shift
791 ;;
792
793 -\?|-h) func_usage ;;
794 --help) opt_help=: ;;
795 --version) func_version ;;
796
797 -*) func_fatal_help "unrecognized option \`$opt'" ;;
798
799 *) nonopt="$opt"
800 break
801 ;;
802 esac
803 done
804
805
806 case $host in
807 *cygwin* | *mingw* | *pw32* | *cegcc*)
808 # don't eliminate duplications in $postdeps and $predeps
809 opt_duplicate_compiler_generated_deps=:
810 ;;
811 *)
812 opt_duplicate_compiler_generated_deps=$opt_duplicate_deps
813 ;;
814 esac
815
816 # Having warned about all mis-specified options, bail out if
817 # anything was wrong.
818 $exit_cmd $EXIT_FAILURE
819 }
820
821 # func_check_version_match
822 # Ensure that we are using m4 macros, and libtool script from the same
823 # release of libtool.
824 func_check_version_match ()
825 {
826 if test "$package_revision" != "$macro_revision"; then
827 if test "$VERSION" != "$macro_version"; then
828 if test -z "$macro_version"; then
829 cat >&2 <<_LT_EOF
830 $progname: Version mismatch error. This is $PACKAGE $VERSION, but the
831 $progname: definition of this LT_INIT comes from an older release.
832 $progname: You should recreate aclocal.m4 with macros from $PACKAGE $VERSION
833 $progname: and run autoconf again.
834 _LT_EOF
835 else
836 cat >&2 <<_LT_EOF
837 $progname: Version mismatch error. This is $PACKAGE $VERSION, but the
838 $progname: definition of this LT_INIT comes from $PACKAGE $macro_version.
839 $progname: You should recreate aclocal.m4 with macros from $PACKAGE $VERSION
840 $progname: and run autoconf again.
841 _LT_EOF
842 fi
843 else
844 cat >&2 <<_LT_EOF
845 $progname: Version mismatch error. This is $PACKAGE $VERSION, revision $package_revision,
846 $progname: but the definition of this LT_INIT comes from revision $macro_revision.
847 $progname: You should recreate aclocal.m4 with macros from revision $package_revision
848 $progname: of $PACKAGE $VERSION and run autoconf again.
849 _LT_EOF
850 fi
851
852 exit $EXIT_MISMATCH
853 fi
854 }
855
856
857 ## ----------- ##
858 ## Main. ##
859 ## ----------- ##
860
861 $opt_help || {
862 # Sanity checks first:
863 func_check_version_match
864
865 if test "$build_libtool_libs" != yes && test "$build_old_libs" != yes; then
866 func_fatal_configuration "not configured to build any kind of library"
867 fi
868
869 test -z "$mode" && func_fatal_error "error: you must specify a MODE."
870
871
872 # Darwin sucks
873 eval std_shrext=\"$shrext_cmds\"
874
875
876 # Only execute mode is allowed to have -dlopen flags.
877 if test -n "$execute_dlfiles" && test "$mode" != execute; then
878 func_error "unrecognized option \`-dlopen'"
879 $ECHO "$help" 1>&2
880 exit $EXIT_FAILURE
881 fi
882
883 # Change the help message to a mode-specific one.
884 generic_help="$help"
885 help="Try \`$progname --help --mode=$mode' for more information."
886 }
887
888
889 # func_lalib_p file
890 # True iff FILE is a libtool `.la' library or `.lo' object file.
891 # This function is only a basic sanity check; it will hardly flush out
892 # determined imposters.
893 func_lalib_p ()
894 {
895 test -f "$1" &&
896 $SED -e 4q "$1" 2>/dev/null \
897 | $GREP "^# Generated by .*$PACKAGE" > /dev/null 2>&1
898 }
899
900 # func_lalib_unsafe_p file
901 # True iff FILE is a libtool `.la' library or `.lo' object file.
902 # This function implements the same check as func_lalib_p without
903 # resorting to external programs. To this end, it redirects stdin and
904 # closes it afterwards, without saving the original file descriptor.
905 # As a safety measure, use it only where a negative result would be
906 # fatal anyway. Works if `file' does not exist.
907 func_lalib_unsafe_p ()
908 {
909 lalib_p=no
910 if test -f "$1" && test -r "$1" && exec 5<&0 <"$1"; then
911 for lalib_p_l in 1 2 3 4
912 do
913 read lalib_p_line
914 case "$lalib_p_line" in
915 \#\ Generated\ by\ *$PACKAGE* ) lalib_p=yes; break;;
916 esac
917 done
918 exec 0<&5 5<&-
919 fi
920 test "$lalib_p" = yes
921 }
922
923 # func_ltwrapper_script_p file
924 # True iff FILE is a libtool wrapper script
925 # This function is only a basic sanity check; it will hardly flush out
926 # determined imposters.
927 func_ltwrapper_script_p ()
928 {
929 func_lalib_p "$1"
930 }
931
932 # func_ltwrapper_executable_p file
933 # True iff FILE is a libtool wrapper executable
934 # This function is only a basic sanity check; it will hardly flush out
935 # determined imposters.
936 func_ltwrapper_executable_p ()
937 {
938 func_ltwrapper_exec_suffix=
939 case $1 in
940 *.exe) ;;
941 *) func_ltwrapper_exec_suffix=.exe ;;
942 esac
943 $GREP "$magic_exe" "$1$func_ltwrapper_exec_suffix" >/dev/null 2>&1
944 }
945
946 # func_ltwrapper_scriptname file
947 # Assumes file is an ltwrapper_executable
948 # uses $file to determine the appropriate filename for a
949 # temporary ltwrapper_script.
950 func_ltwrapper_scriptname ()
951 {
952 func_ltwrapper_scriptname_result=""
953 if func_ltwrapper_executable_p "$1"; then
954 func_dirname_and_basename "$1" "" "."
955 func_stripname '' '.exe' "$func_basename_result"
956 func_ltwrapper_scriptname_result="$func_dirname_result/$objdir/${func_stripname_result}_ltshwrapper"
957 fi
958 }
959
960 # func_ltwrapper_p file
961 # True iff FILE is a libtool wrapper script or wrapper executable
962 # This function is only a basic sanity check; it will hardly flush out
963 # determined imposters.
964 func_ltwrapper_p ()
965 {
966 func_ltwrapper_script_p "$1" || func_ltwrapper_executable_p "$1"
967 }
968
969
970 # func_execute_cmds commands fail_cmd
971 # Execute tilde-delimited COMMANDS.
972 # If FAIL_CMD is given, eval that upon failure.
973 # FAIL_CMD may read-access the current command in variable CMD!
974 func_execute_cmds ()
975 {
976 $opt_debug
977 save_ifs=$IFS; IFS='~'
978 for cmd in $1; do
979 IFS=$save_ifs
980 eval cmd=\"$cmd\"
981 func_show_eval "$cmd" "${2-:}"
982 done
983 IFS=$save_ifs
984 }
985
986
987 # func_source file
988 # Source FILE, adding directory component if necessary.
989 # Note that it is not necessary on cygwin/mingw to append a dot to
990 # FILE even if both FILE and FILE.exe exist: automatic-append-.exe
991 # behavior happens only for exec(3), not for open(2)! Also, sourcing
992 # `FILE.' does not work on cygwin managed mounts.
993 func_source ()
994 {
995 $opt_debug
996 case $1 in
997 */* | *\\*) . "$1" ;;
998 *) . "./$1" ;;
999 esac
1000 }
1001
1002
1003 # func_infer_tag arg
1004 # Infer tagged configuration to use if any are available and
1005 # if one wasn't chosen via the "--tag" command line option.
1006 # Only attempt this if the compiler in the base compile
1007 # command doesn't match the default compiler.
1008 # arg is usually of the form 'gcc ...'
1009 func_infer_tag ()
1010 {
1011 $opt_debug
1012 if test -n "$available_tags" && test -z "$tagname"; then
1013 CC_quoted=
1014 for arg in $CC; do
1015 func_quote_for_eval "$arg"
1016 CC_quoted="$CC_quoted $func_quote_for_eval_result"
1017 done
1018 case $@ in
1019 # Blanks in the command may have been stripped by the calling shell,
1020 # but not from the CC environment variable when configure was run.
1021 " $CC "* | "$CC "* | " `$ECHO $CC` "* | "`$ECHO $CC` "* | " $CC_quoted"* | "$CC_quoted "* | " `$ECHO $CC_quoted` "* | "`$ECHO $CC_quoted` "*) ;;
1022 # Blanks at the start of $base_compile will cause this to fail
1023 # if we don't check for them as well.
1024 *)
1025 for z in $available_tags; do
1026 if $GREP "^# ### BEGIN LIBTOOL TAG CONFIG: $z$" < "$progpath" > /dev/null; then
1027 # Evaluate the configuration.
1028 eval "`${SED} -n -e '/^# ### BEGIN LIBTOOL TAG CONFIG: '$z'$/,/^# ### END LIBTOOL TAG CONFIG: '$z'$/p' < $progpath`"
1029 CC_quoted=
1030 for arg in $CC; do
1031 # Double-quote args containing other shell metacharacters.
1032 func_quote_for_eval "$arg"
1033 CC_quoted="$CC_quoted $func_quote_for_eval_result"
1034 done
1035 case "$@ " in
1036 " $CC "* | "$CC "* | " `$ECHO $CC` "* | "`$ECHO $CC` "* | " $CC_quoted"* | "$CC_quoted "* | " `$ECHO $CC_quoted` "* | "`$ECHO $CC_quoted` "*)
1037 # The compiler in the base compile command matches
1038 # the one in the tagged configuration.
1039 # Assume this is the tagged configuration we want.
1040 tagname=$z
1041 break
1042 ;;
1043 esac
1044 fi
1045 done
1046 # If $tagname still isn't set, then no tagged configuration
1047 # was found and let the user know that the "--tag" command
1048 # line option must be used.
1049 if test -z "$tagname"; then
1050 func_echo "unable to infer tagged configuration"
1051 func_fatal_error "specify a tag with \`--tag'"
1052 # else
1053 # func_verbose "using $tagname tagged configuration"
1054 fi
1055 ;;
1056 esac
1057 fi
1058 }
1059
1060
1061
1062 # func_write_libtool_object output_name pic_name nonpic_name
1063 # Create a libtool object file (analogous to a ".la" file),
1064 # but don't create it if we're doing a dry run.
1065 func_write_libtool_object ()
1066 {
1067 write_libobj=${1}
1068 if test "$build_libtool_libs" = yes; then
1069 write_lobj=\'${2}\'
1070 else
1071 write_lobj=none
1072 fi
1073
1074 if test "$build_old_libs" = yes; then
1075 write_oldobj=\'${3}\'
1076 else
1077 write_oldobj=none
1078 fi
1079
1080 $opt_dry_run || {
1081 cat >${write_libobj}T <<EOF
1082 # $write_libobj - a libtool object file
1083 # Generated by $PROGRAM (GNU $PACKAGE$TIMESTAMP) $VERSION
1084 #
1085 # Please DO NOT delete this file!
1086 # It is necessary for linking the library.
1087
1088 # Name of the PIC object.
1089 pic_object=$write_lobj
1090
1091 # Name of the non-PIC object
1092 non_pic_object=$write_oldobj
1093
1094 EOF
1095 $MV "${write_libobj}T" "${write_libobj}"
1096 }
1097 }
1098
1099 # func_mode_compile arg...
1100 func_mode_compile ()
1101 {
1102 $opt_debug
1103 # Get the compilation command and the source file.
1104 base_compile=
1105 srcfile="$nonopt" # always keep a non-empty value in "srcfile"
1106 suppress_opt=yes
1107 suppress_output=
1108 arg_mode=normal
1109 libobj=
1110 later=
1111 pie_flag=
1112
1113 for arg
1114 do
1115 case $arg_mode in
1116 arg )
1117 # do not "continue". Instead, add this to base_compile
1118 lastarg="$arg"
1119 arg_mode=normal
1120 ;;
1121
1122 target )
1123 libobj="$arg"
1124 arg_mode=normal
1125 continue
1126 ;;
1127
1128 normal )
1129 # Accept any command-line options.
1130 case $arg in
1131 -o)
1132 test -n "$libobj" && \
1133 func_fatal_error "you cannot specify \`-o' more than once"
1134 arg_mode=target
1135 continue
1136 ;;
1137
1138 -pie | -fpie | -fPIE)
1139 pie_flag="$pie_flag $arg"
1140 continue
1141 ;;
1142
1143 -shared | -static | -prefer-pic | -prefer-non-pic)
1144 later="$later $arg"
1145 continue
1146 ;;
1147
1148 -no-suppress)
1149 suppress_opt=no
1150 continue
1151 ;;
1152
1153 -Xcompiler)
1154 arg_mode=arg # the next one goes into the "base_compile" arg list
1155 continue # The current "srcfile" will either be retained or
1156 ;; # replaced later. I would guess that would be a bug.
1157
1158 -Wc,*)
1159 func_stripname '-Wc,' '' "$arg"
1160 args=$func_stripname_result
1161 lastarg=
1162 save_ifs="$IFS"; IFS=','
1163 for arg in $args; do
1164 IFS="$save_ifs"
1165 func_quote_for_eval "$arg"
1166 lastarg="$lastarg $func_quote_for_eval_result"
1167 done
1168 IFS="$save_ifs"
1169 func_stripname ' ' '' "$lastarg"
1170 lastarg=$func_stripname_result
1171
1172 # Add the arguments to base_compile.
1173 base_compile="$base_compile $lastarg"
1174 continue
1175 ;;
1176
1177 *)
1178 # Accept the current argument as the source file.
1179 # The previous "srcfile" becomes the current argument.
1180 #
1181 lastarg="$srcfile"
1182 srcfile="$arg"
1183 ;;
1184 esac # case $arg
1185 ;;
1186 esac # case $arg_mode
1187
1188 # Aesthetically quote the previous argument.
1189 func_quote_for_eval "$lastarg"
1190 base_compile="$base_compile $func_quote_for_eval_result"
1191 done # for arg
1192
1193 case $arg_mode in
1194 arg)
1195 func_fatal_error "you must specify an argument for -Xcompile"
1196 ;;
1197 target)
1198 func_fatal_error "you must specify a target with \`-o'"
1199 ;;
1200 *)
1201 # Get the name of the library object.
1202 test -z "$libobj" && {
1203 func_basename "$srcfile"
1204 libobj="$func_basename_result"
1205 }
1206 ;;
1207 esac
1208
1209 # Recognize several different file suffixes.
1210 # If the user specifies -o file.o, it is replaced with file.lo
1211 case $libobj in
1212 *.[cCFSifmso] | \
1213 *.ada | *.adb | *.ads | *.asm | \
1214 *.c++ | *.cc | *.ii | *.class | *.cpp | *.cxx | \
1215 *.[fF][09]? | *.for | *.java | *.obj | *.sx)
1216 func_xform "$libobj"
1217 libobj=$func_xform_result
1218 ;;
1219 esac
1220
1221 case $libobj in
1222 *.lo) func_lo2o "$libobj"; obj=$func_lo2o_result ;;
1223 *)
1224 func_fatal_error "cannot determine name of library object from \`$libobj'"
1225 ;;
1226 esac
1227
1228 func_infer_tag $base_compile
1229
1230 for arg in $later; do
1231 case $arg in
1232 -shared)
1233 test "$build_libtool_libs" != yes && \
1234 func_fatal_configuration "can not build a shared library"
1235 build_old_libs=no
1236 continue
1237 ;;
1238
1239 -static)
1240 build_libtool_libs=no
1241 build_old_libs=yes
1242 continue
1243 ;;
1244
1245 -prefer-pic)
1246 pic_mode=yes
1247 continue
1248 ;;
1249
1250 -prefer-non-pic)
1251 pic_mode=no
1252 continue
1253 ;;
1254 esac
1255 done
1256
1257 func_quote_for_eval "$libobj"
1258 test "X$libobj" != "X$func_quote_for_eval_result" \
1259 && $ECHO "X$libobj" | $GREP '[]~#^*{};<>?"'"'"' &()|`$[]' \
1260 && func_warning "libobj name \`$libobj' may not contain shell special characters."
1261 func_dirname_and_basename "$obj" "/" ""
1262 objname="$func_basename_result"
1263 xdir="$func_dirname_result"
1264 lobj=${xdir}$objdir/$objname
1265
1266 test -z "$base_compile" && \
1267 func_fatal_help "you must specify a compilation command"
1268
1269 # Delete any leftover library objects.
1270 if test "$build_old_libs" = yes; then
1271 removelist="$obj $lobj $libobj ${libobj}T"
1272 else
1273 removelist="$lobj $libobj ${libobj}T"
1274 fi
1275
1276 # On Cygwin there's no "real" PIC flag so we must build both object types
1277 case $host_os in
1278 cygwin* | mingw* | pw32* | os2* | cegcc*)
1279 pic_mode=default
1280 ;;
1281 esac
1282 if test "$pic_mode" = no && test "$deplibs_check_method" != pass_all; then
1283 # non-PIC code in shared libraries is not supported
1284 pic_mode=default
1285 fi
1286
1287 # Calculate the filename of the output object if compiler does
1288 # not support -o with -c
1289 if test "$compiler_c_o" = no; then
1290 output_obj=`$ECHO "X$srcfile" | $Xsed -e 's%^.*/%%' -e 's%\.[^.]*$%%'`.${objext}
1291 lockfile="$output_obj.lock"
1292 else
1293 output_obj=
1294 need_locks=no
1295 lockfile=
1296 fi
1297
1298 # Lock this critical section if it is needed
1299 # We use this script file to make the link, it avoids creating a new file
1300 if test "$need_locks" = yes; then
1301 until $opt_dry_run || ln "$progpath" "$lockfile" 2>/dev/null; do
1302 func_echo "Waiting for $lockfile to be removed"
1303 sleep 2
1304 done
1305 elif test "$need_locks" = warn; then
1306 if test -f "$lockfile"; then
1307 $ECHO "\
1308 *** ERROR, $lockfile exists and contains:
1309 `cat $lockfile 2>/dev/null`
1310
1311 This indicates that another process is trying to use the same
1312 temporary object file, and libtool could not work around it because
1313 your compiler does not support \`-c' and \`-o' together. If you
1314 repeat this compilation, it may succeed, by chance, but you had better
1315 avoid parallel builds (make -j) in this platform, or get a better
1316 compiler."
1317
1318 $opt_dry_run || $RM $removelist
1841319 exit $EXIT_FAILURE
185 }
1320 fi
1321 removelist="$removelist $output_obj"
1322 $ECHO "$srcfile" > "$lockfile"
1861323 fi
1871324
188 $echo "X$my_tmpdir" | $Xsed
1325 $opt_dry_run || $RM $removelist
1326 removelist="$removelist $lockfile"
1327 trap '$opt_dry_run || $RM $removelist; exit $EXIT_FAILURE' 1 2 15
1328
1329 if test -n "$fix_srcfile_path"; then
1330 eval srcfile=\"$fix_srcfile_path\"
1331 fi
1332 func_quote_for_eval "$srcfile"
1333 qsrcfile=$func_quote_for_eval_result
1334
1335 # Only build a PIC object if we are building libtool libraries.
1336 if test "$build_libtool_libs" = yes; then
1337 # Without this assignment, base_compile gets emptied.
1338 fbsd_hideous_sh_bug=$base_compile
1339
1340 if test "$pic_mode" != no; then
1341 command="$base_compile $qsrcfile $pic_flag"
1342 else
1343 # Don't build PIC code
1344 command="$base_compile $qsrcfile"
1345 fi
1346
1347 func_mkdir_p "$xdir$objdir"
1348
1349 if test -z "$output_obj"; then
1350 # Place PIC objects in $objdir
1351 command="$command -o $lobj"
1352 fi
1353
1354 func_show_eval_locale "$command" \
1355 'test -n "$output_obj" && $RM $removelist; exit $EXIT_FAILURE'
1356
1357 if test "$need_locks" = warn &&
1358 test "X`cat $lockfile 2>/dev/null`" != "X$srcfile"; then
1359 $ECHO "\
1360 *** ERROR, $lockfile contains:
1361 `cat $lockfile 2>/dev/null`
1362
1363 but it should contain:
1364 $srcfile
1365
1366 This indicates that another process is trying to use the same
1367 temporary object file, and libtool could not work around it because
1368 your compiler does not support \`-c' and \`-o' together. If you
1369 repeat this compilation, it may succeed, by chance, but you had better
1370 avoid parallel builds (make -j) in this platform, or get a better
1371 compiler."
1372
1373 $opt_dry_run || $RM $removelist
1374 exit $EXIT_FAILURE
1375 fi
1376
1377 # Just move the object if needed, then go on to compile the next one
1378 if test -n "$output_obj" && test "X$output_obj" != "X$lobj"; then
1379 func_show_eval '$MV "$output_obj" "$lobj"' \
1380 'error=$?; $opt_dry_run || $RM $removelist; exit $error'
1381 fi
1382
1383 # Allow error messages only from the first compilation.
1384 if test "$suppress_opt" = yes; then
1385 suppress_output=' >/dev/null 2>&1'
1386 fi
1387 fi
1388
1389 # Only build a position-dependent object if we build old libraries.
1390 if test "$build_old_libs" = yes; then
1391 if test "$pic_mode" != yes; then
1392 # Don't build PIC code
1393 command="$base_compile $qsrcfile$pie_flag"
1394 else
1395 command="$base_compile $qsrcfile $pic_flag"
1396 fi
1397 if test "$compiler_c_o" = yes; then
1398 command="$command -o $obj"
1399 fi
1400
1401 # Suppress compiler output if we already did a PIC compilation.
1402 command="$command$suppress_output"
1403 func_show_eval_locale "$command" \
1404 '$opt_dry_run || $RM $removelist; exit $EXIT_FAILURE'
1405
1406 if test "$need_locks" = warn &&
1407 test "X`cat $lockfile 2>/dev/null`" != "X$srcfile"; then
1408 $ECHO "\
1409 *** ERROR, $lockfile contains:
1410 `cat $lockfile 2>/dev/null`
1411
1412 but it should contain:
1413 $srcfile
1414
1415 This indicates that another process is trying to use the same
1416 temporary object file, and libtool could not work around it because
1417 your compiler does not support \`-c' and \`-o' together. If you
1418 repeat this compilation, it may succeed, by chance, but you had better
1419 avoid parallel builds (make -j) in this platform, or get a better
1420 compiler."
1421
1422 $opt_dry_run || $RM $removelist
1423 exit $EXIT_FAILURE
1424 fi
1425
1426 # Just move the object if needed
1427 if test -n "$output_obj" && test "X$output_obj" != "X$obj"; then
1428 func_show_eval '$MV "$output_obj" "$obj"' \
1429 'error=$?; $opt_dry_run || $RM $removelist; exit $error'
1430 fi
1431 fi
1432
1433 $opt_dry_run || {
1434 func_write_libtool_object "$libobj" "$objdir/$objname" "$objname"
1435
1436 # Unlock the critical section if it was locked
1437 if test "$need_locks" != no; then
1438 removelist=$lockfile
1439 $RM "$lockfile"
1440 fi
1441 }
1442
1443 exit $EXIT_SUCCESS
1891444 }
1901445
1446 $opt_help || {
1447 test "$mode" = compile && func_mode_compile ${1+"$@"}
1448 }
1449
1450 func_mode_help ()
1451 {
1452 # We need to display help for each of the modes.
1453 case $mode in
1454 "")
1455 # Generic help is extracted from the usage comments
1456 # at the start of this file.
1457 func_help
1458 ;;
1459
1460 clean)
1461 $ECHO \
1462 "Usage: $progname [OPTION]... --mode=clean RM [RM-OPTION]... FILE...
1463
1464 Remove files from the build directory.
1465
1466 RM is the name of the program to use to delete files associated with each FILE
1467 (typically \`/bin/rm'). RM-OPTIONS are options (such as \`-f') to be passed
1468 to RM.
1469
1470 If FILE is a libtool library, object or program, all the files associated
1471 with it are deleted. Otherwise, only FILE itself is deleted using RM."
1472 ;;
1473
1474 compile)
1475 $ECHO \
1476 "Usage: $progname [OPTION]... --mode=compile COMPILE-COMMAND... SOURCEFILE
1477
1478 Compile a source file into a libtool library object.
1479
1480 This mode accepts the following additional options:
1481
1482 -o OUTPUT-FILE set the output file name to OUTPUT-FILE
1483 -no-suppress do not suppress compiler output for multiple passes
1484 -prefer-pic try to building PIC objects only
1485 -prefer-non-pic try to building non-PIC objects only
1486 -shared do not build a \`.o' file suitable for static linking
1487 -static only build a \`.o' file suitable for static linking
1488
1489 COMPILE-COMMAND is a command to be used in creating a \`standard' object file
1490 from the given SOURCEFILE.
1491
1492 The output file name is determined by removing the directory component from
1493 SOURCEFILE, then substituting the C source code suffix \`.c' with the
1494 library object suffix, \`.lo'."
1495 ;;
1496
1497 execute)
1498 $ECHO \
1499 "Usage: $progname [OPTION]... --mode=execute COMMAND [ARGS]...
1500
1501 Automatically set library path, then run a program.
1502
1503 This mode accepts the following additional options:
1504
1505 -dlopen FILE add the directory containing FILE to the library path
1506
1507 This mode sets the library path environment variable according to \`-dlopen'
1508 flags.
1509
1510 If any of the ARGS are libtool executable wrappers, then they are translated
1511 into their corresponding uninstalled binary, and any of their required library
1512 directories are added to the library path.
1513
1514 Then, COMMAND is executed, with ARGS as arguments."
1515 ;;
1516
1517 finish)
1518 $ECHO \
1519 "Usage: $progname [OPTION]... --mode=finish [LIBDIR]...
1520
1521 Complete the installation of libtool libraries.
1522
1523 Each LIBDIR is a directory that contains libtool libraries.
1524
1525 The commands that this mode executes may require superuser privileges. Use
1526 the \`--dry-run' option if you just want to see what would be executed."
1527 ;;
1528
1529 install)
1530 $ECHO \
1531 "Usage: $progname [OPTION]... --mode=install INSTALL-COMMAND...
1532
1533 Install executables or libraries.
1534
1535 INSTALL-COMMAND is the installation command. The first component should be
1536 either the \`install' or \`cp' program.
1537
1538 The following components of INSTALL-COMMAND are treated specially:
1539
1540 -inst-prefix PREFIX-DIR Use PREFIX-DIR as a staging area for installation
1541
1542 The rest of the components are interpreted as arguments to that command (only
1543 BSD-compatible install options are recognized)."
1544 ;;
1545
1546 link)
1547 $ECHO \
1548 "Usage: $progname [OPTION]... --mode=link LINK-COMMAND...
1549
1550 Link object files or libraries together to form another library, or to
1551 create an executable program.
1552
1553 LINK-COMMAND is a command using the C compiler that you would use to create
1554 a program from several object files.
1555
1556 The following components of LINK-COMMAND are treated specially:
1557
1558 -all-static do not do any dynamic linking at all
1559 -avoid-version do not add a version suffix if possible
1560 -dlopen FILE \`-dlpreopen' FILE if it cannot be dlopened at runtime
1561 -dlpreopen FILE link in FILE and add its symbols to lt_preloaded_symbols
1562 -export-dynamic allow symbols from OUTPUT-FILE to be resolved with dlsym(3)
1563 -export-symbols SYMFILE
1564 try to export only the symbols listed in SYMFILE
1565 -export-symbols-regex REGEX
1566 try to export only the symbols matching REGEX
1567 -LLIBDIR search LIBDIR for required installed libraries
1568 -lNAME OUTPUT-FILE requires the installed library libNAME
1569 -module build a library that can dlopened
1570 -no-fast-install disable the fast-install mode
1571 -no-install link a not-installable executable
1572 -no-undefined declare that a library does not refer to external symbols
1573 -o OUTPUT-FILE create OUTPUT-FILE from the specified objects
1574 -objectlist FILE Use a list of object files found in FILE to specify objects
1575 -precious-files-regex REGEX
1576 don't remove output files matching REGEX
1577 -release RELEASE specify package release information
1578 -rpath LIBDIR the created library will eventually be installed in LIBDIR
1579 -R[ ]LIBDIR add LIBDIR to the runtime path of programs and libraries
1580 -shared only do dynamic linking of libtool libraries
1581 -shrext SUFFIX override the standard shared library file extension
1582 -static do not do any dynamic linking of uninstalled libtool libraries
1583 -static-libtool-libs
1584 do not do any dynamic linking of libtool libraries
1585 -version-info CURRENT[:REVISION[:AGE]]
1586 specify library version info [each variable defaults to 0]
1587 -weak LIBNAME declare that the target provides the LIBNAME interface
1588
1589 All other options (arguments beginning with \`-') are ignored.
1590
1591 Every other argument is treated as a filename. Files ending in \`.la' are
1592 treated as uninstalled libtool libraries, other files are standard or library
1593 object files.
1594
1595 If the OUTPUT-FILE ends in \`.la', then a libtool library is created,
1596 only library objects (\`.lo' files) may be specified, and \`-rpath' is
1597 required, except when creating a convenience library.
1598
1599 If OUTPUT-FILE ends in \`.a' or \`.lib', then a standard library is created
1600 using \`ar' and \`ranlib', or on Windows using \`lib'.
1601
1602 If OUTPUT-FILE ends in \`.lo' or \`.${objext}', then a reloadable object file
1603 is created, otherwise an executable program is created."
1604 ;;
1605
1606 uninstall)
1607 $ECHO \
1608 "Usage: $progname [OPTION]... --mode=uninstall RM [RM-OPTION]... FILE...
1609
1610 Remove libraries from an installation directory.
1611
1612 RM is the name of the program to use to delete files associated with each FILE
1613 (typically \`/bin/rm'). RM-OPTIONS are options (such as \`-f') to be passed
1614 to RM.
1615
1616 If FILE is a libtool library, all the files associated with it are deleted.
1617 Otherwise, only FILE itself is deleted using RM."
1618 ;;
1619
1620 *)
1621 func_fatal_help "invalid operation mode \`$mode'"
1622 ;;
1623 esac
1624
1625 $ECHO
1626 $ECHO "Try \`$progname --help' for more information about other modes."
1627
1628 exit $?
1629 }
1630
1631 # Now that we've collected a possible --mode arg, show help if necessary
1632 $opt_help && func_mode_help
1633
1634
1635 # func_mode_execute arg...
1636 func_mode_execute ()
1637 {
1638 $opt_debug
1639 # The first argument is the command name.
1640 cmd="$nonopt"
1641 test -z "$cmd" && \
1642 func_fatal_help "you must specify a COMMAND"
1643
1644 # Handle -dlopen flags immediately.
1645 for file in $execute_dlfiles; do
1646 test -f "$file" \
1647 || func_fatal_help "\`$file' is not a file"
1648
1649 dir=
1650 case $file in
1651 *.la)
1652 # Check to see that this really is a libtool archive.
1653 func_lalib_unsafe_p "$file" \
1654 || func_fatal_help "\`$lib' is not a valid libtool archive"
1655
1656 # Read the libtool library.
1657 dlname=
1658 library_names=
1659 func_source "$file"
1660
1661 # Skip this library if it cannot be dlopened.
1662 if test -z "$dlname"; then
1663 # Warn if it was a shared library.
1664 test -n "$library_names" && \
1665 func_warning "\`$file' was not linked with \`-export-dynamic'"
1666 continue
1667 fi
1668
1669 func_dirname "$file" "" "."
1670 dir="$func_dirname_result"
1671
1672 if test -f "$dir/$objdir/$dlname"; then
1673 dir="$dir/$objdir"
1674 else
1675 if test ! -f "$dir/$dlname"; then
1676 func_fatal_error "cannot find \`$dlname' in \`$dir' or \`$dir/$objdir'"
1677 fi
1678 fi
1679 ;;
1680
1681 *.lo)
1682 # Just add the directory containing the .lo file.
1683 func_dirname "$file" "" "."
1684 dir="$func_dirname_result"
1685 ;;
1686
1687 *)
1688 func_warning "\`-dlopen' is ignored for non-libtool libraries and objects"
1689 continue
1690 ;;
1691 esac
1692
1693 # Get the absolute pathname.
1694 absdir=`cd "$dir" && pwd`
1695 test -n "$absdir" && dir="$absdir"
1696
1697 # Now add the directory to shlibpath_var.
1698 if eval "test -z \"\$$shlibpath_var\""; then
1699 eval "$shlibpath_var=\"\$dir\""
1700 else
1701 eval "$shlibpath_var=\"\$dir:\$$shlibpath_var\""
1702 fi
1703 done
1704
1705 # This variable tells wrapper scripts just to set shlibpath_var
1706 # rather than running their programs.
1707 libtool_execute_magic="$magic"
1708
1709 # Check if any of the arguments is a wrapper script.
1710 args=
1711 for file
1712 do
1713 case $file in
1714 -*) ;;
1715 *)
1716 # Do a test to see if this is really a libtool program.
1717 if func_ltwrapper_script_p "$file"; then
1718 func_source "$file"
1719 # Transform arg to wrapped name.
1720 file="$progdir/$program"
1721 elif func_ltwrapper_executable_p "$file"; then
1722 func_ltwrapper_scriptname "$file"
1723 func_source "$func_ltwrapper_scriptname_result"
1724 # Transform arg to wrapped name.
1725 file="$progdir/$program"
1726 fi
1727 ;;
1728 esac
1729 # Quote arguments (to preserve shell metacharacters).
1730 func_quote_for_eval "$file"
1731 args="$args $func_quote_for_eval_result"
1732 done
1733
1734 if test "X$opt_dry_run" = Xfalse; then
1735 if test -n "$shlibpath_var"; then
1736 # Export the shlibpath_var.
1737 eval "export $shlibpath_var"
1738 fi
1739
1740 # Restore saved environment variables
1741 for lt_var in LANG LANGUAGE LC_ALL LC_CTYPE LC_COLLATE LC_MESSAGES
1742 do
1743 eval "if test \"\${save_$lt_var+set}\" = set; then
1744 $lt_var=\$save_$lt_var; export $lt_var
1745 else
1746 $lt_unset $lt_var
1747 fi"
1748 done
1749
1750 # Now prepare to actually exec the command.
1751 exec_cmd="\$cmd$args"
1752 else
1753 # Display what would be done.
1754 if test -n "$shlibpath_var"; then
1755 eval "\$ECHO \"\$shlibpath_var=\$$shlibpath_var\""
1756 $ECHO "export $shlibpath_var"
1757 fi
1758 $ECHO "$cmd$args"
1759 exit $EXIT_SUCCESS
1760 fi
1761 }
1762
1763 test "$mode" = execute && func_mode_execute ${1+"$@"}
1764
1765
1766 # func_mode_finish arg...
1767 func_mode_finish ()
1768 {
1769 $opt_debug
1770 libdirs="$nonopt"
1771 admincmds=
1772
1773 if test -n "$finish_cmds$finish_eval" && test -n "$libdirs"; then
1774 for dir
1775 do
1776 libdirs="$libdirs $dir"
1777 done
1778
1779 for libdir in $libdirs; do
1780 if test -n "$finish_cmds"; then
1781 # Do each command in the finish commands.
1782 func_execute_cmds "$finish_cmds" 'admincmds="$admincmds
1783 '"$cmd"'"'
1784 fi
1785 if test -n "$finish_eval"; then
1786 # Do the single finish_eval.
1787 eval cmds=\"$finish_eval\"
1788 $opt_dry_run || eval "$cmds" || admincmds="$admincmds
1789 $cmds"
1790 fi
1791 done
1792 fi
1793
1794 # Exit here if they wanted silent mode.
1795 $opt_silent && exit $EXIT_SUCCESS
1796
1797 $ECHO "X----------------------------------------------------------------------" | $Xsed
1798 $ECHO "Libraries have been installed in:"
1799 for libdir in $libdirs; do
1800 $ECHO " $libdir"
1801 done
1802 $ECHO
1803 $ECHO "If you ever happen to want to link against installed libraries"
1804 $ECHO "in a given directory, LIBDIR, you must either use libtool, and"
1805 $ECHO "specify the full pathname of the library, or use the \`-LLIBDIR'"
1806 $ECHO "flag during linking and do at least one of the following:"
1807 if test -n "$shlibpath_var"; then
1808 $ECHO " - add LIBDIR to the \`$shlibpath_var' environment variable"
1809 $ECHO " during execution"
1810 fi
1811 if test -n "$runpath_var"; then
1812 $ECHO " - add LIBDIR to the \`$runpath_var' environment variable"
1813 $ECHO " during linking"
1814 fi
1815 if test -n "$hardcode_libdir_flag_spec"; then
1816 libdir=LIBDIR
1817 eval flag=\"$hardcode_libdir_flag_spec\"
1818
1819 $ECHO " - use the \`$flag' linker flag"
1820 fi
1821 if test -n "$admincmds"; then
1822 $ECHO " - have your system administrator run these commands:$admincmds"
1823 fi
1824 if test -f /etc/ld.so.conf; then
1825 $ECHO " - have your system administrator add LIBDIR to \`/etc/ld.so.conf'"
1826 fi
1827 $ECHO
1828
1829 $ECHO "See any operating system documentation about shared libraries for"
1830 case $host in
1831 solaris2.[6789]|solaris2.1[0-9])
1832 $ECHO "more information, such as the ld(1), crle(1) and ld.so(8) manual"
1833 $ECHO "pages."
1834 ;;
1835 *)
1836 $ECHO "more information, such as the ld(1) and ld.so(8) manual pages."
1837 ;;
1838 esac
1839 $ECHO "X----------------------------------------------------------------------" | $Xsed
1840 exit $EXIT_SUCCESS
1841 }
1842
1843 test "$mode" = finish && func_mode_finish ${1+"$@"}
1844
1845
1846 # func_mode_install arg...
1847 func_mode_install ()
1848 {
1849 $opt_debug
1850 # There may be an optional sh(1) argument at the beginning of
1851 # install_prog (especially on Windows NT).
1852 if test "$nonopt" = "$SHELL" || test "$nonopt" = /bin/sh ||
1853 # Allow the use of GNU shtool's install command.
1854 $ECHO "X$nonopt" | $GREP shtool >/dev/null; then
1855 # Aesthetically quote it.
1856 func_quote_for_eval "$nonopt"
1857 install_prog="$func_quote_for_eval_result "
1858 arg=$1
1859 shift
1860 else
1861 install_prog=
1862 arg=$nonopt
1863 fi
1864
1865 # The real first argument should be the name of the installation program.
1866 # Aesthetically quote it.
1867 func_quote_for_eval "$arg"
1868 install_prog="$install_prog$func_quote_for_eval_result"
1869
1870 # We need to accept at least all the BSD install flags.
1871 dest=
1872 files=
1873 opts=
1874 prev=
1875 install_type=
1876 isdir=no
1877 stripme=
1878 for arg
1879 do
1880 if test -n "$dest"; then
1881 files="$files $dest"
1882 dest=$arg
1883 continue
1884 fi
1885
1886 case $arg in
1887 -d) isdir=yes ;;
1888 -f)
1889 case " $install_prog " in
1890 *[\\\ /]cp\ *) ;;
1891 *) prev=$arg ;;
1892 esac
1893 ;;
1894 -g | -m | -o)
1895 prev=$arg
1896 ;;
1897 -s)
1898 stripme=" -s"
1899 continue
1900 ;;
1901 -*)
1902 ;;
1903 *)
1904 # If the previous option needed an argument, then skip it.
1905 if test -n "$prev"; then
1906 prev=
1907 else
1908 dest=$arg
1909 continue
1910 fi
1911 ;;
1912 esac
1913
1914 # Aesthetically quote the argument.
1915 func_quote_for_eval "$arg"
1916 install_prog="$install_prog $func_quote_for_eval_result"
1917 done
1918
1919 test -z "$install_prog" && \
1920 func_fatal_help "you must specify an install program"
1921
1922 test -n "$prev" && \
1923 func_fatal_help "the \`$prev' option requires an argument"
1924
1925 if test -z "$files"; then
1926 if test -z "$dest"; then
1927 func_fatal_help "no file or destination specified"
1928 else
1929 func_fatal_help "you must specify a destination"
1930 fi
1931 fi
1932
1933 # Strip any trailing slash from the destination.
1934 func_stripname '' '/' "$dest"
1935 dest=$func_stripname_result
1936
1937 # Check to see that the destination is a directory.
1938 test -d "$dest" && isdir=yes
1939 if test "$isdir" = yes; then
1940 destdir="$dest"
1941 destname=
1942 else
1943 func_dirname_and_basename "$dest" "" "."
1944 destdir="$func_dirname_result"
1945 destname="$func_basename_result"
1946
1947 # Not a directory, so check to see that there is only one file specified.
1948 set dummy $files; shift
1949 test "$#" -gt 1 && \
1950 func_fatal_help "\`$dest' is not a directory"
1951 fi
1952 case $destdir in
1953 [\\/]* | [A-Za-z]:[\\/]*) ;;
1954 *)
1955 for file in $files; do
1956 case $file in
1957 *.lo) ;;
1958 *)
1959 func_fatal_help "\`$destdir' must be an absolute directory name"
1960 ;;
1961 esac
1962 done
1963 ;;
1964 esac
1965
1966 # This variable tells wrapper scripts just to set variables rather
1967 # than running their programs.
1968 libtool_install_magic="$magic"
1969
1970 staticlibs=
1971 future_libdirs=
1972 current_libdirs=
1973 for file in $files; do
1974
1975 # Do each installation.
1976 case $file in
1977 *.$libext)
1978 # Do the static libraries later.
1979 staticlibs="$staticlibs $file"
1980 ;;
1981
1982 *.la)
1983 # Check to see that this really is a libtool archive.
1984 func_lalib_unsafe_p "$file" \
1985 || func_fatal_help "\`$file' is not a valid libtool archive"
1986
1987 library_names=
1988 old_library=
1989 relink_command=
1990 func_source "$file"
1991
1992 # Add the libdir to current_libdirs if it is the destination.
1993 if test "X$destdir" = "X$libdir"; then
1994 case "$current_libdirs " in
1995 *" $libdir "*) ;;
1996 *) current_libdirs="$current_libdirs $libdir" ;;
1997 esac
1998 else
1999 # Note the libdir as a future libdir.
2000 case "$future_libdirs " in
2001 *" $libdir "*) ;;
2002 *) future_libdirs="$future_libdirs $libdir" ;;
2003 esac
2004 fi
2005
2006 func_dirname "$file" "/" ""
2007 dir="$func_dirname_result"
2008 dir="$dir$objdir"
2009
2010 if test -n "$relink_command"; then
2011 # Determine the prefix the user has applied to our future dir.
2012 inst_prefix_dir=`$ECHO "X$destdir" | $Xsed -e "s%$libdir\$%%"`
2013
2014 # Don't allow the user to place us outside of our expected
2015 # location b/c this prevents finding dependent libraries that
2016 # are installed to the same prefix.
2017 # At present, this check doesn't affect windows .dll's that
2018 # are installed into $libdir/../bin (currently, that works fine)
2019 # but it's something to keep an eye on.
2020 test "$inst_prefix_dir" = "$destdir" && \
2021 func_fatal_error "error: cannot install \`$file' to a directory not ending in $libdir"
2022
2023 if test -n "$inst_prefix_dir"; then
2024 # Stick the inst_prefix_dir data into the link command.
2025 relink_command=`$ECHO "X$relink_command" | $Xsed -e "s%@inst_prefix_dir@%-inst-prefix-dir $inst_prefix_dir%"`
2026 else
2027 relink_command=`$ECHO "X$relink_command" | $Xsed -e "s%@inst_prefix_dir@%%"`
2028 fi
2029
2030 func_warning "relinking \`$file'"
2031 func_show_eval "$relink_command" \
2032 'func_fatal_error "error: relink \`$file'\'' with the above command before installing it"'
2033 fi
2034
2035 # See the names of the shared library.
2036 set dummy $library_names; shift
2037 if test -n "$1"; then
2038 realname="$1"
2039 shift
2040
2041 srcname="$realname"
2042 test -n "$relink_command" && srcname="$realname"T
2043
2044 # Install the shared library and build the symlinks.
2045 func_show_eval "$install_prog $dir/$srcname $destdir/$realname" \
2046 'exit $?'
2047 tstripme="$stripme"
2048 case $host_os in
2049 cygwin* | mingw* | pw32* | cegcc*)
2050 case $realname in
2051 *.dll.a)
2052 tstripme=""
2053 ;;
2054 esac
2055 ;;
2056 esac
2057 if test -n "$tstripme" && test -n "$striplib"; then
2058 func_show_eval "$striplib $destdir/$realname" 'exit $?'
2059 fi
2060
2061 if test "$#" -gt 0; then
2062 # Delete the old symlinks, and create new ones.
2063 # Try `ln -sf' first, because the `ln' binary might depend on
2064 # the symlink we replace! Solaris /bin/ln does not understand -f,
2065 # so we also need to try rm && ln -s.
2066 for linkname
2067 do
2068 test "$linkname" != "$realname" \
2069 && func_show_eval "(cd $destdir && { $LN_S -f $realname $linkname || { $RM $linkname && $LN_S $realname $linkname; }; })"
2070 done
2071 fi
2072
2073 # Do each command in the postinstall commands.
2074 lib="$destdir/$realname"
2075 func_execute_cmds "$postinstall_cmds" 'exit $?'
2076 fi
2077
2078 # Install the pseudo-library for information purposes.
2079 func_basename "$file"
2080 name="$func_basename_result"
2081 instname="$dir/$name"i
2082 func_show_eval "$install_prog $instname $destdir/$name" 'exit $?'
2083
2084 # Maybe install the static library, too.
2085 test -n "$old_library" && staticlibs="$staticlibs $dir/$old_library"
2086 ;;
2087
2088 *.lo)
2089 # Install (i.e. copy) a libtool object.
2090
2091 # Figure out destination file name, if it wasn't already specified.
2092 if test -n "$destname"; then
2093 destfile="$destdir/$destname"
2094 else
2095 func_basename "$file"
2096 destfile="$func_basename_result"
2097 destfile="$destdir/$destfile"
2098 fi
2099
2100 # Deduce the name of the destination old-style object file.
2101 case $destfile in
2102 *.lo)
2103 func_lo2o "$destfile"
2104 staticdest=$func_lo2o_result
2105 ;;
2106 *.$objext)
2107 staticdest="$destfile"
2108 destfile=
2109 ;;
2110 *)
2111 func_fatal_help "cannot copy a libtool object to \`$destfile'"
2112 ;;
2113 esac
2114
2115 # Install the libtool object if requested.
2116 test -n "$destfile" && \
2117 func_show_eval "$install_prog $file $destfile" 'exit $?'
2118
2119 # Install the old object if enabled.
2120 if test "$build_old_libs" = yes; then
2121 # Deduce the name of the old-style object file.
2122 func_lo2o "$file"
2123 staticobj=$func_lo2o_result
2124 func_show_eval "$install_prog \$staticobj \$staticdest" 'exit $?'
2125 fi
2126 exit $EXIT_SUCCESS
2127 ;;
2128
2129 *)
2130 # Figure out destination file name, if it wasn't already specified.
2131 if test -n "$destname"; then
2132 destfile="$destdir/$destname"
2133 else
2134 func_basename "$file"
2135 destfile="$func_basename_result"
2136 destfile="$destdir/$destfile"
2137 fi
2138
2139 # If the file is missing, and there is a .exe on the end, strip it
2140 # because it is most likely a libtool script we actually want to
2141 # install
2142 stripped_ext=""
2143 case $file in
2144 *.exe)
2145 if test ! -f "$file"; then
2146 func_stripname '' '.exe' "$file"
2147 file=$func_stripname_result
2148 stripped_ext=".exe"
2149 fi
2150 ;;
2151 esac
2152
2153 # Do a test to see if this is really a libtool program.
2154 case $host in
2155 *cygwin* | *mingw*)
2156 if func_ltwrapper_executable_p "$file"; then
2157 func_ltwrapper_scriptname "$file"
2158 wrapper=$func_ltwrapper_scriptname_result
2159 else
2160 func_stripname '' '.exe' "$file"
2161 wrapper=$func_stripname_result
2162 fi
2163 ;;
2164 *)
2165 wrapper=$file
2166 ;;
2167 esac
2168 if func_ltwrapper_script_p "$wrapper"; then
2169 notinst_deplibs=
2170 relink_command=
2171
2172 func_source "$wrapper"
2173
2174 # Check the variables that should have been set.
2175 test -z "$generated_by_libtool_version" && \
2176 func_fatal_error "invalid libtool wrapper script \`$wrapper'"
2177
2178 finalize=yes
2179 for lib in $notinst_deplibs; do
2180 # Check to see that each library is installed.
2181 libdir=
2182 if test -f "$lib"; then
2183 func_source "$lib"
2184 fi
2185 libfile="$libdir/"`$ECHO "X$lib" | $Xsed -e 's%^.*/%%g'` ### testsuite: skip nested quoting test
2186 if test -n "$libdir" && test ! -f "$libfile"; then
2187 func_warning "\`$lib' has not been installed in \`$libdir'"
2188 finalize=no
2189 fi
2190 done
2191
2192 relink_command=
2193 func_source "$wrapper"
2194
2195 outputname=
2196 if test "$fast_install" = no && test -n "$relink_command"; then
2197 $opt_dry_run || {
2198 if test "$finalize" = yes; then
2199 tmpdir=`func_mktempdir`
2200 func_basename "$file$stripped_ext"
2201 file="$func_basename_result"
2202 outputname="$tmpdir/$file"
2203 # Replace the output file specification.
2204 relink_command=`$ECHO "X$relink_command" | $Xsed -e 's%@OUTPUT@%'"$outputname"'%g'`
2205
2206 $opt_silent || {
2207 func_quote_for_expand "$relink_command"
2208 eval "func_echo $func_quote_for_expand_result"
2209 }
2210 if eval "$relink_command"; then :
2211 else
2212 func_error "error: relink \`$file' with the above command before installing it"
2213 $opt_dry_run || ${RM}r "$tmpdir"
2214 continue
2215 fi
2216 file="$outputname"
2217 else
2218 func_warning "cannot relink \`$file'"
2219 fi
2220 }
2221 else
2222 # Install the binary that we compiled earlier.
2223 file=`$ECHO "X$file$stripped_ext" | $Xsed -e "s%\([^/]*\)$%$objdir/\1%"`
2224 fi
2225 fi
2226
2227 # remove .exe since cygwin /usr/bin/install will append another
2228 # one anyway
2229 case $install_prog,$host in
2230 */usr/bin/install*,*cygwin*)
2231 case $file:$destfile in
2232 *.exe:*.exe)
2233 # this is ok
2234 ;;
2235 *.exe:*)
2236 destfile=$destfile.exe
2237 ;;
2238 *:*.exe)
2239 func_stripname '' '.exe' "$destfile"
2240 destfile=$func_stripname_result
2241 ;;
2242 esac
2243 ;;
2244 esac
2245 func_show_eval "$install_prog\$stripme \$file \$destfile" 'exit $?'
2246 $opt_dry_run || if test -n "$outputname"; then
2247 ${RM}r "$tmpdir"
2248 fi
2249 ;;
2250 esac
2251 done
2252
2253 for file in $staticlibs; do
2254 func_basename "$file"
2255 name="$func_basename_result"
2256
2257 # Set up the ranlib parameters.
2258 oldlib="$destdir/$name"
2259
2260 func_show_eval "$install_prog \$file \$oldlib" 'exit $?'
2261
2262 if test -n "$stripme" && test -n "$old_striplib"; then
2263 func_show_eval "$old_striplib $oldlib" 'exit $?'
2264 fi
2265
2266 # Do each command in the postinstall commands.
2267 func_execute_cmds "$old_postinstall_cmds" 'exit $?'
2268 done
2269
2270 test -n "$future_libdirs" && \
2271 func_warning "remember to run \`$progname --finish$future_libdirs'"
2272
2273 if test -n "$current_libdirs"; then
2274 # Maybe just do a dry run.
2275 $opt_dry_run && current_libdirs=" -n$current_libdirs"
2276 exec_cmd='$SHELL $progpath $preserve_args --finish$current_libdirs'
2277 else
2278 exit $EXIT_SUCCESS
2279 fi
2280 }
2281
2282 test "$mode" = install && func_mode_install ${1+"$@"}
2283
2284
2285 # func_generate_dlsyms outputname originator pic_p
2286 # Extract symbols from dlprefiles and create ${outputname}S.o with
2287 # a dlpreopen symbol table.
2288 func_generate_dlsyms ()
2289 {
2290 $opt_debug
2291 my_outputname="$1"
2292 my_originator="$2"
2293 my_pic_p="${3-no}"
2294 my_prefix=`$ECHO "$my_originator" | sed 's%[^a-zA-Z0-9]%_%g'`
2295 my_dlsyms=
2296
2297 if test -n "$dlfiles$dlprefiles" || test "$dlself" != no; then
2298 if test -n "$NM" && test -n "$global_symbol_pipe"; then
2299 my_dlsyms="${my_outputname}S.c"
2300 else
2301 func_error "not configured to extract global symbols from dlpreopened files"
2302 fi
2303 fi
2304
2305 if test -n "$my_dlsyms"; then
2306 case $my_dlsyms in
2307 "") ;;
2308 *.c)
2309 # Discover the nlist of each of the dlfiles.
2310 nlist="$output_objdir/${my_outputname}.nm"
2311
2312 func_show_eval "$RM $nlist ${nlist}S ${nlist}T"
2313
2314 # Parse the name list into a source file.
2315 func_verbose "creating $output_objdir/$my_dlsyms"
2316
2317 $opt_dry_run || $ECHO > "$output_objdir/$my_dlsyms" "\
2318 /* $my_dlsyms - symbol resolution table for \`$my_outputname' dlsym emulation. */
2319 /* Generated by $PROGRAM (GNU $PACKAGE$TIMESTAMP) $VERSION */
2320
2321 #ifdef __cplusplus
2322 extern \"C\" {
2323 #endif
2324
2325 /* External symbol declarations for the compiler. */\
2326 "
2327
2328 if test "$dlself" = yes; then
2329 func_verbose "generating symbol list for \`$output'"
2330
2331 $opt_dry_run || echo ': @PROGRAM@ ' > "$nlist"
2332
2333 # Add our own program objects to the symbol list.
2334 progfiles=`$ECHO "X$objs$old_deplibs" | $SP2NL | $Xsed -e "$lo2o" | $NL2SP`
2335 for progfile in $progfiles; do
2336 func_verbose "extracting global C symbols from \`$progfile'"
2337 $opt_dry_run || eval "$NM $progfile | $global_symbol_pipe >> '$nlist'"
2338 done
2339
2340 if test -n "$exclude_expsyms"; then
2341 $opt_dry_run || {
2342 eval '$EGREP -v " ($exclude_expsyms)$" "$nlist" > "$nlist"T'
2343 eval '$MV "$nlist"T "$nlist"'
2344 }
2345 fi
2346
2347 if test -n "$export_symbols_regex"; then
2348 $opt_dry_run || {
2349 eval '$EGREP -e "$export_symbols_regex" "$nlist" > "$nlist"T'
2350 eval '$MV "$nlist"T "$nlist"'
2351 }
2352 fi
2353
2354 # Prepare the list of exported symbols
2355 if test -z "$export_symbols"; then
2356 export_symbols="$output_objdir/$outputname.exp"
2357 $opt_dry_run || {
2358 $RM $export_symbols
2359 eval "${SED} -n -e '/^: @PROGRAM@ $/d' -e 's/^.* \(.*\)$/\1/p' "'< "$nlist" > "$export_symbols"'
2360 case $host in
2361 *cygwin* | *mingw* | *cegcc* )
2362 eval "echo EXPORTS "'> "$output_objdir/$outputname.def"'
2363 eval 'cat "$export_symbols" >> "$output_objdir/$outputname.def"'
2364 ;;
2365 esac
2366 }
2367 else
2368 $opt_dry_run || {
2369 eval "${SED} -e 's/\([].[*^$]\)/\\\\\1/g' -e 's/^/ /' -e 's/$/$/'"' < "$export_symbols" > "$output_objdir/$outputname.exp"'
2370 eval '$GREP -f "$output_objdir/$outputname.exp" < "$nlist" > "$nlist"T'
2371 eval '$MV "$nlist"T "$nlist"'
2372 case $host in
2373 *cygwin | *mingw* | *cegcc* )
2374 eval "echo EXPORTS "'> "$output_objdir/$outputname.def"'
2375 eval 'cat "$nlist" >> "$output_objdir/$outputname.def"'
2376 ;;
2377 esac
2378 }
2379 fi
2380 fi
2381
2382 for dlprefile in $dlprefiles; do
2383 func_verbose "extracting global C symbols from \`$dlprefile'"
2384 func_basename "$dlprefile"
2385 name="$func_basename_result"
2386 $opt_dry_run || {
2387 eval '$ECHO ": $name " >> "$nlist"'
2388 eval "$NM $dlprefile 2>/dev/null | $global_symbol_pipe >> '$nlist'"
2389 }
2390 done
2391
2392 $opt_dry_run || {
2393 # Make sure we have at least an empty file.
2394 test -f "$nlist" || : > "$nlist"
2395
2396 if test -n "$exclude_expsyms"; then
2397 $EGREP -v " ($exclude_expsyms)$" "$nlist" > "$nlist"T
2398 $MV "$nlist"T "$nlist"
2399 fi
2400
2401 # Try sorting and uniquifying the output.
2402 if $GREP -v "^: " < "$nlist" |
2403 if sort -k 3 </dev/null >/dev/null 2>&1; then
2404 sort -k 3
2405 else
2406 sort +2
2407 fi |
2408 uniq > "$nlist"S; then
2409 :
2410 else
2411 $GREP -v "^: " < "$nlist" > "$nlist"S
2412 fi
2413
2414 if test -f "$nlist"S; then
2415 eval "$global_symbol_to_cdecl"' < "$nlist"S >> "$output_objdir/$my_dlsyms"'
2416 else
2417 $ECHO '/* NONE */' >> "$output_objdir/$my_dlsyms"
2418 fi
2419
2420 $ECHO >> "$output_objdir/$my_dlsyms" "\
2421
2422 /* The mapping between symbol names and symbols. */
2423 typedef struct {
2424 const char *name;
2425 void *address;
2426 } lt_dlsymlist;
2427 "
2428 case $host in
2429 *cygwin* | *mingw* | *cegcc* )
2430 $ECHO >> "$output_objdir/$my_dlsyms" "\
2431 /* DATA imports from DLLs on WIN32 con't be const, because
2432 runtime relocations are performed -- see ld's documentation
2433 on pseudo-relocs. */"
2434 lt_dlsym_const= ;;
2435 *osf5*)
2436 echo >> "$output_objdir/$my_dlsyms" "\
2437 /* This system does not cope well with relocations in const data */"
2438 lt_dlsym_const= ;;
2439 *)
2440 lt_dlsym_const=const ;;
2441 esac
2442
2443 $ECHO >> "$output_objdir/$my_dlsyms" "\
2444 extern $lt_dlsym_const lt_dlsymlist
2445 lt_${my_prefix}_LTX_preloaded_symbols[];
2446 $lt_dlsym_const lt_dlsymlist
2447 lt_${my_prefix}_LTX_preloaded_symbols[] =
2448 {\
2449 { \"$my_originator\", (void *) 0 },"
2450
2451 case $need_lib_prefix in
2452 no)
2453 eval "$global_symbol_to_c_name_address" < "$nlist" >> "$output_objdir/$my_dlsyms"
2454 ;;
2455 *)
2456 eval "$global_symbol_to_c_name_address_lib_prefix" < "$nlist" >> "$output_objdir/$my_dlsyms"
2457 ;;
2458 esac
2459 $ECHO >> "$output_objdir/$my_dlsyms" "\
2460 {0, (void *) 0}
2461 };
2462
2463 /* This works around a problem in FreeBSD linker */
2464 #ifdef FREEBSD_WORKAROUND
2465 static const void *lt_preloaded_setup() {
2466 return lt_${my_prefix}_LTX_preloaded_symbols;
2467 }
2468 #endif
2469
2470 #ifdef __cplusplus
2471 }
2472 #endif\
2473 "
2474 } # !$opt_dry_run
2475
2476 pic_flag_for_symtable=
2477 case "$compile_command " in
2478 *" -static "*) ;;
2479 *)
2480 case $host in
2481 # compiling the symbol table file with pic_flag works around
2482 # a FreeBSD bug that causes programs to crash when -lm is
2483 # linked before any other PIC object. But we must not use
2484 # pic_flag when linking with -static. The problem exists in
2485 # FreeBSD 2.2.6 and is fixed in FreeBSD 3.1.
2486 *-*-freebsd2*|*-*-freebsd3.0*|*-*-freebsdelf3.0*)
2487 pic_flag_for_symtable=" $pic_flag -DFREEBSD_WORKAROUND" ;;
2488 *-*-hpux*)
2489 pic_flag_for_symtable=" $pic_flag" ;;
2490 *)
2491 if test "X$my_pic_p" != Xno; then
2492 pic_flag_for_symtable=" $pic_flag"
2493 fi
2494 ;;
2495 esac
2496 ;;
2497 esac
2498 symtab_cflags=
2499 for arg in $LTCFLAGS; do
2500 case $arg in
2501 -pie | -fpie | -fPIE) ;;
2502 *) symtab_cflags="$symtab_cflags $arg" ;;
2503 esac
2504 done
2505
2506 # Now compile the dynamic symbol file.
2507 func_show_eval '(cd $output_objdir && $LTCC$symtab_cflags -c$no_builtin_flag$pic_flag_for_symtable "$my_dlsyms")' 'exit $?'
2508
2509 # Clean up the generated files.
2510 func_show_eval '$RM "$output_objdir/$my_dlsyms" "$nlist" "${nlist}S" "${nlist}T"'
2511
2512 # Transform the symbol file into the correct name.
2513 symfileobj="$output_objdir/${my_outputname}S.$objext"
2514 case $host in
2515 *cygwin* | *mingw* | *cegcc* )
2516 if test -f "$output_objdir/$my_outputname.def"; then
2517 compile_command=`$ECHO "X$compile_command" | $Xsed -e "s%@SYMFILE@%$output_objdir/$my_outputname.def $symfileobj%"`
2518 finalize_command=`$ECHO "X$finalize_command" | $Xsed -e "s%@SYMFILE@%$output_objdir/$my_outputname.def $symfileobj%"`
2519 else
2520 compile_command=`$ECHO "X$compile_command" | $Xsed -e "s%@SYMFILE@%$symfileobj%"`
2521 finalize_command=`$ECHO "X$finalize_command" | $Xsed -e "s%@SYMFILE@%$symfileobj%"`
2522 fi
2523 ;;
2524 *)
2525 compile_command=`$ECHO "X$compile_command" | $Xsed -e "s%@SYMFILE@%$symfileobj%"`
2526 finalize_command=`$ECHO "X$finalize_command" | $Xsed -e "s%@SYMFILE@%$symfileobj%"`
2527 ;;
2528 esac
2529 ;;
2530 *)
2531 func_fatal_error "unknown suffix for \`$my_dlsyms'"
2532 ;;
2533 esac
2534 else
2535 # We keep going just in case the user didn't refer to
2536 # lt_preloaded_symbols. The linker will fail if global_symbol_pipe
2537 # really was required.
2538
2539 # Nullify the symbol file.
2540 compile_command=`$ECHO "X$compile_command" | $Xsed -e "s% @SYMFILE@%%"`
2541 finalize_command=`$ECHO "X$finalize_command" | $Xsed -e "s% @SYMFILE@%%"`
2542 fi
2543 }
1912544
1922545 # func_win32_libid arg
1932546 # return the library type of file 'arg'
1972550 # that is supplied when $file_magic_command is called.
1982551 func_win32_libid ()
1992552 {
2553 $opt_debug
2002554 win32_libid_type="unknown"
2012555 win32_fileres=`file -L $1 2>/dev/null`
2022556 case $win32_fileres in
2042558 win32_libid_type="x86 archive import"
2052559 ;;
2062560 *ar\ archive*) # could be an import, or static
207 if eval $OBJDUMP -f $1 | $SED -e '10q' 2>/dev/null | \
208 $EGREP -e 'file format pe-i386(.*architecture: i386)?' >/dev/null ; then
209 win32_nmres=`eval $NM -f posix -A $1 | \
210 $SED -n -e '1,100{
2561 if eval $OBJDUMP -f $1 | $SED -e '10q' 2>/dev/null |
2562 $EGREP 'file format pe-i386(.*architecture: i386)?' >/dev/null ; then
2563 win32_nmres=`eval $NM -f posix -A $1 |
2564 $SED -n -e '
2565 1,100{
2112566 / I /{
212 s,.*,import,
213 p
214 q
215 }
216 }'`
2567 s,.*,import,
2568 p
2569 q
2570 }
2571 }'`
2172572 case $win32_nmres in
2182573 import*) win32_libid_type="x86 archive import";;
2192574 *) win32_libid_type="x86 archive static";;
2312586 esac
2322587 ;;
2332588 esac
234 $echo $win32_libid_type
2589 $ECHO "$win32_libid_type"
2352590 }
2362591
237
238 # func_infer_tag arg
239 # Infer tagged configuration to use if any are available and
240 # if one wasn't chosen via the "--tag" command line option.
241 # Only attempt this if the compiler in the base compile
242 # command doesn't match the default compiler.
243 # arg is usually of the form 'gcc ...'
244 func_infer_tag ()
245 {
246 if test -n "$available_tags" && test -z "$tagname"; then
247 CC_quoted=
248 for arg in $CC; do
249 case $arg in
250 *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
251 arg="\"$arg\""
252 ;;
253 esac
254 CC_quoted="$CC_quoted $arg"
255 done
256 case $@ in
257 # Blanks in the command may have been stripped by the calling shell,
258 # but not from the CC environment variable when configure was run.
259 " $CC "* | "$CC "* | " `$echo $CC` "* | "`$echo $CC` "* | " $CC_quoted"* | "$CC_quoted "* | " `$echo $CC_quoted` "* | "`$echo $CC_quoted` "*) ;;
260 # Blanks at the start of $base_compile will cause this to fail
261 # if we don't check for them as well.
262 *)
263 for z in $available_tags; do
264 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $z$" < "$progpath" > /dev/null; then
265 # Evaluate the configuration.
266 eval "`${SED} -n -e '/^# ### BEGIN LIBTOOL TAG CONFIG: '$z'$/,/^# ### END LIBTOOL TAG CONFIG: '$z'$/p' < $progpath`"
267 CC_quoted=
268 for arg in $CC; do
269 # Double-quote args containing other shell metacharacters.
270 case $arg in
271 *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
272 arg="\"$arg\""
273 ;;
274 esac
275 CC_quoted="$CC_quoted $arg"
276 done
277 case "$@ " in
278 " $CC "* | "$CC "* | " `$echo $CC` "* | "`$echo $CC` "* | " $CC_quoted"* | "$CC_quoted "* | " `$echo $CC_quoted` "* | "`$echo $CC_quoted` "*)
279 # The compiler in the base compile command matches
280 # the one in the tagged configuration.
281 # Assume this is the tagged configuration we want.
282 tagname=$z
283 break
284 ;;
285 esac
286 fi
287 done
288 # If $tagname still isn't set, then no tagged configuration
289 # was found and let the user know that the "--tag" command
290 # line option must be used.
291 if test -z "$tagname"; then
292 $echo "$modename: unable to infer tagged configuration"
293 $echo "$modename: specify a tag with \`--tag'" 1>&2
294 exit $EXIT_FAILURE
295 # else
296 # $echo "$modename: using $tagname tagged configuration"
297 fi
298 ;;
299 esac
300 fi
301 }
3022592
3032593
3042594 # func_extract_an_archive dir oldlib
3052595 func_extract_an_archive ()
3062596 {
2597 $opt_debug
3072598 f_ex_an_ar_dir="$1"; shift
3082599 f_ex_an_ar_oldlib="$1"
309
310 $show "(cd $f_ex_an_ar_dir && $AR x $f_ex_an_ar_oldlib)"
311 $run eval "(cd \$f_ex_an_ar_dir && $AR x \$f_ex_an_ar_oldlib)" || exit $?
2600 func_show_eval "(cd \$f_ex_an_ar_dir && $AR x \"\$f_ex_an_ar_oldlib\")" 'exit $?'
3122601 if ($AR t "$f_ex_an_ar_oldlib" | sort | sort -uc >/dev/null 2>&1); then
3132602 :
3142603 else
315 $echo "$modename: ERROR: object name conflicts: $f_ex_an_ar_dir/$f_ex_an_ar_oldlib" 1>&2
316 exit $EXIT_FAILURE
2604 func_fatal_error "object name conflicts in archive: $f_ex_an_ar_dir/$f_ex_an_ar_oldlib"
3172605 fi
3182606 }
2607
3192608
3202609 # func_extract_archives gentop oldlib ...
3212610 func_extract_archives ()
3222611 {
2612 $opt_debug
3232613 my_gentop="$1"; shift
3242614 my_oldlibs=${1+"$@"}
3252615 my_oldobjs=""
3262616 my_xlib=""
3272617 my_xabs=""
3282618 my_xdir=""
329 my_status=""
330
331 $show "${rm}r $my_gentop"
332 $run ${rm}r "$my_gentop"
333 $show "$mkdir $my_gentop"
334 $run $mkdir "$my_gentop"
335 my_status=$?
336 if test "$my_status" -ne 0 && test ! -d "$my_gentop"; then
337 exit $my_status
338 fi
3392619
3402620 for my_xlib in $my_oldlibs; do
3412621 # Extract the objects.
3432623 [\\/]* | [A-Za-z]:[\\/]*) my_xabs="$my_xlib" ;;
3442624 *) my_xabs=`pwd`"/$my_xlib" ;;
3452625 esac
346 my_xlib=`$echo "X$my_xlib" | $Xsed -e 's%^.*/%%'`
2626 func_basename "$my_xlib"
2627 my_xlib="$func_basename_result"
3472628 my_xlib_u=$my_xlib
3482629 while :; do
3492630 case " $extracted_archives " in
3502631 *" $my_xlib_u "*)
351 extracted_serial=`expr $extracted_serial + 1`
2632 func_arith $extracted_serial + 1
2633 extracted_serial=$func_arith_result
3522634 my_xlib_u=lt$extracted_serial-$my_xlib ;;
3532635 *) break ;;
3542636 esac
3562638 extracted_archives="$extracted_archives $my_xlib_u"
3572639 my_xdir="$my_gentop/$my_xlib_u"
3582640
359 $show "${rm}r $my_xdir"
360 $run ${rm}r "$my_xdir"
361 $show "$mkdir $my_xdir"
362 $run $mkdir "$my_xdir"
363 exit_status=$?
364 if test "$exit_status" -ne 0 && test ! -d "$my_xdir"; then
365 exit $exit_status
366 fi
2641 func_mkdir_p "$my_xdir"
2642
3672643 case $host in
3682644 *-darwin*)
369 $show "Extracting $my_xabs"
2645 func_verbose "Extracting $my_xabs"
3702646 # Do not bother doing anything if just a dry run
371 if test -z "$run"; then
2647 $opt_dry_run || {
3722648 darwin_orig_dir=`pwd`
3732649 cd $my_xdir || exit $?
3742650 darwin_archive=$my_xabs
3752651 darwin_curdir=`pwd`
376 darwin_base_archive=`$echo "X$darwin_archive" | $Xsed -e 's%^.*/%%'`
377 darwin_arches=`lipo -info "$darwin_archive" 2>/dev/null | $EGREP Architectures 2>/dev/null`
378 if test -n "$darwin_arches"; then
379 darwin_arches=`echo "$darwin_arches" | $SED -e 's/.*are://'`
2652 darwin_base_archive=`basename "$darwin_archive"`
2653 darwin_arches=`$LIPO -info "$darwin_archive" 2>/dev/null | $GREP Architectures 2>/dev/null || true`
2654 if test -n "$darwin_arches"; then
2655 darwin_arches=`$ECHO "$darwin_arches" | $SED -e 's/.*are://'`
3802656 darwin_arch=
381 $show "$darwin_base_archive has multiple architectures $darwin_arches"
2657 func_verbose "$darwin_base_archive has multiple architectures $darwin_arches"
3822658 for darwin_arch in $darwin_arches ; do
383 mkdir -p "unfat-$$/${darwin_base_archive}-${darwin_arch}"
384 lipo -thin $darwin_arch -output "unfat-$$/${darwin_base_archive}-${darwin_arch}/${darwin_base_archive}" "${darwin_archive}"
2659 func_mkdir_p "unfat-$$/${darwin_base_archive}-${darwin_arch}"
2660 $LIPO -thin $darwin_arch -output "unfat-$$/${darwin_base_archive}-${darwin_arch}/${darwin_base_archive}" "${darwin_archive}"
3852661 cd "unfat-$$/${darwin_base_archive}-${darwin_arch}"
3862662 func_extract_an_archive "`pwd`" "${darwin_base_archive}"
3872663 cd "$darwin_curdir"
388 $rm "unfat-$$/${darwin_base_archive}-${darwin_arch}/${darwin_base_archive}"
2664 $RM "unfat-$$/${darwin_base_archive}-${darwin_arch}/${darwin_base_archive}"
3892665 done # $darwin_arches
390 ## Okay now we have a bunch of thin objects, gotta fatten them up :)
391 darwin_filelist=`find unfat-$$ -type f -name \*.o -print -o -name \*.lo -print| xargs basename | sort -u | $NL2SP`
2666 ## Okay now we've a bunch of thin objects, gotta fatten them up :)
2667 darwin_filelist=`find unfat-$$ -type f -name \*.o -print -o -name \*.lo -print | $SED -e "$basename" | sort -u`
3922668 darwin_file=
3932669 darwin_files=
3942670 for darwin_file in $darwin_filelist; do
3952671 darwin_files=`find unfat-$$ -name $darwin_file -print | $NL2SP`
396 lipo -create -output "$darwin_file" $darwin_files
2672 $LIPO -create -output "$darwin_file" $darwin_files
3972673 done # $darwin_filelist
398 ${rm}r unfat-$$
2674 $RM -rf unfat-$$
3992675 cd "$darwin_orig_dir"
4002676 else
401 cd "$darwin_orig_dir"
402 func_extract_an_archive "$my_xdir" "$my_xabs"
2677 cd $darwin_orig_dir
2678 func_extract_an_archive "$my_xdir" "$my_xabs"
4032679 fi # $darwin_arches
404 fi # $run
2680 } # !$opt_dry_run
4052681 ;;
4062682 *)
4072683 func_extract_an_archive "$my_xdir" "$my_xabs"
408 ;;
2684 ;;
4092685 esac
4102686 my_oldobjs="$my_oldobjs "`find $my_xdir -name \*.$objext -print -o -name \*.lo -print | $NL2SP`
4112687 done
2688
4122689 func_extract_archives_result="$my_oldobjs"
4132690 }
414 # End of Shell function definitions
415 #####################################
416
417 # Darwin sucks
418 eval std_shrext=\"$shrext_cmds\"
419
420 disable_libs=no
421
422 # Parse our command line options once, thoroughly.
423 while test "$#" -gt 0
424 do
425 arg="$1"
426 shift
427
428 case $arg in
429 -*=*) optarg=`$echo "X$arg" | $Xsed -e 's/[-_a-zA-Z0-9]*=//'` ;;
430 *) optarg= ;;
431 esac
432
433 # If the previous option needs an argument, assign it.
434 if test -n "$prev"; then
435 case $prev in
436 execute_dlfiles)
437 execute_dlfiles="$execute_dlfiles $arg"
438 ;;
439 tag)
440 tagname="$arg"
441 preserve_args="${preserve_args}=$arg"
442
443 # Check whether tagname contains only valid characters
444 case $tagname in
445 *[!-_A-Za-z0-9,/]*)
446 $echo "$progname: invalid tag name: $tagname" 1>&2
447 exit $EXIT_FAILURE
448 ;;
2691
2692
2693
2694 # func_emit_wrapper_part1 [arg=no]
2695 #
2696 # Emit the first part of a libtool wrapper script on stdout.
2697 # For more information, see the description associated with
2698 # func_emit_wrapper(), below.
2699 func_emit_wrapper_part1 ()
2700 {
2701 func_emit_wrapper_part1_arg1=no
2702 if test -n "$1" ; then
2703 func_emit_wrapper_part1_arg1=$1
2704 fi
2705
2706 $ECHO "\
2707 #! $SHELL
2708
2709 # $output - temporary wrapper script for $objdir/$outputname
2710 # Generated by $PROGRAM (GNU $PACKAGE$TIMESTAMP) $VERSION
2711 #
2712 # The $output program cannot be directly executed until all the libtool
2713 # libraries that it depends on are installed.
2714 #
2715 # This wrapper script should never be moved out of the build directory.
2716 # If it is, it will not operate correctly.
2717
2718 # Sed substitution that helps us do robust quoting. It backslashifies
2719 # metacharacters that are still active within double-quoted strings.
2720 Xsed='${SED} -e 1s/^X//'
2721 sed_quote_subst='$sed_quote_subst'
2722
2723 # Be Bourne compatible
2724 if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then
2725 emulate sh
2726 NULLCMD=:
2727 # Zsh 3.x and 4.x performs word splitting on \${1+\"\$@\"}, which
2728 # is contrary to our usage. Disable this feature.
2729 alias -g '\${1+\"\$@\"}'='\"\$@\"'
2730 setopt NO_GLOB_SUBST
2731 else
2732 case \`(set -o) 2>/dev/null\` in *posix*) set -o posix;; esac
2733 fi
2734 BIN_SH=xpg4; export BIN_SH # for Tru64
2735 DUALCASE=1; export DUALCASE # for MKS sh
2736
2737 # The HP-UX ksh and POSIX shell print the target directory to stdout
2738 # if CDPATH is set.
2739 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
2740
2741 relink_command=\"$relink_command\"
2742
2743 # This environment variable determines our operation mode.
2744 if test \"\$libtool_install_magic\" = \"$magic\"; then
2745 # install mode needs the following variables:
2746 generated_by_libtool_version='$macro_version'
2747 notinst_deplibs='$notinst_deplibs'
2748 else
2749 # When we are sourced in execute mode, \$file and \$ECHO are already set.
2750 if test \"\$libtool_execute_magic\" != \"$magic\"; then
2751 ECHO=\"$qecho\"
2752 file=\"\$0\"
2753 # Make sure echo works.
2754 if test \"X\$1\" = X--no-reexec; then
2755 # Discard the --no-reexec flag, and continue.
2756 shift
2757 elif test \"X\`{ \$ECHO '\t'; } 2>/dev/null\`\" = 'X\t'; then
2758 # Yippee, \$ECHO works!
2759 :
2760 else
2761 # Restart under the correct shell, and then maybe \$ECHO will work.
2762 exec $SHELL \"\$0\" --no-reexec \${1+\"\$@\"}
2763 fi
2764 fi\
2765 "
2766 $ECHO "\
2767
2768 # Find the directory that this script lives in.
2769 thisdir=\`\$ECHO \"X\$file\" | \$Xsed -e 's%/[^/]*$%%'\`
2770 test \"x\$thisdir\" = \"x\$file\" && thisdir=.
2771
2772 # Follow symbolic links until we get to the real thisdir.
2773 file=\`ls -ld \"\$file\" | ${SED} -n 's/.*-> //p'\`
2774 while test -n \"\$file\"; do
2775 destdir=\`\$ECHO \"X\$file\" | \$Xsed -e 's%/[^/]*\$%%'\`
2776
2777 # If there was a directory component, then change thisdir.
2778 if test \"x\$destdir\" != \"x\$file\"; then
2779 case \"\$destdir\" in
2780 [\\\\/]* | [A-Za-z]:[\\\\/]*) thisdir=\"\$destdir\" ;;
2781 *) thisdir=\"\$thisdir/\$destdir\" ;;
4492782 esac
450
451 case $tagname in
452 CC)
453 # Don't test for the "default" C tag, as we know, it's there, but
454 # not specially marked.
455 ;;
456 *)
457 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "$progpath" > /dev/null; then
458 taglist="$taglist $tagname"
459 # Evaluate the configuration.
460 eval "`${SED} -n -e '/^# ### BEGIN LIBTOOL TAG CONFIG: '$tagname'$/,/^# ### END LIBTOOL TAG CONFIG: '$tagname'$/p' < $progpath`"
461 else
462 $echo "$progname: ignoring unknown tag $tagname" 1>&2
2783 fi
2784
2785 file=\`\$ECHO \"X\$file\" | \$Xsed -e 's%^.*/%%'\`
2786 file=\`ls -ld \"\$thisdir/\$file\" | ${SED} -n 's/.*-> //p'\`
2787 done
2788 "
2789 }
2790 # end: func_emit_wrapper_part1
2791
2792 # func_emit_wrapper_part2 [arg=no]
2793 #
2794 # Emit the second part of a libtool wrapper script on stdout.
2795 # For more information, see the description associated with
2796 # func_emit_wrapper(), below.
2797 func_emit_wrapper_part2 ()
2798 {
2799 func_emit_wrapper_part2_arg1=no
2800 if test -n "$1" ; then
2801 func_emit_wrapper_part2_arg1=$1
4632802 fi
464 ;;
465 esac
466 ;;
467 *)
468 eval "$prev=\$arg"
469 ;;
470 esac
471
472 prev=
473 prevopt=
474 continue
475 fi
476
477 # Have we seen a non-optional argument yet?
478 case $arg in
479 --help)
480 show_help=yes
481 ;;
482
483 --version)
484 echo "\
485 $PROGRAM (GNU $PACKAGE) $VERSION$TIMESTAMP
486
487 Copyright (C) 2007 Free Software Foundation, Inc.
488 This is free software; see the source for copying conditions. There is NO
489 warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE."
490 exit $?
491 ;;
492
493 --config)
494 ${SED} -e '1,/^# ### BEGIN LIBTOOL CONFIG/d' -e '/^# ### END LIBTOOL CONFIG/,$d' $progpath
495 # Now print the configurations for the tags.
496 for tagname in $taglist; do
497 ${SED} -n -e "/^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$/,/^# ### END LIBTOOL TAG CONFIG: $tagname$/p" < "$progpath"
498 done
499 exit $?
500 ;;
501
502 --debug)
503 $echo "$progname: enabling shell trace mode"
504 set -x
505 preserve_args="$preserve_args $arg"
506 ;;
507
508 --dry-run | -n)
509 run=:
510 ;;
511
512 --features)
513 $echo "host: $host"
514 if test "$build_libtool_libs" = yes; then
515 $echo "enable shared libraries"
516 else
517 $echo "disable shared libraries"
2803
2804 $ECHO "\
2805
2806 # Usually 'no', except on cygwin/mingw when embedded into
2807 # the cwrapper.
2808 WRAPPER_SCRIPT_BELONGS_IN_OBJDIR=$func_emit_wrapper_part2_arg1
2809 if test \"\$WRAPPER_SCRIPT_BELONGS_IN_OBJDIR\" = \"yes\"; then
2810 # special case for '.'
2811 if test \"\$thisdir\" = \".\"; then
2812 thisdir=\`pwd\`
5182813 fi
519 if test "$build_old_libs" = yes; then
520 $echo "enable static libraries"
521 else
522 $echo "disable static libraries"
523 fi
524 exit $?
525 ;;
526
527 --finish) mode="finish" ;;
528
529 --mode) prevopt="--mode" prev=mode ;;
530 --mode=*) mode="$optarg" ;;
531
532 --preserve-dup-deps) duplicate_deps="yes" ;;
533
534 --quiet | --silent)
535 show=:
536 preserve_args="$preserve_args $arg"
537 ;;
538
539 --tag)
540 prevopt="--tag"
541 prev=tag
542 preserve_args="$preserve_args --tag"
543 ;;
544 --tag=*)
545 set tag "$optarg" ${1+"$@"}
546 shift
547 prev=tag
548 preserve_args="$preserve_args --tag"
549 ;;
550
551 -dlopen)
552 prevopt="-dlopen"
553 prev=execute_dlfiles
554 ;;
555
556 -*)
557 $echo "$modename: unrecognized option \`$arg'" 1>&2
558 $echo "$help" 1>&2
559 exit $EXIT_FAILURE
560 ;;
561
562 *)
563 nonopt="$arg"
564 break
565 ;;
566 esac
567 done
568
569 if test -n "$prevopt"; then
570 $echo "$modename: option \`$prevopt' requires an argument" 1>&2
571 $echo "$help" 1>&2
572 exit $EXIT_FAILURE
573 fi
574
575 case $disable_libs in
576 no)
577 ;;
578 shared)
579 build_libtool_libs=no
580 build_old_libs=yes
581 ;;
582 static)
583 build_old_libs=`case $build_libtool_libs in yes) echo no;; *) echo yes;; esac`
584 ;;
585 esac
586
587 # If this variable is set in any of the actions, the command in it
588 # will be execed at the end. This prevents here-documents from being
589 # left over by shells.
590 exec_cmd=
591
592 if test -z "$show_help"; then
593
594 # Infer the operation mode.
595 if test -z "$mode"; then
596 $echo "*** Warning: inferring the mode of operation is deprecated." 1>&2
597 $echo "*** Future versions of Libtool will require --mode=MODE be specified." 1>&2
598 case $nonopt in
599 *cc | cc* | *++ | gcc* | *-gcc* | g++* | xlc*)
600 mode=link
601 for arg
602 do
603 case $arg in
604 -c)
605 mode=compile
606 break
607 ;;
608 esac
609 done
610 ;;
611 *db | *dbx | *strace | *truss)
612 mode=execute
613 ;;
614 *install*|cp|mv)
615 mode=install
616 ;;
617 *rm)
618 mode=uninstall
619 ;;
620 *)
621 # If we have no mode, but dlfiles were specified, then do execute mode.
622 test -n "$execute_dlfiles" && mode=execute
623
624 # Just use the default operation mode.
625 if test -z "$mode"; then
626 if test -n "$nonopt"; then
627 $echo "$modename: warning: cannot infer operation mode from \`$nonopt'" 1>&2
628 else
629 $echo "$modename: warning: cannot infer operation mode without MODE-ARGS" 1>&2
630 fi
631 fi
632 ;;
2814 # remove .libs from thisdir
2815 case \"\$thisdir\" in
2816 *[\\\\/]$objdir ) thisdir=\`\$ECHO \"X\$thisdir\" | \$Xsed -e 's%[\\\\/][^\\\\/]*$%%'\` ;;
2817 $objdir ) thisdir=. ;;
6332818 esac
6342819 fi
6352820
636 # Only execute mode is allowed to have -dlopen flags.
637 if test -n "$execute_dlfiles" && test "$mode" != execute; then
638 $echo "$modename: unrecognized option \`-dlopen'" 1>&2
639 $echo "$help" 1>&2
640 exit $EXIT_FAILURE
2821 # Try to get the absolute directory name.
2822 absdir=\`cd \"\$thisdir\" && pwd\`
2823 test -n \"\$absdir\" && thisdir=\"\$absdir\"
2824 "
2825
2826 if test "$fast_install" = yes; then
2827 $ECHO "\
2828 program=lt-'$outputname'$exeext
2829 progdir=\"\$thisdir/$objdir\"
2830
2831 if test ! -f \"\$progdir/\$program\" ||
2832 { file=\`ls -1dt \"\$progdir/\$program\" \"\$progdir/../\$program\" 2>/dev/null | ${SED} 1q\`; \\
2833 test \"X\$file\" != \"X\$progdir/\$program\"; }; then
2834
2835 file=\"\$\$-\$program\"
2836
2837 if test ! -d \"\$progdir\"; then
2838 $MKDIR \"\$progdir\"
2839 else
2840 $RM \"\$progdir/\$file\"
2841 fi"
2842
2843 $ECHO "\
2844
2845 # relink executable if necessary
2846 if test -n \"\$relink_command\"; then
2847 if relink_command_output=\`eval \$relink_command 2>&1\`; then :
2848 else
2849 $ECHO \"\$relink_command_output\" >&2
2850 $RM \"\$progdir/\$file\"
2851 exit 1
2852 fi
2853 fi
2854
2855 $MV \"\$progdir/\$file\" \"\$progdir/\$program\" 2>/dev/null ||
2856 { $RM \"\$progdir/\$program\";
2857 $MV \"\$progdir/\$file\" \"\$progdir/\$program\"; }
2858 $RM \"\$progdir/\$file\"
2859 fi"
2860 else
2861 $ECHO "\
2862 program='$outputname'
2863 progdir=\"\$thisdir/$objdir\"
2864 "
2865 fi
2866
2867 $ECHO "\
2868
2869 if test -f \"\$progdir/\$program\"; then"
2870
2871 # Export our shlibpath_var if we have one.
2872 if test "$shlibpath_overrides_runpath" = yes && test -n "$shlibpath_var" && test -n "$temp_rpath"; then
2873 $ECHO "\
2874 # Add our own library path to $shlibpath_var
2875 $shlibpath_var=\"$temp_rpath\$$shlibpath_var\"
2876
2877 # Some systems cannot cope with colon-terminated $shlibpath_var
2878 # The second colon is a workaround for a bug in BeOS R4 sed
2879 $shlibpath_var=\`\$ECHO \"X\$$shlibpath_var\" | \$Xsed -e 's/::*\$//'\`
2880
2881 export $shlibpath_var
2882 "
2883 fi
2884
2885 # fixup the dll searchpath if we need to.
2886 if test -n "$dllsearchpath"; then
2887 $ECHO "\
2888 # Add the dll search path components to the executable PATH
2889 PATH=$dllsearchpath:\$PATH
2890 "
2891 fi
2892
2893 $ECHO "\
2894 if test \"\$libtool_execute_magic\" != \"$magic\"; then
2895 # Run the actual program with our arguments.
2896 "
2897 case $host in
2898 # Backslashes separate directories on plain windows
2899 *-*-mingw | *-*-os2* | *-cegcc*)
2900 $ECHO "\
2901 exec \"\$progdir\\\\\$program\" \${1+\"\$@\"}
2902 "
2903 ;;
2904
2905 *)
2906 $ECHO "\
2907 exec \"\$progdir/\$program\" \${1+\"\$@\"}
2908 "
2909 ;;
2910 esac
2911 $ECHO "\
2912 \$ECHO \"\$0: cannot exec \$program \$*\" 1>&2
2913 exit 1
2914 fi
2915 else
2916 # The program doesn't exist.
2917 \$ECHO \"\$0: error: \\\`\$progdir/\$program' does not exist\" 1>&2
2918 \$ECHO \"This script is just a wrapper for \$program.\" 1>&2
2919 $ECHO \"See the $PACKAGE documentation for more information.\" 1>&2
2920 exit 1
6412921 fi
642
643 # Change the help message to a mode-specific one.
644 generic_help="$help"
645 help="Try \`$modename --help --mode=$mode' for more information."
646
647 # These modes are in order of execution frequency so that they run quickly.
648 case $mode in
649 # libtool compile mode
650 compile)
651 modename="$modename: compile"
652 # Get the compilation command and the source file.
653 base_compile=
654 srcfile="$nonopt" # always keep a non-empty value in "srcfile"
655 suppress_opt=yes
656 suppress_output=
657 arg_mode=normal
658 libobj=
659 later=
660
661 for arg
662 do
663 case $arg_mode in
664 arg )
665 # do not "continue". Instead, add this to base_compile
666 lastarg="$arg"
667 arg_mode=normal
668 ;;
669
670 target )
671 libobj="$arg"
672 arg_mode=normal
673 continue
674 ;;
675
676 normal )
677 # Accept any command-line options.
678 case $arg in
679 -o)
680 if test -n "$libobj" ; then
681 $echo "$modename: you cannot specify \`-o' more than once" 1>&2
682 exit $EXIT_FAILURE
683 fi
684 arg_mode=target
685 continue
686 ;;
687
688 -static | -prefer-pic | -prefer-non-pic)
689 later="$later $arg"
690 continue
691 ;;
692
693 -no-suppress)
694 suppress_opt=no
695 continue
696 ;;
697
698 -Xcompiler)
699 arg_mode=arg # the next one goes into the "base_compile" arg list
700 continue # The current "srcfile" will either be retained or
701 ;; # replaced later. I would guess that would be a bug.
702
703 -Wc,*)
704 args=`$echo "X$arg" | $Xsed -e "s/^-Wc,//"`
705 lastarg=
706 save_ifs="$IFS"; IFS=','
707 for arg in $args; do
708 IFS="$save_ifs"
709
710 # Double-quote args containing other shell metacharacters.
711 # Many Bourne shells cannot handle close brackets correctly
712 # in scan sets, so we specify it separately.
713 case $arg in
714 *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
715 arg="\"$arg\""
716 ;;
2922 fi\
2923 "
2924 }
2925 # end: func_emit_wrapper_part2
2926
2927
2928 # func_emit_wrapper [arg=no]
2929 #
2930 # Emit a libtool wrapper script on stdout.
2931 # Don't directly open a file because we may want to
2932 # incorporate the script contents within a cygwin/mingw
2933 # wrapper executable. Must ONLY be called from within
2934 # func_mode_link because it depends on a number of variables
2935 # set therein.
2936 #
2937 # ARG is the value that the WRAPPER_SCRIPT_BELONGS_IN_OBJDIR
2938 # variable will take. If 'yes', then the emitted script
2939 # will assume that the directory in which it is stored is
2940 # the $objdir directory. This is a cygwin/mingw-specific
2941 # behavior.
2942 func_emit_wrapper ()
2943 {
2944 func_emit_wrapper_arg1=no
2945 if test -n "$1" ; then
2946 func_emit_wrapper_arg1=$1
2947 fi
2948
2949 # split this up so that func_emit_cwrapperexe_src
2950 # can call each part independently.
2951 func_emit_wrapper_part1 "${func_emit_wrapper_arg1}"
2952 func_emit_wrapper_part2 "${func_emit_wrapper_arg1}"
2953 }
2954
2955
2956 # func_to_host_path arg
2957 #
2958 # Convert paths to host format when used with build tools.
2959 # Intended for use with "native" mingw (where libtool itself
2960 # is running under the msys shell), or in the following cross-
2961 # build environments:
2962 # $build $host
2963 # mingw (msys) mingw [e.g. native]
2964 # cygwin mingw
2965 # *nix + wine mingw
2966 # where wine is equipped with the `winepath' executable.
2967 # In the native mingw case, the (msys) shell automatically
2968 # converts paths for any non-msys applications it launches,
2969 # but that facility isn't available from inside the cwrapper.
2970 # Similar accommodations are necessary for $host mingw and
2971 # $build cygwin. Calling this function does no harm for other
2972 # $host/$build combinations not listed above.
2973 #
2974 # ARG is the path (on $build) that should be converted to
2975 # the proper representation for $host. The result is stored
2976 # in $func_to_host_path_result.
2977 func_to_host_path ()
2978 {
2979 func_to_host_path_result="$1"
2980 if test -n "$1" ; then
2981 case $host in
2982 *mingw* )
2983 lt_sed_naive_backslashify='s|\\\\*|\\|g;s|/|\\|g;s|\\|\\\\|g'
2984 case $build in
2985 *mingw* ) # actually, msys
2986 # awkward: cmd appends spaces to result
2987 lt_sed_strip_trailing_spaces="s/[ ]*\$//"
2988 func_to_host_path_tmp1=`( cmd //c echo "$1" |\
2989 $SED -e "$lt_sed_strip_trailing_spaces" ) 2>/dev/null || echo ""`
2990 func_to_host_path_result=`echo "$func_to_host_path_tmp1" |\
2991 $SED -e "$lt_sed_naive_backslashify"`
2992 ;;
2993 *cygwin* )
2994 func_to_host_path_tmp1=`cygpath -w "$1"`
2995 func_to_host_path_result=`echo "$func_to_host_path_tmp1" |\
2996 $SED -e "$lt_sed_naive_backslashify"`
2997 ;;
2998 * )
2999 # Unfortunately, winepath does not exit with a non-zero
3000 # error code, so we are forced to check the contents of
3001 # stdout. On the other hand, if the command is not
3002 # found, the shell will set an exit code of 127 and print
3003 # *an error message* to stdout. So we must check for both
3004 # error code of zero AND non-empty stdout, which explains
3005 # the odd construction:
3006 func_to_host_path_tmp1=`winepath -w "$1" 2>/dev/null`
3007 if test "$?" -eq 0 && test -n "${func_to_host_path_tmp1}"; then
3008 func_to_host_path_result=`echo "$func_to_host_path_tmp1" |\
3009 $SED -e "$lt_sed_naive_backslashify"`
3010 else
3011 # Allow warning below.
3012 func_to_host_path_result=""
3013 fi
3014 ;;
3015 esac
3016 if test -z "$func_to_host_path_result" ; then
3017 func_error "Could not determine host path corresponding to"
3018 func_error " '$1'"
3019 func_error "Continuing, but uninstalled executables may not work."
3020 # Fallback:
3021 func_to_host_path_result="$1"
3022 fi
3023 ;;
3024 esac
3025 fi
3026 }
3027 # end: func_to_host_path
3028
3029 # func_to_host_pathlist arg
3030 #
3031 # Convert pathlists to host format when used with build tools.
3032 # See func_to_host_path(), above. This function supports the
3033 # following $build/$host combinations (but does no harm for
3034 # combinations not listed here):
3035 # $build $host
3036 # mingw (msys) mingw [e.g. native]
3037 # cygwin mingw
3038 # *nix + wine mingw
3039 #
3040 # Path separators are also converted from $build format to
3041 # $host format. If ARG begins or ends with a path separator
3042 # character, it is preserved (but converted to $host format)
3043 # on output.
3044 #
3045 # ARG is a pathlist (on $build) that should be converted to
3046 # the proper representation on $host. The result is stored
3047 # in $func_to_host_pathlist_result.
3048 func_to_host_pathlist ()
3049 {
3050 func_to_host_pathlist_result="$1"
3051 if test -n "$1" ; then
3052 case $host in
3053 *mingw* )
3054 lt_sed_naive_backslashify='s|\\\\*|\\|g;s|/|\\|g;s|\\|\\\\|g'
3055 # Remove leading and trailing path separator characters from
3056 # ARG. msys behavior is inconsistent here, cygpath turns them
3057 # into '.;' and ';.', and winepath ignores them completely.
3058 func_to_host_pathlist_tmp2="$1"
3059 # Once set for this call, this variable should not be
3060 # reassigned. It is used in tha fallback case.
3061 func_to_host_pathlist_tmp1=`echo "$func_to_host_pathlist_tmp2" |\
3062 $SED -e 's|^:*||' -e 's|:*$||'`
3063 case $build in
3064 *mingw* ) # Actually, msys.
3065 # Awkward: cmd appends spaces to result.
3066 lt_sed_strip_trailing_spaces="s/[ ]*\$//"
3067 func_to_host_pathlist_tmp2=`( cmd //c echo "$func_to_host_pathlist_tmp1" |\
3068 $SED -e "$lt_sed_strip_trailing_spaces" ) 2>/dev/null || echo ""`
3069 func_to_host_pathlist_result=`echo "$func_to_host_pathlist_tmp2" |\
3070 $SED -e "$lt_sed_naive_backslashify"`
3071 ;;
3072 *cygwin* )
3073 func_to_host_pathlist_tmp2=`cygpath -w -p "$func_to_host_pathlist_tmp1"`
3074 func_to_host_pathlist_result=`echo "$func_to_host_pathlist_tmp2" |\
3075 $SED -e "$lt_sed_naive_backslashify"`
3076 ;;
3077 * )
3078 # unfortunately, winepath doesn't convert pathlists
3079 func_to_host_pathlist_result=""
3080 func_to_host_pathlist_oldIFS=$IFS
3081 IFS=:
3082 for func_to_host_pathlist_f in $func_to_host_pathlist_tmp1 ; do
3083 IFS=$func_to_host_pathlist_oldIFS
3084 if test -n "$func_to_host_pathlist_f" ; then
3085 func_to_host_path "$func_to_host_pathlist_f"
3086 if test -n "$func_to_host_path_result" ; then
3087 if test -z "$func_to_host_pathlist_result" ; then
3088 func_to_host_pathlist_result="$func_to_host_path_result"
3089 else
3090 func_to_host_pathlist_result="$func_to_host_pathlist_result;$func_to_host_path_result"
3091 fi
3092 fi
3093 fi
3094 IFS=:
3095 done
3096 IFS=$func_to_host_pathlist_oldIFS
3097 ;;
3098 esac
3099 if test -z "$func_to_host_pathlist_result" ; then
3100 func_error "Could not determine the host path(s) corresponding to"
3101 func_error " '$1'"
3102 func_error "Continuing, but uninstalled executables may not work."
3103 # Fallback. This may break if $1 contains DOS-style drive
3104 # specifications. The fix is not to complicate the expression
3105 # below, but for the user to provide a working wine installation
3106 # with winepath so that path translation in the cross-to-mingw
3107 # case works properly.
3108 lt_replace_pathsep_nix_to_dos="s|:|;|g"
3109 func_to_host_pathlist_result=`echo "$func_to_host_pathlist_tmp1" |\
3110 $SED -e "$lt_replace_pathsep_nix_to_dos"`
3111 fi
3112 # Now, add the leading and trailing path separators back
3113 case "$1" in
3114 :* ) func_to_host_pathlist_result=";$func_to_host_pathlist_result"
3115 ;;
3116 esac
3117 case "$1" in
3118 *: ) func_to_host_pathlist_result="$func_to_host_pathlist_result;"
3119 ;;
3120 esac
3121 ;;
3122 esac
3123 fi
3124 }
3125 # end: func_to_host_pathlist
3126
3127 # func_emit_cwrapperexe_src
3128 # emit the source code for a wrapper executable on stdout
3129 # Must ONLY be called from within func_mode_link because
3130 # it depends on a number of variable set therein.
3131 func_emit_cwrapperexe_src ()
3132 {
3133 cat <<EOF
3134
3135 /* $cwrappersource - temporary wrapper executable for $objdir/$outputname
3136 Generated by $PROGRAM (GNU $PACKAGE$TIMESTAMP) $VERSION
3137
3138 The $output program cannot be directly executed until all the libtool
3139 libraries that it depends on are installed.
3140
3141 This wrapper executable should never be moved out of the build directory.
3142 If it is, it will not operate correctly.
3143
3144 Currently, it simply execs the wrapper *script* "$SHELL $output",
3145 but could eventually absorb all of the scripts functionality and
3146 exec $objdir/$outputname directly.
3147 */
3148 EOF
3149 cat <<"EOF"
3150 #include <stdio.h>
3151 #include <stdlib.h>
3152 #ifdef _MSC_VER
3153 # include <direct.h>
3154 # include <process.h>
3155 # include <io.h>
3156 # define setmode _setmode
3157 #else
3158 # include <unistd.h>
3159 # include <stdint.h>
3160 # ifdef __CYGWIN__
3161 # include <io.h>
3162 # define HAVE_SETENV
3163 # ifdef __STRICT_ANSI__
3164 char *realpath (const char *, char *);
3165 int putenv (char *);
3166 int setenv (const char *, const char *, int);
3167 # endif
3168 # endif
3169 #endif
3170 #include <malloc.h>
3171 #include <stdarg.h>
3172 #include <assert.h>
3173 #include <string.h>
3174 #include <ctype.h>
3175 #include <errno.h>
3176 #include <fcntl.h>
3177 #include <sys/stat.h>
3178
3179 #if defined(PATH_MAX)
3180 # define LT_PATHMAX PATH_MAX
3181 #elif defined(MAXPATHLEN)
3182 # define LT_PATHMAX MAXPATHLEN
3183 #else
3184 # define LT_PATHMAX 1024
3185 #endif
3186
3187 #ifndef S_IXOTH
3188 # define S_IXOTH 0
3189 #endif
3190 #ifndef S_IXGRP
3191 # define S_IXGRP 0
3192 #endif
3193
3194 #ifdef _MSC_VER
3195 # define S_IXUSR _S_IEXEC
3196 # define stat _stat
3197 # ifndef _INTPTR_T_DEFINED
3198 # define intptr_t int
3199 # endif
3200 #endif
3201
3202 #ifndef DIR_SEPARATOR
3203 # define DIR_SEPARATOR '/'
3204 # define PATH_SEPARATOR ':'
3205 #endif
3206
3207 #if defined (_WIN32) || defined (__MSDOS__) || defined (__DJGPP__) || \
3208 defined (__OS2__)
3209 # define HAVE_DOS_BASED_FILE_SYSTEM
3210 # define FOPEN_WB "wb"
3211 # ifndef DIR_SEPARATOR_2
3212 # define DIR_SEPARATOR_2 '\\'
3213 # endif
3214 # ifndef PATH_SEPARATOR_2
3215 # define PATH_SEPARATOR_2 ';'
3216 # endif
3217 #endif
3218
3219 #ifndef DIR_SEPARATOR_2
3220 # define IS_DIR_SEPARATOR(ch) ((ch) == DIR_SEPARATOR)
3221 #else /* DIR_SEPARATOR_2 */
3222 # define IS_DIR_SEPARATOR(ch) \
3223 (((ch) == DIR_SEPARATOR) || ((ch) == DIR_SEPARATOR_2))
3224 #endif /* DIR_SEPARATOR_2 */
3225
3226 #ifndef PATH_SEPARATOR_2
3227 # define IS_PATH_SEPARATOR(ch) ((ch) == PATH_SEPARATOR)
3228 #else /* PATH_SEPARATOR_2 */
3229 # define IS_PATH_SEPARATOR(ch) ((ch) == PATH_SEPARATOR_2)
3230 #endif /* PATH_SEPARATOR_2 */
3231
3232 #ifdef __CYGWIN__
3233 # define FOPEN_WB "wb"
3234 #endif
3235
3236 #ifndef FOPEN_WB
3237 # define FOPEN_WB "w"
3238 #endif
3239 #ifndef _O_BINARY
3240 # define _O_BINARY 0
3241 #endif
3242
3243 #define XMALLOC(type, num) ((type *) xmalloc ((num) * sizeof(type)))
3244 #define XFREE(stale) do { \
3245 if (stale) { free ((void *) stale); stale = 0; } \
3246 } while (0)
3247
3248 #undef LTWRAPPER_DEBUGPRINTF
3249 #if defined DEBUGWRAPPER
3250 # define LTWRAPPER_DEBUGPRINTF(args) ltwrapper_debugprintf args
3251 static void
3252 ltwrapper_debugprintf (const char *fmt, ...)
3253 {
3254 va_list args;
3255 va_start (args, fmt);
3256 (void) vfprintf (stderr, fmt, args);
3257 va_end (args);
3258 }
3259 #else
3260 # define LTWRAPPER_DEBUGPRINTF(args)
3261 #endif
3262
3263 const char *program_name = NULL;
3264
3265 void *xmalloc (size_t num);
3266 char *xstrdup (const char *string);
3267 const char *base_name (const char *name);
3268 char *find_executable (const char *wrapper);
3269 char *chase_symlinks (const char *pathspec);
3270 int make_executable (const char *path);
3271 int check_executable (const char *path);
3272 char *strendzap (char *str, const char *pat);
3273 void lt_fatal (const char *message, ...);
3274 void lt_setenv (const char *name, const char *value);
3275 char *lt_extend_str (const char *orig_value, const char *add, int to_end);
3276 void lt_opt_process_env_set (const char *arg);
3277 void lt_opt_process_env_prepend (const char *arg);
3278 void lt_opt_process_env_append (const char *arg);
3279 int lt_split_name_value (const char *arg, char** name, char** value);
3280 void lt_update_exe_path (const char *name, const char *value);
3281 void lt_update_lib_path (const char *name, const char *value);
3282
3283 static const char *script_text_part1 =
3284 EOF
3285
3286 func_emit_wrapper_part1 yes |
3287 $SED -e 's/\([\\"]\)/\\\1/g' \
3288 -e 's/^/ "/' -e 's/$/\\n"/'
3289 echo ";"
3290 cat <<EOF
3291
3292 static const char *script_text_part2 =
3293 EOF
3294 func_emit_wrapper_part2 yes |
3295 $SED -e 's/\([\\"]\)/\\\1/g' \
3296 -e 's/^/ "/' -e 's/$/\\n"/'
3297 echo ";"
3298
3299 cat <<EOF
3300 const char * MAGIC_EXE = "$magic_exe";
3301 const char * LIB_PATH_VARNAME = "$shlibpath_var";
3302 EOF
3303
3304 if test "$shlibpath_overrides_runpath" = yes && test -n "$shlibpath_var" && test -n "$temp_rpath"; then
3305 func_to_host_pathlist "$temp_rpath"
3306 cat <<EOF
3307 const char * LIB_PATH_VALUE = "$func_to_host_pathlist_result";
3308 EOF
3309 else
3310 cat <<"EOF"
3311 const char * LIB_PATH_VALUE = "";
3312 EOF
3313 fi
3314
3315 if test -n "$dllsearchpath"; then
3316 func_to_host_pathlist "$dllsearchpath:"
3317 cat <<EOF
3318 const char * EXE_PATH_VARNAME = "PATH";
3319 const char * EXE_PATH_VALUE = "$func_to_host_pathlist_result";
3320 EOF
3321 else
3322 cat <<"EOF"
3323 const char * EXE_PATH_VARNAME = "";
3324 const char * EXE_PATH_VALUE = "";
3325 EOF
3326 fi
3327
3328 if test "$fast_install" = yes; then
3329 cat <<EOF
3330 const char * TARGET_PROGRAM_NAME = "lt-$outputname"; /* hopefully, no .exe */
3331 EOF
3332 else
3333 cat <<EOF
3334 const char * TARGET_PROGRAM_NAME = "$outputname"; /* hopefully, no .exe */
3335 EOF
3336 fi
3337
3338
3339 cat <<"EOF"
3340
3341 #define LTWRAPPER_OPTION_PREFIX "--lt-"
3342 #define LTWRAPPER_OPTION_PREFIX_LENGTH 5
3343
3344 static const size_t opt_prefix_len = LTWRAPPER_OPTION_PREFIX_LENGTH;
3345 static const char *ltwrapper_option_prefix = LTWRAPPER_OPTION_PREFIX;
3346
3347 static const char *dumpscript_opt = LTWRAPPER_OPTION_PREFIX "dump-script";
3348
3349 static const size_t env_set_opt_len = LTWRAPPER_OPTION_PREFIX_LENGTH + 7;
3350 static const char *env_set_opt = LTWRAPPER_OPTION_PREFIX "env-set";
3351 /* argument is putenv-style "foo=bar", value of foo is set to bar */
3352
3353 static const size_t env_prepend_opt_len = LTWRAPPER_OPTION_PREFIX_LENGTH + 11;
3354 static const char *env_prepend_opt = LTWRAPPER_OPTION_PREFIX "env-prepend";
3355 /* argument is putenv-style "foo=bar", new value of foo is bar${foo} */
3356
3357 static const size_t env_append_opt_len = LTWRAPPER_OPTION_PREFIX_LENGTH + 10;
3358 static const char *env_append_opt = LTWRAPPER_OPTION_PREFIX "env-append";
3359 /* argument is putenv-style "foo=bar", new value of foo is ${foo}bar */
3360
3361 int
3362 main (int argc, char *argv[])
3363 {
3364 char **newargz;
3365 int newargc;
3366 char *tmp_pathspec;
3367 char *actual_cwrapper_path;
3368 char *actual_cwrapper_name;
3369 char *target_name;
3370 char *lt_argv_zero;
3371 intptr_t rval = 127;
3372
3373 int i;
3374
3375 program_name = (char *) xstrdup (base_name (argv[0]));
3376 LTWRAPPER_DEBUGPRINTF (("(main) argv[0] : %s\n", argv[0]));
3377 LTWRAPPER_DEBUGPRINTF (("(main) program_name : %s\n", program_name));
3378
3379 /* very simple arg parsing; don't want to rely on getopt */
3380 for (i = 1; i < argc; i++)
3381 {
3382 if (strcmp (argv[i], dumpscript_opt) == 0)
3383 {
3384 EOF
3385 case "$host" in
3386 *mingw* | *cygwin* )
3387 # make stdout use "unix" line endings
3388 echo " setmode(1,_O_BINARY);"
3389 ;;
3390 esac
3391
3392 cat <<"EOF"
3393 printf ("%s", script_text_part1);
3394 printf ("%s", script_text_part2);
3395 return 0;
3396 }
3397 }
3398
3399 newargz = XMALLOC (char *, argc + 1);
3400 tmp_pathspec = find_executable (argv[0]);
3401 if (tmp_pathspec == NULL)
3402 lt_fatal ("Couldn't find %s", argv[0]);
3403 LTWRAPPER_DEBUGPRINTF (("(main) found exe (before symlink chase) at : %s\n",
3404 tmp_pathspec));
3405
3406 actual_cwrapper_path = chase_symlinks (tmp_pathspec);
3407 LTWRAPPER_DEBUGPRINTF (("(main) found exe (after symlink chase) at : %s\n",
3408 actual_cwrapper_path));
3409 XFREE (tmp_pathspec);
3410
3411 actual_cwrapper_name = xstrdup( base_name (actual_cwrapper_path));
3412 strendzap (actual_cwrapper_path, actual_cwrapper_name);
3413
3414 /* wrapper name transforms */
3415 strendzap (actual_cwrapper_name, ".exe");
3416 tmp_pathspec = lt_extend_str (actual_cwrapper_name, ".exe", 1);
3417 XFREE (actual_cwrapper_name);
3418 actual_cwrapper_name = tmp_pathspec;
3419 tmp_pathspec = 0;
3420
3421 /* target_name transforms -- use actual target program name; might have lt- prefix */
3422 target_name = xstrdup (base_name (TARGET_PROGRAM_NAME));
3423 strendzap (target_name, ".exe");
3424 tmp_pathspec = lt_extend_str (target_name, ".exe", 1);
3425 XFREE (target_name);
3426 target_name = tmp_pathspec;
3427 tmp_pathspec = 0;
3428
3429 LTWRAPPER_DEBUGPRINTF (("(main) libtool target name: %s\n",
3430 target_name));
3431 EOF
3432
3433 cat <<EOF
3434 newargz[0] =
3435 XMALLOC (char, (strlen (actual_cwrapper_path) +
3436 strlen ("$objdir") + 1 + strlen (actual_cwrapper_name) + 1));
3437 strcpy (newargz[0], actual_cwrapper_path);
3438 strcat (newargz[0], "$objdir");
3439 strcat (newargz[0], "/");
3440 EOF
3441
3442 cat <<"EOF"
3443 /* stop here, and copy so we don't have to do this twice */
3444 tmp_pathspec = xstrdup (newargz[0]);
3445
3446 /* do NOT want the lt- prefix here, so use actual_cwrapper_name */
3447 strcat (newargz[0], actual_cwrapper_name);
3448
3449 /* DO want the lt- prefix here if it exists, so use target_name */
3450 lt_argv_zero = lt_extend_str (tmp_pathspec, target_name, 1);
3451 XFREE (tmp_pathspec);
3452 tmp_pathspec = NULL;
3453 EOF
3454
3455 case $host_os in
3456 mingw*)
3457 cat <<"EOF"
3458 {
3459 char* p;
3460 while ((p = strchr (newargz[0], '\\')) != NULL)
3461 {
3462 *p = '/';
3463 }
3464 while ((p = strchr (lt_argv_zero, '\\')) != NULL)
3465 {
3466 *p = '/';
3467 }
3468 }
3469 EOF
3470 ;;
7173471 esac
718 lastarg="$lastarg $arg"
719 done
720 IFS="$save_ifs"
721 lastarg=`$echo "X$lastarg" | $Xsed -e "s/^ //"`
722
723 # Add the arguments to base_compile.
724 base_compile="$base_compile $lastarg"
725 continue
726 ;;
727
728 * )
729 # Accept the current argument as the source file.
730 # The previous "srcfile" becomes the current argument.
731 #
732 lastarg="$srcfile"
733 srcfile="$arg"
734 ;;
735 esac # case $arg
736 ;;
737 esac # case $arg_mode
738
739 # Aesthetically quote the previous argument.
740 lastarg=`$echo "X$lastarg" | $Xsed -e "$sed_quote_subst"`
741
742 case $lastarg in
743 # Double-quote args containing other shell metacharacters.
744 # Many Bourne shells cannot handle close brackets correctly
745 # in scan sets, and some SunOS ksh mistreat backslash-escaping
746 # in scan sets (worked around with variable expansion),
747 # and furthermore cannot handle '|' '&' '(' ')' in scan sets
748 # at all, so we specify them separately.
749 *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
750 lastarg="\"$lastarg\""
751 ;;
752 esac
753
754 base_compile="$base_compile $lastarg"
755 done # for arg
756
757 case $arg_mode in
758 arg)
759 $echo "$modename: you must specify an argument for -Xcompile"
760 exit $EXIT_FAILURE
761 ;;
762 target)
763 $echo "$modename: you must specify a target with \`-o'" 1>&2
764 exit $EXIT_FAILURE
765 ;;
766 *)
767 # Get the name of the library object.
768 [ -z "$libobj" ] && libobj=`$echo "X$srcfile" | $Xsed -e 's%^.*/%%'`
769 ;;
770 esac
771
772 # Recognize several different file suffixes.
773 # If the user specifies -o file.o, it is replaced with file.lo
774 xform='[cCFSifmso]'
775 case $libobj in
776 *.ada) xform=ada ;;
777 *.adb) xform=adb ;;
778 *.ads) xform=ads ;;
779 *.asm) xform=asm ;;
780 *.c++) xform=c++ ;;
781 *.cc) xform=cc ;;
782 *.ii) xform=ii ;;
783 *.class) xform=class ;;
784 *.cpp) xform=cpp ;;
785 *.cxx) xform=cxx ;;
786 *.[fF][09]?) xform=[fF][09]. ;;
787 *.for) xform=for ;;
788 *.java) xform=java ;;
789 *.obj) xform=obj ;;
790 esac
791
792 libobj=`$echo "X$libobj" | $Xsed -e "s/\.$xform$/.lo/"`
793
794 case $libobj in
795 *.lo) obj=`$echo "X$libobj" | $Xsed -e "$lo2o"` ;;
796 *)
797 $echo "$modename: cannot determine name of library object from \`$libobj'" 1>&2
798 exit $EXIT_FAILURE
799 ;;
800 esac
801
802 func_infer_tag $base_compile
803
804 for arg in $later; do
805 case $arg in
806 -static)
807 build_old_libs=yes
808 continue
809 ;;
810
811 -prefer-pic)
812 pic_mode=yes
813 continue
814 ;;
815
816 -prefer-non-pic)
817 pic_mode=no
818 continue
819 ;;
820 esac
821 done
822
823 qlibobj=`$echo "X$libobj" | $Xsed -e "$sed_quote_subst"`
824 case $qlibobj in
825 *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
826 qlibobj="\"$qlibobj\"" ;;
827 esac
828 test "X$libobj" != "X$qlibobj" \
829 && $echo "X$libobj" | grep '[]~#^*{};<>?"'"'"' &()|`$[]' \
830 && $echo "$modename: libobj name \`$libobj' may not contain shell special characters."
831 objname=`$echo "X$obj" | $Xsed -e 's%^.*/%%'`
832 xdir=`$echo "X$obj" | $Xsed -e 's%/[^/]*$%%'`
833 if test "X$xdir" = "X$obj"; then
834 xdir=
835 else
836 xdir=$xdir/
837 fi
838 lobj=${xdir}$objdir/$objname
839
840 if test -z "$base_compile"; then
841 $echo "$modename: you must specify a compilation command" 1>&2
842 $echo "$help" 1>&2
843 exit $EXIT_FAILURE
844 fi
845
846 # Delete any leftover library objects.
847 if test "$build_old_libs" = yes; then
848 removelist="$obj $lobj $libobj ${libobj}T"
849 else
850 removelist="$lobj $libobj ${libobj}T"
851 fi
852
853 $run $rm $removelist
854 trap "$run $rm $removelist; exit $EXIT_FAILURE" 1 2 15
855
856 # On Cygwin there's no "real" PIC flag so we must build both object types
857 case $host_os in
858 cygwin* | mingw* | pw32* | os2*)
859 pic_mode=default
860 ;;
861 esac
862 if test "$pic_mode" = no && test "$deplibs_check_method" != pass_all; then
863 # non-PIC code in shared libraries is not supported
864 pic_mode=default
865 fi
866
867 # Calculate the filename of the output object if compiler does
868 # not support -o with -c
869 if test "$compiler_c_o" = no; then
870 output_obj=`$echo "X$srcfile" | $Xsed -e 's%^.*/%%' -e 's%\.[^.]*$%%'`.${objext}
871 lockfile="$output_obj.lock"
872 removelist="$removelist $output_obj $lockfile"
873 trap "$run $rm $removelist; exit $EXIT_FAILURE" 1 2 15
874 else
875 output_obj=
876 need_locks=no
877 lockfile=
878 fi
879
880 # Lock this critical section if it is needed
881 # We use this script file to make the link, it avoids creating a new file
882 if test "$need_locks" = yes; then
883 until $run ln "$progpath" "$lockfile" 2>/dev/null; do
884 $show "Waiting for $lockfile to be removed"
885 sleep 2
886 done
887 elif test "$need_locks" = warn; then
888 if test -f "$lockfile"; then
889 $echo "\
890 *** ERROR, $lockfile exists and contains:
891 `cat $lockfile 2>/dev/null`
892
893 This indicates that another process is trying to use the same
894 temporary object file, and libtool could not work around it because
895 your compiler does not support \`-c' and \`-o' together. If you
896 repeat this compilation, it may succeed, by chance, but you had better
897 avoid parallel builds (make -j) in this platform, or get a better
898 compiler."
899
900 $run $rm $removelist
901 exit $EXIT_FAILURE
902 fi
903 $echo "$srcfile" > "$lockfile"
904 fi
905
906 if test -n "$fix_srcfile_path"; then
907 eval srcfile=\"$fix_srcfile_path\"
908 fi
909 qsrcfile=`$echo "X$srcfile" | $Xsed -e "$sed_quote_subst"`
910 case $qsrcfile in
911 *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
912 qsrcfile="\"$qsrcfile\"" ;;
913 esac
914
915 $run $rm "$libobj" "${libobj}T"
916
917 # Create a libtool object file (analogous to a ".la" file),
918 # but don't create it if we're doing a dry run.
919 test -z "$run" && cat > ${libobj}T <<EOF
920 # $libobj - a libtool object file
921 # Generated by $PROGRAM - GNU $PACKAGE $VERSION$TIMESTAMP
922 #
923 # Please DO NOT delete this file!
924 # It is necessary for linking the library.
925
926 # Name of the PIC object.
3472
3473 cat <<"EOF"
3474 XFREE (target_name);
3475 XFREE (actual_cwrapper_path);
3476 XFREE (actual_cwrapper_name);
3477
3478 lt_setenv ("BIN_SH", "xpg4"); /* for Tru64 */
3479 lt_setenv ("DUALCASE", "1"); /* for MSK sh */
3480 lt_update_lib_path (LIB_PATH_VARNAME, LIB_PATH_VALUE);
3481 lt_update_exe_path (EXE_PATH_VARNAME, EXE_PATH_VALUE);
3482
3483 newargc=0;
3484 for (i = 1; i < argc; i++)
3485 {
3486 if (strncmp (argv[i], env_set_opt, env_set_opt_len) == 0)
3487 {
3488 if (argv[i][env_set_opt_len] == '=')
3489 {
3490 const char *p = argv[i] + env_set_opt_len + 1;
3491 lt_opt_process_env_set (p);
3492 }
3493 else if (argv[i][env_set_opt_len] == '\0' && i + 1 < argc)
3494 {
3495 lt_opt_process_env_set (argv[++i]); /* don't copy */
3496 }
3497 else
3498 lt_fatal ("%s missing required argument", env_set_opt);
3499 continue;
3500 }
3501 if (strncmp (argv[i], env_prepend_opt, env_prepend_opt_len) == 0)
3502 {
3503 if (argv[i][env_prepend_opt_len] == '=')
3504 {
3505 const char *p = argv[i] + env_prepend_opt_len + 1;
3506 lt_opt_process_env_prepend (p);
3507 }
3508 else if (argv[i][env_prepend_opt_len] == '\0' && i + 1 < argc)
3509 {
3510 lt_opt_process_env_prepend (argv[++i]); /* don't copy */
3511 }
3512 else
3513 lt_fatal ("%s missing required argument", env_prepend_opt);
3514 continue;
3515 }
3516 if (strncmp (argv[i], env_append_opt, env_append_opt_len) == 0)
3517 {
3518 if (argv[i][env_append_opt_len] == '=')
3519 {
3520 const char *p = argv[i] + env_append_opt_len + 1;
3521 lt_opt_process_env_append (p);
3522 }
3523 else if (argv[i][env_append_opt_len] == '\0' && i + 1 < argc)
3524 {
3525 lt_opt_process_env_append (argv[++i]); /* don't copy */
3526 }
3527 else
3528 lt_fatal ("%s missing required argument", env_append_opt);
3529 continue;
3530 }
3531 if (strncmp (argv[i], ltwrapper_option_prefix, opt_prefix_len) == 0)
3532 {
3533 /* however, if there is an option in the LTWRAPPER_OPTION_PREFIX
3534 namespace, but it is not one of the ones we know about and
3535 have already dealt with, above (inluding dump-script), then
3536 report an error. Otherwise, targets might begin to believe
3537 they are allowed to use options in the LTWRAPPER_OPTION_PREFIX
3538 namespace. The first time any user complains about this, we'll
3539 need to make LTWRAPPER_OPTION_PREFIX a configure-time option
3540 or a configure.ac-settable value.
3541 */
3542 lt_fatal ("Unrecognized option in %s namespace: '%s'",
3543 ltwrapper_option_prefix, argv[i]);
3544 }
3545 /* otherwise ... */
3546 newargz[++newargc] = xstrdup (argv[i]);
3547 }
3548 newargz[++newargc] = NULL;
3549
3550 LTWRAPPER_DEBUGPRINTF (("(main) lt_argv_zero : %s\n", (lt_argv_zero ? lt_argv_zero : "<NULL>")));
3551 for (i = 0; i < newargc; i++)
3552 {
3553 LTWRAPPER_DEBUGPRINTF (("(main) newargz[%d] : %s\n", i, (newargz[i] ? newargz[i] : "<NULL>")));
3554 }
3555
9273556 EOF
9283557
929 # Only build a PIC object if we are building libtool libraries.
930 if test "$build_libtool_libs" = yes; then
931 # Without this assignment, base_compile gets emptied.
932 fbsd_hideous_sh_bug=$base_compile
933
934 if test "$pic_mode" != no; then
935 command="$base_compile $qsrcfile $pic_flag"
3558 case $host_os in
3559 mingw*)
3560 cat <<"EOF"
3561 /* execv doesn't actually work on mingw as expected on unix */
3562 rval = _spawnv (_P_WAIT, lt_argv_zero, (const char * const *) newargz);
3563 if (rval == -1)
3564 {
3565 /* failed to start process */
3566 LTWRAPPER_DEBUGPRINTF (("(main) failed to launch target \"%s\": errno = %d\n", lt_argv_zero, errno));
3567 return 127;
3568 }
3569 return rval;
3570 EOF
3571 ;;
3572 *)
3573 cat <<"EOF"
3574 execv (lt_argv_zero, newargz);
3575 return rval; /* =127, but avoids unused variable warning */
3576 EOF
3577 ;;
3578 esac
3579
3580 cat <<"EOF"
3581 }
3582
3583 void *
3584 xmalloc (size_t num)
3585 {
3586 void *p = (void *) malloc (num);
3587 if (!p)
3588 lt_fatal ("Memory exhausted");
3589
3590 return p;
3591 }
3592
3593 char *
3594 xstrdup (const char *string)
3595 {
3596 return string ? strcpy ((char *) xmalloc (strlen (string) + 1),
3597 string) : NULL;
3598 }
3599
3600 const char *
3601 base_name (const char *name)
3602 {
3603 const char *base;
3604
3605 #if defined (HAVE_DOS_BASED_FILE_SYSTEM)
3606 /* Skip over the disk name in MSDOS pathnames. */
3607 if (isalpha ((unsigned char) name[0]) && name[1] == ':')
3608 name += 2;
3609 #endif
3610
3611 for (base = name; *name; name++)
3612 if (IS_DIR_SEPARATOR (*name))
3613 base = name + 1;
3614 return base;
3615 }
3616
3617 int
3618 check_executable (const char *path)
3619 {
3620 struct stat st;
3621
3622 LTWRAPPER_DEBUGPRINTF (("(check_executable) : %s\n",
3623 path ? (*path ? path : "EMPTY!") : "NULL!"));
3624 if ((!path) || (!*path))
3625 return 0;
3626
3627 if ((stat (path, &st) >= 0)
3628 && (st.st_mode & (S_IXUSR | S_IXGRP | S_IXOTH)))
3629 return 1;
3630 else
3631 return 0;
3632 }
3633
3634 int
3635 make_executable (const char *path)
3636 {
3637 int rval = 0;
3638 struct stat st;
3639
3640 LTWRAPPER_DEBUGPRINTF (("(make_executable) : %s\n",
3641 path ? (*path ? path : "EMPTY!") : "NULL!"));
3642 if ((!path) || (!*path))
3643 return 0;
3644
3645 if (stat (path, &st) >= 0)
3646 {
3647 rval = chmod (path, st.st_mode | S_IXOTH | S_IXGRP | S_IXUSR);
3648 }
3649 return rval;
3650 }
3651
3652 /* Searches for the full path of the wrapper. Returns
3653 newly allocated full path name if found, NULL otherwise
3654 Does not chase symlinks, even on platforms that support them.
3655 */
3656 char *
3657 find_executable (const char *wrapper)
3658 {
3659 int has_slash = 0;
3660 const char *p;
3661 const char *p_next;
3662 /* static buffer for getcwd */
3663 char tmp[LT_PATHMAX + 1];
3664 int tmp_len;
3665 char *concat_name;
3666
3667 LTWRAPPER_DEBUGPRINTF (("(find_executable) : %s\n",
3668 wrapper ? (*wrapper ? wrapper : "EMPTY!") : "NULL!"));
3669
3670 if ((wrapper == NULL) || (*wrapper == '\0'))
3671 return NULL;
3672
3673 /* Absolute path? */
3674 #if defined (HAVE_DOS_BASED_FILE_SYSTEM)
3675 if (isalpha ((unsigned char) wrapper[0]) && wrapper[1] == ':')
3676 {
3677 concat_name = xstrdup (wrapper);
3678 if (check_executable (concat_name))
3679 return concat_name;
3680 XFREE (concat_name);
3681 }
3682 else
3683 {
3684 #endif
3685 if (IS_DIR_SEPARATOR (wrapper[0]))
3686 {
3687 concat_name = xstrdup (wrapper);
3688 if (check_executable (concat_name))
3689 return concat_name;
3690 XFREE (concat_name);
3691 }
3692 #if defined (HAVE_DOS_BASED_FILE_SYSTEM)
3693 }
3694 #endif
3695
3696 for (p = wrapper; *p; p++)
3697 if (*p == '/')
3698 {
3699 has_slash = 1;
3700 break;
3701 }
3702 if (!has_slash)
3703 {
3704 /* no slashes; search PATH */
3705 const char *path = getenv ("PATH");
3706 if (path != NULL)
3707 {
3708 for (p = path; *p; p = p_next)
3709 {
3710 const char *q;
3711 size_t p_len;
3712 for (q = p; *q; q++)
3713 if (IS_PATH_SEPARATOR (*q))
3714 break;
3715 p_len = q - p;
3716 p_next = (*q == '\0' ? q : q + 1);
3717 if (p_len == 0)
3718 {
3719 /* empty path: current directory */
3720 if (getcwd (tmp, LT_PATHMAX) == NULL)
3721 lt_fatal ("getcwd failed");
3722 tmp_len = strlen (tmp);
3723 concat_name =
3724 XMALLOC (char, tmp_len + 1 + strlen (wrapper) + 1);
3725 memcpy (concat_name, tmp, tmp_len);
3726 concat_name[tmp_len] = '/';
3727 strcpy (concat_name + tmp_len + 1, wrapper);
3728 }
3729 else
3730 {
3731 concat_name =
3732 XMALLOC (char, p_len + 1 + strlen (wrapper) + 1);
3733 memcpy (concat_name, p, p_len);
3734 concat_name[p_len] = '/';
3735 strcpy (concat_name + p_len + 1, wrapper);
3736 }
3737 if (check_executable (concat_name))
3738 return concat_name;
3739 XFREE (concat_name);
3740 }
3741 }
3742 /* not found in PATH; assume curdir */
3743 }
3744 /* Relative path | not found in path: prepend cwd */
3745 if (getcwd (tmp, LT_PATHMAX) == NULL)
3746 lt_fatal ("getcwd failed");
3747 tmp_len = strlen (tmp);
3748 concat_name = XMALLOC (char, tmp_len + 1 + strlen (wrapper) + 1);
3749 memcpy (concat_name, tmp, tmp_len);
3750 concat_name[tmp_len] = '/';
3751 strcpy (concat_name + tmp_len + 1, wrapper);
3752
3753 if (check_executable (concat_name))
3754 return concat_name;
3755 XFREE (concat_name);
3756 return NULL;
3757 }
3758
3759 char *
3760 chase_symlinks (const char *pathspec)
3761 {
3762 #ifndef S_ISLNK
3763 return xstrdup (pathspec);
3764 #else
3765 char buf[LT_PATHMAX];
3766 struct stat s;
3767 char *tmp_pathspec = xstrdup (pathspec);
3768 char *p;
3769 int has_symlinks = 0;
3770 while (strlen (tmp_pathspec) && !has_symlinks)
3771 {
3772 LTWRAPPER_DEBUGPRINTF (("checking path component for symlinks: %s\n",
3773 tmp_pathspec));
3774 if (lstat (tmp_pathspec, &s) == 0)
3775 {
3776 if (S_ISLNK (s.st_mode) != 0)
3777 {
3778 has_symlinks = 1;
3779 break;
3780 }
3781
3782 /* search backwards for last DIR_SEPARATOR */
3783 p = tmp_pathspec + strlen (tmp_pathspec) - 1;
3784 while ((p > tmp_pathspec) && (!IS_DIR_SEPARATOR (*p)))
3785 p--;
3786 if ((p == tmp_pathspec) && (!IS_DIR_SEPARATOR (*p)))
3787 {
3788 /* no more DIR_SEPARATORS left */
3789 break;
3790 }
3791 *p = '\0';
3792 }
9363793 else
937 # Don't build PIC code
938 command="$base_compile $qsrcfile"
939 fi
940
941 if test ! -d "${xdir}$objdir"; then
942 $show "$mkdir ${xdir}$objdir"
943 $run $mkdir ${xdir}$objdir
944 exit_status=$?
945 if test "$exit_status" -ne 0 && test ! -d "${xdir}$objdir"; then
946 exit $exit_status
947 fi
948 fi
949
950 if test -z "$output_obj"; then
951 # Place PIC objects in $objdir
952 command="$command -o $lobj"
953 fi
954
955 $run $rm "$lobj" "$output_obj"
956
957 $show "$command"
958 if $run eval "$command"; then :
3794 {
3795 char *errstr = strerror (errno);
3796 lt_fatal ("Error accessing file %s (%s)", tmp_pathspec, errstr);
3797 }
3798 }
3799 XFREE (tmp_pathspec);
3800
3801 if (!has_symlinks)
3802 {
3803 return xstrdup (pathspec);
3804 }
3805
3806 tmp_pathspec = realpath (pathspec, buf);
3807 if (tmp_pathspec == 0)
3808 {
3809 lt_fatal ("Could not follow symlinks for %s", pathspec);
3810 }
3811 return xstrdup (tmp_pathspec);
3812 #endif
3813 }
3814
3815 char *
3816 strendzap (char *str, const char *pat)
3817 {
3818 size_t len, patlen;
3819
3820 assert (str != NULL);
3821 assert (pat != NULL);
3822
3823 len = strlen (str);
3824 patlen = strlen (pat);
3825
3826 if (patlen <= len)
3827 {
3828 str += len - patlen;
3829 if (strcmp (str, pat) == 0)
3830 *str = '\0';
3831 }
3832 return str;
3833 }
3834
3835 static void
3836 lt_error_core (int exit_status, const char *mode,
3837 const char *message, va_list ap)
3838 {
3839 fprintf (stderr, "%s: %s: ", program_name, mode);
3840 vfprintf (stderr, message, ap);
3841 fprintf (stderr, ".\n");
3842
3843 if (exit_status >= 0)
3844 exit (exit_status);
3845 }
3846
3847 void
3848 lt_fatal (const char *message, ...)
3849 {
3850 va_list ap;
3851 va_start (ap, message);
3852 lt_error_core (EXIT_FAILURE, "FATAL", message, ap);
3853 va_end (ap);
3854 }
3855
3856 void
3857 lt_setenv (const char *name, const char *value)
3858 {
3859 LTWRAPPER_DEBUGPRINTF (("(lt_setenv) setting '%s' to '%s'\n",
3860 (name ? name : "<NULL>"),
3861 (value ? value : "<NULL>")));
3862 {
3863 #ifdef HAVE_SETENV
3864 /* always make a copy, for consistency with !HAVE_SETENV */
3865 char *str = xstrdup (value);
3866 setenv (name, str, 1);
3867 #else
3868 int len = strlen (name) + 1 + strlen (value) + 1;
3869 char *str = XMALLOC (char, len);
3870 sprintf (str, "%s=%s", name, value);
3871 if (putenv (str) != EXIT_SUCCESS)
3872 {
3873 XFREE (str);
3874 }
3875 #endif
3876 }
3877 }
3878
3879 char *
3880 lt_extend_str (const char *orig_value, const char *add, int to_end)
3881 {
3882 char *new_value;
3883 if (orig_value && *orig_value)
3884 {
3885 int orig_value_len = strlen (orig_value);
3886 int add_len = strlen (add);
3887 new_value = XMALLOC (char, add_len + orig_value_len + 1);
3888 if (to_end)
3889 {
3890 strcpy (new_value, orig_value);
3891 strcpy (new_value + orig_value_len, add);
3892 }
9593893 else
960 test -n "$output_obj" && $run $rm $removelist
961 exit $EXIT_FAILURE
962 fi
963
964 if test "$need_locks" = warn &&
965 test "X`cat $lockfile 2>/dev/null`" != "X$srcfile"; then
966 $echo "\
967 *** ERROR, $lockfile contains:
968 `cat $lockfile 2>/dev/null`
969
970 but it should contain:
971 $srcfile
972
973 This indicates that another process is trying to use the same
974 temporary object file, and libtool could not work around it because
975 your compiler does not support \`-c' and \`-o' together. If you
976 repeat this compilation, it may succeed, by chance, but you had better
977 avoid parallel builds (make -j) in this platform, or get a better
978 compiler."
979
980 $run $rm $removelist
981 exit $EXIT_FAILURE
982 fi
983
984 # Just move the object if needed, then go on to compile the next one
985 if test -n "$output_obj" && test "X$output_obj" != "X$lobj"; then
986 $show "$mv $output_obj $lobj"
987 if $run $mv $output_obj $lobj; then :
988 else
989 error=$?
990 $run $rm $removelist
991 exit $error
992 fi
993 fi
994
995 # Append the name of the PIC object to the libtool object file.
996 test -z "$run" && cat >> ${libobj}T <<EOF
997 pic_object='$objdir/$objname'
3894 {
3895 strcpy (new_value, add);
3896 strcpy (new_value + add_len, orig_value);
3897 }
3898 }
3899 else
3900 {
3901 new_value = xstrdup (add);
3902 }
3903 return new_value;
3904 }
3905
3906 int
3907 lt_split_name_value (const char *arg, char** name, char** value)
3908 {
3909 const char *p;
3910 int len;
3911 if (!arg || !*arg)
3912 return 1;
3913
3914 p = strchr (arg, (int)'=');
3915
3916 if (!p)
3917 return 1;
3918
3919 *value = xstrdup (++p);
3920
3921 len = strlen (arg) - strlen (*value);
3922 *name = XMALLOC (char, len);
3923 strncpy (*name, arg, len-1);
3924 (*name)[len - 1] = '\0';
3925
3926 return 0;
3927 }
3928
3929 void
3930 lt_opt_process_env_set (const char *arg)
3931 {
3932 char *name = NULL;
3933 char *value = NULL;
3934
3935 if (lt_split_name_value (arg, &name, &value) != 0)
3936 {
3937 XFREE (name);
3938 XFREE (value);
3939 lt_fatal ("bad argument for %s: '%s'", env_set_opt, arg);
3940 }
3941
3942 lt_setenv (name, value);
3943 XFREE (name);
3944 XFREE (value);
3945 }
3946
3947 void
3948 lt_opt_process_env_prepend (const char *arg)
3949 {
3950 char *name = NULL;
3951 char *value = NULL;
3952 char *new_value = NULL;
3953
3954 if (lt_split_name_value (arg, &name, &value) != 0)
3955 {
3956 XFREE (name);
3957 XFREE (value);
3958 lt_fatal ("bad argument for %s: '%s'", env_prepend_opt, arg);
3959 }
3960
3961 new_value = lt_extend_str (getenv (name), value, 0);
3962 lt_setenv (name, new_value);
3963 XFREE (new_value);
3964 XFREE (name);
3965 XFREE (value);
3966 }
3967
3968 void
3969 lt_opt_process_env_append (const char *arg)
3970 {
3971 char *name = NULL;
3972 char *value = NULL;
3973 char *new_value = NULL;
3974
3975 if (lt_split_name_value (arg, &name, &value) != 0)
3976 {
3977 XFREE (name);
3978 XFREE (value);
3979 lt_fatal ("bad argument for %s: '%s'", env_append_opt, arg);
3980 }
3981
3982 new_value = lt_extend_str (getenv (name), value, 1);
3983 lt_setenv (name, new_value);
3984 XFREE (new_value);
3985 XFREE (name);
3986 XFREE (value);
3987 }
3988
3989 void
3990 lt_update_exe_path (const char *name, const char *value)
3991 {
3992 LTWRAPPER_DEBUGPRINTF (("(lt_update_exe_path) modifying '%s' by prepending '%s'\n",
3993 (name ? name : "<NULL>"),
3994 (value ? value : "<NULL>")));
3995
3996 if (name && *name && value && *value)
3997 {
3998 char *new_value = lt_extend_str (getenv (name), value, 0);
3999 /* some systems can't cope with a ':'-terminated path #' */
4000 int len = strlen (new_value);
4001 while (((len = strlen (new_value)) > 0) && IS_PATH_SEPARATOR (new_value[len-1]))
4002 {
4003 new_value[len-1] = '\0';
4004 }
4005 lt_setenv (name, new_value);
4006 XFREE (new_value);
4007 }
4008 }
4009
4010 void
4011 lt_update_lib_path (const char *name, const char *value)
4012 {
4013 LTWRAPPER_DEBUGPRINTF (("(lt_update_lib_path) modifying '%s' by prepending '%s'\n",
4014 (name ? name : "<NULL>"),
4015 (value ? value : "<NULL>")));
4016
4017 if (name && *name && value && *value)
4018 {
4019 char *new_value = lt_extend_str (getenv (name), value, 0);
4020 lt_setenv (name, new_value);
4021 XFREE (new_value);
4022 }
4023 }
4024
9984025
9994026 EOF
1000
1001 # Allow error messages only from the first compilation.
1002 if test "$suppress_opt" = yes; then
1003 suppress_output=' >/dev/null 2>&1'
1004 fi
1005 else
1006 # No PIC object so indicate it doesn't exist in the libtool
1007 # object file.
1008 test -z "$run" && cat >> ${libobj}T <<EOF
1009 pic_object=none
1010
1011 EOF
1012 fi
1013
1014 # Only build a position-dependent object if we build old libraries.
1015 if test "$build_old_libs" = yes; then
1016 if test "$pic_mode" != yes; then
1017 # Don't build PIC code
1018 command="$base_compile $qsrcfile"
1019 else
1020 command="$base_compile $qsrcfile $pic_flag"
1021 fi
1022 if test "$compiler_c_o" = yes; then
1023 command="$command -o $obj"
1024 fi
1025
1026 # Suppress compiler output if we already did a PIC compilation.
1027 command="$command$suppress_output"
1028 $run $rm "$obj" "$output_obj"
1029 $show "$command"
1030 if $run eval "$command"; then :
1031 else
1032 $run $rm $removelist
1033 exit $EXIT_FAILURE
1034 fi
1035
1036 if test "$need_locks" = warn &&
1037 test "X`cat $lockfile 2>/dev/null`" != "X$srcfile"; then
1038 $echo "\
1039 *** ERROR, $lockfile contains:
1040 `cat $lockfile 2>/dev/null`
1041
1042 but it should contain:
1043 $srcfile
1044
1045 This indicates that another process is trying to use the same
1046 temporary object file, and libtool could not work around it because
1047 your compiler does not support \`-c' and \`-o' together. If you
1048 repeat this compilation, it may succeed, by chance, but you had better
1049 avoid parallel builds (make -j) in this platform, or get a better
1050 compiler."
1051
1052 $run $rm $removelist
1053 exit $EXIT_FAILURE
1054 fi
1055
1056 # Just move the object if needed
1057 if test -n "$output_obj" && test "X$output_obj" != "X$obj"; then
1058 $show "$mv $output_obj $obj"
1059 if $run $mv $output_obj $obj; then :
1060 else
1061 error=$?
1062 $run $rm $removelist
1063 exit $error
1064 fi
1065 fi
1066
1067 # Append the name of the non-PIC object the libtool object file.
1068 # Only append if the libtool object file exists.
1069 test -z "$run" && cat >> ${libobj}T <<EOF
1070 # Name of the non-PIC object.
1071 non_pic_object='$objname'
1072
1073 EOF
1074 else
1075 # Append the name of the non-PIC object the libtool object file.
1076 # Only append if the libtool object file exists.
1077 test -z "$run" && cat >> ${libobj}T <<EOF
1078 # Name of the non-PIC object.
1079 non_pic_object=none
1080
1081 EOF
1082 fi
1083
1084 $run $mv "${libobj}T" "${libobj}"
1085
1086 # Unlock the critical section if it was locked
1087 if test "$need_locks" != no; then
1088 $run $rm "$lockfile"
1089 fi
1090
1091 exit $EXIT_SUCCESS
1092 ;;
1093
1094 # libtool link mode
1095 link | relink)
1096 modename="$modename: link"
4027 }
4028 # end: func_emit_cwrapperexe_src
4029
4030 # func_mode_link arg...
4031 func_mode_link ()
4032 {
4033 $opt_debug
10974034 case $host in
1098 *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2*)
4035 *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2* | *-cegcc*)
10994036 # It is impossible to link a dll without this setting, and
11004037 # we shouldn't force the makefile maintainer to figure out
11014038 # which system we are compiling for in order to pass an extra
11134050 allow_undefined=yes
11144051 ;;
11154052 esac
1116 libtool_args="$nonopt"
4053 libtool_args=$nonopt
11174054 base_compile="$nonopt $@"
1118 compile_command="$nonopt"
1119 finalize_command="$nonopt"
4055 compile_command=$nonopt
4056 finalize_command=$nonopt
11204057
11214058 compile_rpath=
11224059 finalize_rpath=
11314068 dllsearchpath=
11324069 lib_search_path=`pwd`
11334070 inst_prefix_dir=
4071 new_inherited_linker_flags=
11344072
11354073 avoid_version=no
11364074 dlfiles=
11464084 no_install=no
11474085 objs=
11484086 non_pic_objects=
1149 notinst_path= # paths that contain not-installed libtool libraries
11504087 precious_files_regex=
11514088 prefer_static_libs=no
11524089 preload=no
11604097 thread_safe=no
11614098 vinfo=
11624099 vinfo_number=no
1163
4100 weak_libs=
4101 single_module="${wl}-single_module"
11644102 func_infer_tag $base_compile
11654103
11664104 # We need to know -static, to get the right output filenames.
11674105 for arg
11684106 do
11694107 case $arg in
4108 -shared)
4109 test "$build_libtool_libs" != yes && \
4110 func_fatal_configuration "can not build a shared library"
4111 build_old_libs=no
4112 break
4113 ;;
11704114 -all-static | -static | -static-libtool-libs)
11714115 case $arg in
11724116 -all-static)
11734117 if test "$build_libtool_libs" = yes && test -z "$link_static_flag"; then
1174 $echo "$modename: warning: complete static linking is impossible in this configuration" 1>&2
4118 func_warning "complete static linking is impossible in this configuration"
11754119 fi
11764120 if test -n "$link_static_flag"; then
11774121 dlopen_self=$dlopen_self_static
12054149 while test "$#" -gt 0; do
12064150 arg="$1"
12074151 shift
1208 case $arg in
1209 *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
1210 qarg=\"`$echo "X$arg" | $Xsed -e "$sed_quote_subst"`\" ### testsuite: skip nested quoting test
1211 ;;
1212 *) qarg=$arg ;;
1213 esac
1214 libtool_args="$libtool_args $qarg"
4152 func_quote_for_eval "$arg"
4153 qarg=$func_quote_for_eval_unquoted_result
4154 func_append libtool_args " $func_quote_for_eval_result"
12154155
12164156 # If the previous option needs an argument, assign it.
12174157 if test -n "$prev"; then
12184158 case $prev in
12194159 output)
1220 compile_command="$compile_command @OUTPUT@"
1221 finalize_command="$finalize_command @OUTPUT@"
4160 func_append compile_command " @OUTPUT@"
4161 func_append finalize_command " @OUTPUT@"
12224162 ;;
12234163 esac
12244164
12264166 dlfiles|dlprefiles)
12274167 if test "$preload" = no; then
12284168 # Add the symbol object into the linking commands.
1229 compile_command="$compile_command @SYMFILE@"
1230 finalize_command="$finalize_command @SYMFILE@"
4169 func_append compile_command " @SYMFILE@"
4170 func_append finalize_command " @SYMFILE@"
12314171 preload=yes
12324172 fi
12334173 case $arg in
12654205 ;;
12664206 expsyms)
12674207 export_symbols="$arg"
1268 if test ! -f "$arg"; then
1269 $echo "$modename: symbol file \`$arg' does not exist"
1270 exit $EXIT_FAILURE
1271 fi
4208 test -f "$arg" \
4209 || func_fatal_error "symbol file \`$arg' does not exist"
12724210 prev=
12734211 continue
12744212 ;;
12774215 prev=
12784216 continue
12794217 ;;
4218 framework)
4219 case $host in
4220 *-*-darwin*)
4221 case "$deplibs " in
4222 *" $qarg.ltframework "*) ;;
4223 *) deplibs="$deplibs $qarg.ltframework" # this is fixed later
4224 ;;
4225 esac
4226 ;;
4227 esac
4228 prev=
4229 continue
4230 ;;
12804231 inst_prefix)
12814232 inst_prefix_dir="$arg"
4233 prev=
4234 continue
4235 ;;
4236 objectlist)
4237 if test -f "$arg"; then
4238 save_arg=$arg
4239 moreargs=
4240 for fil in `cat "$save_arg"`
4241 do
4242 # moreargs="$moreargs $fil"
4243 arg=$fil
4244 # A libtool-controlled object.
4245
4246 # Check to see that this really is a libtool object.
4247 if func_lalib_unsafe_p "$arg"; then
4248 pic_object=
4249 non_pic_object=
4250
4251 # Read the .lo file
4252 func_source "$arg"
4253
4254 if test -z "$pic_object" ||
4255 test -z "$non_pic_object" ||
4256 test "$pic_object" = none &&
4257 test "$non_pic_object" = none; then
4258 func_fatal_error "cannot find name of object for \`$arg'"
4259 fi
4260
4261 # Extract subdirectory from the argument.
4262 func_dirname "$arg" "/" ""
4263 xdir="$func_dirname_result"
4264
4265 if test "$pic_object" != none; then
4266 # Prepend the subdirectory the object is found in.
4267 pic_object="$xdir$pic_object"
4268
4269 if test "$prev" = dlfiles; then
4270 if test "$build_libtool_libs" = yes && test "$dlopen_support" = yes; then
4271 dlfiles="$dlfiles $pic_object"
4272 prev=
4273 continue
4274 else
4275 # If libtool objects are unsupported, then we need to preload.
4276 prev=dlprefiles
4277 fi
4278 fi
4279
4280 # CHECK ME: I think I busted this. -Ossama
4281 if test "$prev" = dlprefiles; then
4282 # Preload the old-style object.
4283 dlprefiles="$dlprefiles $pic_object"
4284 prev=
4285 fi
4286
4287 # A PIC object.
4288 func_append libobjs " $pic_object"
4289 arg="$pic_object"
4290 fi
4291
4292 # Non-PIC object.
4293 if test "$non_pic_object" != none; then
4294 # Prepend the subdirectory the object is found in.
4295 non_pic_object="$xdir$non_pic_object"
4296
4297 # A standard non-PIC object
4298 func_append non_pic_objects " $non_pic_object"
4299 if test -z "$pic_object" || test "$pic_object" = none ; then
4300 arg="$non_pic_object"
4301 fi
4302 else
4303 # If the PIC object exists, use it instead.
4304 # $xdir was prepended to $pic_object above.
4305 non_pic_object="$pic_object"
4306 func_append non_pic_objects " $non_pic_object"
4307 fi
4308 else
4309 # Only an error if not doing a dry-run.
4310 if $opt_dry_run; then
4311 # Extract subdirectory from the argument.
4312 func_dirname "$arg" "/" ""
4313 xdir="$func_dirname_result"
4314
4315 func_lo2o "$arg"
4316 pic_object=$xdir$objdir/$func_lo2o_result
4317 non_pic_object=$xdir$func_lo2o_result
4318 func_append libobjs " $pic_object"
4319 func_append non_pic_objects " $non_pic_object"
4320 else
4321 func_fatal_error "\`$arg' is not a valid libtool object"
4322 fi
4323 fi
4324 done
4325 else
4326 func_fatal_error "link input file \`$arg' does not exist"
4327 fi
4328 arg=$save_arg
12824329 prev=
12834330 continue
12844331 ;;
12924339 prev=
12934340 continue
12944341 ;;
1295 objectlist)
1296 if test -f "$arg"; then
1297 save_arg=$arg
1298 moreargs=
1299 for fil in `cat $save_arg`
1300 do
1301 # moreargs="$moreargs $fil"
1302 arg=$fil
1303 # A libtool-controlled object.
1304
1305 # Check to see that this really is a libtool object.
1306 if (${SED} -e '2q' $arg | grep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then
1307 pic_object=
1308 non_pic_object=
1309
1310 # Read the .lo file
1311 # If there is no directory component, then add one.
1312 case $arg in
1313 */* | *\\*) . $arg ;;
1314 *) . ./$arg ;;
1315 esac
1316
1317 if test -z "$pic_object" || \
1318 test -z "$non_pic_object" ||
1319 test "$pic_object" = none && \
1320 test "$non_pic_object" = none; then
1321 $echo "$modename: cannot find name of object for \`$arg'" 1>&2
1322 exit $EXIT_FAILURE
1323 fi
1324
1325 # Extract subdirectory from the argument.
1326 xdir=`$echo "X$arg" | $Xsed -e 's%/[^/]*$%%'`
1327 if test "X$xdir" = "X$arg"; then
1328 xdir=
1329 else
1330 xdir="$xdir/"
1331 fi
1332
1333 if test "$pic_object" != none; then
1334 # Prepend the subdirectory the object is found in.
1335 pic_object="$xdir$pic_object"
1336
1337 if test "$prev" = dlfiles; then
1338 if test "$build_libtool_libs" = yes && test "$dlopen_support" = yes; then
1339 dlfiles="$dlfiles $pic_object"
1340 prev=
1341 continue
1342 else
1343 # If libtool objects are unsupported, then we need to preload.
1344 prev=dlprefiles
1345 fi
1346 fi
1347
1348 # CHECK ME: I think I busted this. -Ossama
1349 if test "$prev" = dlprefiles; then
1350 # Preload the old-style object.
1351 dlprefiles="$dlprefiles $pic_object"
1352 prev=
1353 fi
1354
1355 # A PIC object.
1356 libobjs="$libobjs $pic_object"
1357 arg="$pic_object"
1358 fi
1359
1360 # Non-PIC object.
1361 if test "$non_pic_object" != none; then
1362 # Prepend the subdirectory the object is found in.
1363 non_pic_object="$xdir$non_pic_object"
1364
1365 # A standard non-PIC object
1366 non_pic_objects="$non_pic_objects $non_pic_object"
1367 if test -z "$pic_object" || test "$pic_object" = none ; then
1368 arg="$non_pic_object"
1369 fi
1370 else
1371 # If the PIC object exists, use it instead.
1372 # $xdir was prepended to $pic_object above.
1373 non_pic_object="$pic_object"
1374 non_pic_objects="$non_pic_objects $non_pic_object"
1375 fi
1376 else
1377 # Only an error if not doing a dry-run.
1378 if test -z "$run"; then
1379 $echo "$modename: \`$arg' is not a valid libtool object" 1>&2
1380 exit $EXIT_FAILURE
1381 else
1382 # Dry-run case.
1383
1384 # Extract subdirectory from the argument.
1385 xdir=`$echo "X$arg" | $Xsed -e 's%/[^/]*$%%'`
1386 if test "X$xdir" = "X$arg"; then
1387 xdir=
1388 else
1389 xdir="$xdir/"
1390 fi
1391
1392 pic_object=`$echo "X${xdir}${objdir}/${arg}" | $Xsed -e "$lo2o"`
1393 non_pic_object=`$echo "X${xdir}${arg}" | $Xsed -e "$lo2o"`
1394 libobjs="$libobjs $pic_object"
1395 non_pic_objects="$non_pic_objects $non_pic_object"
1396 fi
1397 fi
1398 done
1399 else
1400 $echo "$modename: link input file \`$save_arg' does not exist"
1401 exit $EXIT_FAILURE
1402 fi
1403 arg=$save_arg
1404 prev=
1405 continue
1406 ;;
14074342 rpath | xrpath)
14084343 # We need an absolute path.
14094344 case $arg in
14104345 [\\/]* | [A-Za-z]:[\\/]*) ;;
14114346 *)
1412 $echo "$modename: only absolute run-paths are allowed" 1>&2
1413 exit $EXIT_FAILURE
4347 func_fatal_error "only absolute run-paths are allowed"
14144348 ;;
14154349 esac
14164350 if test "$prev" = rpath; then
14274361 prev=
14284362 continue
14294363 ;;
4364 shrext)
4365 shrext_cmds="$arg"
4366 prev=
4367 continue
4368 ;;
4369 weak)
4370 weak_libs="$weak_libs $arg"
4371 prev=
4372 continue
4373 ;;
4374 xcclinker)
4375 linker_flags="$linker_flags $qarg"
4376 compiler_flags="$compiler_flags $qarg"
4377 prev=
4378 func_append compile_command " $qarg"
4379 func_append finalize_command " $qarg"
4380 continue
4381 ;;
14304382 xcompiler)
14314383 compiler_flags="$compiler_flags $qarg"
14324384 prev=
1433 compile_command="$compile_command $qarg"
1434 finalize_command="$finalize_command $qarg"
4385 func_append compile_command " $qarg"
4386 func_append finalize_command " $qarg"
14354387 continue
14364388 ;;
14374389 xlinker)
14384390 linker_flags="$linker_flags $qarg"
14394391 compiler_flags="$compiler_flags $wl$qarg"
14404392 prev=
1441 compile_command="$compile_command $wl$qarg"
1442 finalize_command="$finalize_command $wl$qarg"
1443 continue
1444 ;;
1445 xcclinker)
1446 linker_flags="$linker_flags $qarg"
1447 compiler_flags="$compiler_flags $qarg"
1448 prev=
1449 compile_command="$compile_command $qarg"
1450 finalize_command="$finalize_command $qarg"
1451 continue
1452 ;;
1453 shrext)
1454 shrext_cmds="$arg"
1455 prev=
1456 continue
1457 ;;
1458 darwin_framework|darwin_framework_skip)
1459 test "$prev" = "darwin_framework" && compiler_flags="$compiler_flags $arg"
1460 compile_command="$compile_command $arg"
1461 finalize_command="$finalize_command $arg"
1462 prev=
4393 func_append compile_command " $wl$qarg"
4394 func_append finalize_command " $wl$qarg"
14634395 continue
14644396 ;;
14654397 *)
14754407 case $arg in
14764408 -all-static)
14774409 if test -n "$link_static_flag"; then
1478 compile_command="$compile_command $link_static_flag"
1479 finalize_command="$finalize_command $link_static_flag"
4410 # See comment for -static flag below, for more details.
4411 func_append compile_command " $link_static_flag"
4412 func_append finalize_command " $link_static_flag"
14804413 fi
14814414 continue
14824415 ;;
14834416
14844417 -allow-undefined)
14854418 # FIXME: remove this flag sometime in the future.
1486 $echo "$modename: \`-allow-undefined' is deprecated because it is the default" 1>&2
1487 continue
4419 func_fatal_error "\`-allow-undefined' must not be used because it is the default"
14884420 ;;
14894421
14904422 -avoid-version)
15094441
15104442 -export-symbols | -export-symbols-regex)
15114443 if test -n "$export_symbols" || test -n "$export_symbols_regex"; then
1512 $echo "$modename: more than one -exported-symbols argument is not allowed"
1513 exit $EXIT_FAILURE
4444 func_fatal_error "more than one -exported-symbols argument is not allowed"
15144445 fi
15154446 if test "X$arg" = "X-export-symbols"; then
15164447 prev=expsyms
15204451 continue
15214452 ;;
15224453
1523 -framework|-arch|-isysroot)
1524 case " $CC " in
1525 *" ${arg} ${1} "* | *" ${arg} ${1} "*)
1526 prev=darwin_framework_skip ;;
1527 *) compiler_flags="$compiler_flags $arg"
1528 prev=darwin_framework ;;
1529 esac
1530 compile_command="$compile_command $arg"
1531 finalize_command="$finalize_command $arg"
4454 -framework)
4455 prev=framework
15324456 continue
15334457 ;;
15344458
15424466 -L[A-Z][A-Z]*:*)
15434467 case $with_gcc/$host in
15444468 no/*-*-irix* | /*-*-irix*)
1545 compile_command="$compile_command $arg"
1546 finalize_command="$finalize_command $arg"
4469 func_append compile_command " $arg"
4470 func_append finalize_command " $arg"
15474471 ;;
15484472 esac
15494473 continue
15504474 ;;
15514475
15524476 -L*)
1553 dir=`$echo "X$arg" | $Xsed -e 's/^-L//'`
4477 func_stripname '-L' '' "$arg"
4478 dir=$func_stripname_result
4479 if test -z "$dir"; then
4480 if test "$#" -gt 0; then
4481 func_fatal_error "require no space between \`-L' and \`$1'"
4482 else
4483 func_fatal_error "need path for \`-L' option"
4484 fi
4485 fi
15544486 # We need an absolute path.
15554487 case $dir in
15564488 [\\/]* | [A-Za-z]:[\\/]*) ;;
15574489 *)
15584490 absdir=`cd "$dir" && pwd`
1559 if test -z "$absdir"; then
1560 $echo "$modename: cannot determine absolute directory name of \`$dir'" 1>&2
1561 absdir="$dir"
1562 notinst_path="$notinst_path $dir"
1563 fi
4491 test -z "$absdir" && \
4492 func_fatal_error "cannot determine absolute directory name of \`$dir'"
15644493 dir="$absdir"
15654494 ;;
15664495 esac
15724501 ;;
15734502 esac
15744503 case $host in
1575 *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2*)
1576 testbindir=`$echo "X$dir" | $Xsed -e 's*/lib$*/bin*'`
4504 *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2* | *-cegcc*)
4505 testbindir=`$ECHO "X$dir" | $Xsed -e 's*/lib$*/bin*'`
15774506 case :$dllsearchpath: in
15784507 *":$dir:"*) ;;
4508 ::) dllsearchpath=$dir;;
15794509 *) dllsearchpath="$dllsearchpath:$dir";;
15804510 esac
15814511 case :$dllsearchpath: in
15824512 *":$testbindir:"*) ;;
4513 ::) dllsearchpath=$testbindir;;
15834514 *) dllsearchpath="$dllsearchpath:$testbindir";;
15844515 esac
15854516 ;;
15904521 -l*)
15914522 if test "X$arg" = "X-lc" || test "X$arg" = "X-lm"; then
15924523 case $host in
1593 *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-beos*)
4524 *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-beos* | *-cegcc*)
15944525 # These systems don't actually have a C or math library (as such)
15954526 continue
15964527 ;;
16044535 ;;
16054536 *-*-rhapsody* | *-*-darwin1.[012])
16064537 # Rhapsody C and math libraries are in the System framework
1607 deplibs="$deplibs -framework System"
4538 deplibs="$deplibs System.ltframework"
16084539 continue
16094540 ;;
16104541 *-*-sco3.2v5* | *-*-sco5v6*)
16284559 continue
16294560 ;;
16304561
1631 # Tru64 UNIX uses -model [arg] to determine the layout of C++
1632 # classes, name mangling, and exception handling.
1633 -model)
1634 compile_command="$compile_command $arg"
1635 compiler_flags="$compiler_flags $arg"
1636 finalize_command="$finalize_command $arg"
1637 prev=xcompiler
1638 continue
1639 ;;
1640
1641 -mt|-mthreads|-kthread|-Kthread|-pthread|-pthreads|--thread-safe|-threads)
1642 compiler_flags="$compiler_flags $arg"
1643 compile_command="$compile_command $arg"
1644 finalize_command="$finalize_command $arg"
1645 continue
1646 ;;
1647
16484562 -module)
16494563 module=yes
16504564 continue
16514565 ;;
16524566
1653 # -64, -mips[0-9] enable 64-bit mode on the SGI compiler
1654 # -r[0-9][0-9]* specifies the processor on the SGI compiler
1655 # -xarch=*, -xtarget=* enable 64-bit mode on the Sun compiler
1656 # +DA*, +DD* enable 64-bit mode on the HP compiler
1657 # -q* pass through compiler args for the IBM compiler
1658 # -m* pass through architecture-specific compiler args for GCC
1659 # -m*, -t[45]*, -txscale* pass through architecture-specific
1660 # compiler args for GCC
1661 # -p, -pg, --coverage, -fprofile-* pass through profiling flag for GCC
1662 # -F/path gives path to uninstalled frameworks, gcc on darwin
1663 # @file GCC response files
1664 -64|-mips[0-9]|-r[0-9][0-9]*|-xarch=*|-xtarget=*|+DA*|+DD*|-q*|-m*| \
1665 -t[45]*|-txscale*|-p|-pg|--coverage|-fprofile-*|-F*|@*)
1666
1667 # Unknown arguments in both finalize_command and compile_command need
1668 # to be aesthetically quoted because they are evaled later.
1669 arg=`$echo "X$arg" | $Xsed -e "$sed_quote_subst"`
1670 case $arg in
1671 *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
1672 arg="\"$arg\""
1673 ;;
4567 # Tru64 UNIX uses -model [arg] to determine the layout of C++
4568 # classes, name mangling, and exception handling.
4569 # Darwin uses the -arch flag to determine output architecture.
4570 -model|-arch|-isysroot)
4571 compiler_flags="$compiler_flags $arg"
4572 func_append compile_command " $arg"
4573 func_append finalize_command " $arg"
4574 prev=xcompiler
4575 continue
4576 ;;
4577
4578 -mt|-mthreads|-kthread|-Kthread|-pthread|-pthreads|--thread-safe|-threads)
4579 compiler_flags="$compiler_flags $arg"
4580 func_append compile_command " $arg"
4581 func_append finalize_command " $arg"
4582 case "$new_inherited_linker_flags " in
4583 *" $arg "*) ;;
4584 * ) new_inherited_linker_flags="$new_inherited_linker_flags $arg" ;;
16744585 esac
1675 compile_command="$compile_command $arg"
1676 finalize_command="$finalize_command $arg"
1677 compiler_flags="$compiler_flags $arg"
1678 continue
1679 ;;
1680
1681 -shrext)
1682 prev=shrext
4586 continue
4587 ;;
4588
4589 -multi_module)
4590 single_module="${wl}-multi_module"
16834591 continue
16844592 ;;
16854593
16904598
16914599 -no-install)
16924600 case $host in
1693 *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2* | *-*-darwin*)
4601 *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2* | *-*-darwin* | *-cegcc*)
16944602 # The PATH hackery in wrapper scripts is required on Windows
16954603 # and Darwin in order for the loader to find any dlls it needs.
1696 $echo "$modename: warning: \`-no-install' is ignored for $host" 1>&2
1697 $echo "$modename: warning: assuming \`-no-fast-install' instead" 1>&2
4604 func_warning "\`-no-install' is ignored for $host"
4605 func_warning "assuming \`-no-fast-install' instead"
16984606 fast_install=no
16994607 ;;
17004608 *) no_install=yes ;;
17354643 ;;
17364644
17374645 -R*)
1738 dir=`$echo "X$arg" | $Xsed -e 's/^-R//'`
4646 func_stripname '-R' '' "$arg"
4647 dir=$func_stripname_result
17394648 # We need an absolute path.
17404649 case $dir in
17414650 [\\/]* | [A-Za-z]:[\\/]*) ;;
17424651 *)
1743 $echo "$modename: only absolute run-paths are allowed" 1>&2
1744 exit $EXIT_FAILURE
4652 func_fatal_error "only absolute run-paths are allowed"
17454653 ;;
17464654 esac
17474655 case "$xrpath " in
17514659 continue
17524660 ;;
17534661
4662 -shared)
4663 # The effects of -shared are defined in a previous loop.
4664 continue
4665 ;;
4666
4667 -shrext)
4668 prev=shrext
4669 continue
4670 ;;
4671
17544672 -static | -static-libtool-libs)
17554673 # The effects of -static are defined in a previous loop.
17564674 # We used to do the same as -all-static on platforms that
17694687 prev=vinfo
17704688 continue
17714689 ;;
4690
17724691 -version-number)
17734692 prev=vinfo
17744693 vinfo_number=yes
17754694 continue
17764695 ;;
17774696
4697 -weak)
4698 prev=weak
4699 continue
4700 ;;
4701
17784702 -Wc,*)
1779 args=`$echo "X$arg" | $Xsed -e "$sed_quote_subst" -e 's/^-Wc,//'`
4703 func_stripname '-Wc,' '' "$arg"
4704 args=$func_stripname_result
17804705 arg=
17814706 save_ifs="$IFS"; IFS=','
17824707 for flag in $args; do
17834708 IFS="$save_ifs"
1784 case $flag in
1785 *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
1786 flag="\"$flag\""
1787 ;;
1788 esac
1789 arg="$arg $wl$flag"
1790 compiler_flags="$compiler_flags $flag"
4709 func_quote_for_eval "$flag"
4710 arg="$arg $wl$func_quote_for_eval_result"
4711 compiler_flags="$compiler_flags $func_quote_for_eval_result"
17914712 done
17924713 IFS="$save_ifs"
1793 arg=`$echo "X$arg" | $Xsed -e "s/^ //"`
4714 func_stripname ' ' '' "$arg"
4715 arg=$func_stripname_result
17944716 ;;
17954717
17964718 -Wl,*)
1797 args=`$echo "X$arg" | $Xsed -e "$sed_quote_subst" -e 's/^-Wl,//'`
4719 func_stripname '-Wl,' '' "$arg"
4720 args=$func_stripname_result
17984721 arg=
17994722 save_ifs="$IFS"; IFS=','
18004723 for flag in $args; do
18014724 IFS="$save_ifs"
1802 case $flag in
1803 *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
1804 flag="\"$flag\""
1805 ;;
1806 esac
1807 arg="$arg $wl$flag"
1808 compiler_flags="$compiler_flags $wl$flag"
1809 linker_flags="$linker_flags $flag"
4725 func_quote_for_eval "$flag"
4726 arg="$arg $wl$func_quote_for_eval_result"
4727 compiler_flags="$compiler_flags $wl$func_quote_for_eval_result"
4728 linker_flags="$linker_flags $func_quote_for_eval_result"
18104729 done
18114730 IFS="$save_ifs"
1812 arg=`$echo "X$arg" | $Xsed -e "s/^ //"`
4731 func_stripname ' ' '' "$arg"
4732 arg=$func_stripname_result
18134733 ;;
18144734
18154735 -Xcompiler)
18274747 continue
18284748 ;;
18294749
4750 # -msg_* for osf cc
4751 -msg_*)
4752 func_quote_for_eval "$arg"
4753 arg="$func_quote_for_eval_result"
4754 ;;
4755
4756 # -64, -mips[0-9] enable 64-bit mode on the SGI compiler
4757 # -r[0-9][0-9]* specifies the processor on the SGI compiler
4758 # -xarch=*, -xtarget=* enable 64-bit mode on the Sun compiler
4759 # +DA*, +DD* enable 64-bit mode on the HP compiler
4760 # -q* pass through compiler args for the IBM compiler
4761 # -m*, -t[45]*, -txscale* pass through architecture-specific
4762 # compiler args for GCC
4763 # -F/path gives path to uninstalled frameworks, gcc on darwin
4764 # -p, -pg, --coverage, -fprofile-* pass through profiling flag for GCC
4765 # @file GCC response files
4766 -64|-mips[0-9]|-r[0-9][0-9]*|-xarch=*|-xtarget=*|+DA*|+DD*|-q*|-m*| \
4767 -t[45]*|-txscale*|-p|-pg|--coverage|-fprofile-*|-F*|@*)
4768 func_quote_for_eval "$arg"
4769 arg="$func_quote_for_eval_result"
4770 func_append compile_command " $arg"
4771 func_append finalize_command " $arg"
4772 compiler_flags="$compiler_flags $arg"
4773 continue
4774 ;;
4775
18304776 # Some other compiler flag.
18314777 -* | +*)
1832 # Unknown arguments in both finalize_command and compile_command need
1833 # to be aesthetically quoted because they are evaled later.
1834 arg=`$echo "X$arg" | $Xsed -e "$sed_quote_subst"`
1835 case $arg in
1836 *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
1837 arg="\"$arg\""
1838 ;;
1839 esac
4778 func_quote_for_eval "$arg"
4779 arg="$func_quote_for_eval_result"
18404780 ;;
18414781
18424782 *.$objext)
18484788 # A libtool-controlled object.
18494789
18504790 # Check to see that this really is a libtool object.
1851 if (${SED} -e '2q' $arg | grep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then
4791 if func_lalib_unsafe_p "$arg"; then
18524792 pic_object=
18534793 non_pic_object=
18544794
18554795 # Read the .lo file
1856 # If there is no directory component, then add one.
1857 case $arg in
1858 */* | *\\*) . $arg ;;
1859 *) . ./$arg ;;
1860 esac
1861
1862 if test -z "$pic_object" || \
4796 func_source "$arg"
4797
4798 if test -z "$pic_object" ||
18634799 test -z "$non_pic_object" ||
1864 test "$pic_object" = none && \
4800 test "$pic_object" = none &&
18654801 test "$non_pic_object" = none; then
1866 $echo "$modename: cannot find name of object for \`$arg'" 1>&2
1867 exit $EXIT_FAILURE
4802 func_fatal_error "cannot find name of object for \`$arg'"
18684803 fi
18694804
18704805 # Extract subdirectory from the argument.
1871 xdir=`$echo "X$arg" | $Xsed -e 's%/[^/]*$%%'`
1872 if test "X$xdir" = "X$arg"; then
1873 xdir=
1874 else
1875 xdir="$xdir/"
1876 fi
4806 func_dirname "$arg" "/" ""
4807 xdir="$func_dirname_result"
18774808
18784809 if test "$pic_object" != none; then
18794810 # Prepend the subdirectory the object is found in.
18984829 fi
18994830
19004831 # A PIC object.
1901 libobjs="$libobjs $pic_object"
4832 func_append libobjs " $pic_object"
19024833 arg="$pic_object"
19034834 fi
19044835
19084839 non_pic_object="$xdir$non_pic_object"
19094840
19104841 # A standard non-PIC object
1911 non_pic_objects="$non_pic_objects $non_pic_object"
4842 func_append non_pic_objects " $non_pic_object"
19124843 if test -z "$pic_object" || test "$pic_object" = none ; then
19134844 arg="$non_pic_object"
19144845 fi
19164847 # If the PIC object exists, use it instead.
19174848 # $xdir was prepended to $pic_object above.
19184849 non_pic_object="$pic_object"
1919 non_pic_objects="$non_pic_objects $non_pic_object"
4850 func_append non_pic_objects " $non_pic_object"
19204851 fi
19214852 else
19224853 # Only an error if not doing a dry-run.
1923 if test -z "$run"; then
1924 $echo "$modename: \`$arg' is not a valid libtool object" 1>&2
1925 exit $EXIT_FAILURE
4854 if $opt_dry_run; then
4855 # Extract subdirectory from the argument.
4856 func_dirname "$arg" "/" ""
4857 xdir="$func_dirname_result"
4858
4859 func_lo2o "$arg"
4860 pic_object=$xdir$objdir/$func_lo2o_result
4861 non_pic_object=$xdir$func_lo2o_result
4862 func_append libobjs " $pic_object"
4863 func_append non_pic_objects " $non_pic_object"
19264864 else
1927 # Dry-run case.
1928
1929 # Extract subdirectory from the argument.
1930 xdir=`$echo "X$arg" | $Xsed -e 's%/[^/]*$%%'`
1931 if test "X$xdir" = "X$arg"; then
1932 xdir=
1933 else
1934 xdir="$xdir/"
1935 fi
1936
1937 pic_object=`$echo "X${xdir}${objdir}/${arg}" | $Xsed -e "$lo2o"`
1938 non_pic_object=`$echo "X${xdir}${arg}" | $Xsed -e "$lo2o"`
1939 libobjs="$libobjs $pic_object"
1940 non_pic_objects="$non_pic_objects $non_pic_object"
4865 func_fatal_error "\`$arg' is not a valid libtool object"
19414866 fi
19424867 fi
19434868 ;;
19704895 *)
19714896 # Unknown arguments in both finalize_command and compile_command need
19724897 # to be aesthetically quoted because they are evaled later.
1973 arg=`$echo "X$arg" | $Xsed -e "$sed_quote_subst"`
1974 case $arg in
1975 *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
1976 arg="\"$arg\""
1977 ;;
1978 esac
4898 func_quote_for_eval "$arg"
4899 arg="$func_quote_for_eval_result"
19794900 ;;
19804901 esac # arg
19814902
19824903 # Now actually substitute the argument into the commands.
19834904 if test -n "$arg"; then
1984 compile_command="$compile_command $arg"
1985 finalize_command="$finalize_command $arg"
4905 func_append compile_command " $arg"
4906 func_append finalize_command " $arg"
19864907 fi
19874908 done # argument parsing loop
19884909
1989 if test -n "$prev"; then
1990 $echo "$modename: the \`$prevarg' option requires an argument" 1>&2
1991 $echo "$help" 1>&2
1992 exit $EXIT_FAILURE
1993 fi
4910 test -n "$prev" && \
4911 func_fatal_help "the \`$prevarg' option requires an argument"
19944912
19954913 if test "$export_dynamic" = yes && test -n "$export_dynamic_flag_spec"; then
19964914 eval arg=\"$export_dynamic_flag_spec\"
1997 compile_command="$compile_command $arg"
1998 finalize_command="$finalize_command $arg"
4915 func_append compile_command " $arg"
4916 func_append finalize_command " $arg"
19994917 fi
20004918
20014919 oldlibs=
20024920 # calculate the name of the file, without its directory
2003 outputname=`$echo "X$output" | $Xsed -e 's%^.*/%%'`
4921 func_basename "$output"
4922 outputname="$func_basename_result"
20044923 libobjs_save="$libobjs"
20054924
20064925 if test -n "$shlibpath_var"; then
20074926 # get the directories listed in $shlibpath_var
2008 eval shlib_search_path=\`\$echo \"X\${$shlibpath_var}\" \| \$Xsed -e \'s/:/ /g\'\`
4927 eval shlib_search_path=\`\$ECHO \"X\${$shlibpath_var}\" \| \$Xsed -e \'s/:/ /g\'\`
20094928 else
20104929 shlib_search_path=
20114930 fi
20124931 eval sys_lib_search_path=\"$sys_lib_search_path_spec\"
20134932 eval sys_lib_dlsearch_path=\"$sys_lib_dlsearch_path_spec\"
20144933
2015 output_objdir=`$echo "X$output" | $Xsed -e 's%/[^/]*$%%'`
2016 if test "X$output_objdir" = "X$output"; then
2017 output_objdir="$objdir"
2018 else
2019 output_objdir="$output_objdir/$objdir"
2020 fi
4934 func_dirname "$output" "/" ""
4935 output_objdir="$func_dirname_result$objdir"
20214936 # Create the object directory.
2022 if test ! -d "$output_objdir"; then
2023 $show "$mkdir $output_objdir"
2024 $run $mkdir $output_objdir
2025 exit_status=$?
2026 if test "$exit_status" -ne 0 && test ! -d "$output_objdir"; then
2027 exit $exit_status
2028 fi
2029 fi
4937 func_mkdir_p "$output_objdir"
20304938
20314939 # Determine the type of output
20324940 case $output in
20334941 "")
2034 $echo "$modename: you must specify an output file" 1>&2
2035 $echo "$help" 1>&2
2036 exit $EXIT_FAILURE
4942 func_fatal_help "you must specify an output file"
20374943 ;;
20384944 *.$libext) linkmode=oldlib ;;
20394945 *.lo | *.$objext) linkmode=obj ;;
20414947 *) linkmode=prog ;; # Anything else should be a program.
20424948 esac
20434949
2044 case $host in
2045 *cygwin* | *mingw* | *pw32*)
2046 # don't eliminate duplications in $postdeps and $predeps
2047 duplicate_compiler_generated_deps=yes
2048 ;;
2049 *)
2050 duplicate_compiler_generated_deps=$duplicate_deps
2051 ;;
2052 esac
20534950 specialdeplibs=
20544951
20554952 libs=
20564953 # Find all interdependent deplibs by searching for libraries
20574954 # that are linked more than once (e.g. -la -lb -la)
20584955 for deplib in $deplibs; do
2059 if test "X$duplicate_deps" = "Xyes" ; then
4956 if $opt_duplicate_deps ; then
20604957 case "$libs " in
20614958 *" $deplib "*) specialdeplibs="$specialdeplibs $deplib" ;;
20624959 esac
20714968 # $postdeps and mark them as special (i.e., whose duplicates are
20724969 # not to be eliminated).
20734970 pre_post_deps=
2074 if test "X$duplicate_compiler_generated_deps" = "Xyes" ; then
4971 if $opt_duplicate_compiler_generated_deps; then
20754972 for pre_post_dep in $predeps $postdeps; do
20764973 case "$pre_post_deps " in
20774974 *" $pre_post_dep "*) specialdeplibs="$specialdeplibs $pre_post_deps" ;;
20874984 newlib_search_path=
20884985 need_relink=no # whether we're linking any uninstalled libtool libraries
20894986 notinst_deplibs= # not-installed libtool libraries
4987 notinst_path= # paths that contain not-installed libtool libraries
4988
20904989 case $linkmode in
20914990 lib)
2092 passes="conv link"
4991 passes="conv dlpreopen link"
20934992 for file in $dlfiles $dlprefiles; do
20944993 case $file in
20954994 *.la) ;;
20964995 *)
2097 $echo "$modename: libraries can \`-dlopen' only libtool libraries: $file" 1>&2
2098 exit $EXIT_FAILURE
4996 func_fatal_help "libraries can \`-dlopen' only libtool libraries: $file"
20994997 ;;
21004998 esac
21014999 done
21115009 *) passes="conv"
21125010 ;;
21135011 esac
5012
21145013 for pass in $passes; do
5014 # The preopen pass in lib mode reverses $deplibs; put it back here
5015 # so that -L comes before libs that need it for instance...
5016 if test "$linkmode,$pass" = "lib,link"; then
5017 ## FIXME: Find the place where the list is rebuilt in the wrong
5018 ## order, and fix it there properly
5019 tmp_deplibs=
5020 for deplib in $deplibs; do
5021 tmp_deplibs="$deplib $tmp_deplibs"
5022 done
5023 deplibs="$tmp_deplibs"
5024 fi
5025
21155026 if test "$linkmode,$pass" = "lib,link" ||
21165027 test "$linkmode,$pass" = "prog,scan"; then
21175028 libs="$deplibs"
21245035 link) libs="$deplibs %DEPLIBS% $dependency_libs" ;;
21255036 esac
21265037 fi
5038 if test "$linkmode,$pass" = "lib,dlpreopen"; then
5039 # Collect and forward deplibs of preopened libtool libs
5040 for lib in $dlprefiles; do
5041 # Ignore non-libtool-libs
5042 dependency_libs=
5043 case $lib in
5044 *.la) func_source "$lib" ;;
5045 esac
5046
5047 # Collect preopened libtool deplibs, except any this library
5048 # has declared as weak libs
5049 for deplib in $dependency_libs; do
5050 deplib_base=`$ECHO "X$deplib" | $Xsed -e "$basename"`
5051 case " $weak_libs " in
5052 *" $deplib_base "*) ;;
5053 *) deplibs="$deplibs $deplib" ;;
5054 esac
5055 done
5056 done
5057 libs="$dlprefiles"
5058 fi
21275059 if test "$pass" = dlopen; then
21285060 # Collect dlpreopened libraries
21295061 save_deplibs="$deplibs"
21305062 deplibs=
21315063 fi
5064
21325065 for deplib in $libs; do
21335066 lib=
21345067 found=no
21395072 finalize_deplibs="$deplib $finalize_deplibs"
21405073 else
21415074 compiler_flags="$compiler_flags $deplib"
5075 if test "$linkmode" = lib ; then
5076 case "$new_inherited_linker_flags " in
5077 *" $deplib "*) ;;
5078 * ) new_inherited_linker_flags="$new_inherited_linker_flags $deplib" ;;
5079 esac
5080 fi
21425081 fi
21435082 continue
21445083 ;;
21455084 -l*)
21465085 if test "$linkmode" != lib && test "$linkmode" != prog; then
2147 $echo "$modename: warning: \`-l' is ignored for archives/objects" 1>&2
5086 func_warning "\`-l' is ignored for archives/objects"
21485087 continue
21495088 fi
2150 name=`$echo "X$deplib" | $Xsed -e 's/^-l//'`
2151 for searchdir in $newlib_search_path $lib_search_path $sys_lib_search_path $shlib_search_path; do
5089 func_stripname '-l' '' "$deplib"
5090 name=$func_stripname_result
5091 if test "$linkmode" = lib; then
5092 searchdirs="$newlib_search_path $lib_search_path $compiler_lib_search_dirs $sys_lib_search_path $shlib_search_path"
5093 else
5094 searchdirs="$newlib_search_path $lib_search_path $sys_lib_search_path $shlib_search_path"
5095 fi
5096 for searchdir in $searchdirs; do
21525097 for search_ext in .la $std_shrext .so .a; do
21535098 # Search the libtool library
21545099 lib="$searchdir/lib${name}${search_ext}"
21785123 if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then
21795124 case " $predeps $postdeps " in
21805125 *" $deplib "*)
2181 if (${SED} -e '2q' $lib |
2182 grep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then
5126 if func_lalib_p "$lib"; then
21835127 library_names=
21845128 old_library=
2185 case $lib in
2186 */* | *\\*) . $lib ;;
2187 *) . ./$lib ;;
2188 esac
5129 func_source "$lib"
21895130 for l in $old_library $library_names; do
21905131 ll="$l"
21915132 done
21925133 if test "X$ll" = "X$old_library" ; then # only static version available
21935134 found=no
2194 ladir=`$echo "X$lib" | $Xsed -e 's%/[^/]*$%%'`
2195 test "X$ladir" = "X$lib" && ladir="."
5135 func_dirname "$lib" "" "."
5136 ladir="$func_dirname_result"
21965137 lib=$ladir/$old_library
21975138 if test "$linkmode,$pass" = "prog,link"; then
21985139 compile_deplibs="$deplib $compile_deplibs"
22045145 continue
22055146 fi
22065147 fi
2207 ;;
5148 ;;
22085149 *) ;;
22095150 esac
22105151 fi
22115152 fi
22125153 ;; # -l
5154 *.ltframework)
5155 if test "$linkmode,$pass" = "prog,link"; then
5156 compile_deplibs="$deplib $compile_deplibs"
5157 finalize_deplibs="$deplib $finalize_deplibs"
5158 else
5159 deplibs="$deplib $deplibs"
5160 if test "$linkmode" = lib ; then
5161 case "$new_inherited_linker_flags " in
5162 *" $deplib "*) ;;
5163 * ) new_inherited_linker_flags="$new_inherited_linker_flags $deplib" ;;
5164 esac
5165 fi
5166 fi
5167 continue
5168 ;;
22135169 -L*)
22145170 case $linkmode in
22155171 lib)
22165172 deplibs="$deplib $deplibs"
22175173 test "$pass" = conv && continue
22185174 newdependency_libs="$deplib $newdependency_libs"
2219 newlib_search_path="$newlib_search_path "`$echo "X$deplib" | $Xsed -e 's/^-L//'`
5175 func_stripname '-L' '' "$deplib"
5176 newlib_search_path="$newlib_search_path $func_stripname_result"
22205177 ;;
22215178 prog)
22225179 if test "$pass" = conv; then
22295186 compile_deplibs="$deplib $compile_deplibs"
22305187 finalize_deplibs="$deplib $finalize_deplibs"
22315188 fi
2232 newlib_search_path="$newlib_search_path "`$echo "X$deplib" | $Xsed -e 's/^-L//'`
5189 func_stripname '-L' '' "$deplib"
5190 newlib_search_path="$newlib_search_path $func_stripname_result"
22335191 ;;
22345192 *)
2235 $echo "$modename: warning: \`-L' is ignored for archives/objects" 1>&2
5193 func_warning "\`-L' is ignored for archives/objects"
22365194 ;;
22375195 esac # linkmode
22385196 continue
22395197 ;; # -L
22405198 -R*)
22415199 if test "$pass" = link; then
2242 dir=`$echo "X$deplib" | $Xsed -e 's/^-R//'`
5200 func_stripname '-R' '' "$deplib"
5201 dir=$func_stripname_result
22435202 # Make sure the xrpath contains only unique directories.
22445203 case "$xrpath " in
22455204 *" $dir "*) ;;
22575216 fi
22585217 case $linkmode in
22595218 lib)
2260 valid_a_lib=no
2261 case $deplibs_check_method in
2262 match_pattern*)
2263 set dummy $deplibs_check_method
2264 match_pattern_regex=`expr "$deplibs_check_method" : "$2 \(.*\)"`
2265 if eval $echo \"$deplib\" 2>/dev/null \
2266 | $SED 10q \
5219 # Linking convenience modules into shared libraries is allowed,
5220 # but linking other static libraries is non-portable.
5221 case " $dlpreconveniencelibs " in
5222 *" $deplib "*) ;;
5223 *)
5224 valid_a_lib=no
5225 case $deplibs_check_method in
5226 match_pattern*)
5227 set dummy $deplibs_check_method; shift
5228 match_pattern_regex=`expr "$deplibs_check_method" : "$1 \(.*\)"`
5229 if eval "\$ECHO \"X$deplib\"" 2>/dev/null | $Xsed -e 10q \
22675230 | $EGREP "$match_pattern_regex" > /dev/null; then
5231 valid_a_lib=yes
5232 fi
5233 ;;
5234 pass_all)
22685235 valid_a_lib=yes
2269 fi
22705236 ;;
2271 pass_all)
2272 valid_a_lib=yes
2273 ;;
2274 esac
2275 if test "$valid_a_lib" != yes; then
2276 $echo
2277 $echo "*** Warning: Trying to link with static lib archive $deplib."
2278 $echo "*** I have the capability to make that library automatically link in when"
2279 $echo "*** you link to this library. But I can only do this if you have a"
2280 $echo "*** shared version of the library, which you do not appear to have"
2281 $echo "*** because the file extensions .$libext of this argument makes me believe"
2282 $echo "*** that it is just a static archive that I should not used here."
2283 else
2284 $echo
2285 $echo "*** Warning: Linking the shared library $output against the"
2286 $echo "*** static library $deplib is not portable!"
2287 deplibs="$deplib $deplibs"
2288 fi
5237 esac
5238 if test "$valid_a_lib" != yes; then
5239 $ECHO
5240 $ECHO "*** Warning: Trying to link with static lib archive $deplib."
5241 $ECHO "*** I have the capability to make that library automatically link in when"
5242 $ECHO "*** you link to this library. But I can only do this if you have a"
5243 $ECHO "*** shared version of the library, which you do not appear to have"
5244 $ECHO "*** because the file extensions .$libext of this argument makes me believe"
5245 $ECHO "*** that it is just a static archive that I should not use here."
5246 else
5247 $ECHO
5248 $ECHO "*** Warning: Linking the shared library $output against the"
5249 $ECHO "*** static library $deplib is not portable!"
5250 deplibs="$deplib $deplibs"
5251 fi
5252 ;;
5253 esac
22895254 continue
22905255 ;;
22915256 prog)
23205285 continue
23215286 ;;
23225287 esac # case $deplib
5288
23235289 if test "$found" = yes || test -f "$lib"; then :
23245290 else
2325 $echo "$modename: cannot find the library \`$lib' or unhandled argument \`$deplib'" 1>&2
2326 exit $EXIT_FAILURE
5291 func_fatal_error "cannot find the library \`$lib' or unhandled argument \`$deplib'"
23275292 fi
23285293
23295294 # Check to see that this really is a libtool archive.
2330 if (${SED} -e '2q' $lib | grep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then :
2331 else
2332 $echo "$modename: \`$lib' is not a valid libtool archive" 1>&2
2333 exit $EXIT_FAILURE
2334 fi
2335
2336 ladir=`$echo "X$lib" | $Xsed -e 's%/[^/]*$%%'`
2337 test "X$ladir" = "X$lib" && ladir="."
5295 func_lalib_unsafe_p "$lib" \
5296 || func_fatal_error "\`$lib' is not a valid libtool archive"
5297
5298 func_dirname "$lib" "" "."
5299 ladir="$func_dirname_result"
23385300
23395301 dlname=
23405302 dlopen=
23425304 libdir=
23435305 library_names=
23445306 old_library=
5307 inherited_linker_flags=
23455308 # If the library was installed with an old release of libtool,
23465309 # it will not redefine variables installed, or shouldnotlink
23475310 installed=yes
23505313
23515314
23525315 # Read the .la file
2353 case $lib in
2354 */* | *\\*) . $lib ;;
2355 *) . ./$lib ;;
2356 esac
2357
5316 func_source "$lib"
5317
5318 # Convert "-framework foo" to "foo.ltframework"
5319 if test -n "$inherited_linker_flags"; then
5320 tmp_inherited_linker_flags=`$ECHO "X$inherited_linker_flags" | $Xsed -e 's/-framework \([^ $]*\)/\1.ltframework/g'`
5321 for tmp_inherited_linker_flag in $tmp_inherited_linker_flags; do
5322 case " $new_inherited_linker_flags " in
5323 *" $tmp_inherited_linker_flag "*) ;;
5324 *) new_inherited_linker_flags="$new_inherited_linker_flags $tmp_inherited_linker_flag";;
5325 esac
5326 done
5327 fi
5328 dependency_libs=`$ECHO "X $dependency_libs" | $Xsed -e 's% \([^ $]*\).ltframework% -framework \1%g'`
23585329 if test "$linkmode,$pass" = "lib,link" ||
23595330 test "$linkmode,$pass" = "prog,scan" ||
23605331 { test "$linkmode" != prog && test "$linkmode" != lib; }; then
23675338 deplibs="$lib $deplibs"
23685339 if test -z "$libdir"; then
23695340 if test -z "$old_library"; then
2370 $echo "$modename: cannot find name of link library for \`$lib'" 1>&2
2371 exit $EXIT_FAILURE
5341 func_fatal_error "cannot find name of link library for \`$lib'"
23725342 fi
23735343 # It is a libtool convenience library, so add in its objects.
23745344 convenience="$convenience $ladir/$objdir/$old_library"
23755345 old_convenience="$old_convenience $ladir/$objdir/$old_library"
2376 tmp_libs=
2377 for deplib in $dependency_libs; do
2378 deplibs="$deplib $deplibs"
2379 if test "X$duplicate_deps" = "Xyes" ; then
2380 case "$tmp_libs " in
2381 *" $deplib "*) specialdeplibs="$specialdeplibs $deplib" ;;
2382 esac
2383 fi
2384 tmp_libs="$tmp_libs $deplib"
2385 done
23865346 elif test "$linkmode" != prog && test "$linkmode" != lib; then
2387 $echo "$modename: \`$lib' is not a convenience library" 1>&2
2388 exit $EXIT_FAILURE
5347 func_fatal_error "\`$lib' is not a convenience library"
23895348 fi
5349 tmp_libs=
5350 for deplib in $dependency_libs; do
5351 deplibs="$deplib $deplibs"
5352 if $opt_duplicate_deps ; then
5353 case "$tmp_libs " in
5354 *" $deplib "*) specialdeplibs="$specialdeplibs $deplib" ;;
5355 esac
5356 fi
5357 tmp_libs="$tmp_libs $deplib"
5358 done
23905359 continue
23915360 fi # $pass = conv
23925361
23975366 linklib="$l"
23985367 done
23995368 if test -z "$linklib"; then
2400 $echo "$modename: cannot find name of link library for \`$lib'" 1>&2
2401 exit $EXIT_FAILURE
5369 func_fatal_error "cannot find name of link library for \`$lib'"
24025370 fi
24035371
24045372 # This library was specified with -dlopen.
24055373 if test "$pass" = dlopen; then
24065374 if test -z "$libdir"; then
2407 $echo "$modename: cannot -dlopen a convenience library: \`$lib'" 1>&2
2408 exit $EXIT_FAILURE
5375 func_fatal_error "cannot -dlopen a convenience library: \`$lib'"
24095376 fi
24105377 if test -z "$dlname" ||
24115378 test "$dlopen_support" != yes ||
24275394 *)
24285395 abs_ladir=`cd "$ladir" && pwd`
24295396 if test -z "$abs_ladir"; then
2430 $echo "$modename: warning: cannot determine absolute directory name of \`$ladir'" 1>&2
2431 $echo "$modename: passing it literally to the linker, although it might fail" 1>&2
5397 func_warning "cannot determine absolute directory name of \`$ladir'"
5398 func_warning "passing it literally to the linker, although it might fail"
24325399 abs_ladir="$ladir"
24335400 fi
24345401 ;;
24355402 esac
2436 laname=`$echo "X$lib" | $Xsed -e 's%^.*/%%'`
5403 func_basename "$lib"
5404 laname="$func_basename_result"
24375405
24385406 # Find the relevant object directory and library name.
24395407 if test "X$installed" = Xyes; then
24405408 if test ! -f "$libdir/$linklib" && test -f "$abs_ladir/$linklib"; then
2441 $echo "$modename: warning: library \`$lib' was moved." 1>&2
5409 func_warning "library \`$lib' was moved."
24425410 dir="$ladir"
24435411 absdir="$abs_ladir"
24445412 libdir="$abs_ladir"
24605428 notinst_path="$notinst_path $abs_ladir"
24615429 fi
24625430 fi # $installed = yes
2463 name=`$echo "X$laname" | $Xsed -e 's/\.la$//' -e 's/^lib//'`
5431 func_stripname 'lib' '.la' "$laname"
5432 name=$func_stripname_result
24645433
24655434 # This library was specified with -dlpreopen.
24665435 if test "$pass" = dlpreopen; then
2467 if test -z "$libdir"; then
2468 $echo "$modename: cannot -dlpreopen a convenience library: \`$lib'" 1>&2
2469 exit $EXIT_FAILURE
5436 if test -z "$libdir" && test "$linkmode" = prog; then
5437 func_fatal_error "only libraries may -dlpreopen a convenience library: \`$lib'"
24705438 fi
24715439 # Prefer using a static library (so that no silly _DYNAMIC symbols
24725440 # are required to link).
24735441 if test -n "$old_library"; then
24745442 newdlprefiles="$newdlprefiles $dir/$old_library"
5443 # Keep a list of preopened convenience libraries to check
5444 # that they are being used correctly in the link pass.
5445 test -z "$libdir" && \
5446 dlpreconveniencelibs="$dlpreconveniencelibs $dir/$old_library"
24755447 # Otherwise, use the dlname, so that lt_dlopen finds it.
24765448 elif test -n "$dlname"; then
24775449 newdlprefiles="$newdlprefiles $dir/$dlname"
25075479 tmp_libs=
25085480 for deplib in $dependency_libs; do
25095481 case $deplib in
2510 -L*) newlib_search_path="$newlib_search_path "`$echo "X$deplib" | $Xsed -e 's/^-L//'`;; ### testsuite: skip nested quoting test
5482 -L*) func_stripname '-L' '' "$deplib"
5483 newlib_search_path="$newlib_search_path $func_stripname_result"
5484 ;;
25115485 esac
25125486 # Need to link against all dependency_libs?
25135487 if test "$linkalldeplibs" = yes; then
25175491 # or/and link against static libraries
25185492 newdependency_libs="$deplib $newdependency_libs"
25195493 fi
2520 if test "X$duplicate_deps" = "Xyes" ; then
5494 if $opt_duplicate_deps ; then
25215495 case "$tmp_libs " in
25225496 *" $deplib "*) specialdeplibs="$specialdeplibs $deplib" ;;
25235497 esac
25305504 if test "$linkmode,$pass" = "prog,link"; then
25315505 if test -n "$library_names" &&
25325506 { { test "$prefer_static_libs" = no ||
2533 test "$prefer_static_libs,$installed" = "built,yes"; } ||
5507 test "$prefer_static_libs,$installed" = "built,yes"; } ||
25345508 test -z "$old_library"; }; then
25355509 # We need to hardcode the library path
25365510 if test -n "$shlibpath_var" && test -z "$avoidtemprpath" ; then
25375511 # Make sure the rpath contains only unique directories.
2538 case "$temp_rpath " in
2539 *" $dir "*) ;;
2540 *" $absdir "*) ;;
2541 *) temp_rpath="$temp_rpath $absdir" ;;
5512 case "$temp_rpath:" in
5513 *"$absdir:"*) ;;
5514 *) temp_rpath="$temp_rpath$absdir:" ;;
25425515 esac
25435516 fi
25445517
25765549
25775550 link_static=no # Whether the deplib will be linked statically
25785551 use_static_libs=$prefer_static_libs
2579 if test "$use_static_libs" = built && test "$installed" = yes ; then
5552 if test "$use_static_libs" = built && test "$installed" = yes; then
25805553 use_static_libs=no
25815554 fi
25825555 if test -n "$library_names" &&
25835556 { test "$use_static_libs" = no || test -z "$old_library"; }; then
2584 if test "$installed" = no; then
2585 notinst_deplibs="$notinst_deplibs $lib"
2586 need_relink=yes
2587 fi
5557 case $host in
5558 *cygwin* | *mingw* | *cegcc*)
5559 # No point in relinking DLLs because paths are not encoded
5560 notinst_deplibs="$notinst_deplibs $lib"
5561 need_relink=no
5562 ;;
5563 *)
5564 if test "$installed" = no; then
5565 notinst_deplibs="$notinst_deplibs $lib"
5566 need_relink=yes
5567 fi
5568 ;;
5569 esac
25885570 # This is a shared library
25895571
2590 # Warn about portability, can't link against -module's on
2591 # some systems (darwin)
2592 if test "$shouldnotlink" = yes && test "$pass" = link ; then
2593 $echo
5572 # Warn about portability, can't link against -module's on some
5573 # systems (darwin). Don't bleat about dlopened modules though!
5574 dlopenmodule=""
5575 for dlpremoduletest in $dlprefiles; do
5576 if test "X$dlpremoduletest" = "X$lib"; then
5577 dlopenmodule="$dlpremoduletest"
5578 break
5579 fi
5580 done
5581 if test -z "$dlopenmodule" && test "$shouldnotlink" = yes && test "$pass" = link; then
5582 $ECHO
25945583 if test "$linkmode" = prog; then
2595 $echo "*** Warning: Linking the executable $output against the loadable module"
5584 $ECHO "*** Warning: Linking the executable $output against the loadable module"
25965585 else
2597 $echo "*** Warning: Linking the shared library $output against the loadable module"
5586 $ECHO "*** Warning: Linking the shared library $output against the loadable module"
25985587 fi
2599 $echo "*** $linklib is not portable!"
5588 $ECHO "*** $linklib is not portable!"
26005589 fi
26015590 if test "$linkmode" = lib &&
26025591 test "$hardcode_into_libs" = yes; then
26265615 if test -n "$old_archive_from_expsyms_cmds"; then
26275616 # figure out the soname
26285617 set dummy $library_names
2629 realname="$2"
2630 shift; shift
2631 libname=`eval \\$echo \"$libname_spec\"`
5618 shift
5619 realname="$1"
5620 shift
5621 libname=`eval "\\$ECHO \"$libname_spec\""`
26325622 # use dlname if we got it. it's perfectly good, no?
26335623 if test -n "$dlname"; then
26345624 soname="$dlname"
26355625 elif test -n "$soname_spec"; then
26365626 # bleh windows
26375627 case $host in
2638 *cygwin* | mingw*)
2639 major=`expr $current - $age`
5628 *cygwin* | mingw* | *cegcc*)
5629 func_arith $current - $age
5630 major=$func_arith_result
26405631 versuffix="-$major"
26415632 ;;
26425633 esac
26475638
26485639 # Make a new name for the extract_expsyms_cmds to use
26495640 soroot="$soname"
2650 soname=`$echo $soroot | ${SED} -e 's/^.*\///'`
2651 newlib="libimp-`$echo $soname | ${SED} 's/^lib//;s/\.dll$//'`.a"
5641 func_basename "$soroot"
5642 soname="$func_basename_result"
5643 func_stripname 'lib' '.dll' "$soname"
5644 newlib=libimp-$func_stripname_result.a
26525645
26535646 # If the library has no export list, then create one now
26545647 if test -f "$output_objdir/$soname-def"; then :
26555648 else
2656 $show "extracting exported symbol list from \`$soname'"
2657 save_ifs="$IFS"; IFS='~'
2658 cmds=$extract_expsyms_cmds
2659 for cmd in $cmds; do
2660 IFS="$save_ifs"
2661 eval cmd=\"$cmd\"
2662 $show "$cmd"
2663 $run eval "$cmd" || exit $?
2664 done
2665 IFS="$save_ifs"
5649 func_verbose "extracting exported symbol list from \`$soname'"
5650 func_execute_cmds "$extract_expsyms_cmds" 'exit $?'
26665651 fi
26675652
26685653 # Create $newlib
26695654 if test -f "$output_objdir/$newlib"; then :; else
2670 $show "generating import library for \`$soname'"
2671 save_ifs="$IFS"; IFS='~'
2672 cmds=$old_archive_from_expsyms_cmds
2673 for cmd in $cmds; do
2674 IFS="$save_ifs"
2675 eval cmd=\"$cmd\"
2676 $show "$cmd"
2677 $run eval "$cmd" || exit $?
2678 done
2679 IFS="$save_ifs"
5655 func_verbose "generating import library for \`$soname'"
5656 func_execute_cmds "$old_archive_from_expsyms_cmds" 'exit $?'
26805657 fi
26815658 # make sure the library variables are pointing to the new library
26825659 dir=$output_objdir
26985675 *-*-sysv5OpenUNIX* | *-*-sysv5UnixWare7.[01].[10]* | \
26995676 *-*-unixware7*) add_dir="-L$dir" ;;
27005677 *-*-darwin* )
2701 # if the lib is a module then we can not link against
2702 # it, someone is ignoring the new warnings I added
5678 # if the lib is a (non-dlopened) module then we can not
5679 # link against it, someone is ignoring the earlier warnings
27035680 if /usr/bin/file -L $add 2> /dev/null |
2704 $EGREP ": [^:]* bundle" >/dev/null ; then
2705 $echo "** Warning, lib $linklib is a module, not a shared library"
2706 if test -z "$old_library" ; then
2707 $echo
2708 $echo "** And there doesn't seem to be a static archive available"
2709 $echo "** The link will probably fail, sorry"
2710 else
2711 add="$dir/$old_library"
5681 $GREP ": [^:]* bundle" >/dev/null ; then
5682 if test "X$dlopenmodule" != "X$lib"; then
5683 $ECHO "*** Warning: lib $linklib is a module, not a shared library"
5684 if test -z "$old_library" ; then
5685 $ECHO
5686 $ECHO "*** And there doesn't seem to be a static archive available"
5687 $ECHO "*** The link will probably fail, sorry"
5688 else
5689 add="$dir/$old_library"
5690 fi
5691 elif test -n "$old_library"; then
5692 add="$dir/$old_library"
27125693 fi
27135694 fi
27145695 esac
27265707 fi
27275708 ;;
27285709 relink)
2729 if test "$hardcode_direct" = yes; then
5710 if test "$hardcode_direct" = yes &&
5711 test "$hardcode_direct_absolute" = no; then
27305712 add="$dir/$linklib"
27315713 elif test "$hardcode_minus_L" = yes; then
27325714 add_dir="-L$dir"
27505732 esac
27515733
27525734 if test "$lib_linked" != yes; then
2753 $echo "$modename: configuration error: unsupported hardcode properties"
2754 exit $EXIT_FAILURE
5735 func_fatal_configuration "unsupported hardcode properties"
27555736 fi
27565737
27575738 if test -n "$add_shlibpath"; then
27665747 else
27675748 test -n "$add_dir" && deplibs="$add_dir $deplibs"
27685749 test -n "$add" && deplibs="$add $deplibs"
2769 if test "$hardcode_direct" != yes && \
2770 test "$hardcode_minus_L" != yes && \
5750 if test "$hardcode_direct" != yes &&
5751 test "$hardcode_minus_L" != yes &&
27715752 test "$hardcode_shlibpath_var" = yes; then
27725753 case :$finalize_shlibpath: in
27735754 *":$libdir:"*) ;;
27825763 add_dir=
27835764 add=
27845765 # Finalize command for both is simple: just hardcode it.
2785 if test "$hardcode_direct" = yes; then
5766 if test "$hardcode_direct" = yes &&
5767 test "$hardcode_direct_absolute" = no; then
27865768 add="$libdir/$linklib"
27875769 elif test "$hardcode_minus_L" = yes; then
27885770 add_dir="-L$libdir"
27965778 elif test "$hardcode_automatic" = yes; then
27975779 if test -n "$inst_prefix_dir" &&
27985780 test -f "$inst_prefix_dir$libdir/$linklib" ; then
2799 add="$inst_prefix_dir$libdir/$linklib"
5781 add="$inst_prefix_dir$libdir/$linklib"
28005782 else
2801 add="$libdir/$linklib"
5783 add="$libdir/$linklib"
28025784 fi
28035785 else
28045786 # We cannot seem to hardcode it, guess we'll fake it.
28425824
28435825 # Just print a warning and add the library to dependency_libs so
28445826 # that the program can be linked against the static library.
2845 $echo
2846 $echo "*** Warning: This system can not link to static lib archive $lib."
2847 $echo "*** I have the capability to make that library automatically link in when"
2848 $echo "*** you link to this library. But I can only do this if you have a"
2849 $echo "*** shared version of the library, which you do not appear to have."
5827 $ECHO
5828 $ECHO "*** Warning: This system can not link to static lib archive $lib."
5829 $ECHO "*** I have the capability to make that library automatically link in when"
5830 $ECHO "*** you link to this library. But I can only do this if you have a"
5831 $ECHO "*** shared version of the library, which you do not appear to have."
28505832 if test "$module" = yes; then
2851 $echo "*** But as you try to build a module library, libtool will still create "
2852 $echo "*** a static module, that should work as long as the dlopening application"
2853 $echo "*** is linked with the -dlopen flag to resolve symbols at runtime."
5833 $ECHO "*** But as you try to build a module library, libtool will still create "
5834 $ECHO "*** a static module, that should work as long as the dlopening application"
5835 $ECHO "*** is linked with the -dlopen flag to resolve symbols at runtime."
28545836 if test -z "$global_symbol_pipe"; then
2855 $echo
2856 $echo "*** However, this would only work if libtool was able to extract symbol"
2857 $echo "*** lists from a program, using \`nm' or equivalent, but libtool could"
2858 $echo "*** not find such a program. So, this module is probably useless."
2859 $echo "*** \`nm' from GNU binutils and a full rebuild may help."
5837 $ECHO
5838 $ECHO "*** However, this would only work if libtool was able to extract symbol"
5839 $ECHO "*** lists from a program, using \`nm' or equivalent, but libtool could"
5840 $ECHO "*** not find such a program. So, this module is probably useless."
5841 $ECHO "*** \`nm' from GNU binutils and a full rebuild may help."
28605842 fi
28615843 if test "$build_old_libs" = no; then
28625844 build_libtool_libs=module
28805862 temp_deplibs=
28815863 for libdir in $dependency_libs; do
28825864 case $libdir in
2883 -R*) temp_xrpath=`$echo "X$libdir" | $Xsed -e 's/^-R//'`
5865 -R*) func_stripname '-R' '' "$libdir"
5866 temp_xrpath=$func_stripname_result
28845867 case " $xrpath " in
28855868 *" $temp_xrpath "*) ;;
28865869 *) xrpath="$xrpath $temp_xrpath";;
28985881 tmp_libs=
28995882 for deplib in $dependency_libs; do
29005883 newdependency_libs="$deplib $newdependency_libs"
2901 if test "X$duplicate_deps" = "Xyes" ; then
5884 if $opt_duplicate_deps ; then
29025885 case "$tmp_libs " in
29035886 *" $deplib "*) specialdeplibs="$specialdeplibs $deplib" ;;
29045887 esac
29125895 case $deplib in
29135896 -L*) path="$deplib" ;;
29145897 *.la)
2915 dir=`$echo "X$deplib" | $Xsed -e 's%/[^/]*$%%'`
2916 test "X$dir" = "X$deplib" && dir="."
5898 func_dirname "$deplib" "" "."
5899 dir="$func_dirname_result"
29175900 # We need an absolute path.
29185901 case $dir in
29195902 [\\/]* | [A-Za-z]:[\\/]*) absdir="$dir" ;;
29205903 *)
29215904 absdir=`cd "$dir" && pwd`
29225905 if test -z "$absdir"; then
2923 $echo "$modename: warning: cannot determine absolute directory name of \`$dir'" 1>&2
5906 func_warning "cannot determine absolute directory name of \`$dir'"
29245907 absdir="$dir"
29255908 fi
29265909 ;;
29275910 esac
2928 if grep "^installed=no" $deplib > /dev/null; then
2929 path="$absdir/$objdir"
2930 else
2931 eval libdir=`${SED} -n -e 's/^libdir=\(.*\)$/\1/p' $deplib`
2932 if test -z "$libdir"; then
2933 $echo "$modename: \`$deplib' is not a valid libtool archive" 1>&2
2934 exit $EXIT_FAILURE
2935 fi
2936 if test "$absdir" != "$libdir"; then
2937 $echo "$modename: warning: \`$deplib' seems to be moved" 1>&2
2938 fi
2939 path="$absdir"
2940 fi
2941 depdepl=
5911 if $GREP "^installed=no" $deplib > /dev/null; then
29425912 case $host in
29435913 *-*-darwin*)
2944 # we do not want to link against static libs,
2945 # but need to link against shared
5914 depdepl=
29465915 eval deplibrary_names=`${SED} -n -e 's/^library_names=\(.*\)$/\1/p' $deplib`
29475916 if test -n "$deplibrary_names" ; then
29485917 for tmp in $deplibrary_names ; do
29495918 depdepl=$tmp
29505919 done
2951 if test -f "$path/$depdepl" ; then
2952 depdepl="$path/$depdepl"
5920 if test -f "$absdir/$objdir/$depdepl" ; then
5921 depdepl="$absdir/$objdir/$depdepl"
5922 darwin_install_name=`${OTOOL} -L $depdepl | awk '{if (NR == 2) {print $1;exit}}'`
5923 if test -z "$darwin_install_name"; then
5924 darwin_install_name=`${OTOOL64} -L $depdepl | awk '{if (NR == 2) {print $1;exit}}'`
5925 fi
5926 compiler_flags="$compiler_flags ${wl}-dylib_file ${wl}${darwin_install_name}:${depdepl}"
5927 linker_flags="$linker_flags -dylib_file ${darwin_install_name}:${depdepl}"
5928 path=
29535929 fi
2954 # do not add paths which are already there
2955 case " $newlib_search_path " in
2956 *" $path "*) ;;
2957 *) newlib_search_path="$newlib_search_path $path";;
2958 esac
29595930 fi
2960 path=""
29615931 ;;
29625932 *)
2963 path="-L$path"
5933 path="-L$absdir/$objdir"
29645934 ;;
29655935 esac
5936 else
5937 eval libdir=`${SED} -n -e 's/^libdir=\(.*\)$/\1/p' $deplib`
5938 test -z "$libdir" && \
5939 func_fatal_error "\`$deplib' is not a valid libtool archive"
5940 test "$absdir" != "$libdir" && \
5941 func_warning "\`$deplib' seems to be moved"
5942
5943 path="-L$absdir"
5944 fi
29665945 ;;
2967 -l*)
2968 case $host in
2969 *-*-darwin*)
2970 # Again, we only want to link against shared libraries
2971 eval tmp_libs=`$echo "X$deplib" | $Xsed -e "s,^\-l,,"`
2972 for tmp in $newlib_search_path ; do
2973 if test -f "$tmp/lib$tmp_libs.dylib" ; then
2974 eval depdepl="$tmp/lib$tmp_libs.dylib"
2975 break
2976 fi
2977 done
2978 path=""
2979 ;;
2980 *) continue ;;
2981 esac
2982 ;;
2983 *) continue ;;
29845946 esac
29855947 case " $deplibs " in
29865948 *" $path "*) ;;
29875949 *) deplibs="$path $deplibs" ;;
29885950 esac
2989 case " $deplibs " in
2990 *" $depdepl "*) ;;
2991 *) deplibs="$depdepl $deplibs" ;;
2992 esac
29935951 done
29945952 fi # link_all_deplibs != no
29955953 fi # linkmode = lib
29965954 done # for deplib in $libs
5955 if test "$pass" = link; then
5956 if test "$linkmode" = "prog"; then
5957 compile_deplibs="$new_inherited_linker_flags $compile_deplibs"
5958 finalize_deplibs="$new_inherited_linker_flags $finalize_deplibs"
5959 else
5960 compiler_flags="$compiler_flags "`$ECHO "X $new_inherited_linker_flags" | $Xsed -e 's% \([^ $]*\).ltframework% -framework \1%g'`
5961 fi
5962 fi
29975963 dependency_libs="$newdependency_libs"
29985964 if test "$pass" = dlpreopen; then
29995965 # Link the dlpreopened libraries before other libraries
30926058 done # for pass
30936059 if test "$linkmode" = prog; then
30946060 dlfiles="$newdlfiles"
6061 fi
6062 if test "$linkmode" = prog || test "$linkmode" = lib; then
30956063 dlprefiles="$newdlprefiles"
30966064 fi
30976065
30986066 case $linkmode in
30996067 oldlib)
3100 if test -n "$deplibs"; then
3101 $echo "$modename: warning: \`-l' and \`-L' are ignored for archives" 1>&2
6068 if test -n "$dlfiles$dlprefiles" || test "$dlself" != no; then
6069 func_warning "\`-dlopen' is ignored for archives"
31026070 fi
31036071
3104 if test -n "$dlfiles$dlprefiles" || test "$dlself" != no; then
3105 $echo "$modename: warning: \`-dlopen' is ignored for archives" 1>&2
3106 fi
3107
3108 if test -n "$rpath"; then
3109 $echo "$modename: warning: \`-rpath' is ignored for archives" 1>&2
3110 fi
3111
3112 if test -n "$xrpath"; then
3113 $echo "$modename: warning: \`-R' is ignored for archives" 1>&2
3114 fi
3115
3116 if test -n "$vinfo"; then
3117 $echo "$modename: warning: \`-version-info/-version-number' is ignored for archives" 1>&2
3118 fi
3119
3120 if test -n "$release"; then
3121 $echo "$modename: warning: \`-release' is ignored for archives" 1>&2
3122 fi
3123
3124 if test -n "$export_symbols" || test -n "$export_symbols_regex"; then
3125 $echo "$modename: warning: \`-export-symbols' is ignored for archives" 1>&2
3126 fi
6072 case " $deplibs" in
6073 *\ -l* | *\ -L*)
6074 func_warning "\`-l' and \`-L' are ignored for archives" ;;
6075 esac
6076
6077 test -n "$rpath" && \
6078 func_warning "\`-rpath' is ignored for archives"
6079
6080 test -n "$xrpath" && \
6081 func_warning "\`-R' is ignored for archives"
6082
6083 test -n "$vinfo" && \
6084 func_warning "\`-version-info/-version-number' is ignored for archives"
6085
6086 test -n "$release" && \
6087 func_warning "\`-release' is ignored for archives"
6088
6089 test -n "$export_symbols$export_symbols_regex" && \
6090 func_warning "\`-export-symbols' is ignored for archives"
31276091
31286092 # Now set the variables for building old libraries.
31296093 build_libtool_libs=no
31356099 # Make sure we only generate libraries of the form `libNAME.la'.
31366100 case $outputname in
31376101 lib*)
3138 name=`$echo "X$outputname" | $Xsed -e 's/\.la$//' -e 's/^lib//'`
6102 func_stripname 'lib' '.la' "$outputname"
6103 name=$func_stripname_result
31396104 eval shared_ext=\"$shrext_cmds\"
31406105 eval libname=\"$libname_spec\"
31416106 ;;
31426107 *)
3143 if test "$module" = no; then
3144 $echo "$modename: libtool library \`$output' must begin with \`lib'" 1>&2
3145 $echo "$help" 1>&2
3146 exit $EXIT_FAILURE
3147 fi
6108 test "$module" = no && \
6109 func_fatal_help "libtool library \`$output' must begin with \`lib'"
6110
31486111 if test "$need_lib_prefix" != no; then
31496112 # Add the "lib" prefix for modules if required
3150 name=`$echo "X$outputname" | $Xsed -e 's/\.la$//'`
6113 func_stripname '' '.la' "$outputname"
6114 name=$func_stripname_result
31516115 eval shared_ext=\"$shrext_cmds\"
31526116 eval libname=\"$libname_spec\"
31536117 else
3154 libname=`$echo "X$outputname" | $Xsed -e 's/\.la$//'`
6118 func_stripname '' '.la' "$outputname"
6119 libname=$func_stripname_result
31556120 fi
31566121 ;;
31576122 esac
31586123
31596124 if test -n "$objs"; then
31606125 if test "$deplibs_check_method" != pass_all; then
3161 $echo "$modename: cannot build libtool library \`$output' from non-libtool objects on this host:$objs" 2>&1
3162 exit $EXIT_FAILURE
6126 func_fatal_error "cannot build libtool library \`$output' from non-libtool objects on this host:$objs"
31636127 else
3164 $echo
3165 $echo "*** Warning: Linking the shared library $output against the non-libtool"
3166 $echo "*** objects $objs is not portable!"
6128 $ECHO
6129 $ECHO "*** Warning: Linking the shared library $output against the non-libtool"
6130 $ECHO "*** objects $objs is not portable!"
31676131 libobjs="$libobjs $objs"
31686132 fi
31696133 fi
31706134
3171 if test "$dlself" != no; then
3172 $echo "$modename: warning: \`-dlopen self' is ignored for libtool libraries" 1>&2
3173 fi
6135 test "$dlself" != no && \
6136 func_warning "\`-dlopen self' is ignored for libtool libraries"
31746137
31756138 set dummy $rpath
3176 if test "$#" -gt 2; then
3177 $echo "$modename: warning: ignoring multiple \`-rpath's for a libtool library" 1>&2
3178 fi
3179 install_libdir="$2"
6139 shift
6140 test "$#" -gt 1 && \
6141 func_warning "ignoring multiple \`-rpath's for a libtool library"
6142
6143 install_libdir="$1"
31806144
31816145 oldlibs=
31826146 if test -z "$rpath"; then
31906154 build_old_libs=yes
31916155 fi
31926156
3193 if test -n "$vinfo"; then
3194 $echo "$modename: warning: \`-version-info/-version-number' is ignored for convenience libraries" 1>&2
3195 fi
3196
3197 if test -n "$release"; then
3198 $echo "$modename: warning: \`-release' is ignored for convenience libraries" 1>&2
3199 fi
6157 test -n "$vinfo" && \
6158 func_warning "\`-version-info/-version-number' is ignored for convenience libraries"
6159
6160 test -n "$release" && \
6161 func_warning "\`-release' is ignored for convenience libraries"
32006162 else
32016163
32026164 # Parse the version information argument.
32036165 save_ifs="$IFS"; IFS=':'
32046166 set dummy $vinfo 0 0 0
6167 shift
32056168 IFS="$save_ifs"
32066169
3207 if test -n "$8"; then
3208 $echo "$modename: too many parameters to \`-version-info'" 1>&2
3209 $echo "$help" 1>&2
3210 exit $EXIT_FAILURE
3211 fi
6170 test -n "$7" && \
6171 func_fatal_help "too many parameters to \`-version-info'"
32126172
32136173 # convert absolute version numbers to libtool ages
32146174 # this retains compatibility with .la files and attempts
32166176
32176177 case $vinfo_number in
32186178 yes)
3219 number_major="$2"
3220 number_minor="$3"
3221 number_revision="$4"
6179 number_major="$1"
6180 number_minor="$2"
6181 number_revision="$3"
32226182 #
32236183 # There are really only two kinds -- those that
32246184 # use the current revision as the major version
32286188 #
32296189 case $version_type in
32306190 darwin|linux|osf|windows|none)
3231 current=`expr $number_major + $number_minor`
6191 func_arith $number_major + $number_minor
6192 current=$func_arith_result
32326193 age="$number_minor"
32336194 revision="$number_revision"
32346195 ;;
32386199 age="0"
32396200 ;;
32406201 irix|nonstopux)
3241 current=`expr $number_major + $number_minor`
6202 func_arith $number_major + $number_minor
6203 current=$func_arith_result
32426204 age="$number_minor"
32436205 revision="$number_minor"
32446206 lt_irix_increment=no
32466208 esac
32476209 ;;
32486210 no)
3249 current="$2"
3250 revision="$3"
3251 age="$4"
6211 current="$1"
6212 revision="$2"
6213 age="$3"
32526214 ;;
32536215 esac
32546216
32566218 case $current in
32576219 0|[1-9]|[1-9][0-9]|[1-9][0-9][0-9]|[1-9][0-9][0-9][0-9]|[1-9][0-9][0-9][0-9][0-9]) ;;
32586220 *)
3259 $echo "$modename: CURRENT \`$current' must be a nonnegative integer" 1>&2
3260 $echo "$modename: \`$vinfo' is not valid version information" 1>&2
3261 exit $EXIT_FAILURE
6221 func_error "CURRENT \`$current' must be a nonnegative integer"
6222 func_fatal_error "\`$vinfo' is not valid version information"
32626223 ;;
32636224 esac
32646225
32656226 case $revision in
32666227 0|[1-9]|[1-9][0-9]|[1-9][0-9][0-9]|[1-9][0-9][0-9][0-9]|[1-9][0-9][0-9][0-9][0-9]) ;;
32676228 *)
3268 $echo "$modename: REVISION \`$revision' must be a nonnegative integer" 1>&2
3269 $echo "$modename: \`$vinfo' is not valid version information" 1>&2
3270 exit $EXIT_FAILURE
6229 func_error "REVISION \`$revision' must be a nonnegative integer"
6230 func_fatal_error "\`$vinfo' is not valid version information"
32716231 ;;
32726232 esac
32736233
32746234 case $age in
32756235 0|[1-9]|[1-9][0-9]|[1-9][0-9][0-9]|[1-9][0-9][0-9][0-9]|[1-9][0-9][0-9][0-9][0-9]) ;;
32766236 *)
3277 $echo "$modename: AGE \`$age' must be a nonnegative integer" 1>&2
3278 $echo "$modename: \`$vinfo' is not valid version information" 1>&2
3279 exit $EXIT_FAILURE
6237 func_error "AGE \`$age' must be a nonnegative integer"
6238 func_fatal_error "\`$vinfo' is not valid version information"
32806239 ;;
32816240 esac
32826241
32836242 if test "$age" -gt "$current"; then
3284 $echo "$modename: AGE \`$age' is greater than the current interface number \`$current'" 1>&2
3285 $echo "$modename: \`$vinfo' is not valid version information" 1>&2
3286 exit $EXIT_FAILURE
6243 func_error "AGE \`$age' is greater than the current interface number \`$current'"
6244 func_fatal_error "\`$vinfo' is not valid version information"
32876245 fi
32886246
32896247 # Calculate the version variables.
32966254 darwin)
32976255 # Like Linux, but with the current version available in
32986256 # verstring for coding it into the library header
3299 major=.`expr $current - $age`
6257 func_arith $current - $age
6258 major=.$func_arith_result
33006259 versuffix="$major.$age.$revision"
33016260 # Darwin ld doesn't like 0 for these options...
3302 minor_current=`expr $current + 1`
6261 func_arith $current + 1
6262 minor_current=$func_arith_result
33036263 xlcverstring="${wl}-compatibility_version ${wl}$minor_current ${wl}-current_version ${wl}$minor_current.$revision"
33046264 verstring="-compatibility_version $minor_current -current_version $minor_current.$revision"
33056265 ;;
33116271
33126272 freebsd-elf)
33136273 major=".$current"
3314 versuffix=".$current";
6274 versuffix=".$current"
33156275 ;;
33166276
33176277 irix | nonstopux)
33186278 if test "X$lt_irix_increment" = "Xno"; then
3319 major=`expr $current - $age`
6279 func_arith $current - $age
33206280 else
3321 major=`expr $current - $age + 1`
6281 func_arith $current - $age + 1
33226282 fi
6283 major=$func_arith_result
6284
33236285 case $version_type in
33246286 nonstopux) verstring_prefix=nonstopux ;;
33256287 *) verstring_prefix=sgi ;;
33296291 # Add in all the interfaces that we are compatible with.
33306292 loop=$revision
33316293 while test "$loop" -ne 0; do
3332 iface=`expr $revision - $loop`
3333 loop=`expr $loop - 1`
6294 func_arith $revision - $loop
6295 iface=$func_arith_result
6296 func_arith $loop - 1
6297 loop=$func_arith_result
33346298 verstring="$verstring_prefix$major.$iface:$verstring"
33356299 done
33366300
33406304 ;;
33416305
33426306 linux)
3343 major=.`expr $current - $age`
6307 func_arith $current - $age
6308 major=.$func_arith_result
33446309 versuffix="$major.$age.$revision"
33456310 ;;
33466311
33476312 osf)
3348 major=.`expr $current - $age`
6313 func_arith $current - $age
6314 major=.$func_arith_result
33496315 versuffix=".$current.$age.$revision"
33506316 verstring="$current.$age.$revision"
33516317
33526318 # Add in all the interfaces that we are compatible with.
33536319 loop=$age
33546320 while test "$loop" -ne 0; do
3355 iface=`expr $current - $loop`
3356 loop=`expr $loop - 1`
6321 func_arith $current - $loop
6322 iface=$func_arith_result
6323 func_arith $loop - 1
6324 loop=$func_arith_result
33576325 verstring="$verstring:${iface}.0"
33586326 done
33596327
33606328 # Make executables depend on our current version.
33616329 verstring="$verstring:${current}.0"
6330 ;;
6331
6332 qnx)
6333 major=".$current"
6334 versuffix=".$current"
33626335 ;;
33636336
33646337 sunos)
33696342 windows)
33706343 # Use '-' rather than '.', since we only want one
33716344 # extension on DOS 8.3 filesystems.
3372 major=`expr $current - $age`
6345 func_arith $current - $age
6346 major=$func_arith_result
33736347 versuffix="-$major"
33746348 ;;
33756349
33766350 *)
3377 $echo "$modename: unknown library version type \`$version_type'" 1>&2
3378 $echo "Fatal configuration error. See the $PACKAGE docs for more information." 1>&2
3379 exit $EXIT_FAILURE
6351 func_fatal_configuration "unknown library version type \`$version_type'"
33806352 ;;
33816353 esac
33826354
34106382 # Check to see if the archive will have undefined symbols.
34116383 if test "$allow_undefined" = yes; then
34126384 if test "$allow_undefined_flag" = unsupported; then
3413 $echo "$modename: warning: undefined symbols not allowed in $host shared libraries" 1>&2
6385 func_warning "undefined symbols not allowed in $host shared libraries"
34146386 build_libtool_libs=no
34156387 build_old_libs=yes
34166388 fi
34186390 # Don't allow undefined symbols.
34196391 allow_undefined_flag="$no_undefined_flag"
34206392 fi
6393
34216394 fi
6395
6396 func_generate_dlsyms "$libname" "$libname" "yes"
6397 libobjs="$libobjs $symfileobj"
6398 test "X$libobjs" = "X " && libobjs=
34226399
34236400 if test "$mode" != relink; then
34246401 # Remove our outputs, but don't remove object files since they
34256402 # may have been created when compiling PIC objects.
34266403 removelist=
3427 tempremovelist=`$echo "$output_objdir/*"`
6404 tempremovelist=`$ECHO "$output_objdir/*"`
34286405 for p in $tempremovelist; do
34296406 case $p in
3430 *.$objext)
6407 *.$objext | *.gcno)
34316408 ;;
34326409 $output_objdir/$outputname | $output_objdir/$libname.* | $output_objdir/${libname}${release}.*)
34336410 if test "X$precious_files_regex" != "X"; then
3434 if echo $p | $EGREP -e "$precious_files_regex" >/dev/null 2>&1
3435 then
6411 if $ECHO "$p" | $EGREP -e "$precious_files_regex" >/dev/null 2>&1
6412 then
34366413 continue
34376414 fi
34386415 fi
34416418 *) ;;
34426419 esac
34436420 done
3444 if test -n "$removelist"; then
3445 $show "${rm}r $removelist"
3446 $run ${rm}r $removelist
3447 fi
6421 test -n "$removelist" && \
6422 func_show_eval "${RM}r \$removelist"
34486423 fi
34496424
34506425 # Now set the variables for building old libraries.
34526427 oldlibs="$oldlibs $output_objdir/$libname.$libext"
34536428
34546429 # Transform .lo files to .o files.
3455 oldobjs="$objs "`$echo "X$libobjs" | $SP2NL | $Xsed -e '/\.'${libext}'$/d' -e "$lo2o" | $NL2SP`
6430 oldobjs="$objs "`$ECHO "X$libobjs" | $SP2NL | $Xsed -e '/\.'${libext}'$/d' -e "$lo2o" | $NL2SP`
34566431 fi
34576432
34586433 # Eliminate all temporary directories.
34596434 #for path in $notinst_path; do
3460 # lib_search_path=`$echo "$lib_search_path " | ${SED} -e "s% $path % %g"`
3461 # deplibs=`$echo "$deplibs " | ${SED} -e "s% -L$path % %g"`
3462 # dependency_libs=`$echo "$dependency_libs " | ${SED} -e "s% -L$path % %g"`
6435 # lib_search_path=`$ECHO "X$lib_search_path " | $Xsed -e "s% $path % %g"`
6436 # deplibs=`$ECHO "X$deplibs " | $Xsed -e "s% -L$path % %g"`
6437 # dependency_libs=`$ECHO "X$dependency_libs " | $Xsed -e "s% -L$path % %g"`
34636438 #done
34646439
34656440 if test -n "$xrpath"; then
35006475 if test "$build_libtool_libs" = yes; then
35016476 if test -n "$rpath"; then
35026477 case $host in
3503 *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2* | *-*-beos*)
6478 *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2* | *-*-beos* | *-cegcc*)
35046479 # these systems don't actually have a c library (as such)!
35056480 ;;
35066481 *-*-rhapsody* | *-*-darwin1.[012])
35076482 # Rhapsody C library is in the System framework
3508 deplibs="$deplibs -framework System"
6483 deplibs="$deplibs System.ltframework"
35096484 ;;
35106485 *-*-netbsd*)
35116486 # Don't link with libc until the a.out ld.so is fixed.
35196494 *-*-sysv4.2uw2* | *-*-sysv5* | *-*-unixware* | *-*-OpenUNIX*)
35206495 # Compiler inserts libc in the correct place for threads to work
35216496 ;;
3522 *)
6497 *)
35236498 # Add libc to deplibs on all other systems if necessary.
35246499 if test "$build_libtool_need_lc" = "yes"; then
35256500 deplibs="$deplibs -lc"
35566531 # limits. Maybe even breaks it. We compile a program, linking it
35576532 # against the deplibs as a proxy for the library. Then we can check
35586533 # whether they linked in statically or dynamically with ldd.
3559 $rm conftest.c
6534 $opt_dry_run || $RM conftest.c
35606535 cat > conftest.c <<EOF
35616536 int main() { return 0; }
35626537 EOF
3563 $rm conftest
6538 $opt_dry_run || $RM conftest
35646539 if $LTCC $LTCFLAGS -o conftest conftest.c $deplibs; then
35656540 ldd_output=`ldd conftest`
35666541 for i in $deplibs; do
3567 name=`expr $i : '-l\(.*\)'`
3568 # If $name is empty we are operating on a -L argument.
3569 if test "$name" != "" && test "$name" != "0"; then
6542 case $i in
6543 -l*)
6544 func_stripname -l '' "$i"
6545 name=$func_stripname_result
35706546 if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then
35716547 case " $predeps $postdeps " in
35726548 *" $i "*)
35746550 i=""
35756551 ;;
35766552 esac
3577 fi
6553 fi
35786554 if test -n "$i" ; then
3579 libname=`eval \\$echo \"$libname_spec\"`
3580 deplib_matches=`eval \\$echo \"$library_names_spec\"`
3581 set dummy $deplib_matches
3582 deplib_match=$2
6555 libname=`eval "\\$ECHO \"$libname_spec\""`
6556 deplib_matches=`eval "\\$ECHO \"$library_names_spec\""`
6557 set dummy $deplib_matches; shift
6558 deplib_match=$1
35836559 if test `expr "$ldd_output" : ".*$deplib_match"` -ne 0 ; then
35846560 newdeplibs="$newdeplibs $i"
35856561 else
35866562 droppeddeps=yes
3587 $echo
3588 $echo "*** Warning: dynamic linker does not accept needed library $i."
3589 $echo "*** I have the capability to make that library automatically link in when"
3590 $echo "*** you link to this library. But I can only do this if you have a"
3591 $echo "*** shared version of the library, which I believe you do not have"
3592 $echo "*** because a test_compile did reveal that the linker did not use it for"
3593 $echo "*** its dynamic dependency list that programs get resolved with at runtime."
6563 $ECHO
6564 $ECHO "*** Warning: dynamic linker does not accept needed library $i."
6565 $ECHO "*** I have the capability to make that library automatically link in when"
6566 $ECHO "*** you link to this library. But I can only do this if you have a"
6567 $ECHO "*** shared version of the library, which I believe you do not have"
6568 $ECHO "*** because a test_compile did reveal that the linker did not use it for"
6569 $ECHO "*** its dynamic dependency list that programs get resolved with at runtime."
35946570 fi
35956571 fi
3596 else
6572 ;;
6573 *)
35976574 newdeplibs="$newdeplibs $i"
3598 fi
6575 ;;
6576 esac
35996577 done
36006578 else
36016579 # Error occurred in the first compile. Let's try to salvage
36026580 # the situation: Compile a separate program for each library.
36036581 for i in $deplibs; do
3604 name=`expr $i : '-l\(.*\)'`
3605 # If $name is empty we are operating on a -L argument.
3606 if test "$name" != "" && test "$name" != "0"; then
3607 $rm conftest
6582 case $i in
6583 -l*)
6584 func_stripname -l '' "$i"
6585 name=$func_stripname_result
6586 $opt_dry_run || $RM conftest
36086587 if $LTCC $LTCFLAGS -o conftest conftest.c $i; then
36096588 ldd_output=`ldd conftest`
36106589 if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then
36166595 esac
36176596 fi
36186597 if test -n "$i" ; then
3619 libname=`eval \\$echo \"$libname_spec\"`
3620 deplib_matches=`eval \\$echo \"$library_names_spec\"`
3621 set dummy $deplib_matches
3622 deplib_match=$2
6598 libname=`eval "\\$ECHO \"$libname_spec\""`
6599 deplib_matches=`eval "\\$ECHO \"$library_names_spec\""`
6600 set dummy $deplib_matches; shift
6601 deplib_match=$1
36236602 if test `expr "$ldd_output" : ".*$deplib_match"` -ne 0 ; then
36246603 newdeplibs="$newdeplibs $i"
36256604 else
36266605 droppeddeps=yes
3627 $echo
3628 $echo "*** Warning: dynamic linker does not accept needed library $i."
3629 $echo "*** I have the capability to make that library automatically link in when"
3630 $echo "*** you link to this library. But I can only do this if you have a"
3631 $echo "*** shared version of the library, which you do not appear to have"
3632 $echo "*** because a test_compile did reveal that the linker did not use this one"
3633 $echo "*** as a dynamic dependency that programs can get resolved with at runtime."
6606 $ECHO
6607 $ECHO "*** Warning: dynamic linker does not accept needed library $i."
6608 $ECHO "*** I have the capability to make that library automatically link in when"
6609 $ECHO "*** you link to this library. But I can only do this if you have a"
6610 $ECHO "*** shared version of the library, which you do not appear to have"
6611 $ECHO "*** because a test_compile did reveal that the linker did not use this one"
6612 $ECHO "*** as a dynamic dependency that programs can get resolved with at runtime."
36346613 fi
36356614 fi
36366615 else
36376616 droppeddeps=yes
3638 $echo
3639 $echo "*** Warning! Library $i is needed by this library but I was not able to"
3640 $echo "*** make it link in! You will probably need to install it or some"
3641 $echo "*** library that it depends on before this library will be fully"
3642 $echo "*** functional. Installing it before continuing would be even better."
6617 $ECHO
6618 $ECHO "*** Warning! Library $i is needed by this library but I was not able to"
6619 $ECHO "*** make it link in! You will probably need to install it or some"
6620 $ECHO "*** library that it depends on before this library will be fully"
6621 $ECHO "*** functional. Installing it before continuing would be even better."
36436622 fi
3644 else
6623 ;;
6624 *)
36456625 newdeplibs="$newdeplibs $i"
3646 fi
6626 ;;
6627 esac
36476628 done
36486629 fi
36496630 ;;
36506631 file_magic*)
3651 set dummy $deplibs_check_method
3652 file_magic_regex=`expr "$deplibs_check_method" : "$2 \(.*\)"`
6632 set dummy $deplibs_check_method; shift
6633 file_magic_regex=`expr "$deplibs_check_method" : "$1 \(.*\)"`
36536634 for a_deplib in $deplibs; do
3654 name=`expr $a_deplib : '-l\(.*\)'`
3655 # If $name is empty we are operating on a -L argument.
3656 if test "$name" != "" && test "$name" != "0"; then
6635 case $a_deplib in
6636 -l*)
6637 func_stripname -l '' "$a_deplib"
6638 name=$func_stripname_result
36576639 if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then
36586640 case " $predeps $postdeps " in
36596641 *" $a_deplib "*)
36636645 esac
36646646 fi
36656647 if test -n "$a_deplib" ; then
3666 libname=`eval \\$echo \"$libname_spec\"`
6648 libname=`eval "\\$ECHO \"$libname_spec\""`
36676649 for i in $lib_search_path $sys_lib_search_path $shlib_search_path; do
36686650 potential_libs=`ls $i/$libname[.-]* 2>/dev/null`
36696651 for potent_lib in $potential_libs; do
36706652 # Follow soft links.
3671 if ls -lLd "$potent_lib" 2>/dev/null \
3672 | grep " -> " >/dev/null; then
6653 if ls -lLd "$potent_lib" 2>/dev/null |
6654 $GREP " -> " >/dev/null; then
36736655 continue
36746656 fi
36756657 # The statement above tries to avoid entering an
36826664 potliblink=`ls -ld $potlib | ${SED} 's/.* -> //'`
36836665 case $potliblink in
36846666 [\\/]* | [A-Za-z]:[\\/]*) potlib="$potliblink";;
3685 *) potlib=`$echo "X$potlib" | $Xsed -e 's,[^/]*$,,'`"$potliblink";;
6667 *) potlib=`$ECHO "X$potlib" | $Xsed -e 's,[^/]*$,,'`"$potliblink";;
36866668 esac
36876669 done
3688 if eval $file_magic_cmd \"\$potlib\" 2>/dev/null \
3689 | ${SED} 10q \
3690 | $EGREP "$file_magic_regex" > /dev/null; then
6670 if eval $file_magic_cmd \"\$potlib\" 2>/dev/null |
6671 $SED -e 10q |
6672 $EGREP "$file_magic_regex" > /dev/null; then
36916673 newdeplibs="$newdeplibs $a_deplib"
36926674 a_deplib=""
36936675 break 2
36976679 fi
36986680 if test -n "$a_deplib" ; then
36996681 droppeddeps=yes
3700 $echo
3701 $echo "*** Warning: linker path does not have real file for library $a_deplib."
3702 $echo "*** I have the capability to make that library automatically link in when"
3703 $echo "*** you link to this library. But I can only do this if you have a"
3704 $echo "*** shared version of the library, which you do not appear to have"
3705 $echo "*** because I did check the linker path looking for a file starting"
6682 $ECHO
6683 $ECHO "*** Warning: linker path does not have real file for library $a_deplib."
6684 $ECHO "*** I have the capability to make that library automatically link in when"
6685 $ECHO "*** you link to this library. But I can only do this if you have a"
6686 $ECHO "*** shared version of the library, which you do not appear to have"
6687 $ECHO "*** because I did check the linker path looking for a file starting"
37066688 if test -z "$potlib" ; then
3707 $echo "*** with $libname but no candidates were found. (...for file magic test)"
6689 $ECHO "*** with $libname but no candidates were found. (...for file magic test)"
37086690 else
3709 $echo "*** with $libname and none of the candidates passed a file format test"
3710 $echo "*** using a file magic. Last file checked: $potlib"
6691 $ECHO "*** with $libname and none of the candidates passed a file format test"
6692 $ECHO "*** using a file magic. Last file checked: $potlib"
37116693 fi
37126694 fi
3713 else
6695 ;;
6696 *)
37146697 # Add a -L argument.
37156698 newdeplibs="$newdeplibs $a_deplib"
3716 fi
6699 ;;
6700 esac
37176701 done # Gone through all deplibs.
37186702 ;;
37196703 match_pattern*)
3720 set dummy $deplibs_check_method
3721 match_pattern_regex=`expr "$deplibs_check_method" : "$2 \(.*\)"`
6704 set dummy $deplibs_check_method; shift
6705 match_pattern_regex=`expr "$deplibs_check_method" : "$1 \(.*\)"`
37226706 for a_deplib in $deplibs; do
3723 name=`expr $a_deplib : '-l\(.*\)'`
3724 # If $name is empty we are operating on a -L argument.
3725 if test -n "$name" && test "$name" != "0"; then
6707 case $a_deplib in
6708 -l*)
6709 func_stripname -l '' "$a_deplib"
6710 name=$func_stripname_result
37266711 if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then
37276712 case " $predeps $postdeps " in
37286713 *" $a_deplib "*)
37326717 esac
37336718 fi
37346719 if test -n "$a_deplib" ; then
3735 libname=`eval \\$echo \"$libname_spec\"`
6720 libname=`eval "\\$ECHO \"$libname_spec\""`
37366721 for i in $lib_search_path $sys_lib_search_path $shlib_search_path; do
37376722 potential_libs=`ls $i/$libname[.-]* 2>/dev/null`
37386723 for potent_lib in $potential_libs; do
37396724 potlib="$potent_lib" # see symlink-check above in file_magic test
3740 if eval $echo \"$potent_lib\" 2>/dev/null \
3741 | ${SED} 10q \
3742 | $EGREP "$match_pattern_regex" > /dev/null; then
6725 if eval "\$ECHO \"X$potent_lib\"" 2>/dev/null | $Xsed -e 10q | \
6726 $EGREP "$match_pattern_regex" > /dev/null; then
37436727 newdeplibs="$newdeplibs $a_deplib"
37446728 a_deplib=""
37456729 break 2
37496733 fi
37506734 if test -n "$a_deplib" ; then
37516735 droppeddeps=yes
3752 $echo
3753 $echo "*** Warning: linker path does not have real file for library $a_deplib."
3754 $echo "*** I have the capability to make that library automatically link in when"
3755 $echo "*** you link to this library. But I can only do this if you have a"
3756 $echo "*** shared version of the library, which you do not appear to have"
3757 $echo "*** because I did check the linker path looking for a file starting"
6736 $ECHO
6737 $ECHO "*** Warning: linker path does not have real file for library $a_deplib."
6738 $ECHO "*** I have the capability to make that library automatically link in when"
6739 $ECHO "*** you link to this library. But I can only do this if you have a"
6740 $ECHO "*** shared version of the library, which you do not appear to have"
6741 $ECHO "*** because I did check the linker path looking for a file starting"
37586742 if test -z "$potlib" ; then
3759 $echo "*** with $libname but no candidates were found. (...for regex pattern test)"
6743 $ECHO "*** with $libname but no candidates were found. (...for regex pattern test)"
37606744 else
3761 $echo "*** with $libname and none of the candidates passed a file format test"
3762 $echo "*** using a regex pattern. Last file checked: $potlib"
6745 $ECHO "*** with $libname and none of the candidates passed a file format test"
6746 $ECHO "*** using a regex pattern. Last file checked: $potlib"
37636747 fi
37646748 fi
3765 else
6749 ;;
6750 *)
37666751 # Add a -L argument.
37676752 newdeplibs="$newdeplibs $a_deplib"
3768 fi
6753 ;;
6754 esac
37696755 done # Gone through all deplibs.
37706756 ;;
37716757 none | unknown | *)
37726758 newdeplibs=""
3773 tmp_deplibs=`$echo "X $deplibs" | $Xsed -e 's/ -lc$//' \
3774 -e 's/ -[LR][^ ]*//g'`
6759 tmp_deplibs=`$ECHO "X $deplibs" | $Xsed \
6760 -e 's/ -lc$//' -e 's/ -[LR][^ ]*//g'`
37756761 if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then
37766762 for i in $predeps $postdeps ; do
37776763 # can't use Xsed below, because $i might contain '/'
3778 tmp_deplibs=`$echo "X $tmp_deplibs" | ${SED} -e "1s,^X,," -e "s,$i,,"`
6764 tmp_deplibs=`$ECHO "X $tmp_deplibs" | $Xsed -e "s,$i,,"`
37796765 done
37806766 fi
3781 if $echo "X $tmp_deplibs" | $Xsed -e 's/[ ]//g' \
3782 | grep . >/dev/null; then
3783 $echo
6767 if $ECHO "X $tmp_deplibs" | $Xsed -e 's/[ ]//g' |
6768 $GREP . >/dev/null; then
6769 $ECHO
37846770 if test "X$deplibs_check_method" = "Xnone"; then
3785 $echo "*** Warning: inter-library dependencies are not supported in this platform."
6771 $ECHO "*** Warning: inter-library dependencies are not supported in this platform."
37866772 else
3787 $echo "*** Warning: inter-library dependencies are not known to be supported."
6773 $ECHO "*** Warning: inter-library dependencies are not known to be supported."
37886774 fi
3789 $echo "*** All declared inter-library dependencies are being dropped."
6775 $ECHO "*** All declared inter-library dependencies are being dropped."
37906776 droppeddeps=yes
37916777 fi
37926778 ;;
37996785
38006786 case $host in
38016787 *-*-rhapsody* | *-*-darwin1.[012])
3802 # On Rhapsody replace the C library is the System framework
3803 newdeplibs=`$echo "X $newdeplibs" | $Xsed -e 's/ -lc / -framework System /'`
6788 # On Rhapsody replace the C library with the System framework
6789 newdeplibs=`$ECHO "X $newdeplibs" | $Xsed -e 's/ -lc / System.ltframework /'`
38046790 ;;
38056791 esac
38066792
38076793 if test "$droppeddeps" = yes; then
38086794 if test "$module" = yes; then
3809 $echo
3810 $echo "*** Warning: libtool could not satisfy all declared inter-library"
3811 $echo "*** dependencies of module $libname. Therefore, libtool will create"
3812 $echo "*** a static module, that should work as long as the dlopening"
3813 $echo "*** application is linked with the -dlopen flag."
6795 $ECHO
6796 $ECHO "*** Warning: libtool could not satisfy all declared inter-library"
6797 $ECHO "*** dependencies of module $libname. Therefore, libtool will create"
6798 $ECHO "*** a static module, that should work as long as the dlopening"
6799 $ECHO "*** application is linked with the -dlopen flag."
38146800 if test -z "$global_symbol_pipe"; then
3815 $echo
3816 $echo "*** However, this would only work if libtool was able to extract symbol"
3817 $echo "*** lists from a program, using \`nm' or equivalent, but libtool could"
3818 $echo "*** not find such a program. So, this module is probably useless."
3819 $echo "*** \`nm' from GNU binutils and a full rebuild may help."
6801 $ECHO
6802 $ECHO "*** However, this would only work if libtool was able to extract symbol"
6803 $ECHO "*** lists from a program, using \`nm' or equivalent, but libtool could"
6804 $ECHO "*** not find such a program. So, this module is probably useless."
6805 $ECHO "*** \`nm' from GNU binutils and a full rebuild may help."
38206806 fi
38216807 if test "$build_old_libs" = no; then
38226808 oldlibs="$output_objdir/$libname.$libext"
38266812 build_libtool_libs=no
38276813 fi
38286814 else
3829 $echo "*** The inter-library dependencies that have been dropped here will be"
3830 $echo "*** automatically added whenever a program is linked with this library"
3831 $echo "*** or is declared to -dlopen it."
6815 $ECHO "*** The inter-library dependencies that have been dropped here will be"
6816 $ECHO "*** automatically added whenever a program is linked with this library"
6817 $ECHO "*** or is declared to -dlopen it."
38326818
38336819 if test "$allow_undefined" = no; then
3834 $echo
3835 $echo "*** Since this library must not contain undefined symbols,"
3836 $echo "*** because either the platform does not support them or"
3837 $echo "*** it was explicitly requested with -no-undefined,"
3838 $echo "*** libtool will only create a static version of it."
6820 $ECHO
6821 $ECHO "*** Since this library must not contain undefined symbols,"
6822 $ECHO "*** because either the platform does not support them or"
6823 $ECHO "*** it was explicitly requested with -no-undefined,"
6824 $ECHO "*** libtool will only create a static version of it."
38396825 if test "$build_old_libs" = no; then
38406826 oldlibs="$output_objdir/$libname.$libext"
38416827 build_libtool_libs=module
38496835 # Done checking deplibs!
38506836 deplibs=$newdeplibs
38516837 fi
3852
6838 # Time to change all our "foo.ltframework" stuff back to "-framework foo"
6839 case $host in
6840 *-*-darwin*)
6841 newdeplibs=`$ECHO "X $newdeplibs" | $Xsed -e 's% \([^ $]*\).ltframework% -framework \1%g'`
6842 new_inherited_linker_flags=`$ECHO "X $new_inherited_linker_flags" | $Xsed -e 's% \([^ $]*\).ltframework% -framework \1%g'`
6843 deplibs=`$ECHO "X $deplibs" | $Xsed -e 's% \([^ $]*\).ltframework% -framework \1%g'`
6844 ;;
6845 esac
38536846
38546847 # move library search paths that coincide with paths to not yet
38556848 # installed libraries to the beginning of the library search list
38776870 esac
38786871 done
38796872 deplibs="$new_libs"
3880
38816873
38826874 # All the library-specific variables (install_libdir is set above).
38836875 library_names=
39236915 test -n "$hardcode_libdirs"; then
39246916 libdir="$hardcode_libdirs"
39256917 if test -n "$hardcode_libdir_flag_spec_ld"; then
3926 case $archive_cmds in
3927 *\$LD*) eval dep_rpath=\"$hardcode_libdir_flag_spec_ld\" ;;
3928 *) eval dep_rpath=\"$hardcode_libdir_flag_spec\" ;;
3929 esac
6918 eval dep_rpath=\"$hardcode_libdir_flag_spec_ld\"
39306919 else
39316920 eval dep_rpath=\"$hardcode_libdir_flag_spec\"
39326921 fi
39526941 eval shared_ext=\"$shrext_cmds\"
39536942 eval library_names=\"$library_names_spec\"
39546943 set dummy $library_names
3955 realname="$2"
3956 shift; shift
6944 shift
6945 realname="$1"
6946 shift
39576947
39586948 if test -n "$soname_spec"; then
39596949 eval soname=\"$soname_spec\"
39726962 done
39736963
39746964 # Use standard objects if they are pic
3975 test -z "$pic_flag" && libobjs=`$echo "X$libobjs" | $SP2NL | $Xsed -e "$lo2o" | $NL2SP`
6965 test -z "$pic_flag" && libobjs=`$ECHO "X$libobjs" | $SP2NL | $Xsed -e "$lo2o" | $NL2SP`
6966 test "X$libobjs" = "X " && libobjs=
6967
6968 delfiles=
6969 if test -n "$export_symbols" && test -n "$include_expsyms"; then
6970 $opt_dry_run || cp "$export_symbols" "$output_objdir/$libname.uexp"
6971 export_symbols="$output_objdir/$libname.uexp"
6972 delfiles="$delfiles $export_symbols"
6973 fi
6974
6975 orig_export_symbols=
6976 case $host_os in
6977 cygwin* | mingw* | cegcc*)
6978 if test -n "$export_symbols" && test -z "$export_symbols_regex"; then
6979 # exporting using user supplied symfile
6980 if test "x`$SED 1q $export_symbols`" != xEXPORTS; then
6981 # and it's NOT already a .def file. Must figure out
6982 # which of the given symbols are data symbols and tag
6983 # them as such. So, trigger use of export_symbols_cmds.
6984 # export_symbols gets reassigned inside the "prepare
6985 # the list of exported symbols" if statement, so the
6986 # include_expsyms logic still works.
6987 orig_export_symbols="$export_symbols"
6988 export_symbols=
6989 always_export_symbols=yes
6990 fi
6991 fi
6992 ;;
6993 esac
39766994
39776995 # Prepare the list of exported symbols
39786996 if test -z "$export_symbols"; then
39796997 if test "$always_export_symbols" = yes || test -n "$export_symbols_regex"; then
3980 $show "generating symbol list for \`$libname.la'"
6998 func_verbose "generating symbol list for \`$libname.la'"
39816999 export_symbols="$output_objdir/$libname.exp"
3982 $run $rm $export_symbols
7000 $opt_dry_run || $RM $export_symbols
39837001 cmds=$export_symbols_cmds
39847002 save_ifs="$IFS"; IFS='~'
39857003 for cmd in $cmds; do
39867004 IFS="$save_ifs"
39877005 eval cmd=\"$cmd\"
3988 if len=`expr "X$cmd" : ".*"` &&
3989 test "$len" -le "$max_cmd_len" || test "$max_cmd_len" -le -1; then
3990 $show "$cmd"
3991 $run eval "$cmd" || exit $?
3992 skipped_export=false
7006 func_len " $cmd"
7007 len=$func_len_result
7008 if test "$len" -lt "$max_cmd_len" || test "$max_cmd_len" -le -1; then
7009 func_show_eval "$cmd" 'exit $?'
7010 skipped_export=false
39937011 else
3994 # The command line is too long to execute in one step.
3995 $show "using reloadable object file for export list..."
3996 skipped_export=:
7012 # The command line is too long to execute in one step.
7013 func_verbose "using reloadable object file for export list..."
7014 skipped_export=:
39977015 # Break out early, otherwise skipped_export may be
39987016 # set to false by a later but shorter cmd.
39997017 break
40007018 fi
40017019 done
40027020 IFS="$save_ifs"
4003 if test -n "$export_symbols_regex"; then
4004 $show "$EGREP -e \"$export_symbols_regex\" \"$export_symbols\" > \"${export_symbols}T\""
4005 $run eval '$EGREP -e "$export_symbols_regex" "$export_symbols" > "${export_symbols}T"'
4006 $show "$mv \"${export_symbols}T\" \"$export_symbols\""
4007 $run eval '$mv "${export_symbols}T" "$export_symbols"'
7021 if test -n "$export_symbols_regex" && test "X$skipped_export" != "X:"; then
7022 func_show_eval '$EGREP -e "$export_symbols_regex" "$export_symbols" > "${export_symbols}T"'
7023 func_show_eval '$MV "${export_symbols}T" "$export_symbols"'
40087024 fi
40097025 fi
40107026 fi
40117027
40127028 if test -n "$export_symbols" && test -n "$include_expsyms"; then
4013 $run eval '$echo "X$include_expsyms" | $SP2NL >> "$export_symbols"'
7029 tmp_export_symbols="$export_symbols"
7030 test -n "$orig_export_symbols" && tmp_export_symbols="$orig_export_symbols"
7031 $opt_dry_run || eval '$ECHO "X$include_expsyms" | $Xsed | $SP2NL >> "$tmp_export_symbols"'
7032 fi
7033
7034 if test "X$skipped_export" != "X:" && test -n "$orig_export_symbols"; then
7035 # The given exports_symbols file has to be filtered, so filter it.
7036 func_verbose "filter symbol list for \`$libname.la' to tag DATA exports"
7037 # FIXME: $output_objdir/$libname.filter potentially contains lots of
7038 # 's' commands which not all seds can handle. GNU sed should be fine
7039 # though. Also, the filter scales superlinearly with the number of
7040 # global variables. join(1) would be nice here, but unfortunately
7041 # isn't a blessed tool.
7042 $opt_dry_run || $SED -e '/[ ,]DATA/!d;s,\(.*\)\([ \,].*\),s|^\1$|\1\2|,' < $export_symbols > $output_objdir/$libname.filter
7043 delfiles="$delfiles $export_symbols $output_objdir/$libname.filter"
7044 export_symbols=$output_objdir/$libname.def
7045 $opt_dry_run || $SED -f $output_objdir/$libname.filter < $orig_export_symbols > $export_symbols
40147046 fi
40157047
40167048 tmp_deplibs=
40177049 for test_deplib in $deplibs; do
4018 case " $convenience " in
4019 *" $test_deplib "*) ;;
4020 *)
4021 tmp_deplibs="$tmp_deplibs $test_deplib"
4022 ;;
4023 esac
7050 case " $convenience " in
7051 *" $test_deplib "*) ;;
7052 *)
7053 tmp_deplibs="$tmp_deplibs $test_deplib"
7054 ;;
7055 esac
40247056 done
40257057 deplibs="$tmp_deplibs"
40267058
40277059 if test -n "$convenience"; then
7060 if test -n "$whole_archive_flag_spec" &&
7061 test "$compiler_needs_object" = yes &&
7062 test -z "$libobjs"; then
7063 # extract the archives, so we have objects to list.
7064 # TODO: could optimize this to just extract one archive.
7065 whole_archive_flag_spec=
7066 fi
40287067 if test -n "$whole_archive_flag_spec"; then
40297068 save_libobjs=$libobjs
40307069 eval libobjs=\"\$libobjs $whole_archive_flag_spec\"
7070 test "X$libobjs" = "X " && libobjs=
40317071 else
40327072 gentop="$output_objdir/${outputname}x"
40337073 generated="$generated $gentop"
40347074
40357075 func_extract_archives $gentop $convenience
40367076 libobjs="$libobjs $func_extract_archives_result"
7077 test "X$libobjs" = "X " && libobjs=
40377078 fi
40387079 fi
4039
7080
40407081 if test "$thread_safe" = yes && test -n "$thread_safe_flag_spec"; then
40417082 eval flag=\"$thread_safe_flag_spec\"
40427083 linker_flags="$linker_flags $flag"
40447085
40457086 # Make a backup of the uninstalled library when relinking
40467087 if test "$mode" = relink; then
4047 $run eval '(cd $output_objdir && $rm ${realname}U && $mv $realname ${realname}U)' || exit $?
7088 $opt_dry_run || eval '(cd $output_objdir && $RM ${realname}U && $MV $realname ${realname}U)' || exit $?
40487089 fi
40497090
40507091 # Do each of the archive commands.
40577098 cmds=$module_cmds
40587099 fi
40597100 else
4060 if test -n "$export_symbols" && test -n "$archive_expsym_cmds"; then
4061 eval test_cmds=\"$archive_expsym_cmds\"
4062 cmds=$archive_expsym_cmds
4063 else
4064 eval test_cmds=\"$archive_cmds\"
4065 cmds=$archive_cmds
7101 if test -n "$export_symbols" && test -n "$archive_expsym_cmds"; then
7102 eval test_cmds=\"$archive_expsym_cmds\"
7103 cmds=$archive_expsym_cmds
7104 else
7105 eval test_cmds=\"$archive_cmds\"
7106 cmds=$archive_cmds
40667107 fi
40677108 fi
40687109
40697110 if test "X$skipped_export" != "X:" &&
4070 len=`expr "X$test_cmds" : ".*" 2>/dev/null` &&
4071 test "$len" -le "$max_cmd_len" || test "$max_cmd_len" -le -1; then
7111 func_len " $test_cmds" &&
7112 len=$func_len_result &&
7113 test "$len" -lt "$max_cmd_len" || test "$max_cmd_len" -le -1; then
40727114 :
40737115 else
4074 # The command line is too long to link in one step, link piecewise.
4075 $echo "creating reloadable object files..."
7116 # The command line is too long to link in one step, link piecewise
7117 # or, if using GNU ld and skipped_export is not :, use a linker
7118 # script.
40767119
40777120 # Save the value of $output and $libobjs because we want to
40787121 # use them later. If we have whole_archive_flag_spec, we
40867129 save_libobjs=$libobjs
40877130 fi
40887131 save_output=$output
4089 output_la=`$echo "X$output" | $Xsed -e "$basename"`
7132 output_la=`$ECHO "X$output" | $Xsed -e "$basename"`
40907133
40917134 # Clear the reloadable object creation command queue and
40927135 # initialize k to one.
40937136 test_cmds=
40947137 concat_cmds=
40957138 objlist=
4096 delfiles=
40977139 last_robj=
40987140 k=1
4099 output=$output_objdir/$output_la-${k}.$objext
4100 # Loop over the list of objects to be linked.
4101 for obj in $save_libobjs
4102 do
4103 eval test_cmds=\"$reload_cmds $objlist $last_robj\"
4104 if test "X$objlist" = X ||
4105 { len=`expr "X$test_cmds" : ".*" 2>/dev/null` &&
4106 test "$len" -le "$max_cmd_len"; }; then
4107 objlist="$objlist $obj"
7141
7142 if test -n "$save_libobjs" && test "X$skipped_export" != "X:" && test "$with_gnu_ld" = yes; then
7143 output=${output_objdir}/${output_la}.lnkscript
7144 func_verbose "creating GNU ld script: $output"
7145 $ECHO 'INPUT (' > $output
7146 for obj in $save_libobjs
7147 do
7148 $ECHO "$obj" >> $output
7149 done
7150 $ECHO ')' >> $output
7151 delfiles="$delfiles $output"
7152 elif test -n "$save_libobjs" && test "X$skipped_export" != "X:" && test "X$file_list_spec" != X; then
7153 output=${output_objdir}/${output_la}.lnk
7154 func_verbose "creating linker input file list: $output"
7155 : > $output
7156 set x $save_libobjs
7157 shift
7158 firstobj=
7159 if test "$compiler_needs_object" = yes; then
7160 firstobj="$1 "
7161 shift
7162 fi
7163 for obj
7164 do
7165 $ECHO "$obj" >> $output
7166 done
7167 delfiles="$delfiles $output"
7168 output=$firstobj\"$file_list_spec$output\"
7169 else
7170 if test -n "$save_libobjs"; then
7171 func_verbose "creating reloadable object files..."
7172 output=$output_objdir/$output_la-${k}.$objext
7173 eval test_cmds=\"$reload_cmds\"
7174 func_len " $test_cmds"
7175 len0=$func_len_result
7176 len=$len0
7177
7178 # Loop over the list of objects to be linked.
7179 for obj in $save_libobjs
7180 do
7181 func_len " $obj"
7182 func_arith $len + $func_len_result
7183 len=$func_arith_result
7184 if test "X$objlist" = X ||
7185 test "$len" -lt "$max_cmd_len"; then
7186 func_append objlist " $obj"
7187 else
7188 # The command $test_cmds is almost too long, add a
7189 # command to the queue.
7190 if test "$k" -eq 1 ; then
7191 # The first file doesn't have a previous command to add.
7192 eval concat_cmds=\"$reload_cmds $objlist $last_robj\"
7193 else
7194 # All subsequent reloadable object files will link in
7195 # the last one created.
7196 eval concat_cmds=\"\$concat_cmds~$reload_cmds $objlist $last_robj~\$RM $last_robj\"
7197 fi
7198 last_robj=$output_objdir/$output_la-${k}.$objext
7199 func_arith $k + 1
7200 k=$func_arith_result
7201 output=$output_objdir/$output_la-${k}.$objext
7202 objlist=$obj
7203 func_len " $last_robj"
7204 func_arith $len0 + $func_len_result
7205 len=$func_arith_result
7206 fi
7207 done
7208 # Handle the remaining objects by creating one last
7209 # reloadable object file. All subsequent reloadable object
7210 # files will link in the last one created.
7211 test -z "$concat_cmds" || concat_cmds=$concat_cmds~
7212 eval concat_cmds=\"\${concat_cmds}$reload_cmds $objlist $last_robj\"
7213 if test -n "$last_robj"; then
7214 eval concat_cmds=\"\${concat_cmds}~\$RM $last_robj\"
7215 fi
7216 delfiles="$delfiles $output"
7217
41087218 else
4109 # The command $test_cmds is almost too long, add a
4110 # command to the queue.
4111 if test "$k" -eq 1 ; then
4112 # The first file doesn't have a previous command to add.
4113 eval concat_cmds=\"$reload_cmds $objlist $last_robj\"
4114 else
4115 # All subsequent reloadable object files will link in
4116 # the last one created.
4117 eval concat_cmds=\"\$concat_cmds~$reload_cmds $objlist $last_robj\"
7219 output=
7220 fi
7221
7222 if ${skipped_export-false}; then
7223 func_verbose "generating symbol list for \`$libname.la'"
7224 export_symbols="$output_objdir/$libname.exp"
7225 $opt_dry_run || $RM $export_symbols
7226 libobjs=$output
7227 # Append the command to create the export file.
7228 test -z "$concat_cmds" || concat_cmds=$concat_cmds~
7229 eval concat_cmds=\"\$concat_cmds$export_symbols_cmds\"
7230 if test -n "$last_robj"; then
7231 eval concat_cmds=\"\$concat_cmds~\$RM $last_robj\"
41187232 fi
4119 last_robj=$output_objdir/$output_la-${k}.$objext
4120 k=`expr $k + 1`
4121 output=$output_objdir/$output_la-${k}.$objext
4122 objlist=$obj
4123 len=1
41247233 fi
4125 done
4126 # Handle the remaining objects by creating one last
4127 # reloadable object file. All subsequent reloadable object
4128 # files will link in the last one created.
4129 test -z "$concat_cmds" || concat_cmds=$concat_cmds~
4130 eval concat_cmds=\"\${concat_cmds}$reload_cmds $objlist $last_robj\"
4131
4132 if ${skipped_export-false}; then
4133 $show "generating symbol list for \`$libname.la'"
4134 export_symbols="$output_objdir/$libname.exp"
4135 $run $rm $export_symbols
4136 libobjs=$output
4137 # Append the command to create the export file.
4138 eval concat_cmds=\"\$concat_cmds~$export_symbols_cmds\"
4139 fi
4140
4141 # Set up a command to remove the reloadable object files
4142 # after they are used.
4143 i=0
4144 while test "$i" -lt "$k"
4145 do
4146 i=`expr $i + 1`
4147 delfiles="$delfiles $output_objdir/$output_la-${i}.$objext"
4148 done
4149
4150 $echo "creating a temporary reloadable object file: $output"
4151
4152 # Loop through the commands generated above and execute them.
4153 save_ifs="$IFS"; IFS='~'
4154 for cmd in $concat_cmds; do
7234
7235 test -n "$save_libobjs" &&
7236 func_verbose "creating a temporary reloadable object file: $output"
7237
7238 # Loop through the commands generated above and execute them.
7239 save_ifs="$IFS"; IFS='~'
7240 for cmd in $concat_cmds; do
7241 IFS="$save_ifs"
7242 $opt_silent || {
7243 func_quote_for_expand "$cmd"
7244 eval "func_echo $func_quote_for_expand_result"
7245 }
7246 $opt_dry_run || eval "$cmd" || {
7247 lt_exit=$?
7248
7249 # Restore the uninstalled library and exit
7250 if test "$mode" = relink; then
7251 ( cd "$output_objdir" && \
7252 $RM "${realname}T" && \
7253 $MV "${realname}U" "$realname" )
7254 fi
7255
7256 exit $lt_exit
7257 }
7258 done
41557259 IFS="$save_ifs"
4156 $show "$cmd"
4157 $run eval "$cmd" || exit $?
4158 done
4159 IFS="$save_ifs"
7260
7261 if test -n "$export_symbols_regex" && ${skipped_export-false}; then
7262 func_show_eval '$EGREP -e "$export_symbols_regex" "$export_symbols" > "${export_symbols}T"'
7263 func_show_eval '$MV "${export_symbols}T" "$export_symbols"'
7264 fi
7265 fi
7266
7267 if ${skipped_export-false}; then
7268 if test -n "$export_symbols" && test -n "$include_expsyms"; then
7269 tmp_export_symbols="$export_symbols"
7270 test -n "$orig_export_symbols" && tmp_export_symbols="$orig_export_symbols"
7271 $opt_dry_run || eval '$ECHO "X$include_expsyms" | $Xsed | $SP2NL >> "$tmp_export_symbols"'
7272 fi
7273
7274 if test -n "$orig_export_symbols"; then
7275 # The given exports_symbols file has to be filtered, so filter it.
7276 func_verbose "filter symbol list for \`$libname.la' to tag DATA exports"
7277 # FIXME: $output_objdir/$libname.filter potentially contains lots of
7278 # 's' commands which not all seds can handle. GNU sed should be fine
7279 # though. Also, the filter scales superlinearly with the number of
7280 # global variables. join(1) would be nice here, but unfortunately
7281 # isn't a blessed tool.
7282 $opt_dry_run || $SED -e '/[ ,]DATA/!d;s,\(.*\)\([ \,].*\),s|^\1$|\1\2|,' < $export_symbols > $output_objdir/$libname.filter
7283 delfiles="$delfiles $export_symbols $output_objdir/$libname.filter"
7284 export_symbols=$output_objdir/$libname.def
7285 $opt_dry_run || $SED -f $output_objdir/$libname.filter < $orig_export_symbols > $export_symbols
7286 fi
7287 fi
41607288
41617289 libobjs=$output
41627290 # Restore the value of output.
41647292
41657293 if test -n "$convenience" && test -n "$whole_archive_flag_spec"; then
41667294 eval libobjs=\"\$libobjs $whole_archive_flag_spec\"
7295 test "X$libobjs" = "X " && libobjs=
41677296 fi
41687297 # Expand the library linking commands again to reset the
41697298 # value of $libobjs for piecewise linking.
41767305 cmds=$module_cmds
41777306 fi
41787307 else
4179 if test -n "$export_symbols" && test -n "$archive_expsym_cmds"; then
4180 cmds=$archive_expsym_cmds
4181 else
4182 cmds=$archive_cmds
7308 if test -n "$export_symbols" && test -n "$archive_expsym_cmds"; then
7309 cmds=$archive_expsym_cmds
7310 else
7311 cmds=$archive_cmds
41837312 fi
41847313 fi
4185
4186 # Append the command to remove the reloadable object files
4187 # to the just-reset $cmds.
4188 eval cmds=\"\$cmds~\$rm $delfiles\"
41897314 fi
7315
7316 if test -n "$delfiles"; then
7317 # Append the command to remove temporary files to $cmds.
7318 eval cmds=\"\$cmds~\$RM $delfiles\"
7319 fi
7320
7321 # Add any objects from preloaded convenience libraries
7322 if test -n "$dlprefiles"; then
7323 gentop="$output_objdir/${outputname}x"
7324 generated="$generated $gentop"
7325
7326 func_extract_archives $gentop $dlprefiles
7327 libobjs="$libobjs $func_extract_archives_result"
7328 test "X$libobjs" = "X " && libobjs=
7329 fi
7330
41907331 save_ifs="$IFS"; IFS='~'
41917332 for cmd in $cmds; do
41927333 IFS="$save_ifs"
41937334 eval cmd=\"$cmd\"
4194 $show "$cmd"
4195 $run eval "$cmd" || {
7335 $opt_silent || {
7336 func_quote_for_expand "$cmd"
7337 eval "func_echo $func_quote_for_expand_result"
7338 }
7339 $opt_dry_run || eval "$cmd" || {
41967340 lt_exit=$?
41977341
41987342 # Restore the uninstalled library and exit
41997343 if test "$mode" = relink; then
4200 $run eval '(cd $output_objdir && $rm ${realname}T && $mv ${realname}U $realname)'
7344 ( cd "$output_objdir" && \
7345 $RM "${realname}T" && \
7346 $MV "${realname}U" "$realname" )
42017347 fi
42027348
42037349 exit $lt_exit
42077353
42087354 # Restore the uninstalled library and exit
42097355 if test "$mode" = relink; then
4210 $run eval '(cd $output_objdir && $rm ${realname}T && $mv $realname ${realname}T && $mv "$realname"U $realname)' || exit $?
7356 $opt_dry_run || eval '(cd $output_objdir && $RM ${realname}T && $MV $realname ${realname}T && $MV ${realname}U $realname)' || exit $?
42117357
42127358 if test -n "$convenience"; then
42137359 if test -z "$whole_archive_flag_spec"; then
4214 $show "${rm}r $gentop"
4215 $run ${rm}r "$gentop"
7360 func_show_eval '${RM}r "$gentop"'
42167361 fi
42177362 fi
42187363
42227367 # Create links to the real library.
42237368 for linkname in $linknames; do
42247369 if test "$realname" != "$linkname"; then
4225 $show "(cd $output_objdir && $rm $linkname && $LN_S $realname $linkname)"
4226 $run eval '(cd $output_objdir && $rm $linkname && $LN_S $realname $linkname)' || exit $?
7370 func_show_eval '(cd "$output_objdir" && $RM "$linkname" && $LN_S "$realname" "$linkname")' 'exit $?'
42277371 fi
42287372 done
42297373
42367380 ;;
42377381
42387382 obj)
4239 if test -n "$deplibs"; then
4240 $echo "$modename: warning: \`-l' and \`-L' are ignored for objects" 1>&2
7383 if test -n "$dlfiles$dlprefiles" || test "$dlself" != no; then
7384 func_warning "\`-dlopen' is ignored for objects"
42417385 fi
42427386
4243 if test -n "$dlfiles$dlprefiles" || test "$dlself" != no; then
4244 $echo "$modename: warning: \`-dlopen' is ignored for objects" 1>&2
4245 fi
4246
4247 if test -n "$rpath"; then
4248 $echo "$modename: warning: \`-rpath' is ignored for objects" 1>&2
4249 fi
4250
4251 if test -n "$xrpath"; then
4252 $echo "$modename: warning: \`-R' is ignored for objects" 1>&2
4253 fi
4254
4255 if test -n "$vinfo"; then
4256 $echo "$modename: warning: \`-version-info' is ignored for objects" 1>&2
4257 fi
4258
4259 if test -n "$release"; then
4260 $echo "$modename: warning: \`-release' is ignored for objects" 1>&2
4261 fi
7387 case " $deplibs" in
7388 *\ -l* | *\ -L*)
7389 func_warning "\`-l' and \`-L' are ignored for objects" ;;
7390 esac
7391
7392 test -n "$rpath" && \
7393 func_warning "\`-rpath' is ignored for objects"
7394
7395 test -n "$xrpath" && \
7396 func_warning "\`-R' is ignored for objects"
7397
7398 test -n "$vinfo" && \
7399 func_warning "\`-version-info' is ignored for objects"
7400
7401 test -n "$release" && \
7402 func_warning "\`-release' is ignored for objects"
42627403
42637404 case $output in
42647405 *.lo)
4265 if test -n "$objs$old_deplibs"; then
4266 $echo "$modename: cannot build library object \`$output' from non-libtool objects" 1>&2
4267 exit $EXIT_FAILURE
4268 fi
4269 libobj="$output"
4270 obj=`$echo "X$output" | $Xsed -e "$lo2o"`
7406 test -n "$objs$old_deplibs" && \
7407 func_fatal_error "cannot build library object \`$output' from non-libtool objects"
7408
7409 libobj=$output
7410 func_lo2o "$libobj"
7411 obj=$func_lo2o_result
42717412 ;;
42727413 *)
42737414 libobj=
42767417 esac
42777418
42787419 # Delete the old objects.
4279 $run $rm $obj $libobj
7420 $opt_dry_run || $RM $obj $libobj
42807421
42817422 # Objects from convenience libraries. This assumes
42827423 # single-version convenience libraries. Whenever we create
42927433 if test -n "$convenience"; then
42937434 if test -n "$whole_archive_flag_spec"; then
42947435 eval tmp_whole_archive_flags=\"$whole_archive_flag_spec\"
4295 reload_conv_objs=$reload_objs\ `$echo "X$tmp_whole_archive_flags" | $Xsed -e 's|,| |g'`
7436 reload_conv_objs=$reload_objs\ `$ECHO "X$tmp_whole_archive_flags" | $Xsed -e 's|,| |g'`
42967437 else
42977438 gentop="$output_objdir/${obj}x"
42987439 generated="$generated $gentop"
43037444 fi
43047445
43057446 # Create the old-style object.
4306 reload_objs="$objs$old_deplibs "`$echo "X$libobjs" | $SP2NL | $Xsed -e '/\.'${libext}$'/d' -e '/\.lib$/d' -e "$lo2o" | $NL2SP`" $reload_conv_objs" ### testsuite: skip nested quoting test
7447 reload_objs="$objs$old_deplibs "`$ECHO "X$libobjs" | $SP2NL | $Xsed -e '/\.'${libext}$'/d' -e '/\.lib$/d' -e "$lo2o" | $NL2SP`" $reload_conv_objs" ### testsuite: skip nested quoting test
43077448
43087449 output="$obj"
4309 cmds=$reload_cmds
4310 save_ifs="$IFS"; IFS='~'
4311 for cmd in $cmds; do
4312 IFS="$save_ifs"
4313 eval cmd=\"$cmd\"
4314 $show "$cmd"
4315 $run eval "$cmd" || exit $?
4316 done
4317 IFS="$save_ifs"
7450 func_execute_cmds "$reload_cmds" 'exit $?'
43187451
43197452 # Exit if we aren't doing a library object file.
43207453 if test -z "$libobj"; then
43217454 if test -n "$gentop"; then
4322 $show "${rm}r $gentop"
4323 $run ${rm}r $gentop
7455 func_show_eval '${RM}r "$gentop"'
43247456 fi
43257457
43267458 exit $EXIT_SUCCESS
43287460
43297461 if test "$build_libtool_libs" != yes; then
43307462 if test -n "$gentop"; then
4331 $show "${rm}r $gentop"
4332 $run ${rm}r $gentop
7463 func_show_eval '${RM}r "$gentop"'
43337464 fi
43347465
43357466 # Create an invalid libtool object if no PIC, so that we don't
43367467 # accidentally link it into a program.
43377468 # $show "echo timestamp > $libobj"
4338 # $run eval "echo timestamp > $libobj" || exit $?
7469 # $opt_dry_run || eval "echo timestamp > $libobj" || exit $?
43397470 exit $EXIT_SUCCESS
43407471 fi
43417472
43437474 # Only do commands if we really have different PIC objects.
43447475 reload_objs="$libobjs $reload_conv_objs"
43457476 output="$libobj"
4346 cmds=$reload_cmds
4347 save_ifs="$IFS"; IFS='~'
4348 for cmd in $cmds; do
4349 IFS="$save_ifs"
4350 eval cmd=\"$cmd\"
4351 $show "$cmd"
4352 $run eval "$cmd" || exit $?
4353 done
4354 IFS="$save_ifs"
7477 func_execute_cmds "$reload_cmds" 'exit $?'
43557478 fi
43567479
43577480 if test -n "$gentop"; then
4358 $show "${rm}r $gentop"
4359 $run ${rm}r $gentop
7481 func_show_eval '${RM}r "$gentop"'
43607482 fi
43617483
43627484 exit $EXIT_SUCCESS
43647486
43657487 prog)
43667488 case $host in
4367 *cygwin*) output=`$echo $output | ${SED} -e 's,.exe$,,;s,$,.exe,'` ;;
7489 *cygwin*) func_stripname '' '.exe' "$output"
7490 output=$func_stripname_result.exe;;
43687491 esac
4369 if test -n "$vinfo"; then
4370 $echo "$modename: warning: \`-version-info' is ignored for programs" 1>&2
4371 fi
4372
4373 if test -n "$release"; then
4374 $echo "$modename: warning: \`-release' is ignored for programs" 1>&2
4375 fi
4376
4377 if test "$preload" = yes; then
4378 if test "$dlopen_support" = unknown && test "$dlopen_self" = unknown &&
4379 test "$dlopen_self_static" = unknown; then
4380 $echo "$modename: warning: \`AC_LIBTOOL_DLOPEN' not used. Assuming no dlopen support."
4381 fi
4382 fi
7492 test -n "$vinfo" && \
7493 func_warning "\`-version-info' is ignored for programs"
7494
7495 test -n "$release" && \
7496 func_warning "\`-release' is ignored for programs"
7497
7498 test "$preload" = yes \
7499 && test "$dlopen_support" = unknown \
7500 && test "$dlopen_self" = unknown \
7501 && test "$dlopen_self_static" = unknown && \
7502 func_warning "\`LT_INIT([dlopen])' not used. Assuming no dlopen support."
43837503
43847504 case $host in
43857505 *-*-rhapsody* | *-*-darwin1.[012])
43867506 # On Rhapsody replace the C library is the System framework
4387 compile_deplibs=`$echo "X $compile_deplibs" | $Xsed -e 's/ -lc / -framework System /'`
4388 finalize_deplibs=`$echo "X $finalize_deplibs" | $Xsed -e 's/ -lc / -framework System /'`
7507 compile_deplibs=`$ECHO "X $compile_deplibs" | $Xsed -e 's/ -lc / System.ltframework /'`
7508 finalize_deplibs=`$ECHO "X $finalize_deplibs" | $Xsed -e 's/ -lc / System.ltframework /'`
43897509 ;;
43907510 esac
43917511
43927512 case $host in
4393 *darwin*)
4394 # Don't allow lazy linking, it breaks C++ global constructors
4395 if test "$tagname" = CXX ; then
4396 compile_command="$compile_command ${wl}-bind_at_load"
4397 finalize_command="$finalize_command ${wl}-bind_at_load"
4398 fi
4399 ;;
7513 *-*-darwin*)
7514 # Don't allow lazy linking, it breaks C++ global constructors
7515 # But is supposedly fixed on 10.4 or later (yay!).
7516 if test "$tagname" = CXX ; then
7517 case ${MACOSX_DEPLOYMENT_TARGET-10.0} in
7518 10.[0123])
7519 compile_command="$compile_command ${wl}-bind_at_load"
7520 finalize_command="$finalize_command ${wl}-bind_at_load"
7521 ;;
7522 esac
7523 fi
7524 # Time to change all our "foo.ltframework" stuff back to "-framework foo"
7525 compile_deplibs=`$ECHO "X $compile_deplibs" | $Xsed -e 's% \([^ $]*\).ltframework% -framework \1%g'`
7526 finalize_deplibs=`$ECHO "X $finalize_deplibs" | $Xsed -e 's% \([^ $]*\).ltframework% -framework \1%g'`
7527 ;;
44007528 esac
44017529
44027530
44717599 esac
44727600 fi
44737601 case $host in
4474 *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2*)
4475 testbindir=`$echo "X$libdir" | $Xsed -e 's*/lib$*/bin*'`
7602 *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2* | *-cegcc*)
7603 testbindir=`${ECHO} "$libdir" | ${SED} -e 's*/lib$*/bin*'`
44767604 case :$dllsearchpath: in
44777605 *":$libdir:"*) ;;
7606 ::) dllsearchpath=$libdir;;
44787607 *) dllsearchpath="$dllsearchpath:$libdir";;
44797608 esac
44807609 case :$dllsearchpath: in
44817610 *":$testbindir:"*) ;;
7611 ::) dllsearchpath=$testbindir;;
44827612 *) dllsearchpath="$dllsearchpath:$testbindir";;
44837613 esac
44847614 ;;
45307660
45317661 if test -n "$libobjs" && test "$build_old_libs" = yes; then
45327662 # Transform all the library objects into standard objects.
4533 compile_command=`$echo "X$compile_command" | $SP2NL | $Xsed -e "$lo2o" | $NL2SP`
4534 finalize_command=`$echo "X$finalize_command" | $SP2NL | $Xsed -e "$lo2o" | $NL2SP`
7663 compile_command=`$ECHO "X$compile_command" | $SP2NL | $Xsed -e "$lo2o" | $NL2SP`
7664 finalize_command=`$ECHO "X$finalize_command" | $SP2NL | $Xsed -e "$lo2o" | $NL2SP`
45357665 fi
45367666
4537 dlsyms=
4538 if test -n "$dlfiles$dlprefiles" || test "$dlself" != no; then
4539 if test -n "$NM" && test -n "$global_symbol_pipe"; then
4540 dlsyms="${outputname}S.c"
4541 else
4542 $echo "$modename: not configured to extract global symbols from dlpreopened files" 1>&2
7667 func_generate_dlsyms "$outputname" "@PROGRAM@" "no"
7668
7669 # template prelinking step
7670 if test -n "$prelink_cmds"; then
7671 func_execute_cmds "$prelink_cmds" 'exit $?'
7672 fi
7673
7674 wrappers_required=yes
7675 case $host in
7676 *cygwin* | *mingw* )
7677 if test "$build_libtool_libs" != yes; then
7678 wrappers_required=no
7679 fi
7680 ;;
7681 *cegcc)
7682 # Disable wrappers for cegcc, we are cross compiling anyway.
7683 wrappers_required=no
7684 ;;
7685 *)
7686 if test "$need_relink" = no || test "$build_libtool_libs" != yes; then
7687 wrappers_required=no
7688 fi
7689 ;;
7690 esac
7691 if test "$wrappers_required" = no; then
7692 # Replace the output file specification.
7693 compile_command=`$ECHO "X$compile_command" | $Xsed -e 's%@OUTPUT@%'"$output"'%g'`
7694 link_command="$compile_command$compile_rpath"
7695
7696 # We have no uninstalled library dependencies, so finalize right now.
7697 exit_status=0
7698 func_show_eval "$link_command" 'exit_status=$?'
7699
7700 # Delete the generated files.
7701 if test -f "$output_objdir/${outputname}S.${objext}"; then
7702 func_show_eval '$RM "$output_objdir/${outputname}S.${objext}"'
45437703 fi
4544 fi
4545
4546 if test -n "$dlsyms"; then
4547 case $dlsyms in
4548 "") ;;
4549 *.c)
4550 # Discover the nlist of each of the dlfiles.
4551 nlist="$output_objdir/${outputname}.nm"
4552
4553 $show "$rm $nlist ${nlist}S ${nlist}T"
4554 $run $rm "$nlist" "${nlist}S" "${nlist}T"
4555
4556 # Parse the name list into a source file.
4557 $show "creating $output_objdir/$dlsyms"
4558
4559 test -z "$run" && $echo > "$output_objdir/$dlsyms" "\
4560 /* $dlsyms - symbol resolution table for \`$outputname' dlsym emulation. */
4561 /* Generated by $PROGRAM - GNU $PACKAGE $VERSION$TIMESTAMP */
4562
4563 #ifdef __cplusplus
4564 extern \"C\" {
4565 #endif
4566
4567 /* Prevent the only kind of declaration conflicts we can make. */
4568 #define lt_preloaded_symbols some_other_symbol
4569
4570 /* External symbol declarations for the compiler. */\
4571 "
4572
4573 if test "$dlself" = yes; then
4574 $show "generating symbol list for \`$output'"
4575
4576 test -z "$run" && $echo ': @PROGRAM@ ' > "$nlist"
4577
4578 # Add our own program objects to the symbol list.
4579 progfiles=`$echo "X$objs$old_deplibs" | $SP2NL | $Xsed -e "$lo2o" | $NL2SP`
4580 for arg in $progfiles; do
4581 $show "extracting global C symbols from \`$arg'"
4582 $run eval "$NM $arg | $global_symbol_pipe >> '$nlist'"
4583 done
4584
4585 if test -n "$exclude_expsyms"; then
4586 $run eval '$EGREP -v " ($exclude_expsyms)$" "$nlist" > "$nlist"T'
4587 $run eval '$mv "$nlist"T "$nlist"'
4588 fi
4589
4590 if test -n "$export_symbols_regex"; then
4591 $run eval '$EGREP -e "$export_symbols_regex" "$nlist" > "$nlist"T'
4592 $run eval '$mv "$nlist"T "$nlist"'
4593 fi
4594
4595 # Prepare the list of exported symbols
4596 if test -z "$export_symbols"; then
4597 export_symbols="$output_objdir/$outputname.exp"
4598 $run $rm $export_symbols
4599 $run eval "${SED} -n -e '/^: @PROGRAM@ $/d' -e 's/^.* \(.*\)$/\1/p' "'< "$nlist" > "$export_symbols"'
4600 case $host in
4601 *cygwin* | *mingw* )
4602 $run eval "echo EXPORTS "'> "$output_objdir/$outputname.def"'
4603 $run eval 'cat "$export_symbols" >> "$output_objdir/$outputname.def"'
4604 ;;
4605 esac
4606 else
4607 $run eval "${SED} -e 's/\([].[*^$]\)/\\\\\1/g' -e 's/^/ /' -e 's/$/$/'"' < "$export_symbols" > "$output_objdir/$outputname.exp"'
4608 $run eval 'grep -f "$output_objdir/$outputname.exp" < "$nlist" > "$nlist"T'
4609 $run eval 'mv "$nlist"T "$nlist"'
4610 case $host in
4611 *cygwin* | *mingw* )
4612 $run eval "echo EXPORTS "'> "$output_objdir/$outputname.def"'
4613 $run eval 'cat "$nlist" >> "$output_objdir/$outputname.def"'
4614 ;;
4615 esac
4616 fi
4617 fi
4618
4619 for arg in $dlprefiles; do
4620 $show "extracting global C symbols from \`$arg'"
4621 name=`$echo "$arg" | ${SED} -e 's%^.*/%%'`
4622 $run eval '$echo ": $name " >> "$nlist"'
4623 $run eval "$NM $arg | $global_symbol_pipe >> '$nlist'"
4624 done
4625
4626 if test -z "$run"; then
4627 # Make sure we have at least an empty file.
4628 test -f "$nlist" || : > "$nlist"
4629
4630 if test -n "$exclude_expsyms"; then
4631 $EGREP -v " ($exclude_expsyms)$" "$nlist" > "$nlist"T
4632 $mv "$nlist"T "$nlist"
4633 fi
4634
4635 # Try sorting and uniquifying the output.
4636 if grep -v "^: " < "$nlist" |
4637 if sort -k 3 </dev/null >/dev/null 2>&1; then
4638 sort -k 3
4639 else
4640 sort +2
4641 fi |
4642 uniq > "$nlist"S; then
4643 :
4644 else
4645 grep -v "^: " < "$nlist" > "$nlist"S
4646 fi
4647
4648 if test -f "$nlist"S; then
4649 eval "$global_symbol_to_cdecl"' < "$nlist"S >> "$output_objdir/$dlsyms"'
4650 else
4651 $echo '/* NONE */' >> "$output_objdir/$dlsyms"
4652 fi
4653
4654 $echo >> "$output_objdir/$dlsyms" "\
4655
4656 #undef lt_preloaded_symbols
4657
4658 #if defined (__STDC__) && __STDC__
4659 # define lt_ptr void *
4660 #else
4661 # define lt_ptr char *
4662 # define const
4663 #endif
4664
4665 /* The mapping between symbol names and symbols. */
4666 "
4667
4668 case $host in
4669 *cygwin* | *mingw* )
4670 $echo >> "$output_objdir/$dlsyms" "\
4671 /* DATA imports from DLLs on WIN32 can't be const, because
4672 runtime relocations are performed -- see ld's documentation
4673 on pseudo-relocs */
4674 struct {
4675 "
4676 ;;
4677 * )
4678 $echo >> "$output_objdir/$dlsyms" "\
4679 const struct {
4680 "
4681 ;;
4682 esac
4683
4684
4685 $echo >> "$output_objdir/$dlsyms" "\
4686 const char *name;
4687 lt_ptr address;
4688 }
4689 lt_preloaded_symbols[] =
4690 {\
4691 "
4692
4693 eval "$global_symbol_to_c_name_address" < "$nlist" >> "$output_objdir/$dlsyms"
4694
4695 $echo >> "$output_objdir/$dlsyms" "\
4696 {0, (lt_ptr) 0}
4697 };
4698
4699 /* This works around a problem in FreeBSD linker */
4700 #ifdef FREEBSD_WORKAROUND
4701 static const void *lt_preloaded_setup() {
4702 return lt_preloaded_symbols;
4703 }
4704 #endif
4705
4706 #ifdef __cplusplus
4707 }
4708 #endif\
4709 "
4710 fi
4711
4712 pic_flag_for_symtable=
4713 case $host in
4714 # compiling the symbol table file with pic_flag works around
4715 # a FreeBSD bug that causes programs to crash when -lm is
4716 # linked before any other PIC object. But we must not use
4717 # pic_flag when linking with -static. The problem exists in
4718 # FreeBSD 2.2.6 and is fixed in FreeBSD 3.1.
4719 *-*-freebsd2*|*-*-freebsd3.0*|*-*-freebsdelf3.0*)
4720 case "$compile_command " in
4721 *" -static "*) ;;
4722 *) pic_flag_for_symtable=" $pic_flag -DFREEBSD_WORKAROUND";;
4723 esac;;
4724 *-*-hpux*)
4725 case "$compile_command " in
4726 *" -static "*) ;;
4727 *) pic_flag_for_symtable=" $pic_flag";;
4728 esac
4729 esac
4730
4731 # Now compile the dynamic symbol file.
4732 $show "(cd $output_objdir && $LTCC $LTCFLAGS -c$no_builtin_flag$pic_flag_for_symtable \"$dlsyms\")"
4733 $run eval '(cd $output_objdir && $LTCC $LTCFLAGS -c$no_builtin_flag$pic_flag_for_symtable "$dlsyms")' || exit $?
4734
4735 # Clean up the generated files.
4736 $show "$rm $output_objdir/$dlsyms $nlist ${nlist}S ${nlist}T"
4737 $run $rm "$output_objdir/$dlsyms" "$nlist" "${nlist}S" "${nlist}T"
4738
4739 # Transform the symbol file into the correct name.
4740 case $host in
4741 *cygwin* | *mingw* )
4742 if test -f "$output_objdir/${outputname}.def" ; then
4743 compile_command=`$echo "X$compile_command" | $SP2NL | $Xsed -e "s%@SYMFILE@%$output_objdir/${outputname}.def $output_objdir/${outputname}S.${objext}%" | $NL2SP`
4744 finalize_command=`$echo "X$finalize_command" | $SP2NL | $Xsed -e "s%@SYMFILE@%$output_objdir/${outputname}.def $output_objdir/${outputname}S.${objext}%" | $NL2SP`
4745 else
4746 compile_command=`$echo "X$compile_command" | $SP2NL | $Xsed -e "s%@SYMFILE@%$output_objdir/${outputname}S.${objext}%" | $NL2SP`
4747 finalize_command=`$echo "X$finalize_command" | $SP2NL | $Xsed -e "s%@SYMFILE@%$output_objdir/${outputname}S.${objext}%" | $NL2SP`
4748 fi
4749 ;;
4750 * )
4751 compile_command=`$echo "X$compile_command" | $SP2NL | $Xsed -e "s%@SYMFILE@%$output_objdir/${outputname}S.${objext}%" | $NL2SP`
4752 finalize_command=`$echo "X$finalize_command" | $SP2NL | $Xsed -e "s%@SYMFILE@%$output_objdir/${outputname}S.${objext}%" | $NL2SP`
4753 ;;
4754 esac
4755 ;;
4756 *)
4757 $echo "$modename: unknown suffix for \`$dlsyms'" 1>&2
4758 exit $EXIT_FAILURE
4759 ;;
4760 esac
4761 else
4762 # We keep going just in case the user didn't refer to
4763 # lt_preloaded_symbols. The linker will fail if global_symbol_pipe
4764 # really was required.
4765
4766 # Nullify the symbol file.
4767 compile_command=`$echo "X$compile_command" | $SP2NL | $Xsed -e "s% @SYMFILE@%%" | $NL2SP`
4768 finalize_command=`$echo "X$finalize_command" | $SP2NL | $Xsed -e "s% @SYMFILE@%%" | $NL2SP`
4769 fi
4770
4771 if test "$need_relink" = no || test "$build_libtool_libs" != yes; then
4772 # Replace the output file specification.
4773 compile_command=`$echo "X$compile_command" | $SP2NL | $Xsed -e 's%@OUTPUT@%'"$output"'%g' | $NL2SP`
4774 link_command="$compile_command$compile_rpath"
4775
4776 # We have no uninstalled library dependencies, so finalize right now.
4777 $show "$link_command"
4778 $run eval "$link_command"
4779 exit_status=$?
4780
4781 # Delete the generated files.
4782 if test -n "$dlsyms"; then
4783 $show "$rm $output_objdir/${outputname}S.${objext}"
4784 $run $rm "$output_objdir/${outputname}S.${objext}"
4785 fi
47867704
47877705 exit $exit_status
4788 fi
4789
4790 if test -n "$shlibpath_var"; then
4791 # We should set the shlibpath_var
4792 rpath=
4793 for dir in $temp_rpath; do
4794 case $dir in
4795 [\\/]* | [A-Za-z]:[\\/]*)
4796 # Absolute path.
4797 rpath="$rpath$dir:"
4798 ;;
4799 *)
4800 # Relative path: add a thisdir entry.
4801 rpath="$rpath\$thisdir/$dir:"
4802 ;;
4803 esac
4804 done
4805 temp_rpath="$rpath"
48067706 fi
48077707
48087708 if test -n "$compile_shlibpath$finalize_shlibpath"; then
48377737 # We don't need to create a wrapper script.
48387738 link_command="$compile_var$compile_command$compile_rpath"
48397739 # Replace the output file specification.
4840 link_command=`$echo "X$link_command" | $Xsed -e 's%@OUTPUT@%'"$output"'%g'`
7740 link_command=`$ECHO "X$link_command" | $Xsed -e 's%@OUTPUT@%'"$output"'%g'`
48417741 # Delete the old output file.
4842 $run $rm $output
7742 $opt_dry_run || $RM $output
48437743 # Link the executable and exit
4844 $show "$link_command"
4845 $run eval "$link_command" || exit $?
7744 func_show_eval "$link_command" 'exit $?'
48467745 exit $EXIT_SUCCESS
48477746 fi
48487747
48517750 link_command="$compile_var$compile_command$compile_rpath"
48527751 relink_command="$finalize_var$finalize_command$finalize_rpath"
48537752
4854 $echo "$modename: warning: this platform does not like uninstalled shared libraries" 1>&2
4855 $echo "$modename: \`$output' will be relinked during installation" 1>&2
7753 func_warning "this platform does not like uninstalled shared libraries"
7754 func_warning "\`$output' will be relinked during installation"
48567755 else
48577756 if test "$fast_install" != no; then
48587757 link_command="$finalize_var$compile_command$finalize_rpath"
48597758 if test "$fast_install" = yes; then
4860 relink_command=`$echo "X$compile_var$compile_command$compile_rpath" | $SP2NL | $Xsed -e 's%@OUTPUT@%\$progdir/\$file%g' | $NL2SP`
7759 relink_command=`$ECHO "X$compile_var$compile_command$compile_rpath" | $Xsed -e 's%@OUTPUT@%\$progdir/\$file%g'`
48617760 else
48627761 # fast_install is set to needless
48637762 relink_command=
48697768 fi
48707769
48717770 # Replace the output file specification.
4872 link_command=`$echo "X$link_command" | $Xsed -e 's%@OUTPUT@%'"$output_objdir/$outputname"'%g'`
7771 link_command=`$ECHO "X$link_command" | $Xsed -e 's%@OUTPUT@%'"$output_objdir/$outputname"'%g'`
48737772
48747773 # Delete the old output files.
4875 $run $rm $output $output_objdir/$outputname $output_objdir/lt-$outputname
4876
4877 $show "$link_command"
4878 $run eval "$link_command" || exit $?
7774 $opt_dry_run || $RM $output $output_objdir/$outputname $output_objdir/lt-$outputname
7775
7776 func_show_eval "$link_command" 'exit $?'
48797777
48807778 # Now create the wrapper script.
4881 $show "creating $output"
7779 func_verbose "creating $output"
48827780
48837781 # Quote the relink command for shipping.
48847782 if test -n "$relink_command"; then
48857783 # Preserve any variables that may affect compiler behavior
48867784 for var in $variables_saved_for_relink; do
48877785 if eval test -z \"\${$var+set}\"; then
4888 relink_command="{ test -z \"\${$var+set}\" || unset $var || { $var=; export $var; }; }; $relink_command"
7786 relink_command="{ test -z \"\${$var+set}\" || $lt_unset $var || { $var=; export $var; }; }; $relink_command"
48897787 elif eval var_value=\$$var; test -z "$var_value"; then
48907788 relink_command="$var=; export $var; $relink_command"
48917789 else
4892 var_value=`$echo "X$var_value" | $Xsed -e "$sed_quote_subst"`
4893 relink_command="$var=\"$var_value\"; export $var; $relink_command"
7790 func_quote_for_eval "$var_value"
7791 relink_command="$var=$func_quote_for_eval_result; export $var; $relink_command"
48947792 fi
48957793 done
48967794 relink_command="(cd `pwd`; $relink_command)"
4897 relink_command=`$echo "X$relink_command" | $SP2NL | $Xsed -e "$sed_quote_subst" | $NL2SP`
7795 relink_command=`$ECHO "X$relink_command" | $Xsed -e "$sed_quote_subst"`
48987796 fi
48997797
4900 # Quote $echo for shipping.
4901 if test "X$echo" = "X$SHELL $progpath --fallback-echo"; then
7798 # Quote $ECHO for shipping.
7799 if test "X$ECHO" = "X$SHELL $progpath --fallback-echo"; then
49027800 case $progpath in
49037801 [\\/]* | [A-Za-z]:[\\/]*) qecho="$SHELL $progpath --fallback-echo";;
49047802 *) qecho="$SHELL `pwd`/$progpath --fallback-echo";;
49057803 esac
4906 qecho=`$echo "X$qecho" | $Xsed -e "$sed_quote_subst"`
7804 qecho=`$ECHO "X$qecho" | $Xsed -e "$sed_quote_subst"`
49077805 else
4908 qecho=`$echo "X$echo" | $Xsed -e "$sed_quote_subst"`
7806 qecho=`$ECHO "X$ECHO" | $Xsed -e "$sed_quote_subst"`
49097807 fi
49107808
4911 # Only actually do things if our run command is non-null.
4912 if test -z "$run"; then
7809 # Only actually do things if not in dry run mode.
7810 $opt_dry_run || {
49137811 # win32 will think the script is a binary if it has
49147812 # a .exe suffix, so we strip it off here.
49157813 case $output in
4916 *.exe) output=`$echo $output|${SED} 's,.exe$,,'` ;;
7814 *.exe) func_stripname '' '.exe' "$output"
7815 output=$func_stripname_result ;;
49177816 esac
49187817 # test for cygwin because mv fails w/o .exe extensions
49197818 case $host in
49207819 *cygwin*)
49217820 exeext=.exe
4922 outputname=`$echo $outputname|${SED} 's,.exe$,,'` ;;
7821 func_stripname '' '.exe' "$outputname"
7822 outputname=$func_stripname_result ;;
49237823 *) exeext= ;;
49247824 esac
49257825 case $host in
49267826 *cygwin* | *mingw* )
4927 output_name=`basename $output`
4928 output_path=`dirname $output`
4929 cwrappersource="$output_path/$objdir/lt-$output_name.c"
4930 cwrapper="$output_path/$output_name.exe"
4931 $rm $cwrappersource $cwrapper
4932 trap "$rm $cwrappersource $cwrapper; exit $EXIT_FAILURE" 1 2 15
4933
4934 cat > $cwrappersource <<EOF
4935
4936 /* $cwrappersource - temporary wrapper executable for $objdir/$outputname
4937 Generated by $PROGRAM - GNU $PACKAGE $VERSION$TIMESTAMP
4938
4939 The $output program cannot be directly executed until all the libtool
4940 libraries that it depends on are installed.
4941
4942 This wrapper executable should never be moved out of the build directory.
4943 If it is, it will not operate correctly.
4944
4945 Currently, it simply execs the wrapper *script* "/bin/sh $output",
4946 but could eventually absorb all of the scripts functionality and
4947 exec $objdir/$outputname directly.
4948 */
4949 EOF
4950 cat >> $cwrappersource<<"EOF"
4951 #include <stdio.h>
4952 #include <stdlib.h>
4953 #include <unistd.h>
4954 #include <malloc.h>
4955 #include <stdarg.h>
4956 #include <assert.h>
4957 #include <string.h>
4958 #include <ctype.h>
4959 #include <sys/stat.h>
4960
4961 #if defined(PATH_MAX)
4962 # define LT_PATHMAX PATH_MAX
4963 #elif defined(MAXPATHLEN)
4964 # define LT_PATHMAX MAXPATHLEN
4965 #else
4966 # define LT_PATHMAX 1024
4967 #endif
4968
4969 #ifndef DIR_SEPARATOR
4970 # define DIR_SEPARATOR '/'
4971 # define PATH_SEPARATOR ':'
4972 #endif
4973
4974 #if defined (_WIN32) || defined (__MSDOS__) || defined (__DJGPP__) || \
4975 defined (__OS2__)
4976 # define HAVE_DOS_BASED_FILE_SYSTEM
4977 # ifndef DIR_SEPARATOR_2
4978 # define DIR_SEPARATOR_2 '\\'
4979 # endif
4980 # ifndef PATH_SEPARATOR_2
4981 # define PATH_SEPARATOR_2 ';'
4982 # endif
4983 #endif
4984
4985 #ifndef DIR_SEPARATOR_2
4986 # define IS_DIR_SEPARATOR(ch) ((ch) == DIR_SEPARATOR)
4987 #else /* DIR_SEPARATOR_2 */
4988 # define IS_DIR_SEPARATOR(ch) \
4989 (((ch) == DIR_SEPARATOR) || ((ch) == DIR_SEPARATOR_2))
4990 #endif /* DIR_SEPARATOR_2 */
4991
4992 #ifndef PATH_SEPARATOR_2
4993 # define IS_PATH_SEPARATOR(ch) ((ch) == PATH_SEPARATOR)
4994 #else /* PATH_SEPARATOR_2 */
4995 # define IS_PATH_SEPARATOR(ch) ((ch) == PATH_SEPARATOR_2)
4996 #endif /* PATH_SEPARATOR_2 */
4997
4998 #define XMALLOC(type, num) ((type *) xmalloc ((num) * sizeof(type)))
4999 #define XFREE(stale) do { \
5000 if (stale) { free ((void *) stale); stale = 0; } \
5001 } while (0)
5002
5003 /* -DDEBUG is fairly common in CFLAGS. */
5004 #undef DEBUG
5005 #if defined DEBUGWRAPPER
5006 # define DEBUG(format, ...) fprintf(stderr, format, __VA_ARGS__)
5007 #else
5008 # define DEBUG(format, ...)
5009 #endif
5010
5011 const char *program_name = NULL;
5012
5013 void * xmalloc (size_t num);
5014 char * xstrdup (const char *string);
5015 const char * base_name (const char *name);
5016 char * find_executable(const char *wrapper);
5017 int check_executable(const char *path);
5018 char * strendzap(char *str, const char *pat);
5019 void lt_fatal (const char *message, ...);
5020
5021 int
5022 main (int argc, char *argv[])
5023 {
5024 char **newargz;
5025 int i;
5026
5027 program_name = (char *) xstrdup (base_name (argv[0]));
5028 DEBUG("(main) argv[0] : %s\n",argv[0]);
5029 DEBUG("(main) program_name : %s\n",program_name);
5030 newargz = XMALLOC(char *, argc+2);
5031 EOF
5032
5033 cat >> $cwrappersource <<EOF
5034 newargz[0] = (char *) xstrdup("$SHELL");
5035 EOF
5036
5037 cat >> $cwrappersource <<"EOF"
5038 newargz[1] = find_executable(argv[0]);
5039 if (newargz[1] == NULL)
5040 lt_fatal("Couldn't find %s", argv[0]);
5041 DEBUG("(main) found exe at : %s\n",newargz[1]);
5042 /* we know the script has the same name, without the .exe */
5043 /* so make sure newargz[1] doesn't end in .exe */
5044 strendzap(newargz[1],".exe");
5045 for (i = 1; i < argc; i++)
5046 newargz[i+1] = xstrdup(argv[i]);
5047 newargz[argc+1] = NULL;
5048
5049 for (i=0; i<argc+1; i++)
5050 {
5051 DEBUG("(main) newargz[%d] : %s\n",i,newargz[i]);
5052 ;
5053 }
5054
5055 EOF
5056
5057 case $host_os in
5058 mingw*)
5059 cat >> $cwrappersource <<EOF
5060 execv("$SHELL",(char const **)newargz);
5061 EOF
5062 ;;
5063 *)
5064 cat >> $cwrappersource <<EOF
5065 execv("$SHELL",newargz);
5066 EOF
5067 ;;
5068 esac
5069
5070 cat >> $cwrappersource <<"EOF"
5071 return 127;
5072 }
5073
5074 void *
5075 xmalloc (size_t num)
5076 {
5077 void * p = (void *) malloc (num);
5078 if (!p)
5079 lt_fatal ("Memory exhausted");
5080
5081 return p;
5082 }
5083
5084 char *
5085 xstrdup (const char *string)
5086 {
5087 return string ? strcpy ((char *) xmalloc (strlen (string) + 1), string) : NULL
5088 ;
5089 }
5090
5091 const char *
5092 base_name (const char *name)
5093 {
5094 const char *base;
5095
5096 #if defined (HAVE_DOS_BASED_FILE_SYSTEM)
5097 /* Skip over the disk name in MSDOS pathnames. */
5098 if (isalpha ((unsigned char)name[0]) && name[1] == ':')
5099 name += 2;
5100 #endif
5101
5102 for (base = name; *name; name++)
5103 if (IS_DIR_SEPARATOR (*name))
5104 base = name + 1;
5105 return base;
5106 }
5107
5108 int
5109 check_executable(const char * path)
5110 {
5111 struct stat st;
5112
5113 DEBUG("(check_executable) : %s\n", path ? (*path ? path : "EMPTY!") : "NULL!");
5114 if ((!path) || (!*path))
5115 return 0;
5116
5117 if ((stat (path, &st) >= 0) &&
5118 (
5119 /* MinGW & native WIN32 do not support S_IXOTH or S_IXGRP */
5120 #if defined (S_IXOTH)
5121 ((st.st_mode & S_IXOTH) == S_IXOTH) ||
5122 #endif
5123 #if defined (S_IXGRP)
5124 ((st.st_mode & S_IXGRP) == S_IXGRP) ||
5125 #endif
5126 ((st.st_mode & S_IXUSR) == S_IXUSR))
5127 )
5128 return 1;
5129 else
5130 return 0;
5131 }
5132
5133 /* Searches for the full path of the wrapper. Returns
5134 newly allocated full path name if found, NULL otherwise */
5135 char *
5136 find_executable (const char* wrapper)
5137 {
5138 int has_slash = 0;
5139 const char* p;
5140 const char* p_next;
5141 /* static buffer for getcwd */
5142 char tmp[LT_PATHMAX + 1];
5143 int tmp_len;
5144 char* concat_name;
5145
5146 DEBUG("(find_executable) : %s\n", wrapper ? (*wrapper ? wrapper : "EMPTY!") : "NULL!");
5147
5148 if ((wrapper == NULL) || (*wrapper == '\0'))
5149 return NULL;
5150
5151 /* Absolute path? */
5152 #if defined (HAVE_DOS_BASED_FILE_SYSTEM)
5153 if (isalpha ((unsigned char)wrapper[0]) && wrapper[1] == ':')
5154 {
5155 concat_name = xstrdup (wrapper);
5156 if (check_executable(concat_name))
5157 return concat_name;
5158 XFREE(concat_name);
5159 }
5160 else
5161 {
5162 #endif
5163 if (IS_DIR_SEPARATOR (wrapper[0]))
5164 {
5165 concat_name = xstrdup (wrapper);
5166 if (check_executable(concat_name))
5167 return concat_name;
5168 XFREE(concat_name);
5169 }
5170 #if defined (HAVE_DOS_BASED_FILE_SYSTEM)
5171 }
5172 #endif
5173
5174 for (p = wrapper; *p; p++)
5175 if (*p == '/')
5176 {
5177 has_slash = 1;
5178 break;
5179 }
5180 if (!has_slash)
5181 {
5182 /* no slashes; search PATH */
5183 const char* path = getenv ("PATH");
5184 if (path != NULL)
5185 {
5186 for (p = path; *p; p = p_next)
5187 {
5188 const char* q;
5189 size_t p_len;
5190 for (q = p; *q; q++)
5191 if (IS_PATH_SEPARATOR(*q))
5192 break;
5193 p_len = q - p;
5194 p_next = (*q == '\0' ? q : q + 1);
5195 if (p_len == 0)
5196 {
5197 /* empty path: current directory */
5198 if (getcwd (tmp, LT_PATHMAX) == NULL)
5199 lt_fatal ("getcwd failed");
5200 tmp_len = strlen(tmp);
5201 concat_name = XMALLOC(char, tmp_len + 1 + strlen(wrapper) + 1);
5202 memcpy (concat_name, tmp, tmp_len);
5203 concat_name[tmp_len] = '/';
5204 strcpy (concat_name + tmp_len + 1, wrapper);
5205 }
5206 else
5207 {
5208 concat_name = XMALLOC(char, p_len + 1 + strlen(wrapper) + 1);
5209 memcpy (concat_name, p, p_len);
5210 concat_name[p_len] = '/';
5211 strcpy (concat_name + p_len + 1, wrapper);
5212 }
5213 if (check_executable(concat_name))
5214 return concat_name;
5215 XFREE(concat_name);
5216 }
5217 }
5218 /* not found in PATH; assume curdir */
5219 }
5220 /* Relative path | not found in path: prepend cwd */
5221 if (getcwd (tmp, LT_PATHMAX) == NULL)
5222 lt_fatal ("getcwd failed");
5223 tmp_len = strlen(tmp);
5224 concat_name = XMALLOC(char, tmp_len + 1 + strlen(wrapper) + 1);
5225 memcpy (concat_name, tmp, tmp_len);
5226 concat_name[tmp_len] = '/';
5227 strcpy (concat_name + tmp_len + 1, wrapper);
5228
5229 if (check_executable(concat_name))
5230 return concat_name;
5231 XFREE(concat_name);
5232 return NULL;
5233 }
5234
5235 char *
5236 strendzap(char *str, const char *pat)
5237 {
5238 size_t len, patlen;
5239
5240 assert(str != NULL);
5241 assert(pat != NULL);
5242
5243 len = strlen(str);
5244 patlen = strlen(pat);
5245
5246 if (patlen <= len)
5247 {
5248 str += len - patlen;
5249 if (strcmp(str, pat) == 0)
5250 *str = '\0';
5251 }
5252 return str;
5253 }
5254
5255 static void
5256 lt_error_core (int exit_status, const char * mode,
5257 const char * message, va_list ap)
5258 {
5259 fprintf (stderr, "%s: %s: ", program_name, mode);
5260 vfprintf (stderr, message, ap);
5261 fprintf (stderr, ".\n");
5262
5263 if (exit_status >= 0)
5264 exit (exit_status);
5265 }
5266
5267 void
5268 lt_fatal (const char *message, ...)
5269 {
5270 va_list ap;
5271 va_start (ap, message);
5272 lt_error_core (EXIT_FAILURE, "FATAL", message, ap);
5273 va_end (ap);
5274 }
5275 EOF
5276 # we should really use a build-platform specific compiler
5277 # here, but OTOH, the wrappers (shell script and this C one)
5278 # are only useful if you want to execute the "real" binary.
5279 # Since the "real" binary is built for $host, then this
5280 # wrapper might as well be built for $host, too.
5281 $run $LTCC $LTCFLAGS -s -o $cwrapper $cwrappersource
5282 ;;
5283 esac
5284 $rm $output
5285 trap "$rm $output; exit $EXIT_FAILURE" 1 2 15
5286
5287 $echo > $output "\
5288 #! $SHELL
5289
5290 # $output - temporary wrapper script for $objdir/$outputname
5291 # Generated by $PROGRAM - GNU $PACKAGE $VERSION$TIMESTAMP
5292 #
5293 # The $output program cannot be directly executed until all the libtool
5294 # libraries that it depends on are installed.
5295 #
5296 # This wrapper script should never be moved out of the build directory.
5297 # If it is, it will not operate correctly.
5298
5299 # Sed substitution that helps us do robust quoting. It backslashifies
5300 # metacharacters that are still active within double-quoted strings.
5301 Xsed='${SED} -e 1s/^X//'
5302 sed_quote_subst='$sed_quote_subst'
5303
5304 # Be Bourne compatible (taken from Autoconf:_AS_BOURNE_COMPATIBLE).
5305 if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then
5306 emulate sh
5307 NULLCMD=:
5308 # Zsh 3.x and 4.x performs word splitting on \${1+\"\$@\"}, which
5309 # is contrary to our usage. Disable this feature.
5310 alias -g '\${1+\"\$@\"}'='\"\$@\"'
5311 setopt NO_GLOB_SUBST
5312 else
5313 case \`(set -o) 2>/dev/null\` in *posix*) set -o posix;; esac
5314 fi
5315 BIN_SH=xpg4; export BIN_SH # for Tru64
5316 DUALCASE=1; export DUALCASE # for MKS sh
5317
5318 # The HP-UX ksh and POSIX shell print the target directory to stdout
5319 # if CDPATH is set.
5320 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
5321
5322 relink_command=\"$relink_command\"
5323
5324 # This environment variable determines our operation mode.
5325 if test \"\$libtool_install_magic\" = \"$magic\"; then
5326 # install mode needs the following variable:
5327 notinst_deplibs='$notinst_deplibs'
5328 else
5329 # When we are sourced in execute mode, \$file and \$echo are already set.
5330 if test \"\$libtool_execute_magic\" != \"$magic\"; then
5331 echo=\"$qecho\"
5332 file=\"\$0\"
5333 # Make sure echo works.
5334 if test \"X\$1\" = X--no-reexec; then
5335 # Discard the --no-reexec flag, and continue.
5336 shift
5337 elif test \"X\`(\$echo '\t') 2>/dev/null\`\" = 'X\t'; then
5338 # Yippee, \$echo works!
5339 :
5340 else
5341 # Restart under the correct shell, and then maybe \$echo will work.
5342 exec $SHELL \"\$0\" --no-reexec \${1+\"\$@\"}
5343 fi
5344 fi\
5345 "
5346 $echo >> $output "\
5347
5348 # Find the directory that this script lives in.
5349 thisdir=\`\$echo \"X\$file\" | \$Xsed -e 's%/[^/]*$%%'\`
5350 test \"x\$thisdir\" = \"x\$file\" && thisdir=.
5351
5352 # Follow symbolic links until we get to the real thisdir.
5353 file=\`ls -ld \"\$file\" | ${SED} -n 's/.*-> //p'\`
5354 while test -n \"\$file\"; do
5355 destdir=\`\$echo \"X\$file\" | \$Xsed -e 's%/[^/]*\$%%'\`
5356
5357 # If there was a directory component, then change thisdir.
5358 if test \"x\$destdir\" != \"x\$file\"; then
5359 case \"\$destdir\" in
5360 [\\\\/]* | [A-Za-z]:[\\\\/]*) thisdir=\"\$destdir\" ;;
5361 *) thisdir=\"\$thisdir/\$destdir\" ;;
5362 esac
5363 fi
5364
5365 file=\`\$echo \"X\$file\" | \$Xsed -e 's%^.*/%%'\`
5366 file=\`ls -ld \"\$thisdir/\$file\" | ${SED} -n 's/.*-> //p'\`
5367 done
5368
5369 # Try to get the absolute directory name.
5370 absdir=\`cd \"\$thisdir\" && pwd\`
5371 test -n \"\$absdir\" && thisdir=\"\$absdir\"
5372 "
5373
5374 if test "$fast_install" = yes; then
5375 $echo >> $output "\
5376 program=lt-'$outputname'$exeext
5377 progdir=\"\$thisdir/$objdir\"
5378
5379 if test ! -f \"\$progdir/\$program\" || \\
5380 { file=\`ls -1dt \"\$progdir/\$program\" \"\$progdir/../\$program\" 2>/dev/null | ${SED} 1q\`; \\
5381 test \"X\$file\" != \"X\$progdir/\$program\"; }; then
5382
5383 file=\"\$\$-\$program\"
5384
5385 if test ! -d \"\$progdir\"; then
5386 $mkdir \"\$progdir\"
5387 else
5388 $rm \"\$progdir/\$file\"
5389 fi"
5390
5391 $echo >> $output "\
5392
5393 # relink executable if necessary
5394 if test -n \"\$relink_command\"; then
5395 if relink_command_output=\`eval \$relink_command 2>&1\`; then :
5396 else
5397 $echo \"\$relink_command_output\" >&2
5398 $rm \"\$progdir/\$file\"
5399 exit $EXIT_FAILURE
5400 fi
5401 fi
5402
5403 $mv \"\$progdir/\$file\" \"\$progdir/\$program\" 2>/dev/null ||
5404 { $rm \"\$progdir/\$program\";
5405 $mv \"\$progdir/\$file\" \"\$progdir/\$program\"; }
5406 $rm \"\$progdir/\$file\"
5407 fi"
5408 else
5409 $echo >> $output "\
5410 program='$outputname'
5411 progdir=\"\$thisdir/$objdir\"
5412 "
5413 fi
5414
5415 $echo >> $output "\
5416
5417 if test -f \"\$progdir/\$program\"; then"
5418
5419 # Export our shlibpath_var if we have one.
5420 if test "$shlibpath_overrides_runpath" = yes && test -n "$shlibpath_var" && test -n "$temp_rpath"; then
5421 $echo >> $output "\
5422 # Add our own library path to $shlibpath_var
5423 $shlibpath_var=\"$temp_rpath\$$shlibpath_var\"
5424
5425 # Some systems cannot cope with colon-terminated $shlibpath_var
5426 # The second colon is a workaround for a bug in BeOS R4 sed
5427 $shlibpath_var=\`\$echo \"X\$$shlibpath_var\" | \$Xsed -e 's/::*\$//'\`
5428
5429 export $shlibpath_var
5430 "
5431 fi
5432
5433 # fixup the dll searchpath if we need to.
5434 if test -n "$dllsearchpath"; then
5435 $echo >> $output "\
5436 # Add the dll search path components to the executable PATH
5437 PATH=$dllsearchpath:\$PATH
5438 "
5439 fi
5440
5441 $echo >> $output "\
5442 if test \"\$libtool_execute_magic\" != \"$magic\"; then
5443 # Run the actual program with our arguments.
5444 "
5445 case $host in
5446 # Backslashes separate directories on plain windows
5447 *-*-mingw | *-*-os2*)
5448 $echo >> $output "\
5449 exec \"\$progdir\\\\\$program\" \${1+\"\$@\"}
5450 "
7827 func_dirname_and_basename "$output" "" "."
7828 output_name=$func_basename_result
7829 output_path=$func_dirname_result
7830 cwrappersource="$output_path/$objdir/lt-$output_name.c"
7831 cwrapper="$output_path/$output_name.exe"
7832 $RM $cwrappersource $cwrapper
7833 trap "$RM $cwrappersource $cwrapper; exit $EXIT_FAILURE" 1 2 15
7834
7835 func_emit_cwrapperexe_src > $cwrappersource
7836
7837 # The wrapper executable is built using the $host compiler,
7838 # because it contains $host paths and files. If cross-
7839 # compiling, it, like the target executable, must be
7840 # executed on the $host or under an emulation environment.
7841 $opt_dry_run || {
7842 $LTCC $LTCFLAGS -o $cwrapper $cwrappersource
7843 $STRIP $cwrapper
7844 }
7845
7846 # Now, create the wrapper script for func_source use:
7847 func_ltwrapper_scriptname $cwrapper
7848 $RM $func_ltwrapper_scriptname_result
7849 trap "$RM $func_ltwrapper_scriptname_result; exit $EXIT_FAILURE" 1 2 15
7850 $opt_dry_run || {
7851 # note: this script will not be executed, so do not chmod.
7852 if test "x$build" = "x$host" ; then
7853 $cwrapper --lt-dump-script > $func_ltwrapper_scriptname_result
7854 else
7855 func_emit_wrapper no > $func_ltwrapper_scriptname_result
7856 fi
7857 }
54517858 ;;
5452
5453 *)
5454 $echo >> $output "\
5455 exec \"\$progdir/\$program\" \${1+\"\$@\"}
5456 "
7859 * )
7860 $RM $output
7861 trap "$RM $output; exit $EXIT_FAILURE" 1 2 15
7862
7863 func_emit_wrapper no > $output
7864 chmod +x $output
54577865 ;;
54587866 esac
5459 $echo >> $output "\
5460 \$echo \"\$0: cannot exec \$program \$*\"
5461 exit $EXIT_FAILURE
5462 fi
5463 else
5464 # The program doesn't exist.
5465 \$echo \"\$0: error: \\\`\$progdir/\$program' does not exist\" 1>&2
5466 \$echo \"This script is just a wrapper for \$program.\" 1>&2
5467 $echo \"See the $PACKAGE documentation for more information.\" 1>&2
5468 exit $EXIT_FAILURE
5469 fi
5470 fi\
5471 "
5472 chmod +x $output
5473 fi
7867 }
54747868 exit $EXIT_SUCCESS
54757869 ;;
54767870 esac
54797873 for oldlib in $oldlibs; do
54807874
54817875 if test "$build_libtool_libs" = convenience; then
5482 oldobjs="$libobjs_save"
7876 oldobjs="$libobjs_save $symfileobj"
54837877 addlibs="$convenience"
54847878 build_libtool_libs=no
54857879 else
54887882 build_libtool_libs=no
54897883 else
54907884 oldobjs="$old_deplibs $non_pic_objects"
7885 if test "$preload" = yes && test -f "$symfileobj"; then
7886 oldobjs="$oldobjs $symfileobj"
7887 fi
54917888 fi
54927889 addlibs="$old_convenience"
54937890 fi
55027899
55037900 # Do each command in the archive commands.
55047901 if test -n "$old_archive_from_new_cmds" && test "$build_libtool_libs" = yes; then
5505 cmds=$old_archive_from_new_cmds
7902 cmds=$old_archive_from_new_cmds
55067903 else
7904
7905 # Add any objects from preloaded convenience libraries
7906 if test -n "$dlprefiles"; then
7907 gentop="$output_objdir/${outputname}x"
7908 generated="$generated $gentop"
7909
7910 func_extract_archives $gentop $dlprefiles
7911 oldobjs="$oldobjs $func_extract_archives_result"
7912 fi
7913
55077914 # POSIX demands no paths to be encoded in archives. We have
55087915 # to avoid creating archives with duplicate basenames if we
55097916 # might have to extract them afterwards, e.g., when creating a
55127919 # not supported by libtool).
55137920 if (for obj in $oldobjs
55147921 do
5515 $echo "X$obj" | $Xsed -e 's%^.*/%%'
7922 func_basename "$obj"
7923 $ECHO "$func_basename_result"
55167924 done | sort | sort -uc >/dev/null 2>&1); then
55177925 :
55187926 else
5519 $echo "copying selected object files to avoid basename conflicts..."
5520
5521 if test -z "$gentop"; then
5522 gentop="$output_objdir/${outputname}x"
5523 generated="$generated $gentop"
5524
5525 $show "${rm}r $gentop"
5526 $run ${rm}r "$gentop"
5527 $show "$mkdir $gentop"
5528 $run $mkdir "$gentop"
5529 exit_status=$?
5530 if test "$exit_status" -ne 0 && test ! -d "$gentop"; then
5531 exit $exit_status
5532 fi
5533 fi
5534
7927 $ECHO "copying selected object files to avoid basename conflicts..."
7928 gentop="$output_objdir/${outputname}x"
7929 generated="$generated $gentop"
7930 func_mkdir_p "$gentop"
55357931 save_oldobjs=$oldobjs
55367932 oldobjs=
55377933 counter=1
55387934 for obj in $save_oldobjs
55397935 do
5540 objbase=`$echo "X$obj" | $Xsed -e 's%^.*/%%'`
7936 func_basename "$obj"
7937 objbase="$func_basename_result"
55417938 case " $oldobjs " in
55427939 " ") oldobjs=$obj ;;
55437940 *[\ /]"$objbase "*)
55457942 # Make sure we don't pick an alternate name that also
55467943 # overlaps.
55477944 newobj=lt$counter-$objbase
5548 counter=`expr $counter + 1`
7945 func_arith $counter + 1
7946 counter=$func_arith_result
55497947 case " $oldobjs " in
55507948 *[\ /]"$newobj "*) ;;
55517949 *) if test ! -f "$gentop/$newobj"; then break; fi ;;
55527950 esac
55537951 done
5554 $show "ln $obj $gentop/$newobj || cp $obj $gentop/$newobj"
5555 $run ln "$obj" "$gentop/$newobj" ||
5556 $run cp "$obj" "$gentop/$newobj"
7952 func_show_eval "ln $obj $gentop/$newobj || cp $obj $gentop/$newobj"
55577953 oldobjs="$oldobjs $gentop/$newobj"
55587954 ;;
55597955 *) oldobjs="$oldobjs $obj" ;;
55607956 esac
55617957 done
55627958 fi
5563
55647959 eval cmds=\"$old_archive_cmds\"
55657960
5566 if len=`expr "X$cmds" : ".*"` &&
5567 test "$len" -le "$max_cmd_len" || test "$max_cmd_len" -le -1; then
7961 func_len " $cmds"
7962 len=$func_len_result
7963 if test "$len" -lt "$max_cmd_len" || test "$max_cmd_len" -le -1; then
55687964 cmds=$old_archive_cmds
55697965 else
55707966 # the command line is too long to link in one step, link in parts
5571 $echo "using piecewise archive linking..."
7967 func_verbose "using piecewise archive linking..."
55727968 save_RANLIB=$RANLIB
55737969 RANLIB=:
55747970 objlist=
55757971 concat_cmds=
55767972 save_oldobjs=$oldobjs
5577
7973 oldobjs=
55787974 # Is there a better way of finding the last object in the list?
55797975 for obj in $save_oldobjs
55807976 do
55817977 last_oldobj=$obj
55827978 done
7979 eval test_cmds=\"$old_archive_cmds\"
7980 func_len " $test_cmds"
7981 len0=$func_len_result
7982 len=$len0
55837983 for obj in $save_oldobjs
55847984 do
5585 oldobjs="$objlist $obj"
5586 objlist="$objlist $obj"
5587 eval test_cmds=\"$old_archive_cmds\"
5588 if len=`expr "X$test_cmds" : ".*" 2>/dev/null` &&
5589 test "$len" -le "$max_cmd_len"; then
7985 func_len " $obj"
7986 func_arith $len + $func_len_result
7987 len=$func_arith_result
7988 func_append objlist " $obj"
7989 if test "$len" -lt "$max_cmd_len"; then
55907990 :
55917991 else
55927992 # the above command should be used before it gets too long
55937993 oldobjs=$objlist
55947994 if test "$obj" = "$last_oldobj" ; then
5595 RANLIB=$save_RANLIB
7995 RANLIB=$save_RANLIB
55967996 fi
55977997 test -z "$concat_cmds" || concat_cmds=$concat_cmds~
55987998 eval concat_cmds=\"\${concat_cmds}$old_archive_cmds\"
55997999 objlist=
8000 len=$len0
56008001 fi
56018002 done
56028003 RANLIB=$save_RANLIB
56088009 fi
56098010 fi
56108011 fi
5611 save_ifs="$IFS"; IFS='~'
5612 for cmd in $cmds; do
5613 eval cmd=\"$cmd\"
5614 IFS="$save_ifs"
5615 $show "$cmd"
5616 $run eval "$cmd" || exit $?
5617 done
5618 IFS="$save_ifs"
8012 func_execute_cmds "$cmds" 'exit $?'
56198013 done
56208014
5621 if test -n "$generated"; then
5622 $show "${rm}r$generated"
5623 $run ${rm}r$generated
5624 fi
8015 test -n "$generated" && \
8016 func_show_eval "${RM}r$generated"
56258017
56268018 # Now create the libtool archive.
56278019 case $output in
56288020 *.la)
56298021 old_library=
56308022 test "$build_old_libs" = yes && old_library="$libname.$libext"
5631 $show "creating $output"
8023 func_verbose "creating $output"
56328024
56338025 # Preserve any variables that may affect compiler behavior
56348026 for var in $variables_saved_for_relink; do
56358027 if eval test -z \"\${$var+set}\"; then
5636 relink_command="{ test -z \"\${$var+set}\" || unset $var || { $var=; export $var; }; }; $relink_command"
8028 relink_command="{ test -z \"\${$var+set}\" || $lt_unset $var || { $var=; export $var; }; }; $relink_command"
56378029 elif eval var_value=\$$var; test -z "$var_value"; then
56388030 relink_command="$var=; export $var; $relink_command"
56398031 else
5640 var_value=`$echo "X$var_value" | $Xsed -e "$sed_quote_subst"`
5641 relink_command="$var=\"$var_value\"; export $var; $relink_command"
8032 func_quote_for_eval "$var_value"
8033 relink_command="$var=$func_quote_for_eval_result; export $var; $relink_command"
56428034 fi
56438035 done
56448036 # Quote the link command for shipping.
56458037 relink_command="(cd `pwd`; $SHELL $progpath $preserve_args --mode=relink $libtool_args @inst_prefix_dir@)"
5646 relink_command=`$echo "X$relink_command" | $SP2NL | $Xsed -e "$sed_quote_subst" | $NL2SP`
8038 relink_command=`$ECHO "X$relink_command" | $Xsed -e "$sed_quote_subst"`
56478039 if test "$hardcode_automatic" = yes ; then
56488040 relink_command=
56498041 fi
56508042
5651
56528043 # Only create the output if not a dry run.
5653 if test -z "$run"; then
8044 $opt_dry_run || {
56548045 for installed in no yes; do
56558046 if test "$installed" = yes; then
56568047 if test -z "$install_libdir"; then
56628053 for deplib in $dependency_libs; do
56638054 case $deplib in
56648055 *.la)
5665 name=`$echo "X$deplib" | $Xsed -e 's%^.*/%%'`
8056 func_basename "$deplib"
8057 name="$func_basename_result"
56668058 eval libdir=`${SED} -n -e 's/^libdir=\(.*\)$/\1/p' $deplib`
5667 if test -z "$libdir"; then
5668 $echo "$modename: \`$deplib' is not a valid libtool archive" 1>&2
5669 exit $EXIT_FAILURE
5670 fi
8059 test -z "$libdir" && \
8060 func_fatal_error "\`$deplib' is not a valid libtool archive"
56718061 newdependency_libs="$newdependency_libs $libdir/$name"
56728062 ;;
56738063 *) newdependency_libs="$newdependency_libs $deplib" ;;
56758065 done
56768066 dependency_libs="$newdependency_libs"
56778067 newdlfiles=
8068
56788069 for lib in $dlfiles; do
5679 name=`$echo "X$lib" | $Xsed -e 's%^.*/%%'`
5680 eval libdir=`${SED} -n -e 's/^libdir=\(.*\)$/\1/p' $lib`
5681 if test -z "$libdir"; then
5682 $echo "$modename: \`$lib' is not a valid libtool archive" 1>&2
5683 exit $EXIT_FAILURE
5684 fi
5685 newdlfiles="$newdlfiles $libdir/$name"
8070 case $lib in
8071 *.la)
8072 func_basename "$lib"
8073 name="$func_basename_result"
8074 eval libdir=`${SED} -n -e 's/^libdir=\(.*\)$/\1/p' $lib`
8075 test -z "$libdir" && \
8076 func_fatal_error "\`$lib' is not a valid libtool archive"
8077 newdlfiles="$newdlfiles $libdir/$name"
8078 ;;
8079 *) newdlfiles="$newdlfiles $lib" ;;
8080 esac
56868081 done
56878082 dlfiles="$newdlfiles"
56888083 newdlprefiles=
56898084 for lib in $dlprefiles; do
5690 name=`$echo "X$lib" | $Xsed -e 's%^.*/%%'`
5691 eval libdir=`${SED} -n -e 's/^libdir=\(.*\)$/\1/p' $lib`
5692 if test -z "$libdir"; then
5693 $echo "$modename: \`$lib' is not a valid libtool archive" 1>&2
5694 exit $EXIT_FAILURE
5695 fi
5696 newdlprefiles="$newdlprefiles $libdir/$name"
8085 case $lib in
8086 *.la)
8087 # Only pass preopened files to the pseudo-archive (for
8088 # eventual linking with the app. that links it) if we
8089 # didn't already link the preopened objects directly into
8090 # the library:
8091 func_basename "$lib"
8092 name="$func_basename_result"
8093 eval libdir=`${SED} -n -e 's/^libdir=\(.*\)$/\1/p' $lib`
8094 test -z "$libdir" && \
8095 func_fatal_error "\`$lib' is not a valid libtool archive"
8096 newdlprefiles="$newdlprefiles $libdir/$name"
8097 ;;
8098 esac
56978099 done
56988100 dlprefiles="$newdlprefiles"
56998101 else
57168118 done
57178119 dlprefiles="$newdlprefiles"
57188120 fi
5719 $rm $output
8121 $RM $output
57208122 # place dlname in correct position for cygwin
57218123 tdlname=$dlname
57228124 case $host,$output,$installed,$module,$dlname in
5723 *cygwin*,*lai,yes,no,*.dll | *mingw*,*lai,yes,no,*.dll) tdlname=../bin/$dlname ;;
8125 *cygwin*,*lai,yes,no,*.dll | *mingw*,*lai,yes,no,*.dll | *cegcc*,*lai,yes,no,*.dll) tdlname=../bin/$dlname ;;
57248126 esac
5725 $echo > $output "\
8127 $ECHO > $output "\
57268128 # $outputname - a libtool library file
5727 # Generated by $PROGRAM - GNU $PACKAGE $VERSION$TIMESTAMP
8129 # Generated by $PROGRAM (GNU $PACKAGE$TIMESTAMP) $VERSION
57288130 #
57298131 # Please DO NOT delete this file!
57308132 # It is necessary for linking the library.
57388140 # The name of the static archive.
57398141 old_library='$old_library'
57408142
8143 # Linker flags that can not go in dependency_libs.
8144 inherited_linker_flags='$new_inherited_linker_flags'
8145
57418146 # Libraries that this one depends upon.
57428147 dependency_libs='$dependency_libs'
8148
8149 # Names of additional weak libraries provided by this library
8150 weak_library_names='$weak_libs'
57438151
57448152 # Version information for $libname.
57458153 current=$current
57598167 # Directory that this library needs to be installed in:
57608168 libdir='$install_libdir'"
57618169 if test "$installed" = no && test "$need_relink" = yes; then
5762 $echo >> $output "\
8170 $ECHO >> $output "\
57638171 relink_command=\"$relink_command\""
57648172 fi
57658173 done
5766 fi
8174 }
57678175
57688176 # Do a symbolic link so that the libtool archive can be found in
57698177 # LD_LIBRARY_PATH before the program is installed.
5770 $show "(cd $output_objdir && $rm $outputname && $LN_S ../$outputname $outputname)"
5771 $run eval '(cd $output_objdir && $rm $outputname && $LN_S ../$outputname $outputname)' || exit $?
8178 func_show_eval '( cd "$output_objdir" && $RM "$outputname" && $LN_S "../$outputname" "$outputname" )' 'exit $?'
57728179 ;;
57738180 esac
57748181 exit $EXIT_SUCCESS
5775 ;;
5776
5777 # libtool install mode
5778 install)
5779 modename="$modename: install"
5780
5781 # There may be an optional sh(1) argument at the beginning of
5782 # install_prog (especially on Windows NT).
5783 if test "$nonopt" = "$SHELL" || test "$nonopt" = /bin/sh ||
5784 # Allow the use of GNU shtool's install command.
5785 $echo "X$nonopt" | grep shtool > /dev/null; then
5786 # Aesthetically quote it.
5787 arg=`$echo "X$nonopt" | $Xsed -e "$sed_quote_subst"`
5788 case $arg in
5789 *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
5790 arg="\"$arg\""
5791 ;;
5792 esac
5793 install_prog="$arg "
5794 arg="$1"
5795 shift
5796 else
5797 install_prog=
5798 arg=$nonopt
5799 fi
5800
5801 # The real first argument should be the name of the installation program.
5802 # Aesthetically quote it.
5803 arg=`$echo "X$arg" | $Xsed -e "$sed_quote_subst"`
5804 case $arg in
5805 *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
5806 arg="\"$arg\""
5807 ;;
5808 esac
5809 install_prog="$install_prog$arg"
5810
5811 # We need to accept at least all the BSD install flags.
5812 dest=
8182 }
8183
8184 { test "$mode" = link || test "$mode" = relink; } &&
8185 func_mode_link ${1+"$@"}
8186
8187
8188 # func_mode_uninstall arg...
8189 func_mode_uninstall ()
8190 {
8191 $opt_debug
8192 RM="$nonopt"
58138193 files=
5814 opts=
5815 prev=
5816 install_type=
5817 isdir=no
5818 stripme=
5819 for arg
5820 do
5821 if test -n "$dest"; then
5822 files="$files $dest"
5823 dest=$arg
5824 continue
5825 fi
5826
5827 case $arg in
5828 -d) isdir=yes ;;
5829 -f)
5830 case " $install_prog " in
5831 *[\\\ /]cp\ *) ;;
5832 *) prev=$arg ;;
5833 esac
5834 ;;
5835 -g | -m | -o) prev=$arg ;;
5836 -s)
5837 stripme=" -s"
5838 continue
5839 ;;
5840 -*)
5841 ;;
5842 *)
5843 # If the previous option needed an argument, then skip it.
5844 if test -n "$prev"; then
5845 prev=
5846 else
5847 dest=$arg
5848 continue
5849 fi
5850 ;;
5851 esac
5852
5853 # Aesthetically quote the argument.
5854 arg=`$echo "X$arg" | $Xsed -e "$sed_quote_subst"`
5855 case $arg in
5856 *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
5857 arg="\"$arg\""
5858 ;;
5859 esac
5860 install_prog="$install_prog $arg"
5861 done
5862
5863 if test -z "$install_prog"; then
5864 $echo "$modename: you must specify an install program" 1>&2
5865 $echo "$help" 1>&2
5866 exit $EXIT_FAILURE
5867 fi
5868
5869 if test -n "$prev"; then
5870 $echo "$modename: the \`$prev' option requires an argument" 1>&2
5871 $echo "$help" 1>&2
5872 exit $EXIT_FAILURE
5873 fi
5874
5875 if test -z "$files"; then
5876 if test -z "$dest"; then
5877 $echo "$modename: no file or destination specified" 1>&2
5878 else
5879 $echo "$modename: you must specify a destination" 1>&2
5880 fi
5881 $echo "$help" 1>&2
5882 exit $EXIT_FAILURE
5883 fi
5884
5885 # Strip any trailing slash from the destination.
5886 dest=`$echo "X$dest" | $Xsed -e 's%/$%%'`
5887
5888 # Check to see that the destination is a directory.
5889 test -d "$dest" && isdir=yes
5890 if test "$isdir" = yes; then
5891 destdir="$dest"
5892 destname=
5893 else
5894 destdir=`$echo "X$dest" | $Xsed -e 's%/[^/]*$%%'`
5895 test "X$destdir" = "X$dest" && destdir=.
5896 destname=`$echo "X$dest" | $Xsed -e 's%^.*/%%'`
5897
5898 # Not a directory, so check to see that there is only one file specified.
5899 set dummy $files
5900 if test "$#" -gt 2; then
5901 $echo "$modename: \`$dest' is not a directory" 1>&2
5902 $echo "$help" 1>&2
5903 exit $EXIT_FAILURE
5904 fi
5905 fi
5906 case $destdir in
5907 [\\/]* | [A-Za-z]:[\\/]*) ;;
5908 *)
5909 for file in $files; do
5910 case $file in
5911 *.lo) ;;
5912 *)
5913 $echo "$modename: \`$destdir' must be an absolute directory name" 1>&2
5914 $echo "$help" 1>&2
5915 exit $EXIT_FAILURE
5916 ;;
5917 esac
5918 done
5919 ;;
5920 esac
8194 rmforce=
8195 exit_status=0
59218196
59228197 # This variable tells wrapper scripts just to set variables rather
59238198 # than running their programs.
59248199 libtool_install_magic="$magic"
59258200
5926 staticlibs=
5927 future_libdirs=
5928 current_libdirs=
5929 for file in $files; do
5930
5931 # Do each installation.
5932 case $file in
5933 *.$libext)
5934 # Do the static libraries later.
5935 staticlibs="$staticlibs $file"
5936 ;;
5937
5938 *.la)
5939 # Check to see that this really is a libtool archive.
5940 if (${SED} -e '2q' $file | grep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then :
5941 else
5942 $echo "$modename: \`$file' is not a valid libtool archive" 1>&2
5943 $echo "$help" 1>&2
5944 exit $EXIT_FAILURE
5945 fi
5946
5947 library_names=
5948 old_library=
5949 relink_command=
5950 # If there is no directory component, then add one.
5951 case $file in
5952 */* | *\\*) . $file ;;
5953 *) . ./$file ;;
5954 esac
5955
5956 # Add the libdir to current_libdirs if it is the destination.
5957 if test "X$destdir" = "X$libdir"; then
5958 case "$current_libdirs " in
5959 *" $libdir "*) ;;
5960 *) current_libdirs="$current_libdirs $libdir" ;;
5961 esac
5962 else
5963 # Note the libdir as a future libdir.
5964 case "$future_libdirs " in
5965 *" $libdir "*) ;;
5966 *) future_libdirs="$future_libdirs $libdir" ;;
5967 esac
5968 fi
5969
5970 dir=`$echo "X$file" | $Xsed -e 's%/[^/]*$%%'`/
5971 test "X$dir" = "X$file/" && dir=
5972 dir="$dir$objdir"
5973
5974 if test -n "$relink_command"; then
5975 # Determine the prefix the user has applied to our future dir.
5976 inst_prefix_dir=`$echo "$destdir" | $SED "s%$libdir\$%%"`
5977
5978 # Don't allow the user to place us outside of our expected
5979 # location b/c this prevents finding dependent libraries that
5980 # are installed to the same prefix.
5981 # At present, this check doesn't affect windows .dll's that
5982 # are installed into $libdir/../bin (currently, that works fine)
5983 # but it's something to keep an eye on.
5984 if test "$inst_prefix_dir" = "$destdir"; then
5985 $echo "$modename: error: cannot install \`$file' to a directory not ending in $libdir" 1>&2
5986 exit $EXIT_FAILURE
5987 fi
5988
5989 if test -n "$inst_prefix_dir"; then
5990 # Stick the inst_prefix_dir data into the link command.
5991 relink_command=`$echo "$relink_command" | $SP2NL | $SED "s%@inst_prefix_dir@%-inst-prefix-dir $inst_prefix_dir%" | $NL2SP`
5992 else
5993 relink_command=`$echo "$relink_command" | $SP2NL | $SED "s%@inst_prefix_dir@%%" | $NL2SP`
5994 fi
5995
5996 $echo "$modename: warning: relinking \`$file'" 1>&2
5997 $show "$relink_command"
5998 if $run eval "$relink_command"; then :
5999 else
6000 $echo "$modename: error: relink \`$file' with the above command before installing it" 1>&2
6001 exit $EXIT_FAILURE
6002 fi
6003 fi
6004
6005 # See the names of the shared library.
6006 set dummy $library_names
6007 if test -n "$2"; then
6008 realname="$2"
6009 shift
6010 shift
6011
6012 srcname="$realname"
6013 test -n "$relink_command" && srcname="$realname"T
6014
6015 # Install the shared library and build the symlinks.
6016 $show "$install_prog $dir/$srcname $destdir/$realname"
6017 $run eval "$install_prog $dir/$srcname $destdir/$realname" || exit $?
6018 if test -n "$stripme" && test -n "$striplib"; then
6019 $show "$striplib $destdir/$realname"
6020 $run eval "$striplib $destdir/$realname" || exit $?
6021 fi
6022
6023 if test "$#" -gt 0; then
6024 # Delete the old symlinks, and create new ones.
6025 # Try `ln -sf' first, because the `ln' binary might depend on
6026 # the symlink we replace! Solaris /bin/ln does not understand -f,
6027 # so we also need to try rm && ln -s.
6028 for linkname
6029 do
6030 if test "$linkname" != "$realname"; then
6031 $show "(cd $destdir && { $LN_S -f $realname $linkname || { $rm $linkname && $LN_S $realname $linkname; }; })"
6032 $run eval "(cd $destdir && { $LN_S -f $realname $linkname || { $rm $linkname && $LN_S $realname $linkname; }; })"
6033 fi
6034 done
6035 fi
6036
6037 # Do each command in the postinstall commands.
6038 lib="$destdir/$realname"
6039 cmds=$postinstall_cmds
6040 save_ifs="$IFS"; IFS='~'
6041 for cmd in $cmds; do
6042 IFS="$save_ifs"
6043 eval cmd=\"$cmd\"
6044 $show "$cmd"
6045 $run eval "$cmd" || {
6046 lt_exit=$?
6047
6048 # Restore the uninstalled library and exit
6049 if test "$mode" = relink; then
6050 $run eval '(cd $output_objdir && $rm ${realname}T && $mv ${realname}U $realname)'
6051 fi
6052
6053 exit $lt_exit
6054 }
6055 done
6056 IFS="$save_ifs"
6057 fi
6058
6059 # Install the pseudo-library for information purposes.
6060 name=`$echo "X$file" | $Xsed -e 's%^.*/%%'`
6061 instname="$dir/$name"i
6062 $show "$install_prog $instname $destdir/$name"
6063 $run eval "$install_prog $instname $destdir/$name" || exit $?
6064
6065 # Maybe install the static library, too.
6066 test -n "$old_library" && staticlibs="$staticlibs $dir/$old_library"
6067 ;;
6068
6069 *.lo)
6070 # Install (i.e. copy) a libtool object.
6071
6072 # Figure out destination file name, if it wasn't already specified.
6073 if test -n "$destname"; then
6074 destfile="$destdir/$destname"
6075 else
6076 destfile=`$echo "X$file" | $Xsed -e 's%^.*/%%'`
6077 destfile="$destdir/$destfile"
6078 fi
6079
6080 # Deduce the name of the destination old-style object file.
6081 case $destfile in
6082 *.lo)
6083 staticdest=`$echo "X$destfile" | $Xsed -e "$lo2o"`
6084 ;;
6085 *.$objext)
6086 staticdest="$destfile"
6087 destfile=
6088 ;;
6089 *)
6090 $echo "$modename: cannot copy a libtool object to \`$destfile'" 1>&2
6091 $echo "$help" 1>&2
6092 exit $EXIT_FAILURE
6093 ;;
6094 esac
6095
6096 # Install the libtool object if requested.
6097 if test -n "$destfile"; then
6098 $show "$install_prog $file $destfile"
6099 $run eval "$install_prog $file $destfile" || exit $?
6100 fi
6101
6102 # Install the old object if enabled.
6103 if test "$build_old_libs" = yes; then
6104 # Deduce the name of the old-style object file.
6105 staticobj=`$echo "X$file" | $Xsed -e "$lo2o"`
6106
6107 $show "$install_prog $staticobj $staticdest"
6108 $run eval "$install_prog \$staticobj \$staticdest" || exit $?
6109 fi
6110 exit $EXIT_SUCCESS
6111 ;;
6112
6113 *)
6114 # Figure out destination file name, if it wasn't already specified.
6115 if test -n "$destname"; then
6116 destfile="$destdir/$destname"
6117 else
6118 destfile=`$echo "X$file" | $Xsed -e 's%^.*/%%'`
6119 destfile="$destdir/$destfile"
6120 fi
6121
6122 # If the file is missing, and there is a .exe on the end, strip it
6123 # because it is most likely a libtool script we actually want to
6124 # install
6125 stripped_ext=""
6126 case $file in
6127 *.exe)
6128 if test ! -f "$file"; then
6129 file=`$echo $file|${SED} 's,.exe$,,'`
6130 stripped_ext=".exe"
6131 fi
6132 ;;
6133 esac
6134
6135 # Do a test to see if this is really a libtool program.
6136 case $host in
6137 *cygwin*|*mingw*)
6138 wrapper=`$echo $file | ${SED} -e 's,.exe$,,'`
6139 ;;
6140 *)
6141 wrapper=$file
6142 ;;
6143 esac
6144 if (${SED} -e '4q' $wrapper | grep "^# Generated by .*$PACKAGE")>/dev/null 2>&1; then
6145 notinst_deplibs=
6146 relink_command=
6147
6148 # Note that it is not necessary on cygwin/mingw to append a dot to
6149 # foo even if both foo and FILE.exe exist: automatic-append-.exe
6150 # behavior happens only for exec(3), not for open(2)! Also, sourcing
6151 # `FILE.' does not work on cygwin managed mounts.
6152 #
6153 # If there is no directory component, then add one.
6154 case $wrapper in
6155 */* | *\\*) . ${wrapper} ;;
6156 *) . ./${wrapper} ;;
6157 esac
6158
6159 # Check the variables that should have been set.
6160 if test -z "$notinst_deplibs"; then
6161 $echo "$modename: invalid libtool wrapper script \`$wrapper'" 1>&2
6162 exit $EXIT_FAILURE
6163 fi
6164
6165 finalize=yes
6166 for lib in $notinst_deplibs; do
6167 # Check to see that each library is installed.
6168 libdir=
6169 if test -f "$lib"; then
6170 # If there is no directory component, then add one.
6171 case $lib in
6172 */* | *\\*) . $lib ;;
6173 *) . ./$lib ;;
6174 esac
6175 fi
6176 libfile="$libdir/"`$echo "X$lib" | $Xsed -e 's%^.*/%%g'` ### testsuite: skip nested quoting test
6177 if test -n "$libdir" && test ! -f "$libfile"; then
6178 $echo "$modename: warning: \`$lib' has not been installed in \`$libdir'" 1>&2
6179 finalize=no
6180 fi
6181 done
6182
6183 relink_command=
6184 # Note that it is not necessary on cygwin/mingw to append a dot to
6185 # foo even if both foo and FILE.exe exist: automatic-append-.exe
6186 # behavior happens only for exec(3), not for open(2)! Also, sourcing
6187 # `FILE.' does not work on cygwin managed mounts.
6188 #
6189 # If there is no directory component, then add one.
6190 case $wrapper in
6191 */* | *\\*) . ${wrapper} ;;
6192 *) . ./${wrapper} ;;
6193 esac
6194
6195 outputname=
6196 if test "$fast_install" = no && test -n "$relink_command"; then
6197 if test "$finalize" = yes && test -z "$run"; then
6198 tmpdir=`func_mktempdir`
6199 file=`$echo "X$file$stripped_ext" | $Xsed -e 's%^.*/%%'`
6200 outputname="$tmpdir/$file"
6201 # Replace the output file specification.
6202 relink_command=`$echo "X$relink_command" | $SP2NL | $Xsed -e 's%@OUTPUT@%'"$outputname"'%g' | $NL2SP`
6203
6204 $show "$relink_command"
6205 if $run eval "$relink_command"; then :
6206 else
6207 $echo "$modename: error: relink \`$file' with the above command before installing it" 1>&2
6208 ${rm}r "$tmpdir"
6209 continue
6210 fi
6211 file="$outputname"
6212 else
6213 $echo "$modename: warning: cannot relink \`$file'" 1>&2
6214 fi
6215 else
6216 # Install the binary that we compiled earlier.
6217 file=`$echo "X$file$stripped_ext" | $Xsed -e "s%\([^/]*\)$%$objdir/\1%"`
6218 fi
6219 fi
6220
6221 # remove .exe since cygwin /usr/bin/install will append another
6222 # one anyway
6223 case $install_prog,$host in
6224 */usr/bin/install*,*cygwin*)
6225 case $file:$destfile in
6226 *.exe:*.exe)
6227 # this is ok
6228 ;;
6229 *.exe:*)
6230 destfile=$destfile.exe
6231 ;;
6232 *:*.exe)
6233 destfile=`$echo $destfile | ${SED} -e 's,.exe$,,'`
6234 ;;
6235 esac
6236 ;;
6237 esac
6238 $show "$install_prog$stripme $file $destfile"
6239 $run eval "$install_prog\$stripme \$file \$destfile" || exit $?
6240 test -n "$outputname" && ${rm}r "$tmpdir"
6241 ;;
6242 esac
6243 done
6244
6245 for file in $staticlibs; do
6246 name=`$echo "X$file" | $Xsed -e 's%^.*/%%'`
6247
6248 # Set up the ranlib parameters.
6249 oldlib="$destdir/$name"
6250
6251 $show "$install_prog $file $oldlib"
6252 $run eval "$install_prog \$file \$oldlib" || exit $?
6253
6254 if test -n "$stripme" && test -n "$old_striplib"; then
6255 $show "$old_striplib $oldlib"
6256 $run eval "$old_striplib $oldlib" || exit $?
6257 fi
6258
6259 # Do each command in the postinstall commands.
6260 cmds=$old_postinstall_cmds
6261 save_ifs="$IFS"; IFS='~'
6262 for cmd in $cmds; do
6263 IFS="$save_ifs"
6264 eval cmd=\"$cmd\"
6265 $show "$cmd"
6266 $run eval "$cmd" || exit $?
6267 done
6268 IFS="$save_ifs"
6269 done
6270
6271 if test -n "$future_libdirs"; then
6272 $echo "$modename: warning: remember to run \`$progname --finish$future_libdirs'" 1>&2
6273 fi
6274
6275 if test -n "$current_libdirs"; then
6276 # Maybe just do a dry run.
6277 test -n "$run" && current_libdirs=" -n$current_libdirs"
6278 exec_cmd='$SHELL $progpath $preserve_args --finish$current_libdirs'
6279 else
6280 exit $EXIT_SUCCESS
6281 fi
6282 ;;
6283
6284 # libtool finish mode
6285 finish)
6286 modename="$modename: finish"
6287 libdirs="$nonopt"
6288 admincmds=
6289
6290 if test -n "$finish_cmds$finish_eval" && test -n "$libdirs"; then
6291 for dir
6292 do
6293 libdirs="$libdirs $dir"
6294 done
6295
6296 for libdir in $libdirs; do
6297 if test -n "$finish_cmds"; then
6298 # Do each command in the finish commands.
6299 cmds=$finish_cmds
6300 save_ifs="$IFS"; IFS='~'
6301 for cmd in $cmds; do
6302 IFS="$save_ifs"
6303 eval cmd=\"$cmd\"
6304 $show "$cmd"
6305 $run eval "$cmd" || admincmds="$admincmds
6306 $cmd"
6307 done
6308 IFS="$save_ifs"
6309 fi
6310 if test -n "$finish_eval"; then
6311 # Do the single finish_eval.
6312 eval cmds=\"$finish_eval\"
6313 $run eval "$cmds" || admincmds="$admincmds
6314 $cmds"
6315 fi
6316 done
6317 fi
6318
6319 # Exit here if they wanted silent mode.
6320 test "$show" = : && exit $EXIT_SUCCESS
6321
6322 $echo "X----------------------------------------------------------------------" | $Xsed
6323 $echo "Libraries have been installed in:"
6324 for libdir in $libdirs; do
6325 $echo " $libdir"
6326 done
6327 $echo
6328 $echo "If you ever happen to want to link against installed libraries"
6329 $echo "in a given directory, LIBDIR, you must either use libtool, and"
6330 $echo "specify the full pathname of the library, or use the \`-LLIBDIR'"
6331 $echo "flag during linking and do at least one of the following:"
6332 if test -n "$shlibpath_var"; then
6333 $echo " - add LIBDIR to the \`$shlibpath_var' environment variable"
6334 $echo " during execution"
6335 fi
6336 if test -n "$runpath_var"; then
6337 $echo " - add LIBDIR to the \`$runpath_var' environment variable"
6338 $echo " during linking"
6339 fi
6340 if test -n "$hardcode_libdir_flag_spec"; then
6341 libdir=LIBDIR
6342 eval flag=\"$hardcode_libdir_flag_spec\"
6343
6344 $echo " - use the \`$flag' linker flag"
6345 fi
6346 if test -n "$admincmds"; then
6347 $echo " - have your system administrator run these commands:$admincmds"
6348 fi
6349 if test -f /etc/ld.so.conf; then
6350 $echo " - have your system administrator add LIBDIR to \`/etc/ld.so.conf'"
6351 fi
6352 $echo
6353 $echo "See any operating system documentation about shared libraries for"
6354 $echo "more information, such as the ld(1) and ld.so(8) manual pages."
6355 $echo "X----------------------------------------------------------------------" | $Xsed
6356 exit $EXIT_SUCCESS
6357 ;;
6358
6359 # libtool execute mode
6360 execute)
6361 modename="$modename: execute"
6362
6363 # The first argument is the command name.
6364 cmd="$nonopt"
6365 if test -z "$cmd"; then
6366 $echo "$modename: you must specify a COMMAND" 1>&2
6367 $echo "$help"
6368 exit $EXIT_FAILURE
6369 fi
6370
6371 # Handle -dlopen flags immediately.
6372 for file in $execute_dlfiles; do
6373 if test ! -f "$file"; then
6374 $echo "$modename: \`$file' is not a file" 1>&2
6375 $echo "$help" 1>&2
6376 exit $EXIT_FAILURE
6377 fi
6378
6379 dir=
6380 case $file in
6381 *.la)
6382 # Check to see that this really is a libtool archive.
6383 if (${SED} -e '2q' $file | grep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then :
6384 else
6385 $echo "$modename: \`$lib' is not a valid libtool archive" 1>&2
6386 $echo "$help" 1>&2
6387 exit $EXIT_FAILURE
6388 fi
6389
6390 # Read the libtool library.
6391 dlname=
6392 library_names=
6393
6394 # If there is no directory component, then add one.
6395 case $file in
6396 */* | *\\*) . $file ;;
6397 *) . ./$file ;;
6398 esac
6399
6400 # Skip this library if it cannot be dlopened.
6401 if test -z "$dlname"; then
6402 # Warn if it was a shared library.
6403 test -n "$library_names" && $echo "$modename: warning: \`$file' was not linked with \`-export-dynamic'"
6404 continue
6405 fi
6406
6407 dir=`$echo "X$file" | $Xsed -e 's%/[^/]*$%%'`
6408 test "X$dir" = "X$file" && dir=.
6409
6410 if test -f "$dir/$objdir/$dlname"; then
6411 dir="$dir/$objdir"
6412 else
6413 if test ! -f "$dir/$dlname"; then
6414 $echo "$modename: cannot find \`$dlname' in \`$dir' or \`$dir/$objdir'" 1>&2
6415 exit $EXIT_FAILURE
6416 fi
6417 fi
6418 ;;
6419
6420 *.lo)
6421 # Just add the directory containing the .lo file.
6422 dir=`$echo "X$file" | $Xsed -e 's%/[^/]*$%%'`
6423 test "X$dir" = "X$file" && dir=.
6424 ;;
6425
6426 *)
6427 $echo "$modename: warning \`-dlopen' is ignored for non-libtool libraries and objects" 1>&2
6428 continue
6429 ;;
6430 esac
6431
6432 # Get the absolute pathname.
6433 absdir=`cd "$dir" && pwd`
6434 test -n "$absdir" && dir="$absdir"
6435
6436 # Now add the directory to shlibpath_var.
6437 if eval "test -z \"\$$shlibpath_var\""; then
6438 eval "$shlibpath_var=\"\$dir\""
6439 else
6440 eval "$shlibpath_var=\"\$dir:\$$shlibpath_var\""
6441 fi
6442 done
6443
6444 # This variable tells wrapper scripts just to set shlibpath_var
6445 # rather than running their programs.
6446 libtool_execute_magic="$magic"
6447
6448 # Check if any of the arguments is a wrapper script.
6449 args=
6450 for file
6451 do
6452 case $file in
6453 -*) ;;
6454 *)
6455 # Do a test to see if this is really a libtool program.
6456 if (${SED} -e '4q' $file | grep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then
6457 # If there is no directory component, then add one.
6458 case $file in
6459 */* | *\\*) . $file ;;
6460 *) . ./$file ;;
6461 esac
6462
6463 # Transform arg to wrapped name.
6464 file="$progdir/$program"
6465 fi
6466 ;;
6467 esac
6468 # Quote arguments (to preserve shell metacharacters).
6469 file=`$echo "X$file" | $Xsed -e "$sed_quote_subst"`
6470 args="$args \"$file\""
6471 done
6472
6473 if test -z "$run"; then
6474 if test -n "$shlibpath_var"; then
6475 # Export the shlibpath_var.
6476 eval "export $shlibpath_var"
6477 fi
6478
6479 # Restore saved environment variables
6480 for lt_var in LANG LC_ALL LC_CTYPE LC_COLLATE LC_MESSAGES
6481 do
6482 eval "if test \"\${save_$lt_var+set}\" = set; then
6483 $lt_var=\$save_$lt_var; export $lt_var
6484 fi"
6485 done
6486
6487 # Now prepare to actually exec the command.
6488 exec_cmd="\$cmd$args"
6489 else
6490 # Display what would be done.
6491 if test -n "$shlibpath_var"; then
6492 eval "\$echo \"\$shlibpath_var=\$$shlibpath_var\""
6493 $echo "export $shlibpath_var"
6494 fi
6495 $echo "$cmd$args"
6496 exit $EXIT_SUCCESS
6497 fi
6498 ;;
6499
6500 # libtool clean and uninstall mode
6501 clean | uninstall)
6502 modename="$modename: $mode"
6503 rm="$nonopt"
6504 files=
6505 rmforce=
6506 exit_status=0
6507
6508 # This variable tells wrapper scripts just to set variables rather
6509 # than running their programs.
6510 libtool_install_magic="$magic"
6511
65128201 for arg
65138202 do
65148203 case $arg in
6515 -f) rm="$rm $arg"; rmforce=yes ;;
6516 -*) rm="$rm $arg" ;;
8204 -f) RM="$RM $arg"; rmforce=yes ;;
8205 -*) RM="$RM $arg" ;;
65178206 *) files="$files $arg" ;;
65188207 esac
65198208 done
65208209
6521 if test -z "$rm"; then
6522 $echo "$modename: you must specify an RM program" 1>&2
6523 $echo "$help" 1>&2
6524 exit $EXIT_FAILURE
6525 fi
8210 test -z "$RM" && \
8211 func_fatal_help "you must specify an RM program"
65268212
65278213 rmdirs=
65288214
65298215 origobjdir="$objdir"
65308216 for file in $files; do
6531 dir=`$echo "X$file" | $Xsed -e 's%/[^/]*$%%'`
6532 if test "X$dir" = "X$file"; then
6533 dir=.
8217 func_dirname "$file" "" "."
8218 dir="$func_dirname_result"
8219 if test "X$dir" = X.; then
65348220 objdir="$origobjdir"
65358221 else
65368222 objdir="$dir/$origobjdir"
65378223 fi
6538 name=`$echo "X$file" | $Xsed -e 's%^.*/%%'`
8224 func_basename "$file"
8225 name="$func_basename_result"
65398226 test "$mode" = uninstall && objdir="$dir"
65408227
65418228 # Remember objdir for removal later, being careful to avoid duplicates
65478234 fi
65488235
65498236 # Don't error if the file doesn't exist and rm -f was used.
6550 if (test -L "$file") >/dev/null 2>&1 \
6551 || (test -h "$file") >/dev/null 2>&1 \
6552 || test -f "$file"; then
8237 if { test -L "$file"; } >/dev/null 2>&1 ||
8238 { test -h "$file"; } >/dev/null 2>&1 ||
8239 test -f "$file"; then
65538240 :
65548241 elif test -d "$file"; then
65558242 exit_status=1
65638250 case $name in
65648251 *.la)
65658252 # Possibly a libtool archive, so verify it.
6566 if (${SED} -e '2q' $file | grep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then
6567 . $dir/$name
8253 if func_lalib_p "$file"; then
8254 func_source $dir/$name
65688255
65698256 # Delete the libtool libraries and symlinks.
65708257 for n in $library_names; do
65798266 *" $dlname "*) ;;
65808267 *) rmfiles="$rmfiles $objdir/$dlname" ;;
65818268 esac
6582 test -n "$libdir" && rmfiles="$rmfiles $objdir/$name $objdir/${name}i"
8269 test -n "$libdir" && rmfiles="$rmfiles $objdir/$name $objdir/${name}i"
65838270 ;;
65848271 uninstall)
65858272 if test -n "$library_names"; then
65868273 # Do each command in the postuninstall commands.
6587 cmds=$postuninstall_cmds
6588 save_ifs="$IFS"; IFS='~'
6589 for cmd in $cmds; do
6590 IFS="$save_ifs"
6591 eval cmd=\"$cmd\"
6592 $show "$cmd"
6593 $run eval "$cmd"
6594 if test "$?" -ne 0 && test "$rmforce" != yes; then
6595 exit_status=1
6596 fi
6597 done
6598 IFS="$save_ifs"
8274 func_execute_cmds "$postuninstall_cmds" 'test "$rmforce" = yes || exit_status=1'
65998275 fi
66008276
66018277 if test -n "$old_library"; then
66028278 # Do each command in the old_postuninstall commands.
6603 cmds=$old_postuninstall_cmds
6604 save_ifs="$IFS"; IFS='~'
6605 for cmd in $cmds; do
6606 IFS="$save_ifs"
6607 eval cmd=\"$cmd\"
6608 $show "$cmd"
6609 $run eval "$cmd"
6610 if test "$?" -ne 0 && test "$rmforce" != yes; then
6611 exit_status=1
6612 fi
6613 done
6614 IFS="$save_ifs"
8279 func_execute_cmds "$old_postuninstall_cmds" 'test "$rmforce" = yes || exit_status=1'
66158280 fi
66168281 # FIXME: should reinstall the best remaining shared library.
66178282 ;;
66218286
66228287 *.lo)
66238288 # Possibly a libtool object, so verify it.
6624 if (${SED} -e '2q' $file | grep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then
8289 if func_lalib_p "$file"; then
66258290
66268291 # Read the .lo file
6627 . $dir/$name
8292 func_source $dir/$name
66288293
66298294 # Add PIC object to the list of files to remove.
6630 if test -n "$pic_object" \
6631 && test "$pic_object" != none; then
8295 if test -n "$pic_object" &&
8296 test "$pic_object" != none; then
66328297 rmfiles="$rmfiles $dir/$pic_object"
66338298 fi
66348299
66358300 # Add non-PIC object to the list of files to remove.
6636 if test -n "$non_pic_object" \
6637 && test "$non_pic_object" != none; then
8301 if test -n "$non_pic_object" &&
8302 test "$non_pic_object" != none; then
66388303 rmfiles="$rmfiles $dir/$non_pic_object"
66398304 fi
66408305 fi
66458310 noexename=$name
66468311 case $file in
66478312 *.exe)
6648 file=`$echo $file|${SED} 's,.exe$,,'`
6649 noexename=`$echo $name|${SED} 's,.exe$,,'`
8313 func_stripname '' '.exe' "$file"
8314 file=$func_stripname_result
8315 func_stripname '' '.exe' "$name"
8316 noexename=$func_stripname_result
66508317 # $file with .exe has already been added to rmfiles,
66518318 # add $file without .exe
66528319 rmfiles="$rmfiles $file"
66538320 ;;
66548321 esac
66558322 # Do a test to see if this is a libtool program.
6656 if (${SED} -e '4q' $file | grep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then
6657 relink_command=
6658 . $dir/$noexename
8323 if func_ltwrapper_p "$file"; then
8324 if func_ltwrapper_executable_p "$file"; then
8325 func_ltwrapper_scriptname "$file"
8326 relink_command=
8327 func_source $func_ltwrapper_scriptname_result
8328 rmfiles="$rmfiles $func_ltwrapper_scriptname_result"
8329 else
8330 relink_command=
8331 func_source $dir/$noexename
8332 fi
66598333
66608334 # note $name still contains .exe if it was in $file originally
66618335 # as does the version of $file that was added into $rmfiles
66708344 fi
66718345 ;;
66728346 esac
6673 $show "$rm $rmfiles"
6674 $run $rm $rmfiles || exit_status=1
8347 func_show_eval "$RM $rmfiles" 'exit_status=1'
66758348 done
66768349 objdir="$origobjdir"
66778350
66788351 # Try to remove the ${objdir}s in the directories where we deleted files
66798352 for dir in $rmdirs; do
66808353 if test -d "$dir"; then
6681 $show "rmdir $dir"
6682 $run rmdir $dir >/dev/null 2>&1
8354 func_show_eval "rmdir $dir >/dev/null 2>&1"
66838355 fi
66848356 done
66858357
66868358 exit $exit_status
6687 ;;
6688
6689 "")
6690 $echo "$modename: you must specify a MODE" 1>&2
6691 $echo "$generic_help" 1>&2
6692 exit $EXIT_FAILURE
6693 ;;
6694 esac
6695
6696 if test -z "$exec_cmd"; then
6697 $echo "$modename: invalid operation mode \`$mode'" 1>&2
6698 $echo "$generic_help" 1>&2
6699 exit $EXIT_FAILURE
6700 fi
6701 fi # test -z "$show_help"
8359 }
8360
8361 { test "$mode" = uninstall || test "$mode" = clean; } &&
8362 func_mode_uninstall ${1+"$@"}
8363
8364 test -z "$mode" && {
8365 help="$generic_help"
8366 func_fatal_help "you must specify a MODE"
8367 }
8368
8369 test -z "$exec_cmd" && \
8370 func_fatal_help "invalid operation mode \`$mode'"
67028371
67038372 if test -n "$exec_cmd"; then
6704 eval exec $exec_cmd
8373 eval exec "$exec_cmd"
67058374 exit $EXIT_FAILURE
67068375 fi
67078376
6708 # We need to display help for each of the modes.
6709 case $mode in
6710 "") $echo \
6711 "Usage: $modename [OPTION]... [MODE-ARG]...
6712
6713 Provide generalized library-building support services.
6714
6715 --config show all configuration variables
6716 --debug enable verbose shell tracing
6717 -n, --dry-run display commands without modifying any files
6718 --features display basic configuration information and exit
6719 --finish same as \`--mode=finish'
6720 --help display this help message and exit
6721 --mode=MODE use operation mode MODE [default=inferred from MODE-ARGS]
6722 --quiet same as \`--silent'
6723 --silent don't print informational messages
6724 --tag=TAG use configuration variables from tag TAG
6725 --version print version information
6726
6727 MODE must be one of the following:
6728
6729 clean remove files from the build directory
6730 compile compile a source file into a libtool object
6731 execute automatically set library path, then run a program
6732 finish complete the installation of libtool libraries
6733 install install libraries or executables
6734 link create a library or an executable
6735 uninstall remove libraries from an installed directory
6736
6737 MODE-ARGS vary depending on the MODE. Try \`$modename --help --mode=MODE' for
6738 a more detailed description of MODE.
6739
6740 Report bugs to <bug-libtool@gnu.org>."
6741 exit $EXIT_SUCCESS
6742 ;;
6743
6744 clean)
6745 $echo \
6746 "Usage: $modename [OPTION]... --mode=clean RM [RM-OPTION]... FILE...
6747
6748 Remove files from the build directory.
6749
6750 RM is the name of the program to use to delete files associated with each FILE
6751 (typically \`/bin/rm'). RM-OPTIONS are options (such as \`-f') to be passed
6752 to RM.
6753
6754 If FILE is a libtool library, object or program, all the files associated
6755 with it are deleted. Otherwise, only FILE itself is deleted using RM."
6756 ;;
6757
6758 compile)
6759 $echo \
6760 "Usage: $modename [OPTION]... --mode=compile COMPILE-COMMAND... SOURCEFILE
6761
6762 Compile a source file into a libtool library object.
6763
6764 This mode accepts the following additional options:
6765
6766 -o OUTPUT-FILE set the output file name to OUTPUT-FILE
6767 -prefer-pic try to building PIC objects only
6768 -prefer-non-pic try to building non-PIC objects only
6769 -static always build a \`.o' file suitable for static linking
6770
6771 COMPILE-COMMAND is a command to be used in creating a \`standard' object file
6772 from the given SOURCEFILE.
6773
6774 The output file name is determined by removing the directory component from
6775 SOURCEFILE, then substituting the C source code suffix \`.c' with the
6776 library object suffix, \`.lo'."
6777 ;;
6778
6779 execute)
6780 $echo \
6781 "Usage: $modename [OPTION]... --mode=execute COMMAND [ARGS]...
6782
6783 Automatically set library path, then run a program.
6784
6785 This mode accepts the following additional options:
6786
6787 -dlopen FILE add the directory containing FILE to the library path
6788
6789 This mode sets the library path environment variable according to \`-dlopen'
6790 flags.
6791
6792 If any of the ARGS are libtool executable wrappers, then they are translated
6793 into their corresponding uninstalled binary, and any of their required library
6794 directories are added to the library path.
6795
6796 Then, COMMAND is executed, with ARGS as arguments."
6797 ;;
6798
6799 finish)
6800 $echo \
6801 "Usage: $modename [OPTION]... --mode=finish [LIBDIR]...
6802
6803 Complete the installation of libtool libraries.
6804
6805 Each LIBDIR is a directory that contains libtool libraries.
6806
6807 The commands that this mode executes may require superuser privileges. Use
6808 the \`--dry-run' option if you just want to see what would be executed."
6809 ;;
6810
6811 install)
6812 $echo \
6813 "Usage: $modename [OPTION]... --mode=install INSTALL-COMMAND...
6814
6815 Install executables or libraries.
6816
6817 INSTALL-COMMAND is the installation command. The first component should be
6818 either the \`install' or \`cp' program.
6819
6820 The rest of the components are interpreted as arguments to that command (only
6821 BSD-compatible install options are recognized)."
6822 ;;
6823
6824 link)
6825 $echo \
6826 "Usage: $modename [OPTION]... --mode=link LINK-COMMAND...
6827
6828 Link object files or libraries together to form another library, or to
6829 create an executable program.
6830
6831 LINK-COMMAND is a command using the C compiler that you would use to create
6832 a program from several object files.
6833
6834 The following components of LINK-COMMAND are treated specially:
6835
6836 -all-static do not do any dynamic linking at all
6837 -avoid-version do not add a version suffix if possible
6838 -dlopen FILE \`-dlpreopen' FILE if it cannot be dlopened at runtime
6839 -dlpreopen FILE link in FILE and add its symbols to lt_preloaded_symbols
6840 -export-dynamic allow symbols from OUTPUT-FILE to be resolved with dlsym(3)
6841 -export-symbols SYMFILE
6842 try to export only the symbols listed in SYMFILE
6843 -export-symbols-regex REGEX
6844 try to export only the symbols matching REGEX
6845 -LLIBDIR search LIBDIR for required installed libraries
6846 -lNAME OUTPUT-FILE requires the installed library libNAME
6847 -module build a library that can dlopened
6848 -no-fast-install disable the fast-install mode
6849 -no-install link a not-installable executable
6850 -no-undefined declare that a library does not refer to external symbols
6851 -o OUTPUT-FILE create OUTPUT-FILE from the specified objects
6852 -objectlist FILE Use a list of object files found in FILE to specify objects
6853 -precious-files-regex REGEX
6854 don't remove output files matching REGEX
6855 -release RELEASE specify package release information
6856 -rpath LIBDIR the created library will eventually be installed in LIBDIR
6857 -R[ ]LIBDIR add LIBDIR to the runtime path of programs and libraries
6858 -static do not do any dynamic linking of uninstalled libtool libraries
6859 -static-libtool-libs
6860 do not do any dynamic linking of libtool libraries
6861 -version-info CURRENT[:REVISION[:AGE]]
6862 specify library version info [each variable defaults to 0]
6863
6864 All other options (arguments beginning with \`-') are ignored.
6865
6866 Every other argument is treated as a filename. Files ending in \`.la' are
6867 treated as uninstalled libtool libraries, other files are standard or library
6868 object files.
6869
6870 If the OUTPUT-FILE ends in \`.la', then a libtool library is created,
6871 only library objects (\`.lo' files) may be specified, and \`-rpath' is
6872 required, except when creating a convenience library.
6873
6874 If OUTPUT-FILE ends in \`.a' or \`.lib', then a standard library is created
6875 using \`ar' and \`ranlib', or on Windows using \`lib'.
6876
6877 If OUTPUT-FILE ends in \`.lo' or \`.${objext}', then a reloadable object file
6878 is created, otherwise an executable program is created."
6879 ;;
6880
6881 uninstall)
6882 $echo \
6883 "Usage: $modename [OPTION]... --mode=uninstall RM [RM-OPTION]... FILE...
6884
6885 Remove libraries from an installation directory.
6886
6887 RM is the name of the program to use to delete files associated with each FILE
6888 (typically \`/bin/rm'). RM-OPTIONS are options (such as \`-f') to be passed
6889 to RM.
6890
6891 If FILE is a libtool library, all the files associated with it are deleted.
6892 Otherwise, only FILE itself is deleted using RM."
6893 ;;
6894
6895 *)
6896 $echo "$modename: invalid operation mode \`$mode'" 1>&2
6897 $echo "$help" 1>&2
6898 exit $EXIT_FAILURE
6899 ;;
6900 esac
6901
6902 $echo
6903 $echo "Try \`$modename --help' for more information about other modes."
6904
6905 exit $?
8377 exit $exit_status
8378
69068379
69078380 # The TAGs below are defined such that we never get into a situation
69088381 # in which we disable both kinds of libraries. Given conflicting
69168389 # configuration. But we'll never go from static-only to shared-only.
69178390
69188391 # ### BEGIN LIBTOOL TAG CONFIG: disable-shared
6919 disable_libs=shared
8392 build_libtool_libs=no
8393 build_old_libs=yes
69208394 # ### END LIBTOOL TAG CONFIG: disable-shared
69218395
69228396 # ### BEGIN LIBTOOL TAG CONFIG: disable-static
6923 disable_libs=static
8397 build_old_libs=`case $build_libtool_libs in yes) echo no;; *) echo yes;; esac`
69248398 # ### END LIBTOOL TAG CONFIG: disable-static
69258399
69268400 # Local Variables:
69278401 # mode:shell-script
69288402 # sh-indentation:2
69298403 # End:
8404 # vi:sw=2
8405
4343 #endif
4444
4545 #include "config.h"
46
47 #undef _POSIX_C_SOURCE
48 #undef _XOPEN_SOURCE
49 #include <Python.h>
50
4651 #include "pythonmod/pythonmod.h"
4752 #include "util/module.h"
4853 #include "util/config_file.h"
4954 #include "pythonmod_utils.h"
50 #include <Python.h>
55
56 #ifdef S_SPLINT_S
57 typedef struct PyObject PyObject;
58 #endif
59
60 /**
61 * Global state for the module.
62 */
63 struct pythonmod_env {
64
65 /** Python script filename. */
66 const char* fname;
67
68 /** Python module. */
69 PyObject* module;
70
71 /** Module init function */
72 PyObject* func_init;
73 /** Module deinit function */
74 PyObject* func_deinit;
75 /** Module operate function */
76 PyObject* func_operate;
77 /** Module super_inform function */
78 PyObject* func_inform;
79
80 /** Python dictionary. */
81 PyObject* dict;
82
83 /** Module data. */
84 PyObject* data;
85
86 /** Module qstate. */
87 struct module_qstate* qstate;
88 };
89
90 /**
91 * Per query state for the iterator module.
92 */
93 struct pythonmod_qstate {
94
95 /** Module per query data. */
96 PyObject* data;
97 };
5198
5299 /* Generated */
53100 #ifndef S_SPLINT_S
4040 #define PYTHONMOD_H
4141 #include "util/module.h"
4242 #include "services/outbound_list.h"
43 #include <Python.h>
44
45 struct PyObject;
46 #if S_SPLINT_S
47 typedef struct PyObject PyObject;
48 #endif
49
50 /**
51 * Global state for the module.
52 */
53 struct pythonmod_env {
54
55 /** Python script filename. */
56 const char* fname;
57
58 /** Python module. */
59 PyObject* module;
60
61 /** Module init function */
62 PyObject* func_init;
63 /** Module deinit function */
64 PyObject* func_deinit;
65 /** Module operate function */
66 PyObject* func_operate;
67 /** Module super_inform function */
68 PyObject* func_inform;
69
70 /** Python dictionary. */
71 PyObject* dict;
72
73 /** Module data. */
74 PyObject* data;
75
76 /** Module qstate. */
77 struct module_qstate* qstate;
78 };
79
80 /**
81 * Per query state for the iterator module.
82 */
83 struct pythonmod_qstate {
84
85 /** Module per query data. */
86 PyObject* data;
87 };
8843
8944 /**
9045 * Get the module function block.
4646 #include "util/data/msgreply.h"
4747 #include "util/storage/slabhash.h"
4848 #include "util/regional.h"
49
50 #undef _POSIX_C_SOURCE
51 #undef _XOPEN_SOURCE
4952 #include <Python.h>
5053
5154 /** Store the reply_info and query_info pair in message cache (qstate->msg_cache) */
3939 */
4040 #include "config.h"
4141 #include "iterator/iter_delegpt.h"
42 #include "validator/val_nsec.h"
4243 #include "services/cache/dns.h"
4344 #include "services/cache/rrset.h"
4445 #include "util/data/msgreply.h"
285286 /* Note: the PACKED_RRSET_NSEC_AT_APEX flag is not used.
286287 * since this is a referral, we need the NSEC at the parent
287288 * side of the zone cut, not the NSEC at apex side. */
289 if(rrset && nsec_has_type(rrset, LDNS_RR_TYPE_DS)) {
290 lock_rw_unlock(&rrset->entry.lock);
291 rrset = NULL; /* discard wrong NSEC */
292 }
288293 }
289294 if(rrset) {
290295 /* add it to auth section. This is the second rrset. */
434439 msg->rep->authoritative = r->authoritative;
435440 if(!rrset_array_lock(r->ref, r->rrset_count, now))
436441 return NULL;
442 if(r->an_numrrsets > 0 && (r->rrsets[0]->rk.type == htons(
443 LDNS_RR_TYPE_CNAME) || r->rrsets[0]->rk.type == htons(
444 LDNS_RR_TYPE_DNAME)) && !reply_check_cname_chain(r)) {
445 /* cname chain is now invalid, reconstruct msg */
446 rrset_array_unlock(r->ref, r->rrset_count);
447 return NULL;
448 }
449 if(r->security == sec_status_secure && !reply_all_rrsets_secure(r)) {
450 /* message rrsets have changed status, revalidate */
451 rrset_array_unlock(r->ref, r->rrset_count);
452 return NULL;
453 }
437454 for(i=0; i<msg->rep->rrset_count; i++) {
438455 msg->rep->rrsets[i] = packed_rrset_copy_region(r->rrsets[i],
439456 region, now);
9191 socklen_t addrlen, int v6only, int* inuse, int* noproto)
9292 {
9393 int s;
94 # if defined(IPV6_USE_MIN_MTU)
94 #if defined(IPV6_USE_MIN_MTU)
9595 int on=1;
96 # else
96 #endif
97 #ifdef IPV6_MTU
98 int mtu = IPV6_MIN_MTU;
99 #endif
100 #ifndef IPV6_V6ONLY
97101 (void)v6only;
98 # endif
102 #endif
99103 if((s = socket(family, socktype, 0)) == -1) {
100104 *inuse = 0;
101105 #ifndef USE_WINSOCK
149153 */
150154 if (setsockopt(s, IPPROTO_IPV6, IPV6_USE_MIN_MTU,
151155 (void*)&on, (socklen_t)sizeof(on)) < 0) {
152 #ifndef USE_WINSOCK
156 # ifndef USE_WINSOCK
153157 log_err("setsockopt(..., IPV6_USE_MIN_MTU, "
154158 "...) failed: %s", strerror(errno));
155159 close(s);
156 #else
160 # else
157161 log_err("setsockopt(..., IPV6_USE_MIN_MTU, "
158162 "...) failed: %s",
159163 wsa_strerror(WSAGetLastError()));
160164 closesocket(s);
161 #endif
165 # endif
162166 *noproto = 0;
163167 *inuse = 0;
164168 return -1;
165169 }
166 # endif
170 # elif defined(IPV6_MTU)
171 /*
172 * On Linux, to send no larger than 1280, the PMTUD is
173 * disabled by default for datagrams anyway, so we set
174 * the MTU to use.
175 */
176 if (setsockopt(s, IPPROTO_IPV6, IPV6_MTU,
177 (void*)&mtu, (socklen_t)sizeof(mtu)) < 0) {
178 # ifndef USE_WINSOCK
179 log_err("setsockopt(..., IPV6_MTU, ...) failed: %s",
180 strerror(errno));
181 close(s);
182 # else
183 log_err("setsockopt(..., IPV6_MTU, ...) failed: %s",
184 wsa_strerror(WSAGetLastError()));
185 closesocket(s);
186 # endif
187 *noproto = 0;
188 *inuse = 0;
189 return -1;
190 }
191 # endif /* IPv6 MTU */
167192 }
168193 if(bind(s, (struct sockaddr*)addr, addrlen) != 0) {
169194 *noproto = 0;
464464 /* drop unsent replies */
465465 if(!mstate->replies_sent) {
466466 struct mesh_reply* rep;
467 struct mesh_cb* cb;
467468 for(rep=mstate->reply_list; rep; rep=rep->next) {
468469 comm_point_drop_reply(&rep->query_reply);
470 }
471 for(cb=mstate->cb_list; cb; cb=cb->next) {
472 fptr_ok(fptr_whitelist_mesh_cb(cb->cb));
473 (*cb->cb)(cb->cb_arg, LDNS_RCODE_SERVFAIL, NULL,
474 sec_status_unchecked);
469475 }
470476 }
471477
617623 rcode = LDNS_RCODE_SERVFAIL;
618624 /* send the reply */
619625 if(rcode) {
626 fptr_ok(fptr_whitelist_mesh_cb(r->cb));
620627 (*r->cb)(r->cb_arg, rcode, r->buf, sec_status_unchecked);
621628 } else {
622629 size_t udp_size = r->edns.udp_size;
630637 m->s.env->scratch, udp_size, &r->edns,
631638 (int)(r->edns.bits & EDNS_DO), secure))
632639 {
640 fptr_ok(fptr_whitelist_mesh_cb(r->cb));
633641 (*r->cb)(r->cb_arg, LDNS_RCODE_SERVFAIL, r->buf,
634642 sec_status_unchecked);
635 }
636 else (*r->cb)(r->cb_arg, LDNS_RCODE_NOERROR, r->buf,
643 } else {
644 fptr_ok(fptr_whitelist_mesh_cb(r->cb));
645 (*r->cb)(r->cb_arg, LDNS_RCODE_NOERROR, r->buf,
637646 rep->security);
647 }
638648 }
639649 m->s.env->mesh->num_reply_addrs--;
640650 }
779789 if(!r)
780790 return 0;
781791 r->buf = buf;
792 log_assert(fptr_whitelist_mesh_cb(cb)); /* early failure ifmissing*/
782793 r->cb = cb;
783794 r->cb_arg = cb_arg;
784795 r->edns = *edns;
225225 ldns_buffer* buf;
226226
227227 /** callback routine for results. if rcode != 0 buf has message.
228 * called as cb(cb_arg, rcode, buf);
228 * called as cb(cb_arg, rcode, buf, sec_state);
229229 */
230230 mesh_cb_func_t cb;
231231 /** user arg for callback */
12331233 &edns_lame_known, &rtt))
12341234 return 0;
12351235 if(sq->status == serviced_initial) {
1236 if(edns_lame_known == 0 && rtt > 5000) {
1236 if((vs != -1 || edns_lame_known == 0) &&
1237 rtt > 5000 && rtt < 10001) {
12371238 /* perform EDNS lame probe - check if server is
12381239 * EDNS lame (EDNS queries to it are dropped) */
12391240 verbose(VERB_ALGO, "serviced query: send probe to see "
4141 */
4242 #include "config.h"
4343 #include "util/log.h"
44 #include "services/mesh.h"
4445 struct comm_reply;
4546 struct comm_point;
4647 struct module_qstate;
177178 int ATTR_UNUSED(error), void* ATTR_UNUSED(arg))
178179 {
179180 log_assert(0);
181 }
182
183 void libworker_fg_done_cb(void* ATTR_UNUSED(arg), int ATTR_UNUSED(rcode),
184 ldns_buffer* ATTR_UNUSED(buf), enum sec_status ATTR_UNUSED(s))
185 {
186 log_assert(0);
187 }
188
189 void libworker_bg_done_cb(void* ATTR_UNUSED(arg), int ATTR_UNUSED(rcode),
190 ldns_buffer* ATTR_UNUSED(buf), enum sec_status ATTR_UNUSED(s))
191 {
192 log_assert(0);
180193 }
181194
182195 int context_query_cmp(const void* ATTR_UNUSED(a), const void* ATTR_UNUSED(b))
286286 return NULL;
287287 }
288288
289 struct daemon_remote* daemon_remote_create(struct worker* ATTR_UNUSED(worker))
289 struct daemon_remote* daemon_remote_create(struct config_file* ATTR_UNUSED(cfg))
290290 {
291291 return (struct daemon_remote*)calloc(1,1);
292292 }
296296 free(rc);
297297 }
298298
299 void daemon_remote_clear(struct daemon_remote* ATTR_UNUSED(rc))
300 {
301 /* nothing */
302 }
303
299304 int daemon_remote_open_accept(struct daemon_remote* ATTR_UNUSED(rc),
300 struct listen_port* ATTR_UNUSED(ports))
305 struct listen_port* ATTR_UNUSED(ports),
306 struct worker* ATTR_UNUSED(worker))
301307 {
302308 return 1;
303309 }
0 ; config options
1 ; The island of trust is at example.com (the DLV repository)
2 server:
3 dlv-anchor: "example.com. 3600 IN DS 2854 3 1 46e4ffc6e9a4793b488954bd3f0cc6af0dfb201b"
4 val-override-date: "20070916134226"
5 harden-referral-path: no
6 target-fetch-policy: "0 0 0 0 0"
7
8 stub-zone:
9 name: "."
10 stub-addr: 193.0.14.129 # K.ROOT-SERVERS.NET.
11 CONFIG_END
12
13 SCENARIO_BEGIN Test validator with insecure zone, no DLV from negative cache
14
15 ; K.ROOT-SERVERS.NET.
16 RANGE_BEGIN 0 100
17 ADDRESS 193.0.14.129
18 ENTRY_BEGIN
19 MATCH opcode qtype qname
20 ADJUST copy_id
21 REPLY QR NOERROR
22 SECTION QUESTION
23 . IN NS
24 SECTION ANSWER
25 . IN NS K.ROOT-SERVERS.NET.
26 SECTION ADDITIONAL
27 K.ROOT-SERVERS.NET. IN A 193.0.14.129
28 ENTRY_END
29
30 ENTRY_BEGIN
31 MATCH opcode subdomain
32 ADJUST copy_id copy_query
33 REPLY QR NOERROR
34 SECTION QUESTION
35 com. IN A
36 SECTION AUTHORITY
37 com. IN NS a.gtld-servers.net.
38 SECTION ADDITIONAL
39 a.gtld-servers.net. IN A 192.5.6.30
40 ENTRY_END
41
42 ENTRY_BEGIN
43 MATCH opcode subdomain
44 ADJUST copy_id copy_query
45 REPLY QR NOERROR
46 SECTION QUESTION
47 net. IN A
48 SECTION AUTHORITY
49 net. IN NS a.gtld-servers.net.
50 SECTION ADDITIONAL
51 a.gtld-servers.net. IN A 192.5.6.30
52 ENTRY_END
53 RANGE_END
54
55 ; a.gtld-servers.net.
56 RANGE_BEGIN 0 300
57 ADDRESS 192.5.6.30
58 ENTRY_BEGIN
59 MATCH opcode qtype qname
60 ADJUST copy_id
61 REPLY QR NOERROR
62 SECTION QUESTION
63 com. IN NS
64 SECTION ANSWER
65 com. IN NS a.gtld-servers.net.
66 SECTION ADDITIONAL
67 a.gtld-servers.net. IN A 192.5.6.30
68 ENTRY_END
69
70 ENTRY_BEGIN
71 MATCH opcode qtype qname
72 ADJUST copy_id
73 REPLY QR NOERROR
74 SECTION QUESTION
75 net. IN NS
76 SECTION ANSWER
77 net. IN NS a.gtld-servers.net.
78 SECTION ADDITIONAL
79 a.gtld-servers.net. IN A 192.5.6.30
80 ENTRY_END
81
82 ENTRY_BEGIN
83 MATCH opcode subdomain
84 ADJUST copy_id copy_query
85 REPLY QR NOERROR
86 SECTION QUESTION
87 example.com. IN A
88 SECTION AUTHORITY
89 example.com. IN NS ns.example.com.
90 SECTION ADDITIONAL
91 ns.example.com. IN A 1.2.3.4
92 ENTRY_END
93
94 ENTRY_BEGIN
95 MATCH opcode subdomain
96 ADJUST copy_id copy_query
97 REPLY QR NOERROR
98 SECTION QUESTION
99 example.net. IN A
100 SECTION AUTHORITY
101 example.net. IN NS ns.example.net.
102 SECTION ADDITIONAL
103 ns.example.net. IN A 1.2.3.5
104 ENTRY_END
105 RANGE_END
106
107 ; ns.example.com.
108 RANGE_BEGIN 0 100
109 ADDRESS 1.2.3.4
110 ENTRY_BEGIN
111 MATCH opcode qtype qname
112 ADJUST copy_id
113 REPLY QR NOERROR
114 SECTION QUESTION
115 example.com. IN NS
116 SECTION ANSWER
117 example.com. IN NS ns.example.com.
118 example.com. 3600 IN RRSIG NS 3 2 3600 20070926134150 20070829134150 2854 example.com. MC0CFQCN+qHdJxoI/2tNKwsb08pra/G7aAIUAWA5sDdJTbrXA1/3OaesGBAO3sI= ;{id = 2854}
119 SECTION ADDITIONAL
120 ns.example.com. IN A 1.2.3.4
121 ns.example.com. 3600 IN RRSIG A 3 3 3600 20070926135752 20070829135752 2854 example.com. MC0CFQCMSWxVehgOQLoYclB9PIAbNP229AIUeH0vNNGJhjnZiqgIOKvs1EhzqAo= ;{id = 2854}
122 ENTRY_END
123
124 ; response to DNSKEY priming query
125 ENTRY_BEGIN
126 MATCH opcode qtype qname
127 ADJUST copy_id
128 REPLY QR NOERROR
129 SECTION QUESTION
130 example.com. IN DNSKEY
131 SECTION ANSWER
132 example.com. 3600 IN DNSKEY 256 3 3 ALXLUsWqUrY3JYER3T4TBJII s70j+sDS/UT2QRp61SE7S3E EXopNXoFE73JLRmvpi/UrOO/Vz4Se 6wXv/CYCKjGw06U4WRgR YXcpEhJROyNapmdIKSx hOzfLVE1gqA0PweZR8d tY3aNQSRn3sPpwJr6Mi /PqQKAMMrZ9ckJpf1+b QMOOvxgzz2U1GS18b3y ZKcgTMEaJzd/GZYzi/B N2DzQ0MsrSwYXfsNLFO Bbs8PJMW4LYIxeeOe6rUgkWOF 7CC9Dh/dduQ1QrsJhmZAEFfd6ByYV+ ;{id = 2854 (zsk), size = 1688b}
133 example.com. 3600 IN RRSIG DNSKEY 3 2 3600 20070926134802 20070829134802 2854 example.com. MCwCFG1yhRNtTEa3Eno2zhVVuy2EJX3wAhQeLyUp6+UXcpC5qGNu9tkrTEgPUg== ;{id = 2854}
134 SECTION AUTHORITY
135 example.com. IN NS ns.example.com.
136 example.com. 3600 IN RRSIG NS 3 2 3600 20070926134150 20070829134150 2854 example.com. MC0CFQCN+qHdJxoI/2tNKwsb08pra/G7aAIUAWA5sDdJTbrXA1/3OaesGBAO3sI= ;{id = 2854}
137 SECTION ADDITIONAL
138 ns.example.com. IN A 1.2.3.4
139 ns.example.com. 3600 IN RRSIG A 3 3 3600 20070926135752 20070829135752 2854 example.com. MC0CFQCMSWxVehgOQLoYclB9PIAbNP229AIUeH0vNNGJhjnZiqgIOKvs1EhzqAo= ;{id = 2854}
140 ENTRY_END
141
142 ; DLV query
143 ; could be picked out of the negative cache due to NS queries in between.
144 ENTRY_BEGIN
145 MATCH opcode qtype qname
146 ADJUST copy_id
147 REPLY QR NXDOMAIN
148 SECTION QUESTION
149 www.example.net.example.com. IN DLV
150 SECTION ANSWER
151 SECTION AUTHORITY
152 example.com. IN SOA open.nlnetlabs.nl. hostmaster.nlnetlabs.nl. 2008081300 28800 7200 604800 3600
153 example.com. 3600 IN RRSIG SOA 3 2 3600 20070926134150 20070829134150 2854 example.com. AKPJnPBqfJKxE4P2iVYkSRJno9HmiXJZtjdqE8oBeq9Lk9FytcMdcig= ;{id = 2854}
154 example.com. IN NS ns.example.com.
155 example.com. 3600 IN RRSIG NS 3 2 3600 20070926134150 20070829134150 2854 example.com. MC0CFQCN+qHdJxoI/2tNKwsb08pra/G7aAIUAWA5sDdJTbrXA1/3OaesGBAO3sI= ;{id = 2854}
156 zoink.name.example.com IN NSEC zazz.net.example.com. RRSIG NSEC DLV
157 zoink.name.example.com. 3600 IN RRSIG NSEC 3 4 3600 20070926134150 20070829134150 2854 example.com. AHipxvshRHglCEN4nZCT4m/4RIj8TrCOE2AsqEoH9e+6OYSo+yuNzzo= ;{id = 2854}
158 SECTION ADDITIONAL
159 ns.example.com. IN A 1.2.3.4
160 ns.example.com. 3600 IN RRSIG A 3 3 3600 20070926135752 20070829135752 2854 example.com. MC0CFQCMSWxVehgOQLoYclB9PIAbNP229AIUeH0vNNGJhjnZiqgIOKvs1EhzqAo= ;{id = 2854}
161 ENTRY_END
162
163 ENTRY_BEGIN
164 MATCH opcode qtype qname
165 ADJUST copy_id
166 REPLY QR NOERROR
167 SECTION QUESTION
168 net.example.com. IN DLV
169 SECTION ANSWER
170 SECTION AUTHORITY
171 example.com. IN SOA open.nlnetlabs.nl. hostmaster.nlnetlabs.nl. 2008081300 28800 7200 604800 3600
172 example.com. 3600 IN RRSIG SOA 3 2 3600 20070926134150 20070829134150 2854 example.com. AKPJnPBqfJKxE4P2iVYkSRJno9HmiXJZtjdqE8oBeq9Lk9FytcMdcig= ;{id = 2854}
173 zoink.name.example.com IN NSEC zazz.net.example.com. RRSIG NSEC DLV
174 zoink.name.example.com. 3600 IN RRSIG NSEC 3 4 3600 20070926134150 20070829134150 2854 example.com. AHipxvshRHglCEN4nZCT4m/4RIj8TrCOE2AsqEoH9e+6OYSo+yuNzzo= ;{id = 2854}
175 ENTRY_END
176
177 ENTRY_BEGIN
178 MATCH opcode qtype qname
179 ADJUST copy_id
180 REPLY QR NOERROR
181 SECTION QUESTION
182 example.com. IN DLV
183 SECTION ANSWER
184 SECTION AUTHORITY
185 example.com. IN SOA open.nlnetlabs.nl. hostmaster.nlnetlabs.nl. 2008081300 28800 7200 604800 3600
186 example.com. 3600 IN RRSIG SOA 3 2 3600 20070926134150 20070829134150 2854 example.com. AKPJnPBqfJKxE4P2iVYkSRJno9HmiXJZtjdqE8oBeq9Lk9FytcMdcig= ;{id = 2854}
187 example.com IN NSEC frump.aqua.example.com. SOA NS RRSIG NSEC DNSKEY
188 example.com. 3600 IN RRSIG NSEC 3 2 3600 20070926134150 20070829134150 2854 example.com. AAscY9DfNm3Uy8f8Q4WX6AzR0flHYNSr3fKfgQ0Xc20fzj1lGP9ebfk= ;{id = 2854}
189 ENTRY_END
190
191 ENTRY_BEGIN
192 MATCH opcode qtype qname
193 ADJUST copy_id
194 REPLY QR NXDOMAIN
195 SECTION QUESTION
196 com.example.com. IN DLV
197 SECTION ANSWER
198 SECTION AUTHORITY
199 example.com. IN SOA open.nlnetlabs.nl. hostmaster.nlnetlabs.nl. 2008081300 28800 7200 604800 3600
200 example.com. 3600 IN RRSIG SOA 3 2 3600 20070926134150 20070829134150 2854 example.com. AKPJnPBqfJKxE4P2iVYkSRJno9HmiXJZtjdqE8oBeq9Lk9FytcMdcig= ;{id = 2854}
201 example.com IN NSEC zazz.example.com. SOA NS RRSIG NSEC
202 example.com. 3600 IN RRSIG NSEC 3 2 3600 20070926135752 20070829135752 2854 example.com. AAi21jQpno6gXnrPrtK0NvNgX9B8E9U5RvTd47QiCWLF7KdtKxB7Xz0= ;{id = 2854}
203 ENTRY_END
204
205 RANGE_END
206
207 ; ns.example.net.
208 RANGE_BEGIN 0 300
209 ADDRESS 1.2.3.5
210 ; NS query
211 ENTRY_BEGIN
212 MATCH opcode qtype qname
213 ADJUST copy_id
214 REPLY QR NOERROR
215 SECTION QUESTION
216 example.net. IN NS
217 SECTION ANSWER
218 example.net. IN NS ns.example.net.
219 SECTION ADDITIONAL
220 ns.example.net. IN A 1.2.3.5
221 ENTRY_END
222
223 ; www.example.net query
224 ENTRY_BEGIN
225 MATCH opcode qtype qname
226 ADJUST copy_id
227 REPLY QR NOERROR
228 SECTION QUESTION
229 www.example.net. IN A
230 SECTION ANSWER
231 www.example.net. 10 IN A 10.20.30.40
232 SECTION AUTHORITY
233 example.net. IN NS ns.example.net.
234 SECTION ADDITIONAL
235 ns.example.net. IN A 1.2.3.5
236 ENTRY_END
237
238
239 RANGE_END
240
241 STEP 1 QUERY
242 ENTRY_BEGIN
243 REPLY RD DO
244 SECTION QUESTION
245 www.example.net. IN A
246 ENTRY_END
247
248 ; recursion happens here.
249 STEP 10 CHECK_ANSWER
250 ENTRY_BEGIN
251 MATCH all
252 REPLY QR RD RA NOERROR
253 SECTION QUESTION
254 www.example.net. IN A
255 SECTION ANSWER
256 www.example.net. 10 IN A 10.20.30.40
257 SECTION AUTHORITY
258 example.net. IN NS ns.example.net.
259 SECTION ADDITIONAL
260 ns.example.net. IN A 1.2.3.5
261 ENTRY_END
262
263 STEP 150 TIME_PASSES ELAPSE 30
264
265 ; no more DLV authority reachable
266 STEP 200 QUERY
267 ENTRY_BEGIN
268 REPLY RD DO
269 SECTION QUESTION
270 www.example.net. IN A
271 ENTRY_END
272
273 STEP 210 CHECK_ANSWER
274 ENTRY_BEGIN
275 MATCH all
276 REPLY QR RD RA NOERROR
277 SECTION QUESTION
278 www.example.net. IN A
279 SECTION ANSWER
280 www.example.net. 10 IN A 10.20.30.40
281 SECTION AUTHORITY
282 example.net. IN NS ns.example.net.
283 SECTION ADDITIONAL
284 ns.example.net. IN A 1.2.3.5
285 ENTRY_END
286
287 STEP 220 QUERY
288 ENTRY_BEGIN
289 REPLY RD DO
290 SECTION QUESTION
291 net. IN NS
292 ENTRY_END
293
294 STEP 230 CHECK_ANSWER
295 ENTRY_BEGIN
296 MATCH all
297 REPLY QR RD RA NOERROR
298 SECTION QUESTION
299 net. IN NS
300 SECTION ANSWER
301 net. IN NS a.gtld-servers.net.
302 SECTION ADDITIONAL
303 a.gtld-servers.net. IN A 192.5.6.30
304 ENTRY_END
305
306 SCENARIO_END
0 ; config options
1 ; The island of trust is at example.com
2 server:
3 trust-anchor: "dlv.isc.org. 5072 IN DNSKEY 256 3 5 BEAAAAOlYGw53D+f01yCL5JsP0SB6EjYrnd0JYRBooAaGPT+Q0kpiN+7GviFh+nIazoB8e2Yv7mupgqkmIjObdcbGstYpUltdECdNpNmBvASKB9SBdtGeRvXXpORi3Qyxb9kHGG7SpzyYbc+KDVKnzYHB94pvqu3ZZpPFPBFtCibp/mkhw=="
4 val-override-date: "20090617133009"
5 target-fetch-policy: "0 0 0 0 0"
6
7 stub-zone:
8 name: "."
9 stub-addr: 193.0.14.129 # K.ROOT-SERVERS.NET.
10 CONFIG_END
11
12 SCENARIO_BEGIN Test parse of packet when forwarding and dlv are in use
13
14 ; K.ROOT-SERVERS.NET.
15 RANGE_BEGIN 0 100
16 ADDRESS 193.0.14.129
17 ENTRY_BEGIN
18 MATCH opcode qtype qname
19 ADJUST copy_id
20 REPLY QR NOERROR
21 SECTION QUESTION
22 . IN NS
23 SECTION ANSWER
24 . IN NS K.ROOT-SERVERS.NET.
25 SECTION ADDITIONAL
26 K.ROOT-SERVERS.NET. IN A 193.0.14.129
27 ENTRY_END
28
29 ENTRY_BEGIN
30 MATCH opcode subdomain
31 ADJUST copy_id copy_query
32 REPLY QR NOERROR
33 SECTION QUESTION
34 org. IN NS
35 SECTION AUTHORITY
36 org. IN NS a.gtld-servers.net.
37 SECTION ADDITIONAL
38 a.gtld-servers.net. IN A 192.5.6.30
39 ENTRY_END
40 RANGE_END
41
42 ; a.gtld-servers.net. (for ORG)
43 RANGE_BEGIN 0 100
44 ADDRESS 192.5.6.30
45 ENTRY_BEGIN
46 MATCH opcode qtype qname
47 ADJUST copy_id
48 REPLY QR NOERROR
49 SECTION QUESTION
50 org. IN NS
51 SECTION ANSWER
52 org. IN NS a.gtld-servers.net.
53 SECTION ADDITIONAL
54 a.gtld-servers.net. IN A 192.5.6.30
55 ENTRY_END
56
57 ENTRY_BEGIN
58 MATCH opcode subdomain
59 ADJUST copy_id copy_query
60 REPLY QR NOERROR
61 SECTION QUESTION
62 dlv.isc.org. IN NS
63 SECTION AUTHORITY
64 dlv.isc.org. IN NS ns.org.
65 SECTION ADDITIONAL
66 ns.org. IN A 1.2.3.4
67 ENTRY_END
68 RANGE_END
69
70 ; ns.org for dlv.isc.org
71 RANGE_BEGIN 0 100
72 ADDRESS 1.2.3.4
73 ; response to DNSKEY priming query
74 ENTRY_BEGIN
75 MATCH opcode qtype qname
76 ADJUST copy_id
77 REPLY QR NOERROR
78 SECTION QUESTION
79 dlv.isc.org. IN DNSKEY
80 SECTION ANSWER
81 dlv.isc.org. 5072 IN DNSKEY 256 3 5 BEAAAAOlYGw53D+f01yCL5JsP0SB6EjYrnd0JYRBooAaGPT+Q0kpiN+7GviFh+nIazoB8e2Yv7mupgqkmIjObdcbGstYpUltdECdNpNmBvASKB9SBdtGeRvXXpORi3Qyxb9kHGG7SpzyYbc+KDVKnzYHB94pvqu3ZZpPFPBFtCibp/mkhw== ;{id = 64263 (zsk), size = 1024b}
82 dlv.isc.org. 5072 IN DNSKEY 257 3 5 BEAAAAPHMu/5onzrEE7z1egmhg/WPO0+juoZrW3euWEn4MxDCE1+lLy2brhQv5rN32RKtMzX6Mj70jdzeND4XknW58dnJNPCxn8+jAGl2FZLK8t+1uq4W+nnA3qO2+DL+k6BD4mewMLbIYFwe0PG73Te9fZ2kJb56dhgMde5ymX4BI/oQ+cAK50/xvJv00Frf8kw6ucMTwFlgPe+jnGxPPEmHAte/URkY62ZfkLoBAADLHQ9IrS2tryAe7mbBZVcOwIeU/Rw/mRx/vwwMCTgNboMQKtUdvNXDrYJDSHZws3xiRXF1Rf+al9UmZfSav/4NWLKjHzpT59k/VStTDN0YUuWrBNh ;{id = 19297 (ksk), size = 2048b}
83 dlv.isc.org. 5072 IN RRSIG DNSKEY 5 3 7200 20090717133009 20090617133009 19297 dlv.isc.org. iqGOzsIQKFHcPLbJHLb/kNzcm7TlHiyT4kzTknCjKsC7DCB86YCOhnZZjvZQyA+D0N0KDgNWY8v5czbyX57qR6qORciT2zmPSTGj7CIOe4zrq60n8HzsChKgvk+RSYQrzf6vRfnZhce6Y1waXQd4wh1buPAUw/l46Ovt74ALXzcWSgfMNyx6PBz7rbusuePKeSv0GZL9+M2qhXKe9LJmnzD9uCwnbV/Y5yu+xLfxLdm9q4IKp6Rn50CeHYKf3tO2jI9dkWqFR94XHSTNGfhC02i5UsfP1HRPnk49bX7OMstuuCq9zMX+qTt602MVFYdTSHTy/5+Yw5DvOA9JgOqO4w== ;{id = 19297}
84 dlv.isc.org. 5072 IN RRSIG DNSKEY 5 3 7200 20090717133009 20090617133009 64263 dlv.isc.org. W1KX1PagXsaWWmxkaOfnLetnw1hhSw7ym91S4rSu14QfFbYi5iN9ZkSuKa21M7Do52S9om/2hDllMF7EFfnv9l4e4/rMOc59vKGVojpHOvZyRVhIiMyh1H9NfLTYUovORRvKO0Cnp65gBXspVf1WhzoY3pC1NZ+5pscPWLeD1rw= ;{id = 64263}
85 ENTRY_END
86
87 ; response to query of interest
88 ENTRY_BEGIN
89 MATCH opcode qtype qname
90 ADJUST copy_id
91 REPLY QR NXDOMAIN
92 SECTION QUESTION
93 www.example.com.dlv.isc.org. IN DLV
94 SECTION ANSWER
95 SECTION AUTHORITY
96 dlv.isc.org. 2776 IN SOA ns-int.isc.org. hostmaster.isc.org. 2009061702 7200 3600 2419200 3600
97 dlv.isc.org. 2776 IN RRSIG SOA 5 3 3600 20090717133009 20090617133009 64263 dlv.isc.org. S5iTFqF8k9XWoGq4Wajo1GQF6Oc1e5lI1kGFWyaKf3oM2asbzCbVk2aZLtyDCGjYA4euZWXD0q2vol7/1cPB5Ds4SteCuo5Jkpa/mw7mPAcbNu8mYexq1RaodVCbWrW8KSxEyVd8X5mZx2OBaSyK8zns/W5I3ZPNNLf4Kz6Zpo0= ;{id = 64263}
98 seatex.com.cn.dlv.isc.org. 2776 IN RRSIG NSEC 5 6 3600 20090717133009 20090617133009 64263 dlv.isc.org. Rxv7gVdu8rpWbJ3fJm7cY66IKV+C94I4/HYiDQke1m2P7hXo5bpDBBShKpIvME34ANN8Lb0cZQK9XT7NYpWjE5rjW7CaMiVjiR6U1LyDGQyK4X3wdkbv3aJcHLSg7sWsxyZXj5iVUxkU5JO3JBjo412oKQ3bh+RGi1BxTIIq09g= ;{id = 64263}
99 seatex.com.cn.dlv.isc.org. 2776 IN NSEC absolight.com.dlv.isc.org. RRSIG NSEC DLV
100 ericgermann.com.dlv.isc.org. 2776 IN RRSIG NSEC 5 5 3600 20090717133009 20090617133009 64263 dlv.isc.org. OEUizWAXsWFBzt4rN5+AUTaND8phZc4ezux06LA/Ua5N/B/LQQ1cb42eEqCQHwnGK8BsRhbsRiVywPNgnnPlL1Gy8n25gi+0qWOpA27fOwZJbO3n944gKvPDWZoDeCbdJr6AQG5Z9/Ka0ERRtHC6uI2Xn6KCQPjgTEihqhoayYg= ;{id = 64263}
101 ericgermann.com.dlv.isc.org. 2776 IN NSEC fayengineering.com.dlv.isc.org. RRSIG NSEC DLV
102 SECTION ADDITIONAL
103 ENTRY_END
104 RANGE_END
105
106 STEP 1 QUERY
107 ENTRY_BEGIN
108 REPLY RD DO
109 SECTION QUESTION
110 www.example.com.dlv.isc.org. IN DLV
111 ENTRY_END
112
113 ; recursion happens here.
114 STEP 10 CHECK_ANSWER
115 ENTRY_BEGIN
116 MATCH all
117 REPLY QR RD RA AD NXDOMAIN
118 SECTION QUESTION
119 www.example.com.dlv.isc.org. IN DLV
120 SECTION ANSWER
121 SECTION AUTHORITY
122 dlv.isc.org. 2776 IN SOA ns-int.isc.org. hostmaster.isc.org. 2009061702 7200 3600 2419200 3600
123 dlv.isc.org. 2776 IN RRSIG SOA 5 3 3600 20090717133009 20090617133009 64263 dlv.isc.org. S5iTFqF8k9XWoGq4Wajo1GQF6Oc1e5lI1kGFWyaKf3oM2asbzCbVk2aZLtyDCGjYA4euZWXD0q2vol7/1cPB5Ds4SteCuo5Jkpa/mw7mPAcbNu8mYexq1RaodVCbWrW8KSxEyVd8X5mZx2OBaSyK8zns/W5I3ZPNNLf4Kz6Zpo0= ;{id = 64263}
124 seatex.com.cn.dlv.isc.org. 2776 IN NSEC absolight.com.dlv.isc.org. RRSIG NSEC DLV
125 seatex.com.cn.dlv.isc.org. 2776 IN RRSIG NSEC 5 6 3600 20090717133009 20090617133009 64263 dlv.isc.org. Rxv7gVdu8rpWbJ3fJm7cY66IKV+C94I4/HYiDQke1m2P7hXo5bpDBBShKpIvME34ANN8Lb0cZQK9XT7NYpWjE5rjW7CaMiVjiR6U1LyDGQyK4X3wdkbv3aJcHLSg7sWsxyZXj5iVUxkU5JO3JBjo412oKQ3bh+RGi1BxTIIq09g= ;{id = 64263}
126 ericgermann.com.dlv.isc.org. 2776 IN NSEC fayengineering.com.dlv.isc.org. RRSIG NSEC DLV
127 ericgermann.com.dlv.isc.org. 2776 IN RRSIG NSEC 5 5 3600 20090717133009 20090617133009 64263 dlv.isc.org. OEUizWAXsWFBzt4rN5+AUTaND8phZc4ezux06LA/Ua5N/B/LQQ1cb42eEqCQHwnGK8BsRhbsRiVywPNgnnPlL1Gy8n25gi+0qWOpA27fOwZJbO3n944gKvPDWZoDeCbdJr6AQG5Z9/Ka0ERRtHC6uI2Xn6KCQPjgTEihqhoayYg= ;{id = 64263}
128 ENTRY_END
129
130 SCENARIO_END
0 ; config options
1 server:
2 target-fetch-policy: "0 0 0 0 0"
3
4 stub-zone:
5 name: "."
6 stub-addr: 193.0.14.129 # K.ROOT-SERVERS.NET.
7 forward-zone:
8 name: "example.com"
9 forward-addr: 10.0.0.1
10 stub-zone:
11 name: "sub.example.com"
12 stub-addr: 10.0.0.2
13 CONFIG_END
14
15 SCENARIO_BEGIN Test iterative resolve with a stub under a forward zone
16
17 ; K.ROOT-SERVERS.NET.
18 RANGE_BEGIN 0 100
19 ADDRESS 193.0.14.129
20 ENTRY_BEGIN
21 MATCH opcode qtype qname
22 ADJUST copy_id
23 REPLY QR NOERROR
24 SECTION QUESTION
25 . IN NS
26 SECTION ANSWER
27 . IN NS K.ROOT-SERVERS.NET.
28 SECTION ADDITIONAL
29 K.ROOT-SERVERS.NET. IN A 193.0.14.129
30 ENTRY_END
31
32 ENTRY_BEGIN
33 MATCH opcode qtype qname
34 ADJUST copy_id
35 REPLY QR NOERROR
36 SECTION QUESTION
37 www.example.com. IN A
38 SECTION AUTHORITY
39 com. IN NS a.gtld-servers.net.
40 SECTION ADDITIONAL
41 a.gtld-servers.net. IN A 192.5.6.30
42 ENTRY_END
43 RANGE_END
44
45 ; a.gtld-servers.net.
46 RANGE_BEGIN 0 100
47 ADDRESS 192.5.6.30
48 ENTRY_BEGIN
49 MATCH opcode qtype qname
50 ADJUST copy_id
51 REPLY QR NOERROR
52 SECTION QUESTION
53 com. IN NS
54 SECTION ANSWER
55 com. IN NS a.gtld-servers.net.
56 SECTION ADDITIONAL
57 a.gtld-servers.net. IN A 192.5.6.30
58 ENTRY_END
59
60 ENTRY_BEGIN
61 MATCH opcode qtype qname
62 ADJUST copy_id
63 REPLY QR NOERROR
64 SECTION QUESTION
65 www.example.com. IN A
66 SECTION AUTHORITY
67 example.com. IN NS ns.example.com.
68 SECTION ADDITIONAL
69 ns.example.com. IN A 1.2.3.4
70 ENTRY_END
71 RANGE_END
72
73 ; ns.example.com.
74 RANGE_BEGIN 0 100
75 ADDRESS 1.2.3.4
76 ENTRY_BEGIN
77 MATCH opcode qtype qname
78 ADJUST copy_id
79 REPLY QR NOERROR
80 SECTION QUESTION
81 example.com. IN NS
82 SECTION ANSWER
83 example.com. IN NS ns.example.com.
84 SECTION ADDITIONAL
85 ns.example.com. IN A 1.2.3.4
86 ENTRY_END
87
88 ENTRY_BEGIN
89 MATCH opcode qtype qname
90 ADJUST copy_id
91 REPLY QR NOERROR
92 SECTION QUESTION
93 www.example.com. IN A
94 SECTION ANSWER
95 www.example.com. IN A 10.20.30.40
96 SECTION AUTHORITY
97 example.com. IN NS ns.example.com.
98 SECTION ADDITIONAL
99 ns.example.com. IN A 1.2.3.4
100 ENTRY_END
101 RANGE_END
102
103 ; forwarder for example.com.
104 RANGE_BEGIN 0 100
105 ADDRESS 10.0.0.1
106 ENTRY_BEGIN
107 MATCH opcode qtype qname
108 ADJUST copy_id
109 REPLY QR NOERROR
110 SECTION QUESTION
111 example.com. IN NS
112 SECTION ANSWER
113 example.com. IN NS ns.example.com.
114 SECTION ADDITIONAL
115 ns.example.com. IN A 1.2.3.4
116 ENTRY_END
117
118 ENTRY_BEGIN
119 MATCH opcode qtype qname
120 ADJUST copy_id
121 REPLY QR NOERROR
122 SECTION QUESTION
123 www.example.com. IN A
124 SECTION ANSWER
125 www.example.com. IN A 10.0.0.4
126 SECTION AUTHORITY
127 example.com. IN NS ns.example.com.
128 SECTION ADDITIONAL
129 ns.example.com. IN A 1.2.3.4
130 ENTRY_END
131
132 ; fail all other queries
133 ENTRY_BEGIN
134 MATCH opcode
135 ADJUST copy_id copy_query
136 REPLY QR SERVFAIL
137 SECTION QUESTION
138 example.com. IN A
139 ENTRY_END
140 RANGE_END
141
142 ; stub for sub.example.com.
143 RANGE_BEGIN 0 100
144 ADDRESS 10.0.0.2
145 ENTRY_BEGIN
146 MATCH opcode qtype qname
147 ADJUST copy_id
148 REPLY QR NOERROR
149 SECTION QUESTION
150 sub.example.com. IN NS
151 SECTION ANSWER
152 sub.example.com. IN NS ns.sub.example.com.
153 SECTION ADDITIONAL
154 ns.sub.example.com. IN A 1.2.3.44
155 ENTRY_END
156
157 ENTRY_BEGIN
158 MATCH opcode qtype qname
159 ADJUST copy_id
160 REPLY QR NOERROR
161 SECTION QUESTION
162 www.sub.example.com. IN A
163 SECTION ANSWER
164 www.sub.example.com. IN A 10.0.0.5
165 SECTION AUTHORITY
166 sub.example.com. IN NS ns.sub.example.com.
167 SECTION ADDITIONAL
168 ns.sub.example.com. IN A 1.2.3.44
169 ENTRY_END
170 RANGE_END
171
172
173 ; check if forwarder is honored
174 STEP 1 QUERY
175 ENTRY_BEGIN
176 REPLY RD
177 SECTION QUESTION
178 www.example.com. IN A
179 ENTRY_END
180
181 STEP 10 CHECK_ANSWER
182 ENTRY_BEGIN
183 MATCH all
184 REPLY QR RD RA NOERROR
185 SECTION QUESTION
186 www.example.com. IN A
187 SECTION ANSWER
188 www.example.com. IN A 10.0.0.4
189 SECTION AUTHORITY
190 example.com. IN NS ns.example.com.
191 SECTION ADDITIONAL
192 ns.example.com. IN A 1.2.3.4
193 ENTRY_END
194
195 ; try to resolve from stub zone
196 STEP 20 QUERY
197 ENTRY_BEGIN
198 REPLY RD
199 SECTION QUESTION
200 www.sub.example.com. IN A
201 ENTRY_END
202
203 STEP 30 CHECK_ANSWER
204 ENTRY_BEGIN
205 MATCH all
206 REPLY QR RD RA NOERROR
207 SECTION QUESTION
208 www.sub.example.com. IN A
209 SECTION ANSWER
210 www.sub.example.com. IN A 10.0.0.5
211 SECTION AUTHORITY
212 sub.example.com. IN NS ns.sub.example.com.
213 SECTION ADDITIONAL
214 ns.sub.example.com. IN A 1.2.3.44
215 ENTRY_END
216
217 SCENARIO_END
0 ; config options
1 ; The island of trust is at example.com
2 server:
3 trust-anchor: "example.com. 3600 IN DS 2854 3 1 46e4ffc6e9a4793b488954bd3f0cc6af0dfb201b"
4 val-override-date: "20070916134226"
5 target-fetch-policy: "0 0 0 0 0"
6
7 stub-zone:
8 name: "."
9 stub-addr: 193.0.14.129 # K.ROOT-SERVERS.NET.
10 CONFIG_END
11
12 SCENARIO_BEGIN Test pickup of DS NSEC from the cache.
13 ; make sure unbound does not pick up the wrong nsec.
14
15 ; K.ROOT-SERVERS.NET.
16 RANGE_BEGIN 0 100
17 ADDRESS 193.0.14.129
18 ENTRY_BEGIN
19 MATCH opcode qtype qname
20 ADJUST copy_id
21 REPLY QR NOERROR
22 SECTION QUESTION
23 . IN NS
24 SECTION ANSWER
25 . IN NS K.ROOT-SERVERS.NET.
26 SECTION ADDITIONAL
27 K.ROOT-SERVERS.NET. IN A 193.0.14.129
28 ENTRY_END
29
30 ENTRY_BEGIN
31 MATCH opcode subdomain
32 ADJUST copy_id copy_query
33 REPLY QR NOERROR
34 SECTION QUESTION
35 com. IN A
36 SECTION AUTHORITY
37 com. IN NS a.gtld-servers.net.
38 SECTION ADDITIONAL
39 a.gtld-servers.net. IN A 192.5.6.30
40 ENTRY_END
41 RANGE_END
42
43 ; a.gtld-servers.net.
44 RANGE_BEGIN 0 100
45 ADDRESS 192.5.6.30
46 ENTRY_BEGIN
47 MATCH opcode qtype qname
48 ADJUST copy_id
49 REPLY QR NOERROR
50 SECTION QUESTION
51 com. IN NS
52 SECTION ANSWER
53 com. IN NS a.gtld-servers.net.
54 SECTION ADDITIONAL
55 a.gtld-servers.net. IN A 192.5.6.30
56 ENTRY_END
57
58 ENTRY_BEGIN
59 MATCH opcode subdomain
60 ADJUST copy_id copy_query
61 REPLY QR NOERROR
62 SECTION QUESTION
63 example.com. IN A
64 SECTION AUTHORITY
65 example.com. IN NS ns.example.com.
66 SECTION ADDITIONAL
67 ns.example.com. IN A 1.2.3.4
68 ENTRY_END
69 RANGE_END
70
71 ; ns.example.com.
72 RANGE_BEGIN 0 100
73 ADDRESS 1.2.3.4
74 ENTRY_BEGIN
75 MATCH opcode qtype qname
76 ADJUST copy_id
77 REPLY QR NOERROR
78 SECTION QUESTION
79 example.com. IN NS
80 SECTION ANSWER
81 example.com. IN NS ns.example.com.
82 example.com. 3600 IN RRSIG NS 3 2 3600 20070926134150 20070829134150 2854 example.com. MC0CFQCN+qHdJxoI/2tNKwsb08pra/G7aAIUAWA5sDdJTbrXA1/3OaesGBAO3sI= ;{id = 2854}
83 SECTION ADDITIONAL
84 ns.example.com. IN A 1.2.3.4
85 ns.example.com. 3600 IN RRSIG A 3 3 3600 20070926135752 20070829135752 2854 example.com. MC0CFQCMSWxVehgOQLoYclB9PIAbNP229AIUeH0vNNGJhjnZiqgIOKvs1EhzqAo= ;{id = 2854}
86 ENTRY_END
87
88 ; response to DNSKEY priming query
89 ENTRY_BEGIN
90 MATCH opcode qtype qname
91 ADJUST copy_id
92 REPLY QR NOERROR
93 SECTION QUESTION
94 example.com. IN DNSKEY
95 SECTION ANSWER
96 example.com. 3600 IN DNSKEY 256 3 3 ALXLUsWqUrY3JYER3T4TBJII s70j+sDS/UT2QRp61SE7S3E EXopNXoFE73JLRmvpi/UrOO/Vz4Se 6wXv/CYCKjGw06U4WRgR YXcpEhJROyNapmdIKSx hOzfLVE1gqA0PweZR8d tY3aNQSRn3sPpwJr6Mi /PqQKAMMrZ9ckJpf1+b QMOOvxgzz2U1GS18b3y ZKcgTMEaJzd/GZYzi/B N2DzQ0MsrSwYXfsNLFO Bbs8PJMW4LYIxeeOe6rUgkWOF 7CC9Dh/dduQ1QrsJhmZAEFfd6ByYV+ ;{id = 2854 (zsk), size = 1688b}
97 example.com. 3600 IN RRSIG DNSKEY DSA 2 3600 20070926134150 20070829134150 2854 example.com. MCwCFBQRtlR4BEv9ohi+PGFjp+AHsJuHAhRCvz0shggvnvI88DFnBDCczHUcVA== ;{id = 2854}
98 SECTION AUTHORITY
99 example.com. IN NS ns.example.com.
100 example.com. 3600 IN RRSIG NS 3 2 3600 20070926134150 20070829134150 2854 example.com. MC0CFQCN+qHdJxoI/2tNKwsb08pra/G7aAIUAWA5sDdJTbrXA1/3OaesGBAO3sI= ;{id = 2854}
101 SECTION ADDITIONAL
102 ns.example.com. IN A 1.2.3.4
103 ns.example.com. 3600 IN RRSIG A 3 3 3600 20070926135752 20070829135752 2854 example.com. MC0CFQCMSWxVehgOQLoYclB9PIAbNP229AIUeH0vNNGJhjnZiqgIOKvs1EhzqAo= ;{id = 2854}
104 ENTRY_END
105
106 ; response for tub.example.com
107 ENTRY_BEGIN
108 MATCH opcode subdomain
109 ADJUST copy_id copy_query
110 REPLY QR NXDOMAIN
111 SECTION QUESTION
112 tub.example.com. IN DNSKEY
113 SECTION ANSWER
114 SECTION AUTHORITY
115 ; SOA record
116 example.com IN SOA ns.iana.org. NSTLD.iana.org. 2009061200 1800 900 604800 86400
117 example.com. 3600 IN RRSIG SOA 3 2 3600 20070926134150 20070829134150 2854 example.com. AAvpEruGS0UJzMoO6ou/+y8ZyHjjrFC6HKDWU8a61Ru9qtl4R66fC1c= ;{id = 2854}
118 ; qname denial
119 sub.example.com. IN NSEC wub.example.com. NS DS RRSIG NSEC
120 sub.example.com. 3600 IN RRSIG NSEC 3 3 3600 20070926134150 20070829134150 2854 example.com. AA4+SSCI8kQZ2/iGj+9rxpNZyaIJNNRZ4eM0fEw2D5fVR/+WLUZ9GdE= ;{id = 2854}
121 ; wildcard denial
122 example.com. IN NSEC blub.example.com. NS SOA RRSIG NSEC DNSKEY
123 example.com. 3600 IN RRSIG NSEC 3 2 3600 20070926134150 20070829134150 2854 example.com. AARheDFiRjrnKHzsPloUJ0FC+8aAM6H49Lnm2AJrgxE9RlBlH2E4sRo= ;{id = 2854}
124 SECTION ADDITIONAL
125 ENTRY_END
126
127 ; DS query for sub.example.com
128 ENTRY_BEGIN
129 MATCH opcode qtype qname
130 ADJUST copy_id
131 REPLY QR NOERROR
132 SECTION QUESTION
133 sub.example.com. IN DS
134 SECTION ANSWER
135 sub.example.com. 3600 IN DS 30899 RSASHA1 1 f7ed618f24d5e5202927e1d27bc2e84a141cb4b3
136 sub.example.com. 3600 IN RRSIG DS 3 3 3600 20070926134150 20070829134150 2854 example.com. MCwCFCW3ix0GD4BSvNLWIbROCJt5DAW9AhRt/kg9kBKJ20UBUdumrBUHqnskdA== ;{id = 2854}
137 SECTION AUTHORITY
138 SECTION ADDITIONAL
139 ENTRY_END
140
141 ; response for delegation to sub.example.com.
142 ENTRY_BEGIN
143 MATCH opcode subdomain
144 ADJUST copy_id copy_query
145 REPLY QR NOERROR
146 SECTION QUESTION
147 sub.example.com. IN DNSKEY
148 SECTION ANSWER
149 SECTION AUTHORITY
150 sub.example.com. IN NS ns.sub.example.com.
151 ;sub.example.com. 3600 IN DS 30899 RSASHA1 1 f7ed618f24d5e5202927e1d27bc2e84a141cb4b3
152 ;sub.example.com. 3600 IN RRSIG DS 3 3 3600 20070926134150 20070829134150 2854 example.com. MCwCFCW3ix0GD4BSvNLWIbROCJt5DAW9AhRt/kg9kBKJ20UBUdumrBUHqnskdA== ;{id = 2854}
153 SECTION ADDITIONAL
154 ns.sub.example.com. IN A 1.2.3.6
155 ENTRY_END
156 RANGE_END
157
158 ; ns.sub.example.com.
159 RANGE_BEGIN 0 100
160 ADDRESS 1.2.3.6
161 ENTRY_BEGIN
162 MATCH opcode qtype qname
163 ADJUST copy_id
164 REPLY QR NOERROR
165 SECTION QUESTION
166 sub.example.com. IN NS
167 SECTION ANSWER
168 sub.example.com. IN NS ns.sub.example.com.
169 sub.example.com. 3600 IN RRSIG NS 5 3 3600 20070926134150 20070829134150 30899 sub.example.com. wcpHeBILHfo8C9uxMhcW03gcURZeUffiKdSTb50ZjzTHgMNhRyMfpcvSpXEd9548A9UTmWKeLZChfr5Z/glONw== ;{id = 30899}
170 SECTION ADDITIONAL
171 ns.sub.example.com. IN A 1.2.3.6
172 ns.sub.example.com. 3600 IN RRSIG A 5 4 3600 20070926134150 20070829134150 30899 sub.example.com. UF7shD/gt1FOp2UHgLTNbPzVykklSXFMEtJ1xD+Hholwf/PIzd7zoaIttIYibNa4fUXCqMg22H9P7MRhfmFe6g== ;{id = 30899}
173 ENTRY_END
174
175 ; response to DNSKEY priming query
176 ; sub.example.com. 3600 IN DS 30899 RSASHA1 1 f7ed618f24d5e5202927e1d27bc2e84a141cb4b3
177 ENTRY_BEGIN
178 MATCH opcode qtype qname
179 ADJUST copy_id
180 REPLY QR NOERROR
181 SECTION QUESTION
182 sub.example.com. IN DNSKEY
183 SECTION ANSWER
184 sub.example.com. 3600 IN DNSKEY 256 3 5 AQPQ41chR9DEHt/aIzIFAqanbDlRflJoRs5yz1jFsoRIT7dWf0r+PeDuewdxkszNH6wnU4QL8pfKFRh5PIYVBLK3 ;{id = 30899 (zsk), size = 512b}
185 sub.example.com. 3600 IN RRSIG DNSKEY 5 3 3600 20070926134150 20070829134150 30899 sub.example.com. uNGp99iznjD7oOX02XnQbDnbg75UwBHRvZSKYUorTKvPUnCWMHKdRsQ+mf+Fx3GZ+Fz9BVjoCmQqpnfgXLEYqw== ;{id = 30899}
186 SECTION AUTHORITY
187 sub.example.com. IN NS ns.sub.example.com.
188 sub.example.com. 3600 IN RRSIG NS 5 3 3600 20070926134150 20070829134150 30899 sub.example.com. wcpHeBILHfo8C9uxMhcW03gcURZeUffiKdSTb50ZjzTHgMNhRyMfpcvSpXEd9548A9UTmWKeLZChfr5Z/glONw== ;{id = 30899}
189 SECTION ADDITIONAL
190 ns.sub.example.com. IN A 1.2.3.6
191 ns.sub.example.com. 3600 IN RRSIG A 5 4 3600 20070926134150 20070829134150 30899 sub.example.com. UF7shD/gt1FOp2UHgLTNbPzVykklSXFMEtJ1xD+Hholwf/PIzd7zoaIttIYibNa4fUXCqMg22H9P7MRhfmFe6g== ;{id = 30899}
192 ENTRY_END
193
194 ; response to query of interest
195 ENTRY_BEGIN
196 MATCH opcode qtype qname
197 ADJUST copy_id
198 REPLY QR NOERROR
199 SECTION QUESTION
200 www.sub.example.com. IN A
201 SECTION ANSWER
202 www.sub.example.com. IN A 11.11.11.11
203 www.sub.example.com. 3600 IN RRSIG A 5 4 3600 20070926134150 20070829134150 30899 sub.example.com. 0DqqRfRtm7VSEQ4mmBbzrKRqQAay3JAE8DPDGmjtokrrjN9F1G/HxozDV7bjdIh2EChlQea8FPwf/GepJMUVxg== ;{id = 30899}
204 SECTION AUTHORITY
205 SECTION ADDITIONAL
206 ENTRY_END
207 RANGE_END
208
209 ; query for a domain next to it, so the wrong NSEC gets in the cache.
210 STEP 1 QUERY
211 ENTRY_BEGIN
212 REPLY RD DO
213 SECTION QUESTION
214 www.tub.example.com. IN A
215 ENTRY_END
216
217 ; recursion happens here.
218 STEP 10 CHECK_ANSWER
219 ENTRY_BEGIN
220 MATCH all
221 REPLY QR RD RA AD NXDOMAIN
222 SECTION QUESTION
223 www.tub.example.com. IN A
224 SECTION ANSWER
225 SECTION AUTHORITY
226 example.com. 3600 IN SOA ns.iana.org. NSTLD.iana.org. 2009061200 1800 900 604800 86400
227 example.com. 3600 IN RRSIG SOA 3 2 3600 20070926134150 20070829134150 2854 example.com. AAvpEruGS0UJzMoO6ou/+y8ZyHjjrFC6HKDWU8a61Ru9qtl4R66fC1c= ;{id = 2854}
228 sub.example.com. 3600 IN NSEC wub.example.com. NS DS RRSIG NSEC
229 sub.example.com. 3600 IN RRSIG NSEC 3 3 3600 20070926134150 20070829134150 2854 example.com. AA4+SSCI8kQZ2/iGj+9rxpNZyaIJNNRZ4eM0fEw2D5fVR/+WLUZ9GdE= ;{id = 2854}
230 example.com. 3600 IN NSEC blub.example.com. NS SOA RRSIG NSEC DNSKEY
231 example.com. 3600 IN RRSIG NSEC 3 2 3600 20070926134150 20070829134150 2854 example.com. AARheDFiRjrnKHzsPloUJ0FC+8aAM6H49Lnm2AJrgxE9RlBlH2E4sRo= ;{id = 2854}
232 SECTION ADDITIONAL
233 ENTRY_END
234
235 ; query of interest.
236 STEP 30 QUERY
237 ENTRY_BEGIN
238 REPLY RD DO
239 SECTION QUESTION
240 www.sub.example.com. IN A
241 ENTRY_END
242
243 STEP 40 CHECK_ANSWER
244 ENTRY_BEGIN
245 MATCH all
246 REPLY QR RD RA AD NOERROR
247 SECTION QUESTION
248 www.sub.example.com. IN A
249 SECTION ANSWER
250 www.sub.example.com. 3600 IN A 11.11.11.11
251 www.sub.example.com. 3600 IN RRSIG A 5 4 3600 20070926134150 20070829134150 30899 sub.example.com. 0DqqRfRtm7VSEQ4mmBbzrKRqQAay3JAE8DPDGmjtokrrjN9F1G/HxozDV7bjdIh2EChlQea8FPwf/GepJMUVxg== ;{id = 30899}
252 SECTION AUTHORITY
253 SECTION ADDITIONAL
254 ENTRY_END
255
256
257 SCENARIO_END
0 ; config options
1 ; The island of trust is at example.com
2 server:
3 trust-anchor: "example.com. 3600 IN DS 2854 3 1 46e4ffc6e9a4793b488954bd3f0cc6af0dfb201b"
4 val-override-date: "20070916134226"
5 target-fetch-policy: "0 0 0 0 0"
6
7 stub-zone:
8 name: "."
9 stub-addr: 193.0.14.129 # K.ROOT-SERVERS.NET.
10 forward-zone:
11 name: "sub.example.com"
12 forward-addr: 1.2.3.6
13 CONFIG_END
14
15 SCENARIO_BEGIN Test forward-zone with DS query
16 ; The fwd zone is linked validly with a DS to the public internet zone.
17 ; unbound just has to be able to ask the DS from the right server (not
18 ; from the fwd).
19 ; Here the fwd is not even recursive, just the plain server for sub.example.com
20
21 ; K.ROOT-SERVERS.NET.
22 RANGE_BEGIN 0 100
23 ADDRESS 193.0.14.129
24 ENTRY_BEGIN
25 MATCH opcode qtype qname
26 ADJUST copy_id
27 REPLY QR NOERROR
28 SECTION QUESTION
29 . IN NS
30 SECTION ANSWER
31 . IN NS K.ROOT-SERVERS.NET.
32 SECTION ADDITIONAL
33 K.ROOT-SERVERS.NET. IN A 193.0.14.129
34 ENTRY_END
35
36 ENTRY_BEGIN
37 MATCH opcode subdomain
38 ADJUST copy_id copy_query
39 REPLY QR NOERROR
40 SECTION QUESTION
41 com. IN NS
42 SECTION AUTHORITY
43 com. IN NS a.gtld-servers.net.
44 SECTION ADDITIONAL
45 a.gtld-servers.net. IN A 192.5.6.30
46 ENTRY_END
47 RANGE_END
48
49 ; a.gtld-servers.net.
50 RANGE_BEGIN 0 100
51 ADDRESS 192.5.6.30
52 ENTRY_BEGIN
53 MATCH opcode qtype qname
54 ADJUST copy_id
55 REPLY QR NOERROR
56 SECTION QUESTION
57 com. IN NS
58 SECTION ANSWER
59 com. IN NS a.gtld-servers.net.
60 SECTION ADDITIONAL
61 a.gtld-servers.net. IN A 192.5.6.30
62 ENTRY_END
63
64 ENTRY_BEGIN
65 MATCH opcode subdomain
66 ADJUST copy_id copy_query
67 REPLY QR NOERROR
68 SECTION QUESTION
69 example.com. IN A
70 SECTION AUTHORITY
71 example.com. IN NS ns.example.com.
72 SECTION ADDITIONAL
73 ns.example.com. IN A 1.2.3.4
74 ENTRY_END
75 RANGE_END
76
77 ; ns.example.com.
78 RANGE_BEGIN 0 100
79 ADDRESS 1.2.3.4
80 ENTRY_BEGIN
81 MATCH opcode qtype qname
82 ADJUST copy_id
83 REPLY QR NOERROR
84 SECTION QUESTION
85 example.com. IN NS
86 SECTION ANSWER
87 example.com. IN NS ns.example.com.
88 example.com. 3600 IN RRSIG NS 3 2 3600 20070926134150 20070829134150 2854 example.com. MC0CFQCN+qHdJxoI/2tNKwsb08pra/G7aAIUAWA5sDdJTbrXA1/3OaesGBAO3sI= ;{id = 2854}
89 SECTION ADDITIONAL
90 ns.example.com. IN A 1.2.3.4
91 ns.example.com. 3600 IN RRSIG A 3 3 3600 20070926135752 20070829135752 2854 example.com. MC0CFQCMSWxVehgOQLoYclB9PIAbNP229AIUeH0vNNGJhjnZiqgIOKvs1EhzqAo= ;{id = 2854}
92 ENTRY_END
93
94 ; response to DNSKEY priming query
95 ENTRY_BEGIN
96 MATCH opcode qtype qname
97 ADJUST copy_id
98 REPLY QR NOERROR
99 SECTION QUESTION
100 example.com. IN DNSKEY
101 SECTION ANSWER
102 example.com. 3600 IN DNSKEY 256 3 3 ALXLUsWqUrY3JYER3T4TBJII s70j+sDS/UT2QRp61SE7S3E EXopNXoFE73JLRmvpi/UrOO/Vz4Se 6wXv/CYCKjGw06U4WRgR YXcpEhJROyNapmdIKSx hOzfLVE1gqA0PweZR8d tY3aNQSRn3sPpwJr6Mi /PqQKAMMrZ9ckJpf1+b QMOOvxgzz2U1GS18b3y ZKcgTMEaJzd/GZYzi/B N2DzQ0MsrSwYXfsNLFO Bbs8PJMW4LYIxeeOe6rUgkWOF 7CC9Dh/dduQ1QrsJhmZAEFfd6ByYV+ ;{id = 2854 (zsk), size = 1688b}
103 example.com. 3600 IN RRSIG DNSKEY DSA 2 3600 20070926134150 20070829134150 2854 example.com. MCwCFBQRtlR4BEv9ohi+PGFjp+AHsJuHAhRCvz0shggvnvI88DFnBDCczHUcVA== ;{id = 2854}
104 SECTION AUTHORITY
105 example.com. IN NS ns.example.com.
106 example.com. 3600 IN RRSIG NS 3 2 3600 20070926134150 20070829134150 2854 example.com. MC0CFQCN+qHdJxoI/2tNKwsb08pra/G7aAIUAWA5sDdJTbrXA1/3OaesGBAO3sI= ;{id = 2854}
107 SECTION ADDITIONAL
108 ns.example.com. IN A 1.2.3.4
109 ns.example.com. 3600 IN RRSIG A 3 3 3600 20070926135752 20070829135752 2854 example.com. MC0CFQCMSWxVehgOQLoYclB9PIAbNP229AIUeH0vNNGJhjnZiqgIOKvs1EhzqAo= ;{id = 2854}
110 ENTRY_END
111
112 ; response for DS of sub.example.com.
113 ENTRY_BEGIN
114 MATCH opcode qtype qname
115 ADJUST copy_id
116 REPLY QR NOERROR
117 SECTION QUESTION
118 sub.example.com. IN DS
119 SECTION ANSWER
120 sub.example.com. 3600 IN DS 30899 RSASHA1 1 f7ed618f24d5e5202927e1d27bc2e84a141cb4b3
121 sub.example.com. 3600 IN RRSIG DS 3 3 3600 20070926134150 20070829134150 2854 example.com. MCwCFCW3ix0GD4BSvNLWIbROCJt5DAW9AhRt/kg9kBKJ20UBUdumrBUHqnskdA== ;{id = 2854}
122 SECTION AUTHORITY
123 SECTION ADDITIONAL
124 ENTRY_END
125
126 ; response for delegation to sub.example.com.
127 ENTRY_BEGIN
128 MATCH opcode subdomain
129 ADJUST copy_id copy_query
130 REPLY QR NOERROR
131 SECTION QUESTION
132 sub.example.com. IN A
133 SECTION ANSWER
134 SECTION AUTHORITY
135 sub.example.com. IN NS ns.sub.example.com.
136 sub.example.com. 3600 IN DS 30899 RSASHA1 1 f7ed618f24d5e5202927e1d27bc2e84a141cb4b3
137 sub.example.com. 3600 IN RRSIG DS 3 3 3600 20070926134150 20070829134150 2854 example.com. MCwCFCW3ix0GD4BSvNLWIbROCJt5DAW9AhRt/kg9kBKJ20UBUdumrBUHqnskdA== ;{id = 2854}
138 SECTION ADDITIONAL
139 ns.sub.example.com. IN A 1.2.3.6
140 ENTRY_END
141
142 RANGE_END
143
144 ; ns.sub.example.com.
145 RANGE_BEGIN 0 100
146 ADDRESS 1.2.3.6
147 ENTRY_BEGIN
148 MATCH opcode qtype qname
149 ADJUST copy_id
150 REPLY QR NOERROR
151 SECTION QUESTION
152 sub.example.com. IN NS
153 SECTION ANSWER
154 sub.example.com. IN NS ns.sub.example.com.
155 sub.example.com. 3600 IN RRSIG NS 5 3 3600 20070926134150 20070829134150 30899 sub.example.com. wcpHeBILHfo8C9uxMhcW03gcURZeUffiKdSTb50ZjzTHgMNhRyMfpcvSpXEd9548A9UTmWKeLZChfr5Z/glONw== ;{id = 30899}
156 SECTION ADDITIONAL
157 ns.sub.example.com. IN A 1.2.3.6
158 ns.sub.example.com. 3600 IN RRSIG A 5 4 3600 20070926134150 20070829134150 30899 sub.example.com. UF7shD/gt1FOp2UHgLTNbPzVykklSXFMEtJ1xD+Hholwf/PIzd7zoaIttIYibNa4fUXCqMg22H9P7MRhfmFe6g== ;{id = 30899}
159 ENTRY_END
160
161 ; response to DNSKEY priming query
162 ; sub.example.com. 3600 IN DS 30899 RSASHA1 1 f7ed618f24d5e5202927e1d27bc2e84a141cb4b3
163 ENTRY_BEGIN
164 MATCH opcode qtype qname
165 ADJUST copy_id
166 REPLY QR NOERROR
167 SECTION QUESTION
168 sub.example.com. IN DNSKEY
169 SECTION ANSWER
170 sub.example.com. 3600 IN DNSKEY 256 3 5 AQPQ41chR9DEHt/aIzIFAqanbDlRflJoRs5yz1jFsoRIT7dWf0r+PeDuewdxkszNH6wnU4QL8pfKFRh5PIYVBLK3 ;{id = 30899 (zsk), size = 512b}
171 sub.example.com. 3600 IN RRSIG DNSKEY 5 3 3600 20070926134150 20070829134150 30899 sub.example.com. uNGp99iznjD7oOX02XnQbDnbg75UwBHRvZSKYUorTKvPUnCWMHKdRsQ+mf+Fx3GZ+Fz9BVjoCmQqpnfgXLEYqw== ;{id = 30899}
172 SECTION AUTHORITY
173 sub.example.com. IN NS ns.sub.example.com.
174 sub.example.com. 3600 IN RRSIG NS 5 3 3600 20070926134150 20070829134150 30899 sub.example.com. wcpHeBILHfo8C9uxMhcW03gcURZeUffiKdSTb50ZjzTHgMNhRyMfpcvSpXEd9548A9UTmWKeLZChfr5Z/glONw== ;{id = 30899}
175 SECTION ADDITIONAL
176 ns.sub.example.com. IN A 1.2.3.6
177 ns.sub.example.com. 3600 IN RRSIG A 5 4 3600 20070926134150 20070829134150 30899 sub.example.com. UF7shD/gt1FOp2UHgLTNbPzVykklSXFMEtJ1xD+Hholwf/PIzd7zoaIttIYibNa4fUXCqMg22H9P7MRhfmFe6g== ;{id = 30899}
178 ENTRY_END
179
180 ; response for qtype DS. This is not available here.
181 ENTRY_BEGIN
182 MATCH opcode qtype qname
183 ADJUST copy_id
184 REPLY QR SERVFAIL
185 SECTION QUESTION
186 sub.example.com. IN DS
187 SECTION ANSWER
188 SECTION AUTHORITY
189 SECTION ADDITIONAL
190 ENTRY_END
191
192 ; response to query of interest
193 ENTRY_BEGIN
194 MATCH opcode qtype qname
195 ADJUST copy_id
196 REPLY QR NOERROR
197 SECTION QUESTION
198 www.sub.example.com. IN A
199 SECTION ANSWER
200 www.sub.example.com. IN A 11.11.11.11
201 www.sub.example.com. 3600 IN RRSIG A 5 4 3600 20070926134150 20070829134150 30899 sub.example.com. 0DqqRfRtm7VSEQ4mmBbzrKRqQAay3JAE8DPDGmjtokrrjN9F1G/HxozDV7bjdIh2EChlQea8FPwf/GepJMUVxg== ;{id = 30899}
202 SECTION AUTHORITY
203 SECTION ADDITIONAL
204 ENTRY_END
205 RANGE_END
206
207 STEP 1 QUERY
208 ENTRY_BEGIN
209 REPLY RD DO
210 SECTION QUESTION
211 www.sub.example.com. IN A
212 ENTRY_END
213
214 ; recursion happens here.
215 STEP 10 CHECK_ANSWER
216 ENTRY_BEGIN
217 MATCH all
218 REPLY QR RD RA AD NOERROR
219 SECTION QUESTION
220 www.sub.example.com. IN A
221 SECTION ANSWER
222 www.sub.example.com. 3600 IN A 11.11.11.11
223 www.sub.example.com. 3600 IN RRSIG A 5 4 3600 20070926134150 20070829134150 30899 sub.example.com. 0DqqRfRtm7VSEQ4mmBbzrKRqQAay3JAE8DPDGmjtokrrjN9F1G/HxozDV7bjdIh2EChlQea8FPwf/GepJMUVxg== ;{id = 30899}
224 SECTION AUTHORITY
225 SECTION ADDITIONAL
226 ENTRY_END
227
228 SCENARIO_END
229 ; config options
230 ; The island of trust is at example.com
231 server:
232 trust-anchor: "example.com. 3600 IN DS 2854 3 1 46e4ffc6e9a4793b488954bd3f0cc6af0dfb201b"
233 val-override-date: "20070916134226"
234 target-fetch-policy: "0 0 0 0 0"
235
236 stub-zone:
237 name: "."
238 stub-addr: 193.0.14.129 # K.ROOT-SERVERS.NET.
239 stub-zone:
240 name: "sub.example.com"
241 stub-addr: 1.2.3.6
242 CONFIG_END
243
244 SCENARIO_BEGIN Test stub with DS query
245 ; The stub zone is linked validly with a DS to the public internet zone.
246 ; unbound just has to be able to ask the DS from the right server (not
247 ; from the stub).
248
249 ; K.ROOT-SERVERS.NET.
250 RANGE_BEGIN 0 100
251 ADDRESS 193.0.14.129
252 ENTRY_BEGIN
253 MATCH opcode qtype qname
254 ADJUST copy_id
255 REPLY QR NOERROR
256 SECTION QUESTION
257 . IN NS
258 SECTION ANSWER
259 . IN NS K.ROOT-SERVERS.NET.
260 SECTION ADDITIONAL
261 K.ROOT-SERVERS.NET. IN A 193.0.14.129
262 ENTRY_END
263
264 ENTRY_BEGIN
265 MATCH opcode subdomain
266 ADJUST copy_id copy_query
267 REPLY QR NOERROR
268 SECTION QUESTION
269 com. IN NS
270 SECTION AUTHORITY
271 com. IN NS a.gtld-servers.net.
272 SECTION ADDITIONAL
273 a.gtld-servers.net. IN A 192.5.6.30
274 ENTRY_END
275 RANGE_END
276
277 ; a.gtld-servers.net.
278 RANGE_BEGIN 0 100
279 ADDRESS 192.5.6.30
280 ENTRY_BEGIN
281 MATCH opcode qtype qname
282 ADJUST copy_id
283 REPLY QR NOERROR
284 SECTION QUESTION
285 com. IN NS
286 SECTION ANSWER
287 com. IN NS a.gtld-servers.net.
288 SECTION ADDITIONAL
289 a.gtld-servers.net. IN A 192.5.6.30
290 ENTRY_END
291
292 ENTRY_BEGIN
293 MATCH opcode subdomain
294 ADJUST copy_id copy_query
295 REPLY QR NOERROR
296 SECTION QUESTION
297 example.com. IN A
298 SECTION AUTHORITY
299 example.com. IN NS ns.example.com.
300 SECTION ADDITIONAL
301 ns.example.com. IN A 1.2.3.4
302 ENTRY_END
303 RANGE_END
304
305 ; ns.example.com.
306 RANGE_BEGIN 0 100
307 ADDRESS 1.2.3.4
308 ENTRY_BEGIN
309 MATCH opcode qtype qname
310 ADJUST copy_id
311 REPLY QR NOERROR
312 SECTION QUESTION
313 example.com. IN NS
314 SECTION ANSWER
315 example.com. IN NS ns.example.com.
316 example.com. 3600 IN RRSIG NS 3 2 3600 20070926134150 20070829134150 2854 example.com. MC0CFQCN+qHdJxoI/2tNKwsb08pra/G7aAIUAWA5sDdJTbrXA1/3OaesGBAO3sI= ;{id = 2854}
317 SECTION ADDITIONAL
318 ns.example.com. IN A 1.2.3.4
319 ns.example.com. 3600 IN RRSIG A 3 3 3600 20070926135752 20070829135752 2854 example.com. MC0CFQCMSWxVehgOQLoYclB9PIAbNP229AIUeH0vNNGJhjnZiqgIOKvs1EhzqAo= ;{id = 2854}
320 ENTRY_END
321
322 ; response to DNSKEY priming query
323 ENTRY_BEGIN
324 MATCH opcode qtype qname
325 ADJUST copy_id
326 REPLY QR NOERROR
327 SECTION QUESTION
328 example.com. IN DNSKEY
329 SECTION ANSWER
330 example.com. 3600 IN DNSKEY 256 3 3 ALXLUsWqUrY3JYER3T4TBJII s70j+sDS/UT2QRp61SE7S3E EXopNXoFE73JLRmvpi/UrOO/Vz4Se 6wXv/CYCKjGw06U4WRgR YXcpEhJROyNapmdIKSx hOzfLVE1gqA0PweZR8d tY3aNQSRn3sPpwJr6Mi /PqQKAMMrZ9ckJpf1+b QMOOvxgzz2U1GS18b3y ZKcgTMEaJzd/GZYzi/B N2DzQ0MsrSwYXfsNLFO Bbs8PJMW4LYIxeeOe6rUgkWOF 7CC9Dh/dduQ1QrsJhmZAEFfd6ByYV+ ;{id = 2854 (zsk), size = 1688b}
331 example.com. 3600 IN RRSIG DNSKEY DSA 2 3600 20070926134150 20070829134150 2854 example.com. MCwCFBQRtlR4BEv9ohi+PGFjp+AHsJuHAhRCvz0shggvnvI88DFnBDCczHUcVA== ;{id = 2854}
332 SECTION AUTHORITY
333 example.com. IN NS ns.example.com.
334 example.com. 3600 IN RRSIG NS 3 2 3600 20070926134150 20070829134150 2854 example.com. MC0CFQCN+qHdJxoI/2tNKwsb08pra/G7aAIUAWA5sDdJTbrXA1/3OaesGBAO3sI= ;{id = 2854}
335 SECTION ADDITIONAL
336 ns.example.com. IN A 1.2.3.4
337 ns.example.com. 3600 IN RRSIG A 3 3 3600 20070926135752 20070829135752 2854 example.com. MC0CFQCMSWxVehgOQLoYclB9PIAbNP229AIUeH0vNNGJhjnZiqgIOKvs1EhzqAo= ;{id = 2854}
338 ENTRY_END
339
340 ; response for DS of sub.example.com.
341 ENTRY_BEGIN
342 MATCH opcode qtype qname
343 ADJUST copy_id
344 REPLY QR NOERROR
345 SECTION QUESTION
346 sub.example.com. IN DS
347 SECTION ANSWER
348 sub.example.com. 3600 IN DS 30899 RSASHA1 1 f7ed618f24d5e5202927e1d27bc2e84a141cb4b3
349 sub.example.com. 3600 IN RRSIG DS 3 3 3600 20070926134150 20070829134150 2854 example.com. MCwCFCW3ix0GD4BSvNLWIbROCJt5DAW9AhRt/kg9kBKJ20UBUdumrBUHqnskdA== ;{id = 2854}
350 SECTION AUTHORITY
351 SECTION ADDITIONAL
352 ENTRY_END
353
354 ; response for delegation to sub.example.com.
355 ENTRY_BEGIN
356 MATCH opcode subdomain
357 ADJUST copy_id copy_query
358 REPLY QR NOERROR
359 SECTION QUESTION
360 sub.example.com. IN A
361 SECTION ANSWER
362 SECTION AUTHORITY
363 sub.example.com. IN NS ns.sub.example.com.
364 sub.example.com. 3600 IN DS 30899 RSASHA1 1 f7ed618f24d5e5202927e1d27bc2e84a141cb4b3
365 sub.example.com. 3600 IN RRSIG DS 3 3 3600 20070926134150 20070829134150 2854 example.com. MCwCFCW3ix0GD4BSvNLWIbROCJt5DAW9AhRt/kg9kBKJ20UBUdumrBUHqnskdA== ;{id = 2854}
366 SECTION ADDITIONAL
367 ns.sub.example.com. IN A 1.2.3.6
368 ENTRY_END
369
370 RANGE_END
371
372 ; ns.sub.example.com.
373 RANGE_BEGIN 0 100
374 ADDRESS 1.2.3.6
375 ENTRY_BEGIN
376 MATCH opcode qtype qname
377 ADJUST copy_id
378 REPLY QR NOERROR
379 SECTION QUESTION
380 sub.example.com. IN NS
381 SECTION ANSWER
382 sub.example.com. IN NS ns.sub.example.com.
383 sub.example.com. 3600 IN RRSIG NS 5 3 3600 20070926134150 20070829134150 30899 sub.example.com. wcpHeBILHfo8C9uxMhcW03gcURZeUffiKdSTb50ZjzTHgMNhRyMfpcvSpXEd9548A9UTmWKeLZChfr5Z/glONw== ;{id = 30899}
384 SECTION ADDITIONAL
385 ns.sub.example.com. IN A 1.2.3.6
386 ns.sub.example.com. 3600 IN RRSIG A 5 4 3600 20070926134150 20070829134150 30899 sub.example.com. UF7shD/gt1FOp2UHgLTNbPzVykklSXFMEtJ1xD+Hholwf/PIzd7zoaIttIYibNa4fUXCqMg22H9P7MRhfmFe6g== ;{id = 30899}
387 ENTRY_END
388
389 ; response to DNSKEY priming query
390 ; sub.example.com. 3600 IN DS 30899 RSASHA1 1 f7ed618f24d5e5202927e1d27bc2e84a141cb4b3
391 ENTRY_BEGIN
392 MATCH opcode qtype qname
393 ADJUST copy_id
394 REPLY QR NOERROR
395 SECTION QUESTION
396 sub.example.com. IN DNSKEY
397 SECTION ANSWER
398 sub.example.com. 3600 IN DNSKEY 256 3 5 AQPQ41chR9DEHt/aIzIFAqanbDlRflJoRs5yz1jFsoRIT7dWf0r+PeDuewdxkszNH6wnU4QL8pfKFRh5PIYVBLK3 ;{id = 30899 (zsk), size = 512b}
399 sub.example.com. 3600 IN RRSIG DNSKEY 5 3 3600 20070926134150 20070829134150 30899 sub.example.com. uNGp99iznjD7oOX02XnQbDnbg75UwBHRvZSKYUorTKvPUnCWMHKdRsQ+mf+Fx3GZ+Fz9BVjoCmQqpnfgXLEYqw== ;{id = 30899}
400 SECTION AUTHORITY
401 sub.example.com. IN NS ns.sub.example.com.
402 sub.example.com. 3600 IN RRSIG NS 5 3 3600 20070926134150 20070829134150 30899 sub.example.com. wcpHeBILHfo8C9uxMhcW03gcURZeUffiKdSTb50ZjzTHgMNhRyMfpcvSpXEd9548A9UTmWKeLZChfr5Z/glONw== ;{id = 30899}
403 SECTION ADDITIONAL
404 ns.sub.example.com. IN A 1.2.3.6
405 ns.sub.example.com. 3600 IN RRSIG A 5 4 3600 20070926134150 20070829134150 30899 sub.example.com. UF7shD/gt1FOp2UHgLTNbPzVykklSXFMEtJ1xD+Hholwf/PIzd7zoaIttIYibNa4fUXCqMg22H9P7MRhfmFe6g== ;{id = 30899}
406 ENTRY_END
407
408 ; response for qtype DS. This is not available here.
409 ENTRY_BEGIN
410 MATCH opcode qtype qname
411 ADJUST copy_id
412 REPLY QR SERVFAIL
413 SECTION QUESTION
414 sub.example.com. IN DS
415 SECTION ANSWER
416 SECTION AUTHORITY
417 SECTION ADDITIONAL
418 ENTRY_END
419
420 ; response to query of interest
421 ENTRY_BEGIN
422 MATCH opcode qtype qname
423 ADJUST copy_id
424 REPLY QR NOERROR
425 SECTION QUESTION
426 www.sub.example.com. IN A
427 SECTION ANSWER
428 www.sub.example.com. IN A 11.11.11.11
429 www.sub.example.com. 3600 IN RRSIG A 5 4 3600 20070926134150 20070829134150 30899 sub.example.com. 0DqqRfRtm7VSEQ4mmBbzrKRqQAay3JAE8DPDGmjtokrrjN9F1G/HxozDV7bjdIh2EChlQea8FPwf/GepJMUVxg== ;{id = 30899}
430 SECTION AUTHORITY
431 SECTION ADDITIONAL
432 ENTRY_END
433 RANGE_END
434
435 STEP 1 QUERY
436 ENTRY_BEGIN
437 REPLY RD DO
438 SECTION QUESTION
439 www.sub.example.com. IN A
440 ENTRY_END
441
442 ; recursion happens here.
443 STEP 10 CHECK_ANSWER
444 ENTRY_BEGIN
445 MATCH all
446 REPLY QR RD RA AD NOERROR
447 SECTION QUESTION
448 www.sub.example.com. IN A
449 SECTION ANSWER
450 www.sub.example.com. 3600 IN A 11.11.11.11
451 www.sub.example.com. 3600 IN RRSIG A 5 4 3600 20070926134150 20070829134150 30899 sub.example.com. 0DqqRfRtm7VSEQ4mmBbzrKRqQAay3JAE8DPDGmjtokrrjN9F1G/HxozDV7bjdIh2EChlQea8FPwf/GepJMUVxg== ;{id = 30899}
452 SECTION AUTHORITY
453 SECTION ADDITIONAL
454 ENTRY_END
455
456 SCENARIO_END
0 ; config options
1 ; The island of trust is at example.com
2 server:
3 trust-anchor: "example.com. 3600 IN DS 2854 3 1 46e4ffc6e9a4793b488954bd3f0cc6af0dfb201b"
4 val-override-date: "20070916134226"
5 target-fetch-policy: "0 0 0 0 0"
6
7 stub-zone:
8 name: "."
9 stub-addr: 193.0.14.129 # K.ROOT-SERVERS.NET.
10 CONFIG_END
11
12 SCENARIO_BEGIN Test validator with badly truncated positive response
13
14 ; K.ROOT-SERVERS.NET.
15 RANGE_BEGIN 0 100
16 ADDRESS 193.0.14.129
17 ENTRY_BEGIN
18 MATCH opcode qtype qname
19 ADJUST copy_id
20 REPLY QR NOERROR
21 SECTION QUESTION
22 . IN NS
23 SECTION ANSWER
24 . IN NS K.ROOT-SERVERS.NET.
25 SECTION ADDITIONAL
26 K.ROOT-SERVERS.NET. IN A 193.0.14.129
27 ENTRY_END
28
29 ENTRY_BEGIN
30 MATCH opcode qtype qname
31 ADJUST copy_id
32 REPLY QR NOERROR
33 SECTION QUESTION
34 www.example.com. IN A
35 SECTION AUTHORITY
36 com. IN NS a.gtld-servers.net.
37 SECTION ADDITIONAL
38 a.gtld-servers.net. IN A 192.5.6.30
39 ENTRY_END
40 RANGE_END
41
42 ; a.gtld-servers.net.
43 RANGE_BEGIN 0 100
44 ADDRESS 192.5.6.30
45 ENTRY_BEGIN
46 MATCH opcode qtype qname
47 ADJUST copy_id
48 REPLY QR NOERROR
49 SECTION QUESTION
50 com. IN NS
51 SECTION ANSWER
52 com. IN NS a.gtld-servers.net.
53 SECTION ADDITIONAL
54 a.gtld-servers.net. IN A 192.5.6.30
55 ENTRY_END
56
57 ENTRY_BEGIN
58 MATCH opcode qtype qname
59 ADJUST copy_id
60 REPLY QR NOERROR
61 SECTION QUESTION
62 www.example.com. IN A
63 SECTION AUTHORITY
64 example.com. IN NS ns.example.com.
65 SECTION ADDITIONAL
66 ns.example.com. IN A 1.2.3.4
67 ENTRY_END
68 RANGE_END
69
70 ; ns.example.com.
71 RANGE_BEGIN 0 100
72 ADDRESS 1.2.3.4
73 ENTRY_BEGIN
74 MATCH opcode qtype qname
75 ADJUST copy_id
76 REPLY QR NOERROR
77 SECTION QUESTION
78 example.com. IN NS
79 SECTION ANSWER
80 example.com. IN NS ns.example.com.
81 example.com. 3600 IN RRSIG NS 3 2 3600 20070926134150 20070829134150 2854 example.com. MC0CFQCN+qHdJxoI/2tNKwsb08pra/G7aAIUAWA5sDdJTbrXA1/3OaesGBAO3sI= ;{id = 2854}
82 SECTION ADDITIONAL
83 ns.example.com. IN A 1.2.3.4
84 ns.example.com. 3600 IN RRSIG A 3 3 3600 20070926135752 20070829135752 2854 example.com. MC0CFQCMSWxVehgOQLoYclB9PIAbNP229AIUeH0vNNGJhjnZiqgIOKvs1EhzqAo= ;{id = 2854}
85 ENTRY_END
86
87 ; response to DNSKEY priming query
88 ENTRY_BEGIN
89 MATCH opcode qtype qname
90 ADJUST copy_id
91 REPLY QR NOERROR
92 SECTION QUESTION
93 example.com. IN DNSKEY
94 SECTION ANSWER
95 example.com. 3600 IN DNSKEY 256 3 3 ALXLUsWqUrY3JYER3T4TBJII s70j+sDS/UT2QRp61SE7S3E EXopNXoFE73JLRmvpi/UrOO/Vz4Se 6wXv/CYCKjGw06U4WRgR YXcpEhJROyNapmdIKSx hOzfLVE1gqA0PweZR8d tY3aNQSRn3sPpwJr6Mi /PqQKAMMrZ9ckJpf1+b QMOOvxgzz2U1GS18b3y ZKcgTMEaJzd/GZYzi/B N2DzQ0MsrSwYXfsNLFO Bbs8PJMW4LYIxeeOe6rUgkWOF 7CC9Dh/dduQ1QrsJhmZAEFfd6ByYV+ ;{id = 2854 (zsk), size = 1688b}
96 example.com. 3600 IN RRSIG DNSKEY 3 2 3600 20070926134802 20070829134802 2854 example.com. MCwCFG1yhRNtTEa3Eno2zhVVuy2EJX3wAhQeLyUp6+UXcpC5qGNu9tkrTEgPUg== ;{id = 2854}
97 SECTION AUTHORITY
98 example.com. IN NS ns.example.com.
99 example.com. 3600 IN RRSIG NS 3 2 3600 20070926134150 20070829134150 2854 example.com. MC0CFQCN+qHdJxoI/2tNKwsb08pra/G7aAIUAWA5sDdJTbrXA1/3OaesGBAO3sI= ;{id = 2854}
100 SECTION ADDITIONAL
101 ns.example.com. IN A 1.2.3.4
102 ns.example.com. 3600 IN RRSIG A 3 3 3600 20070926135752 20070829135752 2854 example.com. MC0CFQCMSWxVehgOQLoYclB9PIAbNP229AIUeH0vNNGJhjnZiqgIOKvs1EhzqAo= ;{id = 2854}
103 ENTRY_END
104
105 ; response to query of interest
106 ENTRY_BEGIN
107 MATCH opcode qtype qname
108 ADJUST copy_id
109 REPLY QR NOERROR
110 SECTION QUESTION
111 www.example.com. IN A
112 SECTION ANSWER
113 www.example.com. IN A 10.20.30.40
114 www.example.com. 3600 IN RRSIG A 3 3 3600 20070926134150 20070829134150 2854 example.com. MC0CFC99iE9K5y2WNgI0gFvBWaTi9wm6AhUAoUqOpDtG5Zct+Qr9F3mSdnbc6V4= ;{id = 2854}
115 SECTION AUTHORITY
116 example.com. IN NS ns.example.com.
117
118 ; Truncated, no signature for NS record.
119 ;;;example.com. 3600 IN RRSIG NS 3 2 3600 20070926134150 20070829134150 2854 example.com. MC0CFQCN+qHdJxoI/2tNKwsb08pra/G7aAIUAWA5sDdJTbrXA1/3OaesGBAO3sI= ;{id = 2854}
120 ;;;SECTION ADDITIONAL
121 ;;;ns.example.com. IN A 1.2.3.4
122 ;;;ns.example.com. 3600 IN RRSIG A 3 3 3600 20070926134150 20070829134150 2854 example.com. MC0CFQCQMyTjn7WWwpwAR1LlVeLpRgZGuQIUCcJDEkwAuzytTDRlYK7nIMwH1CM= ;{id = 2854}
123 ENTRY_END
124 RANGE_END
125
126 STEP 1 QUERY
127 ENTRY_BEGIN
128 REPLY RD DO
129 SECTION QUESTION
130 www.example.com. IN A
131 ENTRY_END
132
133 ; recursion happens here.
134 STEP 10 CHECK_ANSWER
135 ENTRY_BEGIN
136 MATCH all
137 REPLY QR RD RA AD NOERROR
138 SECTION QUESTION
139 www.example.com. IN A
140 SECTION ANSWER
141 www.example.com. IN A 10.20.30.40
142 www.example.com. 3600 IN RRSIG A 3 3 3600 20070926134150 20070829134150 2854 example.com. MC0CFC99iE9K5y2WNgI0gFvBWaTi9wm6AhUAoUqOpDtG5Zct+Qr9F3mSdnbc6V4= ;{id = 2854}
143 SECTION AUTHORITY
144 SECTION ADDITIONAL
145 ENTRY_END
146
147 SCENARIO_END
0 ; config options
1 ; The island of trust is at example.com
2 server:
3 trust-anchor: "example.com. 3600 IN DS 2854 3 1 46e4ffc6e9a4793b488954bd3f0cc6af0dfb201b"
4 val-override-date: "20070916134226"
5 target-fetch-policy: "0 0 0 0 0"
6
7 stub-zone:
8 name: "."
9 stub-addr: 193.0.14.129 # K.ROOT-SERVERS.NET.
10 stub-zone:
11 name: "sub.example.com"
12 stub-addr: 1.2.3.6
13 CONFIG_END
14
15 SCENARIO_BEGIN Test stub with DS query
16 ; The stub zone is linked validly with a DS to the public internet zone.
17 ; unbound just has to be able to ask the DS from the right server (not
18 ; from the stub).
19
20 ; K.ROOT-SERVERS.NET.
21 RANGE_BEGIN 0 100
22 ADDRESS 193.0.14.129
23 ENTRY_BEGIN
24 MATCH opcode qtype qname
25 ADJUST copy_id
26 REPLY QR NOERROR
27 SECTION QUESTION
28 . IN NS
29 SECTION ANSWER
30 . IN NS K.ROOT-SERVERS.NET.
31 SECTION ADDITIONAL
32 K.ROOT-SERVERS.NET. IN A 193.0.14.129
33 ENTRY_END
34
35 ENTRY_BEGIN
36 MATCH opcode subdomain
37 ADJUST copy_id copy_query
38 REPLY QR NOERROR
39 SECTION QUESTION
40 com. IN NS
41 SECTION AUTHORITY
42 com. IN NS a.gtld-servers.net.
43 SECTION ADDITIONAL
44 a.gtld-servers.net. IN A 192.5.6.30
45 ENTRY_END
46 RANGE_END
47
48 ; a.gtld-servers.net.
49 RANGE_BEGIN 0 100
50 ADDRESS 192.5.6.30
51 ENTRY_BEGIN
52 MATCH opcode qtype qname
53 ADJUST copy_id
54 REPLY QR NOERROR
55 SECTION QUESTION
56 com. IN NS
57 SECTION ANSWER
58 com. IN NS a.gtld-servers.net.
59 SECTION ADDITIONAL
60 a.gtld-servers.net. IN A 192.5.6.30
61 ENTRY_END
62
63 ENTRY_BEGIN
64 MATCH opcode subdomain
65 ADJUST copy_id copy_query
66 REPLY QR NOERROR
67 SECTION QUESTION
68 example.com. IN A
69 SECTION AUTHORITY
70 example.com. IN NS ns.example.com.
71 SECTION ADDITIONAL
72 ns.example.com. IN A 1.2.3.4
73 ENTRY_END
74 RANGE_END
75
76 ; ns.example.com.
77 RANGE_BEGIN 0 100
78 ADDRESS 1.2.3.4
79 ENTRY_BEGIN
80 MATCH opcode qtype qname
81 ADJUST copy_id
82 REPLY QR NOERROR
83 SECTION QUESTION
84 example.com. IN NS
85 SECTION ANSWER
86 example.com. IN NS ns.example.com.
87 example.com. 3600 IN RRSIG NS 3 2 3600 20070926134150 20070829134150 2854 example.com. MC0CFQCN+qHdJxoI/2tNKwsb08pra/G7aAIUAWA5sDdJTbrXA1/3OaesGBAO3sI= ;{id = 2854}
88 SECTION ADDITIONAL
89 ns.example.com. IN A 1.2.3.4
90 ns.example.com. 3600 IN RRSIG A 3 3 3600 20070926135752 20070829135752 2854 example.com. MC0CFQCMSWxVehgOQLoYclB9PIAbNP229AIUeH0vNNGJhjnZiqgIOKvs1EhzqAo= ;{id = 2854}
91 ENTRY_END
92
93 ; response to DNSKEY priming query
94 ENTRY_BEGIN
95 MATCH opcode qtype qname
96 ADJUST copy_id
97 REPLY QR NOERROR
98 SECTION QUESTION
99 example.com. IN DNSKEY
100 SECTION ANSWER
101 example.com. 3600 IN DNSKEY 256 3 3 ALXLUsWqUrY3JYER3T4TBJII s70j+sDS/UT2QRp61SE7S3E EXopNXoFE73JLRmvpi/UrOO/Vz4Se 6wXv/CYCKjGw06U4WRgR YXcpEhJROyNapmdIKSx hOzfLVE1gqA0PweZR8d tY3aNQSRn3sPpwJr6Mi /PqQKAMMrZ9ckJpf1+b QMOOvxgzz2U1GS18b3y ZKcgTMEaJzd/GZYzi/B N2DzQ0MsrSwYXfsNLFO Bbs8PJMW4LYIxeeOe6rUgkWOF 7CC9Dh/dduQ1QrsJhmZAEFfd6ByYV+ ;{id = 2854 (zsk), size = 1688b}
102 example.com. 3600 IN RRSIG DNSKEY DSA 2 3600 20070926134150 20070829134150 2854 example.com. MCwCFBQRtlR4BEv9ohi+PGFjp+AHsJuHAhRCvz0shggvnvI88DFnBDCczHUcVA== ;{id = 2854}
103 SECTION AUTHORITY
104 example.com. IN NS ns.example.com.
105 example.com. 3600 IN RRSIG NS 3 2 3600 20070926134150 20070829134150 2854 example.com. MC0CFQCN+qHdJxoI/2tNKwsb08pra/G7aAIUAWA5sDdJTbrXA1/3OaesGBAO3sI= ;{id = 2854}
106 SECTION ADDITIONAL
107 ns.example.com. IN A 1.2.3.4
108 ns.example.com. 3600 IN RRSIG A 3 3 3600 20070926135752 20070829135752 2854 example.com. MC0CFQCMSWxVehgOQLoYclB9PIAbNP229AIUeH0vNNGJhjnZiqgIOKvs1EhzqAo= ;{id = 2854}
109 ENTRY_END
110
111 ; response for DS of sub.example.com.
112 ENTRY_BEGIN
113 MATCH opcode qtype qname
114 ADJUST copy_id
115 REPLY QR NOERROR
116 SECTION QUESTION
117 sub.example.com. IN DS
118 SECTION ANSWER
119 sub.example.com. 3600 IN DS 30899 RSASHA1 1 f7ed618f24d5e5202927e1d27bc2e84a141cb4b3
120 sub.example.com. 3600 IN RRSIG DS 3 3 3600 20070926134150 20070829134150 2854 example.com. MCwCFCW3ix0GD4BSvNLWIbROCJt5DAW9AhRt/kg9kBKJ20UBUdumrBUHqnskdA== ;{id = 2854}
121 SECTION AUTHORITY
122 SECTION ADDITIONAL
123 ENTRY_END
124
125 ; response for delegation to sub.example.com.
126 ENTRY_BEGIN
127 MATCH opcode subdomain
128 ADJUST copy_id copy_query
129 REPLY QR NOERROR
130 SECTION QUESTION
131 sub.example.com. IN A
132 SECTION ANSWER
133 SECTION AUTHORITY
134 sub.example.com. IN NS ns.sub.example.com.
135 sub.example.com. 3600 IN DS 30899 RSASHA1 1 f7ed618f24d5e5202927e1d27bc2e84a141cb4b3
136 sub.example.com. 3600 IN RRSIG DS 3 3 3600 20070926134150 20070829134150 2854 example.com. MCwCFCW3ix0GD4BSvNLWIbROCJt5DAW9AhRt/kg9kBKJ20UBUdumrBUHqnskdA== ;{id = 2854}
137 SECTION ADDITIONAL
138 ns.sub.example.com. IN A 1.2.3.6
139 ENTRY_END
140
141 RANGE_END
142
143 ; ns.sub.example.com.
144 RANGE_BEGIN 0 100
145 ADDRESS 1.2.3.6
146 ENTRY_BEGIN
147 MATCH opcode qtype qname
148 ADJUST copy_id
149 REPLY QR NOERROR
150 SECTION QUESTION
151 sub.example.com. IN NS
152 SECTION ANSWER
153 sub.example.com. IN NS ns.sub.example.com.
154 sub.example.com. 3600 IN RRSIG NS 5 3 3600 20070926134150 20070829134150 30899 sub.example.com. wcpHeBILHfo8C9uxMhcW03gcURZeUffiKdSTb50ZjzTHgMNhRyMfpcvSpXEd9548A9UTmWKeLZChfr5Z/glONw== ;{id = 30899}
155 SECTION ADDITIONAL
156 ns.sub.example.com. IN A 1.2.3.6
157 ns.sub.example.com. 3600 IN RRSIG A 5 4 3600 20070926134150 20070829134150 30899 sub.example.com. UF7shD/gt1FOp2UHgLTNbPzVykklSXFMEtJ1xD+Hholwf/PIzd7zoaIttIYibNa4fUXCqMg22H9P7MRhfmFe6g== ;{id = 30899}
158 ENTRY_END
159
160 ; response to DNSKEY priming query
161 ; sub.example.com. 3600 IN DS 30899 RSASHA1 1 f7ed618f24d5e5202927e1d27bc2e84a141cb4b3
162 ENTRY_BEGIN
163 MATCH opcode qtype qname
164 ADJUST copy_id
165 REPLY QR NOERROR
166 SECTION QUESTION
167 sub.example.com. IN DNSKEY
168 SECTION ANSWER
169 sub.example.com. 3600 IN DNSKEY 256 3 5 AQPQ41chR9DEHt/aIzIFAqanbDlRflJoRs5yz1jFsoRIT7dWf0r+PeDuewdxkszNH6wnU4QL8pfKFRh5PIYVBLK3 ;{id = 30899 (zsk), size = 512b}
170 sub.example.com. 3600 IN RRSIG DNSKEY 5 3 3600 20070926134150 20070829134150 30899 sub.example.com. uNGp99iznjD7oOX02XnQbDnbg75UwBHRvZSKYUorTKvPUnCWMHKdRsQ+mf+Fx3GZ+Fz9BVjoCmQqpnfgXLEYqw== ;{id = 30899}
171 SECTION AUTHORITY
172 sub.example.com. IN NS ns.sub.example.com.
173 sub.example.com. 3600 IN RRSIG NS 5 3 3600 20070926134150 20070829134150 30899 sub.example.com. wcpHeBILHfo8C9uxMhcW03gcURZeUffiKdSTb50ZjzTHgMNhRyMfpcvSpXEd9548A9UTmWKeLZChfr5Z/glONw== ;{id = 30899}
174 SECTION ADDITIONAL
175 ns.sub.example.com. IN A 1.2.3.6
176 ns.sub.example.com. 3600 IN RRSIG A 5 4 3600 20070926134150 20070829134150 30899 sub.example.com. UF7shD/gt1FOp2UHgLTNbPzVykklSXFMEtJ1xD+Hholwf/PIzd7zoaIttIYibNa4fUXCqMg22H9P7MRhfmFe6g== ;{id = 30899}
177 ENTRY_END
178
179 ; response for qtype DS. This is not available here.
180 ENTRY_BEGIN
181 MATCH opcode qtype qname
182 ADJUST copy_id
183 REPLY QR SERVFAIL
184 SECTION QUESTION
185 sub.example.com. IN DS
186 SECTION ANSWER
187 SECTION AUTHORITY
188 SECTION ADDITIONAL
189 ENTRY_END
190
191 ; response to query of interest
192 ENTRY_BEGIN
193 MATCH opcode qtype qname
194 ADJUST copy_id
195 REPLY QR NOERROR
196 SECTION QUESTION
197 www.sub.example.com. IN A
198 SECTION ANSWER
199 www.sub.example.com. IN A 11.11.11.11
200 www.sub.example.com. 3600 IN RRSIG A 5 4 3600 20070926134150 20070829134150 30899 sub.example.com. 0DqqRfRtm7VSEQ4mmBbzrKRqQAay3JAE8DPDGmjtokrrjN9F1G/HxozDV7bjdIh2EChlQea8FPwf/GepJMUVxg== ;{id = 30899}
201 SECTION AUTHORITY
202 SECTION ADDITIONAL
203 ENTRY_END
204 RANGE_END
205
206 STEP 1 QUERY
207 ENTRY_BEGIN
208 REPLY RD DO
209 SECTION QUESTION
210 www.sub.example.com. IN A
211 ENTRY_END
212
213 ; recursion happens here.
214 STEP 10 CHECK_ANSWER
215 ENTRY_BEGIN
216 MATCH all
217 REPLY QR RD RA AD NOERROR
218 SECTION QUESTION
219 www.sub.example.com. IN A
220 SECTION ANSWER
221 www.sub.example.com. 3600 IN A 11.11.11.11
222 www.sub.example.com. 3600 IN RRSIG A 5 4 3600 20070926134150 20070829134150 30899 sub.example.com. 0DqqRfRtm7VSEQ4mmBbzrKRqQAay3JAE8DPDGmjtokrrjN9F1G/HxozDV7bjdIh2EChlQea8FPwf/GepJMUVxg== ;{id = 30899}
223 SECTION AUTHORITY
224 SECTION ADDITIONAL
225 ENTRY_END
226
227 SCENARIO_END
228 ; config options
229 ; The island of trust is at example.com
230 server:
231 trust-anchor: "example.com. 3600 IN DS 2854 3 1 46e4ffc6e9a4793b488954bd3f0cc6af0dfb201b"
232 val-override-date: "20070916134226"
233 target-fetch-policy: "0 0 0 0 0"
234
235 stub-zone:
236 name: "."
237 stub-addr: 193.0.14.129 # K.ROOT-SERVERS.NET.
238 stub-zone:
239 name: "sub.example.com"
240 stub-addr: 1.2.3.6
241 CONFIG_END
242
243 SCENARIO_BEGIN Test stub with DS query
244 ; The stub zone is linked validly with a DS to the public internet zone.
245 ; unbound just has to be able to ask the DS from the right server (not
246 ; from the stub).
247
248 ; K.ROOT-SERVERS.NET.
249 RANGE_BEGIN 0 100
250 ADDRESS 193.0.14.129
251 ENTRY_BEGIN
252 MATCH opcode qtype qname
253 ADJUST copy_id
254 REPLY QR NOERROR
255 SECTION QUESTION
256 . IN NS
257 SECTION ANSWER
258 . IN NS K.ROOT-SERVERS.NET.
259 SECTION ADDITIONAL
260 K.ROOT-SERVERS.NET. IN A 193.0.14.129
261 ENTRY_END
262
263 ENTRY_BEGIN
264 MATCH opcode subdomain
265 ADJUST copy_id copy_query
266 REPLY QR NOERROR
267 SECTION QUESTION
268 com. IN NS
269 SECTION AUTHORITY
270 com. IN NS a.gtld-servers.net.
271 SECTION ADDITIONAL
272 a.gtld-servers.net. IN A 192.5.6.30
273 ENTRY_END
274 RANGE_END
275
276 ; a.gtld-servers.net.
277 RANGE_BEGIN 0 100
278 ADDRESS 192.5.6.30
279 ENTRY_BEGIN
280 MATCH opcode qtype qname
281 ADJUST copy_id
282 REPLY QR NOERROR
283 SECTION QUESTION
284 com. IN NS
285 SECTION ANSWER
286 com. IN NS a.gtld-servers.net.
287 SECTION ADDITIONAL
288 a.gtld-servers.net. IN A 192.5.6.30
289 ENTRY_END
290
291 ENTRY_BEGIN
292 MATCH opcode subdomain
293 ADJUST copy_id copy_query
294 REPLY QR NOERROR
295 SECTION QUESTION
296 example.com. IN A
297 SECTION AUTHORITY
298 example.com. IN NS ns.example.com.
299 SECTION ADDITIONAL
300 ns.example.com. IN A 1.2.3.4
301 ENTRY_END
302 RANGE_END
303
304 ; ns.example.com.
305 RANGE_BEGIN 0 100
306 ADDRESS 1.2.3.4
307 ENTRY_BEGIN
308 MATCH opcode qtype qname
309 ADJUST copy_id
310 REPLY QR NOERROR
311 SECTION QUESTION
312 example.com. IN NS
313 SECTION ANSWER
314 example.com. IN NS ns.example.com.
315 example.com. 3600 IN RRSIG NS 3 2 3600 20070926134150 20070829134150 2854 example.com. MC0CFQCN+qHdJxoI/2tNKwsb08pra/G7aAIUAWA5sDdJTbrXA1/3OaesGBAO3sI= ;{id = 2854}
316 SECTION ADDITIONAL
317 ns.example.com. IN A 1.2.3.4
318 ns.example.com. 3600 IN RRSIG A 3 3 3600 20070926135752 20070829135752 2854 example.com. MC0CFQCMSWxVehgOQLoYclB9PIAbNP229AIUeH0vNNGJhjnZiqgIOKvs1EhzqAo= ;{id = 2854}
319 ENTRY_END
320
321 ; response to DNSKEY priming query
322 ENTRY_BEGIN
323 MATCH opcode qtype qname
324 ADJUST copy_id
325 REPLY QR NOERROR
326 SECTION QUESTION
327 example.com. IN DNSKEY
328 SECTION ANSWER
329 example.com. 3600 IN DNSKEY 256 3 3 ALXLUsWqUrY3JYER3T4TBJII s70j+sDS/UT2QRp61SE7S3E EXopNXoFE73JLRmvpi/UrOO/Vz4Se 6wXv/CYCKjGw06U4WRgR YXcpEhJROyNapmdIKSx hOzfLVE1gqA0PweZR8d tY3aNQSRn3sPpwJr6Mi /PqQKAMMrZ9ckJpf1+b QMOOvxgzz2U1GS18b3y ZKcgTMEaJzd/GZYzi/B N2DzQ0MsrSwYXfsNLFO Bbs8PJMW4LYIxeeOe6rUgkWOF 7CC9Dh/dduQ1QrsJhmZAEFfd6ByYV+ ;{id = 2854 (zsk), size = 1688b}
330 example.com. 3600 IN RRSIG DNSKEY DSA 2 3600 20070926134150 20070829134150 2854 example.com. MCwCFBQRtlR4BEv9ohi+PGFjp+AHsJuHAhRCvz0shggvnvI88DFnBDCczHUcVA== ;{id = 2854}
331 SECTION AUTHORITY
332 example.com. IN NS ns.example.com.
333 example.com. 3600 IN RRSIG NS 3 2 3600 20070926134150 20070829134150 2854 example.com. MC0CFQCN+qHdJxoI/2tNKwsb08pra/G7aAIUAWA5sDdJTbrXA1/3OaesGBAO3sI= ;{id = 2854}
334 SECTION ADDITIONAL
335 ns.example.com. IN A 1.2.3.4
336 ns.example.com. 3600 IN RRSIG A 3 3 3600 20070926135752 20070829135752 2854 example.com. MC0CFQCMSWxVehgOQLoYclB9PIAbNP229AIUeH0vNNGJhjnZiqgIOKvs1EhzqAo= ;{id = 2854}
337 ENTRY_END
338
339 ; response for DS of sub.example.com.
340 ENTRY_BEGIN
341 MATCH opcode qtype qname
342 ADJUST copy_id
343 REPLY QR NOERROR
344 SECTION QUESTION
345 sub.example.com. IN DS
346 SECTION ANSWER
347 sub.example.com. 3600 IN DS 30899 RSASHA1 1 f7ed618f24d5e5202927e1d27bc2e84a141cb4b3
348 sub.example.com. 3600 IN RRSIG DS 3 3 3600 20070926134150 20070829134150 2854 example.com. MCwCFCW3ix0GD4BSvNLWIbROCJt5DAW9AhRt/kg9kBKJ20UBUdumrBUHqnskdA== ;{id = 2854}
349 SECTION AUTHORITY
350 SECTION ADDITIONAL
351 ENTRY_END
352
353 ; response for delegation to sub.example.com.
354 ENTRY_BEGIN
355 MATCH opcode subdomain
356 ADJUST copy_id copy_query
357 REPLY QR NOERROR
358 SECTION QUESTION
359 sub.example.com. IN A
360 SECTION ANSWER
361 SECTION AUTHORITY
362 sub.example.com. IN NS ns.sub.example.com.
363 sub.example.com. 3600 IN DS 30899 RSASHA1 1 f7ed618f24d5e5202927e1d27bc2e84a141cb4b3
364 sub.example.com. 3600 IN RRSIG DS 3 3 3600 20070926134150 20070829134150 2854 example.com. MCwCFCW3ix0GD4BSvNLWIbROCJt5DAW9AhRt/kg9kBKJ20UBUdumrBUHqnskdA== ;{id = 2854}
365 SECTION ADDITIONAL
366 ns.sub.example.com. IN A 1.2.3.6
367 ENTRY_END
368
369 RANGE_END
370
371 ; ns.sub.example.com.
372 RANGE_BEGIN 0 100
373 ADDRESS 1.2.3.6
374 ENTRY_BEGIN
375 MATCH opcode qtype qname
376 ADJUST copy_id
377 REPLY QR NOERROR
378 SECTION QUESTION
379 sub.example.com. IN NS
380 SECTION ANSWER
381 sub.example.com. IN NS ns.sub.example.com.
382 sub.example.com. 3600 IN RRSIG NS 5 3 3600 20070926134150 20070829134150 30899 sub.example.com. wcpHeBILHfo8C9uxMhcW03gcURZeUffiKdSTb50ZjzTHgMNhRyMfpcvSpXEd9548A9UTmWKeLZChfr5Z/glONw== ;{id = 30899}
383 SECTION ADDITIONAL
384 ns.sub.example.com. IN A 1.2.3.6
385 ns.sub.example.com. 3600 IN RRSIG A 5 4 3600 20070926134150 20070829134150 30899 sub.example.com. UF7shD/gt1FOp2UHgLTNbPzVykklSXFMEtJ1xD+Hholwf/PIzd7zoaIttIYibNa4fUXCqMg22H9P7MRhfmFe6g== ;{id = 30899}
386 ENTRY_END
387
388 ; response to DNSKEY priming query
389 ; sub.example.com. 3600 IN DS 30899 RSASHA1 1 f7ed618f24d5e5202927e1d27bc2e84a141cb4b3
390 ENTRY_BEGIN
391 MATCH opcode qtype qname
392 ADJUST copy_id
393 REPLY QR NOERROR
394 SECTION QUESTION
395 sub.example.com. IN DNSKEY
396 SECTION ANSWER
397 sub.example.com. 3600 IN DNSKEY 256 3 5 AQPQ41chR9DEHt/aIzIFAqanbDlRflJoRs5yz1jFsoRIT7dWf0r+PeDuewdxkszNH6wnU4QL8pfKFRh5PIYVBLK3 ;{id = 30899 (zsk), size = 512b}
398 sub.example.com. 3600 IN RRSIG DNSKEY 5 3 3600 20070926134150 20070829134150 30899 sub.example.com. uNGp99iznjD7oOX02XnQbDnbg75UwBHRvZSKYUorTKvPUnCWMHKdRsQ+mf+Fx3GZ+Fz9BVjoCmQqpnfgXLEYqw== ;{id = 30899}
399 SECTION AUTHORITY
400 sub.example.com. IN NS ns.sub.example.com.
401 sub.example.com. 3600 IN RRSIG NS 5 3 3600 20070926134150 20070829134150 30899 sub.example.com. wcpHeBILHfo8C9uxMhcW03gcURZeUffiKdSTb50ZjzTHgMNhRyMfpcvSpXEd9548A9UTmWKeLZChfr5Z/glONw== ;{id = 30899}
402 SECTION ADDITIONAL
403 ns.sub.example.com. IN A 1.2.3.6
404 ns.sub.example.com. 3600 IN RRSIG A 5 4 3600 20070926134150 20070829134150 30899 sub.example.com. UF7shD/gt1FOp2UHgLTNbPzVykklSXFMEtJ1xD+Hholwf/PIzd7zoaIttIYibNa4fUXCqMg22H9P7MRhfmFe6g== ;{id = 30899}
405 ENTRY_END
406
407 ; response for qtype DS. This is not available here.
408 ENTRY_BEGIN
409 MATCH opcode qtype qname
410 ADJUST copy_id
411 REPLY QR SERVFAIL
412 SECTION QUESTION
413 sub.example.com. IN DS
414 SECTION ANSWER
415 SECTION AUTHORITY
416 SECTION ADDITIONAL
417 ENTRY_END
418
419 ; response to query of interest
420 ENTRY_BEGIN
421 MATCH opcode qtype qname
422 ADJUST copy_id
423 REPLY QR NOERROR
424 SECTION QUESTION
425 www.sub.example.com. IN A
426 SECTION ANSWER
427 www.sub.example.com. IN A 11.11.11.11
428 www.sub.example.com. 3600 IN RRSIG A 5 4 3600 20070926134150 20070829134150 30899 sub.example.com. 0DqqRfRtm7VSEQ4mmBbzrKRqQAay3JAE8DPDGmjtokrrjN9F1G/HxozDV7bjdIh2EChlQea8FPwf/GepJMUVxg== ;{id = 30899}
429 SECTION AUTHORITY
430 SECTION ADDITIONAL
431 ENTRY_END
432 RANGE_END
433
434 STEP 1 QUERY
435 ENTRY_BEGIN
436 REPLY RD DO
437 SECTION QUESTION
438 www.sub.example.com. IN A
439 ENTRY_END
440
441 ; recursion happens here.
442 STEP 10 CHECK_ANSWER
443 ENTRY_BEGIN
444 MATCH all
445 REPLY QR RD RA AD NOERROR
446 SECTION QUESTION
447 www.sub.example.com. IN A
448 SECTION ANSWER
449 www.sub.example.com. 3600 IN A 11.11.11.11
450 www.sub.example.com. 3600 IN RRSIG A 5 4 3600 20070926134150 20070829134150 30899 sub.example.com. 0DqqRfRtm7VSEQ4mmBbzrKRqQAay3JAE8DPDGmjtokrrjN9F1G/HxozDV7bjdIh2EChlQea8FPwf/GepJMUVxg== ;{id = 30899}
451 SECTION AUTHORITY
452 SECTION ADDITIONAL
453 ENTRY_END
454
455 SCENARIO_END
10331033 * IPv6: (h.){32}.ip6.arpa. */
10341034
10351035 if(addr_is_ip6(&addr, addrlen)) {
1036 struct in6_addr* ad = &((struct sockaddr_in6*)&addr)->sin6_addr;
1036 void* ad = &((struct sockaddr_in6*)&addr)->sin6_addr;
10371037 const char* hex = "0123456789abcdef";
10381038 char *p = buf;
10391039 int i;
0 /* A Bison parser, made by GNU Bison 2.3. */
0
1 /* A Bison parser, made by GNU Bison 2.4.1. */
12
23 /* Skeleton implementation for Bison's Yacc-like parsers in C
3
4 Copyright (C) 1984, 1989, 1990, 2000, 2001, 2002, 2003, 2004, 2005, 2006
4
5 Copyright (C) 1984, 1989, 1990, 2000, 2001, 2002, 2003, 2004, 2005, 2006
56 Free Software Foundation, Inc.
6
7 This program is free software; you can redistribute it and/or modify
7
8 This program is free software: you can redistribute it and/or modify
89 it under the terms of the GNU General Public License as published by
9 the Free Software Foundation; either version 2, or (at your option)
10 any later version.
11
10 the Free Software Foundation, either version 3 of the License, or
11 (at your option) any later version.
12
1213 This program is distributed in the hope that it will be useful,
1314 but WITHOUT ANY WARRANTY; without even the implied warranty of
1415 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
1516 GNU General Public License for more details.
16
17
1718 You should have received a copy of the GNU General Public License
18 along with this program; if not, write to the Free Software
19 Foundation, Inc., 51 Franklin Street, Fifth Floor,
20 Boston, MA 02110-1301, USA. */
19 along with this program. If not, see <http://www.gnu.org/licenses/>. */
2120
2221 /* As a special exception, you may create a larger work that contains
2322 part or all of the Bison parser skeleton and distribute that work
2827 special exception, which will cause the skeleton and the resulting
2928 Bison output files to be licensed under the GNU General Public
3029 License without this special exception.
31
30
3231 This special exception was added by the Free Software Foundation in
3332 version 2.2 of Bison. */
3433
4645 #define YYBISON 1
4746
4847 /* Bison version. */
49 #define YYBISON_VERSION "2.3"
48 #define YYBISON_VERSION "2.4.1"
5049
5150 /* Skeleton name. */
5251 #define YYSKELETON_NAME "yacc.c"
5453 /* Pure parsers. */
5554 #define YYPURE 0
5655
56 /* Push parsers. */
57 #define YYPUSH 0
58
59 /* Pull parsers. */
60 #define YYPULL 1
61
5762 /* Using locations. */
5863 #define YYLSP_NEEDED 0
5964
65
66
67 /* Copy the first part of user declarations. */
68
69 /* Line 189 of yacc.c */
70 #line 38 "util/configparser.y"
71
72 #include "config.h"
73
74 #include <stdarg.h>
75 #include <stdio.h>
76 #include <string.h>
77 #include <stdlib.h>
78 #include <assert.h>
79
80 #include "util/configyyrename.h"
81 #include "util/config_file.h"
82 #include "util/net_help.h"
83
84 int ub_c_lex(void);
85 void ub_c_error(const char *message);
86
87 /* these need to be global, otherwise they cannot be used inside yacc */
88 extern struct config_parser_state* cfg_parser;
89
90 #if 0
91 #define OUTYY(s) printf s /* used ONLY when debugging */
92 #else
93 #define OUTYY(s)
94 #endif
95
96
97
98 /* Line 189 of yacc.c */
99 #line 101 "util/configparser.c"
100
101 /* Enabling traces. */
102 #ifndef YYDEBUG
103 # define YYDEBUG 0
104 #endif
105
106 /* Enabling verbose error messages. */
107 #ifdef YYERROR_VERBOSE
108 # undef YYERROR_VERBOSE
109 # define YYERROR_VERBOSE 1
110 #else
111 # define YYERROR_VERBOSE 0
112 #endif
113
114 /* Enabling the token table. */
115 #ifndef YYTOKEN_TABLE
116 # define YYTOKEN_TABLE 0
117 #endif
60118
61119
62120 /* Tokens. */
282340
283341
284342
285 /* Copy the first part of user declarations. */
286 #line 38 "util/configparser.y"
287
288 #include "config.h"
289
290 #include <stdarg.h>
291 #include <stdio.h>
292 #include <string.h>
293 #include <stdlib.h>
294 #include <assert.h>
295
296 #include "util/configyyrename.h"
297 #include "util/config_file.h"
298 #include "util/net_help.h"
299
300 int ub_c_lex(void);
301 void ub_c_error(const char *message);
302
303 /* these need to be global, otherwise they cannot be used inside yacc */
304 extern struct config_parser_state* cfg_parser;
305
306 #if 0
307 #define OUTYY(s) printf s /* used ONLY when debugging */
308 #else
309 #define OUTYY(s)
310 #endif
311
312
313
314 /* Enabling traces. */
315 #ifndef YYDEBUG
316 # define YYDEBUG 0
317 #endif
318
319 /* Enabling verbose error messages. */
320 #ifdef YYERROR_VERBOSE
321 # undef YYERROR_VERBOSE
322 # define YYERROR_VERBOSE 1
323 #else
324 # define YYERROR_VERBOSE 0
325 #endif
326
327 /* Enabling the token table. */
328 #ifndef YYTOKEN_TABLE
329 # define YYTOKEN_TABLE 0
330 #endif
331
332343 #if ! defined YYSTYPE && ! defined YYSTYPE_IS_DECLARED
333344 typedef union YYSTYPE
345 {
346
347 /* Line 214 of yacc.c */
334348 #line 64 "util/configparser.y"
335 {
349
336350 char* str;
337 }
338 /* Line 187 of yacc.c. */
339 #line 341 "util/configparser.c"
340 YYSTYPE;
351
352
353
354 /* Line 214 of yacc.c */
355 #line 357 "util/configparser.c"
356 } YYSTYPE;
357 # define YYSTYPE_IS_TRIVIAL 1
341358 # define yystype YYSTYPE /* obsolescent; will be withdrawn */
342359 # define YYSTYPE_IS_DECLARED 1
343 # define YYSTYPE_IS_TRIVIAL 1
344 #endif
345
360 #endif
346361
347362
348363 /* Copy the second part of user declarations. */
349364
350365
351 /* Line 216 of yacc.c. */
352 #line 354 "util/configparser.c"
366 /* Line 264 of yacc.c */
367 #line 369 "util/configparser.c"
353368
354369 #ifdef short
355370 # undef short
424439 #if (defined __STDC__ || defined __C99__FUNC__ \
425440 || defined __cplusplus || defined _MSC_VER)
426441 static int
427 YYID (int i)
442 YYID (int yyi)
428443 #else
429444 static int
430 YYID (i)
431 int i;
445 YYID (yyi)
446 int yyi;
432447 #endif
433448 {
434 return i;
449 return yyi;
435450 }
436451 #endif
437452
512527 /* A type that is properly aligned for any stack member. */
513528 union yyalloc
514529 {
515 yytype_int16 yyss;
516 YYSTYPE yyvs;
517 };
530 yytype_int16 yyss_alloc;
531 YYSTYPE yyvs_alloc;
532 };
518533
519534 /* The size of the maximum gap between one aligned stack and the next. */
520535 # define YYSTACK_GAP_MAXIMUM (sizeof (union yyalloc) - 1)
548563 elements in the stack, and YYPTR gives the new location of the
549564 stack. Advance YYPTR to a properly aligned location for the next
550565 stack. */
551 # define YYSTACK_RELOCATE(Stack) \
566 # define YYSTACK_RELOCATE(Stack_alloc, Stack) \
552567 do \
553568 { \
554569 YYSIZE_T yynewbytes; \
555 YYCOPY (&yyptr->Stack, Stack, yysize); \
556 Stack = &yyptr->Stack; \
570 YYCOPY (&yyptr->Stack_alloc, Stack, yysize); \
571 Stack = &yyptr->Stack_alloc; \
557572 yynewbytes = yystacksize * sizeof (*Stack) + YYSTACK_GAP_MAXIMUM; \
558573 yyptr += yynewbytes / sizeof (*yyptr); \
559574 } \
12731288 #if (defined __STDC__ || defined __C99__FUNC__ \
12741289 || defined __cplusplus || defined _MSC_VER)
12751290 static void
1276 yy_stack_print (yytype_int16 *bottom, yytype_int16 *top)
1291 yy_stack_print (yytype_int16 *yybottom, yytype_int16 *yytop)
12771292 #else
12781293 static void
1279 yy_stack_print (bottom, top)
1280 yytype_int16 *bottom;
1281 yytype_int16 *top;
1294 yy_stack_print (yybottom, yytop)
1295 yytype_int16 *yybottom;
1296 yytype_int16 *yytop;
12821297 #endif
12831298 {
12841299 YYFPRINTF (stderr, "Stack now");
1285 for (; bottom <= top; ++bottom)
1286 YYFPRINTF (stderr, " %d", *bottom);
1300 for (; yybottom <= yytop; yybottom++)
1301 {
1302 int yybot = *yybottom;
1303 YYFPRINTF (stderr, " %d", yybot);
1304 }
12871305 YYFPRINTF (stderr, "\n");
12881306 }
12891307
13171335 /* The symbols being reduced. */
13181336 for (yyi = 0; yyi < yynrhs; yyi++)
13191337 {
1320 fprintf (stderr, " $%d = ", yyi + 1);
1338 YYFPRINTF (stderr, " $%d = ", yyi + 1);
13211339 yy_symbol_print (stderr, yyrhs[yyprhs[yyrule] + yyi],
13221340 &(yyvsp[(yyi + 1) - (yynrhs)])
13231341 );
1324 fprintf (stderr, "\n");
1342 YYFPRINTF (stderr, "\n");
13251343 }
13261344 }
13271345
16011619 break;
16021620 }
16031621 }
1604
16051622
16061623 /* Prevent warnings from -Wmissing-prototypes. */
1607
16081624 #ifdef YYPARSE_PARAM
16091625 #if defined __STDC__ || defined __cplusplus
16101626 int yyparse (void *YYPARSE_PARAM);
16201636 #endif /* ! YYPARSE_PARAM */
16211637
16221638
1623
1624 /* The look-ahead symbol. */
1639 /* The lookahead symbol. */
16251640 int yychar;
16261641
1627 /* The semantic value of the look-ahead symbol. */
1642 /* The semantic value of the lookahead symbol. */
16281643 YYSTYPE yylval;
16291644
16301645 /* Number of syntax errors so far. */
16321647
16331648
16341649
1635 /*----------.
1636 | yyparse. |
1637 `----------*/
1650 /*-------------------------.
1651 | yyparse or yypush_parse. |
1652 `-------------------------*/
16381653
16391654 #ifdef YYPARSE_PARAM
16401655 #if (defined __STDC__ || defined __C99__FUNC__ \
16581673 #endif
16591674 #endif
16601675 {
1661
1662 int yystate;
1676
1677
1678 int yystate;
1679 /* Number of tokens to shift before error messages enabled. */
1680 int yyerrstatus;
1681
1682 /* The stacks and their tools:
1683 `yyss': related to states.
1684 `yyvs': related to semantic values.
1685
1686 Refer to the stacks thru separate pointers, to allow yyoverflow
1687 to reallocate them elsewhere. */
1688
1689 /* The state stack. */
1690 yytype_int16 yyssa[YYINITDEPTH];
1691 yytype_int16 *yyss;
1692 yytype_int16 *yyssp;
1693
1694 /* The semantic value stack. */
1695 YYSTYPE yyvsa[YYINITDEPTH];
1696 YYSTYPE *yyvs;
1697 YYSTYPE *yyvsp;
1698
1699 YYSIZE_T yystacksize;
1700
16631701 int yyn;
16641702 int yyresult;
1665 /* Number of tokens to shift before error messages enabled. */
1666 int yyerrstatus;
1667 /* Look-ahead token as an internal (translated) token number. */
1668 int yytoken = 0;
1703 /* Lookahead token as an internal (translated) token number. */
1704 int yytoken;
1705 /* The variables used to return semantic value and location from the
1706 action routines. */
1707 YYSTYPE yyval;
1708
16691709 #if YYERROR_VERBOSE
16701710 /* Buffer for error messages, and its allocated size. */
16711711 char yymsgbuf[128];
16731713 YYSIZE_T yymsg_alloc = sizeof yymsgbuf;
16741714 #endif
16751715
1676 /* Three stacks and their tools:
1677 `yyss': related to states,
1678 `yyvs': related to semantic values,
1679 `yyls': related to locations.
1680
1681 Refer to the stacks thru separate pointers, to allow yyoverflow
1682 to reallocate them elsewhere. */
1683
1684 /* The state stack. */
1685 yytype_int16 yyssa[YYINITDEPTH];
1686 yytype_int16 *yyss = yyssa;
1687 yytype_int16 *yyssp;
1688
1689 /* The semantic value stack. */
1690 YYSTYPE yyvsa[YYINITDEPTH];
1691 YYSTYPE *yyvs = yyvsa;
1692 YYSTYPE *yyvsp;
1693
1694
1695
16961716 #define YYPOPSTACK(N) (yyvsp -= (N), yyssp -= (N))
1697
1698 YYSIZE_T yystacksize = YYINITDEPTH;
1699
1700 /* The variables used to return semantic value and location from the
1701 action routines. */
1702 YYSTYPE yyval;
1703
17041717
17051718 /* The number of symbols on the RHS of the reduced rule.
17061719 Keep to zero when no symbol should be popped. */
17071720 int yylen = 0;
17081721
1722 yytoken = 0;
1723 yyss = yyssa;
1724 yyvs = yyvsa;
1725 yystacksize = YYINITDEPTH;
1726
17091727 YYDPRINTF ((stderr, "Starting parse\n"));
17101728
17111729 yystate = 0;
17121730 yyerrstatus = 0;
17131731 yynerrs = 0;
1714 yychar = YYEMPTY; /* Cause a token to be read. */
1732 yychar = YYEMPTY; /* Cause a token to be read. */
17151733
17161734 /* Initialize stack pointers.
17171735 Waste one element of value and location stack
17181736 so that they stay on the same level as the state stack.
17191737 The wasted elements are never initialized. */
1720
17211738 yyssp = yyss;
17221739 yyvsp = yyvs;
17231740
17471764 YYSTYPE *yyvs1 = yyvs;
17481765 yytype_int16 *yyss1 = yyss;
17491766
1750
17511767 /* Each stack pointer address is followed by the size of the
17521768 data in use in that stack, in bytes. This used to be a
17531769 conditional around just the two extra args, but that might
17551771 yyoverflow (YY_("memory exhausted"),
17561772 &yyss1, yysize * sizeof (*yyssp),
17571773 &yyvs1, yysize * sizeof (*yyvsp),
1758
17591774 &yystacksize);
17601775
17611776 yyss = yyss1;
17781793 (union yyalloc *) YYSTACK_ALLOC (YYSTACK_BYTES (yystacksize));
17791794 if (! yyptr)
17801795 goto yyexhaustedlab;
1781 YYSTACK_RELOCATE (yyss);
1782 YYSTACK_RELOCATE (yyvs);
1783
1796 YYSTACK_RELOCATE (yyss_alloc, yyss);
1797 YYSTACK_RELOCATE (yyvs_alloc, yyvs);
17841798 # undef YYSTACK_RELOCATE
17851799 if (yyss1 != yyssa)
17861800 YYSTACK_FREE (yyss1);
17911805 yyssp = yyss + yysize - 1;
17921806 yyvsp = yyvs + yysize - 1;
17931807
1794
17951808 YYDPRINTF ((stderr, "Stack size increased to %lu\n",
17961809 (unsigned long int) yystacksize));
17971810
18001813 }
18011814
18021815 YYDPRINTF ((stderr, "Entering state %d\n", yystate));
1816
1817 if (yystate == YYFINAL)
1818 YYACCEPT;
18031819
18041820 goto yybackup;
18051821
18091825 yybackup:
18101826
18111827 /* Do appropriate processing given the current state. Read a
1812 look-ahead token if we need one and don't already have one. */
1813
1814 /* First try to decide what to do without reference to look-ahead token. */
1828 lookahead token if we need one and don't already have one. */
1829
1830 /* First try to decide what to do without reference to lookahead token. */
18151831 yyn = yypact[yystate];
18161832 if (yyn == YYPACT_NINF)
18171833 goto yydefault;
18181834
1819 /* Not known => get a look-ahead token if don't already have one. */
1820
1821 /* YYCHAR is either YYEMPTY or YYEOF or a valid look-ahead symbol. */
1835 /* Not known => get a lookahead token if don't already have one. */
1836
1837 /* YYCHAR is either YYEMPTY or YYEOF or a valid lookahead symbol. */
18221838 if (yychar == YYEMPTY)
18231839 {
18241840 YYDPRINTF ((stderr, "Reading a token: "));
18501866 goto yyreduce;
18511867 }
18521868
1853 if (yyn == YYFINAL)
1854 YYACCEPT;
1855
18561869 /* Count tokens shifted since error; after three, turn off error
18571870 status. */
18581871 if (yyerrstatus)
18591872 yyerrstatus--;
18601873
1861 /* Shift the look-ahead token. */
1874 /* Shift the lookahead token. */
18621875 YY_SYMBOL_PRINT ("Shifting", yytoken, &yylval, &yylloc);
18631876
1864 /* Discard the shifted token unless it is eof. */
1865 if (yychar != YYEOF)
1866 yychar = YYEMPTY;
1877 /* Discard the shifted token. */
1878 yychar = YYEMPTY;
18671879
18681880 yystate = yyn;
18691881 *++yyvsp = yylval;
19031915 switch (yyn)
19041916 {
19051917 case 9:
1918
1919 /* Line 1455 of yacc.c */
19061920 #line 112 "util/configparser.y"
19071921 {
19081922 OUTYY(("\nP(server:)\n"));
19101924 break;
19111925
19121926 case 90:
1927
1928 /* Line 1455 of yacc.c */
19131929 #line 154 "util/configparser.y"
19141930 {
19151931 struct config_stub* s;
19241940 break;
19251941
19261942 case 97:
1943
1944 /* Line 1455 of yacc.c */
19271945 #line 170 "util/configparser.y"
19281946 {
19291947 struct config_stub* s;
19381956 break;
19391957
19401958 case 103:
1959
1960 /* Line 1455 of yacc.c */
19411961 #line 186 "util/configparser.y"
19421962 {
19431963 OUTYY(("P(server_num_threads:%s)\n", (yyvsp[(2) - (2)].str)));
19491969 break;
19501970
19511971 case 104:
1972
1973 /* Line 1455 of yacc.c */
19521974 #line 195 "util/configparser.y"
19531975 {
19541976 OUTYY(("P(server_verbosity:%s)\n", (yyvsp[(2) - (2)].str)));
19601982 break;
19611983
19621984 case 105:
1985
1986 /* Line 1455 of yacc.c */
19631987 #line 204 "util/configparser.y"
19641988 {
19651989 OUTYY(("P(server_statistics_interval:%s)\n", (yyvsp[(2) - (2)].str)));
19731997 break;
19741998
19751999 case 106:
2000
2001 /* Line 1455 of yacc.c */
19762002 #line 215 "util/configparser.y"
19772003 {
19782004 OUTYY(("P(server_statistics_cumulative:%s)\n", (yyvsp[(2) - (2)].str)));
19842010 break;
19852011
19862012 case 107:
2013
2014 /* Line 1455 of yacc.c */
19872015 #line 224 "util/configparser.y"
19882016 {
19892017 OUTYY(("P(server_extended_statistics:%s)\n", (yyvsp[(2) - (2)].str)));
19952023 break;
19962024
19972025 case 108:
2026
2027 /* Line 1455 of yacc.c */
19982028 #line 233 "util/configparser.y"
19992029 {
20002030 OUTYY(("P(server_port:%s)\n", (yyvsp[(2) - (2)].str)));
20062036 break;
20072037
20082038 case 109:
2039
2040 /* Line 1455 of yacc.c */
20092041 #line 242 "util/configparser.y"
20102042 {
20112043 OUTYY(("P(server_interface:%s)\n", (yyvsp[(2) - (2)].str)));
20212053 break;
20222054
20232055 case 110:
2056
2057 /* Line 1455 of yacc.c */
20242058 #line 255 "util/configparser.y"
20252059 {
20262060 OUTYY(("P(server_outgoing_interface:%s)\n", (yyvsp[(2) - (2)].str)));
20382072 break;
20392073
20402074 case 111:
2075
2076 /* Line 1455 of yacc.c */
20412077 #line 270 "util/configparser.y"
20422078 {
20432079 OUTYY(("P(server_outgoing_range:%s)\n", (yyvsp[(2) - (2)].str)));
20492085 break;
20502086
20512087 case 112:
2088
2089 /* Line 1455 of yacc.c */
20522090 #line 279 "util/configparser.y"
20532091 {
20542092 OUTYY(("P(server_outgoing_port_permit:%s)\n", (yyvsp[(2) - (2)].str)));
20602098 break;
20612099
20622100 case 113:
2101
2102 /* Line 1455 of yacc.c */
20632103 #line 288 "util/configparser.y"
20642104 {
20652105 OUTYY(("P(server_outgoing_port_avoid:%s)\n", (yyvsp[(2) - (2)].str)));
20712111 break;
20722112
20732113 case 114:
2114
2115 /* Line 1455 of yacc.c */
20742116 #line 297 "util/configparser.y"
20752117 {
20762118 OUTYY(("P(server_outgoing_num_tcp:%s)\n", (yyvsp[(2) - (2)].str)));
20822124 break;
20832125
20842126 case 115:
2127
2128 /* Line 1455 of yacc.c */
20852129 #line 306 "util/configparser.y"
20862130 {
20872131 OUTYY(("P(server_incoming_num_tcp:%s)\n", (yyvsp[(2) - (2)].str)));
20932137 break;
20942138
20952139 case 116:
2140
2141 /* Line 1455 of yacc.c */
20962142 #line 315 "util/configparser.y"
20972143 {
20982144 OUTYY(("P(server_interface_automatic:%s)\n", (yyvsp[(2) - (2)].str)));
21042150 break;
21052151
21062152 case 117:
2153
2154 /* Line 1455 of yacc.c */
21072155 #line 324 "util/configparser.y"
21082156 {
21092157 OUTYY(("P(server_do_ip4:%s)\n", (yyvsp[(2) - (2)].str)));
21152163 break;
21162164
21172165 case 118:
2166
2167 /* Line 1455 of yacc.c */
21182168 #line 333 "util/configparser.y"
21192169 {
21202170 OUTYY(("P(server_do_ip6:%s)\n", (yyvsp[(2) - (2)].str)));
21262176 break;
21272177
21282178 case 119:
2179
2180 /* Line 1455 of yacc.c */
21292181 #line 342 "util/configparser.y"
21302182 {
21312183 OUTYY(("P(server_do_udp:%s)\n", (yyvsp[(2) - (2)].str)));
21372189 break;
21382190
21392191 case 120:
2192
2193 /* Line 1455 of yacc.c */
21402194 #line 351 "util/configparser.y"
21412195 {
21422196 OUTYY(("P(server_do_tcp:%s)\n", (yyvsp[(2) - (2)].str)));
21482202 break;
21492203
21502204 case 121:
2205
2206 /* Line 1455 of yacc.c */
21512207 #line 360 "util/configparser.y"
21522208 {
21532209 OUTYY(("P(server_do_daemonize:%s)\n", (yyvsp[(2) - (2)].str)));
21592215 break;
21602216
21612217 case 122:
2218
2219 /* Line 1455 of yacc.c */
21622220 #line 369 "util/configparser.y"
21632221 {
21642222 OUTYY(("P(server_use_syslog:%s)\n", (yyvsp[(2) - (2)].str)));
21752233 break;
21762234
21772235 case 123:
2236
2237 /* Line 1455 of yacc.c */
21782238 #line 383 "util/configparser.y"
21792239 {
21802240 OUTYY(("P(server_log_time_ascii:%s)\n", (yyvsp[(2) - (2)].str)));
21862246 break;
21872247
21882248 case 124:
2249
2250 /* Line 1455 of yacc.c */
21892251 #line 392 "util/configparser.y"
21902252 {
21912253 OUTYY(("P(server_chroot:%s)\n", (yyvsp[(2) - (2)].str)));
21952257 break;
21962258
21972259 case 125:
2260
2261 /* Line 1455 of yacc.c */
21982262 #line 399 "util/configparser.y"
21992263 {
22002264 OUTYY(("P(server_username:%s)\n", (yyvsp[(2) - (2)].str)));
22042268 break;
22052269
22062270 case 126:
2271
2272 /* Line 1455 of yacc.c */
22072273 #line 406 "util/configparser.y"
22082274 {
22092275 OUTYY(("P(server_directory:%s)\n", (yyvsp[(2) - (2)].str)));
22132279 break;
22142280
22152281 case 127:
2282
2283 /* Line 1455 of yacc.c */
22162284 #line 413 "util/configparser.y"
22172285 {
22182286 OUTYY(("P(server_logfile:%s)\n", (yyvsp[(2) - (2)].str)));
22232291 break;
22242292
22252293 case 128:
2294
2295 /* Line 1455 of yacc.c */
22262296 #line 421 "util/configparser.y"
22272297 {
22282298 OUTYY(("P(server_pidfile:%s)\n", (yyvsp[(2) - (2)].str)));
22322302 break;
22332303
22342304 case 129:
2305
2306 /* Line 1455 of yacc.c */
22352307 #line 428 "util/configparser.y"
22362308 {
22372309 OUTYY(("P(server_root_hints:%s)\n", (yyvsp[(2) - (2)].str)));
22412313 break;
22422314
22432315 case 130:
2316
2317 /* Line 1455 of yacc.c */
22442318 #line 435 "util/configparser.y"
22452319 {
22462320 OUTYY(("P(server_dlv_anchor_file:%s)\n", (yyvsp[(2) - (2)].str)));
22502324 break;
22512325
22522326 case 131:
2327
2328 /* Line 1455 of yacc.c */
22532329 #line 442 "util/configparser.y"
22542330 {
22552331 OUTYY(("P(server_dlv_anchor:%s)\n", (yyvsp[(2) - (2)].str)));
22592335 break;
22602336
22612337 case 132:
2338
2339 /* Line 1455 of yacc.c */
22622340 #line 449 "util/configparser.y"
22632341 {
22642342 OUTYY(("P(server_trust_anchor_file:%s)\n", (yyvsp[(2) - (2)].str)));
22692347 break;
22702348
22712349 case 133:
2350
2351 /* Line 1455 of yacc.c */
22722352 #line 457 "util/configparser.y"
22732353 {
22742354 OUTYY(("P(server_trusted_keys_file:%s)\n", (yyvsp[(2) - (2)].str)));
22792359 break;
22802360
22812361 case 134:
2362
2363 /* Line 1455 of yacc.c */
22822364 #line 465 "util/configparser.y"
22832365 {
22842366 OUTYY(("P(server_trust_anchor:%s)\n", (yyvsp[(2) - (2)].str)));
22882370 break;
22892371
22902372 case 135:
2373
2374 /* Line 1455 of yacc.c */
22912375 #line 472 "util/configparser.y"
22922376 {
22932377 OUTYY(("P(server_domain_insecure:%s)\n", (yyvsp[(2) - (2)].str)));
22972381 break;
22982382
22992383 case 136:
2384
2385 /* Line 1455 of yacc.c */
23002386 #line 479 "util/configparser.y"
23012387 {
23022388 OUTYY(("P(server_hide_identity:%s)\n", (yyvsp[(2) - (2)].str)));
23082394 break;
23092395
23102396 case 137:
2397
2398 /* Line 1455 of yacc.c */
23112399 #line 488 "util/configparser.y"
23122400 {
23132401 OUTYY(("P(server_hide_version:%s)\n", (yyvsp[(2) - (2)].str)));
23192407 break;
23202408
23212409 case 138:
2410
2411 /* Line 1455 of yacc.c */
23222412 #line 497 "util/configparser.y"
23232413 {
23242414 OUTYY(("P(server_identity:%s)\n", (yyvsp[(2) - (2)].str)));
23282418 break;
23292419
23302420 case 139:
2421
2422 /* Line 1455 of yacc.c */
23312423 #line 504 "util/configparser.y"
23322424 {
23332425 OUTYY(("P(server_version:%s)\n", (yyvsp[(2) - (2)].str)));
23372429 break;
23382430
23392431 case 140:
2432
2433 /* Line 1455 of yacc.c */
23402434 #line 511 "util/configparser.y"
23412435 {
23422436 OUTYY(("P(server_msg_buffer_size:%s)\n", (yyvsp[(2) - (2)].str)));
23502444 break;
23512445
23522446 case 141:
2447
2448 /* Line 1455 of yacc.c */
23532449 #line 522 "util/configparser.y"
23542450 {
23552451 OUTYY(("P(server_msg_cache_size:%s)\n", (yyvsp[(2) - (2)].str)));
23602456 break;
23612457
23622458 case 142:
2459
2460 /* Line 1455 of yacc.c */
23632461 #line 530 "util/configparser.y"
23642462 {
23652463 OUTYY(("P(server_msg_cache_slabs:%s)\n", (yyvsp[(2) - (2)].str)));
23752473 break;
23762474
23772475 case 143:
2476
2477 /* Line 1455 of yacc.c */
23782478 #line 543 "util/configparser.y"
23792479 {
23802480 OUTYY(("P(server_num_queries_per_thread:%s)\n", (yyvsp[(2) - (2)].str)));
23862486 break;
23872487
23882488 case 144:
2489
2490 /* Line 1455 of yacc.c */
23892491 #line 552 "util/configparser.y"
23902492 {
23912493 OUTYY(("P(server_jostle_timeout:%s)\n", (yyvsp[(2) - (2)].str)));
23972499 break;
23982500
23992501 case 145:
2502
2503 /* Line 1455 of yacc.c */
24002504 #line 561 "util/configparser.y"
24012505 {
24022506 OUTYY(("P(server_rrset_cache_size:%s)\n", (yyvsp[(2) - (2)].str)));
24072511 break;
24082512
24092513 case 146:
2514
2515 /* Line 1455 of yacc.c */
24102516 #line 569 "util/configparser.y"
24112517 {
24122518 OUTYY(("P(server_rrset_cache_slabs:%s)\n", (yyvsp[(2) - (2)].str)));
24222528 break;
24232529
24242530 case 147:
2531
2532 /* Line 1455 of yacc.c */
24252533 #line 582 "util/configparser.y"
24262534 {
24272535 OUTYY(("P(server_infra_host_ttl:%s)\n", (yyvsp[(2) - (2)].str)));
24332541 break;
24342542
24352543 case 148:
2544
2545 /* Line 1455 of yacc.c */
24362546 #line 591 "util/configparser.y"
24372547 {
24382548 OUTYY(("P(server_infra_lame_ttl:%s)\n", (yyvsp[(2) - (2)].str)));
24442554 break;
24452555
24462556 case 149:
2557
2558 /* Line 1455 of yacc.c */
24472559 #line 600 "util/configparser.y"
24482560 {
24492561 OUTYY(("P(server_infra_cache_numhosts:%s)\n", (yyvsp[(2) - (2)].str)));
24552567 break;
24562568
24572569 case 150:
2570
2571 /* Line 1455 of yacc.c */
24582572 #line 609 "util/configparser.y"
24592573 {
24602574 OUTYY(("P(server_infra_cache_lame_size:%s)\n", (yyvsp[(2) - (2)].str)));
24662580 break;
24672581
24682582 case 151:
2583
2584 /* Line 1455 of yacc.c */
24692585 #line 618 "util/configparser.y"
24702586 {
24712587 OUTYY(("P(server_infra_cache_slabs:%s)\n", (yyvsp[(2) - (2)].str)));
24812597 break;
24822598
24832599 case 152:
2600
2601 /* Line 1455 of yacc.c */
24842602 #line 631 "util/configparser.y"
24852603 {
24862604 OUTYY(("P(server_target_fetch_policy:%s)\n", (yyvsp[(2) - (2)].str)));
24902608 break;
24912609
24922610 case 153:
2611
2612 /* Line 1455 of yacc.c */
24932613 #line 638 "util/configparser.y"
24942614 {
24952615 OUTYY(("P(server_harden_short_bufsize:%s)\n", (yyvsp[(2) - (2)].str)));
25022622 break;
25032623
25042624 case 154:
2625
2626 /* Line 1455 of yacc.c */
25052627 #line 648 "util/configparser.y"
25062628 {
25072629 OUTYY(("P(server_harden_large_queries:%s)\n", (yyvsp[(2) - (2)].str)));
25142636 break;
25152637
25162638 case 155:
2639
2640 /* Line 1455 of yacc.c */
25172641 #line 658 "util/configparser.y"
25182642 {
25192643 OUTYY(("P(server_harden_glue:%s)\n", (yyvsp[(2) - (2)].str)));
25262650 break;
25272651
25282652 case 156:
2653
2654 /* Line 1455 of yacc.c */
25292655 #line 668 "util/configparser.y"
25302656 {
25312657 OUTYY(("P(server_harden_dnssec_stripped:%s)\n", (yyvsp[(2) - (2)].str)));
25382664 break;
25392665
25402666 case 157:
2667
2668 /* Line 1455 of yacc.c */
25412669 #line 678 "util/configparser.y"
25422670 {
25432671 OUTYY(("P(server_harden_referral_path:%s)\n", (yyvsp[(2) - (2)].str)));
25502678 break;
25512679
25522680 case 158:
2681
2682 /* Line 1455 of yacc.c */
25532683 #line 688 "util/configparser.y"
25542684 {
25552685 OUTYY(("P(server_use_caps_for_id:%s)\n", (yyvsp[(2) - (2)].str)));
25622692 break;
25632693
25642694 case 159:
2695
2696 /* Line 1455 of yacc.c */
25652697 #line 698 "util/configparser.y"
25662698 {
25672699 OUTYY(("P(server_private_address:%s)\n", (yyvsp[(2) - (2)].str)));
25712703 break;
25722704
25732705 case 160:
2706
2707 /* Line 1455 of yacc.c */
25742708 #line 705 "util/configparser.y"
25752709 {
25762710 OUTYY(("P(server_private_domain:%s)\n", (yyvsp[(2) - (2)].str)));
25802714 break;
25812715
25822716 case 161:
2717
2718 /* Line 1455 of yacc.c */
25832719 #line 712 "util/configparser.y"
25842720 {
25852721 OUTYY(("P(server_unwanted_reply_threshold:%s)\n", (yyvsp[(2) - (2)].str)));
25912727 break;
25922728
25932729 case 162:
2730
2731 /* Line 1455 of yacc.c */
25942732 #line 721 "util/configparser.y"
25952733 {
25962734 OUTYY(("P(server_do_not_query_address:%s)\n", (yyvsp[(2) - (2)].str)));
26002738 break;
26012739
26022740 case 163:
2741
2742 /* Line 1455 of yacc.c */
26032743 #line 728 "util/configparser.y"
26042744 {
26052745 OUTYY(("P(server_do_not_query_localhost:%s)\n", (yyvsp[(2) - (2)].str)));
26122752 break;
26132753
26142754 case 164:
2755
2756 /* Line 1455 of yacc.c */
26152757 #line 738 "util/configparser.y"
26162758 {
26172759 OUTYY(("P(server_access_control:%s %s)\n", (yyvsp[(2) - (3)].str), (yyvsp[(3) - (3)].str)));
26282770 break;
26292771
26302772 case 165:
2773
2774 /* Line 1455 of yacc.c */
26312775 #line 752 "util/configparser.y"
26322776 {
26332777 OUTYY(("P(server_module_conf:%s)\n", (yyvsp[(2) - (2)].str)));
26372781 break;
26382782
26392783 case 166:
2784
2785 /* Line 1455 of yacc.c */
26402786 #line 759 "util/configparser.y"
26412787 {
26422788 OUTYY(("P(server_val_override_date:%s)\n", (yyvsp[(2) - (2)].str)));
26572803 break;
26582804
26592805 case 167:
2806
2807 /* Line 1455 of yacc.c */
26602808 #line 777 "util/configparser.y"
26612809 {
26622810 OUTYY(("P(server_val_sig_skew_min:%s)\n", (yyvsp[(2) - (2)].str)));
26722820 break;
26732821
26742822 case 168:
2823
2824 /* Line 1455 of yacc.c */
26752825 #line 790 "util/configparser.y"
26762826 {
26772827 OUTYY(("P(server_val_sig_skew_max:%s)\n", (yyvsp[(2) - (2)].str)));
26872837 break;
26882838
26892839 case 169:
2840
2841 /* Line 1455 of yacc.c */
26902842 #line 803 "util/configparser.y"
26912843 {
26922844 OUTYY(("P(server_cache_max_ttl:%s)\n", (yyvsp[(2) - (2)].str)));
26982850 break;
26992851
27002852 case 170:
2853
2854 /* Line 1455 of yacc.c */
27012855 #line 812 "util/configparser.y"
27022856 {
27032857 OUTYY(("P(server_cache_min_ttl:%s)\n", (yyvsp[(2) - (2)].str)));
27092863 break;
27102864
27112865 case 171:
2866
2867 /* Line 1455 of yacc.c */
27122868 #line 821 "util/configparser.y"
27132869 {
27142870 OUTYY(("P(server_bogus_ttl:%s)\n", (yyvsp[(2) - (2)].str)));
27202876 break;
27212877
27222878 case 172:
2879
2880 /* Line 1455 of yacc.c */
27232881 #line 830 "util/configparser.y"
27242882 {
27252883 OUTYY(("P(server_val_clean_additional:%s)\n", (yyvsp[(2) - (2)].str)));
27322890 break;
27332891
27342892 case 173:
2893
2894 /* Line 1455 of yacc.c */
27352895 #line 840 "util/configparser.y"
27362896 {
27372897 OUTYY(("P(server_val_permissive_mode:%s)\n", (yyvsp[(2) - (2)].str)));
27442904 break;
27452905
27462906 case 174:
2907
2908 /* Line 1455 of yacc.c */
27472909 #line 850 "util/configparser.y"
27482910 {
27492911 OUTYY(("P(server_val_nsec3_keysize_iterations:%s)\n", (yyvsp[(2) - (2)].str)));
27532915 break;
27542916
27552917 case 175:
2918
2919 /* Line 1455 of yacc.c */
27562920 #line 857 "util/configparser.y"
27572921 {
27582922 OUTYY(("P(server_key_cache_size:%s)\n", (yyvsp[(2) - (2)].str)));
27632927 break;
27642928
27652929 case 176:
2930
2931 /* Line 1455 of yacc.c */
27662932 #line 865 "util/configparser.y"
27672933 {
27682934 OUTYY(("P(server_key_cache_slabs:%s)\n", (yyvsp[(2) - (2)].str)));
27782944 break;
27792945
27802946 case 177:
2947
2948 /* Line 1455 of yacc.c */
27812949 #line 878 "util/configparser.y"
27822950 {
27832951 OUTYY(("P(server_neg_cache_size:%s)\n", (yyvsp[(2) - (2)].str)));
27882956 break;
27892957
27902958 case 178:
2959
2960 /* Line 1455 of yacc.c */
27912961 #line 886 "util/configparser.y"
27922962 {
27932963 OUTYY(("P(server_local_zone:%s %s)\n", (yyvsp[(2) - (3)].str), (yyvsp[(3) - (3)].str)));
28102980 break;
28112981
28122982 case 179:
2983
2984 /* Line 1455 of yacc.c */
28132985 #line 906 "util/configparser.y"
28142986 {
28152987 OUTYY(("P(server_local_data:%s)\n", (yyvsp[(2) - (2)].str)));
28192991 break;
28202992
28212993 case 180:
2994
2995 /* Line 1455 of yacc.c */
28222996 #line 913 "util/configparser.y"
28232997 {
28242998 char* ptr;
28363010 break;
28373011
28383012 case 181:
3013
3014 /* Line 1455 of yacc.c */
28393015 #line 928 "util/configparser.y"
28403016 {
28413017 OUTYY(("P(name:%s)\n", (yyvsp[(2) - (2)].str)));
28453021 break;
28463022
28473023 case 182:
3024
3025 /* Line 1455 of yacc.c */
28483026 #line 935 "util/configparser.y"
28493027 {
28503028 OUTYY(("P(stub-host:%s)\n", (yyvsp[(2) - (2)].str)));
28543032 break;
28553033
28563034 case 183:
3035
3036 /* Line 1455 of yacc.c */
28573037 #line 942 "util/configparser.y"
28583038 {
28593039 OUTYY(("P(stub-addr:%s)\n", (yyvsp[(2) - (2)].str)));
28633043 break;
28643044
28653045 case 184:
3046
3047 /* Line 1455 of yacc.c */
28663048 #line 949 "util/configparser.y"
28673049 {
28683050 OUTYY(("P(stub-prime:%s)\n", (yyvsp[(2) - (2)].str)));
28753057 break;
28763058
28773059 case 185:
3060
3061 /* Line 1455 of yacc.c */
28783062 #line 959 "util/configparser.y"
28793063 {
28803064 OUTYY(("P(name:%s)\n", (yyvsp[(2) - (2)].str)));
28843068 break;
28853069
28863070 case 186:
3071
3072 /* Line 1455 of yacc.c */
28873073 #line 966 "util/configparser.y"
28883074 {
28893075 OUTYY(("P(forward-host:%s)\n", (yyvsp[(2) - (2)].str)));
28933079 break;
28943080
28953081 case 187:
3082
3083 /* Line 1455 of yacc.c */
28963084 #line 973 "util/configparser.y"
28973085 {
28983086 OUTYY(("P(forward-addr:%s)\n", (yyvsp[(2) - (2)].str)));
29023090 break;
29033091
29043092 case 188:
3093
3094 /* Line 1455 of yacc.c */
29053095 #line 980 "util/configparser.y"
29063096 {
29073097 OUTYY(("\nP(remote-control:)\n"));
29093099 break;
29103100
29113101 case 198:
3102
3103 /* Line 1455 of yacc.c */
29123104 #line 991 "util/configparser.y"
29133105 {
29143106 OUTYY(("P(control_enable:%s)\n", (yyvsp[(2) - (2)].str)));
29213113 break;
29223114
29233115 case 199:
3116
3117 /* Line 1455 of yacc.c */
29243118 #line 1001 "util/configparser.y"
29253119 {
29263120 OUTYY(("P(control_port:%s)\n", (yyvsp[(2) - (2)].str)));
29323126 break;
29333127
29343128 case 200:
3129
3130 /* Line 1455 of yacc.c */
29353131 #line 1010 "util/configparser.y"
29363132 {
29373133 OUTYY(("P(control_interface:%s)\n", (yyvsp[(2) - (2)].str)));
29413137 break;
29423138
29433139 case 201:
3140
3141 /* Line 1455 of yacc.c */
29443142 #line 1017 "util/configparser.y"
29453143 {
29463144 OUTYY(("P(rc_server_key_file:%s)\n", (yyvsp[(2) - (2)].str)));
29503148 break;
29513149
29523150 case 202:
3151
3152 /* Line 1455 of yacc.c */
29533153 #line 1024 "util/configparser.y"
29543154 {
29553155 OUTYY(("P(rc_server_cert_file:%s)\n", (yyvsp[(2) - (2)].str)));
29593159 break;
29603160
29613161 case 203:
3162
3163 /* Line 1455 of yacc.c */
29623164 #line 1031 "util/configparser.y"
29633165 {
29643166 OUTYY(("P(rc_control_key_file:%s)\n", (yyvsp[(2) - (2)].str)));
29683170 break;
29693171
29703172 case 204:
3173
3174 /* Line 1455 of yacc.c */
29713175 #line 1038 "util/configparser.y"
29723176 {
29733177 OUTYY(("P(rc_control_cert_file:%s)\n", (yyvsp[(2) - (2)].str)));
29773181 break;
29783182
29793183 case 205:
3184
3185 /* Line 1455 of yacc.c */
29803186 #line 1045 "util/configparser.y"
29813187 {
29823188 OUTYY(("\nP(python:)\n"));
29843190 break;
29853191
29863192 case 209:
3193
3194 /* Line 1455 of yacc.c */
29873195 #line 1054 "util/configparser.y"
29883196 {
29893197 OUTYY(("P(python-script:%s)\n", (yyvsp[(2) - (2)].str)));
29933201 break;
29943202
29953203
2996 /* Line 1267 of yacc.c. */
2997 #line 2999 "util/configparser.c"
3204
3205 /* Line 1455 of yacc.c */
3206 #line 3208 "util/configparser.c"
29983207 default: break;
29993208 }
30003209 YY_SYMBOL_PRINT ("-> $$ =", yyr1[yyn], &yyval, &yyloc);
30043213 YY_STACK_PRINT (yyss, yyssp);
30053214
30063215 *++yyvsp = yyval;
3007
30083216
30093217 /* Now `shift' the result of the reduction. Determine what state
30103218 that goes to, based on the state we popped back to and the rule
30703278
30713279 if (yyerrstatus == 3)
30723280 {
3073 /* If just tried and failed to reuse look-ahead token after an
3281 /* If just tried and failed to reuse lookahead token after an
30743282 error, discard it. */
30753283
30763284 if (yychar <= YYEOF)
30873295 }
30883296 }
30893297
3090 /* Else will try to reuse look-ahead token after shifting the error
3298 /* Else will try to reuse lookahead token after shifting the error
30913299 token. */
30923300 goto yyerrlab1;
30933301
31443352 YY_STACK_PRINT (yyss, yyssp);
31453353 }
31463354
3147 if (yyn == YYFINAL)
3148 YYACCEPT;
3149
31503355 *++yyvsp = yylval;
31513356
31523357
31713376 yyresult = 1;
31723377 goto yyreturn;
31733378
3174 #ifndef yyoverflow
3379 #if !defined(yyoverflow) || YYERROR_VERBOSE
31753380 /*-------------------------------------------------.
31763381 | yyexhaustedlab -- memory exhaustion comes here. |
31773382 `-------------------------------------------------*/
31823387 #endif
31833388
31843389 yyreturn:
3185 if (yychar != YYEOF && yychar != YYEMPTY)
3390 if (yychar != YYEMPTY)
31863391 yydestruct ("Cleanup: discarding lookahead",
31873392 yytoken, &yylval);
31883393 /* Do not reclaim the symbols of the rule which action triggered
32083413 }
32093414
32103415
3416
3417 /* Line 1675 of yacc.c */
32113418 #line 1059 "util/configparser.y"
32123419
32133420
0 /* A Bison parser, made by GNU Bison 2.3. */
0
1 /* A Bison parser, made by GNU Bison 2.4.1. */
12
23 /* Skeleton interface for Bison's Yacc-like parsers in C
3
4 Copyright (C) 1984, 1989, 1990, 2000, 2001, 2002, 2003, 2004, 2005, 2006
4
5 Copyright (C) 1984, 1989, 1990, 2000, 2001, 2002, 2003, 2004, 2005, 2006
56 Free Software Foundation, Inc.
6
7 This program is free software; you can redistribute it and/or modify
7
8 This program is free software: you can redistribute it and/or modify
89 it under the terms of the GNU General Public License as published by
9 the Free Software Foundation; either version 2, or (at your option)
10 any later version.
11
10 the Free Software Foundation, either version 3 of the License, or
11 (at your option) any later version.
12
1213 This program is distributed in the hope that it will be useful,
1314 but WITHOUT ANY WARRANTY; without even the implied warranty of
1415 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
1516 GNU General Public License for more details.
16
17
1718 You should have received a copy of the GNU General Public License
18 along with this program; if not, write to the Free Software
19 Foundation, Inc., 51 Franklin Street, Fifth Floor,
20 Boston, MA 02110-1301, USA. */
19 along with this program. If not, see <http://www.gnu.org/licenses/>. */
2120
2221 /* As a special exception, you may create a larger work that contains
2322 part or all of the Bison parser skeleton and distribute that work
2827 special exception, which will cause the skeleton and the resulting
2928 Bison output files to be licensed under the GNU General Public
3029 License without this special exception.
31
30
3231 This special exception was added by the Free Software Foundation in
3332 version 2.2 of Bison. */
33
3434
3535 /* Tokens. */
3636 #ifndef YYTOKENTYPE
257257
258258 #if ! defined YYSTYPE && ! defined YYSTYPE_IS_DECLARED
259259 typedef union YYSTYPE
260 {
261
262 /* Line 1676 of yacc.c */
260263 #line 64 "util/configparser.y"
261 {
264
262265 char* str;
263 }
264 /* Line 1489 of yacc.c. */
265 #line 267 "util/configparser.h"
266 YYSTYPE;
266
267
268
269 /* Line 1676 of yacc.c */
270 #line 272 "util/configparser.h"
271 } YYSTYPE;
272 # define YYSTYPE_IS_TRIVIAL 1
267273 # define yystype YYSTYPE /* obsolescent; will be withdrawn */
268274 # define YYSTYPE_IS_DECLARED 1
269 # define YYSTYPE_IS_TRIVIAL 1
270275 #endif
271276
272277 extern YYSTYPE yylval;
273278
279
489489 *rrset_prev = msgparse_hashtable_lookup(msg, pkt,
490490 *hash, *rrset_flags, dname, dnamelen, covtype,
491491 dclass);
492 if(!*rrset_prev) /* untwiddle if not found */
493 *rrset_flags ^= PACKED_RRSET_NSEC_AT_APEX;
492494 }
493495 if(*rrset_prev) {
494496 *prev_dname_first = (*rrset_prev)->dname;
503505 int hasother = 0;
504506 /* find matching rrsig */
505507 *hash = pkt_hash_rrset_rest(dname_h, LDNS_RR_TYPE_RRSIG,
506 dclass, *rrset_flags);
508 dclass, 0);
507509 *rrset_prev = msgparse_hashtable_lookup(msg, pkt, *hash,
508 *rrset_flags, dname, dnamelen, LDNS_RR_TYPE_RRSIG,
510 0, dname, dnamelen, LDNS_RR_TYPE_RRSIG,
509511 dclass);
510512 if(*rrset_prev && rrset_has_sigover(pkt, *rrset_prev, type,
511513 &hasother)) {
813815 ldns_buffer_read(pkt, &dclass, sizeof(dclass));
814816
815817 if(0) { /* debug show what is being parsed. */
816 printf("parse of %s(%d)",
818 fprintf(stderr, "parse of %s(%d)",
817819 ldns_rr_descript(type)?
818820 ldns_rr_descript(type)->_name: "??",
819821 (int)type);
820 printf(" %s(%d) ",
822 fprintf(stderr, " %s(%d) ",
821823 ldns_lookup_by_id(ldns_rr_classes,
822824 (int)ntohs(dclass))?ldns_lookup_by_id(
823825 ldns_rr_classes, (int)ntohs(dclass))->name:
824826 "??", (int)ntohs(dclass));
825 dname_print(stdout, pkt, dname);
826 printf("\n");
827 dname_print(stderr, pkt, dname);
828 fprintf(stderr, "\n");
827829 }
828830
829831 /* see if it is part of an existing RR set */
841843 return LDNS_RCODE_SERVFAIL;
842844 }
843845 else if(0) {
844 printf("is part of existing: ");
845 dname_print(stdout, pkt, rrset->dname);
846 printf(" type %s(%d)\n",
846 fprintf(stderr, "is part of existing: ");
847 dname_print(stderr, pkt, rrset->dname);
848 fprintf(stderr, " type %s(%d)\n",
847849 ldns_rr_descript(rrset->type)?
848850 ldns_rr_descript(rrset->type)->_name: "??",
849851 (int)rrset->type);
789789 {
790790 log_nametypeclass(v, str, qinf->qname, qinf->qtype, qinf->qclass);
791791 }
792
793 int
794 reply_check_cname_chain(struct reply_info* rep)
795 {
796 /* check only answer section rrs for matching cname chain.
797 * the cache may return changed rdata, but owner names are untouched.*/
798 size_t i;
799 uint8_t* sname = rep->rrsets[0]->rk.dname;
800 size_t snamelen = rep->rrsets[0]->rk.dname_len;
801 for(i=0; i<rep->an_numrrsets; i++) {
802 uint16_t t = ntohs(rep->rrsets[i]->rk.type);
803 if(t == LDNS_RR_TYPE_DNAME)
804 continue; /* skip dnames; note TTL 0 not cached */
805 /* verify that owner matches current sname */
806 if(query_dname_compare(sname, rep->rrsets[i]->rk.dname) != 0){
807 /* cname chain broken */
808 return 0;
809 }
810 /* if this is a cname; move on */
811 if(t == LDNS_RR_TYPE_CNAME) {
812 get_cname_target(rep->rrsets[i], &sname, &snamelen);
813 }
814 }
815 return 1;
816 }
817
818 int
819 reply_all_rrsets_secure(struct reply_info* rep)
820 {
821 size_t i;
822 for(i=0; i<rep->rrset_count; i++) {
823 if( ((struct packed_rrset_data*)rep->rrsets[i]->entry.data)
824 ->security != sec_status_secure )
825 return 0;
826 }
827 return 1;
828 }
329329 struct reply_info* rep);
330330
331331 /**
332 * Check if cname chain in cached reply is still valid.
333 * @param rep: reply to check.
334 * @return: true if valid, false if invalid.
335 */
336 int reply_check_cname_chain(struct reply_info* rep);
337
338 /**
339 * Check security status of all RRs in the message.
340 * @param rep: reply to check
341 * @return: true if all RRs are secure. False if not.
342 * True if there are zero RRs.
343 */
344 int reply_all_rrsets_secure(struct reply_info* rep);
345
346 /**
332347 * Find answer rrset in reply, the one matching qinfo. Follows CNAMEs, so the
333348 * result may have a different owner name.
334349 * @param qinfo: what to look for.
375375 else if(fptr == &libworker_handle_control_cmd) return 1;
376376 return 0;
377377 }
378
379 int fptr_whitelist_mesh_cb(mesh_cb_func_t fptr)
380 {
381 if(fptr == &libworker_fg_done_cb) return 1;
382 else if(fptr == &libworker_bg_done_cb) return 1;
383 return 0;
384 }
5757 #include "util/storage/lruhash.h"
5858 #include "util/module.h"
5959 #include "util/tube.h"
60 #include "services/mesh.h"
6061
6162 /**
6263 * Macro to perform an assertion check for fptr wlist checks.
305306 * @return false if not in whitelist.
306307 */
307308 int fptr_whitelist_tube_listen(tube_callback_t* fptr);
309
310 /**
311 * Check function pointer whitelist for mesh state callback values.
312 *
313 * @param fptr: function pointer to check.
314 * @return false if not in whitelist.
315 */
316 int fptr_whitelist_mesh_cb(mesh_cb_func_t fptr);
308317
309318 /** Due to module breakage by fptr wlist, these test app declarations
310319 * are presented here */
33733373 3763,
33743374 3764,
33753375 3765,
3376 3766,
33773376 3767,
33783377 3768,
33793378 3769,
38773876 4554,
38783877 4555,
38793878 4556,
3879 4557,
3880 4558,
38803881 4559,
38813882 4566,
38823883 4567,
40194020 5025,
40204021 5026,
40214022 5027,
4023 5029,
40224024 5030,
40234025 5042,
40244026 5043,
44994501 7200,
45004502 7201,
45014503 7227,
4504 7262,
45024505 7272,
45034506 7273,
45044507 7274,
47604763 9102,
47614764 9103,
47624765 9104,
4766 9105,
47634767 9119,
47644768 9131,
47654769 9160,
51205124 25793,
51215125 25900,
51225126 25901,
5127 25902,
51235128 25903,
51245129 26000,
51255130 26133,
52055210 44818,
52065211 45054,
52075212 45678,
5213 45825,
52085214 45966,
52095215 46999,
52105216 47000,
662662 * But this rrset did not verify.
663663 * Therefore the message is bogus.
664664 */
665
666 /* check if authority consists of only an NS record
667 * which is bad, and there is an answer section with
668 * data. In that case, delete NS and additional to
669 * be lenient and make a minimal response */
670 if(rep->an_numrrsets != 0 && rep->ns_numrrsets == 1 &&
671 ntohs(rep->rrsets[i]->rk.type)
672 == LDNS_RR_TYPE_NS) {
673 verbose(VERB_ALGO, "truncate to minimal");
674 rep->ns_numrrsets = 0;
675 rep->ar_numrrsets = 0;
676 rep->rrset_count = rep->an_numrrsets;
677 return;
678 }
679
665680 log_nametypeclass(VERB_QUERY, "message is bogus, "
666681 "non secure rrset",
667682 rep->rrsets[i]->rk.dname,
250250 /**
251251 * Check to see if a given response needs to go through the validation
252252 * process. Typical reasons for this routine to return false are: CD bit was
253 * on in the original request, the response was already validated, or the
254 * response is a kind of message that is unvalidatable (i.e., SERVFAIL,
255 * REFUSED, etc.)
253 * on in the original request, or the response is a kind of message that
254 * is unvalidatable (i.e., SERVFAIL, REFUSED, etc.)
256255 *
257256 * @param qstate: query state.
258257 * @param ret_rc: rcode for this message (if noerror - examine ret_msg).
291290 verbose(VERB_ALGO, "cannot validate RRSIG, no sigs on sigs.");
292291 return 0;
293292 }
294
293 return 1;
294 }
295
296 /**
297 * Check to see if the response has already been validated.
298 * @param ret_msg: return msg, can be NULL
299 * @return true if the response has already been validated
300 */
301 static int
302 already_validated(struct dns_msg* ret_msg)
303 {
295304 /* validate unchecked, and re-validate bogus messages */
296305 if (ret_msg && ret_msg->rep->security > sec_status_bogus)
297306 {
298 verbose(VERB_ALGO, "response has already been validated");
299 return 0;
300 }
301 return 1;
307 verbose(VERB_ALGO, "response has already been validated: %s",
308 sec_status_to_string(ret_msg->rep->security));
309 return 1;
310 }
311 return 0;
302312 }
303313
304314 /**
466476
467477 return 1;
468478 }
479
480 /**
481 * Detect wrong truncated response (say from BIND 9.6.1 that is forwarding
482 * and saw the NS record without signatures from a referral).
483 * The positive response has a mangled authority section.
484 * Remove that authority section and the additional section.
485 * @param rep: reply
486 * @return true if a wrongly truncated response.
487 */
488 static int
489 detect_wrongly_truncated(struct reply_info* rep)
490 {
491 size_t i;
492 /* only NS in authority, and it is bogus */
493 if(rep->ns_numrrsets != 1 || rep->an_numrrsets == 0)
494 return 0;
495 if(ntohs(rep->rrsets[ rep->an_numrrsets ]->rk.type) != LDNS_RR_TYPE_NS)
496 return 0;
497 if(((struct packed_rrset_data*)rep->rrsets[ rep->an_numrrsets ]
498 ->entry.data)->security == sec_status_secure)
499 return 0;
500 /* answer section is present and secure */
501 for(i=0; i<rep->an_numrrsets; i++) {
502 if(((struct packed_rrset_data*)rep->rrsets[ i ]
503 ->entry.data)->security != sec_status_secure)
504 return 0;
505 }
506 verbose(VERB_ALGO, "truncating to minimal response");
507 return 1;
508 }
509
469510
470511 /**
471512 * Given a "positive" response -- a response that contains an answer to the
14381479 vq->chase_reply->security = sec_status_bogus;
14391480 return 1;
14401481 }
1482 subtype = val_classify_response(qstate->query_flags, &qstate->qinfo,
1483 &vq->qchase, vq->orig_msg->rep, vq->rrset_skip);
14411484
14421485 /* check signatures in the message;
14431486 * answer and authority must be valid, additional is only checked. */
14441487 if(!validate_msg_signatures(qstate->env, ve, &vq->qchase,
14451488 vq->chase_reply, vq->key_entry)) {
1446 verbose(VERB_DETAIL, "Validate: message contains bad rrsets");
1447 return 1;
1448 }
1449
1450 subtype = val_classify_response(qstate->query_flags, &qstate->qinfo,
1451 &vq->qchase, vq->orig_msg->rep, vq->rrset_skip);
1489 /* workaround bad recursor out there that truncates (even
1490 * with EDNS4k) to 512 by removing RRSIG from auth section
1491 * for positive replies*/
1492 if((subtype == VAL_CLASS_POSITIVE || subtype == VAL_CLASS_ANY
1493 || subtype == VAL_CLASS_CNAME) &&
1494 detect_wrongly_truncated(vq->orig_msg->rep)) {
1495 /* truncate the message some more */
1496 vq->orig_msg->rep->ns_numrrsets = 0;
1497 vq->orig_msg->rep->ar_numrrsets = 0;
1498 vq->orig_msg->rep->rrset_count =
1499 vq->orig_msg->rep->an_numrrsets;
1500 vq->chase_reply->ns_numrrsets = 0;
1501 vq->chase_reply->ar_numrrsets = 0;
1502 vq->chase_reply->rrset_count =
1503 vq->chase_reply->an_numrrsets;
1504 }
1505 else {
1506 verbose(VERB_DETAIL, "Validate: message contains "
1507 "bad rrsets");
1508 return 1;
1509 }
1510 }
1511
14521512 switch(subtype) {
14531513 case VAL_CLASS_POSITIVE:
14541514 verbose(VERB_ALGO, "Validating a positive response");
19331993 if(qstate->return_msg)
19341994 qstate->return_msg->rep->security =
19351995 sec_status_indeterminate;
1996 qstate->ext_state[id] = module_finished;
1997 return;
1998 }
1999 if(already_validated(qstate->return_msg)) {
19362000 qstate->ext_state[id] = module_finished;
19372001 return;
19382002 }
23962460 }
23972461 if(msg->rep->security != sec_status_secure) {
23982462 vq->dlv_status = dlv_error;
2399 verbose(VERB_ALGO, "response is not secure");
2463 verbose(VERB_ALGO, "response is not secure, %s",
2464 sec_status_to_string(msg->rep->security));
24002465 return;
24012466 }
24022467 /* was the lookup a success? validated DLV? */
108108 if(out) fprintf(out, "installed reg entries\n");
109109 }
110110
111 /** remove regisytry entries for eventlog */
111 /** remove registry entries for eventlog */
112112 static void
113113 event_reg_remove(FILE* out)
114114 {
4747 #include "winrc/w_inst.h"
4848 #include "daemon/daemon.h"
4949 #include "daemon/worker.h"
50 #include "daemon/remote.h"
5051 #include "util/config_file.h"
5152 #include "util/netevent.h"
5253 #include "util/winsock_event.h"
282283 if(!r) report_status(SERVICE_START_PENDING, NO_ERROR, 2400);
283284 verbose(VERB_QUERY, "winservice - apply cfg");
284285 daemon_apply_cfg(daemon, cfg);
285
286
287 if(!r) report_status(SERVICE_START_PENDING, NO_ERROR, 2300);
288 if(!(daemon->rc = daemon_remote_create(cfg))) {
289 log_err("could not set up remote-control");
290 daemon_delete(daemon);
291 config_delete(cfg);
292 return 0;
293 }
294
286295 /* open ports */
287296 /* keep reporting that we are busy starting */
288297 if(!r) report_status(SERVICE_START_PENDING, NO_ERROR, 2200);