Added peerguardian
[openwrt.git] / openwrt / package / icecast / patches / icecast-2.3.0-curl_config.patch
1 diff -ruN icecast-2.3.0-old/aclocal.m4 icecast-2.3.0-new/aclocal.m4
2 --- icecast-2.3.0-old/aclocal.m4 2005-09-23 23:18:41.000000000 +0200
3 +++ icecast-2.3.0-new/aclocal.m4 2005-10-02 13:02:52.000000000 +0200
4 @@ -871,63 +871,13 @@
5 ]
6 )
7
8 -# libtool.m4 - Configure libtool for the host system. -*-Autoconf-*-
9 +# libtool.m4 - Configure libtool for the host system. -*-Shell-script-*-
10
11 -# serial 47 AC_PROG_LIBTOOL
12 +# serial 46 AC_PROG_LIBTOOL
13 +# Debian $Rev: 189 $
14
15 -
16 -# AC_PROVIDE_IFELSE(MACRO-NAME, IF-PROVIDED, IF-NOT-PROVIDED)
17 -# -----------------------------------------------------------
18 -# If this macro is not defined by Autoconf, define it here.
19 -m4_ifdef([AC_PROVIDE_IFELSE],
20 - [],
21 - [m4_define([AC_PROVIDE_IFELSE],
22 - [m4_ifdef([AC_PROVIDE_$1],
23 - [$2], [$3])])])
24 -
25 -
26 -# AC_PROG_LIBTOOL
27 -# ---------------
28 AC_DEFUN([AC_PROG_LIBTOOL],
29 -[AC_REQUIRE([_AC_PROG_LIBTOOL])dnl
30 -dnl If AC_PROG_CXX has already been expanded, run AC_LIBTOOL_CXX
31 -dnl immediately, otherwise, hook it in at the end of AC_PROG_CXX.
32 - AC_PROVIDE_IFELSE([AC_PROG_CXX],
33 - [AC_LIBTOOL_CXX],
34 - [define([AC_PROG_CXX], defn([AC_PROG_CXX])[AC_LIBTOOL_CXX
35 - ])])
36 -dnl And a similar setup for Fortran 77 support
37 - AC_PROVIDE_IFELSE([AC_PROG_F77],
38 - [AC_LIBTOOL_F77],
39 - [define([AC_PROG_F77], defn([AC_PROG_F77])[AC_LIBTOOL_F77
40 -])])
41 -
42 -dnl Quote A][M_PROG_GCJ so that aclocal doesn't bring it in needlessly.
43 -dnl If either AC_PROG_GCJ or A][M_PROG_GCJ have already been expanded, run
44 -dnl AC_LIBTOOL_GCJ immediately, otherwise, hook it in at the end of both.
45 - AC_PROVIDE_IFELSE([AC_PROG_GCJ],
46 - [AC_LIBTOOL_GCJ],
47 - [AC_PROVIDE_IFELSE([A][M_PROG_GCJ],
48 - [AC_LIBTOOL_GCJ],
49 - [AC_PROVIDE_IFELSE([LT_AC_PROG_GCJ],
50 - [AC_LIBTOOL_GCJ],
51 - [ifdef([AC_PROG_GCJ],
52 - [define([AC_PROG_GCJ], defn([AC_PROG_GCJ])[AC_LIBTOOL_GCJ])])
53 - ifdef([A][M_PROG_GCJ],
54 - [define([A][M_PROG_GCJ], defn([A][M_PROG_GCJ])[AC_LIBTOOL_GCJ])])
55 - ifdef([LT_AC_PROG_GCJ],
56 - [define([LT_AC_PROG_GCJ],
57 - defn([LT_AC_PROG_GCJ])[AC_LIBTOOL_GCJ])])])])
58 -])])# AC_PROG_LIBTOOL
59 -
60 -
61 -# _AC_PROG_LIBTOOL
62 -# ----------------
63 -AC_DEFUN([_AC_PROG_LIBTOOL],
64 [AC_REQUIRE([AC_LIBTOOL_SETUP])dnl
65 -AC_BEFORE([$0],[AC_LIBTOOL_CXX])dnl
66 -AC_BEFORE([$0],[AC_LIBTOOL_F77])dnl
67 -AC_BEFORE([$0],[AC_LIBTOOL_GCJ])dnl
68
69 # This can be used to rebuild libtool when needed
70 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
71 @@ -938,13 +888,10 @@
72
73 # Prevent multiple expansion
74 define([AC_PROG_LIBTOOL], [])
75 -])# _AC_PROG_LIBTOOL
76 -
77 +])
78
79 -# AC_LIBTOOL_SETUP
80 -# ----------------
81 AC_DEFUN([AC_LIBTOOL_SETUP],
82 -[AC_PREREQ(2.50)dnl
83 +[AC_PREREQ(2.13)dnl
84 AC_REQUIRE([AC_ENABLE_SHARED])dnl
85 AC_REQUIRE([AC_ENABLE_STATIC])dnl
86 AC_REQUIRE([AC_ENABLE_FAST_INSTALL])dnl
87 @@ -954,294 +901,410 @@
88 AC_REQUIRE([AC_PROG_LD])dnl
89 AC_REQUIRE([AC_PROG_LD_RELOAD_FLAG])dnl
90 AC_REQUIRE([AC_PROG_NM])dnl
91 +AC_REQUIRE([LT_AC_PROG_SED])dnl
92
93 AC_REQUIRE([AC_PROG_LN_S])dnl
94 AC_REQUIRE([AC_DEPLIBS_CHECK_METHOD])dnl
95 -# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
96 AC_REQUIRE([AC_OBJEXT])dnl
97 AC_REQUIRE([AC_EXEEXT])dnl
98 dnl
99
100 -AC_LIBTOOL_SYS_MAX_CMD_LEN
101 -AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE
102 -AC_LIBTOOL_OBJDIR
103 -
104 -AC_REQUIRE([_LT_AC_SYS_COMPILER])dnl
105 _LT_AC_PROG_ECHO_BACKSLASH
106 -
107 -case $host_os in
108 -aix3*)
109 - # AIX sometimes has problems with the GCC collect2 program. For some
110 - # reason, if we set the COLLECT_NAMES environment variable, the problems
111 - # vanish in a puff of smoke.
112 - if test "X${COLLECT_NAMES+set}" != Xset; then
113 - COLLECT_NAMES=
114 - export COLLECT_NAMES
115 +# Only perform the check for file, if the check method requires it
116 +case $deplibs_check_method in
117 +file_magic*)
118 + if test "$file_magic_cmd" = '$MAGIC_CMD'; then
119 + AC_PATH_MAGIC
120 fi
121 ;;
122 esac
123
124 -# Sed substitution that helps us do robust quoting. It backslashifies
125 -# metacharacters that are still active within double-quoted strings.
126 -Xsed='sed -e 1s/^X//'
127 -[sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g']
128 -
129 -# Same as above, but do not quote variable references.
130 -[double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g']
131 -
132 -# Sed substitution to delay expansion of an escaped shell variable in a
133 -# double_quote_subst'ed string.
134 -delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
135 -
136 -# Sed substitution to avoid accidental globbing in evaled expressions
137 -no_glob_subst='s/\*/\\\*/g'
138 -
139 -# Constants:
140 -rm="rm -f"
141 -
142 -# Global variables:
143 -default_ofile=libtool
144 -can_build_shared=yes
145 -
146 -# All known linkers require a `.a' archive for static linking (except MSVC,
147 -# which needs '.lib').
148 -libext=a
149 -ltmain="$ac_aux_dir/ltmain.sh"
150 -ofile="$default_ofile"
151 -with_gnu_ld="$lt_cv_prog_gnu_ld"
152 -
153 -AC_CHECK_TOOL(AR, ar, false)
154 AC_CHECK_TOOL(RANLIB, ranlib, :)
155 AC_CHECK_TOOL(STRIP, strip, :)
156
157 -old_CC="$CC"
158 -old_CFLAGS="$CFLAGS"
159 +ifdef([AC_PROVIDE_AC_LIBTOOL_DLOPEN], enable_dlopen=yes, enable_dlopen=no)
160 +ifdef([AC_PROVIDE_AC_LIBTOOL_WIN32_DLL],
161 +enable_win32_dll=yes, enable_win32_dll=no)
162
163 -# Set sane defaults for various variables
164 -test -z "$AR" && AR=ar
165 -test -z "$AR_FLAGS" && AR_FLAGS=cru
166 -test -z "$AS" && AS=as
167 -test -z "$CC" && CC=cc
168 -test -z "$LTCC" && LTCC=$CC
169 -test -z "$DLLTOOL" && DLLTOOL=dlltool
170 -test -z "$LD" && LD=ld
171 -test -z "$LN_S" && LN_S="ln -s"
172 -test -z "$MAGIC_CMD" && MAGIC_CMD=file
173 -test -z "$NM" && NM=nm
174 -test -z "$SED" && SED=sed
175 -test -z "$OBJDUMP" && OBJDUMP=objdump
176 -test -z "$RANLIB" && RANLIB=:
177 -test -z "$STRIP" && STRIP=:
178 -test -z "$ac_objext" && ac_objext=o
179 +AC_ARG_ENABLE(libtool-lock,
180 + [ --disable-libtool-lock avoid locking (might break parallel builds)])
181 +test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
182
183 -# Determine commands to create old-style static archives.
184 -old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
185 -old_postinstall_cmds='chmod 644 $oldlib'
186 -old_postuninstall_cmds=
187 +# Some flags need to be propagated to the compiler or linker for good
188 +# libtool support.
189 +case $host in
190 +*-*-irix6*)
191 + # Find out which ABI we are using.
192 + echo '[#]line __oline__ "configure"' > conftest.$ac_ext
193 + if AC_TRY_EVAL(ac_compile); then
194 + case `/usr/bin/file conftest.$ac_objext` in
195 + *32-bit*)
196 + LD="${LD-ld} -32"
197 + ;;
198 + *N32*)
199 + LD="${LD-ld} -n32"
200 + ;;
201 + *64-bit*)
202 + LD="${LD-ld} -64"
203 + ;;
204 + esac
205 + fi
206 + rm -rf conftest*
207 + ;;
208
209 -if test -n "$RANLIB"; then
210 - case $host_os in
211 - openbsd*)
212 - old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
213 - ;;
214 - *)
215 - old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
216 - ;;
217 - esac
218 - old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
219 -fi
220 +*-*-sco3.2v5*)
221 + # On SCO OpenServer 5, we need -belf to get full-featured binaries.
222 + SAVE_CFLAGS="$CFLAGS"
223 + CFLAGS="$CFLAGS -belf"
224 + AC_CACHE_CHECK([whether the C compiler needs -belf], lt_cv_cc_needs_belf,
225 + [AC_LANG_SAVE
226 + AC_LANG_C
227 + AC_TRY_LINK([],[],[lt_cv_cc_needs_belf=yes],[lt_cv_cc_needs_belf=no])
228 + AC_LANG_RESTORE])
229 + if test x"$lt_cv_cc_needs_belf" != x"yes"; then
230 + # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
231 + CFLAGS="$SAVE_CFLAGS"
232 + fi
233 + ;;
234
235 -_LT_CC_BASENAME([$compiler])
236 +ifdef([AC_PROVIDE_AC_LIBTOOL_WIN32_DLL],
237 +[*-*-cygwin* | *-*-mingw* | *-*-pw32*)
238 + AC_CHECK_TOOL(DLLTOOL, dlltool, false)
239 + AC_CHECK_TOOL(AS, as, false)
240 + AC_CHECK_TOOL(OBJDUMP, objdump, false)
241
242 -# Only perform the check for file, if the check method requires it
243 -case $deplibs_check_method in
244 -file_magic*)
245 - if test "$file_magic_cmd" = '$MAGIC_CMD'; then
246 - AC_PATH_MAGIC
247 - fi
248 + # recent cygwin and mingw systems supply a stub DllMain which the user
249 + # can override, but on older systems we have to supply one
250 + AC_CACHE_CHECK([if libtool should supply DllMain function], lt_cv_need_dllmain,
251 + [AC_TRY_LINK([],
252 + [extern int __attribute__((__stdcall__)) DllMain(void*, int, void*);
253 + DllMain (0, 0, 0);],
254 + [lt_cv_need_dllmain=no],[lt_cv_need_dllmain=yes])])
255 +
256 + case $host/$CC in
257 + *-*-cygwin*/gcc*-mno-cygwin*|*-*-mingw*)
258 + # old mingw systems require "-dll" to link a DLL, while more recent ones
259 + # require "-mdll"
260 + SAVE_CFLAGS="$CFLAGS"
261 + CFLAGS="$CFLAGS -mdll"
262 + AC_CACHE_CHECK([how to link DLLs], lt_cv_cc_dll_switch,
263 + [AC_TRY_LINK([], [], [lt_cv_cc_dll_switch=-mdll],[lt_cv_cc_dll_switch=-dll])])
264 + CFLAGS="$SAVE_CFLAGS" ;;
265 + *-*-cygwin* | *-*-pw32*)
266 + # cygwin systems need to pass --dll to the linker, and not link
267 + # crt.o which will require a WinMain@16 definition.
268 + lt_cv_cc_dll_switch="-Wl,--dll -nostartfiles" ;;
269 + esac
270 ;;
271 + ])
272 esac
273
274 -AC_PROVIDE_IFELSE([AC_LIBTOOL_DLOPEN], enable_dlopen=yes, enable_dlopen=no)
275 -AC_PROVIDE_IFELSE([AC_LIBTOOL_WIN32_DLL],
276 -enable_win32_dll=yes, enable_win32_dll=no)
277 -
278 -AC_ARG_ENABLE([libtool-lock],
279 - [AC_HELP_STRING([--disable-libtool-lock],
280 - [avoid locking (might break parallel builds)])])
281 -test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
282 +_LT_AC_LTCONFIG_HACK
283
284 -AC_ARG_WITH([pic],
285 - [AC_HELP_STRING([--with-pic],
286 - [try to use only PIC/non-PIC objects @<:@default=use both@:>@])],
287 - [pic_mode="$withval"],
288 - [pic_mode=default])
289 -test -z "$pic_mode" && pic_mode=default
290 +])
291
292 -# Use C for the default configuration in the libtool script
293 -tagname=
294 -AC_LIBTOOL_LANG_C_CONFIG
295 -_LT_AC_TAGCONFIG
296 -])# AC_LIBTOOL_SETUP
297 +# AC_LIBTOOL_HEADER_ASSERT
298 +# ------------------------
299 +AC_DEFUN([AC_LIBTOOL_HEADER_ASSERT],
300 +[AC_CACHE_CHECK([whether $CC supports assert without backlinking],
301 + [lt_cv_func_assert_works],
302 + [case $host in
303 + *-*-solaris*)
304 + if test "$GCC" = yes && test "$with_gnu_ld" != yes; then
305 + case `$CC --version 2>/dev/null` in
306 + [[12]].*) lt_cv_func_assert_works=no ;;
307 + *) lt_cv_func_assert_works=yes ;;
308 + esac
309 + fi
310 + ;;
311 + esac])
312
313 +if test "x$lt_cv_func_assert_works" = xyes; then
314 + AC_CHECK_HEADERS(assert.h)
315 +fi
316 +])# AC_LIBTOOL_HEADER_ASSERT
317
318 -# _LT_AC_SYS_COMPILER
319 -# -------------------
320 -AC_DEFUN([_LT_AC_SYS_COMPILER],
321 -[AC_REQUIRE([AC_PROG_CC])dnl
322 +# _LT_AC_CHECK_DLFCN
323 +# --------------------
324 +AC_DEFUN([_LT_AC_CHECK_DLFCN],
325 +[AC_CHECK_HEADERS(dlfcn.h)
326 +])# _LT_AC_CHECK_DLFCN
327
328 -# If no C compiler was specified, use CC.
329 -LTCC=${LTCC-"$CC"}
330 +# AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE
331 +# ---------------------------------
332 +AC_DEFUN([AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE],
333 +[AC_REQUIRE([AC_CANONICAL_HOST])
334 +AC_REQUIRE([AC_PROG_NM])
335 +AC_REQUIRE([AC_OBJEXT])
336 +# Check for command to grab the raw symbol name followed by C symbol from nm.
337 +AC_MSG_CHECKING([command to parse $NM output])
338 +AC_CACHE_VAL([lt_cv_sys_global_symbol_pipe], [dnl
339
340 -# Allow CC to be a program name with arguments.
341 -compiler=$CC
342 -])# _LT_AC_SYS_COMPILER
343 +# These are sane defaults that work on at least a few old systems.
344 +# [They come from Ultrix. What could be older than Ultrix?!! ;)]
345
346 +# Character class describing NM global symbol codes.
347 +symcode='[[BCDEGRST]]'
348
349 -# _LT_CC_BASENAME(CC)
350 -# -------------------
351 -# Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
352 -AC_DEFUN([_LT_CC_BASENAME],
353 -[for cc_temp in $1""; do
354 - case $cc_temp in
355 - compile | *[[\\/]]compile | ccache | *[[\\/]]ccache ) ;;
356 - distcc | *[[\\/]]distcc | purify | *[[\\/]]purify ) ;;
357 - \-*) ;;
358 - *) break;;
359 - esac
360 -done
361 -cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
362 -])
363 +# Regexp to match symbols that can be accessed directly from C.
364 +sympat='\([[_A-Za-z]][[_A-Za-z0-9]]*\)'
365
366 +# Transform the above into a raw symbol and a C symbol.
367 +symxfrm='\1 \2\3 \3'
368
369 -# _LT_COMPILER_BOILERPLATE
370 -# ------------------------
371 -# Check for compiler boilerplate output or warnings with
372 -# the simple compiler test code.
373 -AC_DEFUN([_LT_COMPILER_BOILERPLATE],
374 -[ac_outfile=conftest.$ac_objext
375 -printf "$lt_simple_compile_test_code" >conftest.$ac_ext
376 -eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
377 -_lt_compiler_boilerplate=`cat conftest.err`
378 -$rm conftest*
379 -])# _LT_COMPILER_BOILERPLATE
380 -
381 -
382 -# _LT_LINKER_BOILERPLATE
383 -# ----------------------
384 -# Check for linker boilerplate output or warnings with
385 -# the simple link test code.
386 -AC_DEFUN([_LT_LINKER_BOILERPLATE],
387 -[ac_outfile=conftest.$ac_objext
388 -printf "$lt_simple_link_test_code" >conftest.$ac_ext
389 -eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
390 -_lt_linker_boilerplate=`cat conftest.err`
391 -$rm conftest*
392 -])# _LT_LINKER_BOILERPLATE
393 -
394 -
395 -# _LT_AC_SYS_LIBPATH_AIX
396 -# ----------------------
397 -# Links a minimal program and checks the executable
398 -# for the system default hardcoded library path. In most cases,
399 -# this is /usr/lib:/lib, but when the MPI compilers are used
400 -# the location of the communication and MPI libs are included too.
401 -# If we don't find anything, use the default library path according
402 -# to the aix ld manual.
403 -AC_DEFUN([_LT_AC_SYS_LIBPATH_AIX],
404 -[AC_LINK_IFELSE(AC_LANG_PROGRAM,[
405 -aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
406 -}'`
407 -# Check for a 64-bit object if we didn't find anything.
408 -if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
409 -}'`; fi],[])
410 -if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
411 -])# _LT_AC_SYS_LIBPATH_AIX
412 -
413 -
414 -# _LT_AC_SHELL_INIT(ARG)
415 -# ----------------------
416 -AC_DEFUN([_LT_AC_SHELL_INIT],
417 -[ifdef([AC_DIVERSION_NOTICE],
418 - [AC_DIVERT_PUSH(AC_DIVERSION_NOTICE)],
419 - [AC_DIVERT_PUSH(NOTICE)])
420 -$1
421 -AC_DIVERT_POP
422 -])# _LT_AC_SHELL_INIT
423 +# Transform an extracted symbol line into a proper C declaration
424 +lt_cv_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern char \1;/p'"
425
426 +# Transform an extracted symbol line into symbol name and symbol address
427 +lt_cv_global_symbol_to_c_name_address="sed -n -e 's/^: \([[^ ]]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode \([[^ ]]*\) \([[^ ]]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
428
429 -# _LT_AC_PROG_ECHO_BACKSLASH
430 -# --------------------------
431 -# Add some code to the start of the generated configure script which
432 -# will find an echo command which doesn't interpret backslashes.
433 -AC_DEFUN([_LT_AC_PROG_ECHO_BACKSLASH],
434 -[_LT_AC_SHELL_INIT([
435 -# Check that we are running under the correct shell.
436 -SHELL=${CONFIG_SHELL-/bin/sh}
437 +# Define system-specific variables.
438 +case $host_os in
439 +aix*)
440 + symcode='[[BCDT]]'
441 + ;;
442 +cygwin* | mingw* | pw32*)
443 + symcode='[[ABCDGISTW]]'
444 + ;;
445 +hpux*) # Its linker distinguishes data from code symbols
446 + lt_cv_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern char \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
447 + lt_cv_global_symbol_to_c_name_address="sed -n -e 's/^: \([[^ ]]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([[^ ]]*\) \([[^ ]]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
448 + ;;
449 +irix* | nonstopux*)
450 + symcode='[[BCDEGRST]]'
451 + ;;
452 +osf*)
453 + symcode='[[BCDEGQRST]]'
454 + ;;
455 +solaris* | sysv5*)
456 + symcode='[[BDT]]'
457 + ;;
458 +sysv4)
459 + symcode='[[DFNSTU]]'
460 + ;;
461 +esac
462
463 -case X$ECHO in
464 -X*--fallback-echo)
465 - # Remove one level of quotation (which was required for Make).
466 - ECHO=`echo "$ECHO" | sed 's,\\\\\[$]\\[$]0,'[$]0','`
467 +# Handle CRLF in mingw tool chain
468 +opt_cr=
469 +case $host_os in
470 +mingw*)
471 + opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
472 ;;
473 esac
474
475 -echo=${ECHO-echo}
476 -if test "X[$]1" = X--no-reexec; then
477 - # Discard the --no-reexec flag, and continue.
478 - shift
479 -elif test "X[$]1" = X--fallback-echo; then
480 - # Avoid inline document here, it may be left over
481 - :
482 -elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
483 - # Yippee, $echo works!
484 - :
485 -else
486 - # Restart under the correct shell.
487 - exec $SHELL "[$]0" --no-reexec ${1+"[$]@"}
488 +# If we're using GNU nm, then use its standard symbol codes.
489 +if $NM -V 2>&1 | egrep '(GNU|with BFD)' > /dev/null; then
490 + symcode='[[ABCDGISTW]]'
491 fi
492
493 -if test "X[$]1" = X--fallback-echo; then
494 - # used as fallback echo
495 - shift
496 - cat <<EOF
497 -[$]*
498 -EOF
499 - exit 0
500 -fi
501 +# Try without a prefix undercore, then with it.
502 +for ac_symprfx in "" "_"; do
503
504 -# The HP-UX ksh and POSIX shell print the target directory to stdout
505 -# if CDPATH is set.
506 -(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
507 + # Write the raw and C identifiers.
508 +lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[[ ]]\($symcode$symcode*\)[[ ]][[ ]]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
509
510 -if test -z "$ECHO"; then
511 -if test "X${echo_test_string+set}" != Xset; then
512 -# find a string as large as possible, as long as the shell can cope with it
513 - for cmd in 'sed 50q "[$]0"' 'sed 20q "[$]0"' 'sed 10q "[$]0"' 'sed 2q "[$]0"' 'echo test'; do
514 - # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
515 - if (echo_test_string=`eval $cmd`) 2>/dev/null &&
516 - echo_test_string=`eval $cmd` &&
517 - (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
518 - then
519 - break
520 - fi
521 - done
522 -fi
523 + # Check to see that the pipe works correctly.
524 + pipe_works=no
525 + rm -f conftest*
526 + cat > conftest.$ac_ext <<EOF
527 +#ifdef __cplusplus
528 +extern "C" {
529 +#endif
530 +char nm_test_var;
531 +void nm_test_func(){}
532 +#ifdef __cplusplus
533 +}
534 +#endif
535 +int main(){nm_test_var='a';nm_test_func();return(0);}
536 +EOF
537
538 -if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
539 - echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
540 - test "X$echo_testing_string" = "X$echo_test_string"; then
541 - :
542 -else
543 - # The Solaris, AIX, and Digital Unix default echo programs unquote
544 - # backslashes. This makes it impossible to quote backslashes using
545 - # echo "$something" | sed 's/\\/\\\\/g'
546 - #
547 + if AC_TRY_EVAL(ac_compile); then
548 + # Now try to grab the symbols.
549 + nlist=conftest.nm
550 + if AC_TRY_EVAL(NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) && test -s "$nlist"; then
551 + # Try sorting and uniquifying the output.
552 + if sort "$nlist" | uniq > "$nlist"T; then
553 + mv -f "$nlist"T "$nlist"
554 + else
555 + rm -f "$nlist"T
556 + fi
557 +
558 + # Make sure that we snagged all the symbols we need.
559 + if egrep ' nm_test_var$' "$nlist" >/dev/null; then
560 + if egrep ' nm_test_func$' "$nlist" >/dev/null; then
561 + cat <<EOF > conftest.$ac_ext
562 +#ifdef __cplusplus
563 +extern "C" {
564 +#endif
565 +
566 +EOF
567 + # Now generate the symbol file.
568 + eval "$lt_cv_global_symbol_to_cdecl"' < "$nlist" >> conftest.$ac_ext'
569 +
570 + cat <<EOF >> conftest.$ac_ext
571 +#if defined (__STDC__) && __STDC__
572 +# define lt_ptr void *
573 +#else
574 +# define lt_ptr char *
575 +# define const
576 +#endif
577 +
578 +/* The mapping between symbol names and symbols. */
579 +const struct {
580 + const char *name;
581 + lt_ptr address;
582 +}
583 +lt_preloaded_symbols[[]] =
584 +{
585 +EOF
586 + sed "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr) \&\2},/" < "$nlist" >> conftest.$ac_ext
587 + cat <<\EOF >> conftest.$ac_ext
588 + {0, (lt_ptr) 0}
589 +};
590 +
591 +#ifdef __cplusplus
592 +}
593 +#endif
594 +EOF
595 + # Now try linking the two files.
596 + mv conftest.$ac_objext conftstm.$ac_objext
597 + save_LIBS="$LIBS"
598 + save_CFLAGS="$CFLAGS"
599 + LIBS="conftstm.$ac_objext"
600 + CFLAGS="$CFLAGS$no_builtin_flag"
601 + if AC_TRY_EVAL(ac_link) && test -s conftest$ac_exeext; then
602 + pipe_works=yes
603 + fi
604 + LIBS="$save_LIBS"
605 + CFLAGS="$save_CFLAGS"
606 + else
607 + echo "cannot find nm_test_func in $nlist" >&AC_FD_CC
608 + fi
609 + else
610 + echo "cannot find nm_test_var in $nlist" >&AC_FD_CC
611 + fi
612 + else
613 + echo "cannot run $lt_cv_sys_global_symbol_pipe" >&AC_FD_CC
614 + fi
615 + else
616 + echo "$progname: failed program was:" >&AC_FD_CC
617 + cat conftest.$ac_ext >&5
618 + fi
619 + rm -f conftest* conftst*
620 +
621 + # Do not use the global_symbol_pipe unless it works.
622 + if test "$pipe_works" = yes; then
623 + break
624 + else
625 + lt_cv_sys_global_symbol_pipe=
626 + fi
627 +done
628 +])
629 +global_symbol_pipe="$lt_cv_sys_global_symbol_pipe"
630 +if test -z "$lt_cv_sys_global_symbol_pipe"; then
631 + global_symbol_to_cdecl=
632 + global_symbol_to_c_name_address=
633 +else
634 + global_symbol_to_cdecl="$lt_cv_global_symbol_to_cdecl"
635 + global_symbol_to_c_name_address="$lt_cv_global_symbol_to_c_name_address"
636 +fi
637 +if test -z "$global_symbol_pipe$global_symbol_to_cdec$global_symbol_to_c_name_address";
638 +then
639 + AC_MSG_RESULT(failed)
640 +else
641 + AC_MSG_RESULT(ok)
642 +fi
643 +]) # AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE
644 +
645 +# _LT_AC_LIBTOOL_SYS_PATH_SEPARATOR
646 +# ---------------------------------
647 +AC_DEFUN([_LT_AC_LIBTOOL_SYS_PATH_SEPARATOR],
648 +[# Find the correct PATH separator. Usually this is `:', but
649 +# DJGPP uses `;' like DOS.
650 +if test "X${PATH_SEPARATOR+set}" != Xset; then
651 + UNAME=${UNAME-`uname 2>/dev/null`}
652 + case X$UNAME in
653 + *-DOS) lt_cv_sys_path_separator=';' ;;
654 + *) lt_cv_sys_path_separator=':' ;;
655 + esac
656 + PATH_SEPARATOR=$lt_cv_sys_path_separator
657 +fi
658 +])# _LT_AC_LIBTOOL_SYS_PATH_SEPARATOR
659 +
660 +# _LT_AC_PROG_ECHO_BACKSLASH
661 +# --------------------------
662 +# Add some code to the start of the generated configure script which
663 +# will find an echo command which doesn't interpret backslashes.
664 +AC_DEFUN([_LT_AC_PROG_ECHO_BACKSLASH],
665 +[ifdef([AC_DIVERSION_NOTICE], [AC_DIVERT_PUSH(AC_DIVERSION_NOTICE)],
666 + [AC_DIVERT_PUSH(NOTICE)])
667 +_LT_AC_LIBTOOL_SYS_PATH_SEPARATOR
668 +
669 +# Check that we are running under the correct shell.
670 +SHELL=${CONFIG_SHELL-/bin/sh}
671 +
672 +case X$ECHO in
673 +X*--fallback-echo)
674 + # Remove one level of quotation (which was required for Make).
675 + ECHO=`echo "$ECHO" | sed 's,\\\\\[$]\\[$]0,'[$]0','`
676 + ;;
677 +esac
678 +
679 +echo=${ECHO-echo}
680 +if test "X[$]1" = X--no-reexec; then
681 + # Discard the --no-reexec flag, and continue.
682 + shift
683 +elif test "X[$]1" = X--fallback-echo; then
684 + # Avoid inline document here, it may be left over
685 + :
686 +elif test "X`($echo '\t') 2>/dev/null`" = 'X\t'; then
687 + # Yippee, $echo works!
688 + :
689 +else
690 + # Restart under the correct shell.
691 + exec $SHELL "[$]0" --no-reexec ${1+"[$]@"}
692 +fi
693 +
694 +if test "X[$]1" = X--fallback-echo; then
695 + # used as fallback echo
696 + shift
697 + cat <<EOF
698 +$*
699 +EOF
700 + exit 0
701 +fi
702 +
703 +# The HP-UX ksh and POSIX shell print the target directory to stdout
704 +# if CDPATH is set.
705 +if test "X${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
706 +
707 +if test -z "$ECHO"; then
708 +if test "X${echo_test_string+set}" != Xset; then
709 +# find a string as large as possible, as long as the shell can cope with it
710 + for cmd in 'sed 50q "[$]0"' 'sed 20q "[$]0"' 'sed 10q "[$]0"' 'sed 2q "[$]0"' 'echo test'; do
711 + # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
712 + if (echo_test_string="`eval $cmd`") 2>/dev/null &&
713 + echo_test_string="`eval $cmd`" &&
714 + (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
715 + then
716 + break
717 + fi
718 + done
719 +fi
720 +
721 +if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
722 + echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
723 + test "X$echo_testing_string" = "X$echo_test_string"; then
724 + :
725 +else
726 + # The Solaris, AIX, and Digital Unix default echo programs unquote
727 + # backslashes. This makes it impossible to quote backslashes using
728 + # echo "$something" | sed 's/\\/\\\\/g'
729 + #
730 # So, first we look for a working echo in the user's PATH.
731
732 - lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
733 + IFS="${IFS= }"; save_ifs="$IFS"; IFS=$PATH_SEPARATOR
734 for dir in $PATH /usr/ucb; do
735 - IFS="$lt_save_ifs"
736 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
737 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
738 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
739 @@ -1250,7 +1313,7 @@
740 break
741 fi
742 done
743 - IFS="$lt_save_ifs"
744 + IFS="$save_ifs"
745
746 if test "X$echo" = Xecho; then
747 # We didn't find a better echo, so look for alternatives.
748 @@ -1323,353 +1386,38 @@
749 fi
750
751 AC_SUBST(ECHO)
752 -])])# _LT_AC_PROG_ECHO_BACKSLASH
753 -
754 -
755 -# _LT_AC_LOCK
756 -# -----------
757 -AC_DEFUN([_LT_AC_LOCK],
758 -[AC_ARG_ENABLE([libtool-lock],
759 - [AC_HELP_STRING([--disable-libtool-lock],
760 - [avoid locking (might break parallel builds)])])
761 -test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
762 -
763 -# Some flags need to be propagated to the compiler or linker for good
764 -# libtool support.
765 -case $host in
766 -ia64-*-hpux*)
767 - # Find out which ABI we are using.
768 - echo 'int i;' > conftest.$ac_ext
769 - if AC_TRY_EVAL(ac_compile); then
770 - case `/usr/bin/file conftest.$ac_objext` in
771 - *ELF-32*)
772 - HPUX_IA64_MODE="32"
773 - ;;
774 - *ELF-64*)
775 - HPUX_IA64_MODE="64"
776 - ;;
777 - esac
778 - fi
779 - rm -rf conftest*
780 - ;;
781 -*-*-irix6*)
782 - # Find out which ABI we are using.
783 - echo '[#]line __oline__ "configure"' > conftest.$ac_ext
784 - if AC_TRY_EVAL(ac_compile); then
785 - if test "$lt_cv_prog_gnu_ld" = yes; then
786 - case `/usr/bin/file conftest.$ac_objext` in
787 - *32-bit*)
788 - LD="${LD-ld} -melf32bsmip"
789 - ;;
790 - *N32*)
791 - LD="${LD-ld} -melf32bmipn32"
792 - ;;
793 - *64-bit*)
794 - LD="${LD-ld} -melf64bmip"
795 - ;;
796 - esac
797 - else
798 - case `/usr/bin/file conftest.$ac_objext` in
799 - *32-bit*)
800 - LD="${LD-ld} -32"
801 - ;;
802 - *N32*)
803 - LD="${LD-ld} -n32"
804 - ;;
805 - *64-bit*)
806 - LD="${LD-ld} -64"
807 - ;;
808 - esac
809 - fi
810 - fi
811 - rm -rf conftest*
812 - ;;
813 -
814 -x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
815 - # Find out which ABI we are using.
816 - echo 'int i;' > conftest.$ac_ext
817 - if AC_TRY_EVAL(ac_compile); then
818 - case `/usr/bin/file conftest.o` in
819 - *32-bit*)
820 - case $host in
821 - x86_64-*linux*)
822 - LD="${LD-ld} -m elf_i386"
823 - ;;
824 - ppc64-*linux*|powerpc64-*linux*)
825 - LD="${LD-ld} -m elf32ppclinux"
826 - ;;
827 - s390x-*linux*)
828 - LD="${LD-ld} -m elf_s390"
829 - ;;
830 - sparc64-*linux*)
831 - LD="${LD-ld} -m elf32_sparc"
832 - ;;
833 - esac
834 - ;;
835 - *64-bit*)
836 - case $host in
837 - x86_64-*linux*)
838 - LD="${LD-ld} -m elf_x86_64"
839 - ;;
840 - ppc*-*linux*|powerpc*-*linux*)
841 - LD="${LD-ld} -m elf64ppc"
842 - ;;
843 - s390*-*linux*)
844 - LD="${LD-ld} -m elf64_s390"
845 - ;;
846 - sparc*-*linux*)
847 - LD="${LD-ld} -m elf64_sparc"
848 - ;;
849 - esac
850 - ;;
851 - esac
852 - fi
853 - rm -rf conftest*
854 - ;;
855 -
856 -*-*-sco3.2v5*)
857 - # On SCO OpenServer 5, we need -belf to get full-featured binaries.
858 - SAVE_CFLAGS="$CFLAGS"
859 - CFLAGS="$CFLAGS -belf"
860 - AC_CACHE_CHECK([whether the C compiler needs -belf], lt_cv_cc_needs_belf,
861 - [AC_LANG_PUSH(C)
862 - AC_TRY_LINK([],[],[lt_cv_cc_needs_belf=yes],[lt_cv_cc_needs_belf=no])
863 - AC_LANG_POP])
864 - if test x"$lt_cv_cc_needs_belf" != x"yes"; then
865 - # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
866 - CFLAGS="$SAVE_CFLAGS"
867 - fi
868 - ;;
869 -AC_PROVIDE_IFELSE([AC_LIBTOOL_WIN32_DLL],
870 -[*-*-cygwin* | *-*-mingw* | *-*-pw32*)
871 - AC_CHECK_TOOL(DLLTOOL, dlltool, false)
872 - AC_CHECK_TOOL(AS, as, false)
873 - AC_CHECK_TOOL(OBJDUMP, objdump, false)
874 - ;;
875 - ])
876 -esac
877 -
878 -need_locks="$enable_libtool_lock"
879 -
880 -])# _LT_AC_LOCK
881 -
882 -
883 -# AC_LIBTOOL_COMPILER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS,
884 -# [OUTPUT-FILE], [ACTION-SUCCESS], [ACTION-FAILURE])
885 -# ----------------------------------------------------------------
886 -# Check whether the given compiler option works
887 -AC_DEFUN([AC_LIBTOOL_COMPILER_OPTION],
888 -[AC_REQUIRE([LT_AC_PROG_SED])
889 -AC_CACHE_CHECK([$1], [$2],
890 - [$2=no
891 - ifelse([$4], , [ac_outfile=conftest.$ac_objext], [ac_outfile=$4])
892 - printf "$lt_simple_compile_test_code" > conftest.$ac_ext
893 - lt_compiler_flag="$3"
894 - # Insert the option either (1) after the last *FLAGS variable, or
895 - # (2) before a word containing "conftest.", or (3) at the end.
896 - # Note that $ac_compile itself does not contain backslashes and begins
897 - # with a dollar sign (not a hyphen), so the echo should work correctly.
898 - # The option is referenced via a variable to avoid confusing sed.
899 - lt_compile=`echo "$ac_compile" | $SED \
900 - -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
901 - -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \
902 - -e 's:$: $lt_compiler_flag:'`
903 - (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&AS_MESSAGE_LOG_FD)
904 - (eval "$lt_compile" 2>conftest.err)
905 - ac_status=$?
906 - cat conftest.err >&AS_MESSAGE_LOG_FD
907 - echo "$as_me:__oline__: \$? = $ac_status" >&AS_MESSAGE_LOG_FD
908 - if (exit $ac_status) && test -s "$ac_outfile"; then
909 - # The compiler can only warn and ignore the option if not recognized
910 - # So say no if there are warnings other than the usual output.
911 - $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
912 - $SED '/^$/d' conftest.err >conftest.er2
913 - if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
914 - $2=yes
915 - fi
916 - fi
917 - $rm conftest*
918 -])
919 +AC_DIVERT_POP
920 +])# _LT_AC_PROG_ECHO_BACKSLASH
921
922 -if test x"[$]$2" = xyes; then
923 - ifelse([$5], , :, [$5])
924 +# _LT_AC_TRY_DLOPEN_SELF (ACTION-IF-TRUE, ACTION-IF-TRUE-W-USCORE,
925 +# ACTION-IF-FALSE, ACTION-IF-CROSS-COMPILING)
926 +# ------------------------------------------------------------------
927 +AC_DEFUN([_LT_AC_TRY_DLOPEN_SELF],
928 +[if test "$cross_compiling" = yes; then :
929 + [$4]
930 else
931 - ifelse([$6], , :, [$6])
932 -fi
933 -])# AC_LIBTOOL_COMPILER_OPTION
934 -
935 -
936 -# AC_LIBTOOL_LINKER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS,
937 -# [ACTION-SUCCESS], [ACTION-FAILURE])
938 -# ------------------------------------------------------------
939 -# Check whether the given compiler option works
940 -AC_DEFUN([AC_LIBTOOL_LINKER_OPTION],
941 -[AC_CACHE_CHECK([$1], [$2],
942 - [$2=no
943 - save_LDFLAGS="$LDFLAGS"
944 - LDFLAGS="$LDFLAGS $3"
945 - printf "$lt_simple_link_test_code" > conftest.$ac_ext
946 - if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
947 - # The linker can only warn and ignore the option if not recognized
948 - # So say no if there are warnings
949 - if test -s conftest.err; then
950 - # Append any errors to the config.log.
951 - cat conftest.err 1>&AS_MESSAGE_LOG_FD
952 - $echo "X$_lt_linker_boilerplate" | $Xsed > conftest.exp
953 - $SED '/^$/d' conftest.err >conftest.er2
954 - if diff conftest.exp conftest.er2 >/dev/null; then
955 - $2=yes
956 - fi
957 - else
958 - $2=yes
959 - fi
960 - fi
961 - $rm conftest*
962 - LDFLAGS="$save_LDFLAGS"
963 -])
964 + AC_REQUIRE([_LT_AC_CHECK_DLFCN])dnl
965 + lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
966 + lt_status=$lt_dlunknown
967 + cat > conftest.$ac_ext <<EOF
968 +[#line __oline__ "configure"
969 +#include "confdefs.h"
970
971 -if test x"[$]$2" = xyes; then
972 - ifelse([$4], , :, [$4])
973 -else
974 - ifelse([$5], , :, [$5])
975 -fi
976 -])# AC_LIBTOOL_LINKER_OPTION
977 +#if HAVE_DLFCN_H
978 +#include <dlfcn.h>
979 +#endif
980
981 +#include <stdio.h>
982
983 -# AC_LIBTOOL_SYS_MAX_CMD_LEN
984 -# --------------------------
985 -AC_DEFUN([AC_LIBTOOL_SYS_MAX_CMD_LEN],
986 -[# find the maximum length of command line arguments
987 -AC_MSG_CHECKING([the maximum length of command line arguments])
988 -AC_CACHE_VAL([lt_cv_sys_max_cmd_len], [dnl
989 - i=0
990 - teststring="ABCD"
991 -
992 - case $build_os in
993 - msdosdjgpp*)
994 - # On DJGPP, this test can blow up pretty badly due to problems in libc
995 - # (any single argument exceeding 2000 bytes causes a buffer overrun
996 - # during glob expansion). Even if it were fixed, the result of this
997 - # check would be larger than it should be.
998 - lt_cv_sys_max_cmd_len=12288; # 12K is about right
999 - ;;
1000 -
1001 - gnu*)
1002 - # Under GNU Hurd, this test is not required because there is
1003 - # no limit to the length of command line arguments.
1004 - # Libtool will interpret -1 as no limit whatsoever
1005 - lt_cv_sys_max_cmd_len=-1;
1006 - ;;
1007 -
1008 - cygwin* | mingw*)
1009 - # On Win9x/ME, this test blows up -- it succeeds, but takes
1010 - # about 5 minutes as the teststring grows exponentially.
1011 - # Worse, since 9x/ME are not pre-emptively multitasking,
1012 - # you end up with a "frozen" computer, even though with patience
1013 - # the test eventually succeeds (with a max line length of 256k).
1014 - # Instead, let's just punt: use the minimum linelength reported by
1015 - # all of the supported platforms: 8192 (on NT/2K/XP).
1016 - lt_cv_sys_max_cmd_len=8192;
1017 - ;;
1018 -
1019 - amigaos*)
1020 - # On AmigaOS with pdksh, this test takes hours, literally.
1021 - # So we just punt and use a minimum line length of 8192.
1022 - lt_cv_sys_max_cmd_len=8192;
1023 - ;;
1024 -
1025 - netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
1026 - # This has been around since 386BSD, at least. Likely further.
1027 - if test -x /sbin/sysctl; then
1028 - lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
1029 - elif test -x /usr/sbin/sysctl; then
1030 - lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
1031 - else
1032 - lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
1033 - fi
1034 - # And add a safety zone
1035 - lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
1036 - lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
1037 - ;;
1038 - osf*)
1039 - # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
1040 - # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
1041 - # nice to cause kernel panics so lets avoid the loop below.
1042 - # First set a reasonable default.
1043 - lt_cv_sys_max_cmd_len=16384
1044 - #
1045 - if test -x /sbin/sysconfig; then
1046 - case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
1047 - *1*) lt_cv_sys_max_cmd_len=-1 ;;
1048 - esac
1049 - fi
1050 - ;;
1051 - *)
1052 - # If test is not a shell built-in, we'll probably end up computing a
1053 - # maximum length that is only half of the actual maximum length, but
1054 - # we can't tell.
1055 - SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
1056 - while (test "X"`$SHELL [$]0 --fallback-echo "X$teststring" 2>/dev/null` \
1057 - = "XX$teststring") >/dev/null 2>&1 &&
1058 - new_result=`expr "X$teststring" : ".*" 2>&1` &&
1059 - lt_cv_sys_max_cmd_len=$new_result &&
1060 - test $i != 17 # 1/2 MB should be enough
1061 - do
1062 - i=`expr $i + 1`
1063 - teststring=$teststring$teststring
1064 - done
1065 - teststring=
1066 - # Add a significant safety factor because C++ compilers can tack on massive
1067 - # amounts of additional arguments before passing them to the linker.
1068 - # It appears as though 1/2 is a usable value.
1069 - lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
1070 - ;;
1071 - esac
1072 -])
1073 -if test -n $lt_cv_sys_max_cmd_len ; then
1074 - AC_MSG_RESULT($lt_cv_sys_max_cmd_len)
1075 -else
1076 - AC_MSG_RESULT(none)
1077 -fi
1078 -])# AC_LIBTOOL_SYS_MAX_CMD_LEN
1079 -
1080 -
1081 -# _LT_AC_CHECK_DLFCN
1082 -# --------------------
1083 -AC_DEFUN([_LT_AC_CHECK_DLFCN],
1084 -[AC_CHECK_HEADERS(dlfcn.h)dnl
1085 -])# _LT_AC_CHECK_DLFCN
1086 -
1087 -
1088 -# _LT_AC_TRY_DLOPEN_SELF (ACTION-IF-TRUE, ACTION-IF-TRUE-W-USCORE,
1089 -# ACTION-IF-FALSE, ACTION-IF-CROSS-COMPILING)
1090 -# ------------------------------------------------------------------
1091 -AC_DEFUN([_LT_AC_TRY_DLOPEN_SELF],
1092 -[AC_REQUIRE([_LT_AC_CHECK_DLFCN])dnl
1093 -if test "$cross_compiling" = yes; then :
1094 - [$4]
1095 -else
1096 - lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
1097 - lt_status=$lt_dlunknown
1098 - cat > conftest.$ac_ext <<EOF
1099 -[#line __oline__ "configure"
1100 -#include "confdefs.h"
1101 -
1102 -#if HAVE_DLFCN_H
1103 -#include <dlfcn.h>
1104 -#endif
1105 -
1106 -#include <stdio.h>
1107 -
1108 -#ifdef RTLD_GLOBAL
1109 -# define LT_DLGLOBAL RTLD_GLOBAL
1110 -#else
1111 -# ifdef DL_GLOBAL
1112 -# define LT_DLGLOBAL DL_GLOBAL
1113 -# else
1114 -# define LT_DLGLOBAL 0
1115 -# endif
1116 -#endif
1117 +#ifdef RTLD_GLOBAL
1118 +# define LT_DLGLOBAL RTLD_GLOBAL
1119 +#else
1120 +# ifdef DL_GLOBAL
1121 +# define LT_DLGLOBAL DL_GLOBAL
1122 +# else
1123 +# define LT_DLGLOBAL 0
1124 +# endif
1125 +#endif
1126
1127 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
1128 find out it does not work in some platform. */
1129 @@ -1714,7 +1462,7 @@
1130 }]
1131 EOF
1132 if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext} 2>/dev/null; then
1133 - (./conftest; exit; ) >&AS_MESSAGE_LOG_FD 2>/dev/null
1134 + (./conftest; exit; ) 2>/dev/null
1135 lt_status=$?
1136 case x$lt_status in
1137 x$lt_dlno_uscore) $1 ;;
1138 @@ -1729,12 +1477,10 @@
1139 rm -fr conftest*
1140 ])# _LT_AC_TRY_DLOPEN_SELF
1141
1142 -
1143 # AC_LIBTOOL_DLOPEN_SELF
1144 # -------------------
1145 AC_DEFUN([AC_LIBTOOL_DLOPEN_SELF],
1146 -[AC_REQUIRE([_LT_AC_CHECK_DLFCN])dnl
1147 -if test "x$enable_dlopen" != xyes; then
1148 +[if test "x$enable_dlopen" != xyes; then
1149 enable_dlopen=unknown
1150 enable_dlopen_self=unknown
1151 enable_dlopen_self_static=unknown
1152 @@ -1749,39 +1495,24 @@
1153 lt_cv_dlopen_self=yes
1154 ;;
1155
1156 - mingw* | pw32*)
1157 + cygwin* | mingw* | pw32*)
1158 lt_cv_dlopen="LoadLibrary"
1159 lt_cv_dlopen_libs=
1160 ;;
1161
1162 - cygwin*)
1163 - lt_cv_dlopen="dlopen"
1164 - lt_cv_dlopen_libs=
1165 - ;;
1166 -
1167 - darwin*)
1168 - # if libdl is installed we need to link against it
1169 - AC_CHECK_LIB([dl], [dlopen],
1170 - [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"],[
1171 - lt_cv_dlopen="dyld"
1172 - lt_cv_dlopen_libs=
1173 - lt_cv_dlopen_self=yes
1174 - ])
1175 - ;;
1176 -
1177 *)
1178 AC_CHECK_FUNC([shl_load],
1179 - [lt_cv_dlopen="shl_load"],
1180 + [lt_cv_dlopen="shl_load"],
1181 [AC_CHECK_LIB([dld], [shl_load],
1182 - [lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"],
1183 + [lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"],
1184 [AC_CHECK_FUNC([dlopen],
1185 [lt_cv_dlopen="dlopen"],
1186 [AC_CHECK_LIB([dl], [dlopen],
1187 - [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"],
1188 + [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"],
1189 [AC_CHECK_LIB([svld], [dlopen],
1190 - [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"],
1191 + [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"],
1192 [AC_CHECK_LIB([dld], [dld_link],
1193 - [lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"])
1194 + [lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"])
1195 ])
1196 ])
1197 ])
1198 @@ -1799,6 +1530,7 @@
1199 case $lt_cv_dlopen in
1200 dlopen)
1201 save_CPPFLAGS="$CPPFLAGS"
1202 + AC_REQUIRE([_LT_AC_CHECK_DLFCN])dnl
1203 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
1204
1205 save_LDFLAGS="$LDFLAGS"
1206 @@ -1842,1833 +1574,707 @@
1207 fi
1208 ])# AC_LIBTOOL_DLOPEN_SELF
1209
1210 +AC_DEFUN([_LT_AC_LTCONFIG_HACK],
1211 +[AC_REQUIRE([AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE])dnl
1212 +# Sed substitution that helps us do robust quoting. It backslashifies
1213 +# metacharacters that are still active within double-quoted strings.
1214 +Xsed='sed -e s/^X//'
1215 +sed_quote_subst='s/\([[\\"\\`$\\\\]]\)/\\\1/g'
1216
1217 -# AC_LIBTOOL_PROG_CC_C_O([TAGNAME])
1218 -# ---------------------------------
1219 -# Check to see if options -c and -o are simultaneously supported by compiler
1220 -AC_DEFUN([AC_LIBTOOL_PROG_CC_C_O],
1221 -[AC_REQUIRE([_LT_AC_SYS_COMPILER])dnl
1222 -AC_CACHE_CHECK([if $compiler supports -c -o file.$ac_objext],
1223 - [_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)],
1224 - [_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)=no
1225 - $rm -r conftest 2>/dev/null
1226 - mkdir conftest
1227 - cd conftest
1228 - mkdir out
1229 - printf "$lt_simple_compile_test_code" > conftest.$ac_ext
1230 -
1231 - lt_compiler_flag="-o out/conftest2.$ac_objext"
1232 - # Insert the option either (1) after the last *FLAGS variable, or
1233 - # (2) before a word containing "conftest.", or (3) at the end.
1234 - # Note that $ac_compile itself does not contain backslashes and begins
1235 - # with a dollar sign (not a hyphen), so the echo should work correctly.
1236 - lt_compile=`echo "$ac_compile" | $SED \
1237 - -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
1238 - -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \
1239 - -e 's:$: $lt_compiler_flag:'`
1240 - (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&AS_MESSAGE_LOG_FD)
1241 - (eval "$lt_compile" 2>out/conftest.err)
1242 - ac_status=$?
1243 - cat out/conftest.err >&AS_MESSAGE_LOG_FD
1244 - echo "$as_me:__oline__: \$? = $ac_status" >&AS_MESSAGE_LOG_FD
1245 - if (exit $ac_status) && test -s out/conftest2.$ac_objext
1246 - then
1247 - # The compiler can only warn and ignore the option if not recognized
1248 - # So say no if there are warnings
1249 - $echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp
1250 - $SED '/^$/d' out/conftest.err >out/conftest.er2
1251 - if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 >/dev/null; then
1252 - _LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes
1253 - fi
1254 - fi
1255 - chmod u+w . 2>&AS_MESSAGE_LOG_FD
1256 - $rm conftest*
1257 - # SGI C++ compiler will create directory out/ii_files/ for
1258 - # template instantiation
1259 - test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
1260 - $rm out/* && rmdir out
1261 - cd ..
1262 - rmdir conftest
1263 - $rm conftest*
1264 -])
1265 -])# AC_LIBTOOL_PROG_CC_C_O
1266 -
1267 +# Same as above, but do not quote variable references.
1268 +double_quote_subst='s/\([[\\"\\`\\\\]]\)/\\\1/g'
1269
1270 -# AC_LIBTOOL_SYS_HARD_LINK_LOCKS([TAGNAME])
1271 -# -----------------------------------------
1272 -# Check to see if we can do hard links to lock some files if needed
1273 -AC_DEFUN([AC_LIBTOOL_SYS_HARD_LINK_LOCKS],
1274 -[AC_REQUIRE([_LT_AC_LOCK])dnl
1275 +# Sed substitution to delay expansion of an escaped shell variable in a
1276 +# double_quote_subst'ed string.
1277 +delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
1278
1279 -hard_links="nottested"
1280 -if test "$_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)" = no && test "$need_locks" != no; then
1281 - # do not overwrite the value of need_locks provided by the user
1282 - AC_MSG_CHECKING([if we can lock with hard links])
1283 - hard_links=yes
1284 - $rm conftest*
1285 - ln conftest.a conftest.b 2>/dev/null && hard_links=no
1286 - touch conftest.a
1287 - ln conftest.a conftest.b 2>&5 || hard_links=no
1288 - ln conftest.a conftest.b 2>/dev/null && hard_links=no
1289 - AC_MSG_RESULT([$hard_links])
1290 - if test "$hard_links" = no; then
1291 - AC_MSG_WARN([`$CC' does not support `-c -o', so `make -j' may be unsafe])
1292 - need_locks=warn
1293 - fi
1294 -else
1295 - need_locks=no
1296 -fi
1297 -])# AC_LIBTOOL_SYS_HARD_LINK_LOCKS
1298 +# Constants:
1299 +rm="rm -f"
1300
1301 +# Global variables:
1302 +default_ofile=libtool
1303 +can_build_shared=yes
1304
1305 -# AC_LIBTOOL_OBJDIR
1306 -# -----------------
1307 -AC_DEFUN([AC_LIBTOOL_OBJDIR],
1308 -[AC_CACHE_CHECK([for objdir], [lt_cv_objdir],
1309 -[rm -f .libs 2>/dev/null
1310 -mkdir .libs 2>/dev/null
1311 -if test -d .libs; then
1312 - lt_cv_objdir=.libs
1313 -else
1314 - # MS-DOS does not allow filenames that begin with a dot.
1315 - lt_cv_objdir=_libs
1316 -fi
1317 -rmdir .libs 2>/dev/null])
1318 -objdir=$lt_cv_objdir
1319 -])# AC_LIBTOOL_OBJDIR
1320 +# All known linkers require a `.a' archive for static linking (except M$VC,
1321 +# which needs '.lib').
1322 +libext=a
1323 +ltmain="$ac_aux_dir/ltmain.sh"
1324 +ofile="$default_ofile"
1325 +with_gnu_ld="$lt_cv_prog_gnu_ld"
1326 +need_locks="$enable_libtool_lock"
1327
1328 +old_CC="$CC"
1329 +old_CFLAGS="$CFLAGS"
1330
1331 -# AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH([TAGNAME])
1332 -# ----------------------------------------------
1333 -# Check hardcoding attributes.
1334 -AC_DEFUN([AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH],
1335 -[AC_MSG_CHECKING([how to hardcode library paths into programs])
1336 -_LT_AC_TAGVAR(hardcode_action, $1)=
1337 -if test -n "$_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)" || \
1338 - test -n "$_LT_AC_TAGVAR(runpath_var, $1)" || \
1339 - test "X$_LT_AC_TAGVAR(hardcode_automatic, $1)" = "Xyes" ; then
1340 +# Set sane defaults for various variables
1341 +test -z "$AR" && AR=ar
1342 +test -z "$AR_FLAGS" && AR_FLAGS=cru
1343 +test -z "$AS" && AS=as
1344 +test -z "$CC" && CC=cc
1345 +test -z "$DLLTOOL" && DLLTOOL=dlltool
1346 +test -z "$LD" && LD=ld
1347 +test -z "$LN_S" && LN_S="ln -s"
1348 +test -z "$MAGIC_CMD" && MAGIC_CMD=file
1349 +test -z "$NM" && NM=nm
1350 +test -z "$OBJDUMP" && OBJDUMP=objdump
1351 +test -z "$RANLIB" && RANLIB=:
1352 +test -z "$STRIP" && STRIP=:
1353 +test -z "$ac_objext" && ac_objext=o
1354
1355 - # We can hardcode non-existant directories.
1356 - if test "$_LT_AC_TAGVAR(hardcode_direct, $1)" != no &&
1357 - # If the only mechanism to avoid hardcoding is shlibpath_var, we
1358 - # have to relink, otherwise we might link with an installed library
1359 - # when we should be linking with a yet-to-be-installed one
1360 - ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)" != no &&
1361 - test "$_LT_AC_TAGVAR(hardcode_minus_L, $1)" != no; then
1362 - # Linking always hardcodes the temporary library directory.
1363 - _LT_AC_TAGVAR(hardcode_action, $1)=relink
1364 - else
1365 - # We can link without hardcoding, and we can hardcode nonexisting dirs.
1366 - _LT_AC_TAGVAR(hardcode_action, $1)=immediate
1367 - fi
1368 +if test x"$host" != x"$build"; then
1369 + ac_tool_prefix=${host_alias}-
1370 else
1371 - # We cannot hardcode anything, or else we can only hardcode existing
1372 - # directories.
1373 - _LT_AC_TAGVAR(hardcode_action, $1)=unsupported
1374 + ac_tool_prefix=
1375 fi
1376 -AC_MSG_RESULT([$_LT_AC_TAGVAR(hardcode_action, $1)])
1377
1378 -if test "$_LT_AC_TAGVAR(hardcode_action, $1)" = relink; then
1379 - # Fast installation is not supported
1380 - enable_fast_install=no
1381 -elif test "$shlibpath_overrides_runpath" = yes ||
1382 - test "$enable_shared" = no; then
1383 - # Fast installation is not necessary
1384 - enable_fast_install=needless
1385 -fi
1386 -])# AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH
1387 +# Transform linux* to *-*-linux-gnu*, to support old configure scripts.
1388 +case $host_os in
1389 +linux-gnu*) ;;
1390 +linux*) host=`echo $host | sed 's/^\(.*-.*-linux\)\(.*\)$/\1-gnu\2/'`
1391 +esac
1392
1393 +case $host_os in
1394 +aix3*)
1395 + # AIX sometimes has problems with the GCC collect2 program. For some
1396 + # reason, if we set the COLLECT_NAMES environment variable, the problems
1397 + # vanish in a puff of smoke.
1398 + if test "X${COLLECT_NAMES+set}" != Xset; then
1399 + COLLECT_NAMES=
1400 + export COLLECT_NAMES
1401 + fi
1402 + ;;
1403 +esac
1404
1405 -# AC_LIBTOOL_SYS_LIB_STRIP
1406 -# ------------------------
1407 -AC_DEFUN([AC_LIBTOOL_SYS_LIB_STRIP],
1408 -[striplib=
1409 -old_striplib=
1410 -AC_MSG_CHECKING([whether stripping libraries is possible])
1411 -if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
1412 - test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
1413 - test -z "$striplib" && striplib="$STRIP --strip-unneeded"
1414 - AC_MSG_RESULT([yes])
1415 -else
1416 -# FIXME - insert some real tests, host_os isn't really good enough
1417 +# Determine commands to create old-style static archives.
1418 +old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
1419 +old_postinstall_cmds='chmod 644 $oldlib'
1420 +old_postuninstall_cmds=
1421 +
1422 +if test -n "$RANLIB"; then
1423 case $host_os in
1424 - darwin*)
1425 - if test -n "$STRIP" ; then
1426 - striplib="$STRIP -x"
1427 - AC_MSG_RESULT([yes])
1428 - else
1429 - AC_MSG_RESULT([no])
1430 -fi
1431 - ;;
1432 - *)
1433 - AC_MSG_RESULT([no])
1434 + openbsd*)
1435 + old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
1436 + ;;
1437 + *)
1438 + old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
1439 ;;
1440 esac
1441 + old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
1442 fi
1443 -])# AC_LIBTOOL_SYS_LIB_STRIP
1444
1445 +# Allow CC to be a program name with arguments.
1446 +set dummy $CC
1447 +compiler="[$]2"
1448
1449 -# AC_LIBTOOL_SYS_DYNAMIC_LINKER
1450 -# -----------------------------
1451 -# PORTME Fill in your ld.so characteristics
1452 -AC_DEFUN([AC_LIBTOOL_SYS_DYNAMIC_LINKER],
1453 -[AC_MSG_CHECKING([dynamic linker characteristics])
1454 -library_names_spec=
1455 -libname_spec='lib$name'
1456 -soname_spec=
1457 -shrext_cmds=".so"
1458 -postinstall_cmds=
1459 -postuninstall_cmds=
1460 -finish_cmds=
1461 -finish_eval=
1462 -shlibpath_var=
1463 -shlibpath_overrides_runpath=unknown
1464 -version_type=none
1465 -dynamic_linker="$host_os ld.so"
1466 -sys_lib_dlsearch_path_spec="/lib /usr/lib"
1467 -if test "$GCC" = yes; then
1468 - sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
1469 - if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
1470 - # if the path contains ";" then we assume it to be the separator
1471 - # otherwise default to the standard path separator (i.e. ":") - it is
1472 - # assumed that no part of a normal pathname contains ";" but that should
1473 - # okay in the real world where ";" in dirpaths is itself problematic.
1474 - sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
1475 - else
1476 - sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
1477 - fi
1478 +AC_MSG_CHECKING([for objdir])
1479 +rm -f .libs 2>/dev/null
1480 +mkdir .libs 2>/dev/null
1481 +if test -d .libs; then
1482 + objdir=.libs
1483 else
1484 - sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
1485 + # MS-DOS does not allow filenames that begin with a dot.
1486 + objdir=_libs
1487 fi
1488 -need_lib_prefix=unknown
1489 -hardcode_into_libs=no
1490 +rmdir .libs 2>/dev/null
1491 +AC_MSG_RESULT($objdir)
1492
1493 -# when you set need_version to no, make sure it does not cause -set_version
1494 -# flags to be left without arguments
1495 -need_version=unknown
1496
1497 -case $host_os in
1498 -aix3*)
1499 - version_type=linux
1500 - library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
1501 - shlibpath_var=LIBPATH
1502 +AC_ARG_WITH(pic,
1503 +[ --with-pic try to use only PIC/non-PIC objects [default=use both]],
1504 +pic_mode="$withval", pic_mode=default)
1505 +test -z "$pic_mode" && pic_mode=default
1506
1507 - # AIX 3 has no versioning support, so we append a major version to the name.
1508 - soname_spec='${libname}${release}${shared_ext}$major'
1509 - ;;
1510 +# We assume here that the value for lt_cv_prog_cc_pic will not be cached
1511 +# in isolation, and that seeing it set (from the cache) indicates that
1512 +# the associated values are set (in the cache) correctly too.
1513 +AC_MSG_CHECKING([for $compiler option to produce PIC])
1514 +AC_CACHE_VAL(lt_cv_prog_cc_pic,
1515 +[ lt_cv_prog_cc_pic=
1516 + lt_cv_prog_cc_shlib=
1517 + lt_cv_prog_cc_wl=
1518 + lt_cv_prog_cc_static=
1519 + lt_cv_prog_cc_no_builtin=
1520 + lt_cv_prog_cc_can_build_shared=$can_build_shared
1521
1522 -aix4* | aix5*)
1523 - version_type=linux
1524 - need_lib_prefix=no
1525 - need_version=no
1526 - hardcode_into_libs=yes
1527 - if test "$host_cpu" = ia64; then
1528 - # AIX 5 supports IA64
1529 - library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
1530 - shlibpath_var=LD_LIBRARY_PATH
1531 + if test "$GCC" = yes; then
1532 + lt_cv_prog_cc_wl='-Wl,'
1533 + lt_cv_prog_cc_static='-static'
1534 +
1535 + case $host_os in
1536 + aix*)
1537 + # Below there is a dirty hack to force normal static linking with -ldl
1538 + # The problem is because libdl dynamically linked with both libc and
1539 + # libC (AIX C++ library), which obviously doesn't included in libraries
1540 + # list by gcc. This cause undefined symbols with -static flags.
1541 + # This hack allows C programs to be linked with "-static -ldl", but
1542 + # not sure about C++ programs.
1543 + lt_cv_prog_cc_static="$lt_cv_prog_cc_static ${lt_cv_prog_cc_wl}-lC"
1544 + ;;
1545 + amigaos*)
1546 + # FIXME: we need at least 68020 code to build shared libraries, but
1547 + # adding the `-m68020' flag to GCC prevents building anything better,
1548 + # like `-m68040'.
1549 + lt_cv_prog_cc_pic='-m68020 -resident32 -malways-restore-a4'
1550 + ;;
1551 + beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
1552 + # PIC is the default for these OSes.
1553 + ;;
1554 + darwin* | rhapsody*)
1555 + # PIC is the default on this platform
1556 + # Common symbols not allowed in MH_DYLIB files
1557 + lt_cv_prog_cc_pic='-fno-common'
1558 + ;;
1559 + cygwin* | mingw* | pw32* | os2*)
1560 + # This hack is so that the source file can tell whether it is being
1561 + # built for inclusion in a dll (and should export symbols for example).
1562 + lt_cv_prog_cc_pic='-DDLL_EXPORT'
1563 + ;;
1564 + sysv4*MP*)
1565 + if test -d /usr/nec; then
1566 + lt_cv_prog_cc_pic=-Kconform_pic
1567 + fi
1568 + ;;
1569 + *)
1570 + lt_cv_prog_cc_pic='-fPIC'
1571 + ;;
1572 + esac
1573 else
1574 - # With GCC up to 2.95.x, collect2 would create an import file
1575 - # for dependence libraries. The import file would start with
1576 - # the line `#! .'. This would cause the generated library to
1577 - # depend on `.', always an invalid library. This was fixed in
1578 - # development snapshots of GCC prior to 3.0.
1579 + # PORTME Check for PIC flags for the system compiler.
1580 case $host_os in
1581 - aix4 | aix4.[[01]] | aix4.[[01]].*)
1582 - if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
1583 - echo ' yes '
1584 - echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
1585 - :
1586 + aix3* | aix4* | aix5*)
1587 + lt_cv_prog_cc_wl='-Wl,'
1588 + # All AIX code is PIC.
1589 + if test "$host_cpu" = ia64; then
1590 + # AIX 5 now supports IA64 processor
1591 + lt_cv_prog_cc_static='-Bstatic'
1592 else
1593 - can_build_shared=no
1594 + lt_cv_prog_cc_static='-bnso -bI:/lib/syscalls.exp'
1595 fi
1596 ;;
1597 - esac
1598 - # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
1599 - # soname into executable. Probably we can add versioning support to
1600 - # collect2, so additional links can be useful in future.
1601 - if test "$aix_use_runtimelinking" = yes; then
1602 - # If using run time linking (on AIX 4.2 or later) use lib<name>.so
1603 - # instead of lib<name>.a to let people know that these are not
1604 - # typical AIX shared libraries.
1605 - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
1606 - else
1607 - # We preserve .a as extension for shared libraries through AIX4.2
1608 - # and later when we are not doing run time linking.
1609 - library_names_spec='${libname}${release}.a $libname.a'
1610 - soname_spec='${libname}${release}${shared_ext}$major'
1611 - fi
1612 - shlibpath_var=LIBPATH
1613 - fi
1614 - ;;
1615
1616 -amigaos*)
1617 - library_names_spec='$libname.ixlibrary $libname.a'
1618 - # Create ${libname}_ixlibrary.a entries in /sys/libs.
1619 - 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'
1620 - ;;
1621 + hpux9* | hpux10* | hpux11*)
1622 + # Is there a better lt_cv_prog_cc_static that works with the bundled CC?
1623 + lt_cv_prog_cc_wl='-Wl,'
1624 + lt_cv_prog_cc_static="${lt_cv_prog_cc_wl}-a ${lt_cv_prog_cc_wl}archive"
1625 + lt_cv_prog_cc_pic='+Z'
1626 + ;;
1627
1628 -beos*)
1629 - library_names_spec='${libname}${shared_ext}'
1630 - dynamic_linker="$host_os ld.so"
1631 - shlibpath_var=LIBRARY_PATH
1632 - ;;
1633 + irix5* | irix6* | nonstopux*)
1634 + lt_cv_prog_cc_wl='-Wl,'
1635 + lt_cv_prog_cc_static='-non_shared'
1636 + # PIC (with -KPIC) is the default.
1637 + ;;
1638
1639 -bsdi[[45]]*)
1640 - version_type=linux
1641 - need_version=no
1642 - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
1643 - soname_spec='${libname}${release}${shared_ext}$major'
1644 - finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
1645 - shlibpath_var=LD_LIBRARY_PATH
1646 - sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
1647 - sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
1648 - # the default ld.so.conf also contains /usr/contrib/lib and
1649 - # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
1650 - # libtool to hard-code these into programs
1651 - ;;
1652 + cygwin* | mingw* | pw32* | os2*)
1653 + # This hack is so that the source file can tell whether it is being
1654 + # built for inclusion in a dll (and should export symbols for example).
1655 + lt_cv_prog_cc_pic='-DDLL_EXPORT'
1656 + ;;
1657
1658 -cygwin* | mingw* | pw32*)
1659 - version_type=windows
1660 - shrext_cmds=".dll"
1661 - need_version=no
1662 - need_lib_prefix=no
1663 + newsos6)
1664 + lt_cv_prog_cc_pic='-KPIC'
1665 + lt_cv_prog_cc_static='-Bstatic'
1666 + ;;
1667
1668 - case $GCC,$host_os in
1669 - yes,cygwin* | yes,mingw* | yes,pw32*)
1670 - library_names_spec='$libname.dll.a'
1671 - # DLL is installed to $(libdir)/../bin by postinstall_cmds
1672 - postinstall_cmds='base_file=`basename \${file}`~
1673 - dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
1674 - dldir=$destdir/`dirname \$dlpath`~
1675 - test -d \$dldir || mkdir -p \$dldir~
1676 - $install_prog $dir/$dlname \$dldir/$dlname~
1677 - chmod a+x \$dldir/$dlname'
1678 - postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
1679 - dlpath=$dir/\$dldll~
1680 - $rm \$dlpath'
1681 - shlibpath_overrides_runpath=yes
1682 + osf3* | osf4* | osf5*)
1683 + # All OSF/1 code is PIC.
1684 + lt_cv_prog_cc_wl='-Wl,'
1685 + lt_cv_prog_cc_static='-non_shared'
1686 + ;;
1687
1688 - case $host_os in
1689 - cygwin*)
1690 - # Cygwin DLLs use 'cyg' prefix rather than 'lib'
1691 - soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
1692 - sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
1693 + sco3.2v5*)
1694 + lt_cv_prog_cc_pic='-Kpic'
1695 + lt_cv_prog_cc_static='-dn'
1696 + lt_cv_prog_cc_shlib='-belf'
1697 ;;
1698 - mingw*)
1699 - # MinGW DLLs use traditional 'lib' prefix
1700 - soname_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
1701 - sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
1702 - if echo "$sys_lib_search_path_spec" | [grep ';[c-zC-Z]:/' >/dev/null]; then
1703 - # It is most probably a Windows format PATH printed by
1704 - # mingw gcc, but we are running on Cygwin. Gcc prints its search
1705 - # path with ; separators, and with drive letters. We can handle the
1706 - # drive letters (cygwin fileutils understands them), so leave them,
1707 - # especially as we might pass files found there to a mingw objdump,
1708 - # which wouldn't understand a cygwinified path. Ahh.
1709 - sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
1710 - else
1711 - sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
1712 +
1713 + solaris*)
1714 + lt_cv_prog_cc_pic='-KPIC'
1715 + lt_cv_prog_cc_static='-Bstatic'
1716 + lt_cv_prog_cc_wl='-Wl,'
1717 + ;;
1718 +
1719 + sunos4*)
1720 + lt_cv_prog_cc_pic='-PIC'
1721 + lt_cv_prog_cc_static='-Bstatic'
1722 + lt_cv_prog_cc_wl='-Qoption ld '
1723 + ;;
1724 +
1725 + sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
1726 + lt_cv_prog_cc_pic='-KPIC'
1727 + lt_cv_prog_cc_static='-Bstatic'
1728 + lt_cv_prog_cc_wl='-Wl,'
1729 + ;;
1730 +
1731 + uts4*)
1732 + lt_cv_prog_cc_pic='-pic'
1733 + lt_cv_prog_cc_static='-Bstatic'
1734 + ;;
1735 +
1736 + sysv4*MP*)
1737 + if test -d /usr/nec ;then
1738 + lt_cv_prog_cc_pic='-Kconform_pic'
1739 + lt_cv_prog_cc_static='-Bstatic'
1740 fi
1741 ;;
1742 - pw32*)
1743 - # pw32 DLLs use 'pw' prefix rather than 'lib'
1744 - library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
1745 +
1746 + *)
1747 + lt_cv_prog_cc_can_build_shared=no
1748 ;;
1749 esac
1750 - ;;
1751 + fi
1752 +])
1753 +if test -z "$lt_cv_prog_cc_pic"; then
1754 + AC_MSG_RESULT([none])
1755 +else
1756 + AC_MSG_RESULT([$lt_cv_prog_cc_pic])
1757
1758 - *)
1759 - library_names_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext} $libname.lib'
1760 - ;;
1761 - esac
1762 - dynamic_linker='Win32 ld.exe'
1763 - # FIXME: first we should search . and the directory the executable is in
1764 - shlibpath_var=PATH
1765 - ;;
1766 + # Check to make sure the pic_flag actually works.
1767 + AC_MSG_CHECKING([if $compiler PIC flag $lt_cv_prog_cc_pic works])
1768 + AC_CACHE_VAL(lt_cv_prog_cc_pic_works, [dnl
1769 + save_CFLAGS="$CFLAGS"
1770 + CFLAGS="$CFLAGS $lt_cv_prog_cc_pic -DPIC"
1771 + AC_TRY_COMPILE([], [], [dnl
1772 + case $host_os in
1773 + hpux9* | hpux10* | hpux11*)
1774 + # On HP-UX, both CC and GCC only warn that PIC is supported... then
1775 + # they create non-PIC objects. So, if there were any warnings, we
1776 + # assume that PIC is not supported.
1777 + if test -s conftest.err; then
1778 + lt_cv_prog_cc_pic_works=no
1779 + else
1780 + lt_cv_prog_cc_pic_works=yes
1781 + fi
1782 + ;;
1783 + *)
1784 + lt_cv_prog_cc_pic_works=yes
1785 + ;;
1786 + esac
1787 + ], [dnl
1788 + lt_cv_prog_cc_pic_works=no
1789 + ])
1790 + CFLAGS="$save_CFLAGS"
1791 + ])
1792
1793 -darwin* | rhapsody*)
1794 - dynamic_linker="$host_os dyld"
1795 - version_type=darwin
1796 - need_lib_prefix=no
1797 - need_version=no
1798 - library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
1799 - soname_spec='${libname}${release}${major}$shared_ext'
1800 - shlibpath_overrides_runpath=yes
1801 - shlibpath_var=DYLD_LIBRARY_PATH
1802 - shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
1803 - # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
1804 - if test "$GCC" = yes; then
1805 - sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
1806 + if test "X$lt_cv_prog_cc_pic_works" = Xno; then
1807 + lt_cv_prog_cc_pic=
1808 + lt_cv_prog_cc_can_build_shared=no
1809 else
1810 - sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
1811 + lt_cv_prog_cc_pic=" $lt_cv_prog_cc_pic"
1812 fi
1813 - sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
1814 - ;;
1815
1816 -dgux*)
1817 - version_type=linux
1818 - need_lib_prefix=no
1819 - need_version=no
1820 - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
1821 - soname_spec='${libname}${release}${shared_ext}$major'
1822 - shlibpath_var=LD_LIBRARY_PATH
1823 - ;;
1824 + AC_MSG_RESULT([$lt_cv_prog_cc_pic_works])
1825 +fi
1826
1827 -freebsd1*)
1828 - dynamic_linker=no
1829 - ;;
1830 +# Check for any special shared library compilation flags.
1831 +if test -n "$lt_cv_prog_cc_shlib"; then
1832 + AC_MSG_WARN([\`$CC' requires \`$lt_cv_prog_cc_shlib' to build shared libraries])
1833 + if echo "$old_CC $old_CFLAGS " | egrep -e "[[ ]]$lt_cv_prog_cc_shlib[[ ]]" >/dev/null; then :
1834 + else
1835 + AC_MSG_WARN([add \`$lt_cv_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure])
1836 + lt_cv_prog_cc_can_build_shared=no
1837 + fi
1838 +fi
1839
1840 -kfreebsd*-gnu)
1841 - version_type=linux
1842 - need_lib_prefix=no
1843 - need_version=no
1844 - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
1845 - soname_spec='${libname}${release}${shared_ext}$major'
1846 - shlibpath_var=LD_LIBRARY_PATH
1847 - shlibpath_overrides_runpath=no
1848 - hardcode_into_libs=yes
1849 - dynamic_linker='GNU ld.so'
1850 - ;;
1851 +AC_MSG_CHECKING([if $compiler static flag $lt_cv_prog_cc_static works])
1852 +AC_CACHE_VAL([lt_cv_prog_cc_static_works], [dnl
1853 + lt_cv_prog_cc_static_works=no
1854 + save_LDFLAGS="$LDFLAGS"
1855 + LDFLAGS="$LDFLAGS $lt_cv_prog_cc_static"
1856 + AC_TRY_LINK([], [], [lt_cv_prog_cc_static_works=yes])
1857 + LDFLAGS="$save_LDFLAGS"
1858 +])
1859
1860 -freebsd* | dragonfly*)
1861 - # DragonFly does not have aout. When/if they implement a new
1862 - # versioning mechanism, adjust this.
1863 - if test -x /usr/bin/objformat; then
1864 - objformat=`/usr/bin/objformat`
1865 +# Belt *and* braces to stop my trousers falling down:
1866 +test "X$lt_cv_prog_cc_static_works" = Xno && lt_cv_prog_cc_static=
1867 +AC_MSG_RESULT([$lt_cv_prog_cc_static_works])
1868 +
1869 +pic_flag="$lt_cv_prog_cc_pic"
1870 +special_shlib_compile_flags="$lt_cv_prog_cc_shlib"
1871 +wl="$lt_cv_prog_cc_wl"
1872 +link_static_flag="$lt_cv_prog_cc_static"
1873 +no_builtin_flag="$lt_cv_prog_cc_no_builtin"
1874 +can_build_shared="$lt_cv_prog_cc_can_build_shared"
1875 +
1876 +
1877 +# Check to see if options -o and -c are simultaneously supported by compiler
1878 +AC_MSG_CHECKING([if $compiler supports -c -o file.$ac_objext])
1879 +AC_CACHE_VAL([lt_cv_compiler_c_o], [
1880 +$rm -r conftest 2>/dev/null
1881 +mkdir conftest
1882 +cd conftest
1883 +echo "int some_variable = 0;" > conftest.$ac_ext
1884 +mkdir out
1885 +# According to Tom Tromey, Ian Lance Taylor reported there are C compilers
1886 +# that will create temporary files in the current directory regardless of
1887 +# the output directory. Thus, making CWD read-only will cause this test
1888 +# to fail, enabling locking or at least warning the user not to do parallel
1889 +# builds.
1890 +chmod -w .
1891 +save_CFLAGS="$CFLAGS"
1892 +CFLAGS="$CFLAGS -o out/conftest2.$ac_objext"
1893 +compiler_c_o=no
1894 +if { (eval echo configure:__oline__: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>out/conftest.err; } && test -s out/conftest2.$ac_objext; then
1895 + # The compiler can only warn and ignore the option if not recognized
1896 + # So say no if there are warnings
1897 + if test -s out/conftest.err; then
1898 + lt_cv_compiler_c_o=no
1899 else
1900 - case $host_os in
1901 - freebsd[[123]]*) objformat=aout ;;
1902 - *) objformat=elf ;;
1903 - esac
1904 + lt_cv_compiler_c_o=yes
1905 fi
1906 - version_type=freebsd-$objformat
1907 - case $version_type in
1908 - freebsd-elf*)
1909 - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
1910 - need_version=no
1911 - need_lib_prefix=no
1912 - ;;
1913 - freebsd-*)
1914 - library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
1915 - need_version=yes
1916 - ;;
1917 - esac
1918 - shlibpath_var=LD_LIBRARY_PATH
1919 +else
1920 + # Append any errors to the config.log.
1921 + cat out/conftest.err 1>&AC_FD_CC
1922 + lt_cv_compiler_c_o=no
1923 +fi
1924 +CFLAGS="$save_CFLAGS"
1925 +chmod u+w .
1926 +$rm conftest* out/*
1927 +rmdir out
1928 +cd ..
1929 +rmdir conftest
1930 +$rm -r conftest 2>/dev/null
1931 +])
1932 +compiler_c_o=$lt_cv_compiler_c_o
1933 +AC_MSG_RESULT([$compiler_c_o])
1934 +
1935 +if test x"$compiler_c_o" = x"yes"; then
1936 + # Check to see if we can write to a .lo
1937 + AC_MSG_CHECKING([if $compiler supports -c -o file.lo])
1938 + AC_CACHE_VAL([lt_cv_compiler_o_lo], [
1939 + lt_cv_compiler_o_lo=no
1940 + save_CFLAGS="$CFLAGS"
1941 + CFLAGS="$CFLAGS -c -o conftest.lo"
1942 + save_objext="$ac_objext"
1943 + ac_objext=lo
1944 + AC_TRY_COMPILE([], [int some_variable = 0;], [dnl
1945 + # The compiler can only warn and ignore the option if not recognized
1946 + # So say no if there are warnings
1947 + if test -s conftest.err; then
1948 + lt_cv_compiler_o_lo=no
1949 + else
1950 + lt_cv_compiler_o_lo=yes
1951 + fi
1952 + ])
1953 + ac_objext="$save_objext"
1954 + CFLAGS="$save_CFLAGS"
1955 + ])
1956 + compiler_o_lo=$lt_cv_compiler_o_lo
1957 + AC_MSG_RESULT([$compiler_o_lo])
1958 +else
1959 + compiler_o_lo=no
1960 +fi
1961 +
1962 +# Check to see if we can do hard links to lock some files if needed
1963 +hard_links="nottested"
1964 +if test "$compiler_c_o" = no && test "$need_locks" != no; then
1965 + # do not overwrite the value of need_locks provided by the user
1966 + AC_MSG_CHECKING([if we can lock with hard links])
1967 + hard_links=yes
1968 + $rm conftest*
1969 + ln conftest.a conftest.b 2>/dev/null && hard_links=no
1970 + touch conftest.a
1971 + ln conftest.a conftest.b 2>&5 || hard_links=no
1972 + ln conftest.a conftest.b 2>/dev/null && hard_links=no
1973 + AC_MSG_RESULT([$hard_links])
1974 + if test "$hard_links" = no; then
1975 + AC_MSG_WARN([\`$CC' does not support \`-c -o', so \`make -j' may be unsafe])
1976 + need_locks=warn
1977 + fi
1978 +else
1979 + need_locks=no
1980 +fi
1981 +
1982 +if test "$GCC" = yes; then
1983 + # Check to see if options -fno-rtti -fno-exceptions are supported by compiler
1984 + AC_MSG_CHECKING([if $compiler supports -fno-rtti -fno-exceptions])
1985 + echo "int some_variable = 0;" > conftest.$ac_ext
1986 + save_CFLAGS="$CFLAGS"
1987 + CFLAGS="$CFLAGS -fno-rtti -fno-exceptions -c conftest.$ac_ext"
1988 + compiler_rtti_exceptions=no
1989 + AC_TRY_COMPILE([], [int some_variable = 0;], [dnl
1990 + # The compiler can only warn and ignore the option if not recognized
1991 + # So say no if there are warnings
1992 + if test -s conftest.err; then
1993 + compiler_rtti_exceptions=no
1994 + else
1995 + compiler_rtti_exceptions=yes
1996 + fi
1997 + ])
1998 + CFLAGS="$save_CFLAGS"
1999 + AC_MSG_RESULT([$compiler_rtti_exceptions])
2000 +
2001 + if test "$compiler_rtti_exceptions" = "yes"; then
2002 + no_builtin_flag=' -fno-builtin -fno-rtti -fno-exceptions'
2003 + else
2004 + no_builtin_flag=' -fno-builtin'
2005 + fi
2006 +fi
2007 +
2008 +# See if the linker supports building shared libraries.
2009 +AC_MSG_CHECKING([whether the linker ($LD) supports shared libraries])
2010 +
2011 +allow_undefined_flag=
2012 +no_undefined_flag=
2013 +need_lib_prefix=unknown
2014 +need_version=unknown
2015 +# when you set need_version to no, make sure it does not cause -set_version
2016 +# flags to be left without arguments
2017 +archive_cmds=
2018 +archive_expsym_cmds=
2019 +old_archive_from_new_cmds=
2020 +old_archive_from_expsyms_cmds=
2021 +export_dynamic_flag_spec=
2022 +whole_archive_flag_spec=
2023 +thread_safe_flag_spec=
2024 +hardcode_into_libs=no
2025 +hardcode_libdir_flag_spec=
2026 +hardcode_libdir_separator=
2027 +hardcode_direct=no
2028 +hardcode_minus_L=no
2029 +hardcode_shlibpath_var=unsupported
2030 +runpath_var=
2031 +link_all_deplibs=unknown
2032 +always_export_symbols=no
2033 +export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | sed '\''s/.* //'\'' | sort | uniq > $export_symbols'
2034 +# include_expsyms should be a list of space-separated symbols to be *always*
2035 +# included in the symbol list
2036 +include_expsyms=
2037 +# exclude_expsyms can be an egrep regular expression of symbols to exclude
2038 +# it will be wrapped by ` (' and `)$', so one must not match beginning or
2039 +# end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
2040 +# as well as any symbol that contains `d'.
2041 +exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
2042 +# Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
2043 +# platforms (ab)use it in PIC code, but their linkers get confused if
2044 +# the symbol is explicitly referenced. Since portable code cannot
2045 +# rely on this symbol name, it's probably fine to never include it in
2046 +# preloaded symbol tables.
2047 +extract_expsyms_cmds=
2048 +
2049 +case $host_os in
2050 +cygwin* | mingw* | pw32*)
2051 + # FIXME: the MSVC++ port hasn't been tested in a loooong time
2052 + # When not using gcc, we currently assume that we are using
2053 + # Microsoft Visual C++.
2054 + if test "$GCC" != yes; then
2055 + with_gnu_ld=no
2056 + fi
2057 + ;;
2058 +openbsd*)
2059 + with_gnu_ld=no
2060 + ;;
2061 +esac
2062 +
2063 +ld_shlibs=yes
2064 +if test "$with_gnu_ld" = yes; then
2065 + # If archive_cmds runs LD, not CC, wlarc should be empty
2066 + wlarc='${wl}'
2067 +
2068 + # See if GNU ld supports shared libraries.
2069 case $host_os in
2070 - freebsd2*)
2071 - shlibpath_overrides_runpath=yes
2072 + aix3* | aix4* | aix5*)
2073 + # On AIX, the GNU linker is very broken
2074 + # Note:Check GNU linker on AIX 5-IA64 when/if it becomes available.
2075 + ld_shlibs=no
2076 + cat <<EOF 1>&2
2077 +
2078 +*** Warning: the GNU linker, at least up to release 2.9.1, is reported
2079 +*** to be unable to reliably create shared libraries on AIX.
2080 +*** Therefore, libtool is disabling shared libraries support. If you
2081 +*** really care for shared libraries, you may want to modify your PATH
2082 +*** so that a non-GNU linker is found, and then restart.
2083 +
2084 +EOF
2085 ;;
2086 - freebsd3.[[01]]* | freebsdelf3.[[01]]*)
2087 - shlibpath_overrides_runpath=yes
2088 - hardcode_into_libs=yes
2089 +
2090 + amigaos*)
2091 + 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)'
2092 + hardcode_libdir_flag_spec='-L$libdir'
2093 + hardcode_minus_L=yes
2094 +
2095 + # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
2096 + # that the semantics of dynamic libraries on AmigaOS, at least up
2097 + # to version 4, is to share data among multiple programs linked
2098 + # with the same dynamic library. Since this doesn't match the
2099 + # behavior of shared libraries on other platforms, we can use
2100 + # them.
2101 + ld_shlibs=no
2102 ;;
2103 - *) # from 3.2 on
2104 - shlibpath_overrides_runpath=no
2105 - hardcode_into_libs=yes
2106 +
2107 + beos*)
2108 + if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
2109 + allow_undefined_flag=unsupported
2110 + # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
2111 + # support --undefined. This deserves some investigation. FIXME
2112 + archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
2113 + else
2114 + ld_shlibs=no
2115 + fi
2116 ;;
2117 - esac
2118 - ;;
2119
2120 -gnu*)
2121 - version_type=linux
2122 - need_lib_prefix=no
2123 - need_version=no
2124 - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
2125 - soname_spec='${libname}${release}${shared_ext}$major'
2126 - shlibpath_var=LD_LIBRARY_PATH
2127 - hardcode_into_libs=yes
2128 - ;;
2129 + cygwin* | mingw* | pw32*)
2130 + # hardcode_libdir_flag_spec is actually meaningless, as there is
2131 + # no search path for DLLs.
2132 + hardcode_libdir_flag_spec='-L$libdir'
2133 + allow_undefined_flag=unsupported
2134 + always_export_symbols=yes
2135 +
2136 + extract_expsyms_cmds='test -f $output_objdir/impgen.c || \
2137 + sed -e "/^# \/\* impgen\.c starts here \*\//,/^# \/\* impgen.c ends here \*\// { s/^# //;s/^# *$//; p; }" -e d < $''0 > $output_objdir/impgen.c~
2138 + test -f $output_objdir/impgen.exe || (cd $output_objdir && \
2139 + if test "x$HOST_CC" != "x" ; then $HOST_CC -o impgen impgen.c ; \
2140 + else $CC -o impgen impgen.c ; fi)~
2141 + $output_objdir/impgen $dir/$soroot > $output_objdir/$soname-def'
2142 +
2143 + old_archive_from_expsyms_cmds='$DLLTOOL --as=$AS --dllname $soname --def $output_objdir/$soname-def --output-lib $output_objdir/$newlib'
2144 +
2145 + # cygwin and mingw dlls have different entry points and sets of symbols
2146 + # to exclude.
2147 + # FIXME: what about values for MSVC?
2148 + dll_entry=__cygwin_dll_entry@12
2149 + dll_exclude_symbols=DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12~
2150 + case $host_os in
2151 + mingw*)
2152 + # mingw values
2153 + dll_entry=_DllMainCRTStartup@12
2154 + dll_exclude_symbols=DllMain@12,DllMainCRTStartup@12,DllEntryPoint@12~
2155 + ;;
2156 + esac
2157
2158 -hpux9* | hpux10* | hpux11*)
2159 - # Give a soname corresponding to the major version so that dld.sl refuses to
2160 - # link against other versions.
2161 - version_type=sunos
2162 - need_lib_prefix=no
2163 - need_version=no
2164 - case $host_cpu in
2165 - ia64*)
2166 - shrext_cmds='.so'
2167 - hardcode_into_libs=yes
2168 - dynamic_linker="$host_os dld.so"
2169 - shlibpath_var=LD_LIBRARY_PATH
2170 - shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
2171 - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
2172 - soname_spec='${libname}${release}${shared_ext}$major'
2173 - if test "X$HPUX_IA64_MODE" = X32; then
2174 - sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
2175 + # mingw and cygwin differ, and it's simplest to just exclude the union
2176 + # of the two symbol sets.
2177 + dll_exclude_symbols=DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12,DllMainCRTStartup@12,DllEntryPoint@12
2178 +
2179 + # recent cygwin and mingw systems supply a stub DllMain which the user
2180 + # can override, but on older systems we have to supply one (in ltdll.c)
2181 + if test "x$lt_cv_need_dllmain" = "xyes"; then
2182 + ltdll_obj='$output_objdir/$soname-ltdll.'"$ac_objext "
2183 + ltdll_cmds='test -f $output_objdir/$soname-ltdll.c || sed -e "/^# \/\* ltdll\.c starts here \*\//,/^# \/\* ltdll.c ends here \*\// { s/^# //; p; }" -e d < $''0 > $output_objdir/$soname-ltdll.c~
2184 + test -f $output_objdir/$soname-ltdll.$ac_objext || (cd $output_objdir && $CC -c $soname-ltdll.c)~'
2185 else
2186 - sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
2187 + ltdll_obj=
2188 + ltdll_cmds=
2189 fi
2190 - sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
2191 +
2192 + # Extract the symbol export list from an `--export-all' def file,
2193 + # then regenerate the def file from the symbol export list, so that
2194 + # the compiled dll only exports the symbol export list.
2195 + # Be careful not to strip the DATA tag left be newer dlltools.
2196 + export_symbols_cmds="$ltdll_cmds"'
2197 + $DLLTOOL --export-all --exclude-symbols '$dll_exclude_symbols' --output-def $output_objdir/$soname-def '$ltdll_obj'$libobjs $convenience~
2198 + sed -e "1,/EXPORTS/d" -e "s/ @ [[0-9]]*//" -e "s/ *;.*$//" < $output_objdir/$soname-def > $export_symbols'
2199 +
2200 + # If the export-symbols file already is a .def file (1st line
2201 + # is EXPORTS), use it as is.
2202 + # If DATA tags from a recent dlltool are present, honour them!
2203 + archive_expsym_cmds='if test "x`sed 1q $export_symbols`" = xEXPORTS; then
2204 + cp $export_symbols $output_objdir/$soname-def;
2205 + else
2206 + echo EXPORTS > $output_objdir/$soname-def;
2207 + _lt_hint=1;
2208 + cat $export_symbols | while read symbol; do
2209 + set dummy \$symbol;
2210 + case \[$]# in
2211 + 2) echo " \[$]2 @ \$_lt_hint ; " >> $output_objdir/$soname-def;;
2212 + 4) echo " \[$]2 \[$]3 \[$]4 ; " >> $output_objdir/$soname-def; _lt_hint=`expr \$_lt_hint - 1`;;
2213 + *) echo " \[$]2 @ \$_lt_hint \[$]3 ; " >> $output_objdir/$soname-def;;
2214 + esac;
2215 + _lt_hint=`expr 1 + \$_lt_hint`;
2216 + done;
2217 + fi~
2218 + '"$ltdll_cmds"'
2219 + $CC -Wl,--base-file,$output_objdir/$soname-base '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $output_objdir/$soname '$ltdll_obj'$libobjs $deplibs $compiler_flags~
2220 + $DLLTOOL --as=$AS --dllname $soname --exclude-symbols '$dll_exclude_symbols' --def $output_objdir/$soname-def --base-file $output_objdir/$soname-base --output-exp $output_objdir/$soname-exp~
2221 + $CC -Wl,--base-file,$output_objdir/$soname-base $output_objdir/$soname-exp '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $output_objdir/$soname '$ltdll_obj'$libobjs $deplibs $compiler_flags~
2222 + $DLLTOOL --as=$AS --dllname $soname --exclude-symbols '$dll_exclude_symbols' --def $output_objdir/$soname-def --base-file $output_objdir/$soname-base --output-exp $output_objdir/$soname-exp --output-lib $output_objdir/$libname.dll.a~
2223 + $CC $output_objdir/$soname-exp '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $output_objdir/$soname '$ltdll_obj'$libobjs $deplibs $compiler_flags'
2224 ;;
2225 - hppa*64*)
2226 - shrext_cmds='.sl'
2227 - hardcode_into_libs=yes
2228 - dynamic_linker="$host_os dld.sl"
2229 - shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
2230 - shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
2231 - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
2232 - soname_spec='${libname}${release}${shared_ext}$major'
2233 - sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
2234 - sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
2235 - ;;
2236 - *)
2237 - shrext_cmds='.sl'
2238 - dynamic_linker="$host_os dld.sl"
2239 - shlibpath_var=SHLIB_PATH
2240 - shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
2241 - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
2242 - soname_spec='${libname}${release}${shared_ext}$major'
2243 +
2244 + netbsd* | knetbsd*-gnu)
2245 + if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
2246 + archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
2247 + wlarc=
2248 + else
2249 + archive_cmds='$CC -shared -nodefaultlibs $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
2250 + archive_expsym_cmds='$CC -shared -nodefaultlibs $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
2251 + fi
2252 ;;
2253 - esac
2254 - # HP-UX runs *really* slowly unless shared libraries are mode 555.
2255 - postinstall_cmds='chmod 555 $lib'
2256 - ;;
2257 -
2258 -irix5* | irix6* | nonstopux*)
2259 - case $host_os in
2260 - nonstopux*) version_type=nonstopux ;;
2261 - *)
2262 - if test "$lt_cv_prog_gnu_ld" = yes; then
2263 - version_type=linux
2264 - else
2265 - version_type=irix
2266 - fi ;;
2267 - esac
2268 - need_lib_prefix=no
2269 - need_version=no
2270 - soname_spec='${libname}${release}${shared_ext}$major'
2271 - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
2272 - case $host_os in
2273 - irix5* | nonstopux*)
2274 - libsuff= shlibsuff=
2275 - ;;
2276 - *)
2277 - case $LD in # libtool.m4 will add one of these switches to LD
2278 - *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
2279 - libsuff= shlibsuff= libmagic=32-bit;;
2280 - *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
2281 - libsuff=32 shlibsuff=N32 libmagic=N32;;
2282 - *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
2283 - libsuff=64 shlibsuff=64 libmagic=64-bit;;
2284 - *) libsuff= shlibsuff= libmagic=never-match;;
2285 - esac
2286 - ;;
2287 - esac
2288 - shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
2289 - shlibpath_overrides_runpath=no
2290 - sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
2291 - sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
2292 - hardcode_into_libs=yes
2293 - ;;
2294 -
2295 -# No shared lib support for Linux oldld, aout, or coff.
2296 -linux*oldld* | linux*aout* | linux*coff*)
2297 - dynamic_linker=no
2298 - ;;
2299 -
2300 -# This must be Linux ELF.
2301 -linux*)
2302 - version_type=linux
2303 - need_lib_prefix=no
2304 - need_version=no
2305 - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
2306 - soname_spec='${libname}${release}${shared_ext}$major'
2307 - finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
2308 - shlibpath_var=LD_LIBRARY_PATH
2309 - shlibpath_overrides_runpath=no
2310 - # This implies no fast_install, which is unacceptable.
2311 - # Some rework will be needed to allow for fast_install
2312 - # before this can be enabled.
2313 - hardcode_into_libs=yes
2314 -
2315 - # Append ld.so.conf contents to the search path
2316 - if test -f /etc/ld.so.conf; then
2317 - lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \[$]2)); skip = 1; } { if (!skip) print \[$]0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
2318 - sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
2319 - fi
2320 -
2321 - # We used to test for /lib/ld.so.1 and disable shared libraries on
2322 - # powerpc, because MkLinux only supported shared libraries with the
2323 - # GNU dynamic linker. Since this was broken with cross compilers,
2324 - # most powerpc-linux boxes support dynamic linking these days and
2325 - # people can always --disable-shared, the test was removed, and we
2326 - # assume the GNU/Linux dynamic linker is in use.
2327 - dynamic_linker='GNU/Linux ld.so'
2328 - ;;
2329 -
2330 -knetbsd*-gnu)
2331 - version_type=linux
2332 - need_lib_prefix=no
2333 - need_version=no
2334 - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
2335 - soname_spec='${libname}${release}${shared_ext}$major'
2336 - shlibpath_var=LD_LIBRARY_PATH
2337 - shlibpath_overrides_runpath=no
2338 - hardcode_into_libs=yes
2339 - dynamic_linker='GNU ld.so'
2340 - ;;
2341 -
2342 -netbsd*)
2343 - version_type=sunos
2344 - need_lib_prefix=no
2345 - need_version=no
2346 - if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
2347 - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
2348 - finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
2349 - dynamic_linker='NetBSD (a.out) ld.so'
2350 - else
2351 - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
2352 - soname_spec='${libname}${release}${shared_ext}$major'
2353 - dynamic_linker='NetBSD ld.elf_so'
2354 - fi
2355 - shlibpath_var=LD_LIBRARY_PATH
2356 - shlibpath_overrides_runpath=yes
2357 - hardcode_into_libs=yes
2358 - ;;
2359 -
2360 -newsos6)
2361 - version_type=linux
2362 - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
2363 - shlibpath_var=LD_LIBRARY_PATH
2364 - shlibpath_overrides_runpath=yes
2365 - ;;
2366 -
2367 -nto-qnx*)
2368 - version_type=linux
2369 - need_lib_prefix=no
2370 - need_version=no
2371 - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
2372 - soname_spec='${libname}${release}${shared_ext}$major'
2373 - shlibpath_var=LD_LIBRARY_PATH
2374 - shlibpath_overrides_runpath=yes
2375 - ;;
2376 -
2377 -openbsd*)
2378 - version_type=sunos
2379 - need_lib_prefix=no
2380 - # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
2381 - case $host_os in
2382 - openbsd3.3 | openbsd3.3.*) need_version=yes ;;
2383 - *) need_version=no ;;
2384 - esac
2385 - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
2386 - finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
2387 - shlibpath_var=LD_LIBRARY_PATH
2388 - if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
2389 - case $host_os in
2390 - openbsd2.[[89]] | openbsd2.[[89]].*)
2391 - shlibpath_overrides_runpath=no
2392 - ;;
2393 - *)
2394 - shlibpath_overrides_runpath=yes
2395 - ;;
2396 - esac
2397 - else
2398 - shlibpath_overrides_runpath=yes
2399 - fi
2400 - ;;
2401 -
2402 -os2*)
2403 - libname_spec='$name'
2404 - shrext_cmds=".dll"
2405 - need_lib_prefix=no
2406 - library_names_spec='$libname${shared_ext} $libname.a'
2407 - dynamic_linker='OS/2 ld.exe'
2408 - shlibpath_var=LIBPATH
2409 - ;;
2410 -
2411 -osf3* | osf4* | osf5*)
2412 - version_type=osf
2413 - need_lib_prefix=no
2414 - need_version=no
2415 - soname_spec='${libname}${release}${shared_ext}$major'
2416 - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
2417 - shlibpath_var=LD_LIBRARY_PATH
2418 - sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
2419 - sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
2420 - ;;
2421 -
2422 -sco3.2v5*)
2423 - version_type=osf
2424 - soname_spec='${libname}${release}${shared_ext}$major'
2425 - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
2426 - shlibpath_var=LD_LIBRARY_PATH
2427 - ;;
2428 -
2429 -solaris*)
2430 - version_type=linux
2431 - need_lib_prefix=no
2432 - need_version=no
2433 - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
2434 - soname_spec='${libname}${release}${shared_ext}$major'
2435 - shlibpath_var=LD_LIBRARY_PATH
2436 - shlibpath_overrides_runpath=yes
2437 - hardcode_into_libs=yes
2438 - # ldd complains unless libraries are executable
2439 - postinstall_cmds='chmod +x $lib'
2440 - ;;
2441 -
2442 -sunos4*)
2443 - version_type=sunos
2444 - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
2445 - finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
2446 - shlibpath_var=LD_LIBRARY_PATH
2447 - shlibpath_overrides_runpath=yes
2448 - if test "$with_gnu_ld" = yes; then
2449 - need_lib_prefix=no
2450 - fi
2451 - need_version=yes
2452 - ;;
2453 -
2454 -sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
2455 - version_type=linux
2456 - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
2457 - soname_spec='${libname}${release}${shared_ext}$major'
2458 - shlibpath_var=LD_LIBRARY_PATH
2459 - case $host_vendor in
2460 - sni)
2461 - shlibpath_overrides_runpath=no
2462 - need_lib_prefix=no
2463 - export_dynamic_flag_spec='${wl}-Blargedynsym'
2464 - runpath_var=LD_RUN_PATH
2465 - ;;
2466 - siemens)
2467 - need_lib_prefix=no
2468 - ;;
2469 - motorola)
2470 - need_lib_prefix=no
2471 - need_version=no
2472 - shlibpath_overrides_runpath=no
2473 - sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
2474 - ;;
2475 - esac
2476 - ;;
2477 -
2478 -sysv4*MP*)
2479 - if test -d /usr/nec ;then
2480 - version_type=linux
2481 - library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
2482 - soname_spec='$libname${shared_ext}.$major'
2483 - shlibpath_var=LD_LIBRARY_PATH
2484 - fi
2485 - ;;
2486 -
2487 -uts4*)
2488 - version_type=linux
2489 - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
2490 - soname_spec='${libname}${release}${shared_ext}$major'
2491 - shlibpath_var=LD_LIBRARY_PATH
2492 - ;;
2493 -
2494 -*)
2495 - dynamic_linker=no
2496 - ;;
2497 -esac
2498 -AC_MSG_RESULT([$dynamic_linker])
2499 -test "$dynamic_linker" = no && can_build_shared=no
2500 -])# AC_LIBTOOL_SYS_DYNAMIC_LINKER
2501 -
2502 -
2503 -# _LT_AC_TAGCONFIG
2504 -# ----------------
2505 -AC_DEFUN([_LT_AC_TAGCONFIG],
2506 -[AC_ARG_WITH([tags],
2507 - [AC_HELP_STRING([--with-tags@<:@=TAGS@:>@],
2508 - [include additional configurations @<:@automatic@:>@])],
2509 - [tagnames="$withval"])
2510 -
2511 -if test -f "$ltmain" && test -n "$tagnames"; then
2512 - if test ! -f "${ofile}"; then
2513 - AC_MSG_WARN([output file `$ofile' does not exist])
2514 - fi
2515 -
2516 - if test -z "$LTCC"; then
2517 - eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
2518 - if test -z "$LTCC"; then
2519 - AC_MSG_WARN([output file `$ofile' does not look like a libtool script])
2520 - else
2521 - AC_MSG_WARN([using `LTCC=$LTCC', extracted from `$ofile'])
2522 - fi
2523 - fi
2524 -
2525 - # Extract list of available tagged configurations in $ofile.
2526 - # Note that this assumes the entire list is on one line.
2527 - available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
2528 -
2529 - lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2530 - for tagname in $tagnames; do
2531 - IFS="$lt_save_ifs"
2532 - # Check whether tagname contains only valid characters
2533 - case `$echo "X$tagname" | $Xsed -e 's:[[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]]::g'` in
2534 - "") ;;
2535 - *) AC_MSG_ERROR([invalid tag name: $tagname])
2536 - ;;
2537 - esac
2538 -
2539 - if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
2540 - then
2541 - AC_MSG_ERROR([tag name \"$tagname\" already exists])
2542 - fi
2543 -
2544 - # Update the list of available tags.
2545 - if test -n "$tagname"; then
2546 - echo appending configuration tag \"$tagname\" to $ofile
2547 -
2548 - case $tagname in
2549 - CXX)
2550 - if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
2551 - ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
2552 - (test "X$CXX" != "Xg++"))) ; then
2553 - AC_LIBTOOL_LANG_CXX_CONFIG
2554 - else
2555 - tagname=""
2556 - fi
2557 - ;;
2558 -
2559 - F77)
2560 - if test -n "$F77" && test "X$F77" != "Xno"; then
2561 - AC_LIBTOOL_LANG_F77_CONFIG
2562 - else
2563 - tagname=""
2564 - fi
2565 - ;;
2566 -
2567 - GCJ)
2568 - if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
2569 - AC_LIBTOOL_LANG_GCJ_CONFIG
2570 - else
2571 - tagname=""
2572 - fi
2573 - ;;
2574 -
2575 - RC)
2576 - AC_LIBTOOL_LANG_RC_CONFIG
2577 - ;;
2578 -
2579 - *)
2580 - AC_MSG_ERROR([Unsupported tag name: $tagname])
2581 - ;;
2582 - esac
2583 -
2584 - # Append the new tag name to the list of available tags.
2585 - if test -n "$tagname" ; then
2586 - available_tags="$available_tags $tagname"
2587 - fi
2588 - fi
2589 - done
2590 - IFS="$lt_save_ifs"
2591 -
2592 - # Now substitute the updated list of available tags.
2593 - if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
2594 - mv "${ofile}T" "$ofile"
2595 - chmod +x "$ofile"
2596 - else
2597 - rm -f "${ofile}T"
2598 - AC_MSG_ERROR([unable to update list of available tagged configurations.])
2599 - fi
2600 -fi
2601 -])# _LT_AC_TAGCONFIG
2602 -
2603 -
2604 -# AC_LIBTOOL_DLOPEN
2605 -# -----------------
2606 -# enable checks for dlopen support
2607 -AC_DEFUN([AC_LIBTOOL_DLOPEN],
2608 - [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])
2609 -])# AC_LIBTOOL_DLOPEN
2610 -
2611 -
2612 -# AC_LIBTOOL_WIN32_DLL
2613 -# --------------------
2614 -# declare package support for building win32 DLLs
2615 -AC_DEFUN([AC_LIBTOOL_WIN32_DLL],
2616 -[AC_BEFORE([$0], [AC_LIBTOOL_SETUP])
2617 -])# AC_LIBTOOL_WIN32_DLL
2618 -
2619 -
2620 -# AC_ENABLE_SHARED([DEFAULT])
2621 -# ---------------------------
2622 -# implement the --enable-shared flag
2623 -# DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'.
2624 -AC_DEFUN([AC_ENABLE_SHARED],
2625 -[define([AC_ENABLE_SHARED_DEFAULT], ifelse($1, no, no, yes))dnl
2626 -AC_ARG_ENABLE([shared],
2627 - [AC_HELP_STRING([--enable-shared@<:@=PKGS@:>@],
2628 - [build shared libraries @<:@default=]AC_ENABLE_SHARED_DEFAULT[@:>@])],
2629 - [p=${PACKAGE-default}
2630 - case $enableval in
2631 - yes) enable_shared=yes ;;
2632 - no) enable_shared=no ;;
2633 - *)
2634 - enable_shared=no
2635 - # Look at the argument we got. We use all the common list separators.
2636 - lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2637 - for pkg in $enableval; do
2638 - IFS="$lt_save_ifs"
2639 - if test "X$pkg" = "X$p"; then
2640 - enable_shared=yes
2641 - fi
2642 - done
2643 - IFS="$lt_save_ifs"
2644 - ;;
2645 - esac],
2646 - [enable_shared=]AC_ENABLE_SHARED_DEFAULT)
2647 -])# AC_ENABLE_SHARED
2648 -
2649 -
2650 -# AC_DISABLE_SHARED
2651 -# -----------------
2652 -#- set the default shared flag to --disable-shared
2653 -AC_DEFUN([AC_DISABLE_SHARED],
2654 -[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
2655 -AC_ENABLE_SHARED(no)
2656 -])# AC_DISABLE_SHARED
2657 -
2658 -
2659 -# AC_ENABLE_STATIC([DEFAULT])
2660 -# ---------------------------
2661 -# implement the --enable-static flag
2662 -# DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'.
2663 -AC_DEFUN([AC_ENABLE_STATIC],
2664 -[define([AC_ENABLE_STATIC_DEFAULT], ifelse($1, no, no, yes))dnl
2665 -AC_ARG_ENABLE([static],
2666 - [AC_HELP_STRING([--enable-static@<:@=PKGS@:>@],
2667 - [build static libraries @<:@default=]AC_ENABLE_STATIC_DEFAULT[@:>@])],
2668 - [p=${PACKAGE-default}
2669 - case $enableval in
2670 - yes) enable_static=yes ;;
2671 - no) enable_static=no ;;
2672 - *)
2673 - enable_static=no
2674 - # Look at the argument we got. We use all the common list separators.
2675 - lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2676 - for pkg in $enableval; do
2677 - IFS="$lt_save_ifs"
2678 - if test "X$pkg" = "X$p"; then
2679 - enable_static=yes
2680 - fi
2681 - done
2682 - IFS="$lt_save_ifs"
2683 - ;;
2684 - esac],
2685 - [enable_static=]AC_ENABLE_STATIC_DEFAULT)
2686 -])# AC_ENABLE_STATIC
2687 -
2688 -
2689 -# AC_DISABLE_STATIC
2690 -# -----------------
2691 -# set the default static flag to --disable-static
2692 -AC_DEFUN([AC_DISABLE_STATIC],
2693 -[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
2694 -AC_ENABLE_STATIC(no)
2695 -])# AC_DISABLE_STATIC
2696 -
2697 -
2698 -# AC_ENABLE_FAST_INSTALL([DEFAULT])
2699 -# ---------------------------------
2700 -# implement the --enable-fast-install flag
2701 -# DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'.
2702 -AC_DEFUN([AC_ENABLE_FAST_INSTALL],
2703 -[define([AC_ENABLE_FAST_INSTALL_DEFAULT], ifelse($1, no, no, yes))dnl
2704 -AC_ARG_ENABLE([fast-install],
2705 - [AC_HELP_STRING([--enable-fast-install@<:@=PKGS@:>@],
2706 - [optimize for fast installation @<:@default=]AC_ENABLE_FAST_INSTALL_DEFAULT[@:>@])],
2707 - [p=${PACKAGE-default}
2708 - case $enableval in
2709 - yes) enable_fast_install=yes ;;
2710 - no) enable_fast_install=no ;;
2711 - *)
2712 - enable_fast_install=no
2713 - # Look at the argument we got. We use all the common list separators.
2714 - lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2715 - for pkg in $enableval; do
2716 - IFS="$lt_save_ifs"
2717 - if test "X$pkg" = "X$p"; then
2718 - enable_fast_install=yes
2719 - fi
2720 - done
2721 - IFS="$lt_save_ifs"
2722 - ;;
2723 - esac],
2724 - [enable_fast_install=]AC_ENABLE_FAST_INSTALL_DEFAULT)
2725 -])# AC_ENABLE_FAST_INSTALL
2726 -
2727 -
2728 -# AC_DISABLE_FAST_INSTALL
2729 -# -----------------------
2730 -# set the default to --disable-fast-install
2731 -AC_DEFUN([AC_DISABLE_FAST_INSTALL],
2732 -[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
2733 -AC_ENABLE_FAST_INSTALL(no)
2734 -])# AC_DISABLE_FAST_INSTALL
2735 -
2736 -
2737 -# AC_LIBTOOL_PICMODE([MODE])
2738 -# --------------------------
2739 -# implement the --with-pic flag
2740 -# MODE is either `yes' or `no'. If omitted, it defaults to `both'.
2741 -AC_DEFUN([AC_LIBTOOL_PICMODE],
2742 -[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
2743 -pic_mode=ifelse($#,1,$1,default)
2744 -])# AC_LIBTOOL_PICMODE
2745 -
2746 -
2747 -# AC_PROG_EGREP
2748 -# -------------
2749 -# This is predefined starting with Autoconf 2.54, so this conditional
2750 -# definition can be removed once we require Autoconf 2.54 or later.
2751 -m4_ifndef([AC_PROG_EGREP], [AC_DEFUN([AC_PROG_EGREP],
2752 -[AC_CACHE_CHECK([for egrep], [ac_cv_prog_egrep],
2753 - [if echo a | (grep -E '(a|b)') >/dev/null 2>&1
2754 - then ac_cv_prog_egrep='grep -E'
2755 - else ac_cv_prog_egrep='egrep'
2756 - fi])
2757 - EGREP=$ac_cv_prog_egrep
2758 - AC_SUBST([EGREP])
2759 -])])
2760 -
2761 -
2762 -# AC_PATH_TOOL_PREFIX
2763 -# -------------------
2764 -# find a file program which can recognise shared library
2765 -AC_DEFUN([AC_PATH_TOOL_PREFIX],
2766 -[AC_REQUIRE([AC_PROG_EGREP])dnl
2767 -AC_MSG_CHECKING([for $1])
2768 -AC_CACHE_VAL(lt_cv_path_MAGIC_CMD,
2769 -[case $MAGIC_CMD in
2770 -[[\\/*] | ?:[\\/]*])
2771 - lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
2772 - ;;
2773 -*)
2774 - lt_save_MAGIC_CMD="$MAGIC_CMD"
2775 - lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
2776 -dnl $ac_dummy forces splitting on constant user-supplied paths.
2777 -dnl POSIX.2 word splitting is done only on the output of word expansions,
2778 -dnl not every word. This closes a longstanding sh security hole.
2779 - ac_dummy="ifelse([$2], , $PATH, [$2])"
2780 - for ac_dir in $ac_dummy; do
2781 - IFS="$lt_save_ifs"
2782 - test -z "$ac_dir" && ac_dir=.
2783 - if test -f $ac_dir/$1; then
2784 - lt_cv_path_MAGIC_CMD="$ac_dir/$1"
2785 - if test -n "$file_magic_test_file"; then
2786 - case $deplibs_check_method in
2787 - "file_magic "*)
2788 - file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
2789 - MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
2790 - if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
2791 - $EGREP "$file_magic_regex" > /dev/null; then
2792 - :
2793 - else
2794 - cat <<EOF 1>&2
2795 -
2796 -*** Warning: the command libtool uses to detect shared libraries,
2797 -*** $file_magic_cmd, produces output that libtool cannot recognize.
2798 -*** The result is that libtool may fail to recognize shared libraries
2799 -*** as such. This will affect the creation of libtool libraries that
2800 -*** depend on shared libraries, but programs linked with such libtool
2801 -*** libraries will work regardless of this problem. Nevertheless, you
2802 -*** may want to report the problem to your system manager and/or to
2803 -*** bug-libtool@gnu.org
2804 -
2805 -EOF
2806 - fi ;;
2807 - esac
2808 - fi
2809 - break
2810 - fi
2811 - done
2812 - IFS="$lt_save_ifs"
2813 - MAGIC_CMD="$lt_save_MAGIC_CMD"
2814 - ;;
2815 -esac])
2816 -MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
2817 -if test -n "$MAGIC_CMD"; then
2818 - AC_MSG_RESULT($MAGIC_CMD)
2819 -else
2820 - AC_MSG_RESULT(no)
2821 -fi
2822 -])# AC_PATH_TOOL_PREFIX
2823 -
2824 -
2825 -# AC_PATH_MAGIC
2826 -# -------------
2827 -# find a file program which can recognise a shared library
2828 -AC_DEFUN([AC_PATH_MAGIC],
2829 -[AC_PATH_TOOL_PREFIX(${ac_tool_prefix}file, /usr/bin$PATH_SEPARATOR$PATH)
2830 -if test -z "$lt_cv_path_MAGIC_CMD"; then
2831 - if test -n "$ac_tool_prefix"; then
2832 - AC_PATH_TOOL_PREFIX(file, /usr/bin$PATH_SEPARATOR$PATH)
2833 - else
2834 - MAGIC_CMD=:
2835 - fi
2836 -fi
2837 -])# AC_PATH_MAGIC
2838 -
2839 -
2840 -# AC_PROG_LD
2841 -# ----------
2842 -# find the pathname to the GNU or non-GNU linker
2843 -AC_DEFUN([AC_PROG_LD],
2844 -[AC_ARG_WITH([gnu-ld],
2845 - [AC_HELP_STRING([--with-gnu-ld],
2846 - [assume the C compiler uses GNU ld @<:@default=no@:>@])],
2847 - [test "$withval" = no || with_gnu_ld=yes],
2848 - [with_gnu_ld=no])
2849 -AC_REQUIRE([LT_AC_PROG_SED])dnl
2850 -AC_REQUIRE([AC_PROG_CC])dnl
2851 -AC_REQUIRE([AC_CANONICAL_HOST])dnl
2852 -AC_REQUIRE([AC_CANONICAL_BUILD])dnl
2853 -ac_prog=ld
2854 -if test "$GCC" = yes; then
2855 - # Check if gcc -print-prog-name=ld gives a path.
2856 - AC_MSG_CHECKING([for ld used by $CC])
2857 - case $host in
2858 - *-*-mingw*)
2859 - # gcc leaves a trailing carriage return which upsets mingw
2860 - ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
2861 - *)
2862 - ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
2863 - esac
2864 - case $ac_prog in
2865 - # Accept absolute paths.
2866 - [[\\/]]* | ?:[[\\/]]*)
2867 - re_direlt='/[[^/]][[^/]]*/\.\./'
2868 - # Canonicalize the pathname of ld
2869 - ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
2870 - while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
2871 - ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
2872 - done
2873 - test -z "$LD" && LD="$ac_prog"
2874 - ;;
2875 - "")
2876 - # If it fails, then pretend we aren't using GCC.
2877 - ac_prog=ld
2878 - ;;
2879 - *)
2880 - # If it is relative, then search for the first ld in PATH.
2881 - with_gnu_ld=unknown
2882 - ;;
2883 - esac
2884 -elif test "$with_gnu_ld" = yes; then
2885 - AC_MSG_CHECKING([for GNU ld])
2886 -else
2887 - AC_MSG_CHECKING([for non-GNU ld])
2888 -fi
2889 -AC_CACHE_VAL(lt_cv_path_LD,
2890 -[if test -z "$LD"; then
2891 - lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
2892 - for ac_dir in $PATH; do
2893 - IFS="$lt_save_ifs"
2894 - test -z "$ac_dir" && ac_dir=.
2895 - if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
2896 - lt_cv_path_LD="$ac_dir/$ac_prog"
2897 - # Check to see if the program is GNU ld. I'd rather use --version,
2898 - # but apparently some variants of GNU ld only accept -v.
2899 - # Break only if it was the GNU/non-GNU ld that we prefer.
2900 - case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
2901 - *GNU* | *'with BFD'*)
2902 - test "$with_gnu_ld" != no && break
2903 - ;;
2904 - *)
2905 - test "$with_gnu_ld" != yes && break
2906 - ;;
2907 - esac
2908 - fi
2909 - done
2910 - IFS="$lt_save_ifs"
2911 -else
2912 - lt_cv_path_LD="$LD" # Let the user override the test with a path.
2913 -fi])
2914 -LD="$lt_cv_path_LD"
2915 -if test -n "$LD"; then
2916 - AC_MSG_RESULT($LD)
2917 -else
2918 - AC_MSG_RESULT(no)
2919 -fi
2920 -test -z "$LD" && AC_MSG_ERROR([no acceptable ld found in \$PATH])
2921 -AC_PROG_LD_GNU
2922 -])# AC_PROG_LD
2923 -
2924 -
2925 -# AC_PROG_LD_GNU
2926 -# --------------
2927 -AC_DEFUN([AC_PROG_LD_GNU],
2928 -[AC_REQUIRE([AC_PROG_EGREP])dnl
2929 -AC_CACHE_CHECK([if the linker ($LD) is GNU ld], lt_cv_prog_gnu_ld,
2930 -[# I'd rather use --version here, but apparently some GNU lds only accept -v.
2931 -case `$LD -v 2>&1 </dev/null` in
2932 -*GNU* | *'with BFD'*)
2933 - lt_cv_prog_gnu_ld=yes
2934 - ;;
2935 -*)
2936 - lt_cv_prog_gnu_ld=no
2937 - ;;
2938 -esac])
2939 -with_gnu_ld=$lt_cv_prog_gnu_ld
2940 -])# AC_PROG_LD_GNU
2941 -
2942 -
2943 -# AC_PROG_LD_RELOAD_FLAG
2944 -# ----------------------
2945 -# find reload flag for linker
2946 -# -- PORTME Some linkers may need a different reload flag.
2947 -AC_DEFUN([AC_PROG_LD_RELOAD_FLAG],
2948 -[AC_CACHE_CHECK([for $LD option to reload object files],
2949 - lt_cv_ld_reload_flag,
2950 - [lt_cv_ld_reload_flag='-r'])
2951 -reload_flag=$lt_cv_ld_reload_flag
2952 -case $reload_flag in
2953 -"" | " "*) ;;
2954 -*) reload_flag=" $reload_flag" ;;
2955 -esac
2956 -reload_cmds='$LD$reload_flag -o $output$reload_objs'
2957 -case $host_os in
2958 - darwin*)
2959 - if test "$GCC" = yes; then
2960 - reload_cmds='$CC -nostdlib ${wl}-r -o $output$reload_objs'
2961 - else
2962 - reload_cmds='$LD$reload_flag -o $output$reload_objs'
2963 - fi
2964 - ;;
2965 -esac
2966 -])# AC_PROG_LD_RELOAD_FLAG
2967 -
2968 -
2969 -# AC_DEPLIBS_CHECK_METHOD
2970 -# -----------------------
2971 -# how to check for library dependencies
2972 -# -- PORTME fill in with the dynamic library characteristics
2973 -AC_DEFUN([AC_DEPLIBS_CHECK_METHOD],
2974 -[AC_CACHE_CHECK([how to recognise dependent libraries],
2975 -lt_cv_deplibs_check_method,
2976 -[lt_cv_file_magic_cmd='$MAGIC_CMD'
2977 -lt_cv_file_magic_test_file=
2978 -lt_cv_deplibs_check_method='unknown'
2979 -# Need to set the preceding variable on all platforms that support
2980 -# interlibrary dependencies.
2981 -# 'none' -- dependencies not supported.
2982 -# `unknown' -- same as none, but documents that we really don't know.
2983 -# 'pass_all' -- all dependencies passed with no checks.
2984 -# 'test_compile' -- check by making test program.
2985 -# 'file_magic [[regex]]' -- check by looking for files in library path
2986 -# which responds to the $file_magic_cmd with a given extended regex.
2987 -# If you have `file' or equivalent on your system and you're not sure
2988 -# whether `pass_all' will *always* work, you probably want this one.
2989 -
2990 -case $host_os in
2991 -aix4* | aix5*)
2992 - lt_cv_deplibs_check_method=pass_all
2993 - ;;
2994 -
2995 -beos*)
2996 - lt_cv_deplibs_check_method=pass_all
2997 - ;;
2998 -
2999 -bsdi[[45]]*)
3000 - lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (shared object|dynamic lib)'
3001 - lt_cv_file_magic_cmd='/usr/bin/file -L'
3002 - lt_cv_file_magic_test_file=/shlib/libc.so
3003 - ;;
3004 -
3005 -cygwin*)
3006 - # func_win32_libid is a shell function defined in ltmain.sh
3007 - lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
3008 - lt_cv_file_magic_cmd='func_win32_libid'
3009 - ;;
3010 -
3011 -mingw* | pw32*)
3012 - # Base MSYS/MinGW do not provide the 'file' command needed by
3013 - # func_win32_libid shell function, so use a weaker test based on 'objdump'.
3014 - lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
3015 - lt_cv_file_magic_cmd='$OBJDUMP -f'
3016 - ;;
3017 -
3018 -darwin* | rhapsody*)
3019 - lt_cv_deplibs_check_method=pass_all
3020 - ;;
3021 -
3022 -freebsd* | kfreebsd*-gnu | dragonfly*)
3023 - if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3024 - case $host_cpu in
3025 - i*86 )
3026 - # Not sure whether the presence of OpenBSD here was a mistake.
3027 - # Let's accept both of them until this is cleared up.
3028 - lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[[3-9]]86 (compact )?demand paged shared library'
3029 - lt_cv_file_magic_cmd=/usr/bin/file
3030 - lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3031 - ;;
3032 - esac
3033 - else
3034 - lt_cv_deplibs_check_method=pass_all
3035 - fi
3036 - ;;
3037 -
3038 -gnu*)
3039 - lt_cv_deplibs_check_method=pass_all
3040 - ;;
3041 -
3042 -hpux10.20* | hpux11*)
3043 - lt_cv_file_magic_cmd=/usr/bin/file
3044 - case $host_cpu in
3045 - ia64*)
3046 - lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|ELF-[[0-9]][[0-9]]) shared object file - IA64'
3047 - lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
3048 - ;;
3049 - hppa*64*)
3050 - [lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - PA-RISC [0-9].[0-9]']
3051 - lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
3052 - ;;
3053 - *)
3054 - lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|PA-RISC[[0-9]].[[0-9]]) shared library'
3055 - lt_cv_file_magic_test_file=/usr/lib/libc.sl
3056 - ;;
3057 - esac
3058 - ;;
3059 -
3060 -irix5* | irix6* | nonstopux*)
3061 - case $LD in
3062 - *-32|*"-32 ") libmagic=32-bit;;
3063 - *-n32|*"-n32 ") libmagic=N32;;
3064 - *-64|*"-64 ") libmagic=64-bit;;
3065 - *) libmagic=never-match;;
3066 - esac
3067 - lt_cv_deplibs_check_method=pass_all
3068 - ;;
3069 -
3070 -# This must be Linux ELF.
3071 -linux*)
3072 - lt_cv_deplibs_check_method=pass_all
3073 - ;;
3074 -
3075 -netbsd*)
3076 - if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3077 - lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$'
3078 - else
3079 - lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so|_pic\.a)$'
3080 - fi
3081 - ;;
3082 -
3083 -newos6*)
3084 - lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (executable|dynamic lib)'
3085 - lt_cv_file_magic_cmd=/usr/bin/file
3086 - lt_cv_file_magic_test_file=/usr/lib/libnls.so
3087 - ;;
3088 -
3089 -nto-qnx*)
3090 - lt_cv_deplibs_check_method=unknown
3091 - ;;
3092 -
3093 -openbsd*)
3094 - if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
3095 - lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|\.so|_pic\.a)$'
3096 - else
3097 - lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$'
3098 - fi
3099 - ;;
3100 -
3101 -osf3* | osf4* | osf5*)
3102 - lt_cv_deplibs_check_method=pass_all
3103 - ;;
3104 -
3105 -sco3.2v5*)
3106 - lt_cv_deplibs_check_method=pass_all
3107 - ;;
3108 -
3109 -solaris*)
3110 - lt_cv_deplibs_check_method=pass_all
3111 - ;;
3112 -
3113 -sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
3114 - case $host_vendor in
3115 - motorola)
3116 - lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (shared object|dynamic lib) M[[0-9]][[0-9]]* Version [[0-9]]'
3117 - lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
3118 - ;;
3119 - ncr)
3120 - lt_cv_deplibs_check_method=pass_all
3121 - ;;
3122 - sequent)
3123 - lt_cv_file_magic_cmd='/bin/file'
3124 - lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB (shared object|dynamic lib )'
3125 - ;;
3126 - sni)
3127 - lt_cv_file_magic_cmd='/bin/file'
3128 - lt_cv_deplibs_check_method="file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB dynamic lib"
3129 - lt_cv_file_magic_test_file=/lib/libc.so
3130 - ;;
3131 - siemens)
3132 - lt_cv_deplibs_check_method=pass_all
3133 - ;;
3134 - esac
3135 - ;;
3136 -
3137 -sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[[78]]* | unixware7* | sysv4*uw2*)
3138 - lt_cv_deplibs_check_method=pass_all
3139 - ;;
3140 -esac
3141 -])
3142 -file_magic_cmd=$lt_cv_file_magic_cmd
3143 -deplibs_check_method=$lt_cv_deplibs_check_method
3144 -test -z "$deplibs_check_method" && deplibs_check_method=unknown
3145 -])# AC_DEPLIBS_CHECK_METHOD
3146 -
3147 -
3148 -# AC_PROG_NM
3149 -# ----------
3150 -# find the pathname to a BSD-compatible name lister
3151 -AC_DEFUN([AC_PROG_NM],
3152 -[AC_CACHE_CHECK([for BSD-compatible nm], lt_cv_path_NM,
3153 -[if test -n "$NM"; then
3154 - # Let the user override the test.
3155 - lt_cv_path_NM="$NM"
3156 -else
3157 - lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3158 - for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
3159 - IFS="$lt_save_ifs"
3160 - test -z "$ac_dir" && ac_dir=.
3161 - tmp_nm="$ac_dir/${ac_tool_prefix}nm"
3162 - if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
3163 - # Check to see if the nm accepts a BSD-compat flag.
3164 - # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3165 - # nm: unknown option "B" ignored
3166 - # Tru64's nm complains that /dev/null is an invalid object file
3167 - case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
3168 - */dev/null* | *'Invalid file or object type'*)
3169 - lt_cv_path_NM="$tmp_nm -B"
3170 - break
3171 - ;;
3172 - *)
3173 - case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
3174 - */dev/null*)
3175 - lt_cv_path_NM="$tmp_nm -p"
3176 - break
3177 - ;;
3178 - *)
3179 - lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3180 - continue # so that we can try to find one that supports BSD flags
3181 - ;;
3182 - esac
3183 - esac
3184 - fi
3185 - done
3186 - IFS="$lt_save_ifs"
3187 - test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
3188 -fi])
3189 -NM="$lt_cv_path_NM"
3190 -])# AC_PROG_NM
3191 -
3192 -
3193 -# AC_CHECK_LIBM
3194 -# -------------
3195 -# check for math library
3196 -AC_DEFUN([AC_CHECK_LIBM],
3197 -[AC_REQUIRE([AC_CANONICAL_HOST])dnl
3198 -LIBM=
3199 -case $host in
3200 -*-*-beos* | *-*-cygwin* | *-*-pw32* | *-*-darwin*)
3201 - # These system don't have libm, or don't need it
3202 - ;;
3203 -*-ncr-sysv4.3*)
3204 - AC_CHECK_LIB(mw, _mwvalidcheckl, LIBM="-lmw")
3205 - AC_CHECK_LIB(m, cos, LIBM="$LIBM -lm")
3206 - ;;
3207 -*)
3208 - AC_CHECK_LIB(m, cos, LIBM="-lm")
3209 - ;;
3210 -esac
3211 -])# AC_CHECK_LIBM
3212 -
3213 -
3214 -# AC_LIBLTDL_CONVENIENCE([DIRECTORY])
3215 -# -----------------------------------
3216 -# sets LIBLTDL to the link flags for the libltdl convenience library and
3217 -# LTDLINCL to the include flags for the libltdl header and adds
3218 -# --enable-ltdl-convenience to the configure arguments. Note that
3219 -# AC_CONFIG_SUBDIRS is not called here. If DIRECTORY is not provided,
3220 -# it is assumed to be `libltdl'. LIBLTDL will be prefixed with
3221 -# '${top_builddir}/' and LTDLINCL will be prefixed with '${top_srcdir}/'
3222 -# (note the single quotes!). If your package is not flat and you're not
3223 -# using automake, define top_builddir and top_srcdir appropriately in
3224 -# the Makefiles.
3225 -AC_DEFUN([AC_LIBLTDL_CONVENIENCE],
3226 -[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
3227 - case $enable_ltdl_convenience in
3228 - no) AC_MSG_ERROR([this package needs a convenience libltdl]) ;;
3229 - "") enable_ltdl_convenience=yes
3230 - ac_configure_args="$ac_configure_args --enable-ltdl-convenience" ;;
3231 - esac
3232 - LIBLTDL='${top_builddir}/'ifelse($#,1,[$1],['libltdl'])/libltdlc.la
3233 - LTDLINCL='-I${top_srcdir}/'ifelse($#,1,[$1],['libltdl'])
3234 - # For backwards non-gettext consistent compatibility...
3235 - INCLTDL="$LTDLINCL"
3236 -])# AC_LIBLTDL_CONVENIENCE
3237 -
3238 -
3239 -# AC_LIBLTDL_INSTALLABLE([DIRECTORY])
3240 -# -----------------------------------
3241 -# sets LIBLTDL to the link flags for the libltdl installable library and
3242 -# LTDLINCL to the include flags for the libltdl header and adds
3243 -# --enable-ltdl-install to the configure arguments. Note that
3244 -# AC_CONFIG_SUBDIRS is not called here. If DIRECTORY is not provided,
3245 -# and an installed libltdl is not found, it is assumed to be `libltdl'.
3246 -# LIBLTDL will be prefixed with '${top_builddir}/'# and LTDLINCL with
3247 -# '${top_srcdir}/' (note the single quotes!). If your package is not
3248 -# flat and you're not using automake, define top_builddir and top_srcdir
3249 -# appropriately in the Makefiles.
3250 -# In the future, this macro may have to be called after AC_PROG_LIBTOOL.
3251 -AC_DEFUN([AC_LIBLTDL_INSTALLABLE],
3252 -[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
3253 - AC_CHECK_LIB(ltdl, lt_dlinit,
3254 - [test x"$enable_ltdl_install" != xyes && enable_ltdl_install=no],
3255 - [if test x"$enable_ltdl_install" = xno; then
3256 - AC_MSG_WARN([libltdl not installed, but installation disabled])
3257 - else
3258 - enable_ltdl_install=yes
3259 - fi
3260 - ])
3261 - if test x"$enable_ltdl_install" = x"yes"; then
3262 - ac_configure_args="$ac_configure_args --enable-ltdl-install"
3263 - LIBLTDL='${top_builddir}/'ifelse($#,1,[$1],['libltdl'])/libltdl.la
3264 - LTDLINCL='-I${top_srcdir}/'ifelse($#,1,[$1],['libltdl'])
3265 - else
3266 - ac_configure_args="$ac_configure_args --enable-ltdl-install=no"
3267 - LIBLTDL="-lltdl"
3268 - LTDLINCL=
3269 - fi
3270 - # For backwards non-gettext consistent compatibility...
3271 - INCLTDL="$LTDLINCL"
3272 -])# AC_LIBLTDL_INSTALLABLE
3273 -
3274 -
3275 -# AC_LIBTOOL_CXX
3276 -# --------------
3277 -# enable support for C++ libraries
3278 -AC_DEFUN([AC_LIBTOOL_CXX],
3279 -[AC_REQUIRE([_LT_AC_LANG_CXX])
3280 -])# AC_LIBTOOL_CXX
3281 -
3282 -
3283 -# _LT_AC_LANG_CXX
3284 -# ---------------
3285 -AC_DEFUN([_LT_AC_LANG_CXX],
3286 -[AC_REQUIRE([AC_PROG_CXX])
3287 -AC_REQUIRE([_LT_AC_PROG_CXXCPP])
3288 -_LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}CXX])
3289 -])# _LT_AC_LANG_CXX
3290 -
3291 -# _LT_AC_PROG_CXXCPP
3292 -# ---------------
3293 -AC_DEFUN([_LT_AC_PROG_CXXCPP],
3294 -[
3295 -AC_REQUIRE([AC_PROG_CXX])
3296 -if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
3297 - ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
3298 - (test "X$CXX" != "Xg++"))) ; then
3299 - AC_PROG_CXXCPP
3300 -fi
3301 -])# _LT_AC_PROG_CXXCPP
3302 -
3303 -# AC_LIBTOOL_F77
3304 -# --------------
3305 -# enable support for Fortran 77 libraries
3306 -AC_DEFUN([AC_LIBTOOL_F77],
3307 -[AC_REQUIRE([_LT_AC_LANG_F77])
3308 -])# AC_LIBTOOL_F77
3309 -
3310 -
3311 -# _LT_AC_LANG_F77
3312 -# ---------------
3313 -AC_DEFUN([_LT_AC_LANG_F77],
3314 -[AC_REQUIRE([AC_PROG_F77])
3315 -_LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}F77])
3316 -])# _LT_AC_LANG_F77
3317 -
3318 -
3319 -# AC_LIBTOOL_GCJ
3320 -# --------------
3321 -# enable support for GCJ libraries
3322 -AC_DEFUN([AC_LIBTOOL_GCJ],
3323 -[AC_REQUIRE([_LT_AC_LANG_GCJ])
3324 -])# AC_LIBTOOL_GCJ
3325 -
3326 -
3327 -# _LT_AC_LANG_GCJ
3328 -# ---------------
3329 -AC_DEFUN([_LT_AC_LANG_GCJ],
3330 -[AC_PROVIDE_IFELSE([AC_PROG_GCJ],[],
3331 - [AC_PROVIDE_IFELSE([A][M_PROG_GCJ],[],
3332 - [AC_PROVIDE_IFELSE([LT_AC_PROG_GCJ],[],
3333 - [ifdef([AC_PROG_GCJ],[AC_REQUIRE([AC_PROG_GCJ])],
3334 - [ifdef([A][M_PROG_GCJ],[AC_REQUIRE([A][M_PROG_GCJ])],
3335 - [AC_REQUIRE([A][C_PROG_GCJ_OR_A][M_PROG_GCJ])])])])])])
3336 -_LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}GCJ])
3337 -])# _LT_AC_LANG_GCJ
3338 -
3339 -
3340 -# AC_LIBTOOL_RC
3341 -# --------------
3342 -# enable support for Windows resource files
3343 -AC_DEFUN([AC_LIBTOOL_RC],
3344 -[AC_REQUIRE([LT_AC_PROG_RC])
3345 -_LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}RC])
3346 -])# AC_LIBTOOL_RC
3347
3348 + solaris* | sysv5*)
3349 + if $LD -v 2>&1 | egrep 'BFD 2\.8' > /dev/null; then
3350 + ld_shlibs=no
3351 + cat <<EOF 1>&2
3352
3353 -# AC_LIBTOOL_LANG_C_CONFIG
3354 -# ------------------------
3355 -# Ensure that the configuration vars for the C compiler are
3356 -# suitably defined. Those variables are subsequently used by
3357 -# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
3358 -AC_DEFUN([AC_LIBTOOL_LANG_C_CONFIG], [_LT_AC_LANG_C_CONFIG])
3359 -AC_DEFUN([_LT_AC_LANG_C_CONFIG],
3360 -[lt_save_CC="$CC"
3361 -AC_LANG_PUSH(C)
3362 -
3363 -# Source file extension for C test sources.
3364 -ac_ext=c
3365 -
3366 -# Object file extension for compiled C test sources.
3367 -objext=o
3368 -_LT_AC_TAGVAR(objext, $1)=$objext
3369 -
3370 -# Code to be used in simple compile tests
3371 -lt_simple_compile_test_code="int some_variable = 0;\n"
3372 -
3373 -# Code to be used in simple link tests
3374 -lt_simple_link_test_code='int main(){return(0);}\n'
3375 -
3376 -_LT_AC_SYS_COMPILER
3377 -
3378 -# save warnings/boilerplate of simple test code
3379 -_LT_COMPILER_BOILERPLATE
3380 -_LT_LINKER_BOILERPLATE
3381 +*** Warning: The releases 2.8.* of the GNU linker cannot reliably
3382 +*** create shared libraries on Solaris systems. Therefore, libtool
3383 +*** is disabling shared libraries support. We urge you to upgrade GNU
3384 +*** binutils to release 2.9.1 or newer. Another option is to modify
3385 +*** your PATH or compiler configuration so that the native linker is
3386 +*** used, and then restart.
3387
3388 -#
3389 -# Check for any special shared library compilation flags.
3390 -#
3391 -_LT_AC_TAGVAR(lt_prog_cc_shlib, $1)=
3392 -if test "$GCC" = no; then
3393 - case $host_os in
3394 - sco3.2v5*)
3395 - _LT_AC_TAGVAR(lt_prog_cc_shlib, $1)='-belf'
3396 +EOF
3397 + elif $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
3398 + archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
3399 + archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
3400 + else
3401 + ld_shlibs=no
3402 + fi
3403 ;;
3404 - esac
3405 -fi
3406 -if test -n "$_LT_AC_TAGVAR(lt_prog_cc_shlib, $1)"; then
3407 - AC_MSG_WARN([`$CC' requires `$_LT_AC_TAGVAR(lt_prog_cc_shlib, $1)' to build shared libraries])
3408 - if echo "$old_CC $old_CFLAGS " | grep "[[ ]]$_LT_AC_TAGVAR(lt_prog_cc_shlib, $1)[[ ]]" >/dev/null; then :
3409 - else
3410 - AC_MSG_WARN([add `$_LT_AC_TAGVAR(lt_prog_cc_shlib, $1)' to the CC or CFLAGS env variable and reconfigure])
3411 - _LT_AC_TAGVAR(lt_cv_prog_cc_can_build_shared, $1)=no
3412 - fi
3413 -fi
3414 -
3415 -
3416 -#
3417 -# Check to make sure the static flag actually works.
3418 -#
3419 -AC_LIBTOOL_LINKER_OPTION([if $compiler static flag $_LT_AC_TAGVAR(lt_prog_compiler_static, $1) works],
3420 - _LT_AC_TAGVAR(lt_prog_compiler_static_works, $1),
3421 - $_LT_AC_TAGVAR(lt_prog_compiler_static, $1),
3422 - [],
3423 - [_LT_AC_TAGVAR(lt_prog_compiler_static, $1)=])
3424 -
3425 -
3426 -AC_LIBTOOL_PROG_COMPILER_NO_RTTI($1)
3427 -AC_LIBTOOL_PROG_COMPILER_PIC($1)
3428 -AC_LIBTOOL_PROG_CC_C_O($1)
3429 -AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1)
3430 -AC_LIBTOOL_PROG_LD_SHLIBS($1)
3431 -AC_LIBTOOL_SYS_DYNAMIC_LINKER($1)
3432 -AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1)
3433 -AC_LIBTOOL_SYS_LIB_STRIP
3434 -AC_LIBTOOL_DLOPEN_SELF($1)
3435 -
3436 -# Report which librarie types wil actually be built
3437 -AC_MSG_CHECKING([if libtool supports shared libraries])
3438 -AC_MSG_RESULT([$can_build_shared])
3439 -
3440 -AC_MSG_CHECKING([whether to build shared libraries])
3441 -test "$can_build_shared" = "no" && enable_shared=no
3442 -
3443 -# On AIX, shared libraries and static libraries use the same namespace, and
3444 -# are all built from PIC.
3445 -case $host_os in
3446 -aix3*)
3447 - test "$enable_shared" = yes && enable_static=no
3448 - if test -n "$RANLIB"; then
3449 - archive_cmds="$archive_cmds~\$RANLIB \$lib"
3450 - postinstall_cmds='$RANLIB $lib'
3451 - fi
3452 - ;;
3453
3454 -aix4* | aix5*)
3455 - if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
3456 - test "$enable_shared" = yes && enable_static=no
3457 - fi
3458 + sunos4*)
3459 + archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
3460 + wlarc=
3461 + hardcode_direct=yes
3462 + hardcode_shlibpath_var=no
3463 ;;
3464 -esac
3465 -AC_MSG_RESULT([$enable_shared])
3466 -
3467 -AC_MSG_CHECKING([whether to build static libraries])
3468 -# Make sure either enable_shared or enable_static is yes.
3469 -test "$enable_shared" = yes || enable_static=yes
3470 -AC_MSG_RESULT([$enable_static])
3471
3472 -AC_LIBTOOL_CONFIG($1)
3473 -
3474 -AC_LANG_POP
3475 -CC="$lt_save_CC"
3476 -])# AC_LIBTOOL_LANG_C_CONFIG
3477 -
3478 -
3479 -# AC_LIBTOOL_LANG_CXX_CONFIG
3480 -# --------------------------
3481 -# Ensure that the configuration vars for the C compiler are
3482 -# suitably defined. Those variables are subsequently used by
3483 -# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
3484 -AC_DEFUN([AC_LIBTOOL_LANG_CXX_CONFIG], [_LT_AC_LANG_CXX_CONFIG(CXX)])
3485 -AC_DEFUN([_LT_AC_LANG_CXX_CONFIG],
3486 -[AC_LANG_PUSH(C++)
3487 -AC_REQUIRE([AC_PROG_CXX])
3488 -AC_REQUIRE([_LT_AC_PROG_CXXCPP])
3489 -
3490 -_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
3491 -_LT_AC_TAGVAR(allow_undefined_flag, $1)=
3492 -_LT_AC_TAGVAR(always_export_symbols, $1)=no
3493 -_LT_AC_TAGVAR(archive_expsym_cmds, $1)=
3494 -_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)=
3495 -_LT_AC_TAGVAR(hardcode_direct, $1)=no
3496 -_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=
3497 -_LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
3498 -_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
3499 -_LT_AC_TAGVAR(hardcode_minus_L, $1)=no
3500 -_LT_AC_TAGVAR(hardcode_automatic, $1)=no
3501 -_LT_AC_TAGVAR(module_cmds, $1)=
3502 -_LT_AC_TAGVAR(module_expsym_cmds, $1)=
3503 -_LT_AC_TAGVAR(link_all_deplibs, $1)=unknown
3504 -_LT_AC_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
3505 -_LT_AC_TAGVAR(no_undefined_flag, $1)=
3506 -_LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
3507 -_LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=no
3508 -
3509 -# Dependencies to place before and after the object being linked:
3510 -_LT_AC_TAGVAR(predep_objects, $1)=
3511 -_LT_AC_TAGVAR(postdep_objects, $1)=
3512 -_LT_AC_TAGVAR(predeps, $1)=
3513 -_LT_AC_TAGVAR(postdeps, $1)=
3514 -_LT_AC_TAGVAR(compiler_lib_search_path, $1)=
3515 -
3516 -# Source file extension for C++ test sources.
3517 -ac_ext=cpp
3518 -
3519 -# Object file extension for compiled C++ test sources.
3520 -objext=o
3521 -_LT_AC_TAGVAR(objext, $1)=$objext
3522 -
3523 -# Code to be used in simple compile tests
3524 -lt_simple_compile_test_code="int some_variable = 0;\n"
3525 -
3526 -# Code to be used in simple link tests
3527 -lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n'
3528 -
3529 -# ltmain only uses $CC for tagged configurations so make sure $CC is set.
3530 -_LT_AC_SYS_COMPILER
3531 -
3532 -# save warnings/boilerplate of simple test code
3533 -_LT_COMPILER_BOILERPLATE
3534 -_LT_LINKER_BOILERPLATE
3535 -
3536 -# Allow CC to be a program name with arguments.
3537 -lt_save_CC=$CC
3538 -lt_save_LD=$LD
3539 -lt_save_GCC=$GCC
3540 -GCC=$GXX
3541 -lt_save_with_gnu_ld=$with_gnu_ld
3542 -lt_save_path_LD=$lt_cv_path_LD
3543 -if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
3544 - lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
3545 -else
3546 - unset lt_cv_prog_gnu_ld
3547 -fi
3548 -if test -n "${lt_cv_path_LDCXX+set}"; then
3549 - lt_cv_path_LD=$lt_cv_path_LDCXX
3550 -else
3551 - unset lt_cv_path_LD
3552 -fi
3553 -test -z "${LDCXX+set}" || LD=$LDCXX
3554 -CC=${CXX-"c++"}
3555 -compiler=$CC
3556 -_LT_AC_TAGVAR(compiler, $1)=$CC
3557 -_LT_CC_BASENAME([$compiler])
3558 -
3559 -# We don't want -fno-exception wen compiling C++ code, so set the
3560 -# no_builtin_flag separately
3561 -if test "$GXX" = yes; then
3562 - _LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin'
3563 -else
3564 - _LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=
3565 -fi
3566 -
3567 -if test "$GXX" = yes; then
3568 - # Set up default GNU C++ configuration
3569 -
3570 - AC_PROG_LD
3571 -
3572 - # Check if GNU C++ uses GNU ld as the underlying linker, since the
3573 - # archiving commands below assume that GNU ld is being used.
3574 - if test "$with_gnu_ld" = yes; then
3575 - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
3576 - _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'
3577 -
3578 - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir'
3579 - _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
3580 -
3581 - # If archive_cmds runs LD, not CC, wlarc should be empty
3582 - # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
3583 - # investigate it a little bit more. (MM)
3584 - wlarc='${wl}'
3585 -
3586 - # ancient GNU ld didn't support --whole-archive et. al.
3587 - if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
3588 - grep 'no-whole-archive' > /dev/null; then
3589 - _LT_AC_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
3590 + *)
3591 + if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
3592 + archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
3593 + archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
3594 else
3595 - _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
3596 + ld_shlibs=no
3597 fi
3598 - else
3599 - with_gnu_ld=no
3600 - wlarc=
3601 + ;;
3602 + esac
3603
3604 - # A generic and very simple default shared library creation
3605 - # command for GNU C++ for the case where it uses the native
3606 - # linker, instead of GNU ld. If possible, this setting should
3607 - # overridden to take advantage of the native linker features on
3608 - # the platform it is being used on.
3609 - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
3610 + if test "$ld_shlibs" = yes; then
3611 + runpath_var=LD_RUN_PATH
3612 + hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
3613 + export_dynamic_flag_spec='${wl}--export-dynamic'
3614 + case $host_os in
3615 + cygwin* | mingw* | pw32*)
3616 + # dlltool doesn't understand --whole-archive et. al.
3617 + whole_archive_flag_spec=
3618 + ;;
3619 + *)
3620 + # ancient GNU ld didn't support --whole-archive et. al.
3621 + if $LD --help 2>&1 | egrep 'no-whole-archive' > /dev/null; then
3622 + whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
3623 + else
3624 + whole_archive_flag_spec=
3625 + fi
3626 + ;;
3627 + esac
3628 fi
3629 -
3630 - # Commands to make compiler produce verbose output that lists
3631 - # what "hidden" libraries, object files and flags are used when
3632 - # linking a shared library.
3633 - output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
3634 -
3635 else
3636 - GXX=no
3637 - with_gnu_ld=no
3638 - wlarc=
3639 -fi
3640 -
3641 -# PORTME: fill in a description of your system's C++ link characteristics
3642 -AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries])
3643 -_LT_AC_TAGVAR(ld_shlibs, $1)=yes
3644 -case $host_os in
3645 + # PORTME fill in a description of your system's linker (not GNU ld)
3646 + case $host_os in
3647 aix3*)
3648 - # FIXME: insert proper C++ library support
3649 - _LT_AC_TAGVAR(ld_shlibs, $1)=no
3650 + allow_undefined_flag=unsupported
3651 + always_export_symbols=yes
3652 + archive_expsym_cmds='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
3653 + # Note: this linker hardcodes the directories in LIBPATH if there
3654 + # are no directories specified by -L.
3655 + hardcode_minus_L=yes
3656 + if test "$GCC" = yes && test -z "$link_static_flag"; then
3657 + # Neither direct hardcoding nor static linking is supported with a
3658 + # broken collect2.
3659 + hardcode_direct=unsupported
3660 + fi
3661 ;;
3662 +
3663 aix4* | aix5*)
3664 if test "$host_cpu" = ia64; then
3665 # On IA64, the linker does run time linking by default, so we don't
3666 @@ -3688,7 +2294,7 @@
3667 *-brtl*)
3668 aix_use_runtimelinking=yes
3669 break
3670 - ;;
3671 + ;;
3672 esac
3673 done
3674 esac
3675 @@ -3703,42 +2309,34 @@
3676 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
3677 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
3678
3679 - _LT_AC_TAGVAR(archive_cmds, $1)=''
3680 - _LT_AC_TAGVAR(hardcode_direct, $1)=yes
3681 - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=':'
3682 - _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
3683 -
3684 - if test "$GXX" = yes; then
3685 + hardcode_direct=yes
3686 + archive_cmds=''
3687 + hardcode_libdir_separator=':'
3688 + if test "$GCC" = yes; then
3689 case $host_os in aix4.[[012]]|aix4.[[012]].*)
3690 - # We only want to do this on AIX 4.2 and lower, the check
3691 - # below for broken collect2 doesn't work under 4.3+
3692 collect2name=`${CC} -print-prog-name=collect2`
3693 if test -f "$collect2name" && \
3694 - strings "$collect2name" | grep resolve_lib_name >/dev/null
3695 + strings "$collect2name" | grep resolve_lib_name >/dev/null
3696 then
3697 # We have reworked collect2
3698 - _LT_AC_TAGVAR(hardcode_direct, $1)=yes
3699 + hardcode_direct=yes
3700 else
3701 # We have old collect2
3702 - _LT_AC_TAGVAR(hardcode_direct, $1)=unsupported
3703 + hardcode_direct=unsupported
3704 # It fails to find uninstalled libraries when the uninstalled
3705 # path is not listed in the libpath. Setting hardcode_minus_L
3706 # to unsupported forces relinking
3707 - _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
3708 - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
3709 - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
3710 + hardcode_minus_L=yes
3711 + hardcode_libdir_flag_spec='-L$libdir'
3712 + hardcode_libdir_separator=
3713 fi
3714 esac
3715 +
3716 shared_flag='-shared'
3717 - if test "$aix_use_runtimelinking" = yes; then
3718 - shared_flag="$shared_flag "'${wl}-G'
3719 - fi
3720 else
3721 # not using gcc
3722 if test "$host_cpu" = ia64; then
3723 - # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
3724 - # chokes on -Wl,-G. The following line is correct:
3725 - shared_flag='-G'
3726 + shared_flag='${wl}-G'
3727 else
3728 if test "$aix_use_runtimelinking" = yes; then
3729 shared_flag='${wl}-G'
3730 @@ -3748,935 +2346,845 @@
3731 fi
3732 fi
3733
3734 - # It seems that -bexpall does not export symbols beginning with
3735 - # underscore (_), so it is better to generate a list of symbols to export.
3736 - _LT_AC_TAGVAR(always_export_symbols, $1)=yes
3737 + # It seems that -bexpall can do strange things, so it is better to
3738 + # generate a list of symbols to export.
3739 + always_export_symbols=yes
3740 if test "$aix_use_runtimelinking" = yes; then
3741 # Warning - without using the other runtime loading flags (-brtl),
3742 # -berok will link without error, but may produce a broken library.
3743 - _LT_AC_TAGVAR(allow_undefined_flag, $1)='-berok'
3744 - # Determine the default libpath from the value encoded in an empty executable.
3745 - _LT_AC_SYS_LIBPATH_AIX
3746 - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
3747 -
3748 - _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
3749 - else
3750 + allow_undefined_flag='-berok'
3751 + hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:/usr/lib:/lib'
3752 + archive_expsym_cmds="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
3753 + else
3754 if test "$host_cpu" = ia64; then
3755 - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib'
3756 - _LT_AC_TAGVAR(allow_undefined_flag, $1)="-z nodefs"
3757 - _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
3758 + hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
3759 + allow_undefined_flag="-z nodefs"
3760 + archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname ${wl}-h$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
3761 else
3762 - # Determine the default libpath from the value encoded in an empty executable.
3763 - _LT_AC_SYS_LIBPATH_AIX
3764 - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
3765 + hardcode_libdir_flag_spec='${wl}-bnolibpath ${wl}-blibpath:$libdir:/usr/lib:/lib'
3766 # Warning - without using the other run time loading flags,
3767 # -berok will link without error, but may produce a broken library.
3768 - _LT_AC_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok'
3769 - _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok'
3770 - # -bexpall does not export symbols beginning with underscore (_)
3771 - _LT_AC_TAGVAR(always_export_symbols, $1)=yes
3772 - # Exported symbols can be pulled into shared objects from archives
3773 - _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=' '
3774 - _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes
3775 - # This is similar to how AIX traditionally builds its shared libraries.
3776 - _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
3777 + allow_undefined_flag='${wl}-berok'
3778 + # This is a bit strange, but is similar to how AIX traditionally builds
3779 + # it's shared libraries.
3780 + archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"' ~$AR -crlo $output_objdir/$libname$release.a $output_objdir/$soname'
3781 fi
3782 fi
3783 ;;
3784 - chorus*)
3785 - case $cc_basename in
3786 - *)
3787 - # FIXME: insert proper C++ library support
3788 - _LT_AC_TAGVAR(ld_shlibs, $1)=no
3789 - ;;
3790 +
3791 + amigaos*)
3792 + 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)'
3793 + hardcode_libdir_flag_spec='-L$libdir'
3794 + hardcode_minus_L=yes
3795 + # see comment about different semantics on the GNU ld section
3796 + ld_shlibs=no
3797 + ;;
3798 +
3799 + cygwin* | mingw* | pw32*)
3800 + # When not using gcc, we currently assume that we are using
3801 + # Microsoft Visual C++.
3802 + # hardcode_libdir_flag_spec is actually meaningless, as there is
3803 + # no search path for DLLs.
3804 + hardcode_libdir_flag_spec=' '
3805 + allow_undefined_flag=unsupported
3806 + # Tell ltmain to make .lib files, not .a files.
3807 + libext=lib
3808 + # FIXME: Setting linknames here is a bad hack.
3809 + archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | sed -e '\''s/ -lc$//'\''` -link -dll~linknames='
3810 + # The linker will automatically build a .lib file if we build a DLL.
3811 + old_archive_from_new_cmds='true'
3812 + # FIXME: Should let the user specify the lib program.
3813 + old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
3814 + fix_srcfile_path='`cygpath -w "$srcfile"`'
3815 + ;;
3816 +
3817 + darwin* | rhapsody*)
3818 + case "$host_os" in
3819 + rhapsody* | darwin1.[[012]])
3820 + allow_undefined_flag='-undefined suppress'
3821 + ;;
3822 + *) # Darwin 1.3 on
3823 + allow_undefined_flag='-flat_namespace -undefined suppress'
3824 + ;;
3825 esac
3826 + # FIXME: Relying on posixy $() will cause problems for
3827 + # cross-compilation, but unfortunately the echo tests do not
3828 + # yet detect zsh echo's removal of \ escapes. Also zsh mangles
3829 + # `"' quotes if we put them in here... so don't!
3830 + archive_cmds='$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs && $CC $(test .$module = .yes && echo -bundle || echo -dynamiclib) $allow_undefined_flag -o $lib ${lib}-master.o $deplibs$linker_flags $(test .$module != .yes && echo -install_name $rpath/$soname $verstring)'
3831 + # We need to add '_' to the symbols in $export_symbols first
3832 + #archive_expsym_cmds="$archive_cmds"' && strip -s $export_symbols'
3833 + hardcode_direct=yes
3834 + hardcode_shlibpath_var=no
3835 + whole_archive_flag_spec='-all_load $convenience'
3836 + ;;
3837 +
3838 + freebsd1*)
3839 + ld_shlibs=no
3840 + ;;
3841 +
3842 + # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
3843 + # support. Future versions do this automatically, but an explicit c++rt0.o
3844 + # does not break anything, and helps significantly (at the cost of a little
3845 + # extra space).
3846 + freebsd2.2*)
3847 + archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
3848 + hardcode_libdir_flag_spec='-R$libdir'
3849 + hardcode_direct=yes
3850 + hardcode_shlibpath_var=no
3851 ;;
3852
3853 + # Unfortunately, older versions of FreeBSD 2 do not have this feature.
3854 + freebsd2*)
3855 + archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
3856 + hardcode_direct=yes
3857 + hardcode_minus_L=yes
3858 + hardcode_shlibpath_var=no
3859 + ;;
3860
3861 - cygwin* | mingw* | pw32*)
3862 - # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless,
3863 - # as there is no search path for DLLs.
3864 - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
3865 - _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
3866 - _LT_AC_TAGVAR(always_export_symbols, $1)=no
3867 - _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
3868 -
3869 - if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
3870 - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
3871 - # If the export-symbols file already is a .def file (1st line
3872 - # is EXPORTS), use it as is; otherwise, prepend...
3873 - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
3874 - cp $export_symbols $output_objdir/$soname.def;
3875 - else
3876 - echo EXPORTS > $output_objdir/$soname.def;
3877 - cat $export_symbols >> $output_objdir/$soname.def;
3878 - fi~
3879 - $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
3880 + # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
3881 + freebsd*)
3882 + archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
3883 + hardcode_libdir_flag_spec='-R$libdir'
3884 + hardcode_direct=yes
3885 + hardcode_shlibpath_var=no
3886 + ;;
3887 +
3888 + hpux9* | hpux10* | hpux11*)
3889 + case $host_os in
3890 + hpux9*) 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' ;;
3891 + *) archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' ;;
3892 + esac
3893 + hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
3894 + hardcode_libdir_separator=:
3895 + hardcode_direct=yes
3896 + hardcode_minus_L=yes # Not in the search PATH, but as the default
3897 + # location of the library.
3898 + export_dynamic_flag_spec='${wl}-E'
3899 + ;;
3900 +
3901 + irix5* | irix6* | nonstopux*)
3902 + if test "$GCC" = yes; then
3903 + 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'
3904 + hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
3905 else
3906 - _LT_AC_TAGVAR(ld_shlibs, $1)=no
3907 + 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'
3908 + hardcode_libdir_flag_spec='-rpath $libdir'
3909 fi
3910 - ;;
3911 - darwin* | rhapsody*)
3912 - case $host_os in
3913 - rhapsody* | darwin1.[[012]])
3914 - _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-undefined ${wl}suppress'
3915 - ;;
3916 - *) # Darwin 1.3 on
3917 - if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
3918 - _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
3919 - else
3920 - case ${MACOSX_DEPLOYMENT_TARGET} in
3921 - 10.[[012]])
3922 - _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
3923 - ;;
3924 - 10.*)
3925 - _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-undefined ${wl}dynamic_lookup'
3926 - ;;
3927 - esac
3928 - fi
3929 - ;;
3930 - esac
3931 - _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
3932 - _LT_AC_TAGVAR(hardcode_direct, $1)=no
3933 - _LT_AC_TAGVAR(hardcode_automatic, $1)=yes
3934 - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
3935 - _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=''
3936 - _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
3937 -
3938 - if test "$GXX" = yes ; then
3939 - lt_int_apple_cc_single_mod=no
3940 - output_verbose_link_cmd='echo'
3941 - if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
3942 - lt_int_apple_cc_single_mod=yes
3943 - fi
3944 - if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
3945 - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
3946 - else
3947 - _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'
3948 - fi
3949 - _LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
3950 - # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
3951 - if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
3952 - _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}'
3953 - else
3954 - _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}'
3955 - fi
3956 - _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}'
3957 - else
3958 - case $cc_basename in
3959 - xlc*)
3960 - output_verbose_link_cmd='echo'
3961 - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
3962 - _LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
3963 - # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
3964 - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
3965 - _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}'
3966 - ;;
3967 - *)
3968 - _LT_AC_TAGVAR(ld_shlibs, $1)=no
3969 - ;;
3970 - esac
3971 - fi
3972 - ;;
3973 + hardcode_libdir_separator=:
3974 + link_all_deplibs=yes
3975 + ;;
3976
3977 - dgux*)
3978 - case $cc_basename in
3979 - ec++*)
3980 - # FIXME: insert proper C++ library support
3981 - _LT_AC_TAGVAR(ld_shlibs, $1)=no
3982 - ;;
3983 - ghcx*)
3984 - # Green Hills C++ Compiler
3985 - # FIXME: insert proper C++ library support
3986 - _LT_AC_TAGVAR(ld_shlibs, $1)=no
3987 - ;;
3988 - *)
3989 - # FIXME: insert proper C++ library support
3990 - _LT_AC_TAGVAR(ld_shlibs, $1)=no
3991 - ;;
3992 - esac
3993 + netbsd* | knetbsd*-gnu)
3994 + if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
3995 + archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
3996 + else
3997 + archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
3998 + fi
3999 + hardcode_libdir_flag_spec='-R$libdir'
4000 + hardcode_direct=yes
4001 + hardcode_shlibpath_var=no
4002 ;;
4003 - freebsd[[12]]*)
4004 - # C++ shared libraries reported to be fairly broken before switch to ELF
4005 - _LT_AC_TAGVAR(ld_shlibs, $1)=no
4006 - ;;
4007 - freebsd-elf*)
4008 - _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
4009 - ;;
4010 - freebsd* | kfreebsd*-gnu | dragonfly*)
4011 - # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
4012 - # conventions
4013 - _LT_AC_TAGVAR(ld_shlibs, $1)=yes
4014 - ;;
4015 - gnu*)
4016 - ;;
4017 - hpux9*)
4018 - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
4019 - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
4020 - _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
4021 - _LT_AC_TAGVAR(hardcode_direct, $1)=yes
4022 - _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH,
4023 - # but as the default
4024 - # location of the library.
4025 -
4026 - case $cc_basename in
4027 - CC*)
4028 - # FIXME: insert proper C++ library support
4029 - _LT_AC_TAGVAR(ld_shlibs, $1)=no
4030 - ;;
4031 - aCC*)
4032 - _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'
4033 - # Commands to make compiler produce verbose output that lists
4034 - # what "hidden" libraries, object files and flags are used when
4035 - # linking a shared library.
4036 - #
4037 - # There doesn't appear to be a way to prevent this compiler from
4038 - # explicitly linking system object files so we need to strip them
4039 - # from the output so that they don't get included in the library
4040 - # dependencies.
4041 - 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'
4042 - ;;
4043 - *)
4044 - if test "$GXX" = yes; then
4045 - _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'
4046 - else
4047 - # FIXME: insert proper C++ library support
4048 - _LT_AC_TAGVAR(ld_shlibs, $1)=no
4049 - fi
4050 - ;;
4051 - esac
4052 +
4053 + newsos6)
4054 + archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
4055 + hardcode_direct=yes
4056 + hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
4057 + hardcode_libdir_separator=:
4058 + hardcode_shlibpath_var=no
4059 ;;
4060 - hpux10*|hpux11*)
4061 - if test $with_gnu_ld = no; then
4062 - case $host_cpu in
4063 - hppa*64*)
4064 - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
4065 - _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='+b $libdir'
4066 - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
4067 - ;;
4068 - ia64*)
4069 - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
4070 +
4071 + openbsd*)
4072 + hardcode_direct=yes
4073 + hardcode_shlibpath_var=no
4074 + if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4075 + archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
4076 + hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
4077 + export_dynamic_flag_spec='${wl}-E'
4078 + else
4079 + case "$host_os" in
4080 + openbsd[[01]].* | openbsd2.[[0-7]] | openbsd2.[[0-7]].*)
4081 + archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
4082 + hardcode_libdir_flag_spec='-R$libdir'
4083 ;;
4084 *)
4085 - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
4086 - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
4087 - _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
4088 + archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
4089 + hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
4090 ;;
4091 esac
4092 fi
4093 - case $host_cpu in
4094 - hppa*64*)
4095 - _LT_AC_TAGVAR(hardcode_direct, $1)=no
4096 - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
4097 - ;;
4098 - ia64*)
4099 - _LT_AC_TAGVAR(hardcode_direct, $1)=no
4100 - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
4101 - _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH,
4102 - # but as the default
4103 - # location of the library.
4104 - ;;
4105 - *)
4106 - _LT_AC_TAGVAR(hardcode_direct, $1)=yes
4107 - _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH,
4108 - # but as the default
4109 - # location of the library.
4110 - ;;
4111 - esac
4112 + ;;
4113 +
4114 + os2*)
4115 + hardcode_libdir_flag_spec='-L$libdir'
4116 + hardcode_minus_L=yes
4117 + allow_undefined_flag=unsupported
4118 + 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'
4119 + old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
4120 + ;;
4121 +
4122 + osf3*)
4123 + if test "$GCC" = yes; then
4124 + allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
4125 + 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'
4126 + else
4127 + allow_undefined_flag=' -expect_unresolved \*'
4128 + 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'
4129 + fi
4130 + hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
4131 + hardcode_libdir_separator=:
4132 + ;;
4133 +
4134 + osf4* | osf5*) # as osf3* with the addition of -msym flag
4135 + if test "$GCC" = yes; then
4136 + allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
4137 + 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'
4138 + hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
4139 + else
4140 + allow_undefined_flag=' -expect_unresolved \*'
4141 + 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'
4142 + archive_expsym_cmds='for i in `cat $export_symbols`; do printf "-exported_symbol " >> $lib.exp; echo "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
4143 + $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib~$rm $lib.exp'
4144 +
4145 + #Both c and cxx compiler support -rpath directly
4146 + hardcode_libdir_flag_spec='-rpath $libdir'
4147 + fi
4148 + hardcode_libdir_separator=:
4149 + ;;
4150 +
4151 + sco3.2v5*)
4152 + archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
4153 + hardcode_shlibpath_var=no
4154 + runpath_var=LD_RUN_PATH
4155 + hardcode_runpath_var=yes
4156 + export_dynamic_flag_spec='${wl}-Bexport'
4157 + ;;
4158
4159 - case $cc_basename in
4160 - CC*)
4161 - # FIXME: insert proper C++ library support
4162 - _LT_AC_TAGVAR(ld_shlibs, $1)=no
4163 - ;;
4164 - aCC*)
4165 - case $host_cpu in
4166 - hppa*64*|ia64*)
4167 - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
4168 - ;;
4169 - *)
4170 - _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'
4171 - ;;
4172 - esac
4173 - # Commands to make compiler produce verbose output that lists
4174 - # what "hidden" libraries, object files and flags are used when
4175 - # linking a shared library.
4176 - #
4177 - # There doesn't appear to be a way to prevent this compiler from
4178 - # explicitly linking system object files so we need to strip them
4179 - # from the output so that they don't get included in the library
4180 - # dependencies.
4181 - 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'
4182 - ;;
4183 - *)
4184 - if test "$GXX" = yes; then
4185 - if test $with_gnu_ld = no; then
4186 - case $host_cpu in
4187 - ia64*|hppa*64*)
4188 - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
4189 - ;;
4190 - *)
4191 - _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'
4192 - ;;
4193 - esac
4194 - fi
4195 - else
4196 - # FIXME: insert proper C++ library support
4197 - _LT_AC_TAGVAR(ld_shlibs, $1)=no
4198 - fi
4199 + solaris*)
4200 + # gcc --version < 3.0 without binutils cannot create self contained
4201 + # shared libraries reliably, requiring libgcc.a to resolve some of
4202 + # the object symbols generated in some cases. Libraries that use
4203 + # assert need libgcc.a to resolve __eprintf, for example. Linking
4204 + # a copy of libgcc.a into every shared library to guarantee resolving
4205 + # such symbols causes other problems: According to Tim Van Holder
4206 + # <tim.van.holder@pandora.be>, C++ libraries end up with a separate
4207 + # (to the application) exception stack for one thing.
4208 + no_undefined_flag=' -z defs'
4209 + if test "$GCC" = yes; then
4210 + case `$CC --version 2>/dev/null` in
4211 + [[12]].*)
4212 + cat <<EOF 1>&2
4213 +
4214 +*** Warning: Releases of GCC earlier than version 3.0 cannot reliably
4215 +*** create self contained shared libraries on Solaris systems, without
4216 +*** introducing a dependency on libgcc.a. Therefore, libtool is disabling
4217 +*** -no-undefined support, which will at least allow you to build shared
4218 +*** libraries. However, you may find that when you link such libraries
4219 +*** into an application without using GCC, you have to manually add
4220 +*** \`gcc --print-libgcc-file-name\` to the link command. We urge you to
4221 +*** upgrade to a newer version of GCC. Another option is to rebuild your
4222 +*** current GCC to use the GNU linker from GNU binutils 2.9.1 or newer.
4223 +
4224 +EOF
4225 + no_undefined_flag=
4226 ;;
4227 + esac
4228 + fi
4229 + # $CC -shared without GNU ld will not create a library from C++
4230 + # object files and a static libstdc++, better avoid it by now
4231 + archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
4232 + archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
4233 + $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
4234 + hardcode_libdir_flag_spec='-R$libdir'
4235 + hardcode_shlibpath_var=no
4236 + case $host_os in
4237 + solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
4238 + *) # Supported since Solaris 2.6 (maybe 2.5.1?)
4239 + whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
4240 esac
4241 + link_all_deplibs=yes
4242 ;;
4243 - irix5* | irix6*)
4244 - case $cc_basename in
4245 - CC*)
4246 - # SGI C++
4247 - _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'
4248 -
4249 - # Archives containing C++ object files must be created using
4250 - # "CC -ar", where "CC" is the IRIX C++ compiler. This is
4251 - # necessary to make sure instantiated templates are included
4252 - # in the archive.
4253 - _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -ar -WR,-u -o $oldlib $oldobjs'
4254 - ;;
4255 - *)
4256 - if test "$GXX" = yes; then
4257 - if test "$with_gnu_ld" = no; then
4258 - _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'
4259 - else
4260 - _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'
4261 - fi
4262 - fi
4263 - _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
4264 - ;;
4265 - esac
4266 - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
4267 - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
4268 +
4269 + sunos4*)
4270 + if test "x$host_vendor" = xsequent; then
4271 + # Use $CC to link under sequent, because it throws in some extra .o
4272 + # files that make .init and .fini sections work.
4273 + archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
4274 + else
4275 + archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
4276 + fi
4277 + hardcode_libdir_flag_spec='-L$libdir'
4278 + hardcode_direct=yes
4279 + hardcode_minus_L=yes
4280 + hardcode_shlibpath_var=no
4281 ;;
4282 - linux*)
4283 - case $cc_basename in
4284 - KCC*)
4285 - # Kuck and Associates, Inc. (KAI) C++ Compiler
4286 -
4287 - # KCC will only create a shared library if the output file
4288 - # ends with ".so" (or ".sl" for HP-UX), so rename the library
4289 - # to its proper name (with version) after linking.
4290 - _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'
4291 - _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'
4292 - # Commands to make compiler produce verbose output that lists
4293 - # what "hidden" libraries, object files and flags are used when
4294 - # linking a shared library.
4295 - #
4296 - # There doesn't appear to be a way to prevent this compiler from
4297 - # explicitly linking system object files so we need to strip them
4298 - # from the output so that they don't get included in the library
4299 - # dependencies.
4300 - 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'
4301 -
4302 - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath,$libdir'
4303 - _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
4304 -
4305 - # Archives containing C++ object files must be created using
4306 - # "CC -Bstatic", where "CC" is the KAI C++ compiler.
4307 - _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs'
4308 - ;;
4309 - icpc*)
4310 - # Intel C++
4311 - with_gnu_ld=yes
4312 - # version 8.0 and above of icpc choke on multiply defined symbols
4313 - # if we add $predep_objects and $postdep_objects, however 7.1 and
4314 - # earlier do not add the objects themselves.
4315 - case `$CC -V 2>&1` in
4316 - *"Version 7."*)
4317 - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
4318 - _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'
4319 - ;;
4320 - *) # Version 8.0 or newer
4321 - tmp_idyn=
4322 - case $host_cpu in
4323 - ia64*) tmp_idyn=' -i_dynamic';;
4324 - esac
4325 - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
4326 - _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'
4327 - ;;
4328 - esac
4329 - _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
4330 - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
4331 - _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
4332 - _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
4333 - ;;
4334 - pgCC*)
4335 - # Portland Group C++ compiler
4336 - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
4337 - _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'
4338 -
4339 - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir'
4340 - _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
4341 - _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'
4342 +
4343 + sysv4)
4344 + case $host_vendor in
4345 + sni)
4346 + archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
4347 + hardcode_direct=yes # is this really true???
4348 + ;;
4349 + siemens)
4350 + ## LD is ld it makes a PLAMLIB
4351 + ## CC just makes a GrossModule.
4352 + archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
4353 + reload_cmds='$CC -r -o $output$reload_objs'
4354 + hardcode_direct=no
4355 + ;;
4356 + motorola)
4357 + archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
4358 + hardcode_direct=no #Motorola manual says yes, but my tests say they lie
4359 ;;
4360 - cxx*)
4361 - # Compaq C++
4362 - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
4363 - _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'
4364 -
4365 - runpath_var=LD_RUN_PATH
4366 - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
4367 - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
4368 -
4369 - # Commands to make compiler produce verbose output that lists
4370 - # what "hidden" libraries, object files and flags are used when
4371 - # linking a shared library.
4372 - #
4373 - # There doesn't appear to be a way to prevent this compiler from
4374 - # explicitly linking system object files so we need to strip them
4375 - # from the output so that they don't get included in the library
4376 - # dependencies.
4377 - 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'
4378 - ;;
4379 esac
4380 + runpath_var='LD_RUN_PATH'
4381 + hardcode_shlibpath_var=no
4382 ;;
4383 - lynxos*)
4384 - # FIXME: insert proper C++ library support
4385 - _LT_AC_TAGVAR(ld_shlibs, $1)=no
4386 - ;;
4387 - m88k*)
4388 - # FIXME: insert proper C++ library support
4389 - _LT_AC_TAGVAR(ld_shlibs, $1)=no
4390 - ;;
4391 - mvs*)
4392 - case $cc_basename in
4393 - cxx*)
4394 - # FIXME: insert proper C++ library support
4395 - _LT_AC_TAGVAR(ld_shlibs, $1)=no
4396 - ;;
4397 - *)
4398 - # FIXME: insert proper C++ library support
4399 - _LT_AC_TAGVAR(ld_shlibs, $1)=no
4400 - ;;
4401 - esac
4402 +
4403 + sysv4.3*)
4404 + archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
4405 + hardcode_shlibpath_var=no
4406 + export_dynamic_flag_spec='-Bexport'
4407 + ;;
4408 +
4409 + sysv5*)
4410 + no_undefined_flag=' -z text'
4411 + # $CC -shared without GNU ld will not create a library from C++
4412 + # object files and a static libstdc++, better avoid it by now
4413 + archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
4414 + archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
4415 + $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
4416 + hardcode_libdir_flag_spec=
4417 + hardcode_shlibpath_var=no
4418 + runpath_var='LD_RUN_PATH'
4419 + ;;
4420 +
4421 + uts4*)
4422 + archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
4423 + hardcode_libdir_flag_spec='-L$libdir'
4424 + hardcode_shlibpath_var=no
4425 ;;
4426 - netbsd*)
4427 - if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
4428 - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
4429 - wlarc=
4430 - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
4431 - _LT_AC_TAGVAR(hardcode_direct, $1)=yes
4432 - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
4433 +
4434 + dgux*)
4435 + archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
4436 + hardcode_libdir_flag_spec='-L$libdir'
4437 + hardcode_shlibpath_var=no
4438 + ;;
4439 +
4440 + sysv4*MP*)
4441 + if test -d /usr/nec; then
4442 + archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
4443 + hardcode_shlibpath_var=no
4444 + runpath_var=LD_RUN_PATH
4445 + hardcode_runpath_var=yes
4446 + ld_shlibs=yes
4447 fi
4448 - # Workaround some broken pre-1.5 toolchains
4449 - output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
4450 ;;
4451 - openbsd2*)
4452 - # C++ shared libraries are fairly broken
4453 - _LT_AC_TAGVAR(ld_shlibs, $1)=no
4454 +
4455 + sysv4.2uw2*)
4456 + archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
4457 + hardcode_direct=yes
4458 + hardcode_minus_L=no
4459 + hardcode_shlibpath_var=no
4460 + hardcode_runpath_var=yes
4461 + runpath_var=LD_RUN_PATH
4462 ;;
4463 - openbsd*)
4464 - _LT_AC_TAGVAR(hardcode_direct, $1)=yes
4465 - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
4466 - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
4467 - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
4468 - if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4469 - _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'
4470 - _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
4471 - _LT_AC_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
4472 +
4473 + sysv5uw7* | unixware7*)
4474 + no_undefined_flag='${wl}-z ${wl}text'
4475 + if test "$GCC" = yes; then
4476 + archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
4477 + else
4478 + archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
4479 fi
4480 - output_verbose_link_cmd='echo'
4481 + runpath_var='LD_RUN_PATH'
4482 + hardcode_shlibpath_var=no
4483 ;;
4484 - osf3*)
4485 - case $cc_basename in
4486 - KCC*)
4487 - # Kuck and Associates, Inc. (KAI) C++ Compiler
4488 -
4489 - # KCC will only create a shared library if the output file
4490 - # ends with ".so" (or ".sl" for HP-UX), so rename the library
4491 - # to its proper name (with version) after linking.
4492 - _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'
4493 -
4494 - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
4495 - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
4496 -
4497 - # Archives containing C++ object files must be created using
4498 - # "CC -Bstatic", where "CC" is the KAI C++ compiler.
4499 - _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs'
4500 -
4501 - ;;
4502 - RCC*)
4503 - # Rational C++ 2.4.1
4504 - # FIXME: insert proper C++ library support
4505 - _LT_AC_TAGVAR(ld_shlibs, $1)=no
4506 - ;;
4507 - cxx*)
4508 - _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
4509 - _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'
4510 -
4511 - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
4512 - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
4513 -
4514 - # Commands to make compiler produce verbose output that lists
4515 - # what "hidden" libraries, object files and flags are used when
4516 - # linking a shared library.
4517 - #
4518 - # There doesn't appear to be a way to prevent this compiler from
4519 - # explicitly linking system object files so we need to strip them
4520 - # from the output so that they don't get included in the library
4521 - # dependencies.
4522 - 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'
4523 - ;;
4524 - *)
4525 - if test "$GXX" = yes && test "$with_gnu_ld" = no; then
4526 - _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
4527 - _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'
4528 -
4529 - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
4530 - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
4531 -
4532 - # Commands to make compiler produce verbose output that lists
4533 - # what "hidden" libraries, object files and flags are used when
4534 - # linking a shared library.
4535 - output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
4536
4537 - else
4538 - # FIXME: insert proper C++ library support
4539 - _LT_AC_TAGVAR(ld_shlibs, $1)=no
4540 - fi
4541 - ;;
4542 - esac
4543 + *)
4544 + ld_shlibs=no
4545 ;;
4546 - osf4* | osf5*)
4547 - case $cc_basename in
4548 - KCC*)
4549 - # Kuck and Associates, Inc. (KAI) C++ Compiler
4550 -
4551 - # KCC will only create a shared library if the output file
4552 - # ends with ".so" (or ".sl" for HP-UX), so rename the library
4553 - # to its proper name (with version) after linking.
4554 - _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'
4555 -
4556 - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
4557 - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
4558 -
4559 - # Archives containing C++ object files must be created using
4560 - # the KAI C++ compiler.
4561 - _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -o $oldlib $oldobjs'
4562 - ;;
4563 - RCC*)
4564 - # Rational C++ 2.4.1
4565 - # FIXME: insert proper C++ library support
4566 - _LT_AC_TAGVAR(ld_shlibs, $1)=no
4567 - ;;
4568 - cxx*)
4569 - _LT_AC_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
4570 - _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'
4571 - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
4572 - echo "-hidden">> $lib.exp~
4573 - $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~
4574 - $rm $lib.exp'
4575 -
4576 - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
4577 - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
4578 -
4579 - # Commands to make compiler produce verbose output that lists
4580 - # what "hidden" libraries, object files and flags are used when
4581 - # linking a shared library.
4582 - #
4583 - # There doesn't appear to be a way to prevent this compiler from
4584 - # explicitly linking system object files so we need to strip them
4585 - # from the output so that they don't get included in the library
4586 - # dependencies.
4587 - 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'
4588 - ;;
4589 - *)
4590 - if test "$GXX" = yes && test "$with_gnu_ld" = no; then
4591 - _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
4592 - _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'
4593 -
4594 - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
4595 - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
4596 -
4597 - # Commands to make compiler produce verbose output that lists
4598 - # what "hidden" libraries, object files and flags are used when
4599 - # linking a shared library.
4600 - output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
4601 + esac
4602 +fi
4603 +AC_MSG_RESULT([$ld_shlibs])
4604 +test "$ld_shlibs" = no && can_build_shared=no
4605 +
4606 +# Check hardcoding attributes.
4607 +AC_MSG_CHECKING([how to hardcode library paths into programs])
4608 +hardcode_action=
4609 +if test -n "$hardcode_libdir_flag_spec" || \
4610 + test -n "$runpath_var"; then
4611 +
4612 + # We can hardcode non-existant directories.
4613 + if test "$hardcode_direct" != no &&
4614 + # If the only mechanism to avoid hardcoding is shlibpath_var, we
4615 + # have to relink, otherwise we might link with an installed library
4616 + # when we should be linking with a yet-to-be-installed one
4617 + ## test "$hardcode_shlibpath_var" != no &&
4618 + test "$hardcode_minus_L" != no; then
4619 + # Linking always hardcodes the temporary library directory.
4620 + hardcode_action=relink
4621 + else
4622 + # We can link without hardcoding, and we can hardcode nonexisting dirs.
4623 + hardcode_action=immediate
4624 + fi
4625 +else
4626 + # We cannot hardcode anything, or else we can only hardcode existing
4627 + # directories.
4628 + hardcode_action=unsupported
4629 +fi
4630 +AC_MSG_RESULT([$hardcode_action])
4631 +
4632 +striplib=
4633 +old_striplib=
4634 +AC_MSG_CHECKING([whether stripping libraries is possible])
4635 +if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
4636 + test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
4637 + test -z "$striplib" && striplib="$STRIP --strip-unneeded"
4638 + AC_MSG_RESULT([yes])
4639 +else
4640 + AC_MSG_RESULT([no])
4641 +fi
4642 +
4643 +reload_cmds='$LD$reload_flag -o $output$reload_objs'
4644 +test -z "$deplibs_check_method" && deplibs_check_method=unknown
4645 +
4646 +# PORTME Fill in your ld.so characteristics
4647 +AC_MSG_CHECKING([dynamic linker characteristics])
4648 +library_names_spec=
4649 +libname_spec='lib$name'
4650 +soname_spec=
4651 +postinstall_cmds=
4652 +postuninstall_cmds=
4653 +finish_cmds=
4654 +finish_eval=
4655 +shlibpath_var=
4656 +shlibpath_overrides_runpath=unknown
4657 +version_type=none
4658 +dynamic_linker="$host_os ld.so"
4659 +sys_lib_dlsearch_path_spec="/lib /usr/lib"
4660 +sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
4661 +
4662 +case $host_os in
4663 +aix3*)
4664 + version_type=linux
4665 + library_names_spec='${libname}${release}.so$versuffix $libname.a'
4666 + shlibpath_var=LIBPATH
4667
4668 + # AIX has no versioning support, so we append a major version to the name.
4669 + soname_spec='${libname}${release}.so$major'
4670 + ;;
4671 +
4672 +aix4* | aix5*)
4673 + version_type=linux
4674 + need_lib_prefix=no
4675 + need_version=no
4676 + hardcode_into_libs=yes
4677 + if test "$host_cpu" = ia64; then
4678 + # AIX 5 supports IA64
4679 + library_names_spec='${libname}${release}.so$major ${libname}${release}.so$versuffix $libname.so'
4680 + shlibpath_var=LD_LIBRARY_PATH
4681 + else
4682 + # With GCC up to 2.95.x, collect2 would create an import file
4683 + # for dependence libraries. The import file would start with
4684 + # the line `#! .'. This would cause the generated library to
4685 + # depend on `.', always an invalid library. This was fixed in
4686 + # development snapshots of GCC prior to 3.0.
4687 + case $host_os in
4688 + aix4 | aix4.[[01]] | aix4.[[01]].*)
4689 + if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
4690 + echo ' yes '
4691 + echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
4692 + :
4693 else
4694 - # FIXME: insert proper C++ library support
4695 - _LT_AC_TAGVAR(ld_shlibs, $1)=no
4696 + can_build_shared=no
4697 fi
4698 ;;
4699 esac
4700 + # AIX (on Power*) has no versioning support, so currently we can
4701 + # not hardcode correct soname into executable. Probably we can
4702 + # add versioning support to collect2, so additional links can
4703 + # be useful in future.
4704 + if test "$aix_use_runtimelinking" = yes; then
4705 + # If using run time linking (on AIX 4.2 or later) use lib<name>.so
4706 + # instead of lib<name>.a to let people know that these are not
4707 + # typical AIX shared libraries.
4708 + library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
4709 + else
4710 + # We preserve .a as extension for shared libraries through AIX4.2
4711 + # and later when we are not doing run time linking.
4712 + library_names_spec='${libname}${release}.a $libname.a'
4713 + soname_spec='${libname}${release}.so$major'
4714 + fi
4715 + shlibpath_var=LIBPATH
4716 + fi
4717 + hardcode_into_libs=yes
4718 + ;;
4719 +
4720 +amigaos*)
4721 + library_names_spec='$libname.ixlibrary $libname.a'
4722 + # Create ${libname}_ixlibrary.a entries in /sys/libs.
4723 + 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'
4724 + ;;
4725 +
4726 +beos*)
4727 + library_names_spec='${libname}.so'
4728 + dynamic_linker="$host_os ld.so"
4729 + shlibpath_var=LIBRARY_PATH
4730 + ;;
4731 +
4732 +bsdi4*)
4733 + version_type=linux
4734 + need_version=no
4735 + library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
4736 + soname_spec='${libname}${release}.so$major'
4737 + finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
4738 + shlibpath_var=LD_LIBRARY_PATH
4739 + sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
4740 + sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
4741 + export_dynamic_flag_spec=-rdynamic
4742 + # the default ld.so.conf also contains /usr/contrib/lib and
4743 + # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
4744 + # libtool to hard-code these into programs
4745 + ;;
4746 +
4747 +cygwin* | mingw* | pw32*)
4748 + version_type=windows
4749 + need_version=no
4750 + need_lib_prefix=no
4751 + case $GCC,$host_os in
4752 + yes,cygwin*)
4753 + library_names_spec='$libname.dll.a'
4754 + soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | sed -e 's/[[.]]/-/g'`${versuffix}.dll'
4755 + postinstall_cmds='dlpath=`bash 2>&1 -c '\''. $dir/${file}i;echo \$dlname'\''`~
4756 + dldir=$destdir/`dirname \$dlpath`~
4757 + test -d \$dldir || mkdir -p \$dldir~
4758 + $install_prog .libs/$dlname \$dldir/$dlname'
4759 + postuninstall_cmds='dldll=`bash 2>&1 -c '\''. $file; echo \$dlname'\''`~
4760 + dlpath=$dir/\$dldll~
4761 + $rm \$dlpath'
4762 ;;
4763 - psos*)
4764 - # FIXME: insert proper C++ library support
4765 - _LT_AC_TAGVAR(ld_shlibs, $1)=no
4766 - ;;
4767 - sco*)
4768 - _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
4769 - case $cc_basename in
4770 - CC*)
4771 - # FIXME: insert proper C++ library support
4772 - _LT_AC_TAGVAR(ld_shlibs, $1)=no
4773 - ;;
4774 - *)
4775 - # FIXME: insert proper C++ library support
4776 - _LT_AC_TAGVAR(ld_shlibs, $1)=no
4777 - ;;
4778 - esac
4779 + yes,mingw*)
4780 + library_names_spec='${libname}`echo ${release} | sed -e 's/[[.]]/-/g'`${versuffix}.dll'
4781 + sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | sed -e "s/^libraries://" -e "s/;/ /g" -e "s,=/,/,g"`
4782 ;;
4783 - sunos4*)
4784 - case $cc_basename in
4785 - CC*)
4786 - # Sun C++ 4.x
4787 - # FIXME: insert proper C++ library support
4788 - _LT_AC_TAGVAR(ld_shlibs, $1)=no
4789 - ;;
4790 - lcc*)
4791 - # Lucid
4792 - # FIXME: insert proper C++ library support
4793 - _LT_AC_TAGVAR(ld_shlibs, $1)=no
4794 - ;;
4795 - *)
4796 - # FIXME: insert proper C++ library support
4797 - _LT_AC_TAGVAR(ld_shlibs, $1)=no
4798 - ;;
4799 - esac
4800 + yes,pw32*)
4801 + library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll'
4802 ;;
4803 - solaris*)
4804 - case $cc_basename in
4805 - CC*)
4806 - # Sun C++ 4.2, 5.x and Centerline C++
4807 - _LT_AC_TAGVAR(archive_cmds_need_lc,$1)=yes
4808 - _LT_AC_TAGVAR(no_undefined_flag, $1)=' -zdefs'
4809 - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
4810 - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
4811 - $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'
4812 -
4813 - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
4814 - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
4815 - case $host_os in
4816 - solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
4817 - *)
4818 - # The C++ compiler is used as linker so we must use $wl
4819 - # flag to pass the commands to the underlying system
4820 - # linker. We must also pass each convience library through
4821 - # to the system linker between allextract/defaultextract.
4822 - # The C++ compiler will combine linker options so we
4823 - # cannot just pass the convience library names through
4824 - # without $wl.
4825 - # Supported since Solaris 2.6 (maybe 2.5.1?)
4826 - _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract'
4827 - ;;
4828 - esac
4829 - _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
4830 + *)
4831 + library_names_spec='${libname}`echo ${release} | sed -e 's/[[.]]/-/g'`${versuffix}.dll $libname.lib'
4832 + ;;
4833 + esac
4834 + dynamic_linker='Win32 ld.exe'
4835 + # FIXME: first we should search . and the directory the executable is in
4836 + shlibpath_var=PATH
4837 + ;;
4838 +
4839 +darwin* | rhapsody*)
4840 + dynamic_linker="$host_os dyld"
4841 + version_type=darwin
4842 + need_lib_prefix=no
4843 + need_version=no
4844 + # FIXME: Relying on posixy $() will cause problems for
4845 + # cross-compilation, but unfortunately the echo tests do not
4846 + # yet detect zsh echo's removal of \ escapes.
4847 + library_names_spec='${libname}${release}${versuffix}.$(test .$module = .yes && echo so || echo dylib) ${libname}${release}${major}.$(test .$module = .yes && echo so || echo dylib) ${libname}.$(test .$module = .yes && echo so || echo dylib)'
4848 + soname_spec='${libname}${release}${major}.$(test .$module = .yes && echo so || echo dylib)'
4849 + shlibpath_overrides_runpath=yes
4850 + shlibpath_var=DYLD_LIBRARY_PATH
4851 + ;;
4852
4853 - output_verbose_link_cmd='echo'
4854 +freebsd1*)
4855 + dynamic_linker=no
4856 + ;;
4857
4858 - # Archives containing C++ object files must be created using
4859 - # "CC -xar", where "CC" is the Sun C++ compiler. This is
4860 - # necessary to make sure instantiated templates are included
4861 - # in the archive.
4862 - _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs'
4863 - ;;
4864 - gcx*)
4865 - # Green Hills C++ Compiler
4866 - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
4867 +kfreebsd*-gnu*)
4868 + version_type=linux
4869 + need_lib_prefix=no
4870 + need_version=no
4871 + library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
4872 + soname_spec='${libname}${release}.so$major'
4873 + shlibpath_var=LD_LIBRARY_PATH
4874 + shlibpath_overrides_runpath=no
4875 + hardcode_into_libs=yes
4876 + dynamic_linker='GNU/FreeBSD ld.so'
4877 + ;;
4878 +
4879 +freebsd*)
4880 + objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
4881 + version_type=freebsd-$objformat
4882 + case $version_type in
4883 + freebsd-elf*)
4884 + library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so $libname.so'
4885 + need_version=no
4886 + need_lib_prefix=no
4887 + ;;
4888 + freebsd-*)
4889 + library_names_spec='${libname}${release}.so$versuffix $libname.so$versuffix'
4890 + need_version=yes
4891 + ;;
4892 + esac
4893 + shlibpath_var=LD_LIBRARY_PATH
4894 + case $host_os in
4895 + freebsd2*)
4896 + shlibpath_overrides_runpath=yes
4897 + ;;
4898 + *)
4899 + shlibpath_overrides_runpath=no
4900 + hardcode_into_libs=yes
4901 + ;;
4902 + esac
4903 + ;;
4904 +
4905 +gnu*)
4906 + version_type=linux
4907 + need_lib_prefix=no
4908 + need_version=no
4909 + library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so${major} ${libname}.so'
4910 + soname_spec='${libname}${release}.so$major'
4911 + shlibpath_var=LD_LIBRARY_PATH
4912 + hardcode_into_libs=yes
4913 + ;;
4914
4915 - # The C++ compiler must be used to create the archive.
4916 - _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
4917 - ;;
4918 - *)
4919 - # GNU C++ compiler with Solaris linker
4920 - if test "$GXX" = yes && test "$with_gnu_ld" = no; then
4921 - _LT_AC_TAGVAR(no_undefined_flag, $1)=' ${wl}-z ${wl}defs'
4922 - if $CC --version | grep -v '^2\.7' > /dev/null; then
4923 - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
4924 - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
4925 - $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
4926 -
4927 - # Commands to make compiler produce verbose output that lists
4928 - # what "hidden" libraries, object files and flags are used when
4929 - # linking a shared library.
4930 - output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
4931 - else
4932 - # g++ 2.7 appears to require `-G' NOT `-shared' on this
4933 - # platform.
4934 - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
4935 - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
4936 - $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
4937 -
4938 - # Commands to make compiler produce verbose output that lists
4939 - # what "hidden" libraries, object files and flags are used when
4940 - # linking a shared library.
4941 - output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
4942 - fi
4943 +hpux9* | hpux10* | hpux11*)
4944 + # Give a soname corresponding to the major version so that dld.sl refuses to
4945 + # link against other versions.
4946 + dynamic_linker="$host_os dld.sl"
4947 + version_type=sunos
4948 + need_lib_prefix=no
4949 + need_version=no
4950 + shlibpath_var=SHLIB_PATH
4951 + shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
4952 + library_names_spec='${libname}${release}.sl$versuffix ${libname}${release}.sl$major $libname.sl'
4953 + soname_spec='${libname}${release}.sl$major'
4954 + # HP-UX runs *really* slowly unless shared libraries are mode 555.
4955 + postinstall_cmds='chmod 555 $lib'
4956 + ;;
4957
4958 - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $wl$libdir'
4959 - fi
4960 - ;;
4961 - esac
4962 - ;;
4963 - sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[[78]]* | unixware7*)
4964 - _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
4965 - ;;
4966 - tandem*)
4967 - case $cc_basename in
4968 - NCC*)
4969 - # NonStop-UX NCC 3.20
4970 - # FIXME: insert proper C++ library support
4971 - _LT_AC_TAGVAR(ld_shlibs, $1)=no
4972 - ;;
4973 - *)
4974 - # FIXME: insert proper C++ library support
4975 - _LT_AC_TAGVAR(ld_shlibs, $1)=no
4976 - ;;
4977 - esac
4978 - ;;
4979 - vxworks*)
4980 - # FIXME: insert proper C++ library support
4981 - _LT_AC_TAGVAR(ld_shlibs, $1)=no
4982 +irix5* | irix6* | nonstopux*)
4983 + case $host_os in
4984 + nonstopux*) version_type=nonstopux ;;
4985 + *) version_type=irix ;;
4986 + esac
4987 + need_lib_prefix=no
4988 + need_version=no
4989 + soname_spec='${libname}${release}.so$major'
4990 + library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so $libname.so'
4991 + case $host_os in
4992 + irix5* | nonstopux*)
4993 + libsuff= shlibsuff=
4994 ;;
4995 *)
4996 - # FIXME: insert proper C++ library support
4997 - _LT_AC_TAGVAR(ld_shlibs, $1)=no
4998 + case $LD in # libtool.m4 will add one of these switches to LD
4999 + *-32|*"-32 ") libsuff= shlibsuff= libmagic=32-bit;;
5000 + *-n32|*"-n32 ") libsuff=32 shlibsuff=N32 libmagic=N32;;
5001 + *-64|*"-64 ") libsuff=64 shlibsuff=64 libmagic=64-bit;;
5002 + *) libsuff= shlibsuff= libmagic=never-match;;
5003 + esac
5004 ;;
5005 -esac
5006 -AC_MSG_RESULT([$_LT_AC_TAGVAR(ld_shlibs, $1)])
5007 -test "$_LT_AC_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no
5008 + esac
5009 + shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
5010 + shlibpath_overrides_runpath=no
5011 + sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
5012 + sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
5013 + ;;
5014
5015 -_LT_AC_TAGVAR(GCC, $1)="$GXX"
5016 -_LT_AC_TAGVAR(LD, $1)="$LD"
5017 +# No shared lib support for Linux oldld, aout, or coff.
5018 +linux-gnuoldld* | linux-gnuaout* | linux-gnucoff*)
5019 + dynamic_linker=no
5020 + ;;
5021
5022 -AC_LIBTOOL_POSTDEP_PREDEP($1)
5023 -AC_LIBTOOL_PROG_COMPILER_PIC($1)
5024 -AC_LIBTOOL_PROG_CC_C_O($1)
5025 -AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1)
5026 -AC_LIBTOOL_PROG_LD_SHLIBS($1)
5027 -AC_LIBTOOL_SYS_DYNAMIC_LINKER($1)
5028 -AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1)
5029 -AC_LIBTOOL_SYS_LIB_STRIP
5030 -AC_LIBTOOL_DLOPEN_SELF($1)
5031 -
5032 -AC_LIBTOOL_CONFIG($1)
5033 -
5034 -AC_LANG_POP
5035 -CC=$lt_save_CC
5036 -LDCXX=$LD
5037 -LD=$lt_save_LD
5038 -GCC=$lt_save_GCC
5039 -with_gnu_ldcxx=$with_gnu_ld
5040 -with_gnu_ld=$lt_save_with_gnu_ld
5041 -lt_cv_path_LDCXX=$lt_cv_path_LD
5042 -lt_cv_path_LD=$lt_save_path_LD
5043 -lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
5044 -lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
5045 -])# AC_LIBTOOL_LANG_CXX_CONFIG
5046 +# This must be Linux ELF.
5047 +linux-gnu*)
5048 + version_type=linux
5049 + need_lib_prefix=no
5050 + need_version=no
5051 + library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
5052 + soname_spec='${libname}${release}.so$major'
5053 + finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
5054 + shlibpath_var=LD_LIBRARY_PATH
5055 + shlibpath_overrides_runpath=no
5056 + # This implies no fast_install, which is unacceptable.
5057 + # Some rework will be needed to allow for fast_install
5058 + # before this can be enabled.
5059 + hardcode_into_libs=yes
5060
5061 -# AC_LIBTOOL_POSTDEP_PREDEP([TAGNAME])
5062 -# ------------------------
5063 -# Figure out "hidden" library dependencies from verbose
5064 -# compiler output when linking a shared library.
5065 -# Parse the compiler output and extract the necessary
5066 -# objects, libraries and library flags.
5067 -AC_DEFUN([AC_LIBTOOL_POSTDEP_PREDEP],[
5068 -dnl we can't use the lt_simple_compile_test_code here,
5069 -dnl because it contains code intended for an executable,
5070 -dnl not a library. It's possible we should let each
5071 -dnl tag define a new lt_????_link_test_code variable,
5072 -dnl but it's only used here...
5073 -ifelse([$1],[],[cat > conftest.$ac_ext <<EOF
5074 -int a;
5075 -void foo (void) { a = 0; }
5076 -EOF
5077 -],[$1],[CXX],[cat > conftest.$ac_ext <<EOF
5078 -class Foo
5079 -{
5080 -public:
5081 - Foo (void) { a = 0; }
5082 -private:
5083 - int a;
5084 -};
5085 -EOF
5086 -],[$1],[F77],[cat > conftest.$ac_ext <<EOF
5087 - subroutine foo
5088 - implicit none
5089 - integer*4 a
5090 - a=0
5091 - return
5092 - end
5093 -EOF
5094 -],[$1],[GCJ],[cat > conftest.$ac_ext <<EOF
5095 -public class foo {
5096 - private int a;
5097 - public void bar (void) {
5098 - a = 0;
5099 - }
5100 -};
5101 -EOF
5102 -])
5103 -dnl Parse the compiler output and extract the necessary
5104 -dnl objects, libraries and library flags.
5105 -if AC_TRY_EVAL(ac_compile); then
5106 - # Parse the compiler output and extract the necessary
5107 - # objects, libraries and library flags.
5108 -
5109 - # Sentinel used to keep track of whether or not we are before
5110 - # the conftest object file.
5111 - pre_test_object_deps_done=no
5112 -
5113 - # The `*' in the case matches for architectures that use `case' in
5114 - # $output_verbose_cmd can trigger glob expansion during the loop
5115 - # eval without this substitution.
5116 - output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
5117 -
5118 - for p in `eval $output_verbose_link_cmd`; do
5119 - case $p in
5120 -
5121 - -L* | -R* | -l*)
5122 - # Some compilers place space between "-{L,R}" and the path.
5123 - # Remove the space.
5124 - if test $p = "-L" \
5125 - || test $p = "-R"; then
5126 - prev=$p
5127 - continue
5128 - else
5129 - prev=
5130 - fi
5131 -
5132 - if test "$pre_test_object_deps_done" = no; then
5133 - case $p in
5134 - -L* | -R*)
5135 - # Internal compiler library paths should come after those
5136 - # provided the user. The postdeps already come after the
5137 - # user supplied libs so there is no need to process them.
5138 - if test -z "$_LT_AC_TAGVAR(compiler_lib_search_path, $1)"; then
5139 - _LT_AC_TAGVAR(compiler_lib_search_path, $1)="${prev}${p}"
5140 - else
5141 - _LT_AC_TAGVAR(compiler_lib_search_path, $1)="${_LT_AC_TAGVAR(compiler_lib_search_path, $1)} ${prev}${p}"
5142 - fi
5143 - ;;
5144 - # The "-l" case would never come before the object being
5145 - # linked, so don't bother handling this case.
5146 - esac
5147 - else
5148 - if test -z "$_LT_AC_TAGVAR(postdeps, $1)"; then
5149 - _LT_AC_TAGVAR(postdeps, $1)="${prev}${p}"
5150 - else
5151 - _LT_AC_TAGVAR(postdeps, $1)="${_LT_AC_TAGVAR(postdeps, $1)} ${prev}${p}"
5152 - fi
5153 - fi
5154 - ;;
5155 -
5156 - *.$objext)
5157 - # This assumes that the test object file only shows up
5158 - # once in the compiler output.
5159 - if test "$p" = "conftest.$objext"; then
5160 - pre_test_object_deps_done=yes
5161 - continue
5162 - fi
5163 -
5164 - if test "$pre_test_object_deps_done" = no; then
5165 - if test -z "$_LT_AC_TAGVAR(predep_objects, $1)"; then
5166 - _LT_AC_TAGVAR(predep_objects, $1)="$p"
5167 - else
5168 - _LT_AC_TAGVAR(predep_objects, $1)="$_LT_AC_TAGVAR(predep_objects, $1) $p"
5169 - fi
5170 - else
5171 - if test -z "$_LT_AC_TAGVAR(postdep_objects, $1)"; then
5172 - _LT_AC_TAGVAR(postdep_objects, $1)="$p"
5173 - else
5174 - _LT_AC_TAGVAR(postdep_objects, $1)="$_LT_AC_TAGVAR(postdep_objects, $1) $p"
5175 - fi
5176 - fi
5177 - ;;
5178 + # We used to test for /lib/ld.so.1 and disable shared libraries on
5179 + # powerpc, because MkLinux only supported shared libraries with the
5180 + # GNU dynamic linker. Since this was broken with cross compilers,
5181 + # most powerpc-linux boxes support dynamic linking these days and
5182 + # people can always --disable-shared, the test was removed, and we
5183 + # assume the GNU/Linux dynamic linker is in use.
5184 + dynamic_linker='GNU/Linux ld.so'
5185 + ;;
5186 +
5187 +knetbsd*-gnu)
5188 + version_type=linux
5189 + need_lib_prefix=no
5190 + need_version=no
5191 + library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
5192 + soname_spec='${libname}${release}.so$major'
5193 + shlibpath_var=LD_LIBRARY_PATH
5194 + shlibpath_overrides_runpath=no
5195 + hardcode_into_libs=yes
5196 + dynamic_linker='GNU ld.so'
5197 + ;;
5198 +
5199 +netbsd*)
5200 + version_type=sunos
5201 + need_lib_prefix=no
5202 + need_version=no
5203 + if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
5204 + library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
5205 + finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
5206 + dynamic_linker='NetBSD (a.out) ld.so'
5207 + else
5208 + library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so ${libname}.so'
5209 + soname_spec='${libname}${release}.so$major'
5210 + dynamic_linker='NetBSD ld.elf_so'
5211 + fi
5212 + shlibpath_var=LD_LIBRARY_PATH
5213 + shlibpath_overrides_runpath=yes
5214 + hardcode_into_libs=yes
5215 + ;;
5216
5217 - *) ;; # Ignore the rest.
5218 +newsos6)
5219 + version_type=linux
5220 + library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
5221 + shlibpath_var=LD_LIBRARY_PATH
5222 + shlibpath_overrides_runpath=yes
5223 + ;;
5224
5225 +openbsd*)
5226 + version_type=sunos
5227 + need_lib_prefix=no
5228 + need_version=no
5229 + if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5230 + case "$host_os" in
5231 + openbsd2.[[89]] | openbsd2.[[89]].*)
5232 + shlibpath_overrides_runpath=no
5233 + ;;
5234 + *)
5235 + shlibpath_overrides_runpath=yes
5236 + ;;
5237 esac
5238 - done
5239 + else
5240 + shlibpath_overrides_runpath=yes
5241 + fi
5242 + library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
5243 + finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
5244 + shlibpath_var=LD_LIBRARY_PATH
5245 + ;;
5246
5247 - # Clean up.
5248 - rm -f a.out a.exe
5249 -else
5250 - echo "libtool.m4: error: problem compiling $1 test program"
5251 -fi
5252 +os2*)
5253 + libname_spec='$name'
5254 + need_lib_prefix=no
5255 + library_names_spec='$libname.dll $libname.a'
5256 + dynamic_linker='OS/2 ld.exe'
5257 + shlibpath_var=LIBPATH
5258 + ;;
5259 +
5260 +osf3* | osf4* | osf5*)
5261 + version_type=osf
5262 + need_version=no
5263 + need_lib_prefix=no
5264 + soname_spec='${libname}${release}.so$major'
5265 + library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
5266 + shlibpath_var=LD_LIBRARY_PATH
5267 + sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
5268 + sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
5269 + hardcode_into_libs=yes
5270 + ;;
5271
5272 -$rm -f confest.$objext
5273 +sco3.2v5*)
5274 + version_type=osf
5275 + soname_spec='${libname}${release}.so$major'
5276 + library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
5277 + shlibpath_var=LD_LIBRARY_PATH
5278 + ;;
5279
5280 -# PORTME: override above test on systems where it is broken
5281 -ifelse([$1],[CXX],
5282 -[case $host_os in
5283 solaris*)
5284 - case $cc_basename in
5285 - CC*)
5286 - # Adding this requires a known-good setup of shared libraries for
5287 - # Sun compiler versions before 5.6, else PIC objects from an old
5288 - # archive will be linked into the output, leading to subtle bugs.
5289 - _LT_AC_TAGVAR(postdeps,$1)='-lCstd -lCrun'
5290 - ;;
5291 + version_type=linux
5292 + need_lib_prefix=no
5293 + need_version=no
5294 + library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
5295 + soname_spec='${libname}${release}.so$major'
5296 + shlibpath_var=LD_LIBRARY_PATH
5297 + shlibpath_overrides_runpath=yes
5298 + hardcode_into_libs=yes
5299 + # ldd complains unless libraries are executable
5300 + postinstall_cmds='chmod +x $lib'
5301 + ;;
5302 +
5303 +sunos4*)
5304 + version_type=sunos
5305 + library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
5306 + finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
5307 + shlibpath_var=LD_LIBRARY_PATH
5308 + shlibpath_overrides_runpath=yes
5309 + if test "$with_gnu_ld" = yes; then
5310 + need_lib_prefix=no
5311 + fi
5312 + need_version=yes
5313 + ;;
5314 +
5315 +sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
5316 + version_type=linux
5317 + library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
5318 + soname_spec='${libname}${release}.so$major'
5319 + shlibpath_var=LD_LIBRARY_PATH
5320 + case $host_vendor in
5321 + sni)
5322 + shlibpath_overrides_runpath=no
5323 + need_lib_prefix=no
5324 + export_dynamic_flag_spec='${wl}-Blargedynsym'
5325 + runpath_var=LD_RUN_PATH
5326 + ;;
5327 + siemens)
5328 + need_lib_prefix=no
5329 + ;;
5330 + motorola)
5331 + need_lib_prefix=no
5332 + need_version=no
5333 + shlibpath_overrides_runpath=no
5334 + sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
5335 + ;;
5336 esac
5337 -esac
5338 -])
5339 + ;;
5340
5341 -case " $_LT_AC_TAGVAR(postdeps, $1) " in
5342 -*" -lc "*) _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no ;;
5343 -esac
5344 -])# AC_LIBTOOL_POSTDEP_PREDEP
5345 +uts4*)
5346 + version_type=linux
5347 + library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
5348 + soname_spec='${libname}${release}.so$major'
5349 + shlibpath_var=LD_LIBRARY_PATH
5350 + ;;
5351
5352 -# AC_LIBTOOL_LANG_F77_CONFIG
5353 -# ------------------------
5354 -# Ensure that the configuration vars for the C compiler are
5355 -# suitably defined. Those variables are subsequently used by
5356 -# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
5357 -AC_DEFUN([AC_LIBTOOL_LANG_F77_CONFIG], [_LT_AC_LANG_F77_CONFIG(F77)])
5358 -AC_DEFUN([_LT_AC_LANG_F77_CONFIG],
5359 -[AC_REQUIRE([AC_PROG_F77])
5360 -AC_LANG_PUSH(Fortran 77)
5361 -
5362 -_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
5363 -_LT_AC_TAGVAR(allow_undefined_flag, $1)=
5364 -_LT_AC_TAGVAR(always_export_symbols, $1)=no
5365 -_LT_AC_TAGVAR(archive_expsym_cmds, $1)=
5366 -_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)=
5367 -_LT_AC_TAGVAR(hardcode_direct, $1)=no
5368 -_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=
5369 -_LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
5370 -_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
5371 -_LT_AC_TAGVAR(hardcode_minus_L, $1)=no
5372 -_LT_AC_TAGVAR(hardcode_automatic, $1)=no
5373 -_LT_AC_TAGVAR(module_cmds, $1)=
5374 -_LT_AC_TAGVAR(module_expsym_cmds, $1)=
5375 -_LT_AC_TAGVAR(link_all_deplibs, $1)=unknown
5376 -_LT_AC_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
5377 -_LT_AC_TAGVAR(no_undefined_flag, $1)=
5378 -_LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
5379 -_LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=no
5380 -
5381 -# Source file extension for f77 test sources.
5382 -ac_ext=f
5383 -
5384 -# Object file extension for compiled f77 test sources.
5385 -objext=o
5386 -_LT_AC_TAGVAR(objext, $1)=$objext
5387 -
5388 -# Code to be used in simple compile tests
5389 -lt_simple_compile_test_code=" subroutine t\n return\n end\n"
5390 -
5391 -# Code to be used in simple link tests
5392 -lt_simple_link_test_code=" program t\n end\n"
5393 -
5394 -# ltmain only uses $CC for tagged configurations so make sure $CC is set.
5395 -_LT_AC_SYS_COMPILER
5396 -
5397 -# save warnings/boilerplate of simple test code
5398 -_LT_COMPILER_BOILERPLATE
5399 -_LT_LINKER_BOILERPLATE
5400 +dgux*)
5401 + version_type=linux
5402 + need_lib_prefix=no
5403 + need_version=no
5404 + library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
5405 + soname_spec='${libname}${release}.so$major'
5406 + shlibpath_var=LD_LIBRARY_PATH
5407 + ;;
5408
5409 -# Allow CC to be a program name with arguments.
5410 -lt_save_CC="$CC"
5411 -CC=${F77-"f77"}
5412 -compiler=$CC
5413 -_LT_AC_TAGVAR(compiler, $1)=$CC
5414 -_LT_CC_BASENAME([$compiler])
5415 +sysv4*MP*)
5416 + if test -d /usr/nec ;then
5417 + version_type=linux
5418 + library_names_spec='$libname.so.$versuffix $libname.so.$major $libname.so'
5419 + soname_spec='$libname.so.$major'
5420 + shlibpath_var=LD_LIBRARY_PATH
5421 + fi
5422 + ;;
5423 +
5424 +*)
5425 + dynamic_linker=no
5426 + ;;
5427 +esac
5428 +AC_MSG_RESULT([$dynamic_linker])
5429 +test "$dynamic_linker" = no && can_build_shared=no
5430
5431 +# Report the final consequences.
5432 AC_MSG_CHECKING([if libtool supports shared libraries])
5433 AC_MSG_RESULT([$can_build_shared])
5434
5435 @@ -4685,7 +3193,7 @@
5436
5437 # On AIX, shared libraries and static libraries use the same namespace, and
5438 # are all built from PIC.
5439 -case $host_os in
5440 +case "$host_os" in
5441 aix3*)
5442 test "$enable_shared" = yes && enable_static=no
5443 if test -n "$RANLIB"; then
5444 @@ -4693,7 +3201,8 @@
5445 postinstall_cmds='$RANLIB $lib'
5446 fi
5447 ;;
5448 -aix4* | aix5*)
5449 +
5450 +aix4*)
5451 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
5452 test "$enable_shared" = yes && enable_static=no
5453 fi
5454 @@ -4706,207 +3215,114 @@
5455 test "$enable_shared" = yes || enable_static=yes
5456 AC_MSG_RESULT([$enable_static])
5457
5458 -test "$_LT_AC_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no
5459 -
5460 -_LT_AC_TAGVAR(GCC, $1)="$G77"
5461 -_LT_AC_TAGVAR(LD, $1)="$LD"
5462 -
5463 -AC_LIBTOOL_PROG_COMPILER_PIC($1)
5464 -AC_LIBTOOL_PROG_CC_C_O($1)
5465 -AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1)
5466 -AC_LIBTOOL_PROG_LD_SHLIBS($1)
5467 -AC_LIBTOOL_SYS_DYNAMIC_LINKER($1)
5468 -AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1)
5469 -AC_LIBTOOL_SYS_LIB_STRIP
5470 -
5471 -
5472 -AC_LIBTOOL_CONFIG($1)
5473 -
5474 -AC_LANG_POP
5475 -CC="$lt_save_CC"
5476 -])# AC_LIBTOOL_LANG_F77_CONFIG
5477 -
5478 -
5479 -# AC_LIBTOOL_LANG_GCJ_CONFIG
5480 -# --------------------------
5481 -# Ensure that the configuration vars for the C compiler are
5482 -# suitably defined. Those variables are subsequently used by
5483 -# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
5484 -AC_DEFUN([AC_LIBTOOL_LANG_GCJ_CONFIG], [_LT_AC_LANG_GCJ_CONFIG(GCJ)])
5485 -AC_DEFUN([_LT_AC_LANG_GCJ_CONFIG],
5486 -[AC_LANG_SAVE
5487 -
5488 -# Source file extension for Java test sources.
5489 -ac_ext=java
5490 -
5491 -# Object file extension for compiled Java test sources.
5492 -objext=o
5493 -_LT_AC_TAGVAR(objext, $1)=$objext
5494 -
5495 -# Code to be used in simple compile tests
5496 -lt_simple_compile_test_code="class foo {}\n"
5497 -
5498 -# Code to be used in simple link tests
5499 -lt_simple_link_test_code='public class conftest { public static void main(String[[]] argv) {}; }\n'
5500 -
5501 -# ltmain only uses $CC for tagged configurations so make sure $CC is set.
5502 -_LT_AC_SYS_COMPILER
5503 -
5504 -# save warnings/boilerplate of simple test code
5505 -_LT_COMPILER_BOILERPLATE
5506 -_LT_LINKER_BOILERPLATE
5507 -
5508 -# Allow CC to be a program name with arguments.
5509 -lt_save_CC="$CC"
5510 -CC=${GCJ-"gcj"}
5511 -compiler=$CC
5512 -_LT_AC_TAGVAR(compiler, $1)=$CC
5513 -_LT_CC_BASENAME([$compiler])
5514 -
5515 -# GCJ did not exist at the time GCC didn't implicitly link libc in.
5516 -_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
5517 -
5518 -_LT_AC_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
5519 -
5520 -AC_LIBTOOL_PROG_COMPILER_NO_RTTI($1)
5521 -AC_LIBTOOL_PROG_COMPILER_PIC($1)
5522 -AC_LIBTOOL_PROG_CC_C_O($1)
5523 -AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1)
5524 -AC_LIBTOOL_PROG_LD_SHLIBS($1)
5525 -AC_LIBTOOL_SYS_DYNAMIC_LINKER($1)
5526 -AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1)
5527 -AC_LIBTOOL_SYS_LIB_STRIP
5528 -AC_LIBTOOL_DLOPEN_SELF($1)
5529 -
5530 -AC_LIBTOOL_CONFIG($1)
5531 -
5532 -AC_LANG_RESTORE
5533 -CC="$lt_save_CC"
5534 -])# AC_LIBTOOL_LANG_GCJ_CONFIG
5535 +if test "$hardcode_action" = relink; then
5536 + # Fast installation is not supported
5537 + enable_fast_install=no
5538 +elif test "$shlibpath_overrides_runpath" = yes ||
5539 + test "$enable_shared" = no; then
5540 + # Fast installation is not necessary
5541 + enable_fast_install=needless
5542 +fi
5543
5544 +variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
5545 +if test "$GCC" = yes; then
5546 + variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
5547 +fi
5548
5549 -# AC_LIBTOOL_LANG_RC_CONFIG
5550 -# --------------------------
5551 -# Ensure that the configuration vars for the Windows resource compiler are
5552 -# suitably defined. Those variables are subsequently used by
5553 -# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
5554 -AC_DEFUN([AC_LIBTOOL_LANG_RC_CONFIG], [_LT_AC_LANG_RC_CONFIG(RC)])
5555 -AC_DEFUN([_LT_AC_LANG_RC_CONFIG],
5556 -[AC_LANG_SAVE
5557 -
5558 -# Source file extension for RC test sources.
5559 -ac_ext=rc
5560 -
5561 -# Object file extension for compiled RC test sources.
5562 -objext=o
5563 -_LT_AC_TAGVAR(objext, $1)=$objext
5564 -
5565 -# Code to be used in simple compile tests
5566 -lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
5567 -
5568 -# Code to be used in simple link tests
5569 -lt_simple_link_test_code="$lt_simple_compile_test_code"
5570 -
5571 -# ltmain only uses $CC for tagged configurations so make sure $CC is set.
5572 -_LT_AC_SYS_COMPILER
5573 -
5574 -# save warnings/boilerplate of simple test code
5575 -_LT_COMPILER_BOILERPLATE
5576 -_LT_LINKER_BOILERPLATE
5577 +AC_LIBTOOL_DLOPEN_SELF
5578
5579 -# Allow CC to be a program name with arguments.
5580 -lt_save_CC="$CC"
5581 -CC=${RC-"windres"}
5582 -compiler=$CC
5583 -_LT_AC_TAGVAR(compiler, $1)=$CC
5584 -_LT_CC_BASENAME([$compiler])
5585 -_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes
5586 +if test "$enable_shared" = yes && test "$GCC" = yes; then
5587 + case $archive_cmds in
5588 + *'~'*)
5589 + # FIXME: we may have to deal with multi-command sequences.
5590 + ;;
5591 + '$CC '*)
5592 + # Test whether the compiler implicitly links with -lc since on some
5593 + # systems, -lgcc has to come before -lc. If gcc already passes -lc
5594 + # to ld, don't add -lc before -lgcc.
5595 + AC_MSG_CHECKING([whether -lc should be explicitly linked in])
5596 + AC_CACHE_VAL([lt_cv_archive_cmds_need_lc],
5597 + [$rm conftest*
5598 + echo 'static int dummy;' > conftest.$ac_ext
5599 +
5600 + if AC_TRY_EVAL(ac_compile); then
5601 + soname=conftest
5602 + lib=conftest
5603 + libobjs=conftest.$ac_objext
5604 + deplibs=
5605 + wl=$lt_cv_prog_cc_wl
5606 + compiler_flags=-v
5607 + linker_flags=-v
5608 + verstring=
5609 + output_objdir=.
5610 + libname=conftest
5611 + save_allow_undefined_flag=$allow_undefined_flag
5612 + allow_undefined_flag=
5613 + if AC_TRY_EVAL(archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1)
5614 + then
5615 + lt_cv_archive_cmds_need_lc=no
5616 + else
5617 + lt_cv_archive_cmds_need_lc=yes
5618 + fi
5619 + allow_undefined_flag=$save_allow_undefined_flag
5620 + else
5621 + cat conftest.err 1>&5
5622 + fi])
5623 + AC_MSG_RESULT([$lt_cv_archive_cmds_need_lc])
5624 + ;;
5625 + esac
5626 +fi
5627 +need_lc=${lt_cv_archive_cmds_need_lc-yes}
5628
5629 -AC_LIBTOOL_CONFIG($1)
5630 +# The second clause should only fire when bootstrapping the
5631 +# libtool distribution, otherwise you forgot to ship ltmain.sh
5632 +# with your package, and you will get complaints that there are
5633 +# no rules to generate ltmain.sh.
5634 +if test -f "$ltmain"; then
5635 + :
5636 +else
5637 + # If there is no Makefile yet, we rely on a make rule to execute
5638 + # `config.status --recheck' to rerun these tests and create the
5639 + # libtool script then.
5640 + ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
5641 + if test -f "$ltmain_in"; then
5642 + test -f Makefile && make "$ltmain"
5643 + fi
5644 +fi
5645
5646 -AC_LANG_RESTORE
5647 -CC="$lt_save_CC"
5648 -])# AC_LIBTOOL_LANG_RC_CONFIG
5649 +if test -f "$ltmain"; then
5650 + trap "$rm \"${ofile}T\"; exit 1" 1 2 15
5651 + $rm -f "${ofile}T"
5652
5653 + echo creating $ofile
5654
5655 -# AC_LIBTOOL_CONFIG([TAGNAME])
5656 -# ----------------------------
5657 -# If TAGNAME is not passed, then create an initial libtool script
5658 -# with a default configuration from the untagged config vars. Otherwise
5659 -# add code to config.status for appending the configuration named by
5660 -# TAGNAME from the matching tagged config vars.
5661 -AC_DEFUN([AC_LIBTOOL_CONFIG],
5662 -[# The else clause should only fire when bootstrapping the
5663 -# libtool distribution, otherwise you forgot to ship ltmain.sh
5664 -# with your package, and you will get complaints that there are
5665 -# no rules to generate ltmain.sh.
5666 -if test -f "$ltmain"; then
5667 - # See if we are running on zsh, and set the options which allow our commands through
5668 - # without removal of \ escapes.
5669 - if test -n "${ZSH_VERSION+set}" ; then
5670 - setopt NO_GLOB_SUBST
5671 - fi
5672 # Now quote all the things that may contain metacharacters while being
5673 # careful not to overquote the AC_SUBSTed values. We take copies of the
5674 # variables and quote the copies for generation of the libtool script.
5675 - for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
5676 - SED SHELL STRIP \
5677 - libname_spec library_names_spec soname_spec extract_expsyms_cmds \
5678 - old_striplib striplib file_magic_cmd finish_cmds finish_eval \
5679 - deplibs_check_method reload_flag reload_cmds need_locks \
5680 - lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
5681 - lt_cv_sys_global_symbol_to_c_name_address \
5682 + for var in echo old_CC old_CFLAGS SED \
5683 + AR AR_FLAGS CC LD LN_S NM SHELL STRIP \
5684 + reload_flag reload_cmds wl \
5685 + pic_flag link_static_flag no_builtin_flag export_dynamic_flag_spec \
5686 + thread_safe_flag_spec whole_archive_flag_spec libname_spec \
5687 + library_names_spec soname_spec \
5688 + RANLIB old_archive_cmds old_archive_from_new_cmds old_postinstall_cmds \
5689 + old_postuninstall_cmds archive_cmds archive_expsym_cmds postinstall_cmds \
5690 + postuninstall_cmds extract_expsyms_cmds old_archive_from_expsyms_cmds \
5691 + old_striplib striplib file_magic_cmd export_symbols_cmds \
5692 + deplibs_check_method allow_undefined_flag no_undefined_flag \
5693 + finish_cmds finish_eval global_symbol_pipe global_symbol_to_cdecl \
5694 + global_symbol_to_c_name_address \
5695 + hardcode_libdir_flag_spec hardcode_libdir_separator \
5696 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
5697 - old_postinstall_cmds old_postuninstall_cmds \
5698 - _LT_AC_TAGVAR(compiler, $1) \
5699 - _LT_AC_TAGVAR(CC, $1) \
5700 - _LT_AC_TAGVAR(LD, $1) \
5701 - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1) \
5702 - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1) \
5703 - _LT_AC_TAGVAR(lt_prog_compiler_static, $1) \
5704 - _LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1) \
5705 - _LT_AC_TAGVAR(export_dynamic_flag_spec, $1) \
5706 - _LT_AC_TAGVAR(thread_safe_flag_spec, $1) \
5707 - _LT_AC_TAGVAR(whole_archive_flag_spec, $1) \
5708 - _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1) \
5709 - _LT_AC_TAGVAR(old_archive_cmds, $1) \
5710 - _LT_AC_TAGVAR(old_archive_from_new_cmds, $1) \
5711 - _LT_AC_TAGVAR(predep_objects, $1) \
5712 - _LT_AC_TAGVAR(postdep_objects, $1) \
5713 - _LT_AC_TAGVAR(predeps, $1) \
5714 - _LT_AC_TAGVAR(postdeps, $1) \
5715 - _LT_AC_TAGVAR(compiler_lib_search_path, $1) \
5716 - _LT_AC_TAGVAR(archive_cmds, $1) \
5717 - _LT_AC_TAGVAR(archive_expsym_cmds, $1) \
5718 - _LT_AC_TAGVAR(postinstall_cmds, $1) \
5719 - _LT_AC_TAGVAR(postuninstall_cmds, $1) \
5720 - _LT_AC_TAGVAR(old_archive_from_expsyms_cmds, $1) \
5721 - _LT_AC_TAGVAR(allow_undefined_flag, $1) \
5722 - _LT_AC_TAGVAR(no_undefined_flag, $1) \
5723 - _LT_AC_TAGVAR(export_symbols_cmds, $1) \
5724 - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1) \
5725 - _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1) \
5726 - _LT_AC_TAGVAR(hardcode_libdir_separator, $1) \
5727 - _LT_AC_TAGVAR(hardcode_automatic, $1) \
5728 - _LT_AC_TAGVAR(module_cmds, $1) \
5729 - _LT_AC_TAGVAR(module_expsym_cmds, $1) \
5730 - _LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1) \
5731 - _LT_AC_TAGVAR(exclude_expsyms, $1) \
5732 - _LT_AC_TAGVAR(include_expsyms, $1); do
5733 + compiler_c_o compiler_o_lo need_locks exclude_expsyms include_expsyms; do
5734
5735 case $var in
5736 - _LT_AC_TAGVAR(old_archive_cmds, $1) | \
5737 - _LT_AC_TAGVAR(old_archive_from_new_cmds, $1) | \
5738 - _LT_AC_TAGVAR(archive_cmds, $1) | \
5739 - _LT_AC_TAGVAR(archive_expsym_cmds, $1) | \
5740 - _LT_AC_TAGVAR(module_cmds, $1) | \
5741 - _LT_AC_TAGVAR(module_expsym_cmds, $1) | \
5742 - _LT_AC_TAGVAR(old_archive_from_expsyms_cmds, $1) | \
5743 - _LT_AC_TAGVAR(export_symbols_cmds, $1) | \
5744 - extract_expsyms_cmds | reload_cmds | finish_cmds | \
5745 - postinstall_cmds | postuninstall_cmds | \
5746 + reload_cmds | old_archive_cmds | old_archive_from_new_cmds | \
5747 old_postinstall_cmds | old_postuninstall_cmds | \
5748 - sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
5749 + export_symbols_cmds | archive_cmds | archive_expsym_cmds | \
5750 + extract_expsyms_cmds | old_archive_from_expsyms_cmds | \
5751 + postinstall_cmds | postuninstall_cmds | \
5752 + finish_cmds | sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
5753 # Double-quote double-evaled strings.
5754 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
5755 ;;
5756 @@ -4916,31 +3332,14 @@
5757 esac
5758 done
5759
5760 - case $lt_echo in
5761 - *'\[$]0 --fallback-echo"')
5762 - lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\[$]0 --fallback-echo"[$]/[$]0 --fallback-echo"/'`
5763 - ;;
5764 - esac
5765 -
5766 -ifelse([$1], [],
5767 - [cfgfile="${ofile}T"
5768 - trap "$rm \"$cfgfile\"; exit 1" 1 2 15
5769 - $rm -f "$cfgfile"
5770 - AC_MSG_NOTICE([creating $ofile])],
5771 - [cfgfile="$ofile"])
5772 -
5773 - cat <<__EOF__ >> "$cfgfile"
5774 -ifelse([$1], [],
5775 -[#! $SHELL
5776 + cat <<__EOF__ > "${ofile}T"
5777 +#! $SHELL
5778
5779 -# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
5780 +# `$echo "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
5781 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
5782 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
5783 #
5784 -# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
5785 -# Free Software Foundation, Inc.
5786 -#
5787 -# This file is part of GNU Libtool:
5788 +# Copyright (C) 1996-2000 Free Software Foundation, Inc.
5789 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
5790 #
5791 # This program is free software; you can redistribute it and/or modify
5792 @@ -4955,28 +3354,24 @@
5793 #
5794 # You should have received a copy of the GNU General Public License
5795 # along with this program; if not, write to the Free Software
5796 -# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
5797 +# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
5798 #
5799 # As a special exception to the GNU General Public License, if you
5800 # distribute this file as part of a program that contains a
5801 # configuration script generated by Autoconf, you may include it under
5802 # the same distribution terms that you use for the rest of that program.
5803
5804 -# A sed program that does not truncate output.
5805 +# A sed that does not truncate output.
5806 SED=$lt_SED
5807
5808 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
5809 -Xsed="$SED -e 1s/^X//"
5810 +Xsed="${SED} -e s/^X//"
5811
5812 # The HP-UX ksh and POSIX shell print the target directory to stdout
5813 # if CDPATH is set.
5814 -(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
5815 +if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
5816
5817 -# The names of the tagged configurations supported by this script.
5818 -available_tags=
5819 -
5820 -# ### BEGIN LIBTOOL CONFIG],
5821 -[# ### BEGIN LIBTOOL TAG CONFIG: $tagname])
5822 +# ### BEGIN LIBTOOL CONFIG
5823
5824 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
5825
5826 @@ -4990,10 +3385,7 @@
5827 build_old_libs=$enable_static
5828
5829 # Whether or not to add -lc for building shared libraries.
5830 -build_libtool_need_lc=$_LT_AC_TAGVAR(archive_cmds_need_lc, $1)
5831 -
5832 -# Whether or not to disallow shared libs when runtime libs are static
5833 -allow_libtool_libs_with_static_runtimes=$_LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)
5834 +build_libtool_need_lc=$need_lc
5835
5836 # Whether or not to optimize for fast installation.
5837 fast_install=$enable_fast_install
5838 @@ -5001,12 +3393,6 @@
5839 # The host system.
5840 host_alias=$host_alias
5841 host=$host
5842 -host_os=$host_os
5843 -
5844 -# The build system.
5845 -build_alias=$build_alias
5846 -build=$build
5847 -build_os=$build_os
5848
5849 # An echo program that does not interpret backslashes.
5850 echo=$lt_echo
5851 @@ -5015,20 +3401,14 @@
5852 AR=$lt_AR
5853 AR_FLAGS=$lt_AR_FLAGS
5854
5855 -# A C compiler.
5856 -LTCC=$lt_LTCC
5857 -
5858 -# A language-specific compiler.
5859 -CC=$lt_[]_LT_AC_TAGVAR(compiler, $1)
5860 +# The default C compiler.
5861 +CC=$lt_CC
5862
5863 # Is the compiler the GNU C compiler?
5864 -with_gcc=$_LT_AC_TAGVAR(GCC, $1)
5865 -
5866 -# An ERE matcher.
5867 -EGREP=$lt_EGREP
5868 +with_gcc=$GCC
5869
5870 # The linker used to build libraries.
5871 -LD=$lt_[]_LT_AC_TAGVAR(LD, $1)
5872 +LD=$lt_LD
5873
5874 # Whether we need hard or soft links.
5875 LN_S=$lt_LN_S
5876 @@ -5059,7 +3439,7 @@
5877 reload_cmds=$lt_reload_cmds
5878
5879 # How to pass a linker flag through the compiler.
5880 -wl=$lt_[]_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)
5881 +wl=$lt_wl
5882
5883 # Object file suffix (normally "o").
5884 objext="$ac_objext"
5885 @@ -5067,23 +3447,20 @@
5886 # Old archive suffix (normally "a").
5887 libext="$libext"
5888
5889 -# Shared library suffix (normally ".so").
5890 -shrext_cmds='$shrext_cmds'
5891 -
5892 # Executable file suffix (normally "").
5893 exeext="$exeext"
5894
5895 # Additional compiler flags for building library objects.
5896 -pic_flag=$lt_[]_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)
5897 +pic_flag=$lt_pic_flag
5898 pic_mode=$pic_mode
5899
5900 -# What is the maximum length of a command?
5901 -max_cmd_len=$lt_cv_sys_max_cmd_len
5902 -
5903 # Does compiler simultaneously support -c and -o options?
5904 -compiler_c_o=$lt_[]_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)
5905 +compiler_c_o=$lt_compiler_c_o
5906 +
5907 +# Can we write directly to a .lo ?
5908 +compiler_o_lo=$lt_compiler_o_lo
5909
5910 -# Must we lock files when doing compilation?
5911 +# Must we lock files when doing compilation ?
5912 need_locks=$lt_need_locks
5913
5914 # Do we need the lib prefix for modules?
5915 @@ -5093,1864 +3470,933 @@
5916 need_version=$need_version
5917
5918 # Whether dlopen is supported.
5919 -dlopen_support=$enable_dlopen
5920 -
5921 -# Whether dlopen of programs is supported.
5922 -dlopen_self=$enable_dlopen_self
5923 -
5924 -# Whether dlopen of statically linked programs is supported.
5925 -dlopen_self_static=$enable_dlopen_self_static
5926 -
5927 -# Compiler flag to prevent dynamic linking.
5928 -link_static_flag=$lt_[]_LT_AC_TAGVAR(lt_prog_compiler_static, $1)
5929 -
5930 -# Compiler flag to turn off builtin functions.
5931 -no_builtin_flag=$lt_[]_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)
5932 -
5933 -# Compiler flag to allow reflexive dlopens.
5934 -export_dynamic_flag_spec=$lt_[]_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)
5935 -
5936 -# Compiler flag to generate shared objects directly from archives.
5937 -whole_archive_flag_spec=$lt_[]_LT_AC_TAGVAR(whole_archive_flag_spec, $1)
5938 -
5939 -# Compiler flag to generate thread-safe objects.
5940 -thread_safe_flag_spec=$lt_[]_LT_AC_TAGVAR(thread_safe_flag_spec, $1)
5941 -
5942 -# Library versioning type.
5943 -version_type=$version_type
5944 -
5945 -# Format of library name prefix.
5946 -libname_spec=$lt_libname_spec
5947 -
5948 -# List of archive names. First name is the real one, the rest are links.
5949 -# The last name is the one that the linker finds with -lNAME.
5950 -library_names_spec=$lt_library_names_spec
5951 -
5952 -# The coded name of the library, if different from the real name.
5953 -soname_spec=$lt_soname_spec
5954 -
5955 -# Commands used to build and install an old-style archive.
5956 -RANLIB=$lt_RANLIB
5957 -old_archive_cmds=$lt_[]_LT_AC_TAGVAR(old_archive_cmds, $1)
5958 -old_postinstall_cmds=$lt_old_postinstall_cmds
5959 -old_postuninstall_cmds=$lt_old_postuninstall_cmds
5960 -
5961 -# Create an old-style archive from a shared archive.
5962 -old_archive_from_new_cmds=$lt_[]_LT_AC_TAGVAR(old_archive_from_new_cmds, $1)
5963 -
5964 -# Create a temporary old-style archive to link instead of a shared archive.
5965 -old_archive_from_expsyms_cmds=$lt_[]_LT_AC_TAGVAR(old_archive_from_expsyms_cmds, $1)
5966 -
5967 -# Commands used to build and install a shared archive.
5968 -archive_cmds=$lt_[]_LT_AC_TAGVAR(archive_cmds, $1)
5969 -archive_expsym_cmds=$lt_[]_LT_AC_TAGVAR(archive_expsym_cmds, $1)
5970 -postinstall_cmds=$lt_postinstall_cmds
5971 -postuninstall_cmds=$lt_postuninstall_cmds
5972 -
5973 -# Commands used to build a loadable module (assumed same as above if empty)
5974 -module_cmds=$lt_[]_LT_AC_TAGVAR(module_cmds, $1)
5975 -module_expsym_cmds=$lt_[]_LT_AC_TAGVAR(module_expsym_cmds, $1)
5976 -
5977 -# Commands to strip libraries.
5978 -old_striplib=$lt_old_striplib
5979 -striplib=$lt_striplib
5980 -
5981 -# Dependencies to place before the objects being linked to create a
5982 -# shared library.
5983 -predep_objects=$lt_[]_LT_AC_TAGVAR(predep_objects, $1)
5984 -
5985 -# Dependencies to place after the objects being linked to create a
5986 -# shared library.
5987 -postdep_objects=$lt_[]_LT_AC_TAGVAR(postdep_objects, $1)
5988 -
5989 -# Dependencies to place before the objects being linked to create a
5990 -# shared library.
5991 -predeps=$lt_[]_LT_AC_TAGVAR(predeps, $1)
5992 -
5993 -# Dependencies to place after the objects being linked to create a
5994 -# shared library.
5995 -postdeps=$lt_[]_LT_AC_TAGVAR(postdeps, $1)
5996 -
5997 -# The library search path used internally by the compiler when linking
5998 -# a shared library.
5999 -compiler_lib_search_path=$lt_[]_LT_AC_TAGVAR(compiler_lib_search_path, $1)
6000 -
6001 -# Method to check whether dependent libraries are shared objects.
6002 -deplibs_check_method=$lt_deplibs_check_method
6003 -
6004 -# Command to use when deplibs_check_method == file_magic.
6005 -file_magic_cmd=$lt_file_magic_cmd
6006 -
6007 -# Flag that allows shared libraries with undefined symbols to be built.
6008 -allow_undefined_flag=$lt_[]_LT_AC_TAGVAR(allow_undefined_flag, $1)
6009 -
6010 -# Flag that forces no undefined symbols.
6011 -no_undefined_flag=$lt_[]_LT_AC_TAGVAR(no_undefined_flag, $1)
6012 -
6013 -# Commands used to finish a libtool library installation in a directory.
6014 -finish_cmds=$lt_finish_cmds
6015 -
6016 -# Same as above, but a single script fragment to be evaled but not shown.
6017 -finish_eval=$lt_finish_eval
6018 -
6019 -# Take the output of nm and produce a listing of raw symbols and C names.
6020 -global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
6021 -
6022 -# Transform the output of nm in a proper C declaration
6023 -global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
6024 -
6025 -# Transform the output of nm in a C name address pair
6026 -global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
6027 -
6028 -# This is the shared library runtime path variable.
6029 -runpath_var=$runpath_var
6030 -
6031 -# This is the shared library path variable.
6032 -shlibpath_var=$shlibpath_var
6033 -
6034 -# Is shlibpath searched before the hard-coded library search path?
6035 -shlibpath_overrides_runpath=$shlibpath_overrides_runpath
6036 -
6037 -# How to hardcode a shared library path into an executable.
6038 -hardcode_action=$_LT_AC_TAGVAR(hardcode_action, $1)
6039 -
6040 -# Whether we should hardcode library paths into libraries.
6041 -hardcode_into_libs=$hardcode_into_libs
6042 -
6043 -# Flag to hardcode \$libdir into a binary during linking.
6044 -# This must work even if \$libdir does not exist.
6045 -hardcode_libdir_flag_spec=$lt_[]_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)
6046 -
6047 -# If ld is used when linking, flag to hardcode \$libdir into
6048 -# a binary during linking. This must work even if \$libdir does
6049 -# not exist.
6050 -hardcode_libdir_flag_spec_ld=$lt_[]_LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)
6051 -
6052 -# Whether we need a single -rpath flag with a separated argument.
6053 -hardcode_libdir_separator=$lt_[]_LT_AC_TAGVAR(hardcode_libdir_separator, $1)
6054 -
6055 -# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
6056 -# resulting binary.
6057 -hardcode_direct=$_LT_AC_TAGVAR(hardcode_direct, $1)
6058 -
6059 -# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
6060 -# resulting binary.
6061 -hardcode_minus_L=$_LT_AC_TAGVAR(hardcode_minus_L, $1)
6062 -
6063 -# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
6064 -# the resulting binary.
6065 -hardcode_shlibpath_var=$_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)
6066 -
6067 -# Set to yes if building a shared library automatically hardcodes DIR into the library
6068 -# and all subsequent libraries and executables linked against it.
6069 -hardcode_automatic=$_LT_AC_TAGVAR(hardcode_automatic, $1)
6070 -
6071 -# Variables whose values should be saved in libtool wrapper scripts and
6072 -# restored at relink time.
6073 -variables_saved_for_relink="$variables_saved_for_relink"
6074 -
6075 -# Whether libtool must link a program against all its dependency libraries.
6076 -link_all_deplibs=$_LT_AC_TAGVAR(link_all_deplibs, $1)
6077 -
6078 -# Compile-time system search path for libraries
6079 -sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
6080 -
6081 -# Run-time system search path for libraries
6082 -sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
6083 -
6084 -# Fix the shell variable \$srcfile for the compiler.
6085 -fix_srcfile_path="$_LT_AC_TAGVAR(fix_srcfile_path, $1)"
6086 -
6087 -# Set to yes if exported symbols are required.
6088 -always_export_symbols=$_LT_AC_TAGVAR(always_export_symbols, $1)
6089 -
6090 -# The commands to list exported symbols.
6091 -export_symbols_cmds=$lt_[]_LT_AC_TAGVAR(export_symbols_cmds, $1)
6092 -
6093 -# The commands to extract the exported symbol list from a shared archive.
6094 -extract_expsyms_cmds=$lt_extract_expsyms_cmds
6095 -
6096 -# Symbols that should not be listed in the preloaded symbols.
6097 -exclude_expsyms=$lt_[]_LT_AC_TAGVAR(exclude_expsyms, $1)
6098 -
6099 -# Symbols that must always be exported.
6100 -include_expsyms=$lt_[]_LT_AC_TAGVAR(include_expsyms, $1)
6101 -
6102 -ifelse([$1],[],
6103 -[# ### END LIBTOOL CONFIG],
6104 -[# ### END LIBTOOL TAG CONFIG: $tagname])
6105 -
6106 -__EOF__
6107 -
6108 -ifelse([$1],[], [
6109 - case $host_os in
6110 - aix3*)
6111 - cat <<\EOF >> "$cfgfile"
6112 -
6113 -# AIX sometimes has problems with the GCC collect2 program. For some
6114 -# reason, if we set the COLLECT_NAMES environment variable, the problems
6115 -# vanish in a puff of smoke.
6116 -if test "X${COLLECT_NAMES+set}" != Xset; then
6117 - COLLECT_NAMES=
6118 - export COLLECT_NAMES
6119 -fi
6120 -EOF
6121 - ;;
6122 - esac
6123 -
6124 - # We use sed instead of cat because bash on DJGPP gets confused if
6125 - # if finds mixed CR/LF and LF-only lines. Since sed operates in
6126 - # text mode, it properly converts lines to CR/LF. This bash problem
6127 - # is reportedly fixed, but why not run on old versions too?
6128 - sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
6129 -
6130 - mv -f "$cfgfile" "$ofile" || \
6131 - (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
6132 - chmod +x "$ofile"
6133 -])
6134 -else
6135 - # If there is no Makefile yet, we rely on a make rule to execute
6136 - # `config.status --recheck' to rerun these tests and create the
6137 - # libtool script then.
6138 - ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
6139 - if test -f "$ltmain_in"; then
6140 - test -f Makefile && make "$ltmain"
6141 - fi
6142 -fi
6143 -])# AC_LIBTOOL_CONFIG
6144 -
6145 -
6146 -# AC_LIBTOOL_PROG_COMPILER_NO_RTTI([TAGNAME])
6147 -# -------------------------------------------
6148 -AC_DEFUN([AC_LIBTOOL_PROG_COMPILER_NO_RTTI],
6149 -[AC_REQUIRE([_LT_AC_SYS_COMPILER])dnl
6150 -
6151 -_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=
6152 -
6153 -if test "$GCC" = yes; then
6154 - _LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin'
6155 -
6156 - AC_LIBTOOL_COMPILER_OPTION([if $compiler supports -fno-rtti -fno-exceptions],
6157 - lt_cv_prog_compiler_rtti_exceptions,
6158 - [-fno-rtti -fno-exceptions], [],
6159 - [_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)="$_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1) -fno-rtti -fno-exceptions"])
6160 -fi
6161 -])# AC_LIBTOOL_PROG_COMPILER_NO_RTTI
6162 -
6163 -
6164 -# AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE
6165 -# ---------------------------------
6166 -AC_DEFUN([AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE],
6167 -[AC_REQUIRE([AC_CANONICAL_HOST])
6168 -AC_REQUIRE([AC_PROG_NM])
6169 -AC_REQUIRE([AC_OBJEXT])
6170 -# Check for command to grab the raw symbol name followed by C symbol from nm.
6171 -AC_MSG_CHECKING([command to parse $NM output from $compiler object])
6172 -AC_CACHE_VAL([lt_cv_sys_global_symbol_pipe],
6173 -[
6174 -# These are sane defaults that work on at least a few old systems.
6175 -# [They come from Ultrix. What could be older than Ultrix?!! ;)]
6176 -
6177 -# Character class describing NM global symbol codes.
6178 -symcode='[[BCDEGRST]]'
6179 -
6180 -# Regexp to match symbols that can be accessed directly from C.
6181 -sympat='\([[_A-Za-z]][[_A-Za-z0-9]]*\)'
6182 -
6183 -# Transform an extracted symbol line into a proper C declaration
6184 -lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
6185 -
6186 -# Transform an extracted symbol line into symbol name and symbol address
6187 -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'"
6188 -
6189 -# Define system-specific variables.
6190 -case $host_os in
6191 -aix*)
6192 - symcode='[[BCDT]]'
6193 - ;;
6194 -cygwin* | mingw* | pw32*)
6195 - symcode='[[ABCDGISTW]]'
6196 - ;;
6197 -hpux*) # Its linker distinguishes data from code symbols
6198 - if test "$host_cpu" = ia64; then
6199 - symcode='[[ABCDEGRST]]'
6200 - fi
6201 - lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6202 - 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'"
6203 - ;;
6204 -linux*)
6205 - if test "$host_cpu" = ia64; then
6206 - symcode='[[ABCDGIRSTW]]'
6207 - lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6208 - 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'"
6209 - fi
6210 - ;;
6211 -irix* | nonstopux*)
6212 - symcode='[[BCDEGRST]]'
6213 - ;;
6214 -osf*)
6215 - symcode='[[BCDEGQRST]]'
6216 - ;;
6217 -solaris* | sysv5*)
6218 - symcode='[[BDRT]]'
6219 - ;;
6220 -sysv4)
6221 - symcode='[[DFNSTU]]'
6222 - ;;
6223 -esac
6224 -
6225 -# Handle CRLF in mingw tool chain
6226 -opt_cr=
6227 -case $build_os in
6228 -mingw*)
6229 - opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6230 - ;;
6231 -esac
6232 -
6233 -# If we're using GNU nm, then use its standard symbol codes.
6234 -case `$NM -V 2>&1` in
6235 -*GNU* | *'with BFD'*)
6236 - symcode='[[ABCDGIRSTW]]' ;;
6237 -esac
6238 -
6239 -# Try without a prefix undercore, then with it.
6240 -for ac_symprfx in "" "_"; do
6241 -
6242 - # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6243 - symxfrm="\\1 $ac_symprfx\\2 \\2"
6244 +dlopen_support=$enable_dlopen
6245
6246 - # Write the raw and C identifiers.
6247 - lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[[ ]]\($symcode$symcode*\)[[ ]][[ ]]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6248 +# Whether dlopen of programs is supported.
6249 +dlopen_self=$enable_dlopen_self
6250
6251 - # Check to see that the pipe works correctly.
6252 - pipe_works=no
6253 +# Whether dlopen of statically linked programs is supported.
6254 +dlopen_self_static=$enable_dlopen_self_static
6255
6256 - rm -f conftest*
6257 - cat > conftest.$ac_ext <<EOF
6258 -#ifdef __cplusplus
6259 -extern "C" {
6260 -#endif
6261 -char nm_test_var;
6262 -void nm_test_func(){}
6263 -#ifdef __cplusplus
6264 -}
6265 -#endif
6266 -int main(){nm_test_var='a';nm_test_func();return(0);}
6267 -EOF
6268 +# Compiler flag to prevent dynamic linking.
6269 +link_static_flag=$lt_link_static_flag
6270
6271 - if AC_TRY_EVAL(ac_compile); then
6272 - # Now try to grab the symbols.
6273 - nlist=conftest.nm
6274 - if AC_TRY_EVAL(NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) && test -s "$nlist"; then
6275 - # Try sorting and uniquifying the output.
6276 - if sort "$nlist" | uniq > "$nlist"T; then
6277 - mv -f "$nlist"T "$nlist"
6278 - else
6279 - rm -f "$nlist"T
6280 - fi
6281 +# Compiler flag to turn off builtin functions.
6282 +no_builtin_flag=$lt_no_builtin_flag
6283
6284 - # Make sure that we snagged all the symbols we need.
6285 - if grep ' nm_test_var$' "$nlist" >/dev/null; then
6286 - if grep ' nm_test_func$' "$nlist" >/dev/null; then
6287 - cat <<EOF > conftest.$ac_ext
6288 -#ifdef __cplusplus
6289 -extern "C" {
6290 -#endif
6291 +# Compiler flag to allow reflexive dlopens.
6292 +export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
6293
6294 -EOF
6295 - # Now generate the symbol file.
6296 - eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
6297 +# Compiler flag to generate shared objects directly from archives.
6298 +whole_archive_flag_spec=$lt_whole_archive_flag_spec
6299
6300 - cat <<EOF >> conftest.$ac_ext
6301 -#if defined (__STDC__) && __STDC__
6302 -# define lt_ptr_t void *
6303 -#else
6304 -# define lt_ptr_t char *
6305 -# define const
6306 -#endif
6307 +# Compiler flag to generate thread-safe objects.
6308 +thread_safe_flag_spec=$lt_thread_safe_flag_spec
6309
6310 -/* The mapping between symbol names and symbols. */
6311 -const struct {
6312 - const char *name;
6313 - lt_ptr_t address;
6314 -}
6315 -lt_preloaded_symbols[[]] =
6316 -{
6317 -EOF
6318 - $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
6319 - cat <<\EOF >> conftest.$ac_ext
6320 - {0, (lt_ptr_t) 0}
6321 -};
6322 +# Library versioning type.
6323 +version_type=$version_type
6324
6325 -#ifdef __cplusplus
6326 -}
6327 -#endif
6328 -EOF
6329 - # Now try linking the two files.
6330 - mv conftest.$ac_objext conftstm.$ac_objext
6331 - lt_save_LIBS="$LIBS"
6332 - lt_save_CFLAGS="$CFLAGS"
6333 - LIBS="conftstm.$ac_objext"
6334 - CFLAGS="$CFLAGS$_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)"
6335 - if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext}; then
6336 - pipe_works=yes
6337 - fi
6338 - LIBS="$lt_save_LIBS"
6339 - CFLAGS="$lt_save_CFLAGS"
6340 - else
6341 - echo "cannot find nm_test_func in $nlist" >&AS_MESSAGE_LOG_FD
6342 - fi
6343 - else
6344 - echo "cannot find nm_test_var in $nlist" >&AS_MESSAGE_LOG_FD
6345 - fi
6346 - else
6347 - echo "cannot run $lt_cv_sys_global_symbol_pipe" >&AS_MESSAGE_LOG_FD
6348 - fi
6349 - else
6350 - echo "$progname: failed program was:" >&AS_MESSAGE_LOG_FD
6351 - cat conftest.$ac_ext >&5
6352 - fi
6353 - rm -f conftest* conftst*
6354 +# Format of library name prefix.
6355 +libname_spec=$lt_libname_spec
6356
6357 - # Do not use the global_symbol_pipe unless it works.
6358 - if test "$pipe_works" = yes; then
6359 - break
6360 - else
6361 - lt_cv_sys_global_symbol_pipe=
6362 - fi
6363 -done
6364 -])
6365 -if test -z "$lt_cv_sys_global_symbol_pipe"; then
6366 - lt_cv_sys_global_symbol_to_cdecl=
6367 -fi
6368 -if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6369 - AC_MSG_RESULT(failed)
6370 -else
6371 - AC_MSG_RESULT(ok)
6372 -fi
6373 -]) # AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE
6374 +# List of archive names. First name is the real one, the rest are links.
6375 +# The last name is the one that the linker finds with -lNAME.
6376 +library_names_spec=$lt_library_names_spec
6377
6378 +# The coded name of the library, if different from the real name.
6379 +soname_spec=$lt_soname_spec
6380
6381 -# AC_LIBTOOL_PROG_COMPILER_PIC([TAGNAME])
6382 -# ---------------------------------------
6383 -AC_DEFUN([AC_LIBTOOL_PROG_COMPILER_PIC],
6384 -[_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)=
6385 -_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
6386 -_LT_AC_TAGVAR(lt_prog_compiler_static, $1)=
6387 +# Commands used to build and install an old-style archive.
6388 +RANLIB=$lt_RANLIB
6389 +old_archive_cmds=$lt_old_archive_cmds
6390 +old_postinstall_cmds=$lt_old_postinstall_cmds
6391 +old_postuninstall_cmds=$lt_old_postuninstall_cmds
6392
6393 -AC_MSG_CHECKING([for $compiler option to produce PIC])
6394 - ifelse([$1],[CXX],[
6395 - # C++ specific cases for pic, static, wl, etc.
6396 - if test "$GXX" = yes; then
6397 - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
6398 - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static'
6399 +# Create an old-style archive from a shared archive.
6400 +old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
6401
6402 - case $host_os in
6403 - aix*)
6404 - # All AIX code is PIC.
6405 - if test "$host_cpu" = ia64; then
6406 - # AIX 5 now supports IA64 processor
6407 - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
6408 - fi
6409 - ;;
6410 - amigaos*)
6411 - # FIXME: we need at least 68020 code to build shared libraries, but
6412 - # adding the `-m68020' flag to GCC prevents building anything better,
6413 - # like `-m68040'.
6414 - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4'
6415 - ;;
6416 - beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
6417 - # PIC is the default for these OSes.
6418 - ;;
6419 - mingw* | os2* | pw32*)
6420 - # This hack is so that the source file can tell whether it is being
6421 - # built for inclusion in a dll (and should export symbols for example).
6422 - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'
6423 - ;;
6424 - darwin* | rhapsody*)
6425 - # PIC is the default on this platform
6426 - # Common symbols not allowed in MH_DYLIB files
6427 - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common'
6428 - ;;
6429 - *djgpp*)
6430 - # DJGPP does not support shared libraries at all
6431 - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
6432 - ;;
6433 - sysv4*MP*)
6434 - if test -d /usr/nec; then
6435 - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic
6436 - fi
6437 - ;;
6438 - hpux*)
6439 - # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6440 - # not for PA HP-UX.
6441 - case $host_cpu in
6442 - hppa*64*|ia64*)
6443 - ;;
6444 - *)
6445 - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
6446 - ;;
6447 - esac
6448 - ;;
6449 - *)
6450 - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
6451 - ;;
6452 - esac
6453 - else
6454 - case $host_os in
6455 - aix4* | aix5*)
6456 - # All AIX code is PIC.
6457 - if test "$host_cpu" = ia64; then
6458 - # AIX 5 now supports IA64 processor
6459 - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
6460 - else
6461 - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp'
6462 - fi
6463 - ;;
6464 - chorus*)
6465 - case $cc_basename in
6466 - cxch68*)
6467 - # Green Hills C++ Compiler
6468 - # _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"
6469 - ;;
6470 - esac
6471 - ;;
6472 - darwin*)
6473 - # PIC is the default on this platform
6474 - # Common symbols not allowed in MH_DYLIB files
6475 - case $cc_basename in
6476 - xlc*)
6477 - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-qnocommon'
6478 - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
6479 - ;;
6480 - esac
6481 - ;;
6482 - dgux*)
6483 - case $cc_basename in
6484 - ec++*)
6485 - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
6486 - ;;
6487 - ghcx*)
6488 - # Green Hills C++ Compiler
6489 - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
6490 - ;;
6491 - *)
6492 - ;;
6493 - esac
6494 - ;;
6495 - freebsd* | kfreebsd*-gnu | dragonfly*)
6496 - # FreeBSD uses GNU C++
6497 - ;;
6498 - hpux9* | hpux10* | hpux11*)
6499 - case $cc_basename in
6500 - CC*)
6501 - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
6502 - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
6503 - if test "$host_cpu" != ia64; then
6504 - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
6505 - fi
6506 - ;;
6507 - aCC*)
6508 - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
6509 - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
6510 - case $host_cpu in
6511 - hppa*64*|ia64*)
6512 - # +Z the default
6513 - ;;
6514 - *)
6515 - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
6516 - ;;
6517 - esac
6518 - ;;
6519 - *)
6520 - ;;
6521 - esac
6522 - ;;
6523 - irix5* | irix6* | nonstopux*)
6524 - case $cc_basename in
6525 - CC*)
6526 - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
6527 - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
6528 - # CC pic flag -KPIC is the default.
6529 - ;;
6530 - *)
6531 - ;;
6532 - esac
6533 - ;;
6534 - linux*)
6535 - case $cc_basename in
6536 - KCC*)
6537 - # KAI C++ Compiler
6538 - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,'
6539 - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
6540 - ;;
6541 - icpc* | ecpc*)
6542 - # Intel C++
6543 - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
6544 - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
6545 - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static'
6546 - ;;
6547 - pgCC*)
6548 - # Portland Group C++ compiler.
6549 - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
6550 - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fpic'
6551 - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
6552 - ;;
6553 - cxx*)
6554 - # Compaq C++
6555 - # Make sure the PIC flag is empty. It appears that all Alpha
6556 - # Linux and Compaq Tru64 Unix objects are PIC.
6557 - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
6558 - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
6559 - ;;
6560 - *)
6561 - ;;
6562 - esac
6563 - ;;
6564 - lynxos*)
6565 - ;;
6566 - m88k*)
6567 - ;;
6568 - mvs*)
6569 - case $cc_basename in
6570 - cxx*)
6571 - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-W c,exportall'
6572 - ;;
6573 - *)
6574 - ;;
6575 - esac
6576 - ;;
6577 - netbsd*)
6578 - ;;
6579 - osf3* | osf4* | osf5*)
6580 - case $cc_basename in
6581 - KCC*)
6582 - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,'
6583 - ;;
6584 - RCC*)
6585 - # Rational C++ 2.4.1
6586 - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
6587 - ;;
6588 - cxx*)
6589 - # Digital/Compaq C++
6590 - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
6591 - # Make sure the PIC flag is empty. It appears that all Alpha
6592 - # Linux and Compaq Tru64 Unix objects are PIC.
6593 - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
6594 - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
6595 - ;;
6596 - *)
6597 - ;;
6598 - esac
6599 - ;;
6600 - psos*)
6601 - ;;
6602 - sco*)
6603 - case $cc_basename in
6604 - CC*)
6605 - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
6606 - ;;
6607 - *)
6608 - ;;
6609 - esac
6610 - ;;
6611 - solaris*)
6612 - case $cc_basename in
6613 - CC*)
6614 - # Sun C++ 4.2, 5.x and Centerline C++
6615 - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
6616 - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
6617 - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
6618 - ;;
6619 - gcx*)
6620 - # Green Hills C++ Compiler
6621 - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-PIC'
6622 - ;;
6623 - *)
6624 - ;;
6625 - esac
6626 - ;;
6627 - sunos4*)
6628 - case $cc_basename in
6629 - CC*)
6630 - # Sun C++ 4.x
6631 - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
6632 - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
6633 - ;;
6634 - lcc*)
6635 - # Lucid
6636 - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
6637 - ;;
6638 - *)
6639 - ;;
6640 - esac
6641 - ;;
6642 - tandem*)
6643 - case $cc_basename in
6644 - NCC*)
6645 - # NonStop-UX NCC 3.20
6646 - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
6647 - ;;
6648 - *)
6649 - ;;
6650 - esac
6651 - ;;
6652 - unixware*)
6653 - ;;
6654 - vxworks*)
6655 - ;;
6656 - *)
6657 - _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
6658 - ;;
6659 - esac
6660 - fi
6661 -],
6662 -[
6663 - if test "$GCC" = yes; then
6664 - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
6665 - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static'
6666 +# Create a temporary old-style archive to link instead of a shared archive.
6667 +old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
6668
6669 - case $host_os in
6670 - aix*)
6671 - # All AIX code is PIC.
6672 - if test "$host_cpu" = ia64; then
6673 - # AIX 5 now supports IA64 processor
6674 - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
6675 - fi
6676 - ;;
6677 +# Commands used to build and install a shared archive.
6678 +archive_cmds=$lt_archive_cmds
6679 +archive_expsym_cmds=$lt_archive_expsym_cmds
6680 +postinstall_cmds=$lt_postinstall_cmds
6681 +postuninstall_cmds=$lt_postuninstall_cmds
6682
6683 - amigaos*)
6684 - # FIXME: we need at least 68020 code to build shared libraries, but
6685 - # adding the `-m68020' flag to GCC prevents building anything better,
6686 - # like `-m68040'.
6687 - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4'
6688 - ;;
6689 +# Commands to strip libraries.
6690 +old_striplib=$lt_old_striplib
6691 +striplib=$lt_striplib
6692
6693 - beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
6694 - # PIC is the default for these OSes.
6695 - ;;
6696 +# Method to check whether dependent libraries are shared objects.
6697 +deplibs_check_method=$lt_deplibs_check_method
6698
6699 - mingw* | pw32* | os2*)
6700 - # This hack is so that the source file can tell whether it is being
6701 - # built for inclusion in a dll (and should export symbols for example).
6702 - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'
6703 - ;;
6704 +# Command to use when deplibs_check_method == file_magic.
6705 +file_magic_cmd=$lt_file_magic_cmd
6706
6707 - darwin* | rhapsody*)
6708 - # PIC is the default on this platform
6709 - # Common symbols not allowed in MH_DYLIB files
6710 - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common'
6711 - ;;
6712 +# Flag that allows shared libraries with undefined symbols to be built.
6713 +allow_undefined_flag=$lt_allow_undefined_flag
6714
6715 - msdosdjgpp*)
6716 - # Just because we use GCC doesn't mean we suddenly get shared libraries
6717 - # on systems that don't support them.
6718 - _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
6719 - enable_shared=no
6720 - ;;
6721 +# Flag that forces no undefined symbols.
6722 +no_undefined_flag=$lt_no_undefined_flag
6723
6724 - sysv4*MP*)
6725 - if test -d /usr/nec; then
6726 - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic
6727 - fi
6728 - ;;
6729 +# Commands used to finish a libtool library installation in a directory.
6730 +finish_cmds=$lt_finish_cmds
6731
6732 - hpux*)
6733 - # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6734 - # not for PA HP-UX.
6735 - case $host_cpu in
6736 - hppa*64*|ia64*)
6737 - # +Z the default
6738 - ;;
6739 - *)
6740 - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
6741 - ;;
6742 - esac
6743 - ;;
6744 +# Same as above, but a single script fragment to be evaled but not shown.
6745 +finish_eval=$lt_finish_eval
6746
6747 - *)
6748 - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
6749 - ;;
6750 - esac
6751 - else
6752 - # PORTME Check for flag to pass linker flags through the system compiler.
6753 - case $host_os in
6754 - aix*)
6755 - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
6756 - if test "$host_cpu" = ia64; then
6757 - # AIX 5 now supports IA64 processor
6758 - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
6759 - else
6760 - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp'
6761 - fi
6762 - ;;
6763 - darwin*)
6764 - # PIC is the default on this platform
6765 - # Common symbols not allowed in MH_DYLIB files
6766 - case $cc_basename in
6767 - xlc*)
6768 - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-qnocommon'
6769 - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
6770 - ;;
6771 - esac
6772 - ;;
6773 +# Take the output of nm and produce a listing of raw symbols and C names.
6774 +global_symbol_pipe=$lt_global_symbol_pipe
6775
6776 - mingw* | pw32* | os2*)
6777 - # This hack is so that the source file can tell whether it is being
6778 - # built for inclusion in a dll (and should export symbols for example).
6779 - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'
6780 - ;;
6781 +# Transform the output of nm in a proper C declaration
6782 +global_symbol_to_cdecl=$lt_global_symbol_to_cdecl
6783
6784 - hpux9* | hpux10* | hpux11*)
6785 - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
6786 - # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6787 - # not for PA HP-UX.
6788 - case $host_cpu in
6789 - hppa*64*|ia64*)
6790 - # +Z the default
6791 - ;;
6792 - *)
6793 - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
6794 - ;;
6795 - esac
6796 - # Is there a better lt_prog_compiler_static that works with the bundled CC?
6797 - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
6798 - ;;
6799 +# Transform the output of nm in a C name address pair
6800 +global_symbol_to_c_name_address=$lt_global_symbol_to_c_name_address
6801
6802 - irix5* | irix6* | nonstopux*)
6803 - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
6804 - # PIC (with -KPIC) is the default.
6805 - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
6806 - ;;
6807 +# This is the shared library runtime path variable.
6808 +runpath_var=$runpath_var
6809
6810 - newsos6)
6811 - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
6812 - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
6813 - ;;
6814 +# This is the shared library path variable.
6815 +shlibpath_var=$shlibpath_var
6816
6817 - linux*)
6818 - case $cc_basename in
6819 - icc* | ecc*)
6820 - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
6821 - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
6822 - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static'
6823 - ;;
6824 - pgcc* | pgf77* | pgf90* | pgf95*)
6825 - # Portland Group compilers (*not* the Pentium gcc compiler,
6826 - # which looks to be a dead project)
6827 - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
6828 - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fpic'
6829 - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
6830 - ;;
6831 - ccc*)
6832 - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
6833 - # All Alpha code is PIC.
6834 - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
6835 - ;;
6836 - esac
6837 - ;;
6838 +# Is shlibpath searched before the hard-coded library search path?
6839 +shlibpath_overrides_runpath=$shlibpath_overrides_runpath
6840
6841 - osf3* | osf4* | osf5*)
6842 - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
6843 - # All OSF/1 code is PIC.
6844 - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
6845 - ;;
6846 +# How to hardcode a shared library path into an executable.
6847 +hardcode_action=$hardcode_action
6848
6849 - sco3.2v5*)
6850 - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-Kpic'
6851 - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-dn'
6852 - ;;
6853 +# Whether we should hardcode library paths into libraries.
6854 +hardcode_into_libs=$hardcode_into_libs
6855
6856 - solaris*)
6857 - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
6858 - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
6859 - case $cc_basename in
6860 - f77* | f90* | f95*)
6861 - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ';;
6862 - *)
6863 - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,';;
6864 - esac
6865 - ;;
6866 +# Flag to hardcode \$libdir into a binary during linking.
6867 +# This must work even if \$libdir does not exist.
6868 +hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
6869
6870 - sunos4*)
6871 - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
6872 - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-PIC'
6873 - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
6874 - ;;
6875 +# Whether we need a single -rpath flag with a separated argument.
6876 +hardcode_libdir_separator=$lt_hardcode_libdir_separator
6877
6878 - sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
6879 - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
6880 - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
6881 - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
6882 - ;;
6883 +# Set to yes if using DIR/libNAME.so during linking hardcodes DIR into the
6884 +# resulting binary.
6885 +hardcode_direct=$hardcode_direct
6886
6887 - sysv4*MP*)
6888 - if test -d /usr/nec ;then
6889 - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-Kconform_pic'
6890 - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
6891 - fi
6892 - ;;
6893 +# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
6894 +# resulting binary.
6895 +hardcode_minus_L=$hardcode_minus_L
6896
6897 - unicos*)
6898 - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
6899 - _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
6900 - ;;
6901 +# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
6902 +# the resulting binary.
6903 +hardcode_shlibpath_var=$hardcode_shlibpath_var
6904
6905 - uts4*)
6906 - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
6907 - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
6908 - ;;
6909 +# Variables whose values should be saved in libtool wrapper scripts and
6910 +# restored at relink time.
6911 +variables_saved_for_relink="$variables_saved_for_relink"
6912
6913 - *)
6914 - _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
6915 - ;;
6916 - esac
6917 - fi
6918 -])
6919 -AC_MSG_RESULT([$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)])
6920 +# Whether libtool must link a program against all its dependency libraries.
6921 +link_all_deplibs=$link_all_deplibs
6922
6923 -#
6924 -# Check to make sure the PIC flag actually works.
6925 -#
6926 -if test -n "$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)"; then
6927 - AC_LIBTOOL_COMPILER_OPTION([if $compiler PIC flag $_LT_AC_TAGVAR(lt_prog_compiler_pic, $1) works],
6928 - _LT_AC_TAGVAR(lt_prog_compiler_pic_works, $1),
6929 - [$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)ifelse([$1],[],[ -DPIC],[ifelse([$1],[CXX],[ -DPIC],[])])], [],
6930 - [case $_LT_AC_TAGVAR(lt_prog_compiler_pic, $1) in
6931 - "" | " "*) ;;
6932 - *) _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=" $_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)" ;;
6933 - esac],
6934 - [_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
6935 - _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no])
6936 -fi
6937 -case $host_os in
6938 - # For platforms which do not support PIC, -DPIC is meaningless:
6939 - *djgpp*)
6940 - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
6941 - ;;
6942 - *)
6943 - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)="$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)ifelse([$1],[],[ -DPIC],[ifelse([$1],[CXX],[ -DPIC],[])])"
6944 - ;;
6945 -esac
6946 -])
6947 +# Compile-time system search path for libraries
6948 +sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
6949
6950 +# Run-time system search path for libraries
6951 +sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
6952
6953 -# AC_LIBTOOL_PROG_LD_SHLIBS([TAGNAME])
6954 -# ------------------------------------
6955 -# See if the linker supports building shared libraries.
6956 -AC_DEFUN([AC_LIBTOOL_PROG_LD_SHLIBS],
6957 -[AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries])
6958 -ifelse([$1],[CXX],[
6959 - _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
6960 - case $host_os in
6961 - aix4* | aix5*)
6962 - # If we're using GNU nm, then we don't want the "-C" option.
6963 - # -C means demangle to AIX nm, but means don't demangle with GNU nm
6964 - if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
6965 - _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'
6966 - else
6967 - _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'
6968 - fi
6969 - ;;
6970 - pw32*)
6971 - _LT_AC_TAGVAR(export_symbols_cmds, $1)="$ltdll_cmds"
6972 - ;;
6973 - cygwin* | mingw*)
6974 - _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'
6975 - ;;
6976 - *)
6977 - _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
6978 - ;;
6979 - esac
6980 -],[
6981 - runpath_var=
6982 - _LT_AC_TAGVAR(allow_undefined_flag, $1)=
6983 - _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=no
6984 - _LT_AC_TAGVAR(archive_cmds, $1)=
6985 - _LT_AC_TAGVAR(archive_expsym_cmds, $1)=
6986 - _LT_AC_TAGVAR(old_archive_From_new_cmds, $1)=
6987 - _LT_AC_TAGVAR(old_archive_from_expsyms_cmds, $1)=
6988 - _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)=
6989 - _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
6990 - _LT_AC_TAGVAR(thread_safe_flag_spec, $1)=
6991 - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=
6992 - _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
6993 - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
6994 - _LT_AC_TAGVAR(hardcode_direct, $1)=no
6995 - _LT_AC_TAGVAR(hardcode_minus_L, $1)=no
6996 - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
6997 - _LT_AC_TAGVAR(link_all_deplibs, $1)=unknown
6998 - _LT_AC_TAGVAR(hardcode_automatic, $1)=no
6999 - _LT_AC_TAGVAR(module_cmds, $1)=
7000 - _LT_AC_TAGVAR(module_expsym_cmds, $1)=
7001 - _LT_AC_TAGVAR(always_export_symbols, $1)=no
7002 - _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
7003 - # include_expsyms should be a list of space-separated symbols to be *always*
7004 - # included in the symbol list
7005 - _LT_AC_TAGVAR(include_expsyms, $1)=
7006 - # exclude_expsyms can be an extended regexp of symbols to exclude
7007 - # it will be wrapped by ` (' and `)$', so one must not match beginning or
7008 - # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
7009 - # as well as any symbol that contains `d'.
7010 - _LT_AC_TAGVAR(exclude_expsyms, $1)="_GLOBAL_OFFSET_TABLE_"
7011 - # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
7012 - # platforms (ab)use it in PIC code, but their linkers get confused if
7013 - # the symbol is explicitly referenced. Since portable code cannot
7014 - # rely on this symbol name, it's probably fine to never include it in
7015 - # preloaded symbol tables.
7016 - extract_expsyms_cmds=
7017 - # Just being paranoid about ensuring that cc_basename is set.
7018 - _LT_CC_BASENAME([$compiler])
7019 - case $host_os in
7020 - cygwin* | mingw* | pw32*)
7021 - # FIXME: the MSVC++ port hasn't been tested in a loooong time
7022 - # When not using gcc, we currently assume that we are using
7023 - # Microsoft Visual C++.
7024 - if test "$GCC" != yes; then
7025 - with_gnu_ld=no
7026 - fi
7027 - ;;
7028 - openbsd*)
7029 - with_gnu_ld=no
7030 - ;;
7031 - esac
7032 +# Fix the shell variable \$srcfile for the compiler.
7033 +fix_srcfile_path="$fix_srcfile_path"
7034
7035 - _LT_AC_TAGVAR(ld_shlibs, $1)=yes
7036 - if test "$with_gnu_ld" = yes; then
7037 - # If archive_cmds runs LD, not CC, wlarc should be empty
7038 - wlarc='${wl}'
7039 +# Set to yes if exported symbols are required.
7040 +always_export_symbols=$always_export_symbols
7041
7042 - # Set some defaults for GNU ld with shared library support. These
7043 - # are reset later if shared libraries are not supported. Putting them
7044 - # here allows them to be overridden if necessary.
7045 - runpath_var=LD_RUN_PATH
7046 - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir'
7047 - _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
7048 - # ancient GNU ld didn't support --whole-archive et. al.
7049 - if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
7050 - _LT_AC_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
7051 - else
7052 - _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
7053 - fi
7054 - supports_anon_versioning=no
7055 - case `$LD -v 2>/dev/null` in
7056 - *\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.10.*) ;; # catch versions < 2.11
7057 - *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
7058 - *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
7059 - *\ 2.11.*) ;; # other 2.11 versions
7060 - *) supports_anon_versioning=yes ;;
7061 - esac
7062 +# The commands to list exported symbols.
7063 +export_symbols_cmds=$lt_export_symbols_cmds
7064
7065 - # See if GNU ld supports shared libraries.
7066 - case $host_os in
7067 - aix3* | aix4* | aix5*)
7068 - # On AIX/PPC, the GNU linker is very broken
7069 - if test "$host_cpu" != ia64; then
7070 - _LT_AC_TAGVAR(ld_shlibs, $1)=no
7071 - cat <<EOF 1>&2
7072 +# The commands to extract the exported symbol list from a shared archive.
7073 +extract_expsyms_cmds=$lt_extract_expsyms_cmds
7074
7075 -*** Warning: the GNU linker, at least up to release 2.9.1, is reported
7076 -*** to be unable to reliably create shared libraries on AIX.
7077 -*** Therefore, libtool is disabling shared libraries support. If you
7078 -*** really care for shared libraries, you may want to modify your PATH
7079 -*** so that a non-GNU linker is found, and then restart.
7080 +# Symbols that should not be listed in the preloaded symbols.
7081 +exclude_expsyms=$lt_exclude_expsyms
7082
7083 -EOF
7084 - fi
7085 - ;;
7086 +# Symbols that must always be exported.
7087 +include_expsyms=$lt_include_expsyms
7088
7089 - amigaos*)
7090 - _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)'
7091 - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
7092 - _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
7093 -
7094 - # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
7095 - # that the semantics of dynamic libraries on AmigaOS, at least up
7096 - # to version 4, is to share data among multiple programs linked
7097 - # with the same dynamic library. Since this doesn't match the
7098 - # behavior of shared libraries on other platforms, we can't use
7099 - # them.
7100 - _LT_AC_TAGVAR(ld_shlibs, $1)=no
7101 - ;;
7102 +# ### END LIBTOOL CONFIG
7103
7104 - beos*)
7105 - if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7106 - _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
7107 - # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
7108 - # support --undefined. This deserves some investigation. FIXME
7109 - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7110 - else
7111 - _LT_AC_TAGVAR(ld_shlibs, $1)=no
7112 - fi
7113 - ;;
7114 +__EOF__
7115
7116 - cygwin* | mingw* | pw32*)
7117 - # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless,
7118 - # as there is no search path for DLLs.
7119 - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
7120 - _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
7121 - _LT_AC_TAGVAR(always_export_symbols, $1)=no
7122 - _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
7123 - _LT_AC_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'
7124 -
7125 - if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
7126 - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
7127 - # If the export-symbols file already is a .def file (1st line
7128 - # is EXPORTS), use it as is; otherwise, prepend...
7129 - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
7130 - cp $export_symbols $output_objdir/$soname.def;
7131 - else
7132 - echo EXPORTS > $output_objdir/$soname.def;
7133 - cat $export_symbols >> $output_objdir/$soname.def;
7134 - fi~
7135 - $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
7136 - else
7137 - _LT_AC_TAGVAR(ld_shlibs, $1)=no
7138 - fi
7139 - ;;
7140 + case $host_os in
7141 + aix3*)
7142 + cat <<\EOF >> "${ofile}T"
7143
7144 - linux*)
7145 - if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7146 - tmp_addflag=
7147 - case $cc_basename,$host_cpu in
7148 - pgcc*) # Portland Group C compiler
7149 - _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'
7150 - tmp_addflag=' $pic_flag'
7151 - ;;
7152 - pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
7153 - _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'
7154 - tmp_addflag=' $pic_flag -Mnomain' ;;
7155 - ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
7156 - tmp_addflag=' -i_dynamic' ;;
7157 - efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
7158 - tmp_addflag=' -i_dynamic -nofor_main' ;;
7159 - ifc* | ifort*) # Intel Fortran compiler
7160 - tmp_addflag=' -nofor_main' ;;
7161 - esac
7162 - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7163 +# AIX sometimes has problems with the GCC collect2 program. For some
7164 +# reason, if we set the COLLECT_NAMES environment variable, the problems
7165 +# vanish in a puff of smoke.
7166 +if test "X${COLLECT_NAMES+set}" != Xset; then
7167 + COLLECT_NAMES=
7168 + export COLLECT_NAMES
7169 +fi
7170 +EOF
7171 + ;;
7172 + esac
7173
7174 - if test $supports_anon_versioning = yes; then
7175 - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $output_objdir/$libname.ver~
7176 - cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
7177 - $echo "local: *; };" >> $output_objdir/$libname.ver~
7178 - $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
7179 - fi
7180 - else
7181 - _LT_AC_TAGVAR(ld_shlibs, $1)=no
7182 - fi
7183 - ;;
7184 + case $host_os in
7185 + cygwin* | mingw* | pw32* | os2*)
7186 + cat <<'EOF' >> "${ofile}T"
7187 + # This is a source program that is used to create dlls on Windows
7188 + # Don't remove nor modify the starting and closing comments
7189 +# /* ltdll.c starts here */
7190 +# #define WIN32_LEAN_AND_MEAN
7191 +# #include <windows.h>
7192 +# #undef WIN32_LEAN_AND_MEAN
7193 +# #include <stdio.h>
7194 +#
7195 +# #ifndef __CYGWIN__
7196 +# # ifdef __CYGWIN32__
7197 +# # define __CYGWIN__ __CYGWIN32__
7198 +# # endif
7199 +# #endif
7200 +#
7201 +# #ifdef __cplusplus
7202 +# extern "C" {
7203 +# #endif
7204 +# BOOL APIENTRY DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved);
7205 +# #ifdef __cplusplus
7206 +# }
7207 +# #endif
7208 +#
7209 +# #ifdef __CYGWIN__
7210 +# #include <cygwin/cygwin_dll.h>
7211 +# DECLARE_CYGWIN_DLL( DllMain );
7212 +# #endif
7213 +# HINSTANCE __hDllInstance_base;
7214 +#
7215 +# BOOL APIENTRY
7216 +# DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved)
7217 +# {
7218 +# __hDllInstance_base = hInst;
7219 +# return TRUE;
7220 +# }
7221 +# /* ltdll.c ends here */
7222 + # This is a source program that is used to create import libraries
7223 + # on Windows for dlls which lack them. Don't remove nor modify the
7224 + # starting and closing comments
7225 +# /* impgen.c starts here */
7226 +# /* Copyright (C) 1999-2000 Free Software Foundation, Inc.
7227 +#
7228 +# This file is part of GNU libtool.
7229 +#
7230 +# This program is free software; you can redistribute it and/or modify
7231 +# it under the terms of the GNU General Public License as published by
7232 +# the Free Software Foundation; either version 2 of the License, or
7233 +# (at your option) any later version.
7234 +#
7235 +# This program is distributed in the hope that it will be useful,
7236 +# but WITHOUT ANY WARRANTY; without even the implied warranty of
7237 +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
7238 +# GNU General Public License for more details.
7239 +#
7240 +# You should have received a copy of the GNU General Public License
7241 +# along with this program; if not, write to the Free Software
7242 +# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
7243 +# */
7244 +#
7245 +# #include <stdio.h> /* for printf() */
7246 +# #include <unistd.h> /* for open(), lseek(), read() */
7247 +# #include <fcntl.h> /* for O_RDONLY, O_BINARY */
7248 +# #include <string.h> /* for strdup() */
7249 +#
7250 +# /* O_BINARY isn't required (or even defined sometimes) under Unix */
7251 +# #ifndef O_BINARY
7252 +# #define O_BINARY 0
7253 +# #endif
7254 +#
7255 +# static unsigned int
7256 +# pe_get16 (fd, offset)
7257 +# int fd;
7258 +# int offset;
7259 +# {
7260 +# unsigned char b[2];
7261 +# lseek (fd, offset, SEEK_SET);
7262 +# read (fd, b, 2);
7263 +# return b[0] + (b[1]<<8);
7264 +# }
7265 +#
7266 +# static unsigned int
7267 +# pe_get32 (fd, offset)
7268 +# int fd;
7269 +# int offset;
7270 +# {
7271 +# unsigned char b[4];
7272 +# lseek (fd, offset, SEEK_SET);
7273 +# read (fd, b, 4);
7274 +# return b[0] + (b[1]<<8) + (b[2]<<16) + (b[3]<<24);
7275 +# }
7276 +#
7277 +# static unsigned int
7278 +# pe_as32 (ptr)
7279 +# void *ptr;
7280 +# {
7281 +# unsigned char *b = ptr;
7282 +# return b[0] + (b[1]<<8) + (b[2]<<16) + (b[3]<<24);
7283 +# }
7284 +#
7285 +# int
7286 +# main (argc, argv)
7287 +# int argc;
7288 +# char *argv[];
7289 +# {
7290 +# int dll;
7291 +# unsigned long pe_header_offset, opthdr_ofs, num_entries, i;
7292 +# unsigned long export_rva, export_size, nsections, secptr, expptr;
7293 +# unsigned long name_rvas, nexp;
7294 +# unsigned char *expdata, *erva;
7295 +# char *filename, *dll_name;
7296 +#
7297 +# filename = argv[1];
7298 +#
7299 +# dll = open(filename, O_RDONLY|O_BINARY);
7300 +# if (dll < 1)
7301 +# return 1;
7302 +#
7303 +# dll_name = filename;
7304 +#
7305 +# for (i=0; filename[i]; i++)
7306 +# if (filename[i] == '/' || filename[i] == '\\' || filename[i] == ':')
7307 +# dll_name = filename + i +1;
7308 +#
7309 +# pe_header_offset = pe_get32 (dll, 0x3c);
7310 +# opthdr_ofs = pe_header_offset + 4 + 20;
7311 +# num_entries = pe_get32 (dll, opthdr_ofs + 92);
7312 +#
7313 +# if (num_entries < 1) /* no exports */
7314 +# return 1;
7315 +#
7316 +# export_rva = pe_get32 (dll, opthdr_ofs + 96);
7317 +# export_size = pe_get32 (dll, opthdr_ofs + 100);
7318 +# nsections = pe_get16 (dll, pe_header_offset + 4 +2);
7319 +# secptr = (pe_header_offset + 4 + 20 +
7320 +# pe_get16 (dll, pe_header_offset + 4 + 16));
7321 +#
7322 +# expptr = 0;
7323 +# for (i = 0; i < nsections; i++)
7324 +# {
7325 +# char sname[8];
7326 +# unsigned long secptr1 = secptr + 40 * i;
7327 +# unsigned long vaddr = pe_get32 (dll, secptr1 + 12);
7328 +# unsigned long vsize = pe_get32 (dll, secptr1 + 16);
7329 +# unsigned long fptr = pe_get32 (dll, secptr1 + 20);
7330 +# lseek(dll, secptr1, SEEK_SET);
7331 +# read(dll, sname, 8);
7332 +# if (vaddr <= export_rva && vaddr+vsize > export_rva)
7333 +# {
7334 +# expptr = fptr + (export_rva - vaddr);
7335 +# if (export_rva + export_size > vaddr + vsize)
7336 +# export_size = vsize - (export_rva - vaddr);
7337 +# break;
7338 +# }
7339 +# }
7340 +#
7341 +# expdata = (unsigned char*)malloc(export_size);
7342 +# lseek (dll, expptr, SEEK_SET);
7343 +# read (dll, expdata, export_size);
7344 +# erva = expdata - export_rva;
7345 +#
7346 +# nexp = pe_as32 (expdata+24);
7347 +# name_rvas = pe_as32 (expdata+32);
7348 +#
7349 +# printf ("EXPORTS\n");
7350 +# for (i = 0; i<nexp; i++)
7351 +# {
7352 +# unsigned long name_rva = pe_as32 (erva+name_rvas+i*4);
7353 +# printf ("\t%s @ %ld ;\n", erva+name_rva, 1+ i);
7354 +# }
7355 +#
7356 +# return 0;
7357 +# }
7358 +# /* impgen.c ends here */
7359
7360 - netbsd*)
7361 - if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7362 - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
7363 - wlarc=
7364 - else
7365 - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7366 - _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'
7367 - fi
7368 - ;;
7369 +EOF
7370 + ;;
7371 + esac
7372
7373 - solaris* | sysv5*)
7374 - if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
7375 - _LT_AC_TAGVAR(ld_shlibs, $1)=no
7376 - cat <<EOF 1>&2
7377 + # We use sed instead of cat because bash on DJGPP gets confused if
7378 + # if finds mixed CR/LF and LF-only lines. Since sed operates in
7379 + # text mode, it properly converts lines to CR/LF. This bash problem
7380 + # is reportedly fixed, but why not run on old versions too?
7381 + sed '$q' "$ltmain" >> "${ofile}T" || (rm -f "${ofile}T"; exit 1)
7382
7383 -*** Warning: The releases 2.8.* of the GNU linker cannot reliably
7384 -*** create shared libraries on Solaris systems. Therefore, libtool
7385 -*** is disabling shared libraries support. We urge you to upgrade GNU
7386 -*** binutils to release 2.9.1 or newer. Another option is to modify
7387 -*** your PATH or compiler configuration so that the native linker is
7388 -*** used, and then restart.
7389 + mv -f "${ofile}T" "$ofile" || \
7390 + (rm -f "$ofile" && cp "${ofile}T" "$ofile" && rm -f "${ofile}T")
7391 + chmod +x "$ofile"
7392 +fi
7393
7394 -EOF
7395 - elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7396 - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7397 - _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'
7398 - else
7399 - _LT_AC_TAGVAR(ld_shlibs, $1)=no
7400 - fi
7401 - ;;
7402 +])# _LT_AC_LTCONFIG_HACK
7403
7404 - sunos4*)
7405 - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7406 - wlarc=
7407 - _LT_AC_TAGVAR(hardcode_direct, $1)=yes
7408 - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
7409 - ;;
7410 +# AC_LIBTOOL_DLOPEN - enable checks for dlopen support
7411 +AC_DEFUN([AC_LIBTOOL_DLOPEN], [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])])
7412
7413 - *)
7414 - if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7415 - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7416 - _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'
7417 - else
7418 - _LT_AC_TAGVAR(ld_shlibs, $1)=no
7419 - fi
7420 - ;;
7421 - esac
7422 +# AC_LIBTOOL_WIN32_DLL - declare package support for building win32 dll's
7423 +AC_DEFUN([AC_LIBTOOL_WIN32_DLL], [AC_BEFORE([$0], [AC_LIBTOOL_SETUP])])
7424
7425 - if test "$_LT_AC_TAGVAR(ld_shlibs, $1)" = no; then
7426 - runpath_var=
7427 - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=
7428 - _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)=
7429 - _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
7430 +# AC_ENABLE_SHARED - implement the --enable-shared flag
7431 +# Usage: AC_ENABLE_SHARED[(DEFAULT)]
7432 +# Where DEFAULT is either `yes' or `no'. If omitted, it defaults to
7433 +# `yes'.
7434 +AC_DEFUN([AC_ENABLE_SHARED],
7435 +[define([AC_ENABLE_SHARED_DEFAULT], ifelse($1, no, no, yes))dnl
7436 +AC_ARG_ENABLE(shared,
7437 +changequote(<<, >>)dnl
7438 +<< --enable-shared[=PKGS] build shared libraries [default=>>AC_ENABLE_SHARED_DEFAULT],
7439 +changequote([, ])dnl
7440 +[p=${PACKAGE-default}
7441 +case $enableval in
7442 +yes) enable_shared=yes ;;
7443 +no) enable_shared=no ;;
7444 +*)
7445 + enable_shared=no
7446 + # Look at the argument we got. We use all the common list separators.
7447 + IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
7448 + for pkg in $enableval; do
7449 + if test "X$pkg" = "X$p"; then
7450 + enable_shared=yes
7451 fi
7452 - else
7453 - # PORTME fill in a description of your system's linker (not GNU ld)
7454 - case $host_os in
7455 - aix3*)
7456 - _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
7457 - _LT_AC_TAGVAR(always_export_symbols, $1)=yes
7458 - _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'
7459 - # Note: this linker hardcodes the directories in LIBPATH if there
7460 - # are no directories specified by -L.
7461 - _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
7462 - if test "$GCC" = yes && test -z "$link_static_flag"; then
7463 - # Neither direct hardcoding nor static linking is supported with a
7464 - # broken collect2.
7465 - _LT_AC_TAGVAR(hardcode_direct, $1)=unsupported
7466 - fi
7467 - ;;
7468 + done
7469 + IFS="$ac_save_ifs"
7470 + ;;
7471 +esac],
7472 +enable_shared=AC_ENABLE_SHARED_DEFAULT)dnl
7473 +])
7474
7475 - aix4* | aix5*)
7476 - if test "$host_cpu" = ia64; then
7477 - # On IA64, the linker does run time linking by default, so we don't
7478 - # have to do anything special.
7479 - aix_use_runtimelinking=no
7480 - exp_sym_flag='-Bexport'
7481 - no_entry_flag=""
7482 - else
7483 - # If we're using GNU nm, then we don't want the "-C" option.
7484 - # -C means demangle to AIX nm, but means don't demangle with GNU nm
7485 - if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
7486 - _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'
7487 - else
7488 - _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'
7489 - fi
7490 - aix_use_runtimelinking=no
7491 +# AC_DISABLE_SHARED - set the default shared flag to --disable-shared
7492 +AC_DEFUN([AC_DISABLE_SHARED],
7493 +[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
7494 +AC_ENABLE_SHARED(no)])
7495 +
7496 +# AC_ENABLE_STATIC - implement the --enable-static flag
7497 +# Usage: AC_ENABLE_STATIC[(DEFAULT)]
7498 +# Where DEFAULT is either `yes' or `no'. If omitted, it defaults to
7499 +# `yes'.
7500 +AC_DEFUN([AC_ENABLE_STATIC],
7501 +[define([AC_ENABLE_STATIC_DEFAULT], ifelse($1, no, no, yes))dnl
7502 +AC_ARG_ENABLE(static,
7503 +changequote(<<, >>)dnl
7504 +<< --enable-static[=PKGS] build static libraries [default=>>AC_ENABLE_STATIC_DEFAULT],
7505 +changequote([, ])dnl
7506 +[p=${PACKAGE-default}
7507 +case $enableval in
7508 +yes) enable_static=yes ;;
7509 +no) enable_static=no ;;
7510 +*)
7511 + enable_static=no
7512 + # Look at the argument we got. We use all the common list separators.
7513 + IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
7514 + for pkg in $enableval; do
7515 + if test "X$pkg" = "X$p"; then
7516 + enable_static=yes
7517 + fi
7518 + done
7519 + IFS="$ac_save_ifs"
7520 + ;;
7521 +esac],
7522 +enable_static=AC_ENABLE_STATIC_DEFAULT)dnl
7523 +])
7524
7525 - # Test if we are trying to use run time linking or normal
7526 - # AIX style linking. If -brtl is somewhere in LDFLAGS, we
7527 - # need to do runtime linking.
7528 - case $host_os in aix4.[[23]]|aix4.[[23]].*|aix5*)
7529 - for ld_flag in $LDFLAGS; do
7530 - if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
7531 - aix_use_runtimelinking=yes
7532 - break
7533 - fi
7534 - done
7535 - esac
7536 +# AC_DISABLE_STATIC - set the default static flag to --disable-static
7537 +AC_DEFUN([AC_DISABLE_STATIC],
7538 +[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
7539 +AC_ENABLE_STATIC(no)])
7540
7541 - exp_sym_flag='-bexport'
7542 - no_entry_flag='-bnoentry'
7543 - fi
7544
7545 - # When large executables or shared objects are built, AIX ld can
7546 - # have problems creating the table of contents. If linking a library
7547 - # or program results in "error TOC overflow" add -mminimal-toc to
7548 - # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
7549 - # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
7550 -
7551 - _LT_AC_TAGVAR(archive_cmds, $1)=''
7552 - _LT_AC_TAGVAR(hardcode_direct, $1)=yes
7553 - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=':'
7554 - _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
7555 -
7556 - if test "$GCC" = yes; then
7557 - case $host_os in aix4.[[012]]|aix4.[[012]].*)
7558 - # We only want to do this on AIX 4.2 and lower, the check
7559 - # below for broken collect2 doesn't work under 4.3+
7560 - collect2name=`${CC} -print-prog-name=collect2`
7561 - if test -f "$collect2name" && \
7562 - strings "$collect2name" | grep resolve_lib_name >/dev/null
7563 - then
7564 - # We have reworked collect2
7565 - _LT_AC_TAGVAR(hardcode_direct, $1)=yes
7566 - else
7567 - # We have old collect2
7568 - _LT_AC_TAGVAR(hardcode_direct, $1)=unsupported
7569 - # It fails to find uninstalled libraries when the uninstalled
7570 - # path is not listed in the libpath. Setting hardcode_minus_L
7571 - # to unsupported forces relinking
7572 - _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
7573 - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
7574 - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
7575 - fi
7576 - esac
7577 - shared_flag='-shared'
7578 - if test "$aix_use_runtimelinking" = yes; then
7579 - shared_flag="$shared_flag "'${wl}-G'
7580 - fi
7581 - else
7582 - # not using gcc
7583 - if test "$host_cpu" = ia64; then
7584 - # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
7585 - # chokes on -Wl,-G. The following line is correct:
7586 - shared_flag='-G'
7587 - else
7588 - if test "$aix_use_runtimelinking" = yes; then
7589 - shared_flag='${wl}-G'
7590 - else
7591 - shared_flag='${wl}-bM:SRE'
7592 - fi
7593 - fi
7594 - fi
7595 +# AC_ENABLE_FAST_INSTALL - implement the --enable-fast-install flag
7596 +# Usage: AC_ENABLE_FAST_INSTALL[(DEFAULT)]
7597 +# Where DEFAULT is either `yes' or `no'. If omitted, it defaults to
7598 +# `yes'.
7599 +AC_DEFUN([AC_ENABLE_FAST_INSTALL],
7600 +[define([AC_ENABLE_FAST_INSTALL_DEFAULT], ifelse($1, no, no, yes))dnl
7601 +AC_ARG_ENABLE(fast-install,
7602 +changequote(<<, >>)dnl
7603 +<< --enable-fast-install[=PKGS] optimize for fast installation [default=>>AC_ENABLE_FAST_INSTALL_DEFAULT],
7604 +changequote([, ])dnl
7605 +[p=${PACKAGE-default}
7606 +case $enableval in
7607 +yes) enable_fast_install=yes ;;
7608 +no) enable_fast_install=no ;;
7609 +*)
7610 + enable_fast_install=no
7611 + # Look at the argument we got. We use all the common list separators.
7612 + IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
7613 + for pkg in $enableval; do
7614 + if test "X$pkg" = "X$p"; then
7615 + enable_fast_install=yes
7616 + fi
7617 + done
7618 + IFS="$ac_save_ifs"
7619 + ;;
7620 +esac],
7621 +enable_fast_install=AC_ENABLE_FAST_INSTALL_DEFAULT)dnl
7622 +])
7623
7624 - # It seems that -bexpall does not export symbols beginning with
7625 - # underscore (_), so it is better to generate a list of symbols to export.
7626 - _LT_AC_TAGVAR(always_export_symbols, $1)=yes
7627 - if test "$aix_use_runtimelinking" = yes; then
7628 - # Warning - without using the other runtime loading flags (-brtl),
7629 - # -berok will link without error, but may produce a broken library.
7630 - _LT_AC_TAGVAR(allow_undefined_flag, $1)='-berok'
7631 - # Determine the default libpath from the value encoded in an empty executable.
7632 - _LT_AC_SYS_LIBPATH_AIX
7633 - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
7634 - _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
7635 - else
7636 - if test "$host_cpu" = ia64; then
7637 - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib'
7638 - _LT_AC_TAGVAR(allow_undefined_flag, $1)="-z nodefs"
7639 - _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
7640 - else
7641 - # Determine the default libpath from the value encoded in an empty executable.
7642 - _LT_AC_SYS_LIBPATH_AIX
7643 - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
7644 - # Warning - without using the other run time loading flags,
7645 - # -berok will link without error, but may produce a broken library.
7646 - _LT_AC_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok'
7647 - _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok'
7648 - # -bexpall does not export symbols beginning with underscore (_)
7649 - _LT_AC_TAGVAR(always_export_symbols, $1)=yes
7650 - # Exported symbols can be pulled into shared objects from archives
7651 - _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=' '
7652 - _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes
7653 - # This is similar to how AIX traditionally builds its shared libraries.
7654 - _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
7655 - fi
7656 - fi
7657 - ;;
7658 +# AC_DISABLE_FAST_INSTALL - set the default to --disable-fast-install
7659 +AC_DEFUN([AC_DISABLE_FAST_INSTALL],
7660 +[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
7661 +AC_ENABLE_FAST_INSTALL(no)])
7662
7663 - amigaos*)
7664 - _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)'
7665 - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
7666 - _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
7667 - # see comment about different semantics on the GNU ld section
7668 - _LT_AC_TAGVAR(ld_shlibs, $1)=no
7669 - ;;
7670 +# AC_LIBTOOL_PICMODE - implement the --with-pic flag
7671 +# Usage: AC_LIBTOOL_PICMODE[(MODE)]
7672 +# Where MODE is either `yes' or `no'. If omitted, it defaults to
7673 +# `both'.
7674 +AC_DEFUN([AC_LIBTOOL_PICMODE],
7675 +[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
7676 +pic_mode=ifelse($#,1,$1,default)])
7677
7678 - bsdi[[45]]*)
7679 - _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)=-rdynamic
7680 - ;;
7681
7682 - cygwin* | mingw* | pw32*)
7683 - # When not using gcc, we currently assume that we are using
7684 - # Microsoft Visual C++.
7685 - # hardcode_libdir_flag_spec is actually meaningless, as there is
7686 - # no search path for DLLs.
7687 - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=' '
7688 - _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
7689 - # Tell ltmain to make .lib files, not .a files.
7690 - libext=lib
7691 - # Tell ltmain to make .dll files, not .so files.
7692 - shrext_cmds=".dll"
7693 - # FIXME: Setting linknames here is a bad hack.
7694 - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
7695 - # The linker will automatically build a .lib file if we build a DLL.
7696 - _LT_AC_TAGVAR(old_archive_From_new_cmds, $1)='true'
7697 - # FIXME: Should let the user specify the lib program.
7698 - _LT_AC_TAGVAR(old_archive_cmds, $1)='lib /OUT:$oldlib$oldobjs$old_deplibs'
7699 - _LT_AC_TAGVAR(fix_srcfile_path, $1)='`cygpath -w "$srcfile"`'
7700 - _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
7701 - ;;
7702 +# AC_PATH_TOOL_PREFIX - find a file program which can recognise shared library
7703 +AC_DEFUN([AC_PATH_TOOL_PREFIX],
7704 +[AC_MSG_CHECKING([for $1])
7705 +AC_CACHE_VAL(lt_cv_path_MAGIC_CMD,
7706 +[case $MAGIC_CMD in
7707 + /*)
7708 + lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7709 + ;;
7710 + ?:/*)
7711 + lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
7712 + ;;
7713 + *)
7714 + ac_save_MAGIC_CMD="$MAGIC_CMD"
7715 + IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
7716 +dnl $ac_dummy forces splitting on constant user-supplied paths.
7717 +dnl POSIX.2 word splitting is done only on the output of word expansions,
7718 +dnl not every word. This closes a longstanding sh security hole.
7719 + ac_dummy="ifelse([$2], , $PATH, [$2])"
7720 + for ac_dir in $ac_dummy; do
7721 + test -z "$ac_dir" && ac_dir=.
7722 + if test -f $ac_dir/$1; then
7723 + lt_cv_path_MAGIC_CMD="$ac_dir/$1"
7724 + if test -n "$file_magic_test_file"; then
7725 + case $deplibs_check_method in
7726 + "file_magic "*)
7727 + file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
7728 + MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7729 + if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7730 + egrep "$file_magic_regex" > /dev/null; then
7731 + :
7732 + else
7733 + cat <<EOF 1>&2
7734
7735 - darwin* | rhapsody*)
7736 - case $host_os in
7737 - rhapsody* | darwin1.[[012]])
7738 - _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-undefined ${wl}suppress'
7739 - ;;
7740 - *) # Darwin 1.3 on
7741 - if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
7742 - _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
7743 - else
7744 - case ${MACOSX_DEPLOYMENT_TARGET} in
7745 - 10.[[012]])
7746 - _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
7747 - ;;
7748 - 10.*)
7749 - _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-undefined ${wl}dynamic_lookup'
7750 - ;;
7751 - esac
7752 - fi
7753 - ;;
7754 - esac
7755 - _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
7756 - _LT_AC_TAGVAR(hardcode_direct, $1)=no
7757 - _LT_AC_TAGVAR(hardcode_automatic, $1)=yes
7758 - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
7759 - _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=''
7760 - _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
7761 - if test "$GCC" = yes ; then
7762 - output_verbose_link_cmd='echo'
7763 - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
7764 - _LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
7765 - # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
7766 - _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}'
7767 - _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}'
7768 - else
7769 - case $cc_basename in
7770 - xlc*)
7771 - output_verbose_link_cmd='echo'
7772 - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
7773 - _LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
7774 - # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
7775 - _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 $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
7776 - _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}'
7777 - ;;
7778 - *)
7779 - _LT_AC_TAGVAR(ld_shlibs, $1)=no
7780 - ;;
7781 - esac
7782 - fi
7783 - ;;
7784 +*** Warning: the command libtool uses to detect shared libraries,
7785 +*** $file_magic_cmd, produces output that libtool cannot recognize.
7786 +*** The result is that libtool may fail to recognize shared libraries
7787 +*** as such. This will affect the creation of libtool libraries that
7788 +*** depend on shared libraries, but programs linked with such libtool
7789 +*** libraries will work regardless of this problem. Nevertheless, you
7790 +*** may want to report the problem to your system manager and/or to
7791 +*** bug-libtool@gnu.org
7792
7793 - dgux*)
7794 - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7795 - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
7796 - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
7797 - ;;
7798 +EOF
7799 + fi ;;
7800 + esac
7801 + fi
7802 + break
7803 + fi
7804 + done
7805 + IFS="$ac_save_ifs"
7806 + MAGIC_CMD="$ac_save_MAGIC_CMD"
7807 + ;;
7808 +esac])
7809 +MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7810 +if test -n "$MAGIC_CMD"; then
7811 + AC_MSG_RESULT($MAGIC_CMD)
7812 +else
7813 + AC_MSG_RESULT(no)
7814 +fi
7815 +])
7816
7817 - freebsd1*)
7818 - _LT_AC_TAGVAR(ld_shlibs, $1)=no
7819 - ;;
7820
7821 - # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
7822 - # support. Future versions do this automatically, but an explicit c++rt0.o
7823 - # does not break anything, and helps significantly (at the cost of a little
7824 - # extra space).
7825 - freebsd2.2*)
7826 - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
7827 - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
7828 - _LT_AC_TAGVAR(hardcode_direct, $1)=yes
7829 - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
7830 - ;;
7831 +# AC_PATH_MAGIC - find a file program which can recognise a shared library
7832 +AC_DEFUN([AC_PATH_MAGIC],
7833 +[AC_REQUIRE([AC_CHECK_TOOL_PREFIX])dnl
7834 +AC_PATH_TOOL_PREFIX(${ac_tool_prefix}file, /usr/bin:$PATH)
7835 +if test -z "$lt_cv_path_MAGIC_CMD"; then
7836 + if test -n "$ac_tool_prefix"; then
7837 + AC_PATH_TOOL_PREFIX(file, /usr/bin:$PATH)
7838 + else
7839 + MAGIC_CMD=:
7840 + fi
7841 +fi
7842 +])
7843
7844 - # Unfortunately, older versions of FreeBSD 2 do not have this feature.
7845 - freebsd2*)
7846 - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7847 - _LT_AC_TAGVAR(hardcode_direct, $1)=yes
7848 - _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
7849 - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
7850 - ;;
7851
7852 - # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
7853 - freebsd* | kfreebsd*-gnu | dragonfly*)
7854 - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
7855 - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
7856 - _LT_AC_TAGVAR(hardcode_direct, $1)=yes
7857 - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
7858 +# AC_PROG_LD - find the path to the GNU or non-GNU linker
7859 +AC_DEFUN([AC_PROG_LD],
7860 +[AC_ARG_WITH(gnu-ld,
7861 +[ --with-gnu-ld assume the C compiler uses GNU ld [default=no]],
7862 +test "$withval" = no || with_gnu_ld=yes, with_gnu_ld=no)
7863 +AC_REQUIRE([AC_PROG_CC])dnl
7864 +AC_REQUIRE([AC_CANONICAL_HOST])dnl
7865 +AC_REQUIRE([AC_CANONICAL_BUILD])dnl
7866 +AC_REQUIRE([_LT_AC_LIBTOOL_SYS_PATH_SEPARATOR])dnl
7867 +ac_prog=ld
7868 +if test "$GCC" = yes; then
7869 + # Check if gcc -print-prog-name=ld gives a path.
7870 + AC_MSG_CHECKING([for ld used by GCC])
7871 + case $host in
7872 + *-*-mingw*)
7873 + # gcc leaves a trailing carriage return which upsets mingw
7874 + ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
7875 + *)
7876 + ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
7877 + esac
7878 + case $ac_prog in
7879 + # Accept absolute paths.
7880 + [[\\/]]* | [[A-Za-z]]:[[\\/]]*)
7881 + re_direlt='/[[^/]][[^/]]*/\.\./'
7882 + # Canonicalize the path of ld
7883 + ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
7884 + while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
7885 + ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
7886 + done
7887 + test -z "$LD" && LD="$ac_prog"
7888 ;;
7889 -
7890 - hpux9*)
7891 - if test "$GCC" = yes; then
7892 - _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'
7893 + "")
7894 + # If it fails, then pretend we aren't using GCC.
7895 + ac_prog=ld
7896 + ;;
7897 + *)
7898 + # If it is relative, then search for the first ld in PATH.
7899 + with_gnu_ld=unknown
7900 + ;;
7901 + esac
7902 +elif test "$with_gnu_ld" = yes; then
7903 + AC_MSG_CHECKING([for GNU ld])
7904 +else
7905 + AC_MSG_CHECKING([for non-GNU ld])
7906 +fi
7907 +AC_CACHE_VAL(lt_cv_path_LD,
7908 +[if test -z "$LD"; then
7909 + IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7910 + for ac_dir in $PATH; do
7911 + test -z "$ac_dir" && ac_dir=.
7912 + if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
7913 + lt_cv_path_LD="$ac_dir/$ac_prog"
7914 + # Check to see if the program is GNU ld. I'd rather use --version,
7915 + # but apparently some GNU ld's only accept -v.
7916 + # Break only if it was the GNU/non-GNU ld that we prefer.
7917 + if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
7918 + test "$with_gnu_ld" != no && break
7919 else
7920 - _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'
7921 + test "$with_gnu_ld" != yes && break
7922 fi
7923 - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
7924 - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
7925 - _LT_AC_TAGVAR(hardcode_direct, $1)=yes
7926 -
7927 - # hardcode_minus_L: Not really in the search PATH,
7928 - # but as the default location of the library.
7929 - _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
7930 - _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
7931 - ;;
7932 + fi
7933 + done
7934 + IFS="$ac_save_ifs"
7935 +else
7936 + lt_cv_path_LD="$LD" # Let the user override the test with a path.
7937 +fi])
7938 +LD="$lt_cv_path_LD"
7939 +if test -n "$LD"; then
7940 + AC_MSG_RESULT($LD)
7941 +else
7942 + AC_MSG_RESULT(no)
7943 +fi
7944 +test -z "$LD" && AC_MSG_ERROR([no acceptable ld found in \$PATH])
7945 +AC_PROG_LD_GNU
7946 +])
7947
7948 - hpux10* | hpux11*)
7949 - if test "$GCC" = yes -a "$with_gnu_ld" = no; then
7950 - case $host_cpu in
7951 - hppa*64*|ia64*)
7952 - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7953 - ;;
7954 - *)
7955 - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7956 - ;;
7957 - esac
7958 - else
7959 - case $host_cpu in
7960 - hppa*64*|ia64*)
7961 - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
7962 - ;;
7963 - *)
7964 - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
7965 - ;;
7966 - esac
7967 - fi
7968 - if test "$with_gnu_ld" = no; then
7969 - case $host_cpu in
7970 - hppa*64*)
7971 - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
7972 - _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='+b $libdir'
7973 - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
7974 - _LT_AC_TAGVAR(hardcode_direct, $1)=no
7975 - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
7976 - ;;
7977 - ia64*)
7978 - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
7979 - _LT_AC_TAGVAR(hardcode_direct, $1)=no
7980 - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
7981 -
7982 - # hardcode_minus_L: Not really in the search PATH,
7983 - # but as the default location of the library.
7984 - _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
7985 - ;;
7986 - *)
7987 - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
7988 - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
7989 - _LT_AC_TAGVAR(hardcode_direct, $1)=yes
7990 - _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
7991 -
7992 - # hardcode_minus_L: Not really in the search PATH,
7993 - # but as the default location of the library.
7994 - _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
7995 - ;;
7996 - esac
7997 - fi
7998 - ;;
7999 +# AC_PROG_LD_GNU -
8000 +AC_DEFUN([AC_PROG_LD_GNU],
8001 +[AC_CACHE_CHECK([if the linker ($LD) is GNU ld], lt_cv_prog_gnu_ld,
8002 +[# I'd rather use --version here, but apparently some GNU ld's only accept -v.
8003 +if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
8004 + lt_cv_prog_gnu_ld=yes
8005 +else
8006 + lt_cv_prog_gnu_ld=no
8007 +fi])
8008 +with_gnu_ld=$lt_cv_prog_gnu_ld
8009 +])
8010
8011 - irix5* | irix6* | nonstopux*)
8012 - if test "$GCC" = yes; then
8013 - _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'
8014 - else
8015 - _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'
8016 - _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='-rpath $libdir'
8017 - fi
8018 - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
8019 - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
8020 - _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
8021 - ;;
8022 +# AC_PROG_LD_RELOAD_FLAG - find reload flag for linker
8023 +# -- PORTME Some linkers may need a different reload flag.
8024 +AC_DEFUN([AC_PROG_LD_RELOAD_FLAG],
8025 +[AC_CACHE_CHECK([for $LD option to reload object files], lt_cv_ld_reload_flag,
8026 +[lt_cv_ld_reload_flag='-r'])
8027 +reload_flag=$lt_cv_ld_reload_flag
8028 +test -n "$reload_flag" && reload_flag=" $reload_flag"
8029 +])
8030
8031 - netbsd*)
8032 - if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8033 - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
8034 - else
8035 - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
8036 - fi
8037 - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
8038 - _LT_AC_TAGVAR(hardcode_direct, $1)=yes
8039 - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
8040 - ;;
8041 +# AC_DEPLIBS_CHECK_METHOD - how to check for library dependencies
8042 +# -- PORTME fill in with the dynamic library characteristics
8043 +AC_DEFUN([AC_DEPLIBS_CHECK_METHOD],
8044 +[AC_CACHE_CHECK([how to recognise dependent libraries],
8045 +lt_cv_deplibs_check_method,
8046 +[lt_cv_file_magic_cmd='$MAGIC_CMD'
8047 +lt_cv_file_magic_test_file=
8048 +lt_cv_deplibs_check_method='unknown'
8049 +# Need to set the preceding variable on all platforms that support
8050 +# interlibrary dependencies.
8051 +# 'none' -- dependencies not supported.
8052 +# `unknown' -- same as none, but documents that we really don't know.
8053 +# 'pass_all' -- all dependencies passed with no checks.
8054 +# 'test_compile' -- check by making test program.
8055 +# 'file_magic [[regex]]' -- check by looking for files in library path
8056 +# which responds to the $file_magic_cmd with a given egrep regex.
8057 +# If you have `file' or equivalent on your system and you're not sure
8058 +# whether `pass_all' will *always* work, you probably want this one.
8059
8060 - newsos6)
8061 - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8062 - _LT_AC_TAGVAR(hardcode_direct, $1)=yes
8063 - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
8064 - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
8065 - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
8066 - ;;
8067 +case $host_os in
8068 +aix4* | aix5*)
8069 + lt_cv_deplibs_check_method=pass_all
8070 + ;;
8071
8072 - openbsd*)
8073 - _LT_AC_TAGVAR(hardcode_direct, $1)=yes
8074 - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
8075 - if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8076 - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8077 - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8078 - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
8079 - _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
8080 - else
8081 - case $host_os in
8082 - openbsd[[01]].* | openbsd2.[[0-7]] | openbsd2.[[0-7]].*)
8083 - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8084 - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
8085 - ;;
8086 - *)
8087 - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8088 - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
8089 - ;;
8090 - esac
8091 - fi
8092 - ;;
8093 +beos*)
8094 + lt_cv_deplibs_check_method=pass_all
8095 + ;;
8096
8097 - os2*)
8098 - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
8099 - _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
8100 - _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
8101 - _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'
8102 - _LT_AC_TAGVAR(old_archive_From_new_cmds, $1)='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8103 - ;;
8104 +bsdi4*)
8105 + lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (shared object|dynamic lib)'
8106 + lt_cv_file_magic_cmd='/usr/bin/file -L'
8107 + lt_cv_file_magic_test_file=/shlib/libc.so
8108 + ;;
8109
8110 - osf3*)
8111 - if test "$GCC" = yes; then
8112 - _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
8113 - _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'
8114 - else
8115 - _LT_AC_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
8116 - _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'
8117 - fi
8118 - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
8119 - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
8120 - ;;
8121 +cygwin* | mingw* | pw32*)
8122 + lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
8123 + lt_cv_file_magic_cmd='$OBJDUMP -f'
8124 + ;;
8125
8126 - osf4* | osf5*) # as osf3* with the addition of -msym flag
8127 - if test "$GCC" = yes; then
8128 - _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
8129 - _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'
8130 - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
8131 - else
8132 - _LT_AC_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
8133 - _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'
8134 - _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~
8135 - $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'
8136 +darwin* | rhapsody*)
8137 + lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
8138 + lt_cv_file_magic_cmd='/usr/bin/file -L'
8139 + case "$host_os" in
8140 + rhapsody* | darwin1.[[012]])
8141 + lt_cv_file_magic_test_file=`echo /System/Library/Frameworks/System.framework/Versions/*/System | head -1`
8142 + ;;
8143 + *) # Darwin 1.3 on
8144 + lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
8145 + ;;
8146 + esac
8147 + ;;
8148 +
8149 +freebsd*)
8150 + if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
8151 + case $host_cpu in
8152 + i*86 )
8153 + # Not sure whether the presence of OpenBSD here was a mistake.
8154 + # Let's accept both of them until this is cleared up.
8155 + lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[[3-9]]86 (compact )?demand paged shared library'
8156 + lt_cv_file_magic_cmd=/usr/bin/file
8157 + lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
8158 + ;;
8159 + esac
8160 + else
8161 + lt_cv_deplibs_check_method=pass_all
8162 + fi
8163 + ;;
8164
8165 - # Both c and cxx compiler support -rpath directly
8166 - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
8167 - fi
8168 - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
8169 - ;;
8170 +gnu*)
8171 + lt_cv_deplibs_check_method=pass_all
8172 + ;;
8173
8174 - sco3.2v5*)
8175 - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8176 - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
8177 - _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport'
8178 - runpath_var=LD_RUN_PATH
8179 - hardcode_runpath_var=yes
8180 - ;;
8181 +hpux10.20*|hpux11*)
8182 + lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|PA-RISC[[0-9]].[[0-9]]) shared library'
8183 + lt_cv_file_magic_cmd=/usr/bin/file
8184 + lt_cv_file_magic_test_file=/usr/lib/libc.sl
8185 + ;;
8186
8187 - solaris*)
8188 - _LT_AC_TAGVAR(no_undefined_flag, $1)=' -z text'
8189 - if test "$GCC" = yes; then
8190 - wlarc='${wl}'
8191 - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8192 - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8193 - $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
8194 - else
8195 - wlarc=''
8196 - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8197 - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8198 - $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
8199 - fi
8200 - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
8201 - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
8202 - case $host_os in
8203 - solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
8204 - *)
8205 - # The compiler driver will combine linker options so we
8206 - # cannot just pass the convience library names through
8207 - # without $wl, iff we do not link with $LD.
8208 - # Luckily, gcc supports the same syntax we need for Sun Studio.
8209 - # Supported since Solaris 2.6 (maybe 2.5.1?)
8210 - case $wlarc in
8211 - '')
8212 - _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract' ;;
8213 - *)
8214 - _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
8215 - esac ;;
8216 - esac
8217 - _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
8218 - ;;
8219 +irix5* | irix6* | nonstopux*)
8220 + case $LD in
8221 + *-32|*"-32 ") libmagic=32-bit;;
8222 + *-n32|*"-n32 ") libmagic=N32;;
8223 + *-64|*"-64 ") libmagic=64-bit;;
8224 + *) libmagic=never-match;;
8225 + esac
8226 + lt_cv_deplibs_check_method=pass_all
8227 + ;;
8228
8229 - sunos4*)
8230 - if test "x$host_vendor" = xsequent; then
8231 - # Use $CC to link under sequent, because it throws in some extra .o
8232 - # files that make .init and .fini sections work.
8233 - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8234 - else
8235 - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8236 - fi
8237 - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
8238 - _LT_AC_TAGVAR(hardcode_direct, $1)=yes
8239 - _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
8240 - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
8241 - ;;
8242 +# This must be Linux ELF.
8243 +linux-gnu*)
8244 + lt_cv_deplibs_check_method=pass_all
8245 + ;;
8246
8247 - sysv4)
8248 - case $host_vendor in
8249 - sni)
8250 - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8251 - _LT_AC_TAGVAR(hardcode_direct, $1)=yes # is this really true???
8252 - ;;
8253 - siemens)
8254 - ## LD is ld it makes a PLAMLIB
8255 - ## CC just makes a GrossModule.
8256 - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8257 - _LT_AC_TAGVAR(reload_cmds, $1)='$CC -r -o $output$reload_objs'
8258 - _LT_AC_TAGVAR(hardcode_direct, $1)=no
8259 - ;;
8260 - motorola)
8261 - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8262 - _LT_AC_TAGVAR(hardcode_direct, $1)=no #Motorola manual says yes, but my tests say they lie
8263 - ;;
8264 - esac
8265 - runpath_var='LD_RUN_PATH'
8266 - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
8267 - ;;
8268 +netbsd* | knetbsd*-gnu)
8269 + if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
8270 + lt_cv_deplibs_check_method='match_pattern /lib[[^/\.]]+\.so\.[[0-9]]+\.[[0-9]]+$'
8271 + else
8272 + lt_cv_deplibs_check_method='match_pattern /lib[[^/\.]]+\.so$'
8273 + fi
8274 + ;;
8275
8276 - sysv4.3*)
8277 - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8278 - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
8279 - _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='-Bexport'
8280 - ;;
8281 +newos6*)
8282 + lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (executable|dynamic lib)'
8283 + lt_cv_file_magic_cmd=/usr/bin/file
8284 + lt_cv_file_magic_test_file=/usr/lib/libnls.so
8285 + ;;
8286
8287 - sysv4*MP*)
8288 - if test -d /usr/nec; then
8289 - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8290 - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
8291 - runpath_var=LD_RUN_PATH
8292 - hardcode_runpath_var=yes
8293 - _LT_AC_TAGVAR(ld_shlibs, $1)=yes
8294 - fi
8295 - ;;
8296 +openbsd*)
8297 + lt_cv_file_magic_cmd=/usr/bin/file
8298 + lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
8299 + if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8300 + lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB shared object'
8301 + else
8302 + lt_cv_deplibs_check_method='file_magic OpenBSD.* shared library'
8303 + fi
8304 + ;;
8305
8306 - sysv4.2uw2*)
8307 - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8308 - _LT_AC_TAGVAR(hardcode_direct, $1)=yes
8309 - _LT_AC_TAGVAR(hardcode_minus_L, $1)=no
8310 - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
8311 - hardcode_runpath_var=yes
8312 - runpath_var=LD_RUN_PATH
8313 - ;;
8314 +osf3* | osf4* | osf5*)
8315 + lt_cv_deplibs_check_method=pass_all
8316 + ;;
8317
8318 - sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[[78]]* | unixware7*)
8319 - _LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z ${wl}text'
8320 - if test "$GCC" = yes; then
8321 - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8322 - else
8323 - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8324 - fi
8325 - runpath_var='LD_RUN_PATH'
8326 - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
8327 - ;;
8328 +sco3.2v5*)
8329 + lt_cv_deplibs_check_method=pass_all
8330 + ;;
8331
8332 - sysv5*)
8333 - _LT_AC_TAGVAR(no_undefined_flag, $1)=' -z text'
8334 - # $CC -shared without GNU ld will not create a library from C++
8335 - # object files and a static libstdc++, better avoid it by now
8336 - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8337 - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8338 - $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
8339 - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=
8340 - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
8341 - runpath_var='LD_RUN_PATH'
8342 - ;;
8343 +solaris*)
8344 + lt_cv_deplibs_check_method=pass_all
8345 + ;;
8346
8347 - uts4*)
8348 - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8349 - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
8350 - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
8351 - ;;
8352 +sysv5uw[[78]]* | sysv4*uw2*)
8353 + lt_cv_deplibs_check_method=pass_all
8354 + ;;
8355
8356 - *)
8357 - _LT_AC_TAGVAR(ld_shlibs, $1)=no
8358 - ;;
8359 - esac
8360 - fi
8361 +sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
8362 + case $host_vendor in
8363 + motorola)
8364 + lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (shared object|dynamic lib) M[[0-9]][[0-9]]* Version [[0-9]]'
8365 + lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
8366 + ;;
8367 + ncr)
8368 + lt_cv_deplibs_check_method=pass_all
8369 + ;;
8370 + sequent)
8371 + lt_cv_file_magic_cmd='/bin/file'
8372 + lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB (shared object|dynamic lib )'
8373 + ;;
8374 + sni)
8375 + lt_cv_file_magic_cmd='/bin/file'
8376 + lt_cv_deplibs_check_method="file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB dynamic lib"
8377 + lt_cv_file_magic_test_file=/lib/libc.so
8378 + ;;
8379 + siemens)
8380 + lt_cv_deplibs_check_method=pass_all
8381 + ;;
8382 + esac
8383 + ;;
8384 +esac
8385 +])
8386 +file_magic_cmd=$lt_cv_file_magic_cmd
8387 +deplibs_check_method=$lt_cv_deplibs_check_method
8388 ])
8389 -AC_MSG_RESULT([$_LT_AC_TAGVAR(ld_shlibs, $1)])
8390 -test "$_LT_AC_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no
8391
8392 -variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
8393 -if test "$GCC" = yes; then
8394 - variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
8395 -fi
8396
8397 -#
8398 -# Do we need to explicitly link libc?
8399 -#
8400 -case "x$_LT_AC_TAGVAR(archive_cmds_need_lc, $1)" in
8401 -x|xyes)
8402 - # Assume -lc should be added
8403 - _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes
8404 -
8405 - if test "$enable_shared" = yes && test "$GCC" = yes; then
8406 - case $_LT_AC_TAGVAR(archive_cmds, $1) in
8407 - *'~'*)
8408 - # FIXME: we may have to deal with multi-command sequences.
8409 - ;;
8410 - '$CC '*)
8411 - # Test whether the compiler implicitly links with -lc since on some
8412 - # systems, -lgcc has to come before -lc. If gcc already passes -lc
8413 - # to ld, don't add -lc before -lgcc.
8414 - AC_MSG_CHECKING([whether -lc should be explicitly linked in])
8415 - $rm conftest*
8416 - printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8417 -
8418 - if AC_TRY_EVAL(ac_compile) 2>conftest.err; then
8419 - soname=conftest
8420 - lib=conftest
8421 - libobjs=conftest.$ac_objext
8422 - deplibs=
8423 - wl=$_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)
8424 - compiler_flags=-v
8425 - linker_flags=-v
8426 - verstring=
8427 - output_objdir=.
8428 - libname=conftest
8429 - lt_save_allow_undefined_flag=$_LT_AC_TAGVAR(allow_undefined_flag, $1)
8430 - _LT_AC_TAGVAR(allow_undefined_flag, $1)=
8431 - if AC_TRY_EVAL(_LT_AC_TAGVAR(archive_cmds, $1) 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1)
8432 - then
8433 - _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
8434 - else
8435 - _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes
8436 - fi
8437 - _LT_AC_TAGVAR(allow_undefined_flag, $1)=$lt_save_allow_undefined_flag
8438 +# AC_PROG_NM - find the path to a BSD-compatible name lister
8439 +AC_DEFUN([AC_PROG_NM],
8440 +[AC_REQUIRE([_LT_AC_LIBTOOL_SYS_PATH_SEPARATOR])dnl
8441 +AC_MSG_CHECKING([for BSD-compatible nm])
8442 +AC_CACHE_VAL(lt_cv_path_NM,
8443 +[if test -n "$NM"; then
8444 + # Let the user override the test.
8445 + lt_cv_path_NM="$NM"
8446 +else
8447 + IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8448 + for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
8449 + test -z "$ac_dir" && ac_dir=.
8450 + tmp_nm=$ac_dir/${ac_tool_prefix}nm
8451 + if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then
8452 + # Check to see if the nm accepts a BSD-compat flag.
8453 + # Adding the `sed 1q' prevents false positives on HP-UX, which says:
8454 + # nm: unknown option "B" ignored
8455 + # Tru64's nm complains that /dev/null is an invalid object file
8456 + if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then
8457 + lt_cv_path_NM="$tmp_nm -B"
8458 + break
8459 + elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
8460 + lt_cv_path_NM="$tmp_nm -p"
8461 + break
8462 else
8463 - cat conftest.err 1>&5
8464 + lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
8465 + continue # so that we can try to find one that supports BSD flags
8466 fi
8467 - $rm conftest*
8468 - AC_MSG_RESULT([$_LT_AC_TAGVAR(archive_cmds_need_lc, $1)])
8469 - ;;
8470 - esac
8471 - fi
8472 + fi
8473 + done
8474 + IFS="$ac_save_ifs"
8475 + test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
8476 +fi])
8477 +NM="$lt_cv_path_NM"
8478 +AC_MSG_RESULT([$NM])
8479 +])
8480 +
8481 +# AC_CHECK_LIBM - check for math library
8482 +AC_DEFUN([AC_CHECK_LIBM],
8483 +[AC_REQUIRE([AC_CANONICAL_HOST])dnl
8484 +LIBM=
8485 +case $host in
8486 +*-*-beos* | *-*-cygwin* | *-*-pw32*)
8487 + # These system don't have libm
8488 + ;;
8489 +*-ncr-sysv4.3*)
8490 + AC_CHECK_LIB(mw, _mwvalidcheckl, LIBM="-lmw")
8491 + AC_CHECK_LIB(m, main, LIBM="$LIBM -lm")
8492 + ;;
8493 +*)
8494 + AC_CHECK_LIB(m, main, LIBM="-lm")
8495 ;;
8496 esac
8497 -])# AC_LIBTOOL_PROG_LD_SHLIBS
8498 -
8499 -
8500 -# _LT_AC_FILE_LTDLL_C
8501 -# -------------------
8502 -# Be careful that the start marker always follows a newline.
8503 -AC_DEFUN([_LT_AC_FILE_LTDLL_C], [
8504 -# /* ltdll.c starts here */
8505 -# #define WIN32_LEAN_AND_MEAN
8506 -# #include <windows.h>
8507 -# #undef WIN32_LEAN_AND_MEAN
8508 -# #include <stdio.h>
8509 -#
8510 -# #ifndef __CYGWIN__
8511 -# # ifdef __CYGWIN32__
8512 -# # define __CYGWIN__ __CYGWIN32__
8513 -# # endif
8514 -# #endif
8515 -#
8516 -# #ifdef __cplusplus
8517 -# extern "C" {
8518 -# #endif
8519 -# BOOL APIENTRY DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved);
8520 -# #ifdef __cplusplus
8521 -# }
8522 -# #endif
8523 -#
8524 -# #ifdef __CYGWIN__
8525 -# #include <cygwin/cygwin_dll.h>
8526 -# DECLARE_CYGWIN_DLL( DllMain );
8527 -# #endif
8528 -# HINSTANCE __hDllInstance_base;
8529 -#
8530 -# BOOL APIENTRY
8531 -# DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved)
8532 -# {
8533 -# __hDllInstance_base = hInst;
8534 -# return TRUE;
8535 -# }
8536 -# /* ltdll.c ends here */
8537 -])# _LT_AC_FILE_LTDLL_C
8538 -
8539 +])
8540
8541 -# _LT_AC_TAGVAR(VARNAME, [TAGNAME])
8542 -# ---------------------------------
8543 -AC_DEFUN([_LT_AC_TAGVAR], [ifelse([$2], [], [$1], [$1_$2])])
8544 +# AC_LIBLTDL_CONVENIENCE[(dir)] - sets LIBLTDL to the link flags for
8545 +# the libltdl convenience library and LTDLINCL to the include flags for
8546 +# the libltdl header and adds --enable-ltdl-convenience to the
8547 +# configure arguments. Note that LIBLTDL and LTDLINCL are not
8548 +# AC_SUBSTed, nor is AC_CONFIG_SUBDIRS called. If DIR is not
8549 +# provided, it is assumed to be `libltdl'. LIBLTDL will be prefixed
8550 +# with '${top_builddir}/' and LTDLINCL will be prefixed with
8551 +# '${top_srcdir}/' (note the single quotes!). If your package is not
8552 +# flat and you're not using automake, define top_builddir and
8553 +# top_srcdir appropriately in the Makefiles.
8554 +AC_DEFUN([AC_LIBLTDL_CONVENIENCE],
8555 +[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
8556 + case $enable_ltdl_convenience in
8557 + no) AC_MSG_ERROR([this package needs a convenience libltdl]) ;;
8558 + "") enable_ltdl_convenience=yes
8559 + ac_configure_args="$ac_configure_args --enable-ltdl-convenience" ;;
8560 + esac
8561 + LIBLTDL='${top_builddir}/'ifelse($#,1,[$1],['libltdl'])/libltdlc.la
8562 + LTDLINCL='-I${top_srcdir}/'ifelse($#,1,[$1],['libltdl'])
8563 + # For backwards non-gettext consistent compatibility...
8564 + INCLTDL="$LTDLINCL"
8565 +])
8566
8567 +# AC_LIBLTDL_INSTALLABLE[(dir)] - sets LIBLTDL to the link flags for
8568 +# the libltdl installable library and LTDLINCL to the include flags for
8569 +# the libltdl header and adds --enable-ltdl-install to the configure
8570 +# arguments. Note that LIBLTDL and LTDLINCL are not AC_SUBSTed, nor is
8571 +# AC_CONFIG_SUBDIRS called. If DIR is not provided and an installed
8572 +# libltdl is not found, it is assumed to be `libltdl'. LIBLTDL will
8573 +# be prefixed with '${top_builddir}/' and LTDLINCL will be prefixed
8574 +# with '${top_srcdir}/' (note the single quotes!). If your package is
8575 +# not flat and you're not using automake, define top_builddir and
8576 +# top_srcdir appropriately in the Makefiles.
8577 +# In the future, this macro may have to be called after AC_PROG_LIBTOOL.
8578 +AC_DEFUN([AC_LIBLTDL_INSTALLABLE],
8579 +[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
8580 + AC_CHECK_LIB(ltdl, main,
8581 + [test x"$enable_ltdl_install" != xyes && enable_ltdl_install=no],
8582 + [if test x"$enable_ltdl_install" = xno; then
8583 + AC_MSG_WARN([libltdl not installed, but installation disabled])
8584 + else
8585 + enable_ltdl_install=yes
8586 + fi
8587 + ])
8588 + if test x"$enable_ltdl_install" = x"yes"; then
8589 + ac_configure_args="$ac_configure_args --enable-ltdl-install"
8590 + LIBLTDL='${top_builddir}/'ifelse($#,1,[$1],['libltdl'])/libltdl.la
8591 + LTDLINCL='-I${top_srcdir}/'ifelse($#,1,[$1],['libltdl'])
8592 + else
8593 + ac_configure_args="$ac_configure_args --enable-ltdl-install=no"
8594 + LIBLTDL="-lltdl"
8595 + LTDLINCL=
8596 + fi
8597 + # For backwards non-gettext consistent compatibility...
8598 + INCLTDL="$LTDLINCL"
8599 +])
8600
8601 # old names
8602 AC_DEFUN([AM_PROG_LIBTOOL], [AC_PROG_LIBTOOL])
8603 @@ -6964,16 +4410,6 @@
8604 # This is just to silence aclocal about the macro not being used
8605 ifelse([AC_DISABLE_FAST_INSTALL])
8606
8607 -AC_DEFUN([LT_AC_PROG_GCJ],
8608 -[AC_CHECK_TOOL(GCJ, gcj, no)
8609 - test "x${GCJFLAGS+set}" = xset || GCJFLAGS="-g -O2"
8610 - AC_SUBST(GCJFLAGS)
8611 -])
8612 -
8613 -AC_DEFUN([LT_AC_PROG_RC],
8614 -[AC_CHECK_TOOL(RC, windres, no)
8615 -])
8616 -
8617 # NOTE: This macro has been submitted for inclusion into #
8618 # GNU Autoconf as AC_PROG_SED. When it is available in #
8619 # a released version of Autoconf we should remove this #
8620 @@ -6987,51 +4423,79 @@
8621 AC_CACHE_VAL(lt_cv_path_SED,
8622 [# Loop through the user's path and test for sed and gsed.
8623 # Then use that list of sed's as ones to test for truncation.
8624 +as_executable_p="test -f"
8625 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8626 for as_dir in $PATH
8627 do
8628 IFS=$as_save_IFS
8629 test -z "$as_dir" && as_dir=.
8630 - for lt_ac_prog in sed gsed; do
8631 + for ac_prog in sed gsed; do
8632 for ac_exec_ext in '' $ac_executable_extensions; do
8633 - if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
8634 - lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
8635 + if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
8636 + _sed_list="$_sed_list $as_dir/$ac_prog$ac_exec_ext"
8637 fi
8638 done
8639 done
8640 done
8641 -lt_ac_max=0
8642 -lt_ac_count=0
8643 -# Add /usr/xpg4/bin/sed as it is typically found on Solaris
8644 -# along with /bin/sed that truncates output.
8645 -for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
8646 - test ! -f $lt_ac_sed && continue
8647 - cat /dev/null > conftest.in
8648 - lt_ac_count=0
8649 - echo $ECHO_N "0123456789$ECHO_C" >conftest.in
8650 - # Check for GNU sed and select it if it is found.
8651 - if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
8652 - lt_cv_path_SED=$lt_ac_sed
8653 - break
8654 - fi
8655 - while true; do
8656 - cat conftest.in conftest.in >conftest.tmp
8657 - mv conftest.tmp conftest.in
8658 - cp conftest.in conftest.nl
8659 - echo >>conftest.nl
8660 - $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
8661 - cmp -s conftest.out conftest.nl || break
8662 - # 10000 chars as input seems more than enough
8663 - test $lt_ac_count -gt 10 && break
8664 - lt_ac_count=`expr $lt_ac_count + 1`
8665 - if test $lt_ac_count -gt $lt_ac_max; then
8666 - lt_ac_max=$lt_ac_count
8667 - lt_cv_path_SED=$lt_ac_sed
8668 +
8669 + # Create a temporary directory, and hook for its removal unless debugging.
8670 +$debug ||
8671 +{
8672 + trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
8673 + trap '{ (exit 1); exit 1; }' 1 2 13 15
8674 +}
8675 +
8676 +# Create a (secure) tmp directory for tmp files.
8677 +: ${TMPDIR=/tmp}
8678 +{
8679 + tmp=`(umask 077 && mktemp -d -q "$TMPDIR/sedXXXXXX") 2>/dev/null` &&
8680 + test -n "$tmp" && test -d "$tmp"
8681 +} ||
8682 +{
8683 + tmp=$TMPDIR/sed$$-$RANDOM
8684 + (umask 077 && mkdir $tmp)
8685 +} ||
8686 +{
8687 + echo "$me: cannot create a temporary directory in $TMPDIR" >&2
8688 + { (exit 1); exit 1; }
8689 +}
8690 + _max=0
8691 + _count=0
8692 + # Add /usr/xpg4/bin/sed as it is typically found on Solaris
8693 + # along with /bin/sed that truncates output.
8694 + for _sed in $_sed_list /usr/xpg4/bin/sed; do
8695 + test ! -f ${_sed} && break
8696 + cat /dev/null > "$tmp/sed.in"
8697 + _count=0
8698 + echo ${ECHO_N-$ac_n} "0123456789${ECHO_C-$ac_c}" >"$tmp/sed.in"
8699 + # Check for GNU sed and select it if it is found.
8700 + if "${_sed}" --version 2>&1 < /dev/null | egrep '(GNU)' > /dev/null; then
8701 + lt_cv_path_SED=${_sed}
8702 + break
8703 fi
8704 + while true; do
8705 + cat "$tmp/sed.in" "$tmp/sed.in" >"$tmp/sed.tmp"
8706 + mv "$tmp/sed.tmp" "$tmp/sed.in"
8707 + cp "$tmp/sed.in" "$tmp/sed.nl"
8708 + echo >>"$tmp/sed.nl"
8709 + ${_sed} -e 's/a$//' < "$tmp/sed.nl" >"$tmp/sed.out" || break
8710 + cmp -s "$tmp/sed.out" "$tmp/sed.nl" || break
8711 + # 40000 chars as input seems more than enough
8712 + test $_count -gt 10 && break
8713 + _count=`expr $_count + 1`
8714 + if test $_count -gt $_max; then
8715 + _max=$_count
8716 + lt_cv_path_SED=$_sed
8717 + fi
8718 + done
8719 done
8720 -done
8721 + rm -rf "$tmp"
8722 ])
8723 -SED=$lt_cv_path_SED
8724 +if test "X$SED" != "X"; then
8725 + lt_cv_path_SED=$SED
8726 +else
8727 + SED=$lt_cv_path_SED
8728 +fi
8729 AC_MSG_RESULT([$SED])
8730 ])
8731
8732 @@ -7898,7 +5362,11 @@
8733 AC_HELP_STRING([--with-curl-config=curl-config],[Use curl-config to find libcurl]),
8734 CURL_CONFIG="$withval", [AC_PATH_PROGS(CURL_CONFIG, [curl-config], "")])
8735
8736 -if test "x$curl_prefix" != "x" -a "x$curl_prefix" != "xyes"; then
8737 +curl_ok="yes"
8738 +
8739 +if test "x$curl_prefix" == "xno"; then
8740 + curl_ok="no"
8741 +elif test "x$curl_prefix" != "x" -a "x$curl_prefix" != "xyes"; then
8742 CURL_LIBS="-L$curl_prefix/lib -lcurl"
8743 CURL_CFLAGS="-I$curl_prefix/include"
8744 elif test "x$CURL_CONFIG" != "x"; then
8745 @@ -7917,8 +5385,8 @@
8746 CURL_CFLAGS="-I$curl_prefix/include"
8747 fi
8748
8749 -curl_ok="yes"
8750 -
8751 +if test "$curl_ok" = "yes"
8752 +then
8753 xt_curl_CPPFLAGS="$CPPFLAGS"
8754 xt_curl_LIBS="$LIBS"
8755 CPPFLAGS="$CPPFLAGS $CURL_CFLAGS"
8756 @@ -7928,16 +5396,13 @@
8757 dnl
8758 AC_CHECK_HEADERS([curl/curl.h],, curl_ok="no")
8759 AC_MSG_CHECKING(for libcurl)
8760 -if test "$curl_ok" = "yes"
8761 -then
8762 - AC_RUN_IFELSE(AC_LANG_SOURCE([
8763 +AC_LINK_IFELSE(AC_LANG_SOURCE([
8764 #include <curl/curl.h>
8765 int main()
8766 {
8767 return 0;
8768 }
8769 ]),,[curl_ok="no"])
8770 -fi
8771 if test "$curl_ok" = "yes"; then
8772 AC_MSG_RESULT(yes)
8773 AC_DEFINE(HAVE_CURL, 1, [Define if you have libcurl.])
8774 @@ -7950,5 +5415,6 @@
8775 fi
8776 CPPFLAGS="$xt_curl_CPPFLAGS"
8777 LIBS="$xt_curl_LIBS"
8778 +fi
8779 ])
8780
8781 diff -ruN icecast-2.3.0-old/configure icecast-2.3.0-new/configure
8782 --- icecast-2.3.0-old/configure 2005-09-23 23:18:46.000000000 +0200
8783 +++ icecast-2.3.0-new/configure 2005-10-02 13:05:14.000000000 +0200
8784 @@ -243,6 +243,17 @@
8785 $as_unset CDPATH
8786
8787
8788 +# Find the correct PATH separator. Usually this is `:', but
8789 +# DJGPP uses `;' like DOS.
8790 +if test "X${PATH_SEPARATOR+set}" != Xset; then
8791 + UNAME=${UNAME-`uname 2>/dev/null`}
8792 + case X$UNAME in
8793 + *-DOS) lt_cv_sys_path_separator=';' ;;
8794 + *) lt_cv_sys_path_separator=':' ;;
8795 + esac
8796 + PATH_SEPARATOR=$lt_cv_sys_path_separator
8797 +fi
8798 +
8799
8800 # Check that we are running under the correct shell.
8801 SHELL=${CONFIG_SHELL-/bin/sh}
8802 @@ -261,7 +272,7 @@
8803 elif test "X$1" = X--fallback-echo; then
8804 # Avoid inline document here, it may be left over
8805 :
8806 -elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
8807 +elif test "X`($echo '\t') 2>/dev/null`" = 'X\t'; then
8808 # Yippee, $echo works!
8809 :
8810 else
8811 @@ -273,22 +284,22 @@
8812 # used as fallback echo
8813 shift
8814 cat <<EOF
8815 -$*
8816 +
8817 EOF
8818 exit 0
8819 fi
8820
8821 # The HP-UX ksh and POSIX shell print the target directory to stdout
8822 # if CDPATH is set.
8823 -(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
8824 +if test "X${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
8825
8826 if test -z "$ECHO"; then
8827 if test "X${echo_test_string+set}" != Xset; then
8828 # find a string as large as possible, as long as the shell can cope with it
8829 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
8830 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
8831 - if (echo_test_string=`eval $cmd`) 2>/dev/null &&
8832 - echo_test_string=`eval $cmd` &&
8833 + if (echo_test_string="`eval $cmd`") 2>/dev/null &&
8834 + echo_test_string="`eval $cmd`" &&
8835 (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
8836 then
8837 break
8838 @@ -307,9 +318,8 @@
8839 #
8840 # So, first we look for a working echo in the user's PATH.
8841
8842 - lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8843 + IFS="${IFS= }"; save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8844 for dir in $PATH /usr/ucb; do
8845 - IFS="$lt_save_ifs"
8846 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
8847 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
8848 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
8849 @@ -318,7 +328,7 @@
8850 break
8851 fi
8852 done
8853 - IFS="$lt_save_ifs"
8854 + IFS="$save_ifs"
8855
8856 if test "X$echo" = Xecho; then
8857 # We didn't find a better echo, so look for alternatives.
8858 @@ -392,11 +402,6 @@
8859
8860
8861
8862 -
8863 -tagnames=${tagnames+${tagnames},}CXX
8864 -
8865 -tagnames=${tagnames+${tagnames},}F77
8866 -
8867 # Name of the host.
8868 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
8869 # so uname gets run too.
8870 @@ -465,7 +470,7 @@
8871 # include <unistd.h>
8872 #endif"
8873
8874 -ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO AMTAR install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM AWK SET_MAKE MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE build build_cpu build_vendor build_os host host_cpu host_vendor host_os EGREP LN_S ECHO AR ac_ct_AR RANLIB ac_ct_RANLIB CPP CXX CXXFLAGS ac_ct_CXX CXXDEPMODE CXXCPP F77 FFLAGS ac_ct_F77 LIBTOOL XSLTCONFIG FGREP OGG_PREFIX OGG_LIBS OGG_CFLAGS OGG_LDFLAGS VORBIS_PREFIX VORBIS_CFLAGS VORBIS_LDFLAGS VORBIS_LIBS VORBISFILE_LIBS VORBISENC_LIBS THEORA THEORA_CFLAGS THEORA_LDFLAGS THEORA_LIBS SPEEX SPEEX_CFLAGS SPEEX_LDFLAGS SPEEX_LIBS acx_pthread_config PTHREAD_CC PTHREAD_LIBS PTHREAD_CFLAGS PTHREAD_CPPFLAGS CURL_CONFIG XIPH_CPPFLAGS XIPH_CFLAGS XIPH_LIBS XIPH_LDFLAGS LIBTOOL_DEPS DEBUG PROFILE ICECAST_OPTIONAL LIBOBJS LTLIBOBJS'
8875 +ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO AMTAR install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM AWK SET_MAKE MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE build build_cpu build_vendor build_os host host_cpu host_vendor host_os LN_S ECHO RANLIB ac_ct_RANLIB CPP EGREP LIBTOOL XSLTCONFIG FGREP OGG_PREFIX OGG_LIBS OGG_CFLAGS OGG_LDFLAGS VORBIS_PREFIX VORBIS_CFLAGS VORBIS_LDFLAGS VORBIS_LIBS VORBISFILE_LIBS VORBISENC_LIBS THEORA THEORA_CFLAGS THEORA_LDFLAGS THEORA_LIBS SPEEX SPEEX_CFLAGS SPEEX_LDFLAGS SPEEX_LIBS acx_pthread_config PTHREAD_CC PTHREAD_LIBS PTHREAD_CFLAGS PTHREAD_CPPFLAGS CURL_CONFIG XIPH_CPPFLAGS XIPH_CFLAGS XIPH_LIBS XIPH_LDFLAGS LIBTOOL_DEPS DEBUG PROFILE ICECAST_OPTIONAL LIBOBJS LTLIBOBJS'
8876 ac_subst_files=''
8877
8878 # Initialize some variables set by options.
8879 @@ -926,26 +931,6 @@
8880 ac_env_CPP_value=$CPP
8881 ac_cv_env_CPP_set=${CPP+set}
8882 ac_cv_env_CPP_value=$CPP
8883 -ac_env_CXX_set=${CXX+set}
8884 -ac_env_CXX_value=$CXX
8885 -ac_cv_env_CXX_set=${CXX+set}
8886 -ac_cv_env_CXX_value=$CXX
8887 -ac_env_CXXFLAGS_set=${CXXFLAGS+set}
8888 -ac_env_CXXFLAGS_value=$CXXFLAGS
8889 -ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
8890 -ac_cv_env_CXXFLAGS_value=$CXXFLAGS
8891 -ac_env_CXXCPP_set=${CXXCPP+set}
8892 -ac_env_CXXCPP_value=$CXXCPP
8893 -ac_cv_env_CXXCPP_set=${CXXCPP+set}
8894 -ac_cv_env_CXXCPP_value=$CXXCPP
8895 -ac_env_F77_set=${F77+set}
8896 -ac_env_F77_value=$F77
8897 -ac_cv_env_F77_set=${F77+set}
8898 -ac_cv_env_F77_value=$F77
8899 -ac_env_FFLAGS_set=${FFLAGS+set}
8900 -ac_env_FFLAGS_value=$FFLAGS
8901 -ac_cv_env_FFLAGS_set=${FFLAGS+set}
8902 -ac_cv_env_FFLAGS_value=$FFLAGS
8903 ac_env_XSLTCONFIG_set=${XSLTCONFIG+set}
8904 ac_env_XSLTCONFIG_value=$XSLTCONFIG
8905 ac_cv_env_XSLTCONFIG_set=${XSLTCONFIG+set}
8906 @@ -1051,23 +1036,17 @@
8907 (and sometimes confusing) to the casual installer
8908 --disable-dependency-tracking Speeds up one-time builds
8909 --enable-dependency-tracking Do not reject slow dependency extractors
8910 - --enable-shared[=PKGS]
8911 - build shared libraries [default=yes]
8912 - --enable-static[=PKGS]
8913 - build static libraries [default=yes]
8914 - --enable-fast-install[=PKGS]
8915 - optimize for fast installation [default=yes]
8916 + --enable-shared=PKGS build shared libraries default=yes
8917 + --enable-static=PKGS build static libraries default=yes
8918 + --enable-fast-install=PKGS optimize for fast installation default=yes
8919 --disable-libtool-lock avoid locking (might break parallel builds)
8920 --disable-yp disable YP directory support
8921
8922 Optional Packages:
8923 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
8924 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
8925 - --with-gnu-ld assume the C compiler uses GNU ld [default=no]
8926 - --with-pic try to use only PIC/non-PIC objects [default=use
8927 - both]
8928 - --with-tags[=TAGS]
8929 - include additional configurations [automatic]
8930 + --with-gnu-ld assume the C compiler uses GNU ld default=no
8931 + --with-pic try to use only PIC/non-PIC objects default=use both
8932 --with-xslt-config=PATH use xslt-config in PATH to find libxslt
8933 --with-ogg=PREFIX Prefix where libogg is installed (optional)
8934 --with-vorbis=PREFIX Prefix where libvorbis is installed (optional)
8935 @@ -1085,11 +1064,6 @@
8936 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
8937 headers in a nonstandard directory <include dir>
8938 CPP C preprocessor
8939 - CXX C++ compiler command
8940 - CXXFLAGS C++ compiler flags
8941 - CXXCPP C++ preprocessor
8942 - F77 Fortran 77 compiler command
8943 - FFLAGS Fortran 77 compiler flags
8944 XSLTCONFIG XSLT configuration program
8945 OGG_PREFIX path to ogg installation
8946 VORBIS_PREFIX
8947 @@ -1189,7 +1163,7 @@
8948 else
8949 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
8950 fi
8951 - cd $ac_popdir
8952 + cd "$ac_popdir"
8953 done
8954 fi
8955
8956 @@ -2531,8 +2505,7 @@
8957 cat conftest.err >&5
8958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8959 (exit $ac_status); } &&
8960 - { ac_try='test -z "$ac_c_werror_flag"
8961 - || test ! -s conftest.err'
8962 + { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8963 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8964 (eval $ac_try) 2>&5
8965 ac_status=$?
8966 @@ -2590,8 +2563,7 @@
8967 cat conftest.err >&5
8968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8969 (exit $ac_status); } &&
8970 - { ac_try='test -z "$ac_c_werror_flag"
8971 - || test ! -s conftest.err'
8972 + { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8973 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8974 (eval $ac_try) 2>&5
8975 ac_status=$?
8976 @@ -2707,8 +2679,7 @@
8977 cat conftest.err >&5
8978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8979 (exit $ac_status); } &&
8980 - { ac_try='test -z "$ac_c_werror_flag"
8981 - || test ! -s conftest.err'
8982 + { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8983 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8984 (eval $ac_try) 2>&5
8985 ac_status=$?
8986 @@ -2762,8 +2733,7 @@
8987 cat conftest.err >&5
8988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8989 (exit $ac_status); } &&
8990 - { ac_try='test -z "$ac_c_werror_flag"
8991 - || test ! -s conftest.err'
8992 + { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8993 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8994 (eval $ac_try) 2>&5
8995 ac_status=$?
8996 @@ -2808,8 +2778,7 @@
8997 cat conftest.err >&5
8998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8999 (exit $ac_status); } &&
9000 - { ac_try='test -z "$ac_c_werror_flag"
9001 - || test ! -s conftest.err'
9002 + { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9003 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9004 (eval $ac_try) 2>&5
9005 ac_status=$?
9006 @@ -2853,8 +2822,7 @@
9007 cat conftest.err >&5
9008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9009 (exit $ac_status); } &&
9010 - { ac_try='test -z "$ac_c_werror_flag"
9011 - || test ! -s conftest.err'
9012 + { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9013 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9014 (eval $ac_try) 2>&5
9015 ac_status=$?
9016 @@ -3093,145 +3061,78 @@
9017 if test "${enable_shared+set}" = set; then
9018 enableval="$enable_shared"
9019 p=${PACKAGE-default}
9020 - case $enableval in
9021 - yes) enable_shared=yes ;;
9022 - no) enable_shared=no ;;
9023 - *)
9024 - enable_shared=no
9025 - # Look at the argument we got. We use all the common list separators.
9026 - lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9027 - for pkg in $enableval; do
9028 - IFS="$lt_save_ifs"
9029 - if test "X$pkg" = "X$p"; then
9030 - enable_shared=yes
9031 - fi
9032 - done
9033 - IFS="$lt_save_ifs"
9034 - ;;
9035 - esac
9036 +case $enableval in
9037 +yes) enable_shared=yes ;;
9038 +no) enable_shared=no ;;
9039 +*)
9040 + enable_shared=no
9041 + # Look at the argument we got. We use all the common list separators.
9042 + IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
9043 + for pkg in $enableval; do
9044 + if test "X$pkg" = "X$p"; then
9045 + enable_shared=yes
9046 + fi
9047 + done
9048 + IFS="$ac_save_ifs"
9049 + ;;
9050 +esac
9051 else
9052 enable_shared=yes
9053 fi;
9054 -
9055 # Check whether --enable-static or --disable-static was given.
9056 if test "${enable_static+set}" = set; then
9057 enableval="$enable_static"
9058 p=${PACKAGE-default}
9059 - case $enableval in
9060 - yes) enable_static=yes ;;
9061 - no) enable_static=no ;;
9062 - *)
9063 - enable_static=no
9064 - # Look at the argument we got. We use all the common list separators.
9065 - lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9066 - for pkg in $enableval; do
9067 - IFS="$lt_save_ifs"
9068 - if test "X$pkg" = "X$p"; then
9069 - enable_static=yes
9070 - fi
9071 - done
9072 - IFS="$lt_save_ifs"
9073 - ;;
9074 - esac
9075 +case $enableval in
9076 +yes) enable_static=yes ;;
9077 +no) enable_static=no ;;
9078 +*)
9079 + enable_static=no
9080 + # Look at the argument we got. We use all the common list separators.
9081 + IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
9082 + for pkg in $enableval; do
9083 + if test "X$pkg" = "X$p"; then
9084 + enable_static=yes
9085 + fi
9086 + done
9087 + IFS="$ac_save_ifs"
9088 + ;;
9089 +esac
9090 else
9091 enable_static=yes
9092 fi;
9093 -
9094 # Check whether --enable-fast-install or --disable-fast-install was given.
9095 if test "${enable_fast_install+set}" = set; then
9096 enableval="$enable_fast_install"
9097 p=${PACKAGE-default}
9098 - case $enableval in
9099 - yes) enable_fast_install=yes ;;
9100 - no) enable_fast_install=no ;;
9101 - *)
9102 - enable_fast_install=no
9103 - # Look at the argument we got. We use all the common list separators.
9104 - lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9105 - for pkg in $enableval; do
9106 - IFS="$lt_save_ifs"
9107 - if test "X$pkg" = "X$p"; then
9108 - enable_fast_install=yes
9109 - fi
9110 - done
9111 - IFS="$lt_save_ifs"
9112 - ;;
9113 - esac
9114 -else
9115 - enable_fast_install=yes
9116 -fi;
9117 -
9118 -echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
9119 -echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
9120 -if test "${lt_cv_path_SED+set}" = set; then
9121 - echo $ECHO_N "(cached) $ECHO_C" >&6
9122 -else
9123 - # Loop through the user's path and test for sed and gsed.
9124 -# Then use that list of sed's as ones to test for truncation.
9125 -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9126 -for as_dir in $PATH
9127 -do
9128 - IFS=$as_save_IFS
9129 - test -z "$as_dir" && as_dir=.
9130 - for lt_ac_prog in sed gsed; do
9131 - for ac_exec_ext in '' $ac_executable_extensions; do
9132 - if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
9133 - lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
9134 - fi
9135 - done
9136 - done
9137 -done
9138 -lt_ac_max=0
9139 -lt_ac_count=0
9140 -# Add /usr/xpg4/bin/sed as it is typically found on Solaris
9141 -# along with /bin/sed that truncates output.
9142 -for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
9143 - test ! -f $lt_ac_sed && continue
9144 - cat /dev/null > conftest.in
9145 - lt_ac_count=0
9146 - echo $ECHO_N "0123456789$ECHO_C" >conftest.in
9147 - # Check for GNU sed and select it if it is found.
9148 - if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
9149 - lt_cv_path_SED=$lt_ac_sed
9150 - break
9151 - fi
9152 - while true; do
9153 - cat conftest.in conftest.in >conftest.tmp
9154 - mv conftest.tmp conftest.in
9155 - cp conftest.in conftest.nl
9156 - echo >>conftest.nl
9157 - $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
9158 - cmp -s conftest.out conftest.nl || break
9159 - # 10000 chars as input seems more than enough
9160 - test $lt_ac_count -gt 10 && break
9161 - lt_ac_count=`expr $lt_ac_count + 1`
9162 - if test $lt_ac_count -gt $lt_ac_max; then
9163 - lt_ac_max=$lt_ac_count
9164 - lt_cv_path_SED=$lt_ac_sed
9165 +case $enableval in
9166 +yes) enable_fast_install=yes ;;
9167 +no) enable_fast_install=no ;;
9168 +*)
9169 + enable_fast_install=no
9170 + # Look at the argument we got. We use all the common list separators.
9171 + IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
9172 + for pkg in $enableval; do
9173 + if test "X$pkg" = "X$p"; then
9174 + enable_fast_install=yes
9175 fi
9176 done
9177 -done
9178 -
9179 -fi
9180 -
9181 -SED=$lt_cv_path_SED
9182 -echo "$as_me:$LINENO: result: $SED" >&5
9183 -echo "${ECHO_T}$SED" >&6
9184 -
9185 -echo "$as_me:$LINENO: checking for egrep" >&5
9186 -echo $ECHO_N "checking for egrep... $ECHO_C" >&6
9187 -if test "${ac_cv_prog_egrep+set}" = set; then
9188 - echo $ECHO_N "(cached) $ECHO_C" >&6
9189 + IFS="$ac_save_ifs"
9190 + ;;
9191 +esac
9192 else
9193 - if echo a | (grep -E '(a|b)') >/dev/null 2>&1
9194 - then ac_cv_prog_egrep='grep -E'
9195 - else ac_cv_prog_egrep='egrep'
9196 - fi
9197 + enable_fast_install=yes
9198 +fi;
9199 +# Find the correct PATH separator. Usually this is `:', but
9200 +# DJGPP uses `;' like DOS.
9201 +if test "X${PATH_SEPARATOR+set}" != Xset; then
9202 + UNAME=${UNAME-`uname 2>/dev/null`}
9203 + case X$UNAME in
9204 + *-DOS) lt_cv_sys_path_separator=';' ;;
9205 + *) lt_cv_sys_path_separator=':' ;;
9206 + esac
9207 + PATH_SEPARATOR=$lt_cv_sys_path_separator
9208 fi
9209 -echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
9210 -echo "${ECHO_T}$ac_cv_prog_egrep" >&6
9211 - EGREP=$ac_cv_prog_egrep
9212 -
9213
9214
9215 # Check whether --with-gnu-ld or --without-gnu-ld was given.
9216 @@ -3244,8 +3145,8 @@
9217 ac_prog=ld
9218 if test "$GCC" = yes; then
9219 # Check if gcc -print-prog-name=ld gives a path.
9220 - echo "$as_me:$LINENO: checking for ld used by $CC" >&5
9221 -echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
9222 + echo "$as_me:$LINENO: checking for ld used by GCC" >&5
9223 +echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
9224 case $host in
9225 *-*-mingw*)
9226 # gcc leaves a trailing carriage return which upsets mingw
9227 @@ -3255,12 +3156,12 @@
9228 esac
9229 case $ac_prog in
9230 # Accept absolute paths.
9231 - [\\/]* | ?:[\\/]*)
9232 + [\\/]* | [A-Za-z]:[\\/]*)
9233 re_direlt='/[^/][^/]*/\.\./'
9234 - # Canonicalize the pathname of ld
9235 - ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
9236 + # Canonicalize the path of ld
9237 + ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
9238 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
9239 - ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
9240 + ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
9241 done
9242 test -z "$LD" && LD="$ac_prog"
9243 ;;
9244 @@ -3284,26 +3185,22 @@
9245 echo $ECHO_N "(cached) $ECHO_C" >&6
9246 else
9247 if test -z "$LD"; then
9248 - lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9249 + IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9250 for ac_dir in $PATH; do
9251 - IFS="$lt_save_ifs"
9252 test -z "$ac_dir" && ac_dir=.
9253 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
9254 lt_cv_path_LD="$ac_dir/$ac_prog"
9255 # Check to see if the program is GNU ld. I'd rather use --version,
9256 - # but apparently some variants of GNU ld only accept -v.
9257 + # but apparently some GNU ld's only accept -v.
9258 # Break only if it was the GNU/non-GNU ld that we prefer.
9259 - case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
9260 - *GNU* | *'with BFD'*)
9261 + if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
9262 test "$with_gnu_ld" != no && break
9263 - ;;
9264 - *)
9265 + else
9266 test "$with_gnu_ld" != yes && break
9267 - ;;
9268 - esac
9269 + fi
9270 fi
9271 done
9272 - IFS="$lt_save_ifs"
9273 + IFS="$ac_save_ifs"
9274 else
9275 lt_cv_path_LD="$LD" # Let the user override the test with a path.
9276 fi
9277 @@ -3325,15 +3222,12 @@
9278 if test "${lt_cv_prog_gnu_ld+set}" = set; then
9279 echo $ECHO_N "(cached) $ECHO_C" >&6
9280 else
9281 - # I'd rather use --version here, but apparently some GNU lds only accept -v.
9282 -case `$LD -v 2>&1 </dev/null` in
9283 -*GNU* | *'with BFD'*)
9284 + # I'd rather use --version here, but apparently some GNU ld's only accept -v.
9285 +if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
9286 lt_cv_prog_gnu_ld=yes
9287 - ;;
9288 -*)
9289 +else
9290 lt_cv_prog_gnu_ld=no
9291 - ;;
9292 -esac
9293 +fi
9294 fi
9295 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
9296 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
9297 @@ -3350,20 +3244,7 @@
9298 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
9299 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
9300 reload_flag=$lt_cv_ld_reload_flag
9301 -case $reload_flag in
9302 -"" | " "*) ;;
9303 -*) reload_flag=" $reload_flag" ;;
9304 -esac
9305 -reload_cmds='$LD$reload_flag -o $output$reload_objs'
9306 -case $host_os in
9307 - darwin*)
9308 - if test "$GCC" = yes; then
9309 - reload_cmds='$CC -nostdlib ${wl}-r -o $output$reload_objs'
9310 - else
9311 - reload_cmds='$LD$reload_flag -o $output$reload_objs'
9312 - fi
9313 - ;;
9314 -esac
9315 +test -n "$reload_flag" && reload_flag=" $reload_flag"
9316
9317 echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
9318 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
9319 @@ -3374,42 +3255,120 @@
9320 # Let the user override the test.
9321 lt_cv_path_NM="$NM"
9322 else
9323 - lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9324 + IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9325 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
9326 - IFS="$lt_save_ifs"
9327 test -z "$ac_dir" && ac_dir=.
9328 - tmp_nm="$ac_dir/${ac_tool_prefix}nm"
9329 - if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
9330 + tmp_nm=$ac_dir/${ac_tool_prefix}nm
9331 + if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then
9332 # Check to see if the nm accepts a BSD-compat flag.
9333 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
9334 # nm: unknown option "B" ignored
9335 # Tru64's nm complains that /dev/null is an invalid object file
9336 - case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
9337 - */dev/null* | *'Invalid file or object type'*)
9338 + if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then
9339 lt_cv_path_NM="$tmp_nm -B"
9340 break
9341 - ;;
9342 - *)
9343 - case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
9344 - */dev/null*)
9345 - lt_cv_path_NM="$tmp_nm -p"
9346 - break
9347 - ;;
9348 - *)
9349 - lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
9350 - continue # so that we can try to find one that supports BSD flags
9351 - ;;
9352 - esac
9353 - esac
9354 + elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
9355 + lt_cv_path_NM="$tmp_nm -p"
9356 + break
9357 + else
9358 + lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
9359 + continue # so that we can try to find one that supports BSD flags
9360 + fi
9361 fi
9362 done
9363 - IFS="$lt_save_ifs"
9364 + IFS="$ac_save_ifs"
9365 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
9366 fi
9367 fi
9368 -echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
9369 -echo "${ECHO_T}$lt_cv_path_NM" >&6
9370 +
9371 NM="$lt_cv_path_NM"
9372 +echo "$as_me:$LINENO: result: $NM" >&5
9373 +echo "${ECHO_T}$NM" >&6
9374 +
9375 +echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
9376 +echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
9377 +if test "${lt_cv_path_SED+set}" = set; then
9378 + echo $ECHO_N "(cached) $ECHO_C" >&6
9379 +else
9380 + # Loop through the user's path and test for sed and gsed.
9381 +# Then use that list of sed's as ones to test for truncation.
9382 +as_executable_p="test -f"
9383 +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9384 +for as_dir in $PATH
9385 +do
9386 + IFS=$as_save_IFS
9387 + test -z "$as_dir" && as_dir=.
9388 + for ac_prog in sed gsed; do
9389 + for ac_exec_ext in '' $ac_executable_extensions; do
9390 + if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
9391 + _sed_list="$_sed_list $as_dir/$ac_prog$ac_exec_ext"
9392 + fi
9393 + done
9394 + done
9395 +done
9396 +
9397 + # Create a temporary directory, and hook for its removal unless debugging.
9398 +$debug ||
9399 +{
9400 + trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
9401 + trap '{ (exit 1); exit 1; }' 1 2 13 15
9402 +}
9403 +
9404 +# Create a (secure) tmp directory for tmp files.
9405 +: ${TMPDIR=/tmp}
9406 +{
9407 + tmp=`(umask 077 && mktemp -d -q "$TMPDIR/sedXXXXXX") 2>/dev/null` &&
9408 + test -n "$tmp" && test -d "$tmp"
9409 +} ||
9410 +{
9411 + tmp=$TMPDIR/sed$$-$RANDOM
9412 + (umask 077 && mkdir $tmp)
9413 +} ||
9414 +{
9415 + echo "$me: cannot create a temporary directory in $TMPDIR" >&2
9416 + { (exit 1); exit 1; }
9417 +}
9418 + _max=0
9419 + _count=0
9420 + # Add /usr/xpg4/bin/sed as it is typically found on Solaris
9421 + # along with /bin/sed that truncates output.
9422 + for _sed in $_sed_list /usr/xpg4/bin/sed; do
9423 + test ! -f ${_sed} && break
9424 + cat /dev/null > "$tmp/sed.in"
9425 + _count=0
9426 + echo ${ECHO_N-$ac_n} "0123456789${ECHO_C-$ac_c}" >"$tmp/sed.in"
9427 + # Check for GNU sed and select it if it is found.
9428 + if "${_sed}" --version 2>&1 < /dev/null | egrep '(GNU)' > /dev/null; then
9429 + lt_cv_path_SED=${_sed}
9430 + break
9431 + fi
9432 + while true; do
9433 + cat "$tmp/sed.in" "$tmp/sed.in" >"$tmp/sed.tmp"
9434 + mv "$tmp/sed.tmp" "$tmp/sed.in"
9435 + cp "$tmp/sed.in" "$tmp/sed.nl"
9436 + echo >>"$tmp/sed.nl"
9437 + ${_sed} -e 's/a$//' < "$tmp/sed.nl" >"$tmp/sed.out" || break
9438 + cmp -s "$tmp/sed.out" "$tmp/sed.nl" || break
9439 + # 40000 chars as input seems more than enough
9440 + test $_count -gt 10 && break
9441 + _count=`expr $_count + 1`
9442 + if test $_count -gt $_max; then
9443 + _max=$_count
9444 + lt_cv_path_SED=$_sed
9445 + fi
9446 + done
9447 + done
9448 + rm -rf "$tmp"
9449 +
9450 +fi
9451 +
9452 +if test "X$SED" != "X"; then
9453 + lt_cv_path_SED=$SED
9454 +else
9455 + SED=$lt_cv_path_SED
9456 +fi
9457 +echo "$as_me:$LINENO: result: $SED" >&5
9458 +echo "${ECHO_T}$SED" >&6
9459
9460 echo "$as_me:$LINENO: checking whether ln -s works" >&5
9461 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
9462 @@ -3437,7 +3396,7 @@
9463 # 'pass_all' -- all dependencies passed with no checks.
9464 # 'test_compile' -- check by making test program.
9465 # 'file_magic [[regex]]' -- check by looking for files in library path
9466 -# which responds to the $file_magic_cmd with a given extended regex.
9467 +# which responds to the $file_magic_cmd with a given egrep regex.
9468 # If you have `file' or equivalent on your system and you're not sure
9469 # whether `pass_all' will *always* work, you probably want this one.
9470
9471 @@ -3450,36 +3409,37 @@
9472 lt_cv_deplibs_check_method=pass_all
9473 ;;
9474
9475 -bsdi[45]*)
9476 +bsdi4*)
9477 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
9478 lt_cv_file_magic_cmd='/usr/bin/file -L'
9479 lt_cv_file_magic_test_file=/shlib/libc.so
9480 ;;
9481
9482 -cygwin*)
9483 - # func_win32_libid is a shell function defined in ltmain.sh
9484 - lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
9485 - lt_cv_file_magic_cmd='func_win32_libid'
9486 - ;;
9487 -
9488 -mingw* | pw32*)
9489 - # Base MSYS/MinGW do not provide the 'file' command needed by
9490 - # func_win32_libid shell function, so use a weaker test based on 'objdump'.
9491 +cygwin* | mingw* | pw32*)
9492 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
9493 lt_cv_file_magic_cmd='$OBJDUMP -f'
9494 ;;
9495
9496 darwin* | rhapsody*)
9497 - lt_cv_deplibs_check_method=pass_all
9498 + lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
9499 + lt_cv_file_magic_cmd='/usr/bin/file -L'
9500 + case "$host_os" in
9501 + rhapsody* | darwin1.[012])
9502 + lt_cv_file_magic_test_file=`echo /System/Library/Frameworks/System.framework/Versions/*/System | head -1`
9503 + ;;
9504 + *) # Darwin 1.3 on
9505 + lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
9506 + ;;
9507 + esac
9508 ;;
9509
9510 -freebsd* | kfreebsd*-gnu | dragonfly*)
9511 +freebsd*)
9512 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
9513 case $host_cpu in
9514 i*86 )
9515 # Not sure whether the presence of OpenBSD here was a mistake.
9516 # Let's accept both of them until this is cleared up.
9517 - lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
9518 + lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
9519 lt_cv_file_magic_cmd=/usr/bin/file
9520 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
9521 ;;
9522 @@ -3493,22 +3453,10 @@
9523 lt_cv_deplibs_check_method=pass_all
9524 ;;
9525
9526 -hpux10.20* | hpux11*)
9527 +hpux10.20*|hpux11*)
9528 + lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
9529 lt_cv_file_magic_cmd=/usr/bin/file
9530 - case $host_cpu in
9531 - ia64*)
9532 - lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
9533 - lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
9534 - ;;
9535 - hppa*64*)
9536 - lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - PA-RISC [0-9].[0-9]'
9537 - lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
9538 - ;;
9539 - *)
9540 - lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
9541 - lt_cv_file_magic_test_file=/usr/lib/libc.sl
9542 - ;;
9543 - esac
9544 + lt_cv_file_magic_test_file=/usr/lib/libc.sl
9545 ;;
9546
9547 irix5* | irix6* | nonstopux*)
9548 @@ -3522,15 +3470,15 @@
9549 ;;
9550
9551 # This must be Linux ELF.
9552 -linux*)
9553 +linux-gnu*)
9554 lt_cv_deplibs_check_method=pass_all
9555 ;;
9556
9557 -netbsd*)
9558 +netbsd* | knetbsd*-gnu)
9559 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
9560 - lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
9561 + lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$'
9562 else
9563 - lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
9564 + lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so$'
9565 fi
9566 ;;
9567
9568 @@ -3540,15 +3488,13 @@
9569 lt_cv_file_magic_test_file=/usr/lib/libnls.so
9570 ;;
9571
9572 -nto-qnx*)
9573 - lt_cv_deplibs_check_method=unknown
9574 - ;;
9575 -
9576 openbsd*)
9577 + lt_cv_file_magic_cmd=/usr/bin/file
9578 + lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
9579 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9580 - lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
9581 + lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object'
9582 else
9583 - lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
9584 + lt_cv_deplibs_check_method='file_magic OpenBSD.* shared library'
9585 fi
9586 ;;
9587
9588 @@ -3564,6 +3510,10 @@
9589 lt_cv_deplibs_check_method=pass_all
9590 ;;
9591
9592 +sysv5uw[78]* | sysv4*uw2*)
9593 + lt_cv_deplibs_check_method=pass_all
9594 + ;;
9595 +
9596 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9597 case $host_vendor in
9598 motorola)
9599 @@ -3587,10 +3537,6 @@
9600 ;;
9601 esac
9602 ;;
9603 -
9604 -sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*)
9605 - lt_cv_deplibs_check_method=pass_all
9606 - ;;
9607 esac
9608
9609 fi
9610 @@ -3598,210 +3544,211 @@
9611 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
9612 file_magic_cmd=$lt_cv_file_magic_cmd
9613 deplibs_check_method=$lt_cv_deplibs_check_method
9614 -test -z "$deplibs_check_method" && deplibs_check_method=unknown
9615
9616
9617
9618
9619 -# If no C compiler was specified, use CC.
9620 -LTCC=${LTCC-"$CC"}
9621
9622 -# Allow CC to be a program name with arguments.
9623 -compiler=$CC
9624
9625
9626 -# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
9627 -if test "${enable_libtool_lock+set}" = set; then
9628 - enableval="$enable_libtool_lock"
9629
9630 -fi;
9631 -test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
9632 +# Check for command to grab the raw symbol name followed by C symbol from nm.
9633 +echo "$as_me:$LINENO: checking command to parse $NM output" >&5
9634 +echo $ECHO_N "checking command to parse $NM output... $ECHO_C" >&6
9635 +if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
9636 + echo $ECHO_N "(cached) $ECHO_C" >&6
9637 +else
9638
9639 -# Some flags need to be propagated to the compiler or linker for good
9640 -# libtool support.
9641 -case $host in
9642 -ia64-*-hpux*)
9643 - # Find out which ABI we are using.
9644 - echo 'int i;' > conftest.$ac_ext
9645 - if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9646 - (eval $ac_compile) 2>&5
9647 - ac_status=$?
9648 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
9649 - (exit $ac_status); }; then
9650 - case `/usr/bin/file conftest.$ac_objext` in
9651 - *ELF-32*)
9652 - HPUX_IA64_MODE="32"
9653 - ;;
9654 - *ELF-64*)
9655 - HPUX_IA64_MODE="64"
9656 - ;;
9657 - esac
9658 - fi
9659 - rm -rf conftest*
9660 - ;;
9661 -*-*-irix6*)
9662 - # Find out which ABI we are using.
9663 - echo '#line 3644 "configure"' > conftest.$ac_ext
9664 - if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9665 - (eval $ac_compile) 2>&5
9666 - ac_status=$?
9667 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
9668 - (exit $ac_status); }; then
9669 - if test "$lt_cv_prog_gnu_ld" = yes; then
9670 - case `/usr/bin/file conftest.$ac_objext` in
9671 - *32-bit*)
9672 - LD="${LD-ld} -melf32bsmip"
9673 - ;;
9674 - *N32*)
9675 - LD="${LD-ld} -melf32bmipn32"
9676 - ;;
9677 - *64-bit*)
9678 - LD="${LD-ld} -melf64bmip"
9679 - ;;
9680 - esac
9681 - else
9682 - case `/usr/bin/file conftest.$ac_objext` in
9683 - *32-bit*)
9684 - LD="${LD-ld} -32"
9685 - ;;
9686 - *N32*)
9687 - LD="${LD-ld} -n32"
9688 - ;;
9689 - *64-bit*)
9690 - LD="${LD-ld} -64"
9691 - ;;
9692 - esac
9693 - fi
9694 - fi
9695 - rm -rf conftest*
9696 - ;;
9697 +# These are sane defaults that work on at least a few old systems.
9698 +# [They come from Ultrix. What could be older than Ultrix?!! ;)]
9699
9700 -x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
9701 - # Find out which ABI we are using.
9702 - echo 'int i;' > conftest.$ac_ext
9703 - if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9704 - (eval $ac_compile) 2>&5
9705 - ac_status=$?
9706 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
9707 - (exit $ac_status); }; then
9708 - case `/usr/bin/file conftest.o` in
9709 - *32-bit*)
9710 - case $host in
9711 - x86_64-*linux*)
9712 - LD="${LD-ld} -m elf_i386"
9713 - ;;
9714 - ppc64-*linux*|powerpc64-*linux*)
9715 - LD="${LD-ld} -m elf32ppclinux"
9716 - ;;
9717 - s390x-*linux*)
9718 - LD="${LD-ld} -m elf_s390"
9719 - ;;
9720 - sparc64-*linux*)
9721 - LD="${LD-ld} -m elf32_sparc"
9722 - ;;
9723 - esac
9724 - ;;
9725 - *64-bit*)
9726 - case $host in
9727 - x86_64-*linux*)
9728 - LD="${LD-ld} -m elf_x86_64"
9729 - ;;
9730 - ppc*-*linux*|powerpc*-*linux*)
9731 - LD="${LD-ld} -m elf64ppc"
9732 - ;;
9733 - s390*-*linux*)
9734 - LD="${LD-ld} -m elf64_s390"
9735 - ;;
9736 - sparc*-*linux*)
9737 - LD="${LD-ld} -m elf64_sparc"
9738 - ;;
9739 - esac
9740 - ;;
9741 - esac
9742 - fi
9743 - rm -rf conftest*
9744 +# Character class describing NM global symbol codes.
9745 +symcode='[BCDEGRST]'
9746 +
9747 +# Regexp to match symbols that can be accessed directly from C.
9748 +sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
9749 +
9750 +# Transform the above into a raw symbol and a C symbol.
9751 +symxfrm='\1 \2\3 \3'
9752 +
9753 +# Transform an extracted symbol line into a proper C declaration
9754 +lt_cv_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern char \1;/p'"
9755 +
9756 +# Transform an extracted symbol line into symbol name and symbol address
9757 +lt_cv_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
9758 +
9759 +# Define system-specific variables.
9760 +case $host_os in
9761 +aix*)
9762 + symcode='[BCDT]'
9763 + ;;
9764 +cygwin* | mingw* | pw32*)
9765 + symcode='[ABCDGISTW]'
9766 + ;;
9767 +hpux*) # Its linker distinguishes data from code symbols
9768 + lt_cv_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern char \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9769 + lt_cv_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
9770 + ;;
9771 +irix* | nonstopux*)
9772 + symcode='[BCDEGRST]'
9773 + ;;
9774 +osf*)
9775 + symcode='[BCDEGQRST]'
9776 + ;;
9777 +solaris* | sysv5*)
9778 + symcode='[BDT]'
9779 + ;;
9780 +sysv4)
9781 + symcode='[DFNSTU]'
9782 ;;
9783 +esac
9784
9785 -*-*-sco3.2v5*)
9786 - # On SCO OpenServer 5, we need -belf to get full-featured binaries.
9787 - SAVE_CFLAGS="$CFLAGS"
9788 - CFLAGS="$CFLAGS -belf"
9789 - echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
9790 -echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
9791 -if test "${lt_cv_cc_needs_belf+set}" = set; then
9792 - echo $ECHO_N "(cached) $ECHO_C" >&6
9793 -else
9794 - ac_ext=c
9795 -ac_cpp='$CPP $CPPFLAGS'
9796 -ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9797 -ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9798 -ac_compiler_gnu=$ac_cv_c_compiler_gnu
9799 +# Handle CRLF in mingw tool chain
9800 +opt_cr=
9801 +case $host_os in
9802 +mingw*)
9803 + opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
9804 + ;;
9805 +esac
9806
9807 - cat >conftest.$ac_ext <<_ACEOF
9808 -/* confdefs.h. */
9809 -_ACEOF
9810 -cat confdefs.h >>conftest.$ac_ext
9811 -cat >>conftest.$ac_ext <<_ACEOF
9812 -/* end confdefs.h. */
9813 +# If we're using GNU nm, then use its standard symbol codes.
9814 +if $NM -V 2>&1 | egrep '(GNU|with BFD)' > /dev/null; then
9815 + symcode='[ABCDGISTW]'
9816 +fi
9817
9818 -int
9819 -main ()
9820 -{
9821 +# Try without a prefix undercore, then with it.
9822 +for ac_symprfx in "" "_"; do
9823
9824 - ;
9825 - return 0;
9826 + # Write the raw and C identifiers.
9827 +lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
9828 +
9829 + # Check to see that the pipe works correctly.
9830 + pipe_works=no
9831 + rm -f conftest*
9832 + cat > conftest.$ac_ext <<EOF
9833 +#ifdef __cplusplus
9834 +extern "C" {
9835 +#endif
9836 +char nm_test_var;
9837 +void nm_test_func(){}
9838 +#ifdef __cplusplus
9839 }
9840 -_ACEOF
9841 -rm -f conftest.$ac_objext conftest$ac_exeext
9842 -if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9843 - (eval $ac_link) 2>conftest.er1
9844 - ac_status=$?
9845 - grep -v '^ *+' conftest.er1 >conftest.err
9846 - rm -f conftest.er1
9847 - cat conftest.err >&5
9848 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
9849 - (exit $ac_status); } &&
9850 - { ac_try='test -z "$ac_c_werror_flag"
9851 - || test ! -s conftest.err'
9852 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9853 - (eval $ac_try) 2>&5
9854 +#endif
9855 +int main(){nm_test_var='a';nm_test_func();return(0);}
9856 +EOF
9857 +
9858 + if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9859 + (eval $ac_compile) 2>&5
9860 ac_status=$?
9861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9862 - (exit $ac_status); }; } &&
9863 - { ac_try='test -s conftest$ac_exeext'
9864 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9865 - (eval $ac_try) 2>&5
9866 + (exit $ac_status); }; then
9867 + # Now try to grab the symbols.
9868 + nlist=conftest.nm
9869 + if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
9870 + (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
9871 ac_status=$?
9872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9873 - (exit $ac_status); }; }; then
9874 - lt_cv_cc_needs_belf=yes
9875 -else
9876 - echo "$as_me: failed program was:" >&5
9877 -sed 's/^/| /' conftest.$ac_ext >&5
9878 + (exit $ac_status); } && test -s "$nlist"; then
9879 + # Try sorting and uniquifying the output.
9880 + if sort "$nlist" | uniq > "$nlist"T; then
9881 + mv -f "$nlist"T "$nlist"
9882 + else
9883 + rm -f "$nlist"T
9884 + fi
9885
9886 -lt_cv_cc_needs_belf=no
9887 -fi
9888 -rm -f conftest.err conftest.$ac_objext \
9889 - conftest$ac_exeext conftest.$ac_ext
9890 - ac_ext=c
9891 -ac_cpp='$CPP $CPPFLAGS'
9892 -ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9893 -ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9894 -ac_compiler_gnu=$ac_cv_c_compiler_gnu
9895 + # Make sure that we snagged all the symbols we need.
9896 + if egrep ' nm_test_var$' "$nlist" >/dev/null; then
9897 + if egrep ' nm_test_func$' "$nlist" >/dev/null; then
9898 + cat <<EOF > conftest.$ac_ext
9899 +#ifdef __cplusplus
9900 +extern "C" {
9901 +#endif
9902
9903 -fi
9904 -echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
9905 -echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
9906 - if test x"$lt_cv_cc_needs_belf" != x"yes"; then
9907 - # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
9908 - CFLAGS="$SAVE_CFLAGS"
9909 +EOF
9910 + # Now generate the symbol file.
9911 + eval "$lt_cv_global_symbol_to_cdecl"' < "$nlist" >> conftest.$ac_ext'
9912 +
9913 + cat <<EOF >> conftest.$ac_ext
9914 +#if defined (__STDC__) && __STDC__
9915 +# define lt_ptr void *
9916 +#else
9917 +# define lt_ptr char *
9918 +# define const
9919 +#endif
9920 +
9921 +/* The mapping between symbol names and symbols. */
9922 +const struct {
9923 + const char *name;
9924 + lt_ptr address;
9925 +}
9926 +lt_preloaded_symbols[] =
9927 +{
9928 +EOF
9929 + sed "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr) \&\2},/" < "$nlist" >> conftest.$ac_ext
9930 + cat <<\EOF >> conftest.$ac_ext
9931 + {0, (lt_ptr) 0}
9932 +};
9933 +
9934 +#ifdef __cplusplus
9935 +}
9936 +#endif
9937 +EOF
9938 + # Now try linking the two files.
9939 + mv conftest.$ac_objext conftstm.$ac_objext
9940 + save_LIBS="$LIBS"
9941 + save_CFLAGS="$CFLAGS"
9942 + LIBS="conftstm.$ac_objext"
9943 + CFLAGS="$CFLAGS$no_builtin_flag"
9944 + if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9945 + (eval $ac_link) 2>&5
9946 + ac_status=$?
9947 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
9948 + (exit $ac_status); } && test -s conftest$ac_exeext; then
9949 + pipe_works=yes
9950 + fi
9951 + LIBS="$save_LIBS"
9952 + CFLAGS="$save_CFLAGS"
9953 + else
9954 + echo "cannot find nm_test_func in $nlist" >&5
9955 + fi
9956 + else
9957 + echo "cannot find nm_test_var in $nlist" >&5
9958 + fi
9959 + else
9960 + echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
9961 + fi
9962 + else
9963 + echo "$progname: failed program was:" >&5
9964 + cat conftest.$ac_ext >&5
9965 fi
9966 - ;;
9967 + rm -f conftest* conftst*
9968
9969 -esac
9970 + # Do not use the global_symbol_pipe unless it works.
9971 + if test "$pipe_works" = yes; then
9972 + break
9973 + else
9974 + lt_cv_sys_global_symbol_pipe=
9975 + fi
9976 +done
9977
9978 -need_locks="$enable_libtool_lock"
9979 +fi
9980
9981 +global_symbol_pipe="$lt_cv_sys_global_symbol_pipe"
9982 +if test -z "$lt_cv_sys_global_symbol_pipe"; then
9983 + global_symbol_to_cdecl=
9984 + global_symbol_to_c_name_address=
9985 +else
9986 + global_symbol_to_cdecl="$lt_cv_global_symbol_to_cdecl"
9987 + global_symbol_to_c_name_address="$lt_cv_global_symbol_to_c_name_address"
9988 +fi
9989 +if test -z "$global_symbol_pipe$global_symbol_to_cdec$global_symbol_to_c_name_address";
9990 +then
9991 + echo "$as_me:$LINENO: result: failed" >&5
9992 +echo "${ECHO_T}failed" >&6
9993 +else
9994 + echo "$as_me:$LINENO: result: ok" >&5
9995 +echo "${ECHO_T}ok" >&6
9996 +fi
9997
9998 ac_ext=c
9999 ac_cpp='$CPP $CPPFLAGS'
10000 @@ -4038,6 +3985,21 @@
10001 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10002
10003
10004 +echo "$as_me:$LINENO: checking for egrep" >&5
10005 +echo $ECHO_N "checking for egrep... $ECHO_C" >&6
10006 +if test "${ac_cv_prog_egrep+set}" = set; then
10007 + echo $ECHO_N "(cached) $ECHO_C" >&6
10008 +else
10009 + if echo a | (grep -E '(a|b)') >/dev/null 2>&1
10010 + then ac_cv_prog_egrep='grep -E'
10011 + else ac_cv_prog_egrep='egrep'
10012 + fi
10013 +fi
10014 +echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
10015 +echo "${ECHO_T}$ac_cv_prog_egrep" >&6
10016 + EGREP=$ac_cv_prog_egrep
10017 +
10018 +
10019 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
10020 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
10021 if test "${ac_cv_header_stdc+set}" = set; then
10022 @@ -4071,8 +4033,7 @@
10023 cat conftest.err >&5
10024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10025 (exit $ac_status); } &&
10026 - { ac_try='test -z "$ac_c_werror_flag"
10027 - || test ! -s conftest.err'
10028 + { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10029 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10030 (eval $ac_try) 2>&5
10031 ac_status=$?
10032 @@ -4242,8 +4203,7 @@
10033 cat conftest.err >&5
10034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10035 (exit $ac_status); } &&
10036 - { ac_try='test -z "$ac_c_werror_flag"
10037 - || test ! -s conftest.err'
10038 + { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10039 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10040 (eval $ac_try) 2>&5
10041 ac_status=$?
10042 @@ -4310,8 +4270,7 @@
10043 cat conftest.err >&5
10044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10045 (exit $ac_status); } &&
10046 - { ac_try='test -z "$ac_c_werror_flag"
10047 - || test ! -s conftest.err'
10048 + { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10049 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10050 (eval $ac_try) 2>&5
10051 ac_status=$?
10052 @@ -4426,65 +4385,160 @@
10053
10054 done
10055
10056 -ac_ext=cc
10057 -ac_cpp='$CXXCPP $CPPFLAGS'
10058 -ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10059 -ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10060 -ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10061 -if test -n "$ac_tool_prefix"; then
10062 - for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
10063 - do
10064 - # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
10065 -set dummy $ac_tool_prefix$ac_prog; ac_word=$2
10066 -echo "$as_me:$LINENO: checking for $ac_word" >&5
10067 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10068 -if test "${ac_cv_prog_CXX+set}" = set; then
10069 - echo $ECHO_N "(cached) $ECHO_C" >&6
10070 -else
10071 - if test -n "$CXX"; then
10072 - ac_cv_prog_CXX="$CXX" # Let the user override the test.
10073 -else
10074 -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10075 -for as_dir in $PATH
10076 -do
10077 - IFS=$as_save_IFS
10078 - test -z "$as_dir" && as_dir=.
10079 - for ac_exec_ext in '' $ac_executable_extensions; do
10080 - if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10081 - ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
10082 - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10083 - break 2
10084 - fi
10085 -done
10086 -done
10087
10088 -fi
10089 -fi
10090 -CXX=$ac_cv_prog_CXX
10091 -if test -n "$CXX"; then
10092 - echo "$as_me:$LINENO: result: $CXX" >&5
10093 -echo "${ECHO_T}$CXX" >&6
10094 -else
10095 - echo "$as_me:$LINENO: result: no" >&5
10096 -echo "${ECHO_T}no" >&6
10097 -fi
10098
10099 - test -n "$CXX" && break
10100 - done
10101 -fi
10102 -if test -z "$CXX"; then
10103 - ac_ct_CXX=$CXX
10104 - for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
10105 -do
10106 - # Extract the first word of "$ac_prog", so it can be a program name with args.
10107 -set dummy $ac_prog; ac_word=$2
10108 -echo "$as_me:$LINENO: checking for $ac_word" >&5
10109 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10110 -if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
10111 - echo $ECHO_N "(cached) $ECHO_C" >&6
10112 +
10113 +
10114 +
10115 +# Only perform the check for file, if the check method requires it
10116 +case $deplibs_check_method in
10117 +file_magic*)
10118 + if test "$file_magic_cmd" = '$MAGIC_CMD'; then
10119 + echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
10120 +echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
10121 +if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
10122 + echo $ECHO_N "(cached) $ECHO_C" >&6
10123 +else
10124 + case $MAGIC_CMD in
10125 + /*)
10126 + lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
10127 + ;;
10128 + ?:/*)
10129 + lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
10130 + ;;
10131 + *)
10132 + ac_save_MAGIC_CMD="$MAGIC_CMD"
10133 + IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
10134 + ac_dummy="/usr/bin:$PATH"
10135 + for ac_dir in $ac_dummy; do
10136 + test -z "$ac_dir" && ac_dir=.
10137 + if test -f $ac_dir/${ac_tool_prefix}file; then
10138 + lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
10139 + if test -n "$file_magic_test_file"; then
10140 + case $deplibs_check_method in
10141 + "file_magic "*)
10142 + file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
10143 + MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
10144 + if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
10145 + egrep "$file_magic_regex" > /dev/null; then
10146 + :
10147 + else
10148 + cat <<EOF 1>&2
10149 +
10150 +*** Warning: the command libtool uses to detect shared libraries,
10151 +*** $file_magic_cmd, produces output that libtool cannot recognize.
10152 +*** The result is that libtool may fail to recognize shared libraries
10153 +*** as such. This will affect the creation of libtool libraries that
10154 +*** depend on shared libraries, but programs linked with such libtool
10155 +*** libraries will work regardless of this problem. Nevertheless, you
10156 +*** may want to report the problem to your system manager and/or to
10157 +*** bug-libtool@gnu.org
10158 +
10159 +EOF
10160 + fi ;;
10161 + esac
10162 + fi
10163 + break
10164 + fi
10165 + done
10166 + IFS="$ac_save_ifs"
10167 + MAGIC_CMD="$ac_save_MAGIC_CMD"
10168 + ;;
10169 +esac
10170 +fi
10171 +
10172 +MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
10173 +if test -n "$MAGIC_CMD"; then
10174 + echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
10175 +echo "${ECHO_T}$MAGIC_CMD" >&6
10176 +else
10177 + echo "$as_me:$LINENO: result: no" >&5
10178 +echo "${ECHO_T}no" >&6
10179 +fi
10180 +
10181 +if test -z "$lt_cv_path_MAGIC_CMD"; then
10182 + if test -n "$ac_tool_prefix"; then
10183 + echo "$as_me:$LINENO: checking for file" >&5
10184 +echo $ECHO_N "checking for file... $ECHO_C" >&6
10185 +if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
10186 + echo $ECHO_N "(cached) $ECHO_C" >&6
10187 +else
10188 + case $MAGIC_CMD in
10189 + /*)
10190 + lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
10191 + ;;
10192 + ?:/*)
10193 + lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
10194 + ;;
10195 + *)
10196 + ac_save_MAGIC_CMD="$MAGIC_CMD"
10197 + IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
10198 + ac_dummy="/usr/bin:$PATH"
10199 + for ac_dir in $ac_dummy; do
10200 + test -z "$ac_dir" && ac_dir=.
10201 + if test -f $ac_dir/file; then
10202 + lt_cv_path_MAGIC_CMD="$ac_dir/file"
10203 + if test -n "$file_magic_test_file"; then
10204 + case $deplibs_check_method in
10205 + "file_magic "*)
10206 + file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
10207 + MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
10208 + if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
10209 + egrep "$file_magic_regex" > /dev/null; then
10210 + :
10211 + else
10212 + cat <<EOF 1>&2
10213 +
10214 +*** Warning: the command libtool uses to detect shared libraries,
10215 +*** $file_magic_cmd, produces output that libtool cannot recognize.
10216 +*** The result is that libtool may fail to recognize shared libraries
10217 +*** as such. This will affect the creation of libtool libraries that
10218 +*** depend on shared libraries, but programs linked with such libtool
10219 +*** libraries will work regardless of this problem. Nevertheless, you
10220 +*** may want to report the problem to your system manager and/or to
10221 +*** bug-libtool@gnu.org
10222 +
10223 +EOF
10224 + fi ;;
10225 + esac
10226 + fi
10227 + break
10228 + fi
10229 + done
10230 + IFS="$ac_save_ifs"
10231 + MAGIC_CMD="$ac_save_MAGIC_CMD"
10232 + ;;
10233 +esac
10234 +fi
10235 +
10236 +MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
10237 +if test -n "$MAGIC_CMD"; then
10238 + echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
10239 +echo "${ECHO_T}$MAGIC_CMD" >&6
10240 +else
10241 + echo "$as_me:$LINENO: result: no" >&5
10242 +echo "${ECHO_T}no" >&6
10243 +fi
10244 +
10245 + else
10246 + MAGIC_CMD=:
10247 + fi
10248 +fi
10249 +
10250 + fi
10251 + ;;
10252 +esac
10253 +
10254 +if test -n "$ac_tool_prefix"; then
10255 + # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
10256 +set dummy ${ac_tool_prefix}ranlib; ac_word=$2
10257 +echo "$as_me:$LINENO: checking for $ac_word" >&5
10258 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10259 +if test "${ac_cv_prog_RANLIB+set}" = set; then
10260 + echo $ECHO_N "(cached) $ECHO_C" >&6
10261 else
10262 - if test -n "$ac_ct_CXX"; then
10263 - ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
10264 + if test -n "$RANLIB"; then
10265 + ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
10266 else
10267 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10268 for as_dir in $PATH
10269 @@ -4493,7 +4547,7 @@
10270 test -z "$as_dir" && as_dir=.
10271 for ac_exec_ext in '' $ac_executable_extensions; do
10272 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10273 - ac_cv_prog_ac_ct_CXX="$ac_prog"
10274 + ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
10275 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10276 break 2
10277 fi
10278 @@ -4502,12050 +4556,751 @@
10279
10280 fi
10281 fi
10282 -ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
10283 -if test -n "$ac_ct_CXX"; then
10284 - echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
10285 -echo "${ECHO_T}$ac_ct_CXX" >&6
10286 +RANLIB=$ac_cv_prog_RANLIB
10287 +if test -n "$RANLIB"; then
10288 + echo "$as_me:$LINENO: result: $RANLIB" >&5
10289 +echo "${ECHO_T}$RANLIB" >&6
10290 else
10291 echo "$as_me:$LINENO: result: no" >&5
10292 echo "${ECHO_T}no" >&6
10293 fi
10294
10295 - test -n "$ac_ct_CXX" && break
10296 -done
10297 -test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
10298 -
10299 - CXX=$ac_ct_CXX
10300 fi
10301 -
10302 -
10303 -# Provide some information about the compiler.
10304 -echo "$as_me:$LINENO:" \
10305 - "checking for C++ compiler version" >&5
10306 -ac_compiler=`set X $ac_compile; echo $2`
10307 -{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
10308 - (eval $ac_compiler --version </dev/null >&5) 2>&5
10309 - ac_status=$?
10310 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
10311 - (exit $ac_status); }
10312 -{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
10313 - (eval $ac_compiler -v </dev/null >&5) 2>&5
10314 - ac_status=$?
10315 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
10316 - (exit $ac_status); }
10317 -{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
10318 - (eval $ac_compiler -V </dev/null >&5) 2>&5
10319 - ac_status=$?
10320 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
10321 - (exit $ac_status); }
10322 -
10323 -echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
10324 -echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
10325 -if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
10326 +if test -z "$ac_cv_prog_RANLIB"; then
10327 + ac_ct_RANLIB=$RANLIB
10328 + # Extract the first word of "ranlib", so it can be a program name with args.
10329 +set dummy ranlib; ac_word=$2
10330 +echo "$as_me:$LINENO: checking for $ac_word" >&5
10331 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10332 +if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
10333 echo $ECHO_N "(cached) $ECHO_C" >&6
10334 else
10335 - cat >conftest.$ac_ext <<_ACEOF
10336 -/* confdefs.h. */
10337 -_ACEOF
10338 -cat confdefs.h >>conftest.$ac_ext
10339 -cat >>conftest.$ac_ext <<_ACEOF
10340 -/* end confdefs.h. */
10341 -
10342 -int
10343 -main ()
10344 -{
10345 -#ifndef __GNUC__
10346 - choke me
10347 -#endif
10348 -
10349 - ;
10350 - return 0;
10351 -}
10352 -_ACEOF
10353 -rm -f conftest.$ac_objext
10354 -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10355 - (eval $ac_compile) 2>conftest.er1
10356 - ac_status=$?
10357 - grep -v '^ *+' conftest.er1 >conftest.err
10358 - rm -f conftest.er1
10359 - cat conftest.err >&5
10360 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
10361 - (exit $ac_status); } &&
10362 - { ac_try='test -z "$ac_cxx_werror_flag"
10363 - || test ! -s conftest.err'
10364 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10365 - (eval $ac_try) 2>&5
10366 - ac_status=$?
10367 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
10368 - (exit $ac_status); }; } &&
10369 - { ac_try='test -s conftest.$ac_objext'
10370 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10371 - (eval $ac_try) 2>&5
10372 - ac_status=$?
10373 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
10374 - (exit $ac_status); }; }; then
10375 - ac_compiler_gnu=yes
10376 + if test -n "$ac_ct_RANLIB"; then
10377 + ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
10378 else
10379 - echo "$as_me: failed program was:" >&5
10380 -sed 's/^/| /' conftest.$ac_ext >&5
10381 +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10382 +for as_dir in $PATH
10383 +do
10384 + IFS=$as_save_IFS
10385 + test -z "$as_dir" && as_dir=.
10386 + for ac_exec_ext in '' $ac_executable_extensions; do
10387 + if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10388 + ac_cv_prog_ac_ct_RANLIB="ranlib"
10389 + echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10390 + break 2
10391 + fi
10392 +done
10393 +done
10394
10395 -ac_compiler_gnu=no
10396 + test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
10397 fi
10398 -rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10399 -ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
10400 -
10401 fi
10402 -echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
10403 -echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
10404 -GXX=`test $ac_compiler_gnu = yes && echo yes`
10405 -ac_test_CXXFLAGS=${CXXFLAGS+set}
10406 -ac_save_CXXFLAGS=$CXXFLAGS
10407 -CXXFLAGS="-g"
10408 -echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
10409 -echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
10410 -if test "${ac_cv_prog_cxx_g+set}" = set; then
10411 - echo $ECHO_N "(cached) $ECHO_C" >&6
10412 +ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
10413 +if test -n "$ac_ct_RANLIB"; then
10414 + echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
10415 +echo "${ECHO_T}$ac_ct_RANLIB" >&6
10416 else
10417 - cat >conftest.$ac_ext <<_ACEOF
10418 -/* confdefs.h. */
10419 -_ACEOF
10420 -cat confdefs.h >>conftest.$ac_ext
10421 -cat >>conftest.$ac_ext <<_ACEOF
10422 -/* end confdefs.h. */
10423 + echo "$as_me:$LINENO: result: no" >&5
10424 +echo "${ECHO_T}no" >&6
10425 +fi
10426
10427 -int
10428 -main ()
10429 -{
10430 + RANLIB=$ac_ct_RANLIB
10431 +else
10432 + RANLIB="$ac_cv_prog_RANLIB"
10433 +fi
10434
10435 - ;
10436 - return 0;
10437 -}
10438 -_ACEOF
10439 -rm -f conftest.$ac_objext
10440 -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10441 - (eval $ac_compile) 2>conftest.er1
10442 - ac_status=$?
10443 - grep -v '^ *+' conftest.er1 >conftest.err
10444 - rm -f conftest.er1
10445 - cat conftest.err >&5
10446 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
10447 - (exit $ac_status); } &&
10448 - { ac_try='test -z "$ac_cxx_werror_flag"
10449 - || test ! -s conftest.err'
10450 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10451 - (eval $ac_try) 2>&5
10452 - ac_status=$?
10453 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
10454 - (exit $ac_status); }; } &&
10455 - { ac_try='test -s conftest.$ac_objext'
10456 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10457 - (eval $ac_try) 2>&5
10458 - ac_status=$?
10459 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
10460 - (exit $ac_status); }; }; then
10461 - ac_cv_prog_cxx_g=yes
10462 -else
10463 - echo "$as_me: failed program was:" >&5
10464 -sed 's/^/| /' conftest.$ac_ext >&5
10465 -
10466 -ac_cv_prog_cxx_g=no
10467 -fi
10468 -rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10469 -fi
10470 -echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
10471 -echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
10472 -if test "$ac_test_CXXFLAGS" = set; then
10473 - CXXFLAGS=$ac_save_CXXFLAGS
10474 -elif test $ac_cv_prog_cxx_g = yes; then
10475 - if test "$GXX" = yes; then
10476 - CXXFLAGS="-g -O2"
10477 - else
10478 - CXXFLAGS="-g"
10479 - fi
10480 -else
10481 - if test "$GXX" = yes; then
10482 - CXXFLAGS="-O2"
10483 - else
10484 - CXXFLAGS=
10485 - fi
10486 -fi
10487 -for ac_declaration in \
10488 - '' \
10489 - 'extern "C" void std::exit (int) throw (); using std::exit;' \
10490 - 'extern "C" void std::exit (int); using std::exit;' \
10491 - 'extern "C" void exit (int) throw ();' \
10492 - 'extern "C" void exit (int);' \
10493 - 'void exit (int);'
10494 -do
10495 - cat >conftest.$ac_ext <<_ACEOF
10496 -/* confdefs.h. */
10497 -_ACEOF
10498 -cat confdefs.h >>conftest.$ac_ext
10499 -cat >>conftest.$ac_ext <<_ACEOF
10500 -/* end confdefs.h. */
10501 -$ac_declaration
10502 -#include <stdlib.h>
10503 -int
10504 -main ()
10505 -{
10506 -exit (42);
10507 - ;
10508 - return 0;
10509 -}
10510 -_ACEOF
10511 -rm -f conftest.$ac_objext
10512 -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10513 - (eval $ac_compile) 2>conftest.er1
10514 - ac_status=$?
10515 - grep -v '^ *+' conftest.er1 >conftest.err
10516 - rm -f conftest.er1
10517 - cat conftest.err >&5
10518 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
10519 - (exit $ac_status); } &&
10520 - { ac_try='test -z "$ac_cxx_werror_flag"
10521 - || test ! -s conftest.err'
10522 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10523 - (eval $ac_try) 2>&5
10524 - ac_status=$?
10525 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
10526 - (exit $ac_status); }; } &&
10527 - { ac_try='test -s conftest.$ac_objext'
10528 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10529 - (eval $ac_try) 2>&5
10530 - ac_status=$?
10531 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
10532 - (exit $ac_status); }; }; then
10533 - :
10534 -else
10535 - echo "$as_me: failed program was:" >&5
10536 -sed 's/^/| /' conftest.$ac_ext >&5
10537 -
10538 -continue
10539 -fi
10540 -rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10541 - cat >conftest.$ac_ext <<_ACEOF
10542 -/* confdefs.h. */
10543 -_ACEOF
10544 -cat confdefs.h >>conftest.$ac_ext
10545 -cat >>conftest.$ac_ext <<_ACEOF
10546 -/* end confdefs.h. */
10547 -$ac_declaration
10548 -int
10549 -main ()
10550 -{
10551 -exit (42);
10552 - ;
10553 - return 0;
10554 -}
10555 -_ACEOF
10556 -rm -f conftest.$ac_objext
10557 -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10558 - (eval $ac_compile) 2>conftest.er1
10559 - ac_status=$?
10560 - grep -v '^ *+' conftest.er1 >conftest.err
10561 - rm -f conftest.er1
10562 - cat conftest.err >&5
10563 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
10564 - (exit $ac_status); } &&
10565 - { ac_try='test -z "$ac_cxx_werror_flag"
10566 - || test ! -s conftest.err'
10567 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10568 - (eval $ac_try) 2>&5
10569 - ac_status=$?
10570 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
10571 - (exit $ac_status); }; } &&
10572 - { ac_try='test -s conftest.$ac_objext'
10573 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10574 - (eval $ac_try) 2>&5
10575 - ac_status=$?
10576 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
10577 - (exit $ac_status); }; }; then
10578 - break
10579 -else
10580 - echo "$as_me: failed program was:" >&5
10581 -sed 's/^/| /' conftest.$ac_ext >&5
10582 -
10583 -fi
10584 -rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10585 -done
10586 -rm -f conftest*
10587 -if test -n "$ac_declaration"; then
10588 - echo '#ifdef __cplusplus' >>confdefs.h
10589 - echo $ac_declaration >>confdefs.h
10590 - echo '#endif' >>confdefs.h
10591 -fi
10592 -
10593 -ac_ext=cc
10594 -ac_cpp='$CXXCPP $CPPFLAGS'
10595 -ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10596 -ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10597 -ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10598 -
10599 -depcc="$CXX" am_compiler_list=
10600 -
10601 -echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
10602 -echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
10603 -if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
10604 +if test -n "$ac_tool_prefix"; then
10605 + # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
10606 +set dummy ${ac_tool_prefix}strip; ac_word=$2
10607 +echo "$as_me:$LINENO: checking for $ac_word" >&5
10608 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10609 +if test "${ac_cv_prog_STRIP+set}" = set; then
10610 echo $ECHO_N "(cached) $ECHO_C" >&6
10611 else
10612 - if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
10613 - # We make a subdir and do the tests there. Otherwise we can end up
10614 - # making bogus files that we don't know about and never remove. For
10615 - # instance it was reported that on HP-UX the gcc test will end up
10616 - # making a dummy file named `D' -- because `-MD' means `put the output
10617 - # in D'.
10618 - mkdir conftest.dir
10619 - # Copy depcomp to subdir because otherwise we won't find it if we're
10620 - # using a relative directory.
10621 - cp "$am_depcomp" conftest.dir
10622 - cd conftest.dir
10623 -
10624 - am_cv_CXX_dependencies_compiler_type=none
10625 - if test "$am_compiler_list" = ""; then
10626 - am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
10627 - fi
10628 - for depmode in $am_compiler_list; do
10629 - # We need to recreate these files for each test, as the compiler may
10630 - # overwrite some of them when testing with obscure command lines.
10631 - # This happens at least with the AIX C compiler.
10632 - echo '#include "conftest.h"' > conftest.c
10633 - echo 'int i;' > conftest.h
10634 - echo "${am__include} ${am__quote}conftest.Po${am__quote}" > confmf
10635 -
10636 - case $depmode in
10637 - nosideeffect)
10638 - # after this tag, mechanisms are not by side-effect, so they'll
10639 - # only be used when explicitly requested
10640 - if test "x$enable_dependency_tracking" = xyes; then
10641 - continue
10642 - else
10643 - break
10644 - fi
10645 - ;;
10646 - none) break ;;
10647 - esac
10648 - # We check with `-c' and `-o' for the sake of the "dashmstdout"
10649 - # mode. It turns out that the SunPro C++ compiler does not properly
10650 - # handle `-M -o', and we need to detect this.
10651 - if depmode=$depmode \
10652 - source=conftest.c object=conftest.o \
10653 - depfile=conftest.Po tmpdepfile=conftest.TPo \
10654 - $SHELL ./depcomp $depcc -c conftest.c -o conftest.o >/dev/null 2>&1 &&
10655 - grep conftest.h conftest.Po > /dev/null 2>&1 &&
10656 - ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
10657 - am_cv_CXX_dependencies_compiler_type=$depmode
10658 - break
10659 - fi
10660 - done
10661 -
10662 - cd ..
10663 - rm -rf conftest.dir
10664 -else
10665 - am_cv_CXX_dependencies_compiler_type=none
10666 -fi
10667 -
10668 -fi
10669 -echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
10670 -echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
10671 -CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
10672 -
10673 -
10674 -
10675 -
10676 -if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
10677 - ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
10678 - (test "X$CXX" != "Xg++"))) ; then
10679 - ac_ext=cc
10680 -ac_cpp='$CXXCPP $CPPFLAGS'
10681 -ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10682 -ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10683 -ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10684 -echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
10685 -echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
10686 -if test -z "$CXXCPP"; then
10687 - if test "${ac_cv_prog_CXXCPP+set}" = set; then
10688 - echo $ECHO_N "(cached) $ECHO_C" >&6
10689 + if test -n "$STRIP"; then
10690 + ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
10691 else
10692 - # Double quotes because CXXCPP needs to be expanded
10693 - for CXXCPP in "$CXX -E" "/lib/cpp"
10694 - do
10695 - ac_preproc_ok=false
10696 -for ac_cxx_preproc_warn_flag in '' yes
10697 +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10698 +for as_dir in $PATH
10699 do
10700 - # Use a header file that comes with gcc, so configuring glibc
10701 - # with a fresh cross-compiler works.
10702 - # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10703 - # <limits.h> exists even on freestanding compilers.
10704 - # On the NeXT, cc -E runs the code through the compiler's parser,
10705 - # not just through cpp. "Syntax error" is here to catch this case.
10706 - cat >conftest.$ac_ext <<_ACEOF
10707 -/* confdefs.h. */
10708 -_ACEOF
10709 -cat confdefs.h >>conftest.$ac_ext
10710 -cat >>conftest.$ac_ext <<_ACEOF
10711 -/* end confdefs.h. */
10712 -#ifdef __STDC__
10713 -# include <limits.h>
10714 -#else
10715 -# include <assert.h>
10716 -#endif
10717 - Syntax error
10718 -_ACEOF
10719 -if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10720 - (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10721 - ac_status=$?
10722 - grep -v '^ *+' conftest.er1 >conftest.err
10723 - rm -f conftest.er1
10724 - cat conftest.err >&5
10725 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
10726 - (exit $ac_status); } >/dev/null; then
10727 - if test -s conftest.err; then
10728 - ac_cpp_err=$ac_cxx_preproc_warn_flag
10729 - ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
10730 - else
10731 - ac_cpp_err=
10732 + IFS=$as_save_IFS
10733 + test -z "$as_dir" && as_dir=.
10734 + for ac_exec_ext in '' $ac_executable_extensions; do
10735 + if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10736 + ac_cv_prog_STRIP="${ac_tool_prefix}strip"
10737 + echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10738 + break 2
10739 fi
10740 -else
10741 - ac_cpp_err=yes
10742 -fi
10743 -if test -z "$ac_cpp_err"; then
10744 - :
10745 -else
10746 - echo "$as_me: failed program was:" >&5
10747 -sed 's/^/| /' conftest.$ac_ext >&5
10748 -
10749 - # Broken: fails on valid input.
10750 -continue
10751 -fi
10752 -rm -f conftest.err conftest.$ac_ext
10753 -
10754 - # OK, works on sane cases. Now check whether non-existent headers
10755 - # can be detected and how.
10756 - cat >conftest.$ac_ext <<_ACEOF
10757 -/* confdefs.h. */
10758 -_ACEOF
10759 -cat confdefs.h >>conftest.$ac_ext
10760 -cat >>conftest.$ac_ext <<_ACEOF
10761 -/* end confdefs.h. */
10762 -#include <ac_nonexistent.h>
10763 -_ACEOF
10764 -if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10765 - (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10766 - ac_status=$?
10767 - grep -v '^ *+' conftest.er1 >conftest.err
10768 - rm -f conftest.er1
10769 - cat conftest.err >&5
10770 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
10771 - (exit $ac_status); } >/dev/null; then
10772 - if test -s conftest.err; then
10773 - ac_cpp_err=$ac_cxx_preproc_warn_flag
10774 - ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
10775 - else
10776 - ac_cpp_err=
10777 - fi
10778 -else
10779 - ac_cpp_err=yes
10780 -fi
10781 -if test -z "$ac_cpp_err"; then
10782 - # Broken: success on invalid input.
10783 -continue
10784 -else
10785 - echo "$as_me: failed program was:" >&5
10786 -sed 's/^/| /' conftest.$ac_ext >&5
10787 -
10788 - # Passes both tests.
10789 -ac_preproc_ok=:
10790 -break
10791 -fi
10792 -rm -f conftest.err conftest.$ac_ext
10793 -
10794 -done
10795 -# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
10796 -rm -f conftest.err conftest.$ac_ext
10797 -if $ac_preproc_ok; then
10798 - break
10799 -fi
10800 -
10801 - done
10802 - ac_cv_prog_CXXCPP=$CXXCPP
10803 -
10804 -fi
10805 - CXXCPP=$ac_cv_prog_CXXCPP
10806 -else
10807 - ac_cv_prog_CXXCPP=$CXXCPP
10808 -fi
10809 -echo "$as_me:$LINENO: result: $CXXCPP" >&5
10810 -echo "${ECHO_T}$CXXCPP" >&6
10811 -ac_preproc_ok=false
10812 -for ac_cxx_preproc_warn_flag in '' yes
10813 -do
10814 - # Use a header file that comes with gcc, so configuring glibc
10815 - # with a fresh cross-compiler works.
10816 - # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10817 - # <limits.h> exists even on freestanding compilers.
10818 - # On the NeXT, cc -E runs the code through the compiler's parser,
10819 - # not just through cpp. "Syntax error" is here to catch this case.
10820 - cat >conftest.$ac_ext <<_ACEOF
10821 -/* confdefs.h. */
10822 -_ACEOF
10823 -cat confdefs.h >>conftest.$ac_ext
10824 -cat >>conftest.$ac_ext <<_ACEOF
10825 -/* end confdefs.h. */
10826 -#ifdef __STDC__
10827 -# include <limits.h>
10828 -#else
10829 -# include <assert.h>
10830 -#endif
10831 - Syntax error
10832 -_ACEOF
10833 -if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10834 - (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10835 - ac_status=$?
10836 - grep -v '^ *+' conftest.er1 >conftest.err
10837 - rm -f conftest.er1
10838 - cat conftest.err >&5
10839 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
10840 - (exit $ac_status); } >/dev/null; then
10841 - if test -s conftest.err; then
10842 - ac_cpp_err=$ac_cxx_preproc_warn_flag
10843 - ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
10844 - else
10845 - ac_cpp_err=
10846 - fi
10847 -else
10848 - ac_cpp_err=yes
10849 -fi
10850 -if test -z "$ac_cpp_err"; then
10851 - :
10852 -else
10853 - echo "$as_me: failed program was:" >&5
10854 -sed 's/^/| /' conftest.$ac_ext >&5
10855 -
10856 - # Broken: fails on valid input.
10857 -continue
10858 -fi
10859 -rm -f conftest.err conftest.$ac_ext
10860 -
10861 - # OK, works on sane cases. Now check whether non-existent headers
10862 - # can be detected and how.
10863 - cat >conftest.$ac_ext <<_ACEOF
10864 -/* confdefs.h. */
10865 -_ACEOF
10866 -cat confdefs.h >>conftest.$ac_ext
10867 -cat >>conftest.$ac_ext <<_ACEOF
10868 -/* end confdefs.h. */
10869 -#include <ac_nonexistent.h>
10870 -_ACEOF
10871 -if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10872 - (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10873 - ac_status=$?
10874 - grep -v '^ *+' conftest.er1 >conftest.err
10875 - rm -f conftest.er1
10876 - cat conftest.err >&5
10877 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
10878 - (exit $ac_status); } >/dev/null; then
10879 - if test -s conftest.err; then
10880 - ac_cpp_err=$ac_cxx_preproc_warn_flag
10881 - ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
10882 - else
10883 - ac_cpp_err=
10884 - fi
10885 -else
10886 - ac_cpp_err=yes
10887 -fi
10888 -if test -z "$ac_cpp_err"; then
10889 - # Broken: success on invalid input.
10890 -continue
10891 -else
10892 - echo "$as_me: failed program was:" >&5
10893 -sed 's/^/| /' conftest.$ac_ext >&5
10894 -
10895 - # Passes both tests.
10896 -ac_preproc_ok=:
10897 -break
10898 -fi
10899 -rm -f conftest.err conftest.$ac_ext
10900 -
10901 -done
10902 -# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
10903 -rm -f conftest.err conftest.$ac_ext
10904 -if $ac_preproc_ok; then
10905 - :
10906 -else
10907 - { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
10908 -See \`config.log' for more details." >&5
10909 -echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
10910 -See \`config.log' for more details." >&2;}
10911 - { (exit 1); exit 1; }; }
10912 -fi
10913 -
10914 -ac_ext=cc
10915 -ac_cpp='$CXXCPP $CPPFLAGS'
10916 -ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10917 -ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10918 -ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10919 -
10920 -fi
10921 -
10922 -
10923 -ac_ext=f
10924 -ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
10925 -ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10926 -ac_compiler_gnu=$ac_cv_f77_compiler_gnu
10927 -if test -n "$ac_tool_prefix"; then
10928 - for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
10929 - do
10930 - # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
10931 -set dummy $ac_tool_prefix$ac_prog; ac_word=$2
10932 -echo "$as_me:$LINENO: checking for $ac_word" >&5
10933 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10934 -if test "${ac_cv_prog_F77+set}" = set; then
10935 - echo $ECHO_N "(cached) $ECHO_C" >&6
10936 -else
10937 - if test -n "$F77"; then
10938 - ac_cv_prog_F77="$F77" # Let the user override the test.
10939 -else
10940 -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10941 -for as_dir in $PATH
10942 -do
10943 - IFS=$as_save_IFS
10944 - test -z "$as_dir" && as_dir=.
10945 - for ac_exec_ext in '' $ac_executable_extensions; do
10946 - if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10947 - ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
10948 - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10949 - break 2
10950 - fi
10951 -done
10952 -done
10953 -
10954 -fi
10955 -fi
10956 -F77=$ac_cv_prog_F77
10957 -if test -n "$F77"; then
10958 - echo "$as_me:$LINENO: result: $F77" >&5
10959 -echo "${ECHO_T}$F77" >&6
10960 -else
10961 - echo "$as_me:$LINENO: result: no" >&5
10962 -echo "${ECHO_T}no" >&6
10963 -fi
10964 -
10965 - test -n "$F77" && break
10966 - done
10967 -fi
10968 -if test -z "$F77"; then
10969 - ac_ct_F77=$F77
10970 - for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
10971 -do
10972 - # Extract the first word of "$ac_prog", so it can be a program name with args.
10973 -set dummy $ac_prog; ac_word=$2
10974 -echo "$as_me:$LINENO: checking for $ac_word" >&5
10975 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10976 -if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
10977 - echo $ECHO_N "(cached) $ECHO_C" >&6
10978 -else
10979 - if test -n "$ac_ct_F77"; then
10980 - ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
10981 -else
10982 -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10983 -for as_dir in $PATH
10984 -do
10985 - IFS=$as_save_IFS
10986 - test -z "$as_dir" && as_dir=.
10987 - for ac_exec_ext in '' $ac_executable_extensions; do
10988 - if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10989 - ac_cv_prog_ac_ct_F77="$ac_prog"
10990 - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10991 - break 2
10992 - fi
10993 -done
10994 -done
10995 -
10996 -fi
10997 -fi
10998 -ac_ct_F77=$ac_cv_prog_ac_ct_F77
10999 -if test -n "$ac_ct_F77"; then
11000 - echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
11001 -echo "${ECHO_T}$ac_ct_F77" >&6
11002 -else
11003 - echo "$as_me:$LINENO: result: no" >&5
11004 -echo "${ECHO_T}no" >&6
11005 -fi
11006 -
11007 - test -n "$ac_ct_F77" && break
11008 +done
11009 done
11010
11011 - F77=$ac_ct_F77
11012 -fi
11013 -
11014 -
11015 -# Provide some information about the compiler.
11016 -echo "$as_me:5183:" \
11017 - "checking for Fortran 77 compiler version" >&5
11018 -ac_compiler=`set X $ac_compile; echo $2`
11019 -{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
11020 - (eval $ac_compiler --version </dev/null >&5) 2>&5
11021 - ac_status=$?
11022 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
11023 - (exit $ac_status); }
11024 -{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
11025 - (eval $ac_compiler -v </dev/null >&5) 2>&5
11026 - ac_status=$?
11027 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
11028 - (exit $ac_status); }
11029 -{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
11030 - (eval $ac_compiler -V </dev/null >&5) 2>&5
11031 - ac_status=$?
11032 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
11033 - (exit $ac_status); }
11034 -rm -f a.out
11035 -
11036 -# If we don't use `.F' as extension, the preprocessor is not run on the
11037 -# input file. (Note that this only needs to work for GNU compilers.)
11038 -ac_save_ext=$ac_ext
11039 -ac_ext=F
11040 -echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
11041 -echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
11042 -if test "${ac_cv_f77_compiler_gnu+set}" = set; then
11043 - echo $ECHO_N "(cached) $ECHO_C" >&6
11044 -else
11045 - cat >conftest.$ac_ext <<_ACEOF
11046 - program main
11047 -#ifndef __GNUC__
11048 - choke me
11049 -#endif
11050 -
11051 - end
11052 -_ACEOF
11053 -rm -f conftest.$ac_objext
11054 -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11055 - (eval $ac_compile) 2>conftest.er1
11056 - ac_status=$?
11057 - grep -v '^ *+' conftest.er1 >conftest.err
11058 - rm -f conftest.er1
11059 - cat conftest.err >&5
11060 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
11061 - (exit $ac_status); } &&
11062 - { ac_try='test -z "$ac_f77_werror_flag"
11063 - || test ! -s conftest.err'
11064 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11065 - (eval $ac_try) 2>&5
11066 - ac_status=$?
11067 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
11068 - (exit $ac_status); }; } &&
11069 - { ac_try='test -s conftest.$ac_objext'
11070 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11071 - (eval $ac_try) 2>&5
11072 - ac_status=$?
11073 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
11074 - (exit $ac_status); }; }; then
11075 - ac_compiler_gnu=yes
11076 -else
11077 - echo "$as_me: failed program was:" >&5
11078 -sed 's/^/| /' conftest.$ac_ext >&5
11079 -
11080 -ac_compiler_gnu=no
11081 -fi
11082 -rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11083 -ac_cv_f77_compiler_gnu=$ac_compiler_gnu
11084 -
11085 -fi
11086 -echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
11087 -echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
11088 -ac_ext=$ac_save_ext
11089 -ac_test_FFLAGS=${FFLAGS+set}
11090 -ac_save_FFLAGS=$FFLAGS
11091 -FFLAGS=
11092 -echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
11093 -echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
11094 -if test "${ac_cv_prog_f77_g+set}" = set; then
11095 - echo $ECHO_N "(cached) $ECHO_C" >&6
11096 -else
11097 - FFLAGS=-g
11098 -cat >conftest.$ac_ext <<_ACEOF
11099 - program main
11100 -
11101 - end
11102 -_ACEOF
11103 -rm -f conftest.$ac_objext
11104 -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11105 - (eval $ac_compile) 2>conftest.er1
11106 - ac_status=$?
11107 - grep -v '^ *+' conftest.er1 >conftest.err
11108 - rm -f conftest.er1
11109 - cat conftest.err >&5
11110 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
11111 - (exit $ac_status); } &&
11112 - { ac_try='test -z "$ac_f77_werror_flag"
11113 - || test ! -s conftest.err'
11114 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11115 - (eval $ac_try) 2>&5
11116 - ac_status=$?
11117 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
11118 - (exit $ac_status); }; } &&
11119 - { ac_try='test -s conftest.$ac_objext'
11120 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11121 - (eval $ac_try) 2>&5
11122 - ac_status=$?
11123 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
11124 - (exit $ac_status); }; }; then
11125 - ac_cv_prog_f77_g=yes
11126 -else
11127 - echo "$as_me: failed program was:" >&5
11128 -sed 's/^/| /' conftest.$ac_ext >&5
11129 -
11130 -ac_cv_prog_f77_g=no
11131 -fi
11132 -rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11133 -
11134 -fi
11135 -echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
11136 -echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
11137 -if test "$ac_test_FFLAGS" = set; then
11138 - FFLAGS=$ac_save_FFLAGS
11139 -elif test $ac_cv_prog_f77_g = yes; then
11140 - if test "x$ac_cv_f77_compiler_gnu" = xyes; then
11141 - FFLAGS="-g -O2"
11142 - else
11143 - FFLAGS="-g"
11144 - fi
11145 -else
11146 - if test "x$ac_cv_f77_compiler_gnu" = xyes; then
11147 - FFLAGS="-O2"
11148 - else
11149 - FFLAGS=
11150 - fi
11151 -fi
11152 -
11153 -G77=`test $ac_compiler_gnu = yes && echo yes`
11154 -ac_ext=c
11155 -ac_cpp='$CPP $CPPFLAGS'
11156 -ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11157 -ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11158 -ac_compiler_gnu=$ac_cv_c_compiler_gnu
11159 -
11160 -
11161 -
11162 -# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
11163 -
11164 -# find the maximum length of command line arguments
11165 -echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
11166 -echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
11167 -if test "${lt_cv_sys_max_cmd_len+set}" = set; then
11168 - echo $ECHO_N "(cached) $ECHO_C" >&6
11169 -else
11170 - i=0
11171 - teststring="ABCD"
11172 -
11173 - case $build_os in
11174 - msdosdjgpp*)
11175 - # On DJGPP, this test can blow up pretty badly due to problems in libc
11176 - # (any single argument exceeding 2000 bytes causes a buffer overrun
11177 - # during glob expansion). Even if it were fixed, the result of this
11178 - # check would be larger than it should be.
11179 - lt_cv_sys_max_cmd_len=12288; # 12K is about right
11180 - ;;
11181 -
11182 - gnu*)
11183 - # Under GNU Hurd, this test is not required because there is
11184 - # no limit to the length of command line arguments.
11185 - # Libtool will interpret -1 as no limit whatsoever
11186 - lt_cv_sys_max_cmd_len=-1;
11187 - ;;
11188 -
11189 - cygwin* | mingw*)
11190 - # On Win9x/ME, this test blows up -- it succeeds, but takes
11191 - # about 5 minutes as the teststring grows exponentially.
11192 - # Worse, since 9x/ME are not pre-emptively multitasking,
11193 - # you end up with a "frozen" computer, even though with patience
11194 - # the test eventually succeeds (with a max line length of 256k).
11195 - # Instead, let's just punt: use the minimum linelength reported by
11196 - # all of the supported platforms: 8192 (on NT/2K/XP).
11197 - lt_cv_sys_max_cmd_len=8192;
11198 - ;;
11199 -
11200 - amigaos*)
11201 - # On AmigaOS with pdksh, this test takes hours, literally.
11202 - # So we just punt and use a minimum line length of 8192.
11203 - lt_cv_sys_max_cmd_len=8192;
11204 - ;;
11205 -
11206 - netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
11207 - # This has been around since 386BSD, at least. Likely further.
11208 - if test -x /sbin/sysctl; then
11209 - lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
11210 - elif test -x /usr/sbin/sysctl; then
11211 - lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
11212 - else
11213 - lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
11214 - fi
11215 - # And add a safety zone
11216 - lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
11217 - lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
11218 - ;;
11219 - osf*)
11220 - # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
11221 - # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
11222 - # nice to cause kernel panics so lets avoid the loop below.
11223 - # First set a reasonable default.
11224 - lt_cv_sys_max_cmd_len=16384
11225 - #
11226 - if test -x /sbin/sysconfig; then
11227 - case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
11228 - *1*) lt_cv_sys_max_cmd_len=-1 ;;
11229 - esac
11230 - fi
11231 - ;;
11232 - *)
11233 - # If test is not a shell built-in, we'll probably end up computing a
11234 - # maximum length that is only half of the actual maximum length, but
11235 - # we can't tell.
11236 - SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
11237 - while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
11238 - = "XX$teststring") >/dev/null 2>&1 &&
11239 - new_result=`expr "X$teststring" : ".*" 2>&1` &&
11240 - lt_cv_sys_max_cmd_len=$new_result &&
11241 - test $i != 17 # 1/2 MB should be enough
11242 - do
11243 - i=`expr $i + 1`
11244 - teststring=$teststring$teststring
11245 - done
11246 - teststring=
11247 - # Add a significant safety factor because C++ compilers can tack on massive
11248 - # amounts of additional arguments before passing them to the linker.
11249 - # It appears as though 1/2 is a usable value.
11250 - lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
11251 - ;;
11252 - esac
11253 -
11254 -fi
11255 -
11256 -if test -n $lt_cv_sys_max_cmd_len ; then
11257 - echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
11258 -echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
11259 -else
11260 - echo "$as_me:$LINENO: result: none" >&5
11261 -echo "${ECHO_T}none" >&6
11262 -fi
11263 -
11264 -
11265 -
11266 -
11267 -# Check for command to grab the raw symbol name followed by C symbol from nm.
11268 -echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
11269 -echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
11270 -if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
11271 - echo $ECHO_N "(cached) $ECHO_C" >&6
11272 -else
11273 -
11274 -# These are sane defaults that work on at least a few old systems.
11275 -# [They come from Ultrix. What could be older than Ultrix?!! ;)]
11276 -
11277 -# Character class describing NM global symbol codes.
11278 -symcode='[BCDEGRST]'
11279 -
11280 -# Regexp to match symbols that can be accessed directly from C.
11281 -sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
11282 -
11283 -# Transform an extracted symbol line into a proper C declaration
11284 -lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
11285 -
11286 -# Transform an extracted symbol line into symbol name and symbol address
11287 -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'"
11288 -
11289 -# Define system-specific variables.
11290 -case $host_os in
11291 -aix*)
11292 - symcode='[BCDT]'
11293 - ;;
11294 -cygwin* | mingw* | pw32*)
11295 - symcode='[ABCDGISTW]'
11296 - ;;
11297 -hpux*) # Its linker distinguishes data from code symbols
11298 - if test "$host_cpu" = ia64; then
11299 - symcode='[ABCDEGRST]'
11300 - fi
11301 - lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
11302 - 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'"
11303 - ;;
11304 -linux*)
11305 - if test "$host_cpu" = ia64; then
11306 - symcode='[ABCDGIRSTW]'
11307 - lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
11308 - 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'"
11309 - fi
11310 - ;;
11311 -irix* | nonstopux*)
11312 - symcode='[BCDEGRST]'
11313 - ;;
11314 -osf*)
11315 - symcode='[BCDEGQRST]'
11316 - ;;
11317 -solaris* | sysv5*)
11318 - symcode='[BDRT]'
11319 - ;;
11320 -sysv4)
11321 - symcode='[DFNSTU]'
11322 - ;;
11323 -esac
11324 -
11325 -# Handle CRLF in mingw tool chain
11326 -opt_cr=
11327 -case $build_os in
11328 -mingw*)
11329 - opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
11330 - ;;
11331 -esac
11332 -
11333 -# If we're using GNU nm, then use its standard symbol codes.
11334 -case `$NM -V 2>&1` in
11335 -*GNU* | *'with BFD'*)
11336 - symcode='[ABCDGIRSTW]' ;;
11337 -esac
11338 -
11339 -# Try without a prefix undercore, then with it.
11340 -for ac_symprfx in "" "_"; do
11341 -
11342 - # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
11343 - symxfrm="\\1 $ac_symprfx\\2 \\2"
11344 -
11345 - # Write the raw and C identifiers.
11346 - lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
11347 -
11348 - # Check to see that the pipe works correctly.
11349 - pipe_works=no
11350 -
11351 - rm -f conftest*
11352 - cat > conftest.$ac_ext <<EOF
11353 -#ifdef __cplusplus
11354 -extern "C" {
11355 -#endif
11356 -char nm_test_var;
11357 -void nm_test_func(){}
11358 -#ifdef __cplusplus
11359 -}
11360 -#endif
11361 -int main(){nm_test_var='a';nm_test_func();return(0);}
11362 -EOF
11363 -
11364 - if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11365 - (eval $ac_compile) 2>&5
11366 - ac_status=$?
11367 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
11368 - (exit $ac_status); }; then
11369 - # Now try to grab the symbols.
11370 - nlist=conftest.nm
11371 - if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
11372 - (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
11373 - ac_status=$?
11374 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
11375 - (exit $ac_status); } && test -s "$nlist"; then
11376 - # Try sorting and uniquifying the output.
11377 - if sort "$nlist" | uniq > "$nlist"T; then
11378 - mv -f "$nlist"T "$nlist"
11379 - else
11380 - rm -f "$nlist"T
11381 - fi
11382 -
11383 - # Make sure that we snagged all the symbols we need.
11384 - if grep ' nm_test_var$' "$nlist" >/dev/null; then
11385 - if grep ' nm_test_func$' "$nlist" >/dev/null; then
11386 - cat <<EOF > conftest.$ac_ext
11387 -#ifdef __cplusplus
11388 -extern "C" {
11389 -#endif
11390 -
11391 -EOF
11392 - # Now generate the symbol file.
11393 - eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
11394 -
11395 - cat <<EOF >> conftest.$ac_ext
11396 -#if defined (__STDC__) && __STDC__
11397 -# define lt_ptr_t void *
11398 -#else
11399 -# define lt_ptr_t char *
11400 -# define const
11401 -#endif
11402 -
11403 -/* The mapping between symbol names and symbols. */
11404 -const struct {
11405 - const char *name;
11406 - lt_ptr_t address;
11407 -}
11408 -lt_preloaded_symbols[] =
11409 -{
11410 -EOF
11411 - $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
11412 - cat <<\EOF >> conftest.$ac_ext
11413 - {0, (lt_ptr_t) 0}
11414 -};
11415 -
11416 -#ifdef __cplusplus
11417 -}
11418 -#endif
11419 -EOF
11420 - # Now try linking the two files.
11421 - mv conftest.$ac_objext conftstm.$ac_objext
11422 - lt_save_LIBS="$LIBS"
11423 - lt_save_CFLAGS="$CFLAGS"
11424 - LIBS="conftstm.$ac_objext"
11425 - CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
11426 - if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11427 - (eval $ac_link) 2>&5
11428 - ac_status=$?
11429 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
11430 - (exit $ac_status); } && test -s conftest${ac_exeext}; then
11431 - pipe_works=yes
11432 - fi
11433 - LIBS="$lt_save_LIBS"
11434 - CFLAGS="$lt_save_CFLAGS"
11435 - else
11436 - echo "cannot find nm_test_func in $nlist" >&5
11437 - fi
11438 - else
11439 - echo "cannot find nm_test_var in $nlist" >&5
11440 - fi
11441 - else
11442 - echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
11443 - fi
11444 - else
11445 - echo "$progname: failed program was:" >&5
11446 - cat conftest.$ac_ext >&5
11447 - fi
11448 - rm -f conftest* conftst*
11449 -
11450 - # Do not use the global_symbol_pipe unless it works.
11451 - if test "$pipe_works" = yes; then
11452 - break
11453 - else
11454 - lt_cv_sys_global_symbol_pipe=
11455 - fi
11456 -done
11457 -
11458 -fi
11459 -
11460 -if test -z "$lt_cv_sys_global_symbol_pipe"; then
11461 - lt_cv_sys_global_symbol_to_cdecl=
11462 -fi
11463 -if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
11464 - echo "$as_me:$LINENO: result: failed" >&5
11465 -echo "${ECHO_T}failed" >&6
11466 -else
11467 - echo "$as_me:$LINENO: result: ok" >&5
11468 -echo "${ECHO_T}ok" >&6
11469 -fi
11470 -
11471 -echo "$as_me:$LINENO: checking for objdir" >&5
11472 -echo $ECHO_N "checking for objdir... $ECHO_C" >&6
11473 -if test "${lt_cv_objdir+set}" = set; then
11474 - echo $ECHO_N "(cached) $ECHO_C" >&6
11475 -else
11476 - rm -f .libs 2>/dev/null
11477 -mkdir .libs 2>/dev/null
11478 -if test -d .libs; then
11479 - lt_cv_objdir=.libs
11480 -else
11481 - # MS-DOS does not allow filenames that begin with a dot.
11482 - lt_cv_objdir=_libs
11483 -fi
11484 -rmdir .libs 2>/dev/null
11485 -fi
11486 -echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
11487 -echo "${ECHO_T}$lt_cv_objdir" >&6
11488 -objdir=$lt_cv_objdir
11489 -
11490 -
11491 -
11492 -
11493 -
11494 -case $host_os in
11495 -aix3*)
11496 - # AIX sometimes has problems with the GCC collect2 program. For some
11497 - # reason, if we set the COLLECT_NAMES environment variable, the problems
11498 - # vanish in a puff of smoke.
11499 - if test "X${COLLECT_NAMES+set}" != Xset; then
11500 - COLLECT_NAMES=
11501 - export COLLECT_NAMES
11502 - fi
11503 - ;;
11504 -esac
11505 -
11506 -# Sed substitution that helps us do robust quoting. It backslashifies
11507 -# metacharacters that are still active within double-quoted strings.
11508 -Xsed='sed -e 1s/^X//'
11509 -sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
11510 -
11511 -# Same as above, but do not quote variable references.
11512 -double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
11513 -
11514 -# Sed substitution to delay expansion of an escaped shell variable in a
11515 -# double_quote_subst'ed string.
11516 -delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
11517 -
11518 -# Sed substitution to avoid accidental globbing in evaled expressions
11519 -no_glob_subst='s/\*/\\\*/g'
11520 -
11521 -# Constants:
11522 -rm="rm -f"
11523 -
11524 -# Global variables:
11525 -default_ofile=libtool
11526 -can_build_shared=yes
11527 -
11528 -# All known linkers require a `.a' archive for static linking (except MSVC,
11529 -# which needs '.lib').
11530 -libext=a
11531 -ltmain="$ac_aux_dir/ltmain.sh"
11532 -ofile="$default_ofile"
11533 -with_gnu_ld="$lt_cv_prog_gnu_ld"
11534 -
11535 -if test -n "$ac_tool_prefix"; then
11536 - # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
11537 -set dummy ${ac_tool_prefix}ar; ac_word=$2
11538 -echo "$as_me:$LINENO: checking for $ac_word" >&5
11539 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11540 -if test "${ac_cv_prog_AR+set}" = set; then
11541 - echo $ECHO_N "(cached) $ECHO_C" >&6
11542 -else
11543 - if test -n "$AR"; then
11544 - ac_cv_prog_AR="$AR" # Let the user override the test.
11545 -else
11546 -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11547 -for as_dir in $PATH
11548 -do
11549 - IFS=$as_save_IFS
11550 - test -z "$as_dir" && as_dir=.
11551 - for ac_exec_ext in '' $ac_executable_extensions; do
11552 - if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11553 - ac_cv_prog_AR="${ac_tool_prefix}ar"
11554 - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11555 - break 2
11556 - fi
11557 -done
11558 -done
11559 -
11560 -fi
11561 -fi
11562 -AR=$ac_cv_prog_AR
11563 -if test -n "$AR"; then
11564 - echo "$as_me:$LINENO: result: $AR" >&5
11565 -echo "${ECHO_T}$AR" >&6
11566 -else
11567 - echo "$as_me:$LINENO: result: no" >&5
11568 -echo "${ECHO_T}no" >&6
11569 -fi
11570 -
11571 -fi
11572 -if test -z "$ac_cv_prog_AR"; then
11573 - ac_ct_AR=$AR
11574 - # Extract the first word of "ar", so it can be a program name with args.
11575 -set dummy ar; ac_word=$2
11576 -echo "$as_me:$LINENO: checking for $ac_word" >&5
11577 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11578 -if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
11579 - echo $ECHO_N "(cached) $ECHO_C" >&6
11580 -else
11581 - if test -n "$ac_ct_AR"; then
11582 - ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
11583 -else
11584 -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11585 -for as_dir in $PATH
11586 -do
11587 - IFS=$as_save_IFS
11588 - test -z "$as_dir" && as_dir=.
11589 - for ac_exec_ext in '' $ac_executable_extensions; do
11590 - if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11591 - ac_cv_prog_ac_ct_AR="ar"
11592 - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11593 - break 2
11594 - fi
11595 -done
11596 -done
11597 -
11598 - test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
11599 -fi
11600 -fi
11601 -ac_ct_AR=$ac_cv_prog_ac_ct_AR
11602 -if test -n "$ac_ct_AR"; then
11603 - echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
11604 -echo "${ECHO_T}$ac_ct_AR" >&6
11605 -else
11606 - echo "$as_me:$LINENO: result: no" >&5
11607 -echo "${ECHO_T}no" >&6
11608 -fi
11609 -
11610 - AR=$ac_ct_AR
11611 -else
11612 - AR="$ac_cv_prog_AR"
11613 -fi
11614 -
11615 -if test -n "$ac_tool_prefix"; then
11616 - # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
11617 -set dummy ${ac_tool_prefix}ranlib; ac_word=$2
11618 -echo "$as_me:$LINENO: checking for $ac_word" >&5
11619 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11620 -if test "${ac_cv_prog_RANLIB+set}" = set; then
11621 - echo $ECHO_N "(cached) $ECHO_C" >&6
11622 -else
11623 - if test -n "$RANLIB"; then
11624 - ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
11625 -else
11626 -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11627 -for as_dir in $PATH
11628 -do
11629 - IFS=$as_save_IFS
11630 - test -z "$as_dir" && as_dir=.
11631 - for ac_exec_ext in '' $ac_executable_extensions; do
11632 - if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11633 - ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
11634 - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11635 - break 2
11636 - fi
11637 -done
11638 -done
11639 -
11640 -fi
11641 -fi
11642 -RANLIB=$ac_cv_prog_RANLIB
11643 -if test -n "$RANLIB"; then
11644 - echo "$as_me:$LINENO: result: $RANLIB" >&5
11645 -echo "${ECHO_T}$RANLIB" >&6
11646 -else
11647 - echo "$as_me:$LINENO: result: no" >&5
11648 -echo "${ECHO_T}no" >&6
11649 -fi
11650 -
11651 -fi
11652 -if test -z "$ac_cv_prog_RANLIB"; then
11653 - ac_ct_RANLIB=$RANLIB
11654 - # Extract the first word of "ranlib", so it can be a program name with args.
11655 -set dummy ranlib; ac_word=$2
11656 -echo "$as_me:$LINENO: checking for $ac_word" >&5
11657 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11658 -if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
11659 - echo $ECHO_N "(cached) $ECHO_C" >&6
11660 -else
11661 - if test -n "$ac_ct_RANLIB"; then
11662 - ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
11663 -else
11664 -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11665 -for as_dir in $PATH
11666 -do
11667 - IFS=$as_save_IFS
11668 - test -z "$as_dir" && as_dir=.
11669 - for ac_exec_ext in '' $ac_executable_extensions; do
11670 - if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11671 - ac_cv_prog_ac_ct_RANLIB="ranlib"
11672 - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11673 - break 2
11674 - fi
11675 -done
11676 -done
11677 -
11678 - test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
11679 -fi
11680 -fi
11681 -ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
11682 -if test -n "$ac_ct_RANLIB"; then
11683 - echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
11684 -echo "${ECHO_T}$ac_ct_RANLIB" >&6
11685 -else
11686 - echo "$as_me:$LINENO: result: no" >&5
11687 -echo "${ECHO_T}no" >&6
11688 -fi
11689 -
11690 - RANLIB=$ac_ct_RANLIB
11691 -else
11692 - RANLIB="$ac_cv_prog_RANLIB"
11693 -fi
11694 -
11695 -if test -n "$ac_tool_prefix"; then
11696 - # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
11697 -set dummy ${ac_tool_prefix}strip; ac_word=$2
11698 -echo "$as_me:$LINENO: checking for $ac_word" >&5
11699 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11700 -if test "${ac_cv_prog_STRIP+set}" = set; then
11701 - echo $ECHO_N "(cached) $ECHO_C" >&6
11702 -else
11703 - if test -n "$STRIP"; then
11704 - ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
11705 -else
11706 -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11707 -for as_dir in $PATH
11708 -do
11709 - IFS=$as_save_IFS
11710 - test -z "$as_dir" && as_dir=.
11711 - for ac_exec_ext in '' $ac_executable_extensions; do
11712 - if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11713 - ac_cv_prog_STRIP="${ac_tool_prefix}strip"
11714 - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11715 - break 2
11716 - fi
11717 -done
11718 -done
11719 -
11720 -fi
11721 -fi
11722 -STRIP=$ac_cv_prog_STRIP
11723 -if test -n "$STRIP"; then
11724 - echo "$as_me:$LINENO: result: $STRIP" >&5
11725 -echo "${ECHO_T}$STRIP" >&6
11726 -else
11727 - echo "$as_me:$LINENO: result: no" >&5
11728 -echo "${ECHO_T}no" >&6
11729 -fi
11730 -
11731 -fi
11732 -if test -z "$ac_cv_prog_STRIP"; then
11733 - ac_ct_STRIP=$STRIP
11734 - # Extract the first word of "strip", so it can be a program name with args.
11735 -set dummy strip; ac_word=$2
11736 -echo "$as_me:$LINENO: checking for $ac_word" >&5
11737 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11738 -if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
11739 - echo $ECHO_N "(cached) $ECHO_C" >&6
11740 -else
11741 - if test -n "$ac_ct_STRIP"; then
11742 - ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
11743 -else
11744 -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11745 -for as_dir in $PATH
11746 -do
11747 - IFS=$as_save_IFS
11748 - test -z "$as_dir" && as_dir=.
11749 - for ac_exec_ext in '' $ac_executable_extensions; do
11750 - if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11751 - ac_cv_prog_ac_ct_STRIP="strip"
11752 - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11753 - break 2
11754 - fi
11755 -done
11756 -done
11757 -
11758 - test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
11759 -fi
11760 -fi
11761 -ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
11762 -if test -n "$ac_ct_STRIP"; then
11763 - echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
11764 -echo "${ECHO_T}$ac_ct_STRIP" >&6
11765 -else
11766 - echo "$as_me:$LINENO: result: no" >&5
11767 -echo "${ECHO_T}no" >&6
11768 -fi
11769 -
11770 - STRIP=$ac_ct_STRIP
11771 -else
11772 - STRIP="$ac_cv_prog_STRIP"
11773 -fi
11774 -
11775 -
11776 -old_CC="$CC"
11777 -old_CFLAGS="$CFLAGS"
11778 -
11779 -# Set sane defaults for various variables
11780 -test -z "$AR" && AR=ar
11781 -test -z "$AR_FLAGS" && AR_FLAGS=cru
11782 -test -z "$AS" && AS=as
11783 -test -z "$CC" && CC=cc
11784 -test -z "$LTCC" && LTCC=$CC
11785 -test -z "$DLLTOOL" && DLLTOOL=dlltool
11786 -test -z "$LD" && LD=ld
11787 -test -z "$LN_S" && LN_S="ln -s"
11788 -test -z "$MAGIC_CMD" && MAGIC_CMD=file
11789 -test -z "$NM" && NM=nm
11790 -test -z "$SED" && SED=sed
11791 -test -z "$OBJDUMP" && OBJDUMP=objdump
11792 -test -z "$RANLIB" && RANLIB=:
11793 -test -z "$STRIP" && STRIP=:
11794 -test -z "$ac_objext" && ac_objext=o
11795 -
11796 -# Determine commands to create old-style static archives.
11797 -old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
11798 -old_postinstall_cmds='chmod 644 $oldlib'
11799 -old_postuninstall_cmds=
11800 -
11801 -if test -n "$RANLIB"; then
11802 - case $host_os in
11803 - openbsd*)
11804 - old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
11805 - ;;
11806 - *)
11807 - old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
11808 - ;;
11809 - esac
11810 - old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
11811 -fi
11812 -
11813 -for cc_temp in $compiler""; do
11814 - case $cc_temp in
11815 - compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
11816 - distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
11817 - \-*) ;;
11818 - *) break;;
11819 - esac
11820 -done
11821 -cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
11822 -
11823 -
11824 -# Only perform the check for file, if the check method requires it
11825 -case $deplibs_check_method in
11826 -file_magic*)
11827 - if test "$file_magic_cmd" = '$MAGIC_CMD'; then
11828 - echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
11829 -echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
11830 -if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
11831 - echo $ECHO_N "(cached) $ECHO_C" >&6
11832 -else
11833 - case $MAGIC_CMD in
11834 -[\\/*] | ?:[\\/]*)
11835 - lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
11836 - ;;
11837 -*)
11838 - lt_save_MAGIC_CMD="$MAGIC_CMD"
11839 - lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11840 - ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
11841 - for ac_dir in $ac_dummy; do
11842 - IFS="$lt_save_ifs"
11843 - test -z "$ac_dir" && ac_dir=.
11844 - if test -f $ac_dir/${ac_tool_prefix}file; then
11845 - lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
11846 - if test -n "$file_magic_test_file"; then
11847 - case $deplibs_check_method in
11848 - "file_magic "*)
11849 - file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
11850 - MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
11851 - if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
11852 - $EGREP "$file_magic_regex" > /dev/null; then
11853 - :
11854 - else
11855 - cat <<EOF 1>&2
11856 -
11857 -*** Warning: the command libtool uses to detect shared libraries,
11858 -*** $file_magic_cmd, produces output that libtool cannot recognize.
11859 -*** The result is that libtool may fail to recognize shared libraries
11860 -*** as such. This will affect the creation of libtool libraries that
11861 -*** depend on shared libraries, but programs linked with such libtool
11862 -*** libraries will work regardless of this problem. Nevertheless, you
11863 -*** may want to report the problem to your system manager and/or to
11864 -*** bug-libtool@gnu.org
11865 -
11866 -EOF
11867 - fi ;;
11868 - esac
11869 - fi
11870 - break
11871 - fi
11872 - done
11873 - IFS="$lt_save_ifs"
11874 - MAGIC_CMD="$lt_save_MAGIC_CMD"
11875 - ;;
11876 -esac
11877 -fi
11878 -
11879 -MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
11880 -if test -n "$MAGIC_CMD"; then
11881 - echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
11882 -echo "${ECHO_T}$MAGIC_CMD" >&6
11883 -else
11884 - echo "$as_me:$LINENO: result: no" >&5
11885 -echo "${ECHO_T}no" >&6
11886 -fi
11887 -
11888 -if test -z "$lt_cv_path_MAGIC_CMD"; then
11889 - if test -n "$ac_tool_prefix"; then
11890 - echo "$as_me:$LINENO: checking for file" >&5
11891 -echo $ECHO_N "checking for file... $ECHO_C" >&6
11892 -if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
11893 - echo $ECHO_N "(cached) $ECHO_C" >&6
11894 -else
11895 - case $MAGIC_CMD in
11896 -[\\/*] | ?:[\\/]*)
11897 - lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
11898 - ;;
11899 -*)
11900 - lt_save_MAGIC_CMD="$MAGIC_CMD"
11901 - lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11902 - ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
11903 - for ac_dir in $ac_dummy; do
11904 - IFS="$lt_save_ifs"
11905 - test -z "$ac_dir" && ac_dir=.
11906 - if test -f $ac_dir/file; then
11907 - lt_cv_path_MAGIC_CMD="$ac_dir/file"
11908 - if test -n "$file_magic_test_file"; then
11909 - case $deplibs_check_method in
11910 - "file_magic "*)
11911 - file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
11912 - MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
11913 - if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
11914 - $EGREP "$file_magic_regex" > /dev/null; then
11915 - :
11916 - else
11917 - cat <<EOF 1>&2
11918 -
11919 -*** Warning: the command libtool uses to detect shared libraries,
11920 -*** $file_magic_cmd, produces output that libtool cannot recognize.
11921 -*** The result is that libtool may fail to recognize shared libraries
11922 -*** as such. This will affect the creation of libtool libraries that
11923 -*** depend on shared libraries, but programs linked with such libtool
11924 -*** libraries will work regardless of this problem. Nevertheless, you
11925 -*** may want to report the problem to your system manager and/or to
11926 -*** bug-libtool@gnu.org
11927 -
11928 -EOF
11929 - fi ;;
11930 - esac
11931 - fi
11932 - break
11933 - fi
11934 - done
11935 - IFS="$lt_save_ifs"
11936 - MAGIC_CMD="$lt_save_MAGIC_CMD"
11937 - ;;
11938 -esac
11939 -fi
11940 -
11941 -MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
11942 -if test -n "$MAGIC_CMD"; then
11943 - echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
11944 -echo "${ECHO_T}$MAGIC_CMD" >&6
11945 -else
11946 - echo "$as_me:$LINENO: result: no" >&5
11947 -echo "${ECHO_T}no" >&6
11948 -fi
11949 -
11950 - else
11951 - MAGIC_CMD=:
11952 - fi
11953 -fi
11954 -
11955 - fi
11956 - ;;
11957 -esac
11958 -
11959 -enable_dlopen=no
11960 -enable_win32_dll=no
11961 -
11962 -# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
11963 -if test "${enable_libtool_lock+set}" = set; then
11964 - enableval="$enable_libtool_lock"
11965 -
11966 -fi;
11967 -test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
11968 -
11969 -
11970 -# Check whether --with-pic or --without-pic was given.
11971 -if test "${with_pic+set}" = set; then
11972 - withval="$with_pic"
11973 - pic_mode="$withval"
11974 -else
11975 - pic_mode=default
11976 -fi;
11977 -test -z "$pic_mode" && pic_mode=default
11978 -
11979 -# Use C for the default configuration in the libtool script
11980 -tagname=
11981 -lt_save_CC="$CC"
11982 -ac_ext=c
11983 -ac_cpp='$CPP $CPPFLAGS'
11984 -ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11985 -ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11986 -ac_compiler_gnu=$ac_cv_c_compiler_gnu
11987 -
11988 -
11989 -# Source file extension for C test sources.
11990 -ac_ext=c
11991 -
11992 -# Object file extension for compiled C test sources.
11993 -objext=o
11994 -objext=$objext
11995 -
11996 -# Code to be used in simple compile tests
11997 -lt_simple_compile_test_code="int some_variable = 0;\n"
11998 -
11999 -# Code to be used in simple link tests
12000 -lt_simple_link_test_code='int main(){return(0);}\n'
12001 -
12002 -
12003 -# If no C compiler was specified, use CC.
12004 -LTCC=${LTCC-"$CC"}
12005 -
12006 -# Allow CC to be a program name with arguments.
12007 -compiler=$CC
12008 -
12009 -
12010 -# save warnings/boilerplate of simple test code
12011 -ac_outfile=conftest.$ac_objext
12012 -printf "$lt_simple_compile_test_code" >conftest.$ac_ext
12013 -eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
12014 -_lt_compiler_boilerplate=`cat conftest.err`
12015 -$rm conftest*
12016 -
12017 -ac_outfile=conftest.$ac_objext
12018 -printf "$lt_simple_link_test_code" >conftest.$ac_ext
12019 -eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
12020 -_lt_linker_boilerplate=`cat conftest.err`
12021 -$rm conftest*
12022 -
12023 -
12024 -#
12025 -# Check for any special shared library compilation flags.
12026 -#
12027 -lt_prog_cc_shlib=
12028 -if test "$GCC" = no; then
12029 - case $host_os in
12030 - sco3.2v5*)
12031 - lt_prog_cc_shlib='-belf'
12032 - ;;
12033 - esac
12034 -fi
12035 -if test -n "$lt_prog_cc_shlib"; then
12036 - { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5
12037 -echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;}
12038 - if echo "$old_CC $old_CFLAGS " | grep "[ ]$lt_prog_cc_shlib[ ]" >/dev/null; then :
12039 - else
12040 - { echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
12041 -echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
12042 - lt_cv_prog_cc_can_build_shared=no
12043 - fi
12044 -fi
12045 -
12046 -
12047 -#
12048 -# Check to make sure the static flag actually works.
12049 -#
12050 -echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5
12051 -echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6
12052 -if test "${lt_prog_compiler_static_works+set}" = set; then
12053 - echo $ECHO_N "(cached) $ECHO_C" >&6
12054 -else
12055 - lt_prog_compiler_static_works=no
12056 - save_LDFLAGS="$LDFLAGS"
12057 - LDFLAGS="$LDFLAGS $lt_prog_compiler_static"
12058 - printf "$lt_simple_link_test_code" > conftest.$ac_ext
12059 - if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
12060 - # The linker can only warn and ignore the option if not recognized
12061 - # So say no if there are warnings
12062 - if test -s conftest.err; then
12063 - # Append any errors to the config.log.
12064 - cat conftest.err 1>&5
12065 - $echo "X$_lt_linker_boilerplate" | $Xsed > conftest.exp
12066 - $SED '/^$/d' conftest.err >conftest.er2
12067 - if diff conftest.exp conftest.er2 >/dev/null; then
12068 - lt_prog_compiler_static_works=yes
12069 - fi
12070 - else
12071 - lt_prog_compiler_static_works=yes
12072 - fi
12073 - fi
12074 - $rm conftest*
12075 - LDFLAGS="$save_LDFLAGS"
12076 -
12077 -fi
12078 -echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
12079 -echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
12080 -
12081 -if test x"$lt_prog_compiler_static_works" = xyes; then
12082 - :
12083 -else
12084 - lt_prog_compiler_static=
12085 -fi
12086 -
12087 -
12088 -
12089 -
12090 -lt_prog_compiler_no_builtin_flag=
12091 -
12092 -if test "$GCC" = yes; then
12093 - lt_prog_compiler_no_builtin_flag=' -fno-builtin'
12094 -
12095 -
12096 -echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
12097 -echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
12098 -if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
12099 - echo $ECHO_N "(cached) $ECHO_C" >&6
12100 -else
12101 - lt_cv_prog_compiler_rtti_exceptions=no
12102 - ac_outfile=conftest.$ac_objext
12103 - printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12104 - lt_compiler_flag="-fno-rtti -fno-exceptions"
12105 - # Insert the option either (1) after the last *FLAGS variable, or
12106 - # (2) before a word containing "conftest.", or (3) at the end.
12107 - # Note that $ac_compile itself does not contain backslashes and begins
12108 - # with a dollar sign (not a hyphen), so the echo should work correctly.
12109 - # The option is referenced via a variable to avoid confusing sed.
12110 - lt_compile=`echo "$ac_compile" | $SED \
12111 - -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12112 - -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12113 - -e 's:$: $lt_compiler_flag:'`
12114 - (eval echo "\"\$as_me:6281: $lt_compile\"" >&5)
12115 - (eval "$lt_compile" 2>conftest.err)
12116 - ac_status=$?
12117 - cat conftest.err >&5
12118 - echo "$as_me:6285: \$? = $ac_status" >&5
12119 - if (exit $ac_status) && test -s "$ac_outfile"; then
12120 - # The compiler can only warn and ignore the option if not recognized
12121 - # So say no if there are warnings other than the usual output.
12122 - $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
12123 - $SED '/^$/d' conftest.err >conftest.er2
12124 - if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
12125 - lt_cv_prog_compiler_rtti_exceptions=yes
12126 - fi
12127 - fi
12128 - $rm conftest*
12129 -
12130 -fi
12131 -echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
12132 -echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
12133 -
12134 -if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
12135 - lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
12136 -else
12137 - :
12138 -fi
12139 -
12140 -fi
12141 -
12142 -lt_prog_compiler_wl=
12143 -lt_prog_compiler_pic=
12144 -lt_prog_compiler_static=
12145 -
12146 -echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
12147 -echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
12148 -
12149 - if test "$GCC" = yes; then
12150 - lt_prog_compiler_wl='-Wl,'
12151 - lt_prog_compiler_static='-static'
12152 -
12153 - case $host_os in
12154 - aix*)
12155 - # All AIX code is PIC.
12156 - if test "$host_cpu" = ia64; then
12157 - # AIX 5 now supports IA64 processor
12158 - lt_prog_compiler_static='-Bstatic'
12159 - fi
12160 - ;;
12161 -
12162 - amigaos*)
12163 - # FIXME: we need at least 68020 code to build shared libraries, but
12164 - # adding the `-m68020' flag to GCC prevents building anything better,
12165 - # like `-m68040'.
12166 - lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
12167 - ;;
12168 -
12169 - beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12170 - # PIC is the default for these OSes.
12171 - ;;
12172 -
12173 - mingw* | pw32* | os2*)
12174 - # This hack is so that the source file can tell whether it is being
12175 - # built for inclusion in a dll (and should export symbols for example).
12176 - lt_prog_compiler_pic='-DDLL_EXPORT'
12177 - ;;
12178 -
12179 - darwin* | rhapsody*)
12180 - # PIC is the default on this platform
12181 - # Common symbols not allowed in MH_DYLIB files
12182 - lt_prog_compiler_pic='-fno-common'
12183 - ;;
12184 -
12185 - msdosdjgpp*)
12186 - # Just because we use GCC doesn't mean we suddenly get shared libraries
12187 - # on systems that don't support them.
12188 - lt_prog_compiler_can_build_shared=no
12189 - enable_shared=no
12190 - ;;
12191 -
12192 - sysv4*MP*)
12193 - if test -d /usr/nec; then
12194 - lt_prog_compiler_pic=-Kconform_pic
12195 - fi
12196 - ;;
12197 -
12198 - hpux*)
12199 - # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12200 - # not for PA HP-UX.
12201 - case $host_cpu in
12202 - hppa*64*|ia64*)
12203 - # +Z the default
12204 - ;;
12205 - *)
12206 - lt_prog_compiler_pic='-fPIC'
12207 - ;;
12208 - esac
12209 - ;;
12210 -
12211 - *)
12212 - lt_prog_compiler_pic='-fPIC'
12213 - ;;
12214 - esac
12215 - else
12216 - # PORTME Check for flag to pass linker flags through the system compiler.
12217 - case $host_os in
12218 - aix*)
12219 - lt_prog_compiler_wl='-Wl,'
12220 - if test "$host_cpu" = ia64; then
12221 - # AIX 5 now supports IA64 processor
12222 - lt_prog_compiler_static='-Bstatic'
12223 - else
12224 - lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
12225 - fi
12226 - ;;
12227 - darwin*)
12228 - # PIC is the default on this platform
12229 - # Common symbols not allowed in MH_DYLIB files
12230 - case $cc_basename in
12231 - xlc*)
12232 - lt_prog_compiler_pic='-qnocommon'
12233 - lt_prog_compiler_wl='-Wl,'
12234 - ;;
12235 - esac
12236 - ;;
12237 -
12238 - mingw* | pw32* | os2*)
12239 - # This hack is so that the source file can tell whether it is being
12240 - # built for inclusion in a dll (and should export symbols for example).
12241 - lt_prog_compiler_pic='-DDLL_EXPORT'
12242 - ;;
12243 -
12244 - hpux9* | hpux10* | hpux11*)
12245 - lt_prog_compiler_wl='-Wl,'
12246 - # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12247 - # not for PA HP-UX.
12248 - case $host_cpu in
12249 - hppa*64*|ia64*)
12250 - # +Z the default
12251 - ;;
12252 - *)
12253 - lt_prog_compiler_pic='+Z'
12254 - ;;
12255 - esac
12256 - # Is there a better lt_prog_compiler_static that works with the bundled CC?
12257 - lt_prog_compiler_static='${wl}-a ${wl}archive'
12258 - ;;
12259 -
12260 - irix5* | irix6* | nonstopux*)
12261 - lt_prog_compiler_wl='-Wl,'
12262 - # PIC (with -KPIC) is the default.
12263 - lt_prog_compiler_static='-non_shared'
12264 - ;;
12265 -
12266 - newsos6)
12267 - lt_prog_compiler_pic='-KPIC'
12268 - lt_prog_compiler_static='-Bstatic'
12269 - ;;
12270 -
12271 - linux*)
12272 - case $cc_basename in
12273 - icc* | ecc*)
12274 - lt_prog_compiler_wl='-Wl,'
12275 - lt_prog_compiler_pic='-KPIC'
12276 - lt_prog_compiler_static='-static'
12277 - ;;
12278 - pgcc* | pgf77* | pgf90* | pgf95*)
12279 - # Portland Group compilers (*not* the Pentium gcc compiler,
12280 - # which looks to be a dead project)
12281 - lt_prog_compiler_wl='-Wl,'
12282 - lt_prog_compiler_pic='-fpic'
12283 - lt_prog_compiler_static='-Bstatic'
12284 - ;;
12285 - ccc*)
12286 - lt_prog_compiler_wl='-Wl,'
12287 - # All Alpha code is PIC.
12288 - lt_prog_compiler_static='-non_shared'
12289 - ;;
12290 - esac
12291 - ;;
12292 -
12293 - osf3* | osf4* | osf5*)
12294 - lt_prog_compiler_wl='-Wl,'
12295 - # All OSF/1 code is PIC.
12296 - lt_prog_compiler_static='-non_shared'
12297 - ;;
12298 -
12299 - sco3.2v5*)
12300 - lt_prog_compiler_pic='-Kpic'
12301 - lt_prog_compiler_static='-dn'
12302 - ;;
12303 -
12304 - solaris*)
12305 - lt_prog_compiler_pic='-KPIC'
12306 - lt_prog_compiler_static='-Bstatic'
12307 - case $cc_basename in
12308 - f77* | f90* | f95*)
12309 - lt_prog_compiler_wl='-Qoption ld ';;
12310 - *)
12311 - lt_prog_compiler_wl='-Wl,';;
12312 - esac
12313 - ;;
12314 -
12315 - sunos4*)
12316 - lt_prog_compiler_wl='-Qoption ld '
12317 - lt_prog_compiler_pic='-PIC'
12318 - lt_prog_compiler_static='-Bstatic'
12319 - ;;
12320 -
12321 - sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
12322 - lt_prog_compiler_wl='-Wl,'
12323 - lt_prog_compiler_pic='-KPIC'
12324 - lt_prog_compiler_static='-Bstatic'
12325 - ;;
12326 -
12327 - sysv4*MP*)
12328 - if test -d /usr/nec ;then
12329 - lt_prog_compiler_pic='-Kconform_pic'
12330 - lt_prog_compiler_static='-Bstatic'
12331 - fi
12332 - ;;
12333 -
12334 - unicos*)
12335 - lt_prog_compiler_wl='-Wl,'
12336 - lt_prog_compiler_can_build_shared=no
12337 - ;;
12338 -
12339 - uts4*)
12340 - lt_prog_compiler_pic='-pic'
12341 - lt_prog_compiler_static='-Bstatic'
12342 - ;;
12343 -
12344 - *)
12345 - lt_prog_compiler_can_build_shared=no
12346 - ;;
12347 - esac
12348 - fi
12349 -
12350 -echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
12351 -echo "${ECHO_T}$lt_prog_compiler_pic" >&6
12352 -
12353 -#
12354 -# Check to make sure the PIC flag actually works.
12355 -#
12356 -if test -n "$lt_prog_compiler_pic"; then
12357 -
12358 -echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
12359 -echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
12360 -if test "${lt_prog_compiler_pic_works+set}" = set; then
12361 - echo $ECHO_N "(cached) $ECHO_C" >&6
12362 -else
12363 - lt_prog_compiler_pic_works=no
12364 - ac_outfile=conftest.$ac_objext
12365 - printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12366 - lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
12367 - # Insert the option either (1) after the last *FLAGS variable, or
12368 - # (2) before a word containing "conftest.", or (3) at the end.
12369 - # Note that $ac_compile itself does not contain backslashes and begins
12370 - # with a dollar sign (not a hyphen), so the echo should work correctly.
12371 - # The option is referenced via a variable to avoid confusing sed.
12372 - lt_compile=`echo "$ac_compile" | $SED \
12373 - -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12374 - -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12375 - -e 's:$: $lt_compiler_flag:'`
12376 - (eval echo "\"\$as_me:6543: $lt_compile\"" >&5)
12377 - (eval "$lt_compile" 2>conftest.err)
12378 - ac_status=$?
12379 - cat conftest.err >&5
12380 - echo "$as_me:6547: \$? = $ac_status" >&5
12381 - if (exit $ac_status) && test -s "$ac_outfile"; then
12382 - # The compiler can only warn and ignore the option if not recognized
12383 - # So say no if there are warnings other than the usual output.
12384 - $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
12385 - $SED '/^$/d' conftest.err >conftest.er2
12386 - if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
12387 - lt_prog_compiler_pic_works=yes
12388 - fi
12389 - fi
12390 - $rm conftest*
12391 -
12392 -fi
12393 -echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
12394 -echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
12395 -
12396 -if test x"$lt_prog_compiler_pic_works" = xyes; then
12397 - case $lt_prog_compiler_pic in
12398 - "" | " "*) ;;
12399 - *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
12400 - esac
12401 -else
12402 - lt_prog_compiler_pic=
12403 - lt_prog_compiler_can_build_shared=no
12404 -fi
12405 -
12406 -fi
12407 -case $host_os in
12408 - # For platforms which do not support PIC, -DPIC is meaningless:
12409 - *djgpp*)
12410 - lt_prog_compiler_pic=
12411 - ;;
12412 - *)
12413 - lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
12414 - ;;
12415 -esac
12416 -
12417 -echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
12418 -echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
12419 -if test "${lt_cv_prog_compiler_c_o+set}" = set; then
12420 - echo $ECHO_N "(cached) $ECHO_C" >&6
12421 -else
12422 - lt_cv_prog_compiler_c_o=no
12423 - $rm -r conftest 2>/dev/null
12424 - mkdir conftest
12425 - cd conftest
12426 - mkdir out
12427 - printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12428 -
12429 - lt_compiler_flag="-o out/conftest2.$ac_objext"
12430 - # Insert the option either (1) after the last *FLAGS variable, or
12431 - # (2) before a word containing "conftest.", or (3) at the end.
12432 - # Note that $ac_compile itself does not contain backslashes and begins
12433 - # with a dollar sign (not a hyphen), so the echo should work correctly.
12434 - lt_compile=`echo "$ac_compile" | $SED \
12435 - -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12436 - -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12437 - -e 's:$: $lt_compiler_flag:'`
12438 - (eval echo "\"\$as_me:6605: $lt_compile\"" >&5)
12439 - (eval "$lt_compile" 2>out/conftest.err)
12440 - ac_status=$?
12441 - cat out/conftest.err >&5
12442 - echo "$as_me:6609: \$? = $ac_status" >&5
12443 - if (exit $ac_status) && test -s out/conftest2.$ac_objext
12444 - then
12445 - # The compiler can only warn and ignore the option if not recognized
12446 - # So say no if there are warnings
12447 - $echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp
12448 - $SED '/^$/d' out/conftest.err >out/conftest.er2
12449 - if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12450 - lt_cv_prog_compiler_c_o=yes
12451 - fi
12452 - fi
12453 - chmod u+w . 2>&5
12454 - $rm conftest*
12455 - # SGI C++ compiler will create directory out/ii_files/ for
12456 - # template instantiation
12457 - test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
12458 - $rm out/* && rmdir out
12459 - cd ..
12460 - rmdir conftest
12461 - $rm conftest*
12462 -
12463 -fi
12464 -echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
12465 -echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
12466 -
12467 -
12468 -hard_links="nottested"
12469 -if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
12470 - # do not overwrite the value of need_locks provided by the user
12471 - echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
12472 -echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
12473 - hard_links=yes
12474 - $rm conftest*
12475 - ln conftest.a conftest.b 2>/dev/null && hard_links=no
12476 - touch conftest.a
12477 - ln conftest.a conftest.b 2>&5 || hard_links=no
12478 - ln conftest.a conftest.b 2>/dev/null && hard_links=no
12479 - echo "$as_me:$LINENO: result: $hard_links" >&5
12480 -echo "${ECHO_T}$hard_links" >&6
12481 - if test "$hard_links" = no; then
12482 - { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
12483 -echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
12484 - need_locks=warn
12485 - fi
12486 -else
12487 - need_locks=no
12488 -fi
12489 -
12490 -echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12491 -echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
12492 -
12493 - runpath_var=
12494 - allow_undefined_flag=
12495 - enable_shared_with_static_runtimes=no
12496 - archive_cmds=
12497 - archive_expsym_cmds=
12498 - old_archive_From_new_cmds=
12499 - old_archive_from_expsyms_cmds=
12500 - export_dynamic_flag_spec=
12501 - whole_archive_flag_spec=
12502 - thread_safe_flag_spec=
12503 - hardcode_libdir_flag_spec=
12504 - hardcode_libdir_flag_spec_ld=
12505 - hardcode_libdir_separator=
12506 - hardcode_direct=no
12507 - hardcode_minus_L=no
12508 - hardcode_shlibpath_var=unsupported
12509 - link_all_deplibs=unknown
12510 - hardcode_automatic=no
12511 - module_cmds=
12512 - module_expsym_cmds=
12513 - always_export_symbols=no
12514 - export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12515 - # include_expsyms should be a list of space-separated symbols to be *always*
12516 - # included in the symbol list
12517 - include_expsyms=
12518 - # exclude_expsyms can be an extended regexp of symbols to exclude
12519 - # it will be wrapped by ` (' and `)$', so one must not match beginning or
12520 - # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
12521 - # as well as any symbol that contains `d'.
12522 - exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
12523 - # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
12524 - # platforms (ab)use it in PIC code, but their linkers get confused if
12525 - # the symbol is explicitly referenced. Since portable code cannot
12526 - # rely on this symbol name, it's probably fine to never include it in
12527 - # preloaded symbol tables.
12528 - extract_expsyms_cmds=
12529 - # Just being paranoid about ensuring that cc_basename is set.
12530 - for cc_temp in $compiler""; do
12531 - case $cc_temp in
12532 - compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
12533 - distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
12534 - \-*) ;;
12535 - *) break;;
12536 - esac
12537 -done
12538 -cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
12539 -
12540 - case $host_os in
12541 - cygwin* | mingw* | pw32*)
12542 - # FIXME: the MSVC++ port hasn't been tested in a loooong time
12543 - # When not using gcc, we currently assume that we are using
12544 - # Microsoft Visual C++.
12545 - if test "$GCC" != yes; then
12546 - with_gnu_ld=no
12547 - fi
12548 - ;;
12549 - openbsd*)
12550 - with_gnu_ld=no
12551 - ;;
12552 - esac
12553 -
12554 - ld_shlibs=yes
12555 - if test "$with_gnu_ld" = yes; then
12556 - # If archive_cmds runs LD, not CC, wlarc should be empty
12557 - wlarc='${wl}'
12558 -
12559 - # Set some defaults for GNU ld with shared library support. These
12560 - # are reset later if shared libraries are not supported. Putting them
12561 - # here allows them to be overridden if necessary.
12562 - runpath_var=LD_RUN_PATH
12563 - hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
12564 - export_dynamic_flag_spec='${wl}--export-dynamic'
12565 - # ancient GNU ld didn't support --whole-archive et. al.
12566 - if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
12567 - whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12568 - else
12569 - whole_archive_flag_spec=
12570 - fi
12571 - supports_anon_versioning=no
12572 - case `$LD -v 2>/dev/null` in
12573 - *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
12574 - *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
12575 - *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
12576 - *\ 2.11.*) ;; # other 2.11 versions
12577 - *) supports_anon_versioning=yes ;;
12578 - esac
12579 -
12580 - # See if GNU ld supports shared libraries.
12581 - case $host_os in
12582 - aix3* | aix4* | aix5*)
12583 - # On AIX/PPC, the GNU linker is very broken
12584 - if test "$host_cpu" != ia64; then
12585 - ld_shlibs=no
12586 - cat <<EOF 1>&2
12587 -
12588 -*** Warning: the GNU linker, at least up to release 2.9.1, is reported
12589 -*** to be unable to reliably create shared libraries on AIX.
12590 -*** Therefore, libtool is disabling shared libraries support. If you
12591 -*** really care for shared libraries, you may want to modify your PATH
12592 -*** so that a non-GNU linker is found, and then restart.
12593 -
12594 -EOF
12595 - fi
12596 - ;;
12597 -
12598 - amigaos*)
12599 - 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)'
12600 - hardcode_libdir_flag_spec='-L$libdir'
12601 - hardcode_minus_L=yes
12602 -
12603 - # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
12604 - # that the semantics of dynamic libraries on AmigaOS, at least up
12605 - # to version 4, is to share data among multiple programs linked
12606 - # with the same dynamic library. Since this doesn't match the
12607 - # behavior of shared libraries on other platforms, we can't use
12608 - # them.
12609 - ld_shlibs=no
12610 - ;;
12611 -
12612 - beos*)
12613 - if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
12614 - allow_undefined_flag=unsupported
12615 - # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12616 - # support --undefined. This deserves some investigation. FIXME
12617 - archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12618 - else
12619 - ld_shlibs=no
12620 - fi
12621 - ;;
12622 -
12623 - cygwin* | mingw* | pw32*)
12624 - # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
12625 - # as there is no search path for DLLs.
12626 - hardcode_libdir_flag_spec='-L$libdir'
12627 - allow_undefined_flag=unsupported
12628 - always_export_symbols=no
12629 - enable_shared_with_static_runtimes=yes
12630 - export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
12631 -
12632 - if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
12633 - archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
12634 - # If the export-symbols file already is a .def file (1st line
12635 - # is EXPORTS), use it as is; otherwise, prepend...
12636 - archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12637 - cp $export_symbols $output_objdir/$soname.def;
12638 - else
12639 - echo EXPORTS > $output_objdir/$soname.def;
12640 - cat $export_symbols >> $output_objdir/$soname.def;
12641 - fi~
12642 - $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
12643 - else
12644 - ld_shlibs=no
12645 - fi
12646 - ;;
12647 -
12648 - linux*)
12649 - if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
12650 - tmp_addflag=
12651 - case $cc_basename,$host_cpu in
12652 - pgcc*) # Portland Group C compiler
12653 - 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'
12654 - tmp_addflag=' $pic_flag'
12655 - ;;
12656 - pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
12657 - 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'
12658 - tmp_addflag=' $pic_flag -Mnomain' ;;
12659 - ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
12660 - tmp_addflag=' -i_dynamic' ;;
12661 - efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
12662 - tmp_addflag=' -i_dynamic -nofor_main' ;;
12663 - ifc* | ifort*) # Intel Fortran compiler
12664 - tmp_addflag=' -nofor_main' ;;
12665 - esac
12666 - archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12667 -
12668 - if test $supports_anon_versioning = yes; then
12669 - archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
12670 - cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12671 - $echo "local: *; };" >> $output_objdir/$libname.ver~
12672 - $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
12673 - fi
12674 - else
12675 - ld_shlibs=no
12676 - fi
12677 - ;;
12678 -
12679 - netbsd*)
12680 - if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12681 - archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
12682 - wlarc=
12683 - else
12684 - archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12685 - archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12686 - fi
12687 - ;;
12688 -
12689 - solaris* | sysv5*)
12690 - if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
12691 - ld_shlibs=no
12692 - cat <<EOF 1>&2
12693 -
12694 -*** Warning: The releases 2.8.* of the GNU linker cannot reliably
12695 -*** create shared libraries on Solaris systems. Therefore, libtool
12696 -*** is disabling shared libraries support. We urge you to upgrade GNU
12697 -*** binutils to release 2.9.1 or newer. Another option is to modify
12698 -*** your PATH or compiler configuration so that the native linker is
12699 -*** used, and then restart.
12700 -
12701 -EOF
12702 - elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
12703 - archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12704 - archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12705 - else
12706 - ld_shlibs=no
12707 - fi
12708 - ;;
12709 -
12710 - sunos4*)
12711 - archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12712 - wlarc=
12713 - hardcode_direct=yes
12714 - hardcode_shlibpath_var=no
12715 - ;;
12716 -
12717 - *)
12718 - if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
12719 - archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12720 - archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12721 - else
12722 - ld_shlibs=no
12723 - fi
12724 - ;;
12725 - esac
12726 -
12727 - if test "$ld_shlibs" = no; then
12728 - runpath_var=
12729 - hardcode_libdir_flag_spec=
12730 - export_dynamic_flag_spec=
12731 - whole_archive_flag_spec=
12732 - fi
12733 - else
12734 - # PORTME fill in a description of your system's linker (not GNU ld)
12735 - case $host_os in
12736 - aix3*)
12737 - allow_undefined_flag=unsupported
12738 - always_export_symbols=yes
12739 - archive_expsym_cmds='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
12740 - # Note: this linker hardcodes the directories in LIBPATH if there
12741 - # are no directories specified by -L.
12742 - hardcode_minus_L=yes
12743 - if test "$GCC" = yes && test -z "$link_static_flag"; then
12744 - # Neither direct hardcoding nor static linking is supported with a
12745 - # broken collect2.
12746 - hardcode_direct=unsupported
12747 - fi
12748 - ;;
12749 -
12750 - aix4* | aix5*)
12751 - if test "$host_cpu" = ia64; then
12752 - # On IA64, the linker does run time linking by default, so we don't
12753 - # have to do anything special.
12754 - aix_use_runtimelinking=no
12755 - exp_sym_flag='-Bexport'
12756 - no_entry_flag=""
12757 - else
12758 - # If we're using GNU nm, then we don't want the "-C" option.
12759 - # -C means demangle to AIX nm, but means don't demangle with GNU nm
12760 - if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
12761 - 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'
12762 - else
12763 - 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'
12764 - fi
12765 - aix_use_runtimelinking=no
12766 -
12767 - # Test if we are trying to use run time linking or normal
12768 - # AIX style linking. If -brtl is somewhere in LDFLAGS, we
12769 - # need to do runtime linking.
12770 - case $host_os in aix4.[23]|aix4.[23].*|aix5*)
12771 - for ld_flag in $LDFLAGS; do
12772 - if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
12773 - aix_use_runtimelinking=yes
12774 - break
12775 - fi
12776 - done
12777 - esac
12778 -
12779 - exp_sym_flag='-bexport'
12780 - no_entry_flag='-bnoentry'
12781 - fi
12782 -
12783 - # When large executables or shared objects are built, AIX ld can
12784 - # have problems creating the table of contents. If linking a library
12785 - # or program results in "error TOC overflow" add -mminimal-toc to
12786 - # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
12787 - # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12788 -
12789 - archive_cmds=''
12790 - hardcode_direct=yes
12791 - hardcode_libdir_separator=':'
12792 - link_all_deplibs=yes
12793 -
12794 - if test "$GCC" = yes; then
12795 - case $host_os in aix4.[012]|aix4.[012].*)
12796 - # We only want to do this on AIX 4.2 and lower, the check
12797 - # below for broken collect2 doesn't work under 4.3+
12798 - collect2name=`${CC} -print-prog-name=collect2`
12799 - if test -f "$collect2name" && \
12800 - strings "$collect2name" | grep resolve_lib_name >/dev/null
12801 - then
12802 - # We have reworked collect2
12803 - hardcode_direct=yes
12804 - else
12805 - # We have old collect2
12806 - hardcode_direct=unsupported
12807 - # It fails to find uninstalled libraries when the uninstalled
12808 - # path is not listed in the libpath. Setting hardcode_minus_L
12809 - # to unsupported forces relinking
12810 - hardcode_minus_L=yes
12811 - hardcode_libdir_flag_spec='-L$libdir'
12812 - hardcode_libdir_separator=
12813 - fi
12814 - esac
12815 - shared_flag='-shared'
12816 - if test "$aix_use_runtimelinking" = yes; then
12817 - shared_flag="$shared_flag "'${wl}-G'
12818 - fi
12819 - else
12820 - # not using gcc
12821 - if test "$host_cpu" = ia64; then
12822 - # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12823 - # chokes on -Wl,-G. The following line is correct:
12824 - shared_flag='-G'
12825 - else
12826 - if test "$aix_use_runtimelinking" = yes; then
12827 - shared_flag='${wl}-G'
12828 - else
12829 - shared_flag='${wl}-bM:SRE'
12830 - fi
12831 - fi
12832 - fi
12833 -
12834 - # It seems that -bexpall does not export symbols beginning with
12835 - # underscore (_), so it is better to generate a list of symbols to export.
12836 - always_export_symbols=yes
12837 - if test "$aix_use_runtimelinking" = yes; then
12838 - # Warning - without using the other runtime loading flags (-brtl),
12839 - # -berok will link without error, but may produce a broken library.
12840 - allow_undefined_flag='-berok'
12841 - # Determine the default libpath from the value encoded in an empty executable.
12842 - cat >conftest.$ac_ext <<_ACEOF
12843 -/* confdefs.h. */
12844 -_ACEOF
12845 -cat confdefs.h >>conftest.$ac_ext
12846 -cat >>conftest.$ac_ext <<_ACEOF
12847 -/* end confdefs.h. */
12848 -
12849 -int
12850 -main ()
12851 -{
12852 -
12853 - ;
12854 - return 0;
12855 -}
12856 -_ACEOF
12857 -rm -f conftest.$ac_objext conftest$ac_exeext
12858 -if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12859 - (eval $ac_link) 2>conftest.er1
12860 - ac_status=$?
12861 - grep -v '^ *+' conftest.er1 >conftest.err
12862 - rm -f conftest.er1
12863 - cat conftest.err >&5
12864 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
12865 - (exit $ac_status); } &&
12866 - { ac_try='test -z "$ac_c_werror_flag"
12867 - || test ! -s conftest.err'
12868 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12869 - (eval $ac_try) 2>&5
12870 - ac_status=$?
12871 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
12872 - (exit $ac_status); }; } &&
12873 - { ac_try='test -s conftest$ac_exeext'
12874 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12875 - (eval $ac_try) 2>&5
12876 - ac_status=$?
12877 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
12878 - (exit $ac_status); }; }; then
12879 -
12880 -aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
12881 -}'`
12882 -# Check for a 64-bit object if we didn't find anything.
12883 -if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
12884 -}'`; fi
12885 -else
12886 - echo "$as_me: failed program was:" >&5
12887 -sed 's/^/| /' conftest.$ac_ext >&5
12888 -
12889 -fi
12890 -rm -f conftest.err conftest.$ac_objext \
12891 - conftest$ac_exeext conftest.$ac_ext
12892 -if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12893 -
12894 - hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
12895 - archive_expsym_cmds="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
12896 - else
12897 - if test "$host_cpu" = ia64; then
12898 - hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
12899 - allow_undefined_flag="-z nodefs"
12900 - archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
12901 - else
12902 - # Determine the default libpath from the value encoded in an empty executable.
12903 - cat >conftest.$ac_ext <<_ACEOF
12904 -/* confdefs.h. */
12905 -_ACEOF
12906 -cat confdefs.h >>conftest.$ac_ext
12907 -cat >>conftest.$ac_ext <<_ACEOF
12908 -/* end confdefs.h. */
12909 -
12910 -int
12911 -main ()
12912 -{
12913 -
12914 - ;
12915 - return 0;
12916 -}
12917 -_ACEOF
12918 -rm -f conftest.$ac_objext conftest$ac_exeext
12919 -if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12920 - (eval $ac_link) 2>conftest.er1
12921 - ac_status=$?
12922 - grep -v '^ *+' conftest.er1 >conftest.err
12923 - rm -f conftest.er1
12924 - cat conftest.err >&5
12925 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
12926 - (exit $ac_status); } &&
12927 - { ac_try='test -z "$ac_c_werror_flag"
12928 - || test ! -s conftest.err'
12929 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12930 - (eval $ac_try) 2>&5
12931 - ac_status=$?
12932 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
12933 - (exit $ac_status); }; } &&
12934 - { ac_try='test -s conftest$ac_exeext'
12935 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12936 - (eval $ac_try) 2>&5
12937 - ac_status=$?
12938 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
12939 - (exit $ac_status); }; }; then
12940 -
12941 -aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
12942 -}'`
12943 -# Check for a 64-bit object if we didn't find anything.
12944 -if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
12945 -}'`; fi
12946 -else
12947 - echo "$as_me: failed program was:" >&5
12948 -sed 's/^/| /' conftest.$ac_ext >&5
12949 -
12950 -fi
12951 -rm -f conftest.err conftest.$ac_objext \
12952 - conftest$ac_exeext conftest.$ac_ext
12953 -if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12954 -
12955 - hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
12956 - # Warning - without using the other run time loading flags,
12957 - # -berok will link without error, but may produce a broken library.
12958 - no_undefined_flag=' ${wl}-bernotok'
12959 - allow_undefined_flag=' ${wl}-berok'
12960 - # -bexpall does not export symbols beginning with underscore (_)
12961 - always_export_symbols=yes
12962 - # Exported symbols can be pulled into shared objects from archives
12963 - whole_archive_flag_spec=' '
12964 - archive_cmds_need_lc=yes
12965 - # This is similar to how AIX traditionally builds its shared libraries.
12966 - archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
12967 - fi
12968 - fi
12969 - ;;
12970 -
12971 - amigaos*)
12972 - 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)'
12973 - hardcode_libdir_flag_spec='-L$libdir'
12974 - hardcode_minus_L=yes
12975 - # see comment about different semantics on the GNU ld section
12976 - ld_shlibs=no
12977 - ;;
12978 -
12979 - bsdi[45]*)
12980 - export_dynamic_flag_spec=-rdynamic
12981 - ;;
12982 -
12983 - cygwin* | mingw* | pw32*)
12984 - # When not using gcc, we currently assume that we are using
12985 - # Microsoft Visual C++.
12986 - # hardcode_libdir_flag_spec is actually meaningless, as there is
12987 - # no search path for DLLs.
12988 - hardcode_libdir_flag_spec=' '
12989 - allow_undefined_flag=unsupported
12990 - # Tell ltmain to make .lib files, not .a files.
12991 - libext=lib
12992 - # Tell ltmain to make .dll files, not .so files.
12993 - shrext_cmds=".dll"
12994 - # FIXME: Setting linknames here is a bad hack.
12995 - archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
12996 - # The linker will automatically build a .lib file if we build a DLL.
12997 - old_archive_From_new_cmds='true'
12998 - # FIXME: Should let the user specify the lib program.
12999 - old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
13000 - fix_srcfile_path='`cygpath -w "$srcfile"`'
13001 - enable_shared_with_static_runtimes=yes
13002 - ;;
13003 -
13004 - darwin* | rhapsody*)
13005 - case $host_os in
13006 - rhapsody* | darwin1.[012])
13007 - allow_undefined_flag='${wl}-undefined ${wl}suppress'
13008 - ;;
13009 - *) # Darwin 1.3 on
13010 - if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
13011 - allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
13012 - else
13013 - case ${MACOSX_DEPLOYMENT_TARGET} in
13014 - 10.[012])
13015 - allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
13016 - ;;
13017 - 10.*)
13018 - allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
13019 - ;;
13020 - esac
13021 - fi
13022 - ;;
13023 - esac
13024 - archive_cmds_need_lc=no
13025 - hardcode_direct=no
13026 - hardcode_automatic=yes
13027 - hardcode_shlibpath_var=unsupported
13028 - whole_archive_flag_spec=''
13029 - link_all_deplibs=yes
13030 - if test "$GCC" = yes ; then
13031 - output_verbose_link_cmd='echo'
13032 - archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
13033 - module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
13034 - # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
13035 - 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}'
13036 - 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}'
13037 - else
13038 - case $cc_basename in
13039 - xlc*)
13040 - output_verbose_link_cmd='echo'
13041 - archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
13042 - module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
13043 - # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
13044 - 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 $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
13045 - 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}'
13046 - ;;
13047 - *)
13048 - ld_shlibs=no
13049 - ;;
13050 - esac
13051 - fi
13052 - ;;
13053 -
13054 - dgux*)
13055 - archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13056 - hardcode_libdir_flag_spec='-L$libdir'
13057 - hardcode_shlibpath_var=no
13058 - ;;
13059 -
13060 - freebsd1*)
13061 - ld_shlibs=no
13062 - ;;
13063 -
13064 - # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
13065 - # support. Future versions do this automatically, but an explicit c++rt0.o
13066 - # does not break anything, and helps significantly (at the cost of a little
13067 - # extra space).
13068 - freebsd2.2*)
13069 - archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
13070 - hardcode_libdir_flag_spec='-R$libdir'
13071 - hardcode_direct=yes
13072 - hardcode_shlibpath_var=no
13073 - ;;
13074 -
13075 - # Unfortunately, older versions of FreeBSD 2 do not have this feature.
13076 - freebsd2*)
13077 - archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13078 - hardcode_direct=yes
13079 - hardcode_minus_L=yes
13080 - hardcode_shlibpath_var=no
13081 - ;;
13082 -
13083 - # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
13084 - freebsd* | kfreebsd*-gnu | dragonfly*)
13085 - archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
13086 - hardcode_libdir_flag_spec='-R$libdir'
13087 - hardcode_direct=yes
13088 - hardcode_shlibpath_var=no
13089 - ;;
13090 -
13091 - hpux9*)
13092 - if test "$GCC" = yes; then
13093 - 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'
13094 - else
13095 - 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'
13096 - fi
13097 - hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
13098 - hardcode_libdir_separator=:
13099 - hardcode_direct=yes
13100 -
13101 - # hardcode_minus_L: Not really in the search PATH,
13102 - # but as the default location of the library.
13103 - hardcode_minus_L=yes
13104 - export_dynamic_flag_spec='${wl}-E'
13105 - ;;
13106 -
13107 - hpux10* | hpux11*)
13108 - if test "$GCC" = yes -a "$with_gnu_ld" = no; then
13109 - case $host_cpu in
13110 - hppa*64*|ia64*)
13111 - archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13112 - ;;
13113 - *)
13114 - archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13115 - ;;
13116 - esac
13117 - else
13118 - case $host_cpu in
13119 - hppa*64*|ia64*)
13120 - archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
13121 - ;;
13122 - *)
13123 - archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
13124 - ;;
13125 - esac
13126 - fi
13127 - if test "$with_gnu_ld" = no; then
13128 - case $host_cpu in
13129 - hppa*64*)
13130 - hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
13131 - hardcode_libdir_flag_spec_ld='+b $libdir'
13132 - hardcode_libdir_separator=:
13133 - hardcode_direct=no
13134 - hardcode_shlibpath_var=no
13135 - ;;
13136 - ia64*)
13137 - hardcode_libdir_flag_spec='-L$libdir'
13138 - hardcode_direct=no
13139 - hardcode_shlibpath_var=no
13140 -
13141 - # hardcode_minus_L: Not really in the search PATH,
13142 - # but as the default location of the library.
13143 - hardcode_minus_L=yes
13144 - ;;
13145 - *)
13146 - hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
13147 - hardcode_libdir_separator=:
13148 - hardcode_direct=yes
13149 - export_dynamic_flag_spec='${wl}-E'
13150 -
13151 - # hardcode_minus_L: Not really in the search PATH,
13152 - # but as the default location of the library.
13153 - hardcode_minus_L=yes
13154 - ;;
13155 - esac
13156 - fi
13157 - ;;
13158 -
13159 - irix5* | irix6* | nonstopux*)
13160 - if test "$GCC" = yes; then
13161 - 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'
13162 - else
13163 - 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'
13164 - hardcode_libdir_flag_spec_ld='-rpath $libdir'
13165 - fi
13166 - hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
13167 - hardcode_libdir_separator=:
13168 - link_all_deplibs=yes
13169 - ;;
13170 -
13171 - netbsd*)
13172 - if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13173 - archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
13174 - else
13175 - archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
13176 - fi
13177 - hardcode_libdir_flag_spec='-R$libdir'
13178 - hardcode_direct=yes
13179 - hardcode_shlibpath_var=no
13180 - ;;
13181 -
13182 - newsos6)
13183 - archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13184 - hardcode_direct=yes
13185 - hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
13186 - hardcode_libdir_separator=:
13187 - hardcode_shlibpath_var=no
13188 - ;;
13189 -
13190 - openbsd*)
13191 - hardcode_direct=yes
13192 - hardcode_shlibpath_var=no
13193 - if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13194 - archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13195 - archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
13196 - hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
13197 - export_dynamic_flag_spec='${wl}-E'
13198 - else
13199 - case $host_os in
13200 - openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
13201 - archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13202 - hardcode_libdir_flag_spec='-R$libdir'
13203 - ;;
13204 - *)
13205 - archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13206 - hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
13207 - ;;
13208 - esac
13209 - fi
13210 - ;;
13211 -
13212 - os2*)
13213 - hardcode_libdir_flag_spec='-L$libdir'
13214 - hardcode_minus_L=yes
13215 - allow_undefined_flag=unsupported
13216 - 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'
13217 - old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
13218 - ;;
13219 -
13220 - osf3*)
13221 - if test "$GCC" = yes; then
13222 - allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
13223 - 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'
13224 - else
13225 - allow_undefined_flag=' -expect_unresolved \*'
13226 - 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'
13227 - fi
13228 - hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
13229 - hardcode_libdir_separator=:
13230 - ;;
13231 -
13232 - osf4* | osf5*) # as osf3* with the addition of -msym flag
13233 - if test "$GCC" = yes; then
13234 - allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
13235 - 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'
13236 - hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
13237 - else
13238 - allow_undefined_flag=' -expect_unresolved \*'
13239 - 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'
13240 - archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
13241 - $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'
13242 -
13243 - # Both c and cxx compiler support -rpath directly
13244 - hardcode_libdir_flag_spec='-rpath $libdir'
13245 - fi
13246 - hardcode_libdir_separator=:
13247 - ;;
13248 -
13249 - sco3.2v5*)
13250 - archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13251 - hardcode_shlibpath_var=no
13252 - export_dynamic_flag_spec='${wl}-Bexport'
13253 - runpath_var=LD_RUN_PATH
13254 - hardcode_runpath_var=yes
13255 - ;;
13256 -
13257 - solaris*)
13258 - no_undefined_flag=' -z text'
13259 - if test "$GCC" = yes; then
13260 - wlarc='${wl}'
13261 - archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13262 - archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13263 - $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
13264 - else
13265 - wlarc=''
13266 - archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
13267 - archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13268 - $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
13269 - fi
13270 - hardcode_libdir_flag_spec='-R$libdir'
13271 - hardcode_shlibpath_var=no
13272 - case $host_os in
13273 - solaris2.[0-5] | solaris2.[0-5].*) ;;
13274 - *)
13275 - # The compiler driver will combine linker options so we
13276 - # cannot just pass the convience library names through
13277 - # without $wl, iff we do not link with $LD.
13278 - # Luckily, gcc supports the same syntax we need for Sun Studio.
13279 - # Supported since Solaris 2.6 (maybe 2.5.1?)
13280 - case $wlarc in
13281 - '')
13282 - whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
13283 - *)
13284 - whole_archive_flag_spec='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
13285 - esac ;;
13286 - esac
13287 - link_all_deplibs=yes
13288 - ;;
13289 -
13290 - sunos4*)
13291 - if test "x$host_vendor" = xsequent; then
13292 - # Use $CC to link under sequent, because it throws in some extra .o
13293 - # files that make .init and .fini sections work.
13294 - archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
13295 - else
13296 - archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
13297 - fi
13298 - hardcode_libdir_flag_spec='-L$libdir'
13299 - hardcode_direct=yes
13300 - hardcode_minus_L=yes
13301 - hardcode_shlibpath_var=no
13302 - ;;
13303 -
13304 - sysv4)
13305 - case $host_vendor in
13306 - sni)
13307 - archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13308 - hardcode_direct=yes # is this really true???
13309 - ;;
13310 - siemens)
13311 - ## LD is ld it makes a PLAMLIB
13312 - ## CC just makes a GrossModule.
13313 - archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
13314 - reload_cmds='$CC -r -o $output$reload_objs'
13315 - hardcode_direct=no
13316 - ;;
13317 - motorola)
13318 - archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13319 - hardcode_direct=no #Motorola manual says yes, but my tests say they lie
13320 - ;;
13321 - esac
13322 - runpath_var='LD_RUN_PATH'
13323 - hardcode_shlibpath_var=no
13324 - ;;
13325 -
13326 - sysv4.3*)
13327 - archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13328 - hardcode_shlibpath_var=no
13329 - export_dynamic_flag_spec='-Bexport'
13330 - ;;
13331 -
13332 - sysv4*MP*)
13333 - if test -d /usr/nec; then
13334 - archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13335 - hardcode_shlibpath_var=no
13336 - runpath_var=LD_RUN_PATH
13337 - hardcode_runpath_var=yes
13338 - ld_shlibs=yes
13339 - fi
13340 - ;;
13341 -
13342 - sysv4.2uw2*)
13343 - archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
13344 - hardcode_direct=yes
13345 - hardcode_minus_L=no
13346 - hardcode_shlibpath_var=no
13347 - hardcode_runpath_var=yes
13348 - runpath_var=LD_RUN_PATH
13349 - ;;
13350 -
13351 - sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
13352 - no_undefined_flag='${wl}-z ${wl}text'
13353 - if test "$GCC" = yes; then
13354 - archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13355 - else
13356 - archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13357 - fi
13358 - runpath_var='LD_RUN_PATH'
13359 - hardcode_shlibpath_var=no
13360 - ;;
13361 -
13362 - sysv5*)
13363 - no_undefined_flag=' -z text'
13364 - # $CC -shared without GNU ld will not create a library from C++
13365 - # object files and a static libstdc++, better avoid it by now
13366 - archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
13367 - archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13368 - $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
13369 - hardcode_libdir_flag_spec=
13370 - hardcode_shlibpath_var=no
13371 - runpath_var='LD_RUN_PATH'
13372 - ;;
13373 -
13374 - uts4*)
13375 - archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13376 - hardcode_libdir_flag_spec='-L$libdir'
13377 - hardcode_shlibpath_var=no
13378 - ;;
13379 -
13380 - *)
13381 - ld_shlibs=no
13382 - ;;
13383 - esac
13384 - fi
13385 -
13386 -echo "$as_me:$LINENO: result: $ld_shlibs" >&5
13387 -echo "${ECHO_T}$ld_shlibs" >&6
13388 -test "$ld_shlibs" = no && can_build_shared=no
13389 -
13390 -variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13391 -if test "$GCC" = yes; then
13392 - variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13393 -fi
13394 -
13395 -#
13396 -# Do we need to explicitly link libc?
13397 -#
13398 -case "x$archive_cmds_need_lc" in
13399 -x|xyes)
13400 - # Assume -lc should be added
13401 - archive_cmds_need_lc=yes
13402 -
13403 - if test "$enable_shared" = yes && test "$GCC" = yes; then
13404 - case $archive_cmds in
13405 - *'~'*)
13406 - # FIXME: we may have to deal with multi-command sequences.
13407 - ;;
13408 - '$CC '*)
13409 - # Test whether the compiler implicitly links with -lc since on some
13410 - # systems, -lgcc has to come before -lc. If gcc already passes -lc
13411 - # to ld, don't add -lc before -lgcc.
13412 - echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
13413 -echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
13414 - $rm conftest*
13415 - printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13416 -
13417 - if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13418 - (eval $ac_compile) 2>&5
13419 - ac_status=$?
13420 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
13421 - (exit $ac_status); } 2>conftest.err; then
13422 - soname=conftest
13423 - lib=conftest
13424 - libobjs=conftest.$ac_objext
13425 - deplibs=
13426 - wl=$lt_prog_compiler_wl
13427 - compiler_flags=-v
13428 - linker_flags=-v
13429 - verstring=
13430 - output_objdir=.
13431 - libname=conftest
13432 - lt_save_allow_undefined_flag=$allow_undefined_flag
13433 - allow_undefined_flag=
13434 - if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
13435 - (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
13436 - ac_status=$?
13437 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
13438 - (exit $ac_status); }
13439 - then
13440 - archive_cmds_need_lc=no
13441 - else
13442 - archive_cmds_need_lc=yes
13443 - fi
13444 - allow_undefined_flag=$lt_save_allow_undefined_flag
13445 - else
13446 - cat conftest.err 1>&5
13447 - fi
13448 - $rm conftest*
13449 - echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
13450 -echo "${ECHO_T}$archive_cmds_need_lc" >&6
13451 - ;;
13452 - esac
13453 - fi
13454 - ;;
13455 -esac
13456 -
13457 -echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
13458 -echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
13459 -library_names_spec=
13460 -libname_spec='lib$name'
13461 -soname_spec=
13462 -shrext_cmds=".so"
13463 -postinstall_cmds=
13464 -postuninstall_cmds=
13465 -finish_cmds=
13466 -finish_eval=
13467 -shlibpath_var=
13468 -shlibpath_overrides_runpath=unknown
13469 -version_type=none
13470 -dynamic_linker="$host_os ld.so"
13471 -sys_lib_dlsearch_path_spec="/lib /usr/lib"
13472 -if test "$GCC" = yes; then
13473 - sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13474 - if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
13475 - # if the path contains ";" then we assume it to be the separator
13476 - # otherwise default to the standard path separator (i.e. ":") - it is
13477 - # assumed that no part of a normal pathname contains ";" but that should
13478 - # okay in the real world where ";" in dirpaths is itself problematic.
13479 - sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13480 - else
13481 - sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
13482 - fi
13483 -else
13484 - sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
13485 -fi
13486 -need_lib_prefix=unknown
13487 -hardcode_into_libs=no
13488 -
13489 -# when you set need_version to no, make sure it does not cause -set_version
13490 -# flags to be left without arguments
13491 -need_version=unknown
13492 -
13493 -case $host_os in
13494 -aix3*)
13495 - version_type=linux
13496 - library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
13497 - shlibpath_var=LIBPATH
13498 -
13499 - # AIX 3 has no versioning support, so we append a major version to the name.
13500 - soname_spec='${libname}${release}${shared_ext}$major'
13501 - ;;
13502 -
13503 -aix4* | aix5*)
13504 - version_type=linux
13505 - need_lib_prefix=no
13506 - need_version=no
13507 - hardcode_into_libs=yes
13508 - if test "$host_cpu" = ia64; then
13509 - # AIX 5 supports IA64
13510 - library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
13511 - shlibpath_var=LD_LIBRARY_PATH
13512 - else
13513 - # With GCC up to 2.95.x, collect2 would create an import file
13514 - # for dependence libraries. The import file would start with
13515 - # the line `#! .'. This would cause the generated library to
13516 - # depend on `.', always an invalid library. This was fixed in
13517 - # development snapshots of GCC prior to 3.0.
13518 - case $host_os in
13519 - aix4 | aix4.[01] | aix4.[01].*)
13520 - if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
13521 - echo ' yes '
13522 - echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
13523 - :
13524 - else
13525 - can_build_shared=no
13526 - fi
13527 - ;;
13528 - esac
13529 - # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
13530 - # soname into executable. Probably we can add versioning support to
13531 - # collect2, so additional links can be useful in future.
13532 - if test "$aix_use_runtimelinking" = yes; then
13533 - # If using run time linking (on AIX 4.2 or later) use lib<name>.so
13534 - # instead of lib<name>.a to let people know that these are not
13535 - # typical AIX shared libraries.
13536 - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13537 - else
13538 - # We preserve .a as extension for shared libraries through AIX4.2
13539 - # and later when we are not doing run time linking.
13540 - library_names_spec='${libname}${release}.a $libname.a'
13541 - soname_spec='${libname}${release}${shared_ext}$major'
13542 - fi
13543 - shlibpath_var=LIBPATH
13544 - fi
13545 - ;;
13546 -
13547 -amigaos*)
13548 - library_names_spec='$libname.ixlibrary $libname.a'
13549 - # Create ${libname}_ixlibrary.a entries in /sys/libs.
13550 - 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'
13551 - ;;
13552 -
13553 -beos*)
13554 - library_names_spec='${libname}${shared_ext}'
13555 - dynamic_linker="$host_os ld.so"
13556 - shlibpath_var=LIBRARY_PATH
13557 - ;;
13558 -
13559 -bsdi[45]*)
13560 - version_type=linux
13561 - need_version=no
13562 - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13563 - soname_spec='${libname}${release}${shared_ext}$major'
13564 - finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
13565 - shlibpath_var=LD_LIBRARY_PATH
13566 - sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
13567 - sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
13568 - # the default ld.so.conf also contains /usr/contrib/lib and
13569 - # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
13570 - # libtool to hard-code these into programs
13571 - ;;
13572 -
13573 -cygwin* | mingw* | pw32*)
13574 - version_type=windows
13575 - shrext_cmds=".dll"
13576 - need_version=no
13577 - need_lib_prefix=no
13578 -
13579 - case $GCC,$host_os in
13580 - yes,cygwin* | yes,mingw* | yes,pw32*)
13581 - library_names_spec='$libname.dll.a'
13582 - # DLL is installed to $(libdir)/../bin by postinstall_cmds
13583 - postinstall_cmds='base_file=`basename \${file}`~
13584 - dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
13585 - dldir=$destdir/`dirname \$dlpath`~
13586 - test -d \$dldir || mkdir -p \$dldir~
13587 - $install_prog $dir/$dlname \$dldir/$dlname~
13588 - chmod a+x \$dldir/$dlname'
13589 - postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13590 - dlpath=$dir/\$dldll~
13591 - $rm \$dlpath'
13592 - shlibpath_overrides_runpath=yes
13593 -
13594 - case $host_os in
13595 - cygwin*)
13596 - # Cygwin DLLs use 'cyg' prefix rather than 'lib'
13597 - soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13598 - sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
13599 - ;;
13600 - mingw*)
13601 - # MinGW DLLs use traditional 'lib' prefix
13602 - soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13603 - sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13604 - if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
13605 - # It is most probably a Windows format PATH printed by
13606 - # mingw gcc, but we are running on Cygwin. Gcc prints its search
13607 - # path with ; separators, and with drive letters. We can handle the
13608 - # drive letters (cygwin fileutils understands them), so leave them,
13609 - # especially as we might pass files found there to a mingw objdump,
13610 - # which wouldn't understand a cygwinified path. Ahh.
13611 - sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13612 - else
13613 - sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
13614 - fi
13615 - ;;
13616 - pw32*)
13617 - # pw32 DLLs use 'pw' prefix rather than 'lib'
13618 - library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13619 - ;;
13620 - esac
13621 - ;;
13622 -
13623 - *)
13624 - library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
13625 - ;;
13626 - esac
13627 - dynamic_linker='Win32 ld.exe'
13628 - # FIXME: first we should search . and the directory the executable is in
13629 - shlibpath_var=PATH
13630 - ;;
13631 -
13632 -darwin* | rhapsody*)
13633 - dynamic_linker="$host_os dyld"
13634 - version_type=darwin
13635 - need_lib_prefix=no
13636 - need_version=no
13637 - library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
13638 - soname_spec='${libname}${release}${major}$shared_ext'
13639 - shlibpath_overrides_runpath=yes
13640 - shlibpath_var=DYLD_LIBRARY_PATH
13641 - shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
13642 - # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
13643 - if test "$GCC" = yes; then
13644 - sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
13645 - else
13646 - sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
13647 - fi
13648 - sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
13649 - ;;
13650 -
13651 -dgux*)
13652 - version_type=linux
13653 - need_lib_prefix=no
13654 - need_version=no
13655 - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
13656 - soname_spec='${libname}${release}${shared_ext}$major'
13657 - shlibpath_var=LD_LIBRARY_PATH
13658 - ;;
13659 -
13660 -freebsd1*)
13661 - dynamic_linker=no
13662 - ;;
13663 -
13664 -kfreebsd*-gnu)
13665 - version_type=linux
13666 - need_lib_prefix=no
13667 - need_version=no
13668 - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13669 - soname_spec='${libname}${release}${shared_ext}$major'
13670 - shlibpath_var=LD_LIBRARY_PATH
13671 - shlibpath_overrides_runpath=no
13672 - hardcode_into_libs=yes
13673 - dynamic_linker='GNU ld.so'
13674 - ;;
13675 -
13676 -freebsd* | dragonfly*)
13677 - # DragonFly does not have aout. When/if they implement a new
13678 - # versioning mechanism, adjust this.
13679 - if test -x /usr/bin/objformat; then
13680 - objformat=`/usr/bin/objformat`
13681 - else
13682 - case $host_os in
13683 - freebsd[123]*) objformat=aout ;;
13684 - *) objformat=elf ;;
13685 - esac
13686 - fi
13687 - version_type=freebsd-$objformat
13688 - case $version_type in
13689 - freebsd-elf*)
13690 - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13691 - need_version=no
13692 - need_lib_prefix=no
13693 - ;;
13694 - freebsd-*)
13695 - library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
13696 - need_version=yes
13697 - ;;
13698 - esac
13699 - shlibpath_var=LD_LIBRARY_PATH
13700 - case $host_os in
13701 - freebsd2*)
13702 - shlibpath_overrides_runpath=yes
13703 - ;;
13704 - freebsd3.[01]* | freebsdelf3.[01]*)
13705 - shlibpath_overrides_runpath=yes
13706 - hardcode_into_libs=yes
13707 - ;;
13708 - *) # from 3.2 on
13709 - shlibpath_overrides_runpath=no
13710 - hardcode_into_libs=yes
13711 - ;;
13712 - esac
13713 - ;;
13714 -
13715 -gnu*)
13716 - version_type=linux
13717 - need_lib_prefix=no
13718 - need_version=no
13719 - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
13720 - soname_spec='${libname}${release}${shared_ext}$major'
13721 - shlibpath_var=LD_LIBRARY_PATH
13722 - hardcode_into_libs=yes
13723 - ;;
13724 -
13725 -hpux9* | hpux10* | hpux11*)
13726 - # Give a soname corresponding to the major version so that dld.sl refuses to
13727 - # link against other versions.
13728 - version_type=sunos
13729 - need_lib_prefix=no
13730 - need_version=no
13731 - case $host_cpu in
13732 - ia64*)
13733 - shrext_cmds='.so'
13734 - hardcode_into_libs=yes
13735 - dynamic_linker="$host_os dld.so"
13736 - shlibpath_var=LD_LIBRARY_PATH
13737 - shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13738 - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13739 - soname_spec='${libname}${release}${shared_ext}$major'
13740 - if test "X$HPUX_IA64_MODE" = X32; then
13741 - sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
13742 - else
13743 - sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
13744 - fi
13745 - sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13746 - ;;
13747 - hppa*64*)
13748 - shrext_cmds='.sl'
13749 - hardcode_into_libs=yes
13750 - dynamic_linker="$host_os dld.sl"
13751 - shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
13752 - shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13753 - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13754 - soname_spec='${libname}${release}${shared_ext}$major'
13755 - sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
13756 - sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13757 - ;;
13758 - *)
13759 - shrext_cmds='.sl'
13760 - dynamic_linker="$host_os dld.sl"
13761 - shlibpath_var=SHLIB_PATH
13762 - shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
13763 - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13764 - soname_spec='${libname}${release}${shared_ext}$major'
13765 - ;;
13766 - esac
13767 - # HP-UX runs *really* slowly unless shared libraries are mode 555.
13768 - postinstall_cmds='chmod 555 $lib'
13769 - ;;
13770 -
13771 -irix5* | irix6* | nonstopux*)
13772 - case $host_os in
13773 - nonstopux*) version_type=nonstopux ;;
13774 - *)
13775 - if test "$lt_cv_prog_gnu_ld" = yes; then
13776 - version_type=linux
13777 - else
13778 - version_type=irix
13779 - fi ;;
13780 - esac
13781 - need_lib_prefix=no
13782 - need_version=no
13783 - soname_spec='${libname}${release}${shared_ext}$major'
13784 - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
13785 - case $host_os in
13786 - irix5* | nonstopux*)
13787 - libsuff= shlibsuff=
13788 - ;;
13789 - *)
13790 - case $LD in # libtool.m4 will add one of these switches to LD
13791 - *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
13792 - libsuff= shlibsuff= libmagic=32-bit;;
13793 - *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
13794 - libsuff=32 shlibsuff=N32 libmagic=N32;;
13795 - *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
13796 - libsuff=64 shlibsuff=64 libmagic=64-bit;;
13797 - *) libsuff= shlibsuff= libmagic=never-match;;
13798 - esac
13799 - ;;
13800 - esac
13801 - shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
13802 - shlibpath_overrides_runpath=no
13803 - sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
13804 - sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
13805 - hardcode_into_libs=yes
13806 - ;;
13807 -
13808 -# No shared lib support for Linux oldld, aout, or coff.
13809 -linux*oldld* | linux*aout* | linux*coff*)
13810 - dynamic_linker=no
13811 - ;;
13812 -
13813 -# This must be Linux ELF.
13814 -linux*)
13815 - version_type=linux
13816 - need_lib_prefix=no
13817 - need_version=no
13818 - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13819 - soname_spec='${libname}${release}${shared_ext}$major'
13820 - finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
13821 - shlibpath_var=LD_LIBRARY_PATH
13822 - shlibpath_overrides_runpath=no
13823 - # This implies no fast_install, which is unacceptable.
13824 - # Some rework will be needed to allow for fast_install
13825 - # before this can be enabled.
13826 - hardcode_into_libs=yes
13827 -
13828 - # Append ld.so.conf contents to the search path
13829 - if test -f /etc/ld.so.conf; then
13830 - lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
13831 - sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
13832 - fi
13833 -
13834 - # We used to test for /lib/ld.so.1 and disable shared libraries on
13835 - # powerpc, because MkLinux only supported shared libraries with the
13836 - # GNU dynamic linker. Since this was broken with cross compilers,
13837 - # most powerpc-linux boxes support dynamic linking these days and
13838 - # people can always --disable-shared, the test was removed, and we
13839 - # assume the GNU/Linux dynamic linker is in use.
13840 - dynamic_linker='GNU/Linux ld.so'
13841 - ;;
13842 -
13843 -knetbsd*-gnu)
13844 - version_type=linux
13845 - need_lib_prefix=no
13846 - need_version=no
13847 - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13848 - soname_spec='${libname}${release}${shared_ext}$major'
13849 - shlibpath_var=LD_LIBRARY_PATH
13850 - shlibpath_overrides_runpath=no
13851 - hardcode_into_libs=yes
13852 - dynamic_linker='GNU ld.so'
13853 - ;;
13854 -
13855 -netbsd*)
13856 - version_type=sunos
13857 - need_lib_prefix=no
13858 - need_version=no
13859 - if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13860 - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13861 - finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13862 - dynamic_linker='NetBSD (a.out) ld.so'
13863 - else
13864 - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13865 - soname_spec='${libname}${release}${shared_ext}$major'
13866 - dynamic_linker='NetBSD ld.elf_so'
13867 - fi
13868 - shlibpath_var=LD_LIBRARY_PATH
13869 - shlibpath_overrides_runpath=yes
13870 - hardcode_into_libs=yes
13871 - ;;
13872 -
13873 -newsos6)
13874 - version_type=linux
13875 - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13876 - shlibpath_var=LD_LIBRARY_PATH
13877 - shlibpath_overrides_runpath=yes
13878 - ;;
13879 -
13880 -nto-qnx*)
13881 - version_type=linux
13882 - need_lib_prefix=no
13883 - need_version=no
13884 - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13885 - soname_spec='${libname}${release}${shared_ext}$major'
13886 - shlibpath_var=LD_LIBRARY_PATH
13887 - shlibpath_overrides_runpath=yes
13888 - ;;
13889 -
13890 -openbsd*)
13891 - version_type=sunos
13892 - need_lib_prefix=no
13893 - # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
13894 - case $host_os in
13895 - openbsd3.3 | openbsd3.3.*) need_version=yes ;;
13896 - *) need_version=no ;;
13897 - esac
13898 - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13899 - finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13900 - shlibpath_var=LD_LIBRARY_PATH
13901 - if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13902 - case $host_os in
13903 - openbsd2.[89] | openbsd2.[89].*)
13904 - shlibpath_overrides_runpath=no
13905 - ;;
13906 - *)
13907 - shlibpath_overrides_runpath=yes
13908 - ;;
13909 - esac
13910 - else
13911 - shlibpath_overrides_runpath=yes
13912 - fi
13913 - ;;
13914 -
13915 -os2*)
13916 - libname_spec='$name'
13917 - shrext_cmds=".dll"
13918 - need_lib_prefix=no
13919 - library_names_spec='$libname${shared_ext} $libname.a'
13920 - dynamic_linker='OS/2 ld.exe'
13921 - shlibpath_var=LIBPATH
13922 - ;;
13923 -
13924 -osf3* | osf4* | osf5*)
13925 - version_type=osf
13926 - need_lib_prefix=no
13927 - need_version=no
13928 - soname_spec='${libname}${release}${shared_ext}$major'
13929 - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13930 - shlibpath_var=LD_LIBRARY_PATH
13931 - sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
13932 - sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
13933 - ;;
13934 -
13935 -sco3.2v5*)
13936 - version_type=osf
13937 - soname_spec='${libname}${release}${shared_ext}$major'
13938 - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13939 - shlibpath_var=LD_LIBRARY_PATH
13940 - ;;
13941 -
13942 -solaris*)
13943 - version_type=linux
13944 - need_lib_prefix=no
13945 - need_version=no
13946 - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13947 - soname_spec='${libname}${release}${shared_ext}$major'
13948 - shlibpath_var=LD_LIBRARY_PATH
13949 - shlibpath_overrides_runpath=yes
13950 - hardcode_into_libs=yes
13951 - # ldd complains unless libraries are executable
13952 - postinstall_cmds='chmod +x $lib'
13953 - ;;
13954 -
13955 -sunos4*)
13956 - version_type=sunos
13957 - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13958 - finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
13959 - shlibpath_var=LD_LIBRARY_PATH
13960 - shlibpath_overrides_runpath=yes
13961 - if test "$with_gnu_ld" = yes; then
13962 - need_lib_prefix=no
13963 - fi
13964 - need_version=yes
13965 - ;;
13966 -
13967 -sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
13968 - version_type=linux
13969 - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13970 - soname_spec='${libname}${release}${shared_ext}$major'
13971 - shlibpath_var=LD_LIBRARY_PATH
13972 - case $host_vendor in
13973 - sni)
13974 - shlibpath_overrides_runpath=no
13975 - need_lib_prefix=no
13976 - export_dynamic_flag_spec='${wl}-Blargedynsym'
13977 - runpath_var=LD_RUN_PATH
13978 - ;;
13979 - siemens)
13980 - need_lib_prefix=no
13981 - ;;
13982 - motorola)
13983 - need_lib_prefix=no
13984 - need_version=no
13985 - shlibpath_overrides_runpath=no
13986 - sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
13987 - ;;
13988 - esac
13989 - ;;
13990 -
13991 -sysv4*MP*)
13992 - if test -d /usr/nec ;then
13993 - version_type=linux
13994 - library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
13995 - soname_spec='$libname${shared_ext}.$major'
13996 - shlibpath_var=LD_LIBRARY_PATH
13997 - fi
13998 - ;;
13999 -
14000 -uts4*)
14001 - version_type=linux
14002 - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14003 - soname_spec='${libname}${release}${shared_ext}$major'
14004 - shlibpath_var=LD_LIBRARY_PATH
14005 - ;;
14006 -
14007 -*)
14008 - dynamic_linker=no
14009 - ;;
14010 -esac
14011 -echo "$as_me:$LINENO: result: $dynamic_linker" >&5
14012 -echo "${ECHO_T}$dynamic_linker" >&6
14013 -test "$dynamic_linker" = no && can_build_shared=no
14014 -
14015 -echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
14016 -echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
14017 -hardcode_action=
14018 -if test -n "$hardcode_libdir_flag_spec" || \
14019 - test -n "$runpath_var" || \
14020 - test "X$hardcode_automatic" = "Xyes" ; then
14021 -
14022 - # We can hardcode non-existant directories.
14023 - if test "$hardcode_direct" != no &&
14024 - # If the only mechanism to avoid hardcoding is shlibpath_var, we
14025 - # have to relink, otherwise we might link with an installed library
14026 - # when we should be linking with a yet-to-be-installed one
14027 - ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
14028 - test "$hardcode_minus_L" != no; then
14029 - # Linking always hardcodes the temporary library directory.
14030 - hardcode_action=relink
14031 - else
14032 - # We can link without hardcoding, and we can hardcode nonexisting dirs.
14033 - hardcode_action=immediate
14034 - fi
14035 -else
14036 - # We cannot hardcode anything, or else we can only hardcode existing
14037 - # directories.
14038 - hardcode_action=unsupported
14039 -fi
14040 -echo "$as_me:$LINENO: result: $hardcode_action" >&5
14041 -echo "${ECHO_T}$hardcode_action" >&6
14042 -
14043 -if test "$hardcode_action" = relink; then
14044 - # Fast installation is not supported
14045 - enable_fast_install=no
14046 -elif test "$shlibpath_overrides_runpath" = yes ||
14047 - test "$enable_shared" = no; then
14048 - # Fast installation is not necessary
14049 - enable_fast_install=needless
14050 -fi
14051 -
14052 -striplib=
14053 -old_striplib=
14054 -echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
14055 -echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
14056 -if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
14057 - test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
14058 - test -z "$striplib" && striplib="$STRIP --strip-unneeded"
14059 - echo "$as_me:$LINENO: result: yes" >&5
14060 -echo "${ECHO_T}yes" >&6
14061 -else
14062 -# FIXME - insert some real tests, host_os isn't really good enough
14063 - case $host_os in
14064 - darwin*)
14065 - if test -n "$STRIP" ; then
14066 - striplib="$STRIP -x"
14067 - echo "$as_me:$LINENO: result: yes" >&5
14068 -echo "${ECHO_T}yes" >&6
14069 - else
14070 - echo "$as_me:$LINENO: result: no" >&5
14071 -echo "${ECHO_T}no" >&6
14072 -fi
14073 - ;;
14074 - *)
14075 - echo "$as_me:$LINENO: result: no" >&5
14076 -echo "${ECHO_T}no" >&6
14077 - ;;
14078 - esac
14079 -fi
14080 -
14081 -if test "x$enable_dlopen" != xyes; then
14082 - enable_dlopen=unknown
14083 - enable_dlopen_self=unknown
14084 - enable_dlopen_self_static=unknown
14085 -else
14086 - lt_cv_dlopen=no
14087 - lt_cv_dlopen_libs=
14088 -
14089 - case $host_os in
14090 - beos*)
14091 - lt_cv_dlopen="load_add_on"
14092 - lt_cv_dlopen_libs=
14093 - lt_cv_dlopen_self=yes
14094 - ;;
14095 -
14096 - mingw* | pw32*)
14097 - lt_cv_dlopen="LoadLibrary"
14098 - lt_cv_dlopen_libs=
14099 - ;;
14100 -
14101 - cygwin*)
14102 - lt_cv_dlopen="dlopen"
14103 - lt_cv_dlopen_libs=
14104 - ;;
14105 -
14106 - darwin*)
14107 - # if libdl is installed we need to link against it
14108 - echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
14109 -echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
14110 -if test "${ac_cv_lib_dl_dlopen+set}" = set; then
14111 - echo $ECHO_N "(cached) $ECHO_C" >&6
14112 -else
14113 - ac_check_lib_save_LIBS=$LIBS
14114 -LIBS="-ldl $LIBS"
14115 -cat >conftest.$ac_ext <<_ACEOF
14116 -/* confdefs.h. */
14117 -_ACEOF
14118 -cat confdefs.h >>conftest.$ac_ext
14119 -cat >>conftest.$ac_ext <<_ACEOF
14120 -/* end confdefs.h. */
14121 -
14122 -/* Override any gcc2 internal prototype to avoid an error. */
14123 -#ifdef __cplusplus
14124 -extern "C"
14125 -#endif
14126 -/* We use char because int might match the return type of a gcc2
14127 - builtin and then its argument prototype would still apply. */
14128 -char dlopen ();
14129 -int
14130 -main ()
14131 -{
14132 -dlopen ();
14133 - ;
14134 - return 0;
14135 -}
14136 -_ACEOF
14137 -rm -f conftest.$ac_objext conftest$ac_exeext
14138 -if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14139 - (eval $ac_link) 2>conftest.er1
14140 - ac_status=$?
14141 - grep -v '^ *+' conftest.er1 >conftest.err
14142 - rm -f conftest.er1
14143 - cat conftest.err >&5
14144 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
14145 - (exit $ac_status); } &&
14146 - { ac_try='test -z "$ac_c_werror_flag"
14147 - || test ! -s conftest.err'
14148 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14149 - (eval $ac_try) 2>&5
14150 - ac_status=$?
14151 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
14152 - (exit $ac_status); }; } &&
14153 - { ac_try='test -s conftest$ac_exeext'
14154 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14155 - (eval $ac_try) 2>&5
14156 - ac_status=$?
14157 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
14158 - (exit $ac_status); }; }; then
14159 - ac_cv_lib_dl_dlopen=yes
14160 -else
14161 - echo "$as_me: failed program was:" >&5
14162 -sed 's/^/| /' conftest.$ac_ext >&5
14163 -
14164 -ac_cv_lib_dl_dlopen=no
14165 -fi
14166 -rm -f conftest.err conftest.$ac_objext \
14167 - conftest$ac_exeext conftest.$ac_ext
14168 -LIBS=$ac_check_lib_save_LIBS
14169 -fi
14170 -echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
14171 -echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
14172 -if test $ac_cv_lib_dl_dlopen = yes; then
14173 - lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
14174 -else
14175 -
14176 - lt_cv_dlopen="dyld"
14177 - lt_cv_dlopen_libs=
14178 - lt_cv_dlopen_self=yes
14179 -
14180 -fi
14181 -
14182 - ;;
14183 -
14184 - *)
14185 - echo "$as_me:$LINENO: checking for shl_load" >&5
14186 -echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
14187 -if test "${ac_cv_func_shl_load+set}" = set; then
14188 - echo $ECHO_N "(cached) $ECHO_C" >&6
14189 -else
14190 - cat >conftest.$ac_ext <<_ACEOF
14191 -/* confdefs.h. */
14192 -_ACEOF
14193 -cat confdefs.h >>conftest.$ac_ext
14194 -cat >>conftest.$ac_ext <<_ACEOF
14195 -/* end confdefs.h. */
14196 -/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
14197 - For example, HP-UX 11i <limits.h> declares gettimeofday. */
14198 -#define shl_load innocuous_shl_load
14199 -
14200 -/* System header to define __stub macros and hopefully few prototypes,
14201 - which can conflict with char shl_load (); below.
14202 - Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14203 - <limits.h> exists even on freestanding compilers. */
14204 -
14205 -#ifdef __STDC__
14206 -# include <limits.h>
14207 -#else
14208 -# include <assert.h>
14209 -#endif
14210 -
14211 -#undef shl_load
14212 -
14213 -/* Override any gcc2 internal prototype to avoid an error. */
14214 -#ifdef __cplusplus
14215 -extern "C"
14216 -{
14217 -#endif
14218 -/* We use char because int might match the return type of a gcc2
14219 - builtin and then its argument prototype would still apply. */
14220 -char shl_load ();
14221 -/* The GNU C library defines this for functions which it implements
14222 - to always fail with ENOSYS. Some functions are actually named
14223 - something starting with __ and the normal name is an alias. */
14224 -#if defined (__stub_shl_load) || defined (__stub___shl_load)
14225 -choke me
14226 -#else
14227 -char (*f) () = shl_load;
14228 -#endif
14229 -#ifdef __cplusplus
14230 -}
14231 -#endif
14232 -
14233 -int
14234 -main ()
14235 -{
14236 -return f != shl_load;
14237 - ;
14238 - return 0;
14239 -}
14240 -_ACEOF
14241 -rm -f conftest.$ac_objext conftest$ac_exeext
14242 -if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14243 - (eval $ac_link) 2>conftest.er1
14244 - ac_status=$?
14245 - grep -v '^ *+' conftest.er1 >conftest.err
14246 - rm -f conftest.er1
14247 - cat conftest.err >&5
14248 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
14249 - (exit $ac_status); } &&
14250 - { ac_try='test -z "$ac_c_werror_flag"
14251 - || test ! -s conftest.err'
14252 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14253 - (eval $ac_try) 2>&5
14254 - ac_status=$?
14255 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
14256 - (exit $ac_status); }; } &&
14257 - { ac_try='test -s conftest$ac_exeext'
14258 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14259 - (eval $ac_try) 2>&5
14260 - ac_status=$?
14261 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
14262 - (exit $ac_status); }; }; then
14263 - ac_cv_func_shl_load=yes
14264 -else
14265 - echo "$as_me: failed program was:" >&5
14266 -sed 's/^/| /' conftest.$ac_ext >&5
14267 -
14268 -ac_cv_func_shl_load=no
14269 -fi
14270 -rm -f conftest.err conftest.$ac_objext \
14271 - conftest$ac_exeext conftest.$ac_ext
14272 -fi
14273 -echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
14274 -echo "${ECHO_T}$ac_cv_func_shl_load" >&6
14275 -if test $ac_cv_func_shl_load = yes; then
14276 - lt_cv_dlopen="shl_load"
14277 -else
14278 - echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
14279 -echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
14280 -if test "${ac_cv_lib_dld_shl_load+set}" = set; then
14281 - echo $ECHO_N "(cached) $ECHO_C" >&6
14282 -else
14283 - ac_check_lib_save_LIBS=$LIBS
14284 -LIBS="-ldld $LIBS"
14285 -cat >conftest.$ac_ext <<_ACEOF
14286 -/* confdefs.h. */
14287 -_ACEOF
14288 -cat confdefs.h >>conftest.$ac_ext
14289 -cat >>conftest.$ac_ext <<_ACEOF
14290 -/* end confdefs.h. */
14291 -
14292 -/* Override any gcc2 internal prototype to avoid an error. */
14293 -#ifdef __cplusplus
14294 -extern "C"
14295 -#endif
14296 -/* We use char because int might match the return type of a gcc2
14297 - builtin and then its argument prototype would still apply. */
14298 -char shl_load ();
14299 -int
14300 -main ()
14301 -{
14302 -shl_load ();
14303 - ;
14304 - return 0;
14305 -}
14306 -_ACEOF
14307 -rm -f conftest.$ac_objext conftest$ac_exeext
14308 -if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14309 - (eval $ac_link) 2>conftest.er1
14310 - ac_status=$?
14311 - grep -v '^ *+' conftest.er1 >conftest.err
14312 - rm -f conftest.er1
14313 - cat conftest.err >&5
14314 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
14315 - (exit $ac_status); } &&
14316 - { ac_try='test -z "$ac_c_werror_flag"
14317 - || test ! -s conftest.err'
14318 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14319 - (eval $ac_try) 2>&5
14320 - ac_status=$?
14321 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
14322 - (exit $ac_status); }; } &&
14323 - { ac_try='test -s conftest$ac_exeext'
14324 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14325 - (eval $ac_try) 2>&5
14326 - ac_status=$?
14327 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
14328 - (exit $ac_status); }; }; then
14329 - ac_cv_lib_dld_shl_load=yes
14330 -else
14331 - echo "$as_me: failed program was:" >&5
14332 -sed 's/^/| /' conftest.$ac_ext >&5
14333 -
14334 -ac_cv_lib_dld_shl_load=no
14335 -fi
14336 -rm -f conftest.err conftest.$ac_objext \
14337 - conftest$ac_exeext conftest.$ac_ext
14338 -LIBS=$ac_check_lib_save_LIBS
14339 -fi
14340 -echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
14341 -echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
14342 -if test $ac_cv_lib_dld_shl_load = yes; then
14343 - lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
14344 -else
14345 - echo "$as_me:$LINENO: checking for dlopen" >&5
14346 -echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
14347 -if test "${ac_cv_func_dlopen+set}" = set; then
14348 - echo $ECHO_N "(cached) $ECHO_C" >&6
14349 -else
14350 - cat >conftest.$ac_ext <<_ACEOF
14351 -/* confdefs.h. */
14352 -_ACEOF
14353 -cat confdefs.h >>conftest.$ac_ext
14354 -cat >>conftest.$ac_ext <<_ACEOF
14355 -/* end confdefs.h. */
14356 -/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
14357 - For example, HP-UX 11i <limits.h> declares gettimeofday. */
14358 -#define dlopen innocuous_dlopen
14359 -
14360 -/* System header to define __stub macros and hopefully few prototypes,
14361 - which can conflict with char dlopen (); below.
14362 - Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14363 - <limits.h> exists even on freestanding compilers. */
14364 -
14365 -#ifdef __STDC__
14366 -# include <limits.h>
14367 -#else
14368 -# include <assert.h>
14369 -#endif
14370 -
14371 -#undef dlopen
14372 -
14373 -/* Override any gcc2 internal prototype to avoid an error. */
14374 -#ifdef __cplusplus
14375 -extern "C"
14376 -{
14377 -#endif
14378 -/* We use char because int might match the return type of a gcc2
14379 - builtin and then its argument prototype would still apply. */
14380 -char dlopen ();
14381 -/* The GNU C library defines this for functions which it implements
14382 - to always fail with ENOSYS. Some functions are actually named
14383 - something starting with __ and the normal name is an alias. */
14384 -#if defined (__stub_dlopen) || defined (__stub___dlopen)
14385 -choke me
14386 -#else
14387 -char (*f) () = dlopen;
14388 -#endif
14389 -#ifdef __cplusplus
14390 -}
14391 -#endif
14392 -
14393 -int
14394 -main ()
14395 -{
14396 -return f != dlopen;
14397 - ;
14398 - return 0;
14399 -}
14400 -_ACEOF
14401 -rm -f conftest.$ac_objext conftest$ac_exeext
14402 -if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14403 - (eval $ac_link) 2>conftest.er1
14404 - ac_status=$?
14405 - grep -v '^ *+' conftest.er1 >conftest.err
14406 - rm -f conftest.er1
14407 - cat conftest.err >&5
14408 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
14409 - (exit $ac_status); } &&
14410 - { ac_try='test -z "$ac_c_werror_flag"
14411 - || test ! -s conftest.err'
14412 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14413 - (eval $ac_try) 2>&5
14414 - ac_status=$?
14415 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
14416 - (exit $ac_status); }; } &&
14417 - { ac_try='test -s conftest$ac_exeext'
14418 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14419 - (eval $ac_try) 2>&5
14420 - ac_status=$?
14421 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
14422 - (exit $ac_status); }; }; then
14423 - ac_cv_func_dlopen=yes
14424 -else
14425 - echo "$as_me: failed program was:" >&5
14426 -sed 's/^/| /' conftest.$ac_ext >&5
14427 -
14428 -ac_cv_func_dlopen=no
14429 -fi
14430 -rm -f conftest.err conftest.$ac_objext \
14431 - conftest$ac_exeext conftest.$ac_ext
14432 -fi
14433 -echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
14434 -echo "${ECHO_T}$ac_cv_func_dlopen" >&6
14435 -if test $ac_cv_func_dlopen = yes; then
14436 - lt_cv_dlopen="dlopen"
14437 -else
14438 - echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
14439 -echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
14440 -if test "${ac_cv_lib_dl_dlopen+set}" = set; then
14441 - echo $ECHO_N "(cached) $ECHO_C" >&6
14442 -else
14443 - ac_check_lib_save_LIBS=$LIBS
14444 -LIBS="-ldl $LIBS"
14445 -cat >conftest.$ac_ext <<_ACEOF
14446 -/* confdefs.h. */
14447 -_ACEOF
14448 -cat confdefs.h >>conftest.$ac_ext
14449 -cat >>conftest.$ac_ext <<_ACEOF
14450 -/* end confdefs.h. */
14451 -
14452 -/* Override any gcc2 internal prototype to avoid an error. */
14453 -#ifdef __cplusplus
14454 -extern "C"
14455 -#endif
14456 -/* We use char because int might match the return type of a gcc2
14457 - builtin and then its argument prototype would still apply. */
14458 -char dlopen ();
14459 -int
14460 -main ()
14461 -{
14462 -dlopen ();
14463 - ;
14464 - return 0;
14465 -}
14466 -_ACEOF
14467 -rm -f conftest.$ac_objext conftest$ac_exeext
14468 -if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14469 - (eval $ac_link) 2>conftest.er1
14470 - ac_status=$?
14471 - grep -v '^ *+' conftest.er1 >conftest.err
14472 - rm -f conftest.er1
14473 - cat conftest.err >&5
14474 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
14475 - (exit $ac_status); } &&
14476 - { ac_try='test -z "$ac_c_werror_flag"
14477 - || test ! -s conftest.err'
14478 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14479 - (eval $ac_try) 2>&5
14480 - ac_status=$?
14481 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
14482 - (exit $ac_status); }; } &&
14483 - { ac_try='test -s conftest$ac_exeext'
14484 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14485 - (eval $ac_try) 2>&5
14486 - ac_status=$?
14487 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
14488 - (exit $ac_status); }; }; then
14489 - ac_cv_lib_dl_dlopen=yes
14490 -else
14491 - echo "$as_me: failed program was:" >&5
14492 -sed 's/^/| /' conftest.$ac_ext >&5
14493 -
14494 -ac_cv_lib_dl_dlopen=no
14495 -fi
14496 -rm -f conftest.err conftest.$ac_objext \
14497 - conftest$ac_exeext conftest.$ac_ext
14498 -LIBS=$ac_check_lib_save_LIBS
14499 -fi
14500 -echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
14501 -echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
14502 -if test $ac_cv_lib_dl_dlopen = yes; then
14503 - lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
14504 -else
14505 - echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
14506 -echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
14507 -if test "${ac_cv_lib_svld_dlopen+set}" = set; then
14508 - echo $ECHO_N "(cached) $ECHO_C" >&6
14509 -else
14510 - ac_check_lib_save_LIBS=$LIBS
14511 -LIBS="-lsvld $LIBS"
14512 -cat >conftest.$ac_ext <<_ACEOF
14513 -/* confdefs.h. */
14514 -_ACEOF
14515 -cat confdefs.h >>conftest.$ac_ext
14516 -cat >>conftest.$ac_ext <<_ACEOF
14517 -/* end confdefs.h. */
14518 -
14519 -/* Override any gcc2 internal prototype to avoid an error. */
14520 -#ifdef __cplusplus
14521 -extern "C"
14522 -#endif
14523 -/* We use char because int might match the return type of a gcc2
14524 - builtin and then its argument prototype would still apply. */
14525 -char dlopen ();
14526 -int
14527 -main ()
14528 -{
14529 -dlopen ();
14530 - ;
14531 - return 0;
14532 -}
14533 -_ACEOF
14534 -rm -f conftest.$ac_objext conftest$ac_exeext
14535 -if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14536 - (eval $ac_link) 2>conftest.er1
14537 - ac_status=$?
14538 - grep -v '^ *+' conftest.er1 >conftest.err
14539 - rm -f conftest.er1
14540 - cat conftest.err >&5
14541 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
14542 - (exit $ac_status); } &&
14543 - { ac_try='test -z "$ac_c_werror_flag"
14544 - || test ! -s conftest.err'
14545 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14546 - (eval $ac_try) 2>&5
14547 - ac_status=$?
14548 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
14549 - (exit $ac_status); }; } &&
14550 - { ac_try='test -s conftest$ac_exeext'
14551 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14552 - (eval $ac_try) 2>&5
14553 - ac_status=$?
14554 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
14555 - (exit $ac_status); }; }; then
14556 - ac_cv_lib_svld_dlopen=yes
14557 -else
14558 - echo "$as_me: failed program was:" >&5
14559 -sed 's/^/| /' conftest.$ac_ext >&5
14560 -
14561 -ac_cv_lib_svld_dlopen=no
14562 -fi
14563 -rm -f conftest.err conftest.$ac_objext \
14564 - conftest$ac_exeext conftest.$ac_ext
14565 -LIBS=$ac_check_lib_save_LIBS
14566 -fi
14567 -echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
14568 -echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
14569 -if test $ac_cv_lib_svld_dlopen = yes; then
14570 - lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
14571 -else
14572 - echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
14573 -echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
14574 -if test "${ac_cv_lib_dld_dld_link+set}" = set; then
14575 - echo $ECHO_N "(cached) $ECHO_C" >&6
14576 -else
14577 - ac_check_lib_save_LIBS=$LIBS
14578 -LIBS="-ldld $LIBS"
14579 -cat >conftest.$ac_ext <<_ACEOF
14580 -/* confdefs.h. */
14581 -_ACEOF
14582 -cat confdefs.h >>conftest.$ac_ext
14583 -cat >>conftest.$ac_ext <<_ACEOF
14584 -/* end confdefs.h. */
14585 -
14586 -/* Override any gcc2 internal prototype to avoid an error. */
14587 -#ifdef __cplusplus
14588 -extern "C"
14589 -#endif
14590 -/* We use char because int might match the return type of a gcc2
14591 - builtin and then its argument prototype would still apply. */
14592 -char dld_link ();
14593 -int
14594 -main ()
14595 -{
14596 -dld_link ();
14597 - ;
14598 - return 0;
14599 -}
14600 -_ACEOF
14601 -rm -f conftest.$ac_objext conftest$ac_exeext
14602 -if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14603 - (eval $ac_link) 2>conftest.er1
14604 - ac_status=$?
14605 - grep -v '^ *+' conftest.er1 >conftest.err
14606 - rm -f conftest.er1
14607 - cat conftest.err >&5
14608 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
14609 - (exit $ac_status); } &&
14610 - { ac_try='test -z "$ac_c_werror_flag"
14611 - || test ! -s conftest.err'
14612 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14613 - (eval $ac_try) 2>&5
14614 - ac_status=$?
14615 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
14616 - (exit $ac_status); }; } &&
14617 - { ac_try='test -s conftest$ac_exeext'
14618 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14619 - (eval $ac_try) 2>&5
14620 - ac_status=$?
14621 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
14622 - (exit $ac_status); }; }; then
14623 - ac_cv_lib_dld_dld_link=yes
14624 -else
14625 - echo "$as_me: failed program was:" >&5
14626 -sed 's/^/| /' conftest.$ac_ext >&5
14627 -
14628 -ac_cv_lib_dld_dld_link=no
14629 -fi
14630 -rm -f conftest.err conftest.$ac_objext \
14631 - conftest$ac_exeext conftest.$ac_ext
14632 -LIBS=$ac_check_lib_save_LIBS
14633 -fi
14634 -echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
14635 -echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
14636 -if test $ac_cv_lib_dld_dld_link = yes; then
14637 - lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
14638 -fi
14639 -
14640 -
14641 -fi
14642 -
14643 -
14644 -fi
14645 -
14646 -
14647 -fi
14648 -
14649 -
14650 -fi
14651 -
14652 -
14653 -fi
14654 -
14655 - ;;
14656 - esac
14657 -
14658 - if test "x$lt_cv_dlopen" != xno; then
14659 - enable_dlopen=yes
14660 - else
14661 - enable_dlopen=no
14662 - fi
14663 -
14664 - case $lt_cv_dlopen in
14665 - dlopen)
14666 - save_CPPFLAGS="$CPPFLAGS"
14667 - test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
14668 -
14669 - save_LDFLAGS="$LDFLAGS"
14670 - eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
14671 -
14672 - save_LIBS="$LIBS"
14673 - LIBS="$lt_cv_dlopen_libs $LIBS"
14674 -
14675 - echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
14676 -echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
14677 -if test "${lt_cv_dlopen_self+set}" = set; then
14678 - echo $ECHO_N "(cached) $ECHO_C" >&6
14679 -else
14680 - if test "$cross_compiling" = yes; then :
14681 - lt_cv_dlopen_self=cross
14682 -else
14683 - lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
14684 - lt_status=$lt_dlunknown
14685 - cat > conftest.$ac_ext <<EOF
14686 -#line 8853 "configure"
14687 -#include "confdefs.h"
14688 -
14689 -#if HAVE_DLFCN_H
14690 -#include <dlfcn.h>
14691 -#endif
14692 -
14693 -#include <stdio.h>
14694 -
14695 -#ifdef RTLD_GLOBAL
14696 -# define LT_DLGLOBAL RTLD_GLOBAL
14697 -#else
14698 -# ifdef DL_GLOBAL
14699 -# define LT_DLGLOBAL DL_GLOBAL
14700 -# else
14701 -# define LT_DLGLOBAL 0
14702 -# endif
14703 -#endif
14704 -
14705 -/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
14706 - find out it does not work in some platform. */
14707 -#ifndef LT_DLLAZY_OR_NOW
14708 -# ifdef RTLD_LAZY
14709 -# define LT_DLLAZY_OR_NOW RTLD_LAZY
14710 -# else
14711 -# ifdef DL_LAZY
14712 -# define LT_DLLAZY_OR_NOW DL_LAZY
14713 -# else
14714 -# ifdef RTLD_NOW
14715 -# define LT_DLLAZY_OR_NOW RTLD_NOW
14716 -# else
14717 -# ifdef DL_NOW
14718 -# define LT_DLLAZY_OR_NOW DL_NOW
14719 -# else
14720 -# define LT_DLLAZY_OR_NOW 0
14721 -# endif
14722 -# endif
14723 -# endif
14724 -# endif
14725 -#endif
14726 -
14727 -#ifdef __cplusplus
14728 -extern "C" void exit (int);
14729 -#endif
14730 -
14731 -void fnord() { int i=42;}
14732 -int main ()
14733 -{
14734 - void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
14735 - int status = $lt_dlunknown;
14736 -
14737 - if (self)
14738 - {
14739 - if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
14740 - else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
14741 - /* dlclose (self); */
14742 - }
14743 -
14744 - exit (status);
14745 -}
14746 -EOF
14747 - if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14748 - (eval $ac_link) 2>&5
14749 - ac_status=$?
14750 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
14751 - (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
14752 - (./conftest; exit; ) >&5 2>/dev/null
14753 - lt_status=$?
14754 - case x$lt_status in
14755 - x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
14756 - x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
14757 - x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
14758 - esac
14759 - else :
14760 - # compilation failed
14761 - lt_cv_dlopen_self=no
14762 - fi
14763 -fi
14764 -rm -fr conftest*
14765 -
14766 -
14767 -fi
14768 -echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
14769 -echo "${ECHO_T}$lt_cv_dlopen_self" >&6
14770 -
14771 - if test "x$lt_cv_dlopen_self" = xyes; then
14772 - LDFLAGS="$LDFLAGS $link_static_flag"
14773 - echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
14774 -echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
14775 -if test "${lt_cv_dlopen_self_static+set}" = set; then
14776 - echo $ECHO_N "(cached) $ECHO_C" >&6
14777 -else
14778 - if test "$cross_compiling" = yes; then :
14779 - lt_cv_dlopen_self_static=cross
14780 -else
14781 - lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
14782 - lt_status=$lt_dlunknown
14783 - cat > conftest.$ac_ext <<EOF
14784 -#line 8951 "configure"
14785 -#include "confdefs.h"
14786 -
14787 -#if HAVE_DLFCN_H
14788 -#include <dlfcn.h>
14789 -#endif
14790 -
14791 -#include <stdio.h>
14792 -
14793 -#ifdef RTLD_GLOBAL
14794 -# define LT_DLGLOBAL RTLD_GLOBAL
14795 -#else
14796 -# ifdef DL_GLOBAL
14797 -# define LT_DLGLOBAL DL_GLOBAL
14798 -# else
14799 -# define LT_DLGLOBAL 0
14800 -# endif
14801 -#endif
14802 -
14803 -/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
14804 - find out it does not work in some platform. */
14805 -#ifndef LT_DLLAZY_OR_NOW
14806 -# ifdef RTLD_LAZY
14807 -# define LT_DLLAZY_OR_NOW RTLD_LAZY
14808 -# else
14809 -# ifdef DL_LAZY
14810 -# define LT_DLLAZY_OR_NOW DL_LAZY
14811 -# else
14812 -# ifdef RTLD_NOW
14813 -# define LT_DLLAZY_OR_NOW RTLD_NOW
14814 -# else
14815 -# ifdef DL_NOW
14816 -# define LT_DLLAZY_OR_NOW DL_NOW
14817 -# else
14818 -# define LT_DLLAZY_OR_NOW 0
14819 -# endif
14820 -# endif
14821 -# endif
14822 -# endif
14823 -#endif
14824 -
14825 -#ifdef __cplusplus
14826 -extern "C" void exit (int);
14827 -#endif
14828 -
14829 -void fnord() { int i=42;}
14830 -int main ()
14831 -{
14832 - void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
14833 - int status = $lt_dlunknown;
14834 -
14835 - if (self)
14836 - {
14837 - if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
14838 - else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
14839 - /* dlclose (self); */
14840 - }
14841 -
14842 - exit (status);
14843 -}
14844 -EOF
14845 - if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14846 - (eval $ac_link) 2>&5
14847 - ac_status=$?
14848 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
14849 - (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
14850 - (./conftest; exit; ) >&5 2>/dev/null
14851 - lt_status=$?
14852 - case x$lt_status in
14853 - x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
14854 - x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
14855 - x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
14856 - esac
14857 - else :
14858 - # compilation failed
14859 - lt_cv_dlopen_self_static=no
14860 - fi
14861 -fi
14862 -rm -fr conftest*
14863 -
14864 -
14865 -fi
14866 -echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
14867 -echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
14868 - fi
14869 -
14870 - CPPFLAGS="$save_CPPFLAGS"
14871 - LDFLAGS="$save_LDFLAGS"
14872 - LIBS="$save_LIBS"
14873 - ;;
14874 - esac
14875 -
14876 - case $lt_cv_dlopen_self in
14877 - yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
14878 - *) enable_dlopen_self=unknown ;;
14879 - esac
14880 -
14881 - case $lt_cv_dlopen_self_static in
14882 - yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
14883 - *) enable_dlopen_self_static=unknown ;;
14884 - esac
14885 -fi
14886 -
14887 -
14888 -# Report which librarie types wil actually be built
14889 -echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
14890 -echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
14891 -echo "$as_me:$LINENO: result: $can_build_shared" >&5
14892 -echo "${ECHO_T}$can_build_shared" >&6
14893 -
14894 -echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
14895 -echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
14896 -test "$can_build_shared" = "no" && enable_shared=no
14897 -
14898 -# On AIX, shared libraries and static libraries use the same namespace, and
14899 -# are all built from PIC.
14900 -case $host_os in
14901 -aix3*)
14902 - test "$enable_shared" = yes && enable_static=no
14903 - if test -n "$RANLIB"; then
14904 - archive_cmds="$archive_cmds~\$RANLIB \$lib"
14905 - postinstall_cmds='$RANLIB $lib'
14906 - fi
14907 - ;;
14908 -
14909 -aix4* | aix5*)
14910 - if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
14911 - test "$enable_shared" = yes && enable_static=no
14912 - fi
14913 - ;;
14914 -esac
14915 -echo "$as_me:$LINENO: result: $enable_shared" >&5
14916 -echo "${ECHO_T}$enable_shared" >&6
14917 -
14918 -echo "$as_me:$LINENO: checking whether to build static libraries" >&5
14919 -echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
14920 -# Make sure either enable_shared or enable_static is yes.
14921 -test "$enable_shared" = yes || enable_static=yes
14922 -echo "$as_me:$LINENO: result: $enable_static" >&5
14923 -echo "${ECHO_T}$enable_static" >&6
14924 -
14925 -# The else clause should only fire when bootstrapping the
14926 -# libtool distribution, otherwise you forgot to ship ltmain.sh
14927 -# with your package, and you will get complaints that there are
14928 -# no rules to generate ltmain.sh.
14929 -if test -f "$ltmain"; then
14930 - # See if we are running on zsh, and set the options which allow our commands through
14931 - # without removal of \ escapes.
14932 - if test -n "${ZSH_VERSION+set}" ; then
14933 - setopt NO_GLOB_SUBST
14934 - fi
14935 - # Now quote all the things that may contain metacharacters while being
14936 - # careful not to overquote the AC_SUBSTed values. We take copies of the
14937 - # variables and quote the copies for generation of the libtool script.
14938 - for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
14939 - SED SHELL STRIP \
14940 - libname_spec library_names_spec soname_spec extract_expsyms_cmds \
14941 - old_striplib striplib file_magic_cmd finish_cmds finish_eval \
14942 - deplibs_check_method reload_flag reload_cmds need_locks \
14943 - lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
14944 - lt_cv_sys_global_symbol_to_c_name_address \
14945 - sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
14946 - old_postinstall_cmds old_postuninstall_cmds \
14947 - compiler \
14948 - CC \
14949 - LD \
14950 - lt_prog_compiler_wl \
14951 - lt_prog_compiler_pic \
14952 - lt_prog_compiler_static \
14953 - lt_prog_compiler_no_builtin_flag \
14954 - export_dynamic_flag_spec \
14955 - thread_safe_flag_spec \
14956 - whole_archive_flag_spec \
14957 - enable_shared_with_static_runtimes \
14958 - old_archive_cmds \
14959 - old_archive_from_new_cmds \
14960 - predep_objects \
14961 - postdep_objects \
14962 - predeps \
14963 - postdeps \
14964 - compiler_lib_search_path \
14965 - archive_cmds \
14966 - archive_expsym_cmds \
14967 - postinstall_cmds \
14968 - postuninstall_cmds \
14969 - old_archive_from_expsyms_cmds \
14970 - allow_undefined_flag \
14971 - no_undefined_flag \
14972 - export_symbols_cmds \
14973 - hardcode_libdir_flag_spec \
14974 - hardcode_libdir_flag_spec_ld \
14975 - hardcode_libdir_separator \
14976 - hardcode_automatic \
14977 - module_cmds \
14978 - module_expsym_cmds \
14979 - lt_cv_prog_compiler_c_o \
14980 - exclude_expsyms \
14981 - include_expsyms; do
14982 -
14983 - case $var in
14984 - old_archive_cmds | \
14985 - old_archive_from_new_cmds | \
14986 - archive_cmds | \
14987 - archive_expsym_cmds | \
14988 - module_cmds | \
14989 - module_expsym_cmds | \
14990 - old_archive_from_expsyms_cmds | \
14991 - export_symbols_cmds | \
14992 - extract_expsyms_cmds | reload_cmds | finish_cmds | \
14993 - postinstall_cmds | postuninstall_cmds | \
14994 - old_postinstall_cmds | old_postuninstall_cmds | \
14995 - sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
14996 - # Double-quote double-evaled strings.
14997 - eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
14998 - ;;
14999 - *)
15000 - eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
15001 - ;;
15002 - esac
15003 - done
15004 -
15005 - case $lt_echo in
15006 - *'\$0 --fallback-echo"')
15007 - lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
15008 - ;;
15009 - esac
15010 -
15011 -cfgfile="${ofile}T"
15012 - trap "$rm \"$cfgfile\"; exit 1" 1 2 15
15013 - $rm -f "$cfgfile"
15014 - { echo "$as_me:$LINENO: creating $ofile" >&5
15015 -echo "$as_me: creating $ofile" >&6;}
15016 -
15017 - cat <<__EOF__ >> "$cfgfile"
15018 -#! $SHELL
15019 -
15020 -# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
15021 -# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
15022 -# NOTE: Changes made to this file will be lost: look at ltmain.sh.
15023 -#
15024 -# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
15025 -# Free Software Foundation, Inc.
15026 -#
15027 -# This file is part of GNU Libtool:
15028 -# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
15029 -#
15030 -# This program is free software; you can redistribute it and/or modify
15031 -# it under the terms of the GNU General Public License as published by
15032 -# the Free Software Foundation; either version 2 of the License, or
15033 -# (at your option) any later version.
15034 -#
15035 -# This program is distributed in the hope that it will be useful, but
15036 -# WITHOUT ANY WARRANTY; without even the implied warranty of
15037 -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
15038 -# General Public License for more details.
15039 -#
15040 -# You should have received a copy of the GNU General Public License
15041 -# along with this program; if not, write to the Free Software
15042 -# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
15043 -#
15044 -# As a special exception to the GNU General Public License, if you
15045 -# distribute this file as part of a program that contains a
15046 -# configuration script generated by Autoconf, you may include it under
15047 -# the same distribution terms that you use for the rest of that program.
15048 -
15049 -# A sed program that does not truncate output.
15050 -SED=$lt_SED
15051 -
15052 -# Sed that helps us avoid accidentally triggering echo(1) options like -n.
15053 -Xsed="$SED -e 1s/^X//"
15054 -
15055 -# The HP-UX ksh and POSIX shell print the target directory to stdout
15056 -# if CDPATH is set.
15057 -(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15058 -
15059 -# The names of the tagged configurations supported by this script.
15060 -available_tags=
15061 -
15062 -# ### BEGIN LIBTOOL CONFIG
15063 -
15064 -# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15065 -
15066 -# Shell to use when invoking shell scripts.
15067 -SHELL=$lt_SHELL
15068 -
15069 -# Whether or not to build shared libraries.
15070 -build_libtool_libs=$enable_shared
15071 -
15072 -# Whether or not to build static libraries.
15073 -build_old_libs=$enable_static
15074 -
15075 -# Whether or not to add -lc for building shared libraries.
15076 -build_libtool_need_lc=$archive_cmds_need_lc
15077 -
15078 -# Whether or not to disallow shared libs when runtime libs are static
15079 -allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
15080 -
15081 -# Whether or not to optimize for fast installation.
15082 -fast_install=$enable_fast_install
15083 -
15084 -# The host system.
15085 -host_alias=$host_alias
15086 -host=$host
15087 -host_os=$host_os
15088 -
15089 -# The build system.
15090 -build_alias=$build_alias
15091 -build=$build
15092 -build_os=$build_os
15093 -
15094 -# An echo program that does not interpret backslashes.
15095 -echo=$lt_echo
15096 -
15097 -# The archiver.
15098 -AR=$lt_AR
15099 -AR_FLAGS=$lt_AR_FLAGS
15100 -
15101 -# A C compiler.
15102 -LTCC=$lt_LTCC
15103 -
15104 -# A language-specific compiler.
15105 -CC=$lt_compiler
15106 -
15107 -# Is the compiler the GNU C compiler?
15108 -with_gcc=$GCC
15109 -
15110 -# An ERE matcher.
15111 -EGREP=$lt_EGREP
15112 -
15113 -# The linker used to build libraries.
15114 -LD=$lt_LD
15115 -
15116 -# Whether we need hard or soft links.
15117 -LN_S=$lt_LN_S
15118 -
15119 -# A BSD-compatible nm program.
15120 -NM=$lt_NM
15121 -
15122 -# A symbol stripping program
15123 -STRIP=$lt_STRIP
15124 -
15125 -# Used to examine libraries when file_magic_cmd begins "file"
15126 -MAGIC_CMD=$MAGIC_CMD
15127 -
15128 -# Used on cygwin: DLL creation program.
15129 -DLLTOOL="$DLLTOOL"
15130 -
15131 -# Used on cygwin: object dumper.
15132 -OBJDUMP="$OBJDUMP"
15133 -
15134 -# Used on cygwin: assembler.
15135 -AS="$AS"
15136 -
15137 -# The name of the directory that contains temporary libtool files.
15138 -objdir=$objdir
15139 -
15140 -# How to create reloadable object files.
15141 -reload_flag=$lt_reload_flag
15142 -reload_cmds=$lt_reload_cmds
15143 -
15144 -# How to pass a linker flag through the compiler.
15145 -wl=$lt_lt_prog_compiler_wl
15146 -
15147 -# Object file suffix (normally "o").
15148 -objext="$ac_objext"
15149 -
15150 -# Old archive suffix (normally "a").
15151 -libext="$libext"
15152 -
15153 -# Shared library suffix (normally ".so").
15154 -shrext_cmds='$shrext_cmds'
15155 -
15156 -# Executable file suffix (normally "").
15157 -exeext="$exeext"
15158 -
15159 -# Additional compiler flags for building library objects.
15160 -pic_flag=$lt_lt_prog_compiler_pic
15161 -pic_mode=$pic_mode
15162 -
15163 -# What is the maximum length of a command?
15164 -max_cmd_len=$lt_cv_sys_max_cmd_len
15165 -
15166 -# Does compiler simultaneously support -c and -o options?
15167 -compiler_c_o=$lt_lt_cv_prog_compiler_c_o
15168 -
15169 -# Must we lock files when doing compilation?
15170 -need_locks=$lt_need_locks
15171 -
15172 -# Do we need the lib prefix for modules?
15173 -need_lib_prefix=$need_lib_prefix
15174 -
15175 -# Do we need a version for libraries?
15176 -need_version=$need_version
15177 -
15178 -# Whether dlopen is supported.
15179 -dlopen_support=$enable_dlopen
15180 -
15181 -# Whether dlopen of programs is supported.
15182 -dlopen_self=$enable_dlopen_self
15183 -
15184 -# Whether dlopen of statically linked programs is supported.
15185 -dlopen_self_static=$enable_dlopen_self_static
15186 -
15187 -# Compiler flag to prevent dynamic linking.
15188 -link_static_flag=$lt_lt_prog_compiler_static
15189 -
15190 -# Compiler flag to turn off builtin functions.
15191 -no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
15192 -
15193 -# Compiler flag to allow reflexive dlopens.
15194 -export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
15195 -
15196 -# Compiler flag to generate shared objects directly from archives.
15197 -whole_archive_flag_spec=$lt_whole_archive_flag_spec
15198 -
15199 -# Compiler flag to generate thread-safe objects.
15200 -thread_safe_flag_spec=$lt_thread_safe_flag_spec
15201 -
15202 -# Library versioning type.
15203 -version_type=$version_type
15204 -
15205 -# Format of library name prefix.
15206 -libname_spec=$lt_libname_spec
15207 -
15208 -# List of archive names. First name is the real one, the rest are links.
15209 -# The last name is the one that the linker finds with -lNAME.
15210 -library_names_spec=$lt_library_names_spec
15211 -
15212 -# The coded name of the library, if different from the real name.
15213 -soname_spec=$lt_soname_spec
15214 -
15215 -# Commands used to build and install an old-style archive.
15216 -RANLIB=$lt_RANLIB
15217 -old_archive_cmds=$lt_old_archive_cmds
15218 -old_postinstall_cmds=$lt_old_postinstall_cmds
15219 -old_postuninstall_cmds=$lt_old_postuninstall_cmds
15220 -
15221 -# Create an old-style archive from a shared archive.
15222 -old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
15223 -
15224 -# Create a temporary old-style archive to link instead of a shared archive.
15225 -old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
15226 -
15227 -# Commands used to build and install a shared archive.
15228 -archive_cmds=$lt_archive_cmds
15229 -archive_expsym_cmds=$lt_archive_expsym_cmds
15230 -postinstall_cmds=$lt_postinstall_cmds
15231 -postuninstall_cmds=$lt_postuninstall_cmds
15232 -
15233 -# Commands used to build a loadable module (assumed same as above if empty)
15234 -module_cmds=$lt_module_cmds
15235 -module_expsym_cmds=$lt_module_expsym_cmds
15236 -
15237 -# Commands to strip libraries.
15238 -old_striplib=$lt_old_striplib
15239 -striplib=$lt_striplib
15240 -
15241 -# Dependencies to place before the objects being linked to create a
15242 -# shared library.
15243 -predep_objects=$lt_predep_objects
15244 -
15245 -# Dependencies to place after the objects being linked to create a
15246 -# shared library.
15247 -postdep_objects=$lt_postdep_objects
15248 -
15249 -# Dependencies to place before the objects being linked to create a
15250 -# shared library.
15251 -predeps=$lt_predeps
15252 -
15253 -# Dependencies to place after the objects being linked to create a
15254 -# shared library.
15255 -postdeps=$lt_postdeps
15256 -
15257 -# The library search path used internally by the compiler when linking
15258 -# a shared library.
15259 -compiler_lib_search_path=$lt_compiler_lib_search_path
15260 -
15261 -# Method to check whether dependent libraries are shared objects.
15262 -deplibs_check_method=$lt_deplibs_check_method
15263 -
15264 -# Command to use when deplibs_check_method == file_magic.
15265 -file_magic_cmd=$lt_file_magic_cmd
15266 -
15267 -# Flag that allows shared libraries with undefined symbols to be built.
15268 -allow_undefined_flag=$lt_allow_undefined_flag
15269 -
15270 -# Flag that forces no undefined symbols.
15271 -no_undefined_flag=$lt_no_undefined_flag
15272 -
15273 -# Commands used to finish a libtool library installation in a directory.
15274 -finish_cmds=$lt_finish_cmds
15275 -
15276 -# Same as above, but a single script fragment to be evaled but not shown.
15277 -finish_eval=$lt_finish_eval
15278 -
15279 -# Take the output of nm and produce a listing of raw symbols and C names.
15280 -global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
15281 -
15282 -# Transform the output of nm in a proper C declaration
15283 -global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
15284 -
15285 -# Transform the output of nm in a C name address pair
15286 -global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
15287 -
15288 -# This is the shared library runtime path variable.
15289 -runpath_var=$runpath_var
15290 -
15291 -# This is the shared library path variable.
15292 -shlibpath_var=$shlibpath_var
15293 -
15294 -# Is shlibpath searched before the hard-coded library search path?
15295 -shlibpath_overrides_runpath=$shlibpath_overrides_runpath
15296 -
15297 -# How to hardcode a shared library path into an executable.
15298 -hardcode_action=$hardcode_action
15299 -
15300 -# Whether we should hardcode library paths into libraries.
15301 -hardcode_into_libs=$hardcode_into_libs
15302 -
15303 -# Flag to hardcode \$libdir into a binary during linking.
15304 -# This must work even if \$libdir does not exist.
15305 -hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
15306 -
15307 -# If ld is used when linking, flag to hardcode \$libdir into
15308 -# a binary during linking. This must work even if \$libdir does
15309 -# not exist.
15310 -hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
15311 -
15312 -# Whether we need a single -rpath flag with a separated argument.
15313 -hardcode_libdir_separator=$lt_hardcode_libdir_separator
15314 -
15315 -# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
15316 -# resulting binary.
15317 -hardcode_direct=$hardcode_direct
15318 -
15319 -# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
15320 -# resulting binary.
15321 -hardcode_minus_L=$hardcode_minus_L
15322 -
15323 -# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
15324 -# the resulting binary.
15325 -hardcode_shlibpath_var=$hardcode_shlibpath_var
15326 -
15327 -# Set to yes if building a shared library automatically hardcodes DIR into the library
15328 -# and all subsequent libraries and executables linked against it.
15329 -hardcode_automatic=$hardcode_automatic
15330 -
15331 -# Variables whose values should be saved in libtool wrapper scripts and
15332 -# restored at relink time.
15333 -variables_saved_for_relink="$variables_saved_for_relink"
15334 -
15335 -# Whether libtool must link a program against all its dependency libraries.
15336 -link_all_deplibs=$link_all_deplibs
15337 -
15338 -# Compile-time system search path for libraries
15339 -sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
15340 -
15341 -# Run-time system search path for libraries
15342 -sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
15343 -
15344 -# Fix the shell variable \$srcfile for the compiler.
15345 -fix_srcfile_path="$fix_srcfile_path"
15346 -
15347 -# Set to yes if exported symbols are required.
15348 -always_export_symbols=$always_export_symbols
15349 -
15350 -# The commands to list exported symbols.
15351 -export_symbols_cmds=$lt_export_symbols_cmds
15352 -
15353 -# The commands to extract the exported symbol list from a shared archive.
15354 -extract_expsyms_cmds=$lt_extract_expsyms_cmds
15355 -
15356 -# Symbols that should not be listed in the preloaded symbols.
15357 -exclude_expsyms=$lt_exclude_expsyms
15358 -
15359 -# Symbols that must always be exported.
15360 -include_expsyms=$lt_include_expsyms
15361 -
15362 -# ### END LIBTOOL CONFIG
15363 -
15364 -__EOF__
15365 -
15366 -
15367 - case $host_os in
15368 - aix3*)
15369 - cat <<\EOF >> "$cfgfile"
15370 -
15371 -# AIX sometimes has problems with the GCC collect2 program. For some
15372 -# reason, if we set the COLLECT_NAMES environment variable, the problems
15373 -# vanish in a puff of smoke.
15374 -if test "X${COLLECT_NAMES+set}" != Xset; then
15375 - COLLECT_NAMES=
15376 - export COLLECT_NAMES
15377 -fi
15378 -EOF
15379 - ;;
15380 - esac
15381 -
15382 - # We use sed instead of cat because bash on DJGPP gets confused if
15383 - # if finds mixed CR/LF and LF-only lines. Since sed operates in
15384 - # text mode, it properly converts lines to CR/LF. This bash problem
15385 - # is reportedly fixed, but why not run on old versions too?
15386 - sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
15387 -
15388 - mv -f "$cfgfile" "$ofile" || \
15389 - (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
15390 - chmod +x "$ofile"
15391 -
15392 -else
15393 - # If there is no Makefile yet, we rely on a make rule to execute
15394 - # `config.status --recheck' to rerun these tests and create the
15395 - # libtool script then.
15396 - ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
15397 - if test -f "$ltmain_in"; then
15398 - test -f Makefile && make "$ltmain"
15399 - fi
15400 -fi
15401 -
15402 -
15403 -ac_ext=c
15404 -ac_cpp='$CPP $CPPFLAGS'
15405 -ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15406 -ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15407 -ac_compiler_gnu=$ac_cv_c_compiler_gnu
15408 -
15409 -CC="$lt_save_CC"
15410 -
15411 -
15412 -# Check whether --with-tags or --without-tags was given.
15413 -if test "${with_tags+set}" = set; then
15414 - withval="$with_tags"
15415 - tagnames="$withval"
15416 -fi;
15417 -
15418 -if test -f "$ltmain" && test -n "$tagnames"; then
15419 - if test ! -f "${ofile}"; then
15420 - { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
15421 -echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
15422 - fi
15423 -
15424 - if test -z "$LTCC"; then
15425 - eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
15426 - if test -z "$LTCC"; then
15427 - { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
15428 -echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
15429 - else
15430 - { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
15431 -echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
15432 - fi
15433 - fi
15434 -
15435 - # Extract list of available tagged configurations in $ofile.
15436 - # Note that this assumes the entire list is on one line.
15437 - available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
15438 -
15439 - lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
15440 - for tagname in $tagnames; do
15441 - IFS="$lt_save_ifs"
15442 - # Check whether tagname contains only valid characters
15443 - case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
15444 - "") ;;
15445 - *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
15446 -echo "$as_me: error: invalid tag name: $tagname" >&2;}
15447 - { (exit 1); exit 1; }; }
15448 - ;;
15449 - esac
15450 -
15451 - if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
15452 - then
15453 - { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
15454 -echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
15455 - { (exit 1); exit 1; }; }
15456 - fi
15457 -
15458 - # Update the list of available tags.
15459 - if test -n "$tagname"; then
15460 - echo appending configuration tag \"$tagname\" to $ofile
15461 -
15462 - case $tagname in
15463 - CXX)
15464 - if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
15465 - ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
15466 - (test "X$CXX" != "Xg++"))) ; then
15467 - ac_ext=cc
15468 -ac_cpp='$CXXCPP $CPPFLAGS'
15469 -ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15470 -ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15471 -ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15472 -
15473 -
15474 -
15475 -
15476 -archive_cmds_need_lc_CXX=no
15477 -allow_undefined_flag_CXX=
15478 -always_export_symbols_CXX=no
15479 -archive_expsym_cmds_CXX=
15480 -export_dynamic_flag_spec_CXX=
15481 -hardcode_direct_CXX=no
15482 -hardcode_libdir_flag_spec_CXX=
15483 -hardcode_libdir_flag_spec_ld_CXX=
15484 -hardcode_libdir_separator_CXX=
15485 -hardcode_minus_L_CXX=no
15486 -hardcode_automatic_CXX=no
15487 -module_cmds_CXX=
15488 -module_expsym_cmds_CXX=
15489 -link_all_deplibs_CXX=unknown
15490 -old_archive_cmds_CXX=$old_archive_cmds
15491 -no_undefined_flag_CXX=
15492 -whole_archive_flag_spec_CXX=
15493 -enable_shared_with_static_runtimes_CXX=no
15494 -
15495 -# Dependencies to place before and after the object being linked:
15496 -predep_objects_CXX=
15497 -postdep_objects_CXX=
15498 -predeps_CXX=
15499 -postdeps_CXX=
15500 -compiler_lib_search_path_CXX=
15501 -
15502 -# Source file extension for C++ test sources.
15503 -ac_ext=cpp
15504 -
15505 -# Object file extension for compiled C++ test sources.
15506 -objext=o
15507 -objext_CXX=$objext
15508 -
15509 -# Code to be used in simple compile tests
15510 -lt_simple_compile_test_code="int some_variable = 0;\n"
15511 -
15512 -# Code to be used in simple link tests
15513 -lt_simple_link_test_code='int main(int, char *) { return(0); }\n'
15514 -
15515 -# ltmain only uses $CC for tagged configurations so make sure $CC is set.
15516 -
15517 -# If no C compiler was specified, use CC.
15518 -LTCC=${LTCC-"$CC"}
15519 -
15520 -# Allow CC to be a program name with arguments.
15521 -compiler=$CC
15522 -
15523 -
15524 -# save warnings/boilerplate of simple test code
15525 -ac_outfile=conftest.$ac_objext
15526 -printf "$lt_simple_compile_test_code" >conftest.$ac_ext
15527 -eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
15528 -_lt_compiler_boilerplate=`cat conftest.err`
15529 -$rm conftest*
15530 -
15531 -ac_outfile=conftest.$ac_objext
15532 -printf "$lt_simple_link_test_code" >conftest.$ac_ext
15533 -eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
15534 -_lt_linker_boilerplate=`cat conftest.err`
15535 -$rm conftest*
15536 -
15537 -
15538 -# Allow CC to be a program name with arguments.
15539 -lt_save_CC=$CC
15540 -lt_save_LD=$LD
15541 -lt_save_GCC=$GCC
15542 -GCC=$GXX
15543 -lt_save_with_gnu_ld=$with_gnu_ld
15544 -lt_save_path_LD=$lt_cv_path_LD
15545 -if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
15546 - lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
15547 -else
15548 - unset lt_cv_prog_gnu_ld
15549 -fi
15550 -if test -n "${lt_cv_path_LDCXX+set}"; then
15551 - lt_cv_path_LD=$lt_cv_path_LDCXX
15552 -else
15553 - unset lt_cv_path_LD
15554 -fi
15555 -test -z "${LDCXX+set}" || LD=$LDCXX
15556 -CC=${CXX-"c++"}
15557 -compiler=$CC
15558 -compiler_CXX=$CC
15559 -for cc_temp in $compiler""; do
15560 - case $cc_temp in
15561 - compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
15562 - distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
15563 - \-*) ;;
15564 - *) break;;
15565 - esac
15566 -done
15567 -cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
15568 -
15569 -
15570 -# We don't want -fno-exception wen compiling C++ code, so set the
15571 -# no_builtin_flag separately
15572 -if test "$GXX" = yes; then
15573 - lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
15574 -else
15575 - lt_prog_compiler_no_builtin_flag_CXX=
15576 -fi
15577 -
15578 -if test "$GXX" = yes; then
15579 - # Set up default GNU C++ configuration
15580 -
15581 -
15582 -# Check whether --with-gnu-ld or --without-gnu-ld was given.
15583 -if test "${with_gnu_ld+set}" = set; then
15584 - withval="$with_gnu_ld"
15585 - test "$withval" = no || with_gnu_ld=yes
15586 -else
15587 - with_gnu_ld=no
15588 -fi;
15589 -ac_prog=ld
15590 -if test "$GCC" = yes; then
15591 - # Check if gcc -print-prog-name=ld gives a path.
15592 - echo "$as_me:$LINENO: checking for ld used by $CC" >&5
15593 -echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
15594 - case $host in
15595 - *-*-mingw*)
15596 - # gcc leaves a trailing carriage return which upsets mingw
15597 - ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
15598 - *)
15599 - ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
15600 - esac
15601 - case $ac_prog in
15602 - # Accept absolute paths.
15603 - [\\/]* | ?:[\\/]*)
15604 - re_direlt='/[^/][^/]*/\.\./'
15605 - # Canonicalize the pathname of ld
15606 - ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
15607 - while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
15608 - ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
15609 - done
15610 - test -z "$LD" && LD="$ac_prog"
15611 - ;;
15612 - "")
15613 - # If it fails, then pretend we aren't using GCC.
15614 - ac_prog=ld
15615 - ;;
15616 - *)
15617 - # If it is relative, then search for the first ld in PATH.
15618 - with_gnu_ld=unknown
15619 - ;;
15620 - esac
15621 -elif test "$with_gnu_ld" = yes; then
15622 - echo "$as_me:$LINENO: checking for GNU ld" >&5
15623 -echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
15624 -else
15625 - echo "$as_me:$LINENO: checking for non-GNU ld" >&5
15626 -echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
15627 -fi
15628 -if test "${lt_cv_path_LD+set}" = set; then
15629 - echo $ECHO_N "(cached) $ECHO_C" >&6
15630 -else
15631 - if test -z "$LD"; then
15632 - lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
15633 - for ac_dir in $PATH; do
15634 - IFS="$lt_save_ifs"
15635 - test -z "$ac_dir" && ac_dir=.
15636 - if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
15637 - lt_cv_path_LD="$ac_dir/$ac_prog"
15638 - # Check to see if the program is GNU ld. I'd rather use --version,
15639 - # but apparently some variants of GNU ld only accept -v.
15640 - # Break only if it was the GNU/non-GNU ld that we prefer.
15641 - case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
15642 - *GNU* | *'with BFD'*)
15643 - test "$with_gnu_ld" != no && break
15644 - ;;
15645 - *)
15646 - test "$with_gnu_ld" != yes && break
15647 - ;;
15648 - esac
15649 - fi
15650 - done
15651 - IFS="$lt_save_ifs"
15652 -else
15653 - lt_cv_path_LD="$LD" # Let the user override the test with a path.
15654 -fi
15655 -fi
15656 -
15657 -LD="$lt_cv_path_LD"
15658 -if test -n "$LD"; then
15659 - echo "$as_me:$LINENO: result: $LD" >&5
15660 -echo "${ECHO_T}$LD" >&6
15661 -else
15662 - echo "$as_me:$LINENO: result: no" >&5
15663 -echo "${ECHO_T}no" >&6
15664 -fi
15665 -test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
15666 -echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
15667 - { (exit 1); exit 1; }; }
15668 -echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
15669 -echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
15670 -if test "${lt_cv_prog_gnu_ld+set}" = set; then
15671 - echo $ECHO_N "(cached) $ECHO_C" >&6
15672 -else
15673 - # I'd rather use --version here, but apparently some GNU lds only accept -v.
15674 -case `$LD -v 2>&1 </dev/null` in
15675 -*GNU* | *'with BFD'*)
15676 - lt_cv_prog_gnu_ld=yes
15677 - ;;
15678 -*)
15679 - lt_cv_prog_gnu_ld=no
15680 - ;;
15681 -esac
15682 -fi
15683 -echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
15684 -echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
15685 -with_gnu_ld=$lt_cv_prog_gnu_ld
15686 -
15687 -
15688 -
15689 - # Check if GNU C++ uses GNU ld as the underlying linker, since the
15690 - # archiving commands below assume that GNU ld is being used.
15691 - if test "$with_gnu_ld" = yes; then
15692 - archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
15693 - 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'
15694 -
15695 - hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
15696 - export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
15697 -
15698 - # If archive_cmds runs LD, not CC, wlarc should be empty
15699 - # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
15700 - # investigate it a little bit more. (MM)
15701 - wlarc='${wl}'
15702 -
15703 - # ancient GNU ld didn't support --whole-archive et. al.
15704 - if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
15705 - grep 'no-whole-archive' > /dev/null; then
15706 - whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15707 - else
15708 - whole_archive_flag_spec_CXX=
15709 - fi
15710 - else
15711 - with_gnu_ld=no
15712 - wlarc=
15713 -
15714 - # A generic and very simple default shared library creation
15715 - # command for GNU C++ for the case where it uses the native
15716 - # linker, instead of GNU ld. If possible, this setting should
15717 - # overridden to take advantage of the native linker features on
15718 - # the platform it is being used on.
15719 - archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
15720 - fi
15721 -
15722 - # Commands to make compiler produce verbose output that lists
15723 - # what "hidden" libraries, object files and flags are used when
15724 - # linking a shared library.
15725 - output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
15726 -
15727 -else
15728 - GXX=no
15729 - with_gnu_ld=no
15730 - wlarc=
15731 -fi
15732 -
15733 -# PORTME: fill in a description of your system's C++ link characteristics
15734 -echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15735 -echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
15736 -ld_shlibs_CXX=yes
15737 -case $host_os in
15738 - aix3*)
15739 - # FIXME: insert proper C++ library support
15740 - ld_shlibs_CXX=no
15741 - ;;
15742 - aix4* | aix5*)
15743 - if test "$host_cpu" = ia64; then
15744 - # On IA64, the linker does run time linking by default, so we don't
15745 - # have to do anything special.
15746 - aix_use_runtimelinking=no
15747 - exp_sym_flag='-Bexport'
15748 - no_entry_flag=""
15749 - else
15750 - aix_use_runtimelinking=no
15751 -
15752 - # Test if we are trying to use run time linking or normal
15753 - # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15754 - # need to do runtime linking.
15755 - case $host_os in aix4.[23]|aix4.[23].*|aix5*)
15756 - for ld_flag in $LDFLAGS; do
15757 - case $ld_flag in
15758 - *-brtl*)
15759 - aix_use_runtimelinking=yes
15760 - break
15761 - ;;
15762 - esac
15763 - done
15764 - esac
15765 -
15766 - exp_sym_flag='-bexport'
15767 - no_entry_flag='-bnoentry'
15768 - fi
15769 -
15770 - # When large executables or shared objects are built, AIX ld can
15771 - # have problems creating the table of contents. If linking a library
15772 - # or program results in "error TOC overflow" add -mminimal-toc to
15773 - # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
15774 - # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15775 -
15776 - archive_cmds_CXX=''
15777 - hardcode_direct_CXX=yes
15778 - hardcode_libdir_separator_CXX=':'
15779 - link_all_deplibs_CXX=yes
15780 -
15781 - if test "$GXX" = yes; then
15782 - case $host_os in aix4.[012]|aix4.[012].*)
15783 - # We only want to do this on AIX 4.2 and lower, the check
15784 - # below for broken collect2 doesn't work under 4.3+
15785 - collect2name=`${CC} -print-prog-name=collect2`
15786 - if test -f "$collect2name" && \
15787 - strings "$collect2name" | grep resolve_lib_name >/dev/null
15788 - then
15789 - # We have reworked collect2
15790 - hardcode_direct_CXX=yes
15791 - else
15792 - # We have old collect2
15793 - hardcode_direct_CXX=unsupported
15794 - # It fails to find uninstalled libraries when the uninstalled
15795 - # path is not listed in the libpath. Setting hardcode_minus_L
15796 - # to unsupported forces relinking
15797 - hardcode_minus_L_CXX=yes
15798 - hardcode_libdir_flag_spec_CXX='-L$libdir'
15799 - hardcode_libdir_separator_CXX=
15800 - fi
15801 - esac
15802 - shared_flag='-shared'
15803 - if test "$aix_use_runtimelinking" = yes; then
15804 - shared_flag="$shared_flag "'${wl}-G'
15805 - fi
15806 - else
15807 - # not using gcc
15808 - if test "$host_cpu" = ia64; then
15809 - # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15810 - # chokes on -Wl,-G. The following line is correct:
15811 - shared_flag='-G'
15812 - else
15813 - if test "$aix_use_runtimelinking" = yes; then
15814 - shared_flag='${wl}-G'
15815 - else
15816 - shared_flag='${wl}-bM:SRE'
15817 - fi
15818 - fi
15819 - fi
15820 -
15821 - # It seems that -bexpall does not export symbols beginning with
15822 - # underscore (_), so it is better to generate a list of symbols to export.
15823 - always_export_symbols_CXX=yes
15824 - if test "$aix_use_runtimelinking" = yes; then
15825 - # Warning - without using the other runtime loading flags (-brtl),
15826 - # -berok will link without error, but may produce a broken library.
15827 - allow_undefined_flag_CXX='-berok'
15828 - # Determine the default libpath from the value encoded in an empty executable.
15829 - cat >conftest.$ac_ext <<_ACEOF
15830 -/* confdefs.h. */
15831 -_ACEOF
15832 -cat confdefs.h >>conftest.$ac_ext
15833 -cat >>conftest.$ac_ext <<_ACEOF
15834 -/* end confdefs.h. */
15835 -
15836 -int
15837 -main ()
15838 -{
15839 -
15840 - ;
15841 - return 0;
15842 -}
15843 -_ACEOF
15844 -rm -f conftest.$ac_objext conftest$ac_exeext
15845 -if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15846 - (eval $ac_link) 2>conftest.er1
15847 - ac_status=$?
15848 - grep -v '^ *+' conftest.er1 >conftest.err
15849 - rm -f conftest.er1
15850 - cat conftest.err >&5
15851 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
15852 - (exit $ac_status); } &&
15853 - { ac_try='test -z "$ac_cxx_werror_flag"
15854 - || test ! -s conftest.err'
15855 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15856 - (eval $ac_try) 2>&5
15857 - ac_status=$?
15858 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
15859 - (exit $ac_status); }; } &&
15860 - { ac_try='test -s conftest$ac_exeext'
15861 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15862 - (eval $ac_try) 2>&5
15863 - ac_status=$?
15864 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
15865 - (exit $ac_status); }; }; then
15866 -
15867 -aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15868 -}'`
15869 -# Check for a 64-bit object if we didn't find anything.
15870 -if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15871 -}'`; fi
15872 -else
15873 - echo "$as_me: failed program was:" >&5
15874 -sed 's/^/| /' conftest.$ac_ext >&5
15875 -
15876 -fi
15877 -rm -f conftest.err conftest.$ac_objext \
15878 - conftest$ac_exeext conftest.$ac_ext
15879 -if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15880 -
15881 - hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
15882 -
15883 - archive_expsym_cmds_CXX="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
15884 - else
15885 - if test "$host_cpu" = ia64; then
15886 - hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
15887 - allow_undefined_flag_CXX="-z nodefs"
15888 - archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
15889 - else
15890 - # Determine the default libpath from the value encoded in an empty executable.
15891 - cat >conftest.$ac_ext <<_ACEOF
15892 -/* confdefs.h. */
15893 -_ACEOF
15894 -cat confdefs.h >>conftest.$ac_ext
15895 -cat >>conftest.$ac_ext <<_ACEOF
15896 -/* end confdefs.h. */
15897 -
15898 -int
15899 -main ()
15900 -{
15901 -
15902 - ;
15903 - return 0;
15904 -}
15905 -_ACEOF
15906 -rm -f conftest.$ac_objext conftest$ac_exeext
15907 -if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15908 - (eval $ac_link) 2>conftest.er1
15909 - ac_status=$?
15910 - grep -v '^ *+' conftest.er1 >conftest.err
15911 - rm -f conftest.er1
15912 - cat conftest.err >&5
15913 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
15914 - (exit $ac_status); } &&
15915 - { ac_try='test -z "$ac_cxx_werror_flag"
15916 - || test ! -s conftest.err'
15917 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15918 - (eval $ac_try) 2>&5
15919 - ac_status=$?
15920 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
15921 - (exit $ac_status); }; } &&
15922 - { ac_try='test -s conftest$ac_exeext'
15923 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15924 - (eval $ac_try) 2>&5
15925 - ac_status=$?
15926 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
15927 - (exit $ac_status); }; }; then
15928 -
15929 -aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15930 -}'`
15931 -# Check for a 64-bit object if we didn't find anything.
15932 -if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15933 -}'`; fi
15934 -else
15935 - echo "$as_me: failed program was:" >&5
15936 -sed 's/^/| /' conftest.$ac_ext >&5
15937 -
15938 -fi
15939 -rm -f conftest.err conftest.$ac_objext \
15940 - conftest$ac_exeext conftest.$ac_ext
15941 -if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15942 -
15943 - hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
15944 - # Warning - without using the other run time loading flags,
15945 - # -berok will link without error, but may produce a broken library.
15946 - no_undefined_flag_CXX=' ${wl}-bernotok'
15947 - allow_undefined_flag_CXX=' ${wl}-berok'
15948 - # -bexpall does not export symbols beginning with underscore (_)
15949 - always_export_symbols_CXX=yes
15950 - # Exported symbols can be pulled into shared objects from archives
15951 - whole_archive_flag_spec_CXX=' '
15952 - archive_cmds_need_lc_CXX=yes
15953 - # This is similar to how AIX traditionally builds its shared libraries.
15954 - archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
15955 - fi
15956 - fi
15957 - ;;
15958 - chorus*)
15959 - case $cc_basename in
15960 - *)
15961 - # FIXME: insert proper C++ library support
15962 - ld_shlibs_CXX=no
15963 - ;;
15964 - esac
15965 - ;;
15966 -
15967 -
15968 - cygwin* | mingw* | pw32*)
15969 - # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
15970 - # as there is no search path for DLLs.
15971 - hardcode_libdir_flag_spec_CXX='-L$libdir'
15972 - allow_undefined_flag_CXX=unsupported
15973 - always_export_symbols_CXX=no
15974 - enable_shared_with_static_runtimes_CXX=yes
15975 -
15976 - if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
15977 - archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
15978 - # If the export-symbols file already is a .def file (1st line
15979 - # is EXPORTS), use it as is; otherwise, prepend...
15980 - archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15981 - cp $export_symbols $output_objdir/$soname.def;
15982 - else
15983 - echo EXPORTS > $output_objdir/$soname.def;
15984 - cat $export_symbols >> $output_objdir/$soname.def;
15985 - fi~
15986 - $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
15987 - else
15988 - ld_shlibs_CXX=no
15989 - fi
15990 - ;;
15991 - darwin* | rhapsody*)
15992 - case $host_os in
15993 - rhapsody* | darwin1.[012])
15994 - allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
15995 - ;;
15996 - *) # Darwin 1.3 on
15997 - if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
15998 - allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15999 - else
16000 - case ${MACOSX_DEPLOYMENT_TARGET} in
16001 - 10.[012])
16002 - allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
16003 - ;;
16004 - 10.*)
16005 - allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
16006 - ;;
16007 - esac
16008 - fi
16009 - ;;
16010 - esac
16011 - archive_cmds_need_lc_CXX=no
16012 - hardcode_direct_CXX=no
16013 - hardcode_automatic_CXX=yes
16014 - hardcode_shlibpath_var_CXX=unsupported
16015 - whole_archive_flag_spec_CXX=''
16016 - link_all_deplibs_CXX=yes
16017 -
16018 - if test "$GXX" = yes ; then
16019 - lt_int_apple_cc_single_mod=no
16020 - output_verbose_link_cmd='echo'
16021 - if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
16022 - lt_int_apple_cc_single_mod=yes
16023 - fi
16024 - if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
16025 - archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
16026 - else
16027 - 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'
16028 - fi
16029 - module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
16030 - # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
16031 - if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
16032 - 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}'
16033 - else
16034 - 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}'
16035 - fi
16036 - 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}'
16037 - else
16038 - case $cc_basename in
16039 - xlc*)
16040 - output_verbose_link_cmd='echo'
16041 - archive_cmds_CXX='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
16042 - module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
16043 - # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
16044 - 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 $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
16045 - 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}'
16046 - ;;
16047 - *)
16048 - ld_shlibs_CXX=no
16049 - ;;
16050 - esac
16051 - fi
16052 - ;;
16053 -
16054 - dgux*)
16055 - case $cc_basename in
16056 - ec++*)
16057 - # FIXME: insert proper C++ library support
16058 - ld_shlibs_CXX=no
16059 - ;;
16060 - ghcx*)
16061 - # Green Hills C++ Compiler
16062 - # FIXME: insert proper C++ library support
16063 - ld_shlibs_CXX=no
16064 - ;;
16065 - *)
16066 - # FIXME: insert proper C++ library support
16067 - ld_shlibs_CXX=no
16068 - ;;
16069 - esac
16070 - ;;
16071 - freebsd[12]*)
16072 - # C++ shared libraries reported to be fairly broken before switch to ELF
16073 - ld_shlibs_CXX=no
16074 - ;;
16075 - freebsd-elf*)
16076 - archive_cmds_need_lc_CXX=no
16077 - ;;
16078 - freebsd* | kfreebsd*-gnu | dragonfly*)
16079 - # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
16080 - # conventions
16081 - ld_shlibs_CXX=yes
16082 - ;;
16083 - gnu*)
16084 - ;;
16085 - hpux9*)
16086 - hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
16087 - hardcode_libdir_separator_CXX=:
16088 - export_dynamic_flag_spec_CXX='${wl}-E'
16089 - hardcode_direct_CXX=yes
16090 - hardcode_minus_L_CXX=yes # Not in the search PATH,
16091 - # but as the default
16092 - # location of the library.
16093 -
16094 - case $cc_basename in
16095 - CC*)
16096 - # FIXME: insert proper C++ library support
16097 - ld_shlibs_CXX=no
16098 - ;;
16099 - aCC*)
16100 - 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'
16101 - # Commands to make compiler produce verbose output that lists
16102 - # what "hidden" libraries, object files and flags are used when
16103 - # linking a shared library.
16104 - #
16105 - # There doesn't appear to be a way to prevent this compiler from
16106 - # explicitly linking system object files so we need to strip them
16107 - # from the output so that they don't get included in the library
16108 - # dependencies.
16109 - 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'
16110 - ;;
16111 - *)
16112 - if test "$GXX" = yes; then
16113 - 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'
16114 - else
16115 - # FIXME: insert proper C++ library support
16116 - ld_shlibs_CXX=no
16117 - fi
16118 - ;;
16119 - esac
16120 - ;;
16121 - hpux10*|hpux11*)
16122 - if test $with_gnu_ld = no; then
16123 - case $host_cpu in
16124 - hppa*64*)
16125 - hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
16126 - hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
16127 - hardcode_libdir_separator_CXX=:
16128 - ;;
16129 - ia64*)
16130 - hardcode_libdir_flag_spec_CXX='-L$libdir'
16131 - ;;
16132 - *)
16133 - hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
16134 - hardcode_libdir_separator_CXX=:
16135 - export_dynamic_flag_spec_CXX='${wl}-E'
16136 - ;;
16137 - esac
16138 - fi
16139 - case $host_cpu in
16140 - hppa*64*)
16141 - hardcode_direct_CXX=no
16142 - hardcode_shlibpath_var_CXX=no
16143 - ;;
16144 - ia64*)
16145 - hardcode_direct_CXX=no
16146 - hardcode_shlibpath_var_CXX=no
16147 - hardcode_minus_L_CXX=yes # Not in the search PATH,
16148 - # but as the default
16149 - # location of the library.
16150 - ;;
16151 - *)
16152 - hardcode_direct_CXX=yes
16153 - hardcode_minus_L_CXX=yes # Not in the search PATH,
16154 - # but as the default
16155 - # location of the library.
16156 - ;;
16157 - esac
16158 -
16159 - case $cc_basename in
16160 - CC*)
16161 - # FIXME: insert proper C++ library support
16162 - ld_shlibs_CXX=no
16163 - ;;
16164 - aCC*)
16165 - case $host_cpu in
16166 - hppa*64*|ia64*)
16167 - archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
16168 - ;;
16169 - *)
16170 - archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
16171 - ;;
16172 - esac
16173 - # Commands to make compiler produce verbose output that lists
16174 - # what "hidden" libraries, object files and flags are used when
16175 - # linking a shared library.
16176 - #
16177 - # There doesn't appear to be a way to prevent this compiler from
16178 - # explicitly linking system object files so we need to strip them
16179 - # from the output so that they don't get included in the library
16180 - # dependencies.
16181 - 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'
16182 - ;;
16183 - *)
16184 - if test "$GXX" = yes; then
16185 - if test $with_gnu_ld = no; then
16186 - case $host_cpu in
16187 - ia64*|hppa*64*)
16188 - archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
16189 - ;;
16190 - *)
16191 - 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'
16192 - ;;
16193 - esac
16194 - fi
16195 - else
16196 - # FIXME: insert proper C++ library support
16197 - ld_shlibs_CXX=no
16198 - fi
16199 - ;;
16200 - esac
16201 - ;;
16202 - irix5* | irix6*)
16203 - case $cc_basename in
16204 - CC*)
16205 - # SGI C++
16206 - 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'
16207 -
16208 - # Archives containing C++ object files must be created using
16209 - # "CC -ar", where "CC" is the IRIX C++ compiler. This is
16210 - # necessary to make sure instantiated templates are included
16211 - # in the archive.
16212 - old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
16213 - ;;
16214 - *)
16215 - if test "$GXX" = yes; then
16216 - if test "$with_gnu_ld" = no; then
16217 - 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'
16218 - else
16219 - 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'
16220 - fi
16221 - fi
16222 - link_all_deplibs_CXX=yes
16223 - ;;
16224 - esac
16225 - hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
16226 - hardcode_libdir_separator_CXX=:
16227 - ;;
16228 - linux*)
16229 - case $cc_basename in
16230 - KCC*)
16231 - # Kuck and Associates, Inc. (KAI) C++ Compiler
16232 -
16233 - # KCC will only create a shared library if the output file
16234 - # ends with ".so" (or ".sl" for HP-UX), so rename the library
16235 - # to its proper name (with version) after linking.
16236 - 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'
16237 - 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'
16238 - # Commands to make compiler produce verbose output that lists
16239 - # what "hidden" libraries, object files and flags are used when
16240 - # linking a shared library.
16241 - #
16242 - # There doesn't appear to be a way to prevent this compiler from
16243 - # explicitly linking system object files so we need to strip them
16244 - # from the output so that they don't get included in the library
16245 - # dependencies.
16246 - 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'
16247 -
16248 - hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
16249 - export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
16250 -
16251 - # Archives containing C++ object files must be created using
16252 - # "CC -Bstatic", where "CC" is the KAI C++ compiler.
16253 - old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
16254 - ;;
16255 - icpc*)
16256 - # Intel C++
16257 - with_gnu_ld=yes
16258 - # version 8.0 and above of icpc choke on multiply defined symbols
16259 - # if we add $predep_objects and $postdep_objects, however 7.1 and
16260 - # earlier do not add the objects themselves.
16261 - case `$CC -V 2>&1` in
16262 - *"Version 7."*)
16263 - archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
16264 - 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'
16265 - ;;
16266 - *) # Version 8.0 or newer
16267 - tmp_idyn=
16268 - case $host_cpu in
16269 - ia64*) tmp_idyn=' -i_dynamic';;
16270 - esac
16271 - archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16272 - 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'
16273 - ;;
16274 - esac
16275 - archive_cmds_need_lc_CXX=no
16276 - hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
16277 - export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
16278 - whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
16279 - ;;
16280 - pgCC*)
16281 - # Portland Group C++ compiler
16282 - archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
16283 - 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'
16284 -
16285 - hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
16286 - export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
16287 - 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'
16288 - ;;
16289 - cxx*)
16290 - # Compaq C++
16291 - archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
16292 - 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'
16293 -
16294 - runpath_var=LD_RUN_PATH
16295 - hardcode_libdir_flag_spec_CXX='-rpath $libdir'
16296 - hardcode_libdir_separator_CXX=:
16297 -
16298 - # Commands to make compiler produce verbose output that lists
16299 - # what "hidden" libraries, object files and flags are used when
16300 - # linking a shared library.
16301 - #
16302 - # There doesn't appear to be a way to prevent this compiler from
16303 - # explicitly linking system object files so we need to strip them
16304 - # from the output so that they don't get included in the library
16305 - # dependencies.
16306 - 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'
16307 - ;;
16308 - esac
16309 - ;;
16310 - lynxos*)
16311 - # FIXME: insert proper C++ library support
16312 - ld_shlibs_CXX=no
16313 - ;;
16314 - m88k*)
16315 - # FIXME: insert proper C++ library support
16316 - ld_shlibs_CXX=no
16317 - ;;
16318 - mvs*)
16319 - case $cc_basename in
16320 - cxx*)
16321 - # FIXME: insert proper C++ library support
16322 - ld_shlibs_CXX=no
16323 - ;;
16324 - *)
16325 - # FIXME: insert proper C++ library support
16326 - ld_shlibs_CXX=no
16327 - ;;
16328 - esac
16329 - ;;
16330 - netbsd*)
16331 - if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16332 - archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
16333 - wlarc=
16334 - hardcode_libdir_flag_spec_CXX='-R$libdir'
16335 - hardcode_direct_CXX=yes
16336 - hardcode_shlibpath_var_CXX=no
16337 - fi
16338 - # Workaround some broken pre-1.5 toolchains
16339 - output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
16340 - ;;
16341 - openbsd2*)
16342 - # C++ shared libraries are fairly broken
16343 - ld_shlibs_CXX=no
16344 - ;;
16345 - openbsd*)
16346 - hardcode_direct_CXX=yes
16347 - hardcode_shlibpath_var_CXX=no
16348 - archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
16349 - hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
16350 - if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16351 - archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
16352 - export_dynamic_flag_spec_CXX='${wl}-E'
16353 - whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
16354 - fi
16355 - output_verbose_link_cmd='echo'
16356 - ;;
16357 - osf3*)
16358 - case $cc_basename in
16359 - KCC*)
16360 - # Kuck and Associates, Inc. (KAI) C++ Compiler
16361 -
16362 - # KCC will only create a shared library if the output file
16363 - # ends with ".so" (or ".sl" for HP-UX), so rename the library
16364 - # to its proper name (with version) after linking.
16365 - 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'
16366 -
16367 - hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
16368 - hardcode_libdir_separator_CXX=:
16369 -
16370 - # Archives containing C++ object files must be created using
16371 - # "CC -Bstatic", where "CC" is the KAI C++ compiler.
16372 - old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
16373 -
16374 - ;;
16375 - RCC*)
16376 - # Rational C++ 2.4.1
16377 - # FIXME: insert proper C++ library support
16378 - ld_shlibs_CXX=no
16379 - ;;
16380 - cxx*)
16381 - allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
16382 - 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'
16383 -
16384 - hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
16385 - hardcode_libdir_separator_CXX=:
16386 -
16387 - # Commands to make compiler produce verbose output that lists
16388 - # what "hidden" libraries, object files and flags are used when
16389 - # linking a shared library.
16390 - #
16391 - # There doesn't appear to be a way to prevent this compiler from
16392 - # explicitly linking system object files so we need to strip them
16393 - # from the output so that they don't get included in the library
16394 - # dependencies.
16395 - 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'
16396 - ;;
16397 - *)
16398 - if test "$GXX" = yes && test "$with_gnu_ld" = no; then
16399 - allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
16400 - 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'
16401 -
16402 - hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
16403 - hardcode_libdir_separator_CXX=:
16404 -
16405 - # Commands to make compiler produce verbose output that lists
16406 - # what "hidden" libraries, object files and flags are used when
16407 - # linking a shared library.
16408 - output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
16409 -
16410 - else
16411 - # FIXME: insert proper C++ library support
16412 - ld_shlibs_CXX=no
16413 - fi
16414 - ;;
16415 - esac
16416 - ;;
16417 - osf4* | osf5*)
16418 - case $cc_basename in
16419 - KCC*)
16420 - # Kuck and Associates, Inc. (KAI) C++ Compiler
16421 -
16422 - # KCC will only create a shared library if the output file
16423 - # ends with ".so" (or ".sl" for HP-UX), so rename the library
16424 - # to its proper name (with version) after linking.
16425 - 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'
16426 -
16427 - hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
16428 - hardcode_libdir_separator_CXX=:
16429 -
16430 - # Archives containing C++ object files must be created using
16431 - # the KAI C++ compiler.
16432 - old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
16433 - ;;
16434 - RCC*)
16435 - # Rational C++ 2.4.1
16436 - # FIXME: insert proper C++ library support
16437 - ld_shlibs_CXX=no
16438 - ;;
16439 - cxx*)
16440 - allow_undefined_flag_CXX=' -expect_unresolved \*'
16441 - 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'
16442 - archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
16443 - echo "-hidden">> $lib.exp~
16444 - $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~
16445 - $rm $lib.exp'
16446 -
16447 - hardcode_libdir_flag_spec_CXX='-rpath $libdir'
16448 - hardcode_libdir_separator_CXX=:
16449 -
16450 - # Commands to make compiler produce verbose output that lists
16451 - # what "hidden" libraries, object files and flags are used when
16452 - # linking a shared library.
16453 - #
16454 - # There doesn't appear to be a way to prevent this compiler from
16455 - # explicitly linking system object files so we need to strip them
16456 - # from the output so that they don't get included in the library
16457 - # dependencies.
16458 - 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'
16459 - ;;
16460 - *)
16461 - if test "$GXX" = yes && test "$with_gnu_ld" = no; then
16462 - allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
16463 - 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'
16464 -
16465 - hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
16466 - hardcode_libdir_separator_CXX=:
16467 -
16468 - # Commands to make compiler produce verbose output that lists
16469 - # what "hidden" libraries, object files and flags are used when
16470 - # linking a shared library.
16471 - output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
16472 -
16473 - else
16474 - # FIXME: insert proper C++ library support
16475 - ld_shlibs_CXX=no
16476 - fi
16477 - ;;
16478 - esac
16479 - ;;
16480 - psos*)
16481 - # FIXME: insert proper C++ library support
16482 - ld_shlibs_CXX=no
16483 - ;;
16484 - sco*)
16485 - archive_cmds_need_lc_CXX=no
16486 - case $cc_basename in
16487 - CC*)
16488 - # FIXME: insert proper C++ library support
16489 - ld_shlibs_CXX=no
16490 - ;;
16491 - *)
16492 - # FIXME: insert proper C++ library support
16493 - ld_shlibs_CXX=no
16494 - ;;
16495 - esac
16496 - ;;
16497 - sunos4*)
16498 - case $cc_basename in
16499 - CC*)
16500 - # Sun C++ 4.x
16501 - # FIXME: insert proper C++ library support
16502 - ld_shlibs_CXX=no
16503 - ;;
16504 - lcc*)
16505 - # Lucid
16506 - # FIXME: insert proper C++ library support
16507 - ld_shlibs_CXX=no
16508 - ;;
16509 - *)
16510 - # FIXME: insert proper C++ library support
16511 - ld_shlibs_CXX=no
16512 - ;;
16513 - esac
16514 - ;;
16515 - solaris*)
16516 - case $cc_basename in
16517 - CC*)
16518 - # Sun C++ 4.2, 5.x and Centerline C++
16519 - archive_cmds_need_lc_CXX=yes
16520 - no_undefined_flag_CXX=' -zdefs'
16521 - archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
16522 - archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16523 - $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'
16524 -
16525 - hardcode_libdir_flag_spec_CXX='-R$libdir'
16526 - hardcode_shlibpath_var_CXX=no
16527 - case $host_os in
16528 - solaris2.[0-5] | solaris2.[0-5].*) ;;
16529 - *)
16530 - # The C++ compiler is used as linker so we must use $wl
16531 - # flag to pass the commands to the underlying system
16532 - # linker. We must also pass each convience library through
16533 - # to the system linker between allextract/defaultextract.
16534 - # The C++ compiler will combine linker options so we
16535 - # cannot just pass the convience library names through
16536 - # without $wl.
16537 - # Supported since Solaris 2.6 (maybe 2.5.1?)
16538 - whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract'
16539 - ;;
16540 - esac
16541 - link_all_deplibs_CXX=yes
16542 -
16543 - output_verbose_link_cmd='echo'
16544 -
16545 - # Archives containing C++ object files must be created using
16546 - # "CC -xar", where "CC" is the Sun C++ compiler. This is
16547 - # necessary to make sure instantiated templates are included
16548 - # in the archive.
16549 - old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
16550 - ;;
16551 - gcx*)
16552 - # Green Hills C++ Compiler
16553 - archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
16554 -
16555 - # The C++ compiler must be used to create the archive.
16556 - old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
16557 - ;;
16558 - *)
16559 - # GNU C++ compiler with Solaris linker
16560 - if test "$GXX" = yes && test "$with_gnu_ld" = no; then
16561 - no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
16562 - if $CC --version | grep -v '^2\.7' > /dev/null; then
16563 - archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
16564 - archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16565 - $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
16566 -
16567 - # Commands to make compiler produce verbose output that lists
16568 - # what "hidden" libraries, object files and flags are used when
16569 - # linking a shared library.
16570 - output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
16571 - else
16572 - # g++ 2.7 appears to require `-G' NOT `-shared' on this
16573 - # platform.
16574 - archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
16575 - archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16576 - $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
16577 -
16578 - # Commands to make compiler produce verbose output that lists
16579 - # what "hidden" libraries, object files and flags are used when
16580 - # linking a shared library.
16581 - output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
16582 - fi
16583 -
16584 - hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
16585 - fi
16586 - ;;
16587 - esac
16588 - ;;
16589 - sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
16590 - archive_cmds_need_lc_CXX=no
16591 - ;;
16592 - tandem*)
16593 - case $cc_basename in
16594 - NCC*)
16595 - # NonStop-UX NCC 3.20
16596 - # FIXME: insert proper C++ library support
16597 - ld_shlibs_CXX=no
16598 - ;;
16599 - *)
16600 - # FIXME: insert proper C++ library support
16601 - ld_shlibs_CXX=no
16602 - ;;
16603 - esac
16604 - ;;
16605 - vxworks*)
16606 - # FIXME: insert proper C++ library support
16607 - ld_shlibs_CXX=no
16608 - ;;
16609 - *)
16610 - # FIXME: insert proper C++ library support
16611 - ld_shlibs_CXX=no
16612 - ;;
16613 -esac
16614 -echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
16615 -echo "${ECHO_T}$ld_shlibs_CXX" >&6
16616 -test "$ld_shlibs_CXX" = no && can_build_shared=no
16617 -
16618 -GCC_CXX="$GXX"
16619 -LD_CXX="$LD"
16620 -
16621 -
16622 -cat > conftest.$ac_ext <<EOF
16623 -class Foo
16624 -{
16625 -public:
16626 - Foo (void) { a = 0; }
16627 -private:
16628 - int a;
16629 -};
16630 -EOF
16631 -
16632 -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16633 - (eval $ac_compile) 2>&5
16634 - ac_status=$?
16635 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
16636 - (exit $ac_status); }; then
16637 - # Parse the compiler output and extract the necessary
16638 - # objects, libraries and library flags.
16639 -
16640 - # Sentinel used to keep track of whether or not we are before
16641 - # the conftest object file.
16642 - pre_test_object_deps_done=no
16643 -
16644 - # The `*' in the case matches for architectures that use `case' in
16645 - # $output_verbose_cmd can trigger glob expansion during the loop
16646 - # eval without this substitution.
16647 - output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
16648 -
16649 - for p in `eval $output_verbose_link_cmd`; do
16650 - case $p in
16651 -
16652 - -L* | -R* | -l*)
16653 - # Some compilers place space between "-{L,R}" and the path.
16654 - # Remove the space.
16655 - if test $p = "-L" \
16656 - || test $p = "-R"; then
16657 - prev=$p
16658 - continue
16659 - else
16660 - prev=
16661 - fi
16662 -
16663 - if test "$pre_test_object_deps_done" = no; then
16664 - case $p in
16665 - -L* | -R*)
16666 - # Internal compiler library paths should come after those
16667 - # provided the user. The postdeps already come after the
16668 - # user supplied libs so there is no need to process them.
16669 - if test -z "$compiler_lib_search_path_CXX"; then
16670 - compiler_lib_search_path_CXX="${prev}${p}"
16671 - else
16672 - compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
16673 - fi
16674 - ;;
16675 - # The "-l" case would never come before the object being
16676 - # linked, so don't bother handling this case.
16677 - esac
16678 - else
16679 - if test -z "$postdeps_CXX"; then
16680 - postdeps_CXX="${prev}${p}"
16681 - else
16682 - postdeps_CXX="${postdeps_CXX} ${prev}${p}"
16683 - fi
16684 - fi
16685 - ;;
16686 -
16687 - *.$objext)
16688 - # This assumes that the test object file only shows up
16689 - # once in the compiler output.
16690 - if test "$p" = "conftest.$objext"; then
16691 - pre_test_object_deps_done=yes
16692 - continue
16693 - fi
16694 -
16695 - if test "$pre_test_object_deps_done" = no; then
16696 - if test -z "$predep_objects_CXX"; then
16697 - predep_objects_CXX="$p"
16698 - else
16699 - predep_objects_CXX="$predep_objects_CXX $p"
16700 - fi
16701 - else
16702 - if test -z "$postdep_objects_CXX"; then
16703 - postdep_objects_CXX="$p"
16704 - else
16705 - postdep_objects_CXX="$postdep_objects_CXX $p"
16706 - fi
16707 - fi
16708 - ;;
16709 -
16710 - *) ;; # Ignore the rest.
16711 -
16712 - esac
16713 - done
16714 -
16715 - # Clean up.
16716 - rm -f a.out a.exe
16717 -else
16718 - echo "libtool.m4: error: problem compiling CXX test program"
16719 -fi
16720 -
16721 -$rm -f confest.$objext
16722 -
16723 -# PORTME: override above test on systems where it is broken
16724 -case $host_os in
16725 -solaris*)
16726 - case $cc_basename in
16727 - CC*)
16728 - # Adding this requires a known-good setup of shared libraries for
16729 - # Sun compiler versions before 5.6, else PIC objects from an old
16730 - # archive will be linked into the output, leading to subtle bugs.
16731 - postdeps_CXX='-lCstd -lCrun'
16732 - ;;
16733 - esac
16734 -esac
16735 -
16736 -
16737 -case " $postdeps_CXX " in
16738 -*" -lc "*) archive_cmds_need_lc_CXX=no ;;
16739 -esac
16740 -
16741 -lt_prog_compiler_wl_CXX=
16742 -lt_prog_compiler_pic_CXX=
16743 -lt_prog_compiler_static_CXX=
16744 -
16745 -echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
16746 -echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
16747 -
16748 - # C++ specific cases for pic, static, wl, etc.
16749 - if test "$GXX" = yes; then
16750 - lt_prog_compiler_wl_CXX='-Wl,'
16751 - lt_prog_compiler_static_CXX='-static'
16752 -
16753 - case $host_os in
16754 - aix*)
16755 - # All AIX code is PIC.
16756 - if test "$host_cpu" = ia64; then
16757 - # AIX 5 now supports IA64 processor
16758 - lt_prog_compiler_static_CXX='-Bstatic'
16759 - fi
16760 - ;;
16761 - amigaos*)
16762 - # FIXME: we need at least 68020 code to build shared libraries, but
16763 - # adding the `-m68020' flag to GCC prevents building anything better,
16764 - # like `-m68040'.
16765 - lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
16766 - ;;
16767 - beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
16768 - # PIC is the default for these OSes.
16769 - ;;
16770 - mingw* | os2* | pw32*)
16771 - # This hack is so that the source file can tell whether it is being
16772 - # built for inclusion in a dll (and should export symbols for example).
16773 - lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
16774 - ;;
16775 - darwin* | rhapsody*)
16776 - # PIC is the default on this platform
16777 - # Common symbols not allowed in MH_DYLIB files
16778 - lt_prog_compiler_pic_CXX='-fno-common'
16779 - ;;
16780 - *djgpp*)
16781 - # DJGPP does not support shared libraries at all
16782 - lt_prog_compiler_pic_CXX=
16783 - ;;
16784 - sysv4*MP*)
16785 - if test -d /usr/nec; then
16786 - lt_prog_compiler_pic_CXX=-Kconform_pic
16787 - fi
16788 - ;;
16789 - hpux*)
16790 - # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16791 - # not for PA HP-UX.
16792 - case $host_cpu in
16793 - hppa*64*|ia64*)
16794 - ;;
16795 - *)
16796 - lt_prog_compiler_pic_CXX='-fPIC'
16797 - ;;
16798 - esac
16799 - ;;
16800 - *)
16801 - lt_prog_compiler_pic_CXX='-fPIC'
16802 - ;;
16803 - esac
16804 - else
16805 - case $host_os in
16806 - aix4* | aix5*)
16807 - # All AIX code is PIC.
16808 - if test "$host_cpu" = ia64; then
16809 - # AIX 5 now supports IA64 processor
16810 - lt_prog_compiler_static_CXX='-Bstatic'
16811 - else
16812 - lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
16813 - fi
16814 - ;;
16815 - chorus*)
16816 - case $cc_basename in
16817 - cxch68*)
16818 - # Green Hills C++ Compiler
16819 - # _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"
16820 - ;;
16821 - esac
16822 - ;;
16823 - darwin*)
16824 - # PIC is the default on this platform
16825 - # Common symbols not allowed in MH_DYLIB files
16826 - case $cc_basename in
16827 - xlc*)
16828 - lt_prog_compiler_pic_CXX='-qnocommon'
16829 - lt_prog_compiler_wl_CXX='-Wl,'
16830 - ;;
16831 - esac
16832 - ;;
16833 - dgux*)
16834 - case $cc_basename in
16835 - ec++*)
16836 - lt_prog_compiler_pic_CXX='-KPIC'
16837 - ;;
16838 - ghcx*)
16839 - # Green Hills C++ Compiler
16840 - lt_prog_compiler_pic_CXX='-pic'
16841 - ;;
16842 - *)
16843 - ;;
16844 - esac
16845 - ;;
16846 - freebsd* | kfreebsd*-gnu | dragonfly*)
16847 - # FreeBSD uses GNU C++
16848 - ;;
16849 - hpux9* | hpux10* | hpux11*)
16850 - case $cc_basename in
16851 - CC*)
16852 - lt_prog_compiler_wl_CXX='-Wl,'
16853 - lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
16854 - if test "$host_cpu" != ia64; then
16855 - lt_prog_compiler_pic_CXX='+Z'
16856 - fi
16857 - ;;
16858 - aCC*)
16859 - lt_prog_compiler_wl_CXX='-Wl,'
16860 - lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
16861 - case $host_cpu in
16862 - hppa*64*|ia64*)
16863 - # +Z the default
16864 - ;;
16865 - *)
16866 - lt_prog_compiler_pic_CXX='+Z'
16867 - ;;
16868 - esac
16869 - ;;
16870 - *)
16871 - ;;
16872 - esac
16873 - ;;
16874 - irix5* | irix6* | nonstopux*)
16875 - case $cc_basename in
16876 - CC*)
16877 - lt_prog_compiler_wl_CXX='-Wl,'
16878 - lt_prog_compiler_static_CXX='-non_shared'
16879 - # CC pic flag -KPIC is the default.
16880 - ;;
16881 - *)
16882 - ;;
16883 - esac
16884 - ;;
16885 - linux*)
16886 - case $cc_basename in
16887 - KCC*)
16888 - # KAI C++ Compiler
16889 - lt_prog_compiler_wl_CXX='--backend -Wl,'
16890 - lt_prog_compiler_pic_CXX='-fPIC'
16891 - ;;
16892 - icpc* | ecpc*)
16893 - # Intel C++
16894 - lt_prog_compiler_wl_CXX='-Wl,'
16895 - lt_prog_compiler_pic_CXX='-KPIC'
16896 - lt_prog_compiler_static_CXX='-static'
16897 - ;;
16898 - pgCC*)
16899 - # Portland Group C++ compiler.
16900 - lt_prog_compiler_wl_CXX='-Wl,'
16901 - lt_prog_compiler_pic_CXX='-fpic'
16902 - lt_prog_compiler_static_CXX='-Bstatic'
16903 - ;;
16904 - cxx*)
16905 - # Compaq C++
16906 - # Make sure the PIC flag is empty. It appears that all Alpha
16907 - # Linux and Compaq Tru64 Unix objects are PIC.
16908 - lt_prog_compiler_pic_CXX=
16909 - lt_prog_compiler_static_CXX='-non_shared'
16910 - ;;
16911 - *)
16912 - ;;
16913 - esac
16914 - ;;
16915 - lynxos*)
16916 - ;;
16917 - m88k*)
16918 - ;;
16919 - mvs*)
16920 - case $cc_basename in
16921 - cxx*)
16922 - lt_prog_compiler_pic_CXX='-W c,exportall'
16923 - ;;
16924 - *)
16925 - ;;
16926 - esac
16927 - ;;
16928 - netbsd*)
16929 - ;;
16930 - osf3* | osf4* | osf5*)
16931 - case $cc_basename in
16932 - KCC*)
16933 - lt_prog_compiler_wl_CXX='--backend -Wl,'
16934 - ;;
16935 - RCC*)
16936 - # Rational C++ 2.4.1
16937 - lt_prog_compiler_pic_CXX='-pic'
16938 - ;;
16939 - cxx*)
16940 - # Digital/Compaq C++
16941 - lt_prog_compiler_wl_CXX='-Wl,'
16942 - # Make sure the PIC flag is empty. It appears that all Alpha
16943 - # Linux and Compaq Tru64 Unix objects are PIC.
16944 - lt_prog_compiler_pic_CXX=
16945 - lt_prog_compiler_static_CXX='-non_shared'
16946 - ;;
16947 - *)
16948 - ;;
16949 - esac
16950 - ;;
16951 - psos*)
16952 - ;;
16953 - sco*)
16954 - case $cc_basename in
16955 - CC*)
16956 - lt_prog_compiler_pic_CXX='-fPIC'
16957 - ;;
16958 - *)
16959 - ;;
16960 - esac
16961 - ;;
16962 - solaris*)
16963 - case $cc_basename in
16964 - CC*)
16965 - # Sun C++ 4.2, 5.x and Centerline C++
16966 - lt_prog_compiler_pic_CXX='-KPIC'
16967 - lt_prog_compiler_static_CXX='-Bstatic'
16968 - lt_prog_compiler_wl_CXX='-Qoption ld '
16969 - ;;
16970 - gcx*)
16971 - # Green Hills C++ Compiler
16972 - lt_prog_compiler_pic_CXX='-PIC'
16973 - ;;
16974 - *)
16975 - ;;
16976 - esac
16977 - ;;
16978 - sunos4*)
16979 - case $cc_basename in
16980 - CC*)
16981 - # Sun C++ 4.x
16982 - lt_prog_compiler_pic_CXX='-pic'
16983 - lt_prog_compiler_static_CXX='-Bstatic'
16984 - ;;
16985 - lcc*)
16986 - # Lucid
16987 - lt_prog_compiler_pic_CXX='-pic'
16988 - ;;
16989 - *)
16990 - ;;
16991 - esac
16992 - ;;
16993 - tandem*)
16994 - case $cc_basename in
16995 - NCC*)
16996 - # NonStop-UX NCC 3.20
16997 - lt_prog_compiler_pic_CXX='-KPIC'
16998 - ;;
16999 - *)
17000 - ;;
17001 - esac
17002 - ;;
17003 - unixware*)
17004 - ;;
17005 - vxworks*)
17006 - ;;
17007 - *)
17008 - lt_prog_compiler_can_build_shared_CXX=no
17009 - ;;
17010 - esac
17011 - fi
17012 -
17013 -echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
17014 -echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
17015 -
17016 -#
17017 -# Check to make sure the PIC flag actually works.
17018 -#
17019 -if test -n "$lt_prog_compiler_pic_CXX"; then
17020 -
17021 -echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
17022 -echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
17023 -if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
17024 - echo $ECHO_N "(cached) $ECHO_C" >&6
17025 -else
17026 - lt_prog_compiler_pic_works_CXX=no
17027 - ac_outfile=conftest.$ac_objext
17028 - printf "$lt_simple_compile_test_code" > conftest.$ac_ext
17029 - lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
17030 - # Insert the option either (1) after the last *FLAGS variable, or
17031 - # (2) before a word containing "conftest.", or (3) at the end.
17032 - # Note that $ac_compile itself does not contain backslashes and begins
17033 - # with a dollar sign (not a hyphen), so the echo should work correctly.
17034 - # The option is referenced via a variable to avoid confusing sed.
17035 - lt_compile=`echo "$ac_compile" | $SED \
17036 - -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17037 - -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17038 - -e 's:$: $lt_compiler_flag:'`
17039 - (eval echo "\"\$as_me:11206: $lt_compile\"" >&5)
17040 - (eval "$lt_compile" 2>conftest.err)
17041 - ac_status=$?
17042 - cat conftest.err >&5
17043 - echo "$as_me:11210: \$? = $ac_status" >&5
17044 - if (exit $ac_status) && test -s "$ac_outfile"; then
17045 - # The compiler can only warn and ignore the option if not recognized
17046 - # So say no if there are warnings other than the usual output.
17047 - $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
17048 - $SED '/^$/d' conftest.err >conftest.er2
17049 - if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
17050 - lt_prog_compiler_pic_works_CXX=yes
17051 - fi
17052 - fi
17053 - $rm conftest*
17054 -
17055 -fi
17056 -echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
17057 -echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
17058 -
17059 -if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
17060 - case $lt_prog_compiler_pic_CXX in
17061 - "" | " "*) ;;
17062 - *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
17063 - esac
17064 -else
17065 - lt_prog_compiler_pic_CXX=
17066 - lt_prog_compiler_can_build_shared_CXX=no
17067 -fi
17068 -
17069 -fi
17070 -case $host_os in
17071 - # For platforms which do not support PIC, -DPIC is meaningless:
17072 - *djgpp*)
17073 - lt_prog_compiler_pic_CXX=
17074 - ;;
17075 - *)
17076 - lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
17077 - ;;
17078 -esac
17079 -
17080 -echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
17081 -echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
17082 -if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
17083 - echo $ECHO_N "(cached) $ECHO_C" >&6
17084 -else
17085 - lt_cv_prog_compiler_c_o_CXX=no
17086 - $rm -r conftest 2>/dev/null
17087 - mkdir conftest
17088 - cd conftest
17089 - mkdir out
17090 - printf "$lt_simple_compile_test_code" > conftest.$ac_ext
17091 -
17092 - lt_compiler_flag="-o out/conftest2.$ac_objext"
17093 - # Insert the option either (1) after the last *FLAGS variable, or
17094 - # (2) before a word containing "conftest.", or (3) at the end.
17095 - # Note that $ac_compile itself does not contain backslashes and begins
17096 - # with a dollar sign (not a hyphen), so the echo should work correctly.
17097 - lt_compile=`echo "$ac_compile" | $SED \
17098 - -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17099 - -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17100 - -e 's:$: $lt_compiler_flag:'`
17101 - (eval echo "\"\$as_me:11268: $lt_compile\"" >&5)
17102 - (eval "$lt_compile" 2>out/conftest.err)
17103 - ac_status=$?
17104 - cat out/conftest.err >&5
17105 - echo "$as_me:11272: \$? = $ac_status" >&5
17106 - if (exit $ac_status) && test -s out/conftest2.$ac_objext
17107 - then
17108 - # The compiler can only warn and ignore the option if not recognized
17109 - # So say no if there are warnings
17110 - $echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp
17111 - $SED '/^$/d' out/conftest.err >out/conftest.er2
17112 - if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 >/dev/null; then
17113 - lt_cv_prog_compiler_c_o_CXX=yes
17114 - fi
17115 - fi
17116 - chmod u+w . 2>&5
17117 - $rm conftest*
17118 - # SGI C++ compiler will create directory out/ii_files/ for
17119 - # template instantiation
17120 - test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
17121 - $rm out/* && rmdir out
17122 - cd ..
17123 - rmdir conftest
17124 - $rm conftest*
17125 -
17126 -fi
17127 -echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
17128 -echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
17129 -
17130 -
17131 -hard_links="nottested"
17132 -if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
17133 - # do not overwrite the value of need_locks provided by the user
17134 - echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
17135 -echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
17136 - hard_links=yes
17137 - $rm conftest*
17138 - ln conftest.a conftest.b 2>/dev/null && hard_links=no
17139 - touch conftest.a
17140 - ln conftest.a conftest.b 2>&5 || hard_links=no
17141 - ln conftest.a conftest.b 2>/dev/null && hard_links=no
17142 - echo "$as_me:$LINENO: result: $hard_links" >&5
17143 -echo "${ECHO_T}$hard_links" >&6
17144 - if test "$hard_links" = no; then
17145 - { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
17146 -echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
17147 - need_locks=warn
17148 - fi
17149 -else
17150 - need_locks=no
17151 -fi
17152 -
17153 -echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
17154 -echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
17155 -
17156 - export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
17157 - case $host_os in
17158 - aix4* | aix5*)
17159 - # If we're using GNU nm, then we don't want the "-C" option.
17160 - # -C means demangle to AIX nm, but means don't demangle with GNU nm
17161 - if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
17162 - 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'
17163 - else
17164 - 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'
17165 - fi
17166 - ;;
17167 - pw32*)
17168 - export_symbols_cmds_CXX="$ltdll_cmds"
17169 - ;;
17170 - cygwin* | mingw*)
17171 - 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'
17172 - ;;
17173 - *)
17174 - export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
17175 - ;;
17176 - esac
17177 -
17178 -echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
17179 -echo "${ECHO_T}$ld_shlibs_CXX" >&6
17180 -test "$ld_shlibs_CXX" = no && can_build_shared=no
17181 -
17182 -variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
17183 -if test "$GCC" = yes; then
17184 - variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
17185 -fi
17186 -
17187 -#
17188 -# Do we need to explicitly link libc?
17189 -#
17190 -case "x$archive_cmds_need_lc_CXX" in
17191 -x|xyes)
17192 - # Assume -lc should be added
17193 - archive_cmds_need_lc_CXX=yes
17194 -
17195 - if test "$enable_shared" = yes && test "$GCC" = yes; then
17196 - case $archive_cmds_CXX in
17197 - *'~'*)
17198 - # FIXME: we may have to deal with multi-command sequences.
17199 - ;;
17200 - '$CC '*)
17201 - # Test whether the compiler implicitly links with -lc since on some
17202 - # systems, -lgcc has to come before -lc. If gcc already passes -lc
17203 - # to ld, don't add -lc before -lgcc.
17204 - echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
17205 -echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
17206 - $rm conftest*
17207 - printf "$lt_simple_compile_test_code" > conftest.$ac_ext
17208 -
17209 - if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17210 - (eval $ac_compile) 2>&5
17211 - ac_status=$?
17212 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
17213 - (exit $ac_status); } 2>conftest.err; then
17214 - soname=conftest
17215 - lib=conftest
17216 - libobjs=conftest.$ac_objext
17217 - deplibs=
17218 - wl=$lt_prog_compiler_wl_CXX
17219 - compiler_flags=-v
17220 - linker_flags=-v
17221 - verstring=
17222 - output_objdir=.
17223 - libname=conftest
17224 - lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
17225 - allow_undefined_flag_CXX=
17226 - if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
17227 - (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
17228 - ac_status=$?
17229 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
17230 - (exit $ac_status); }
17231 - then
17232 - archive_cmds_need_lc_CXX=no
17233 - else
17234 - archive_cmds_need_lc_CXX=yes
17235 - fi
17236 - allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
17237 - else
17238 - cat conftest.err 1>&5
17239 - fi
17240 - $rm conftest*
17241 - echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
17242 -echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
17243 - ;;
17244 - esac
17245 - fi
17246 - ;;
17247 -esac
17248 -
17249 -echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
17250 -echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
17251 -library_names_spec=
17252 -libname_spec='lib$name'
17253 -soname_spec=
17254 -shrext_cmds=".so"
17255 -postinstall_cmds=
17256 -postuninstall_cmds=
17257 -finish_cmds=
17258 -finish_eval=
17259 -shlibpath_var=
17260 -shlibpath_overrides_runpath=unknown
17261 -version_type=none
17262 -dynamic_linker="$host_os ld.so"
17263 -sys_lib_dlsearch_path_spec="/lib /usr/lib"
17264 -if test "$GCC" = yes; then
17265 - sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17266 - if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
17267 - # if the path contains ";" then we assume it to be the separator
17268 - # otherwise default to the standard path separator (i.e. ":") - it is
17269 - # assumed that no part of a normal pathname contains ";" but that should
17270 - # okay in the real world where ";" in dirpaths is itself problematic.
17271 - sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17272 - else
17273 - sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17274 - fi
17275 -else
17276 - sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
17277 -fi
17278 -need_lib_prefix=unknown
17279 -hardcode_into_libs=no
17280 -
17281 -# when you set need_version to no, make sure it does not cause -set_version
17282 -# flags to be left without arguments
17283 -need_version=unknown
17284 -
17285 -case $host_os in
17286 -aix3*)
17287 - version_type=linux
17288 - library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
17289 - shlibpath_var=LIBPATH
17290 -
17291 - # AIX 3 has no versioning support, so we append a major version to the name.
17292 - soname_spec='${libname}${release}${shared_ext}$major'
17293 - ;;
17294 -
17295 -aix4* | aix5*)
17296 - version_type=linux
17297 - need_lib_prefix=no
17298 - need_version=no
17299 - hardcode_into_libs=yes
17300 - if test "$host_cpu" = ia64; then
17301 - # AIX 5 supports IA64
17302 - library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
17303 - shlibpath_var=LD_LIBRARY_PATH
17304 - else
17305 - # With GCC up to 2.95.x, collect2 would create an import file
17306 - # for dependence libraries. The import file would start with
17307 - # the line `#! .'. This would cause the generated library to
17308 - # depend on `.', always an invalid library. This was fixed in
17309 - # development snapshots of GCC prior to 3.0.
17310 - case $host_os in
17311 - aix4 | aix4.[01] | aix4.[01].*)
17312 - if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
17313 - echo ' yes '
17314 - echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
17315 - :
17316 - else
17317 - can_build_shared=no
17318 - fi
17319 - ;;
17320 - esac
17321 - # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
17322 - # soname into executable. Probably we can add versioning support to
17323 - # collect2, so additional links can be useful in future.
17324 - if test "$aix_use_runtimelinking" = yes; then
17325 - # If using run time linking (on AIX 4.2 or later) use lib<name>.so
17326 - # instead of lib<name>.a to let people know that these are not
17327 - # typical AIX shared libraries.
17328 - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17329 - else
17330 - # We preserve .a as extension for shared libraries through AIX4.2
17331 - # and later when we are not doing run time linking.
17332 - library_names_spec='${libname}${release}.a $libname.a'
17333 - soname_spec='${libname}${release}${shared_ext}$major'
17334 - fi
17335 - shlibpath_var=LIBPATH
17336 - fi
17337 - ;;
17338 -
17339 -amigaos*)
17340 - library_names_spec='$libname.ixlibrary $libname.a'
17341 - # Create ${libname}_ixlibrary.a entries in /sys/libs.
17342 - 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'
17343 - ;;
17344 -
17345 -beos*)
17346 - library_names_spec='${libname}${shared_ext}'
17347 - dynamic_linker="$host_os ld.so"
17348 - shlibpath_var=LIBRARY_PATH
17349 - ;;
17350 -
17351 -bsdi[45]*)
17352 - version_type=linux
17353 - need_version=no
17354 - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17355 - soname_spec='${libname}${release}${shared_ext}$major'
17356 - finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
17357 - shlibpath_var=LD_LIBRARY_PATH
17358 - sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
17359 - sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
17360 - # the default ld.so.conf also contains /usr/contrib/lib and
17361 - # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
17362 - # libtool to hard-code these into programs
17363 - ;;
17364 -
17365 -cygwin* | mingw* | pw32*)
17366 - version_type=windows
17367 - shrext_cmds=".dll"
17368 - need_version=no
17369 - need_lib_prefix=no
17370 -
17371 - case $GCC,$host_os in
17372 - yes,cygwin* | yes,mingw* | yes,pw32*)
17373 - library_names_spec='$libname.dll.a'
17374 - # DLL is installed to $(libdir)/../bin by postinstall_cmds
17375 - postinstall_cmds='base_file=`basename \${file}`~
17376 - dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
17377 - dldir=$destdir/`dirname \$dlpath`~
17378 - test -d \$dldir || mkdir -p \$dldir~
17379 - $install_prog $dir/$dlname \$dldir/$dlname~
17380 - chmod a+x \$dldir/$dlname'
17381 - postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17382 - dlpath=$dir/\$dldll~
17383 - $rm \$dlpath'
17384 - shlibpath_overrides_runpath=yes
17385 -
17386 - case $host_os in
17387 - cygwin*)
17388 - # Cygwin DLLs use 'cyg' prefix rather than 'lib'
17389 - soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17390 - sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
17391 - ;;
17392 - mingw*)
17393 - # MinGW DLLs use traditional 'lib' prefix
17394 - soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17395 - sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17396 - if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
17397 - # It is most probably a Windows format PATH printed by
17398 - # mingw gcc, but we are running on Cygwin. Gcc prints its search
17399 - # path with ; separators, and with drive letters. We can handle the
17400 - # drive letters (cygwin fileutils understands them), so leave them,
17401 - # especially as we might pass files found there to a mingw objdump,
17402 - # which wouldn't understand a cygwinified path. Ahh.
17403 - sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17404 - else
17405 - sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17406 - fi
17407 - ;;
17408 - pw32*)
17409 - # pw32 DLLs use 'pw' prefix rather than 'lib'
17410 - library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17411 - ;;
17412 - esac
17413 - ;;
17414 -
17415 - *)
17416 - library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
17417 - ;;
17418 - esac
17419 - dynamic_linker='Win32 ld.exe'
17420 - # FIXME: first we should search . and the directory the executable is in
17421 - shlibpath_var=PATH
17422 - ;;
17423 -
17424 -darwin* | rhapsody*)
17425 - dynamic_linker="$host_os dyld"
17426 - version_type=darwin
17427 - need_lib_prefix=no
17428 - need_version=no
17429 - library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
17430 - soname_spec='${libname}${release}${major}$shared_ext'
17431 - shlibpath_overrides_runpath=yes
17432 - shlibpath_var=DYLD_LIBRARY_PATH
17433 - shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
17434 - # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
17435 - if test "$GCC" = yes; then
17436 - sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
17437 - else
17438 - sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
17439 - fi
17440 - sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
17441 - ;;
17442 -
17443 -dgux*)
17444 - version_type=linux
17445 - need_lib_prefix=no
17446 - need_version=no
17447 - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
17448 - soname_spec='${libname}${release}${shared_ext}$major'
17449 - shlibpath_var=LD_LIBRARY_PATH
17450 - ;;
17451 -
17452 -freebsd1*)
17453 - dynamic_linker=no
17454 - ;;
17455 -
17456 -kfreebsd*-gnu)
17457 - version_type=linux
17458 - need_lib_prefix=no
17459 - need_version=no
17460 - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17461 - soname_spec='${libname}${release}${shared_ext}$major'
17462 - shlibpath_var=LD_LIBRARY_PATH
17463 - shlibpath_overrides_runpath=no
17464 - hardcode_into_libs=yes
17465 - dynamic_linker='GNU ld.so'
17466 - ;;
17467 -
17468 -freebsd* | dragonfly*)
17469 - # DragonFly does not have aout. When/if they implement a new
17470 - # versioning mechanism, adjust this.
17471 - if test -x /usr/bin/objformat; then
17472 - objformat=`/usr/bin/objformat`
17473 - else
17474 - case $host_os in
17475 - freebsd[123]*) objformat=aout ;;
17476 - *) objformat=elf ;;
17477 - esac
17478 - fi
17479 - version_type=freebsd-$objformat
17480 - case $version_type in
17481 - freebsd-elf*)
17482 - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17483 - need_version=no
17484 - need_lib_prefix=no
17485 - ;;
17486 - freebsd-*)
17487 - library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
17488 - need_version=yes
17489 - ;;
17490 - esac
17491 - shlibpath_var=LD_LIBRARY_PATH
17492 - case $host_os in
17493 - freebsd2*)
17494 - shlibpath_overrides_runpath=yes
17495 - ;;
17496 - freebsd3.[01]* | freebsdelf3.[01]*)
17497 - shlibpath_overrides_runpath=yes
17498 - hardcode_into_libs=yes
17499 - ;;
17500 - *) # from 3.2 on
17501 - shlibpath_overrides_runpath=no
17502 - hardcode_into_libs=yes
17503 - ;;
17504 - esac
17505 - ;;
17506 -
17507 -gnu*)
17508 - version_type=linux
17509 - need_lib_prefix=no
17510 - need_version=no
17511 - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17512 - soname_spec='${libname}${release}${shared_ext}$major'
17513 - shlibpath_var=LD_LIBRARY_PATH
17514 - hardcode_into_libs=yes
17515 - ;;
17516 -
17517 -hpux9* | hpux10* | hpux11*)
17518 - # Give a soname corresponding to the major version so that dld.sl refuses to
17519 - # link against other versions.
17520 - version_type=sunos
17521 - need_lib_prefix=no
17522 - need_version=no
17523 - case $host_cpu in
17524 - ia64*)
17525 - shrext_cmds='.so'
17526 - hardcode_into_libs=yes
17527 - dynamic_linker="$host_os dld.so"
17528 - shlibpath_var=LD_LIBRARY_PATH
17529 - shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17530 - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17531 - soname_spec='${libname}${release}${shared_ext}$major'
17532 - if test "X$HPUX_IA64_MODE" = X32; then
17533 - sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17534 - else
17535 - sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
17536 - fi
17537 - sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17538 - ;;
17539 - hppa*64*)
17540 - shrext_cmds='.sl'
17541 - hardcode_into_libs=yes
17542 - dynamic_linker="$host_os dld.sl"
17543 - shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
17544 - shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17545 - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17546 - soname_spec='${libname}${release}${shared_ext}$major'
17547 - sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17548 - sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17549 - ;;
17550 - *)
17551 - shrext_cmds='.sl'
17552 - dynamic_linker="$host_os dld.sl"
17553 - shlibpath_var=SHLIB_PATH
17554 - shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
17555 - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17556 - soname_spec='${libname}${release}${shared_ext}$major'
17557 - ;;
17558 - esac
17559 - # HP-UX runs *really* slowly unless shared libraries are mode 555.
17560 - postinstall_cmds='chmod 555 $lib'
17561 - ;;
17562 -
17563 -irix5* | irix6* | nonstopux*)
17564 - case $host_os in
17565 - nonstopux*) version_type=nonstopux ;;
17566 - *)
17567 - if test "$lt_cv_prog_gnu_ld" = yes; then
17568 - version_type=linux
17569 - else
17570 - version_type=irix
17571 - fi ;;
17572 - esac
17573 - need_lib_prefix=no
17574 - need_version=no
17575 - soname_spec='${libname}${release}${shared_ext}$major'
17576 - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
17577 - case $host_os in
17578 - irix5* | nonstopux*)
17579 - libsuff= shlibsuff=
17580 - ;;
17581 - *)
17582 - case $LD in # libtool.m4 will add one of these switches to LD
17583 - *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
17584 - libsuff= shlibsuff= libmagic=32-bit;;
17585 - *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
17586 - libsuff=32 shlibsuff=N32 libmagic=N32;;
17587 - *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
17588 - libsuff=64 shlibsuff=64 libmagic=64-bit;;
17589 - *) libsuff= shlibsuff= libmagic=never-match;;
17590 - esac
17591 - ;;
17592 - esac
17593 - shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
17594 - shlibpath_overrides_runpath=no
17595 - sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
17596 - sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
17597 - hardcode_into_libs=yes
17598 - ;;
17599 -
17600 -# No shared lib support for Linux oldld, aout, or coff.
17601 -linux*oldld* | linux*aout* | linux*coff*)
17602 - dynamic_linker=no
17603 - ;;
17604 -
17605 -# This must be Linux ELF.
17606 -linux*)
17607 - version_type=linux
17608 - need_lib_prefix=no
17609 - need_version=no
17610 - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17611 - soname_spec='${libname}${release}${shared_ext}$major'
17612 - finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17613 - shlibpath_var=LD_LIBRARY_PATH
17614 - shlibpath_overrides_runpath=no
17615 - # This implies no fast_install, which is unacceptable.
17616 - # Some rework will be needed to allow for fast_install
17617 - # before this can be enabled.
17618 - hardcode_into_libs=yes
17619 -
17620 - # Append ld.so.conf contents to the search path
17621 - if test -f /etc/ld.so.conf; then
17622 - lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
17623 - sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
17624 - fi
17625 -
17626 - # We used to test for /lib/ld.so.1 and disable shared libraries on
17627 - # powerpc, because MkLinux only supported shared libraries with the
17628 - # GNU dynamic linker. Since this was broken with cross compilers,
17629 - # most powerpc-linux boxes support dynamic linking these days and
17630 - # people can always --disable-shared, the test was removed, and we
17631 - # assume the GNU/Linux dynamic linker is in use.
17632 - dynamic_linker='GNU/Linux ld.so'
17633 - ;;
17634 -
17635 -knetbsd*-gnu)
17636 - version_type=linux
17637 - need_lib_prefix=no
17638 - need_version=no
17639 - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17640 - soname_spec='${libname}${release}${shared_ext}$major'
17641 - shlibpath_var=LD_LIBRARY_PATH
17642 - shlibpath_overrides_runpath=no
17643 - hardcode_into_libs=yes
17644 - dynamic_linker='GNU ld.so'
17645 - ;;
17646 -
17647 -netbsd*)
17648 - version_type=sunos
17649 - need_lib_prefix=no
17650 - need_version=no
17651 - if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17652 - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17653 - finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17654 - dynamic_linker='NetBSD (a.out) ld.so'
17655 - else
17656 - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17657 - soname_spec='${libname}${release}${shared_ext}$major'
17658 - dynamic_linker='NetBSD ld.elf_so'
17659 - fi
17660 - shlibpath_var=LD_LIBRARY_PATH
17661 - shlibpath_overrides_runpath=yes
17662 - hardcode_into_libs=yes
17663 - ;;
17664 -
17665 -newsos6)
17666 - version_type=linux
17667 - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17668 - shlibpath_var=LD_LIBRARY_PATH
17669 - shlibpath_overrides_runpath=yes
17670 - ;;
17671 -
17672 -nto-qnx*)
17673 - version_type=linux
17674 - need_lib_prefix=no
17675 - need_version=no
17676 - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17677 - soname_spec='${libname}${release}${shared_ext}$major'
17678 - shlibpath_var=LD_LIBRARY_PATH
17679 - shlibpath_overrides_runpath=yes
17680 - ;;
17681 -
17682 -openbsd*)
17683 - version_type=sunos
17684 - need_lib_prefix=no
17685 - # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
17686 - case $host_os in
17687 - openbsd3.3 | openbsd3.3.*) need_version=yes ;;
17688 - *) need_version=no ;;
17689 - esac
17690 - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17691 - finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17692 - shlibpath_var=LD_LIBRARY_PATH
17693 - if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17694 - case $host_os in
17695 - openbsd2.[89] | openbsd2.[89].*)
17696 - shlibpath_overrides_runpath=no
17697 - ;;
17698 - *)
17699 - shlibpath_overrides_runpath=yes
17700 - ;;
17701 - esac
17702 - else
17703 - shlibpath_overrides_runpath=yes
17704 - fi
17705 - ;;
17706 -
17707 -os2*)
17708 - libname_spec='$name'
17709 - shrext_cmds=".dll"
17710 - need_lib_prefix=no
17711 - library_names_spec='$libname${shared_ext} $libname.a'
17712 - dynamic_linker='OS/2 ld.exe'
17713 - shlibpath_var=LIBPATH
17714 - ;;
17715 -
17716 -osf3* | osf4* | osf5*)
17717 - version_type=osf
17718 - need_lib_prefix=no
17719 - need_version=no
17720 - soname_spec='${libname}${release}${shared_ext}$major'
17721 - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17722 - shlibpath_var=LD_LIBRARY_PATH
17723 - sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17724 - sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
17725 - ;;
17726 -
17727 -sco3.2v5*)
17728 - version_type=osf
17729 - soname_spec='${libname}${release}${shared_ext}$major'
17730 - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17731 - shlibpath_var=LD_LIBRARY_PATH
17732 - ;;
17733 -
17734 -solaris*)
17735 - version_type=linux
17736 - need_lib_prefix=no
17737 - need_version=no
17738 - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17739 - soname_spec='${libname}${release}${shared_ext}$major'
17740 - shlibpath_var=LD_LIBRARY_PATH
17741 - shlibpath_overrides_runpath=yes
17742 - hardcode_into_libs=yes
17743 - # ldd complains unless libraries are executable
17744 - postinstall_cmds='chmod +x $lib'
17745 - ;;
17746 -
17747 -sunos4*)
17748 - version_type=sunos
17749 - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17750 - finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17751 - shlibpath_var=LD_LIBRARY_PATH
17752 - shlibpath_overrides_runpath=yes
17753 - if test "$with_gnu_ld" = yes; then
17754 - need_lib_prefix=no
17755 - fi
17756 - need_version=yes
17757 - ;;
17758 -
17759 -sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
17760 - version_type=linux
17761 - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17762 - soname_spec='${libname}${release}${shared_ext}$major'
17763 - shlibpath_var=LD_LIBRARY_PATH
17764 - case $host_vendor in
17765 - sni)
17766 - shlibpath_overrides_runpath=no
17767 - need_lib_prefix=no
17768 - export_dynamic_flag_spec='${wl}-Blargedynsym'
17769 - runpath_var=LD_RUN_PATH
17770 - ;;
17771 - siemens)
17772 - need_lib_prefix=no
17773 - ;;
17774 - motorola)
17775 - need_lib_prefix=no
17776 - need_version=no
17777 - shlibpath_overrides_runpath=no
17778 - sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17779 - ;;
17780 - esac
17781 - ;;
17782 -
17783 -sysv4*MP*)
17784 - if test -d /usr/nec ;then
17785 - version_type=linux
17786 - library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
17787 - soname_spec='$libname${shared_ext}.$major'
17788 - shlibpath_var=LD_LIBRARY_PATH
17789 - fi
17790 - ;;
17791 -
17792 -uts4*)
17793 - version_type=linux
17794 - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17795 - soname_spec='${libname}${release}${shared_ext}$major'
17796 - shlibpath_var=LD_LIBRARY_PATH
17797 - ;;
17798 -
17799 -*)
17800 - dynamic_linker=no
17801 - ;;
17802 -esac
17803 -echo "$as_me:$LINENO: result: $dynamic_linker" >&5
17804 -echo "${ECHO_T}$dynamic_linker" >&6
17805 -test "$dynamic_linker" = no && can_build_shared=no
17806 -
17807 -echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
17808 -echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
17809 -hardcode_action_CXX=
17810 -if test -n "$hardcode_libdir_flag_spec_CXX" || \
17811 - test -n "$runpath_var_CXX" || \
17812 - test "X$hardcode_automatic_CXX" = "Xyes" ; then
17813 -
17814 - # We can hardcode non-existant directories.
17815 - if test "$hardcode_direct_CXX" != no &&
17816 - # If the only mechanism to avoid hardcoding is shlibpath_var, we
17817 - # have to relink, otherwise we might link with an installed library
17818 - # when we should be linking with a yet-to-be-installed one
17819 - ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
17820 - test "$hardcode_minus_L_CXX" != no; then
17821 - # Linking always hardcodes the temporary library directory.
17822 - hardcode_action_CXX=relink
17823 - else
17824 - # We can link without hardcoding, and we can hardcode nonexisting dirs.
17825 - hardcode_action_CXX=immediate
17826 - fi
17827 -else
17828 - # We cannot hardcode anything, or else we can only hardcode existing
17829 - # directories.
17830 - hardcode_action_CXX=unsupported
17831 -fi
17832 -echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
17833 -echo "${ECHO_T}$hardcode_action_CXX" >&6
17834 -
17835 -if test "$hardcode_action_CXX" = relink; then
17836 - # Fast installation is not supported
17837 - enable_fast_install=no
17838 -elif test "$shlibpath_overrides_runpath" = yes ||
17839 - test "$enable_shared" = no; then
17840 - # Fast installation is not necessary
17841 - enable_fast_install=needless
17842 -fi
17843 -
17844 -striplib=
17845 -old_striplib=
17846 -echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
17847 -echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
17848 -if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
17849 - test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
17850 - test -z "$striplib" && striplib="$STRIP --strip-unneeded"
17851 - echo "$as_me:$LINENO: result: yes" >&5
17852 -echo "${ECHO_T}yes" >&6
17853 -else
17854 -# FIXME - insert some real tests, host_os isn't really good enough
17855 - case $host_os in
17856 - darwin*)
17857 - if test -n "$STRIP" ; then
17858 - striplib="$STRIP -x"
17859 - echo "$as_me:$LINENO: result: yes" >&5
17860 -echo "${ECHO_T}yes" >&6
17861 - else
17862 - echo "$as_me:$LINENO: result: no" >&5
17863 -echo "${ECHO_T}no" >&6
17864 -fi
17865 - ;;
17866 - *)
17867 - echo "$as_me:$LINENO: result: no" >&5
17868 -echo "${ECHO_T}no" >&6
17869 - ;;
17870 - esac
17871 -fi
17872 -
17873 -if test "x$enable_dlopen" != xyes; then
17874 - enable_dlopen=unknown
17875 - enable_dlopen_self=unknown
17876 - enable_dlopen_self_static=unknown
17877 -else
17878 - lt_cv_dlopen=no
17879 - lt_cv_dlopen_libs=
17880 -
17881 - case $host_os in
17882 - beos*)
17883 - lt_cv_dlopen="load_add_on"
17884 - lt_cv_dlopen_libs=
17885 - lt_cv_dlopen_self=yes
17886 - ;;
17887 -
17888 - mingw* | pw32*)
17889 - lt_cv_dlopen="LoadLibrary"
17890 - lt_cv_dlopen_libs=
17891 - ;;
17892 -
17893 - cygwin*)
17894 - lt_cv_dlopen="dlopen"
17895 - lt_cv_dlopen_libs=
17896 - ;;
17897 -
17898 - darwin*)
17899 - # if libdl is installed we need to link against it
17900 - echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
17901 -echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
17902 -if test "${ac_cv_lib_dl_dlopen+set}" = set; then
17903 - echo $ECHO_N "(cached) $ECHO_C" >&6
17904 -else
17905 - ac_check_lib_save_LIBS=$LIBS
17906 -LIBS="-ldl $LIBS"
17907 -cat >conftest.$ac_ext <<_ACEOF
17908 -/* confdefs.h. */
17909 -_ACEOF
17910 -cat confdefs.h >>conftest.$ac_ext
17911 -cat >>conftest.$ac_ext <<_ACEOF
17912 -/* end confdefs.h. */
17913 -
17914 -/* Override any gcc2 internal prototype to avoid an error. */
17915 -#ifdef __cplusplus
17916 -extern "C"
17917 -#endif
17918 -/* We use char because int might match the return type of a gcc2
17919 - builtin and then its argument prototype would still apply. */
17920 -char dlopen ();
17921 -int
17922 -main ()
17923 -{
17924 -dlopen ();
17925 - ;
17926 - return 0;
17927 -}
17928 -_ACEOF
17929 -rm -f conftest.$ac_objext conftest$ac_exeext
17930 -if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17931 - (eval $ac_link) 2>conftest.er1
17932 - ac_status=$?
17933 - grep -v '^ *+' conftest.er1 >conftest.err
17934 - rm -f conftest.er1
17935 - cat conftest.err >&5
17936 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
17937 - (exit $ac_status); } &&
17938 - { ac_try='test -z "$ac_cxx_werror_flag"
17939 - || test ! -s conftest.err'
17940 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17941 - (eval $ac_try) 2>&5
17942 - ac_status=$?
17943 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
17944 - (exit $ac_status); }; } &&
17945 - { ac_try='test -s conftest$ac_exeext'
17946 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17947 - (eval $ac_try) 2>&5
17948 - ac_status=$?
17949 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
17950 - (exit $ac_status); }; }; then
17951 - ac_cv_lib_dl_dlopen=yes
17952 -else
17953 - echo "$as_me: failed program was:" >&5
17954 -sed 's/^/| /' conftest.$ac_ext >&5
17955 -
17956 -ac_cv_lib_dl_dlopen=no
17957 -fi
17958 -rm -f conftest.err conftest.$ac_objext \
17959 - conftest$ac_exeext conftest.$ac_ext
17960 -LIBS=$ac_check_lib_save_LIBS
17961 -fi
17962 -echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17963 -echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
17964 -if test $ac_cv_lib_dl_dlopen = yes; then
17965 - lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17966 -else
17967 -
17968 - lt_cv_dlopen="dyld"
17969 - lt_cv_dlopen_libs=
17970 - lt_cv_dlopen_self=yes
17971 -
17972 -fi
17973 -
17974 - ;;
17975 -
17976 - *)
17977 - echo "$as_me:$LINENO: checking for shl_load" >&5
17978 -echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
17979 -if test "${ac_cv_func_shl_load+set}" = set; then
17980 - echo $ECHO_N "(cached) $ECHO_C" >&6
17981 -else
17982 - cat >conftest.$ac_ext <<_ACEOF
17983 -/* confdefs.h. */
17984 -_ACEOF
17985 -cat confdefs.h >>conftest.$ac_ext
17986 -cat >>conftest.$ac_ext <<_ACEOF
17987 -/* end confdefs.h. */
17988 -/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
17989 - For example, HP-UX 11i <limits.h> declares gettimeofday. */
17990 -#define shl_load innocuous_shl_load
17991 -
17992 -/* System header to define __stub macros and hopefully few prototypes,
17993 - which can conflict with char shl_load (); below.
17994 - Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17995 - <limits.h> exists even on freestanding compilers. */
17996 -
17997 -#ifdef __STDC__
17998 -# include <limits.h>
17999 -#else
18000 -# include <assert.h>
18001 -#endif
18002 -
18003 -#undef shl_load
18004 -
18005 -/* Override any gcc2 internal prototype to avoid an error. */
18006 -#ifdef __cplusplus
18007 -extern "C"
18008 -{
18009 -#endif
18010 -/* We use char because int might match the return type of a gcc2
18011 - builtin and then its argument prototype would still apply. */
18012 -char shl_load ();
18013 -/* The GNU C library defines this for functions which it implements
18014 - to always fail with ENOSYS. Some functions are actually named
18015 - something starting with __ and the normal name is an alias. */
18016 -#if defined (__stub_shl_load) || defined (__stub___shl_load)
18017 -choke me
18018 -#else
18019 -char (*f) () = shl_load;
18020 -#endif
18021 -#ifdef __cplusplus
18022 -}
18023 -#endif
18024 -
18025 -int
18026 -main ()
18027 -{
18028 -return f != shl_load;
18029 - ;
18030 - return 0;
18031 -}
18032 -_ACEOF
18033 -rm -f conftest.$ac_objext conftest$ac_exeext
18034 -if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18035 - (eval $ac_link) 2>conftest.er1
18036 - ac_status=$?
18037 - grep -v '^ *+' conftest.er1 >conftest.err
18038 - rm -f conftest.er1
18039 - cat conftest.err >&5
18040 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
18041 - (exit $ac_status); } &&
18042 - { ac_try='test -z "$ac_cxx_werror_flag"
18043 - || test ! -s conftest.err'
18044 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18045 - (eval $ac_try) 2>&5
18046 - ac_status=$?
18047 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
18048 - (exit $ac_status); }; } &&
18049 - { ac_try='test -s conftest$ac_exeext'
18050 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18051 - (eval $ac_try) 2>&5
18052 - ac_status=$?
18053 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
18054 - (exit $ac_status); }; }; then
18055 - ac_cv_func_shl_load=yes
18056 -else
18057 - echo "$as_me: failed program was:" >&5
18058 -sed 's/^/| /' conftest.$ac_ext >&5
18059 -
18060 -ac_cv_func_shl_load=no
18061 -fi
18062 -rm -f conftest.err conftest.$ac_objext \
18063 - conftest$ac_exeext conftest.$ac_ext
18064 -fi
18065 -echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
18066 -echo "${ECHO_T}$ac_cv_func_shl_load" >&6
18067 -if test $ac_cv_func_shl_load = yes; then
18068 - lt_cv_dlopen="shl_load"
18069 -else
18070 - echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
18071 -echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
18072 -if test "${ac_cv_lib_dld_shl_load+set}" = set; then
18073 - echo $ECHO_N "(cached) $ECHO_C" >&6
18074 -else
18075 - ac_check_lib_save_LIBS=$LIBS
18076 -LIBS="-ldld $LIBS"
18077 -cat >conftest.$ac_ext <<_ACEOF
18078 -/* confdefs.h. */
18079 -_ACEOF
18080 -cat confdefs.h >>conftest.$ac_ext
18081 -cat >>conftest.$ac_ext <<_ACEOF
18082 -/* end confdefs.h. */
18083 -
18084 -/* Override any gcc2 internal prototype to avoid an error. */
18085 -#ifdef __cplusplus
18086 -extern "C"
18087 -#endif
18088 -/* We use char because int might match the return type of a gcc2
18089 - builtin and then its argument prototype would still apply. */
18090 -char shl_load ();
18091 -int
18092 -main ()
18093 -{
18094 -shl_load ();
18095 - ;
18096 - return 0;
18097 -}
18098 -_ACEOF
18099 -rm -f conftest.$ac_objext conftest$ac_exeext
18100 -if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18101 - (eval $ac_link) 2>conftest.er1
18102 - ac_status=$?
18103 - grep -v '^ *+' conftest.er1 >conftest.err
18104 - rm -f conftest.er1
18105 - cat conftest.err >&5
18106 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
18107 - (exit $ac_status); } &&
18108 - { ac_try='test -z "$ac_cxx_werror_flag"
18109 - || test ! -s conftest.err'
18110 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18111 - (eval $ac_try) 2>&5
18112 - ac_status=$?
18113 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
18114 - (exit $ac_status); }; } &&
18115 - { ac_try='test -s conftest$ac_exeext'
18116 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18117 - (eval $ac_try) 2>&5
18118 - ac_status=$?
18119 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
18120 - (exit $ac_status); }; }; then
18121 - ac_cv_lib_dld_shl_load=yes
18122 -else
18123 - echo "$as_me: failed program was:" >&5
18124 -sed 's/^/| /' conftest.$ac_ext >&5
18125 -
18126 -ac_cv_lib_dld_shl_load=no
18127 -fi
18128 -rm -f conftest.err conftest.$ac_objext \
18129 - conftest$ac_exeext conftest.$ac_ext
18130 -LIBS=$ac_check_lib_save_LIBS
18131 -fi
18132 -echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
18133 -echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
18134 -if test $ac_cv_lib_dld_shl_load = yes; then
18135 - lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
18136 -else
18137 - echo "$as_me:$LINENO: checking for dlopen" >&5
18138 -echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
18139 -if test "${ac_cv_func_dlopen+set}" = set; then
18140 - echo $ECHO_N "(cached) $ECHO_C" >&6
18141 -else
18142 - cat >conftest.$ac_ext <<_ACEOF
18143 -/* confdefs.h. */
18144 -_ACEOF
18145 -cat confdefs.h >>conftest.$ac_ext
18146 -cat >>conftest.$ac_ext <<_ACEOF
18147 -/* end confdefs.h. */
18148 -/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
18149 - For example, HP-UX 11i <limits.h> declares gettimeofday. */
18150 -#define dlopen innocuous_dlopen
18151 -
18152 -/* System header to define __stub macros and hopefully few prototypes,
18153 - which can conflict with char dlopen (); below.
18154 - Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18155 - <limits.h> exists even on freestanding compilers. */
18156 -
18157 -#ifdef __STDC__
18158 -# include <limits.h>
18159 -#else
18160 -# include <assert.h>
18161 -#endif
18162 -
18163 -#undef dlopen
18164 -
18165 -/* Override any gcc2 internal prototype to avoid an error. */
18166 -#ifdef __cplusplus
18167 -extern "C"
18168 -{
18169 -#endif
18170 -/* We use char because int might match the return type of a gcc2
18171 - builtin and then its argument prototype would still apply. */
18172 -char dlopen ();
18173 -/* The GNU C library defines this for functions which it implements
18174 - to always fail with ENOSYS. Some functions are actually named
18175 - something starting with __ and the normal name is an alias. */
18176 -#if defined (__stub_dlopen) || defined (__stub___dlopen)
18177 -choke me
18178 -#else
18179 -char (*f) () = dlopen;
18180 -#endif
18181 -#ifdef __cplusplus
18182 -}
18183 -#endif
18184 -
18185 -int
18186 -main ()
18187 -{
18188 -return f != dlopen;
18189 - ;
18190 - return 0;
18191 -}
18192 -_ACEOF
18193 -rm -f conftest.$ac_objext conftest$ac_exeext
18194 -if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18195 - (eval $ac_link) 2>conftest.er1
18196 - ac_status=$?
18197 - grep -v '^ *+' conftest.er1 >conftest.err
18198 - rm -f conftest.er1
18199 - cat conftest.err >&5
18200 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
18201 - (exit $ac_status); } &&
18202 - { ac_try='test -z "$ac_cxx_werror_flag"
18203 - || test ! -s conftest.err'
18204 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18205 - (eval $ac_try) 2>&5
18206 - ac_status=$?
18207 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
18208 - (exit $ac_status); }; } &&
18209 - { ac_try='test -s conftest$ac_exeext'
18210 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18211 - (eval $ac_try) 2>&5
18212 - ac_status=$?
18213 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
18214 - (exit $ac_status); }; }; then
18215 - ac_cv_func_dlopen=yes
18216 -else
18217 - echo "$as_me: failed program was:" >&5
18218 -sed 's/^/| /' conftest.$ac_ext >&5
18219 -
18220 -ac_cv_func_dlopen=no
18221 -fi
18222 -rm -f conftest.err conftest.$ac_objext \
18223 - conftest$ac_exeext conftest.$ac_ext
18224 -fi
18225 -echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
18226 -echo "${ECHO_T}$ac_cv_func_dlopen" >&6
18227 -if test $ac_cv_func_dlopen = yes; then
18228 - lt_cv_dlopen="dlopen"
18229 -else
18230 - echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
18231 -echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
18232 -if test "${ac_cv_lib_dl_dlopen+set}" = set; then
18233 - echo $ECHO_N "(cached) $ECHO_C" >&6
18234 -else
18235 - ac_check_lib_save_LIBS=$LIBS
18236 -LIBS="-ldl $LIBS"
18237 -cat >conftest.$ac_ext <<_ACEOF
18238 -/* confdefs.h. */
18239 -_ACEOF
18240 -cat confdefs.h >>conftest.$ac_ext
18241 -cat >>conftest.$ac_ext <<_ACEOF
18242 -/* end confdefs.h. */
18243 -
18244 -/* Override any gcc2 internal prototype to avoid an error. */
18245 -#ifdef __cplusplus
18246 -extern "C"
18247 -#endif
18248 -/* We use char because int might match the return type of a gcc2
18249 - builtin and then its argument prototype would still apply. */
18250 -char dlopen ();
18251 -int
18252 -main ()
18253 -{
18254 -dlopen ();
18255 - ;
18256 - return 0;
18257 -}
18258 -_ACEOF
18259 -rm -f conftest.$ac_objext conftest$ac_exeext
18260 -if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18261 - (eval $ac_link) 2>conftest.er1
18262 - ac_status=$?
18263 - grep -v '^ *+' conftest.er1 >conftest.err
18264 - rm -f conftest.er1
18265 - cat conftest.err >&5
18266 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
18267 - (exit $ac_status); } &&
18268 - { ac_try='test -z "$ac_cxx_werror_flag"
18269 - || test ! -s conftest.err'
18270 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18271 - (eval $ac_try) 2>&5
18272 - ac_status=$?
18273 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
18274 - (exit $ac_status); }; } &&
18275 - { ac_try='test -s conftest$ac_exeext'
18276 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18277 - (eval $ac_try) 2>&5
18278 - ac_status=$?
18279 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
18280 - (exit $ac_status); }; }; then
18281 - ac_cv_lib_dl_dlopen=yes
18282 -else
18283 - echo "$as_me: failed program was:" >&5
18284 -sed 's/^/| /' conftest.$ac_ext >&5
18285 -
18286 -ac_cv_lib_dl_dlopen=no
18287 -fi
18288 -rm -f conftest.err conftest.$ac_objext \
18289 - conftest$ac_exeext conftest.$ac_ext
18290 -LIBS=$ac_check_lib_save_LIBS
18291 -fi
18292 -echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
18293 -echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
18294 -if test $ac_cv_lib_dl_dlopen = yes; then
18295 - lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
18296 -else
18297 - echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
18298 -echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
18299 -if test "${ac_cv_lib_svld_dlopen+set}" = set; then
18300 - echo $ECHO_N "(cached) $ECHO_C" >&6
18301 -else
18302 - ac_check_lib_save_LIBS=$LIBS
18303 -LIBS="-lsvld $LIBS"
18304 -cat >conftest.$ac_ext <<_ACEOF
18305 -/* confdefs.h. */
18306 -_ACEOF
18307 -cat confdefs.h >>conftest.$ac_ext
18308 -cat >>conftest.$ac_ext <<_ACEOF
18309 -/* end confdefs.h. */
18310 -
18311 -/* Override any gcc2 internal prototype to avoid an error. */
18312 -#ifdef __cplusplus
18313 -extern "C"
18314 -#endif
18315 -/* We use char because int might match the return type of a gcc2
18316 - builtin and then its argument prototype would still apply. */
18317 -char dlopen ();
18318 -int
18319 -main ()
18320 -{
18321 -dlopen ();
18322 - ;
18323 - return 0;
18324 -}
18325 -_ACEOF
18326 -rm -f conftest.$ac_objext conftest$ac_exeext
18327 -if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18328 - (eval $ac_link) 2>conftest.er1
18329 - ac_status=$?
18330 - grep -v '^ *+' conftest.er1 >conftest.err
18331 - rm -f conftest.er1
18332 - cat conftest.err >&5
18333 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
18334 - (exit $ac_status); } &&
18335 - { ac_try='test -z "$ac_cxx_werror_flag"
18336 - || test ! -s conftest.err'
18337 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18338 - (eval $ac_try) 2>&5
18339 - ac_status=$?
18340 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
18341 - (exit $ac_status); }; } &&
18342 - { ac_try='test -s conftest$ac_exeext'
18343 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18344 - (eval $ac_try) 2>&5
18345 - ac_status=$?
18346 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
18347 - (exit $ac_status); }; }; then
18348 - ac_cv_lib_svld_dlopen=yes
18349 -else
18350 - echo "$as_me: failed program was:" >&5
18351 -sed 's/^/| /' conftest.$ac_ext >&5
18352 -
18353 -ac_cv_lib_svld_dlopen=no
18354 -fi
18355 -rm -f conftest.err conftest.$ac_objext \
18356 - conftest$ac_exeext conftest.$ac_ext
18357 -LIBS=$ac_check_lib_save_LIBS
18358 -fi
18359 -echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
18360 -echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
18361 -if test $ac_cv_lib_svld_dlopen = yes; then
18362 - lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
18363 -else
18364 - echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
18365 -echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
18366 -if test "${ac_cv_lib_dld_dld_link+set}" = set; then
18367 - echo $ECHO_N "(cached) $ECHO_C" >&6
18368 -else
18369 - ac_check_lib_save_LIBS=$LIBS
18370 -LIBS="-ldld $LIBS"
18371 -cat >conftest.$ac_ext <<_ACEOF
18372 -/* confdefs.h. */
18373 -_ACEOF
18374 -cat confdefs.h >>conftest.$ac_ext
18375 -cat >>conftest.$ac_ext <<_ACEOF
18376 -/* end confdefs.h. */
18377 -
18378 -/* Override any gcc2 internal prototype to avoid an error. */
18379 -#ifdef __cplusplus
18380 -extern "C"
18381 -#endif
18382 -/* We use char because int might match the return type of a gcc2
18383 - builtin and then its argument prototype would still apply. */
18384 -char dld_link ();
18385 -int
18386 -main ()
18387 -{
18388 -dld_link ();
18389 - ;
18390 - return 0;
18391 -}
18392 -_ACEOF
18393 -rm -f conftest.$ac_objext conftest$ac_exeext
18394 -if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18395 - (eval $ac_link) 2>conftest.er1
18396 - ac_status=$?
18397 - grep -v '^ *+' conftest.er1 >conftest.err
18398 - rm -f conftest.er1
18399 - cat conftest.err >&5
18400 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
18401 - (exit $ac_status); } &&
18402 - { ac_try='test -z "$ac_cxx_werror_flag"
18403 - || test ! -s conftest.err'
18404 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18405 - (eval $ac_try) 2>&5
18406 - ac_status=$?
18407 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
18408 - (exit $ac_status); }; } &&
18409 - { ac_try='test -s conftest$ac_exeext'
18410 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18411 - (eval $ac_try) 2>&5
18412 - ac_status=$?
18413 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
18414 - (exit $ac_status); }; }; then
18415 - ac_cv_lib_dld_dld_link=yes
18416 -else
18417 - echo "$as_me: failed program was:" >&5
18418 -sed 's/^/| /' conftest.$ac_ext >&5
18419 -
18420 -ac_cv_lib_dld_dld_link=no
18421 -fi
18422 -rm -f conftest.err conftest.$ac_objext \
18423 - conftest$ac_exeext conftest.$ac_ext
18424 -LIBS=$ac_check_lib_save_LIBS
18425 -fi
18426 -echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
18427 -echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
18428 -if test $ac_cv_lib_dld_dld_link = yes; then
18429 - lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
18430 -fi
18431 -
18432 -
18433 -fi
18434 -
18435 -
18436 -fi
18437 -
18438 -
18439 -fi
18440 -
18441 -
18442 -fi
18443 -
18444 -
18445 -fi
18446 -
18447 - ;;
18448 - esac
18449 -
18450 - if test "x$lt_cv_dlopen" != xno; then
18451 - enable_dlopen=yes
18452 - else
18453 - enable_dlopen=no
18454 - fi
18455 -
18456 - case $lt_cv_dlopen in
18457 - dlopen)
18458 - save_CPPFLAGS="$CPPFLAGS"
18459 - test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
18460 -
18461 - save_LDFLAGS="$LDFLAGS"
18462 - eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
18463 -
18464 - save_LIBS="$LIBS"
18465 - LIBS="$lt_cv_dlopen_libs $LIBS"
18466 -
18467 - echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
18468 -echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
18469 -if test "${lt_cv_dlopen_self+set}" = set; then
18470 - echo $ECHO_N "(cached) $ECHO_C" >&6
18471 -else
18472 - if test "$cross_compiling" = yes; then :
18473 - lt_cv_dlopen_self=cross
18474 -else
18475 - lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
18476 - lt_status=$lt_dlunknown
18477 - cat > conftest.$ac_ext <<EOF
18478 -#line 12645 "configure"
18479 -#include "confdefs.h"
18480 -
18481 -#if HAVE_DLFCN_H
18482 -#include <dlfcn.h>
18483 -#endif
18484 -
18485 -#include <stdio.h>
18486 -
18487 -#ifdef RTLD_GLOBAL
18488 -# define LT_DLGLOBAL RTLD_GLOBAL
18489 -#else
18490 -# ifdef DL_GLOBAL
18491 -# define LT_DLGLOBAL DL_GLOBAL
18492 -# else
18493 -# define LT_DLGLOBAL 0
18494 -# endif
18495 -#endif
18496 -
18497 -/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18498 - find out it does not work in some platform. */
18499 -#ifndef LT_DLLAZY_OR_NOW
18500 -# ifdef RTLD_LAZY
18501 -# define LT_DLLAZY_OR_NOW RTLD_LAZY
18502 -# else
18503 -# ifdef DL_LAZY
18504 -# define LT_DLLAZY_OR_NOW DL_LAZY
18505 -# else
18506 -# ifdef RTLD_NOW
18507 -# define LT_DLLAZY_OR_NOW RTLD_NOW
18508 -# else
18509 -# ifdef DL_NOW
18510 -# define LT_DLLAZY_OR_NOW DL_NOW
18511 -# else
18512 -# define LT_DLLAZY_OR_NOW 0
18513 -# endif
18514 -# endif
18515 -# endif
18516 -# endif
18517 -#endif
18518 -
18519 -#ifdef __cplusplus
18520 -extern "C" void exit (int);
18521 -#endif
18522 -
18523 -void fnord() { int i=42;}
18524 -int main ()
18525 -{
18526 - void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18527 - int status = $lt_dlunknown;
18528 -
18529 - if (self)
18530 - {
18531 - if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
18532 - else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18533 - /* dlclose (self); */
18534 - }
18535 -
18536 - exit (status);
18537 -}
18538 -EOF
18539 - if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18540 - (eval $ac_link) 2>&5
18541 - ac_status=$?
18542 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
18543 - (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
18544 - (./conftest; exit; ) >&5 2>/dev/null
18545 - lt_status=$?
18546 - case x$lt_status in
18547 - x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
18548 - x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
18549 - x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
18550 - esac
18551 - else :
18552 - # compilation failed
18553 - lt_cv_dlopen_self=no
18554 - fi
18555 -fi
18556 -rm -fr conftest*
18557 -
18558 -
18559 -fi
18560 -echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
18561 -echo "${ECHO_T}$lt_cv_dlopen_self" >&6
18562 -
18563 - if test "x$lt_cv_dlopen_self" = xyes; then
18564 - LDFLAGS="$LDFLAGS $link_static_flag"
18565 - echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
18566 -echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
18567 -if test "${lt_cv_dlopen_self_static+set}" = set; then
18568 - echo $ECHO_N "(cached) $ECHO_C" >&6
18569 -else
18570 - if test "$cross_compiling" = yes; then :
18571 - lt_cv_dlopen_self_static=cross
18572 -else
18573 - lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
18574 - lt_status=$lt_dlunknown
18575 - cat > conftest.$ac_ext <<EOF
18576 -#line 12743 "configure"
18577 -#include "confdefs.h"
18578 -
18579 -#if HAVE_DLFCN_H
18580 -#include <dlfcn.h>
18581 -#endif
18582 -
18583 -#include <stdio.h>
18584 -
18585 -#ifdef RTLD_GLOBAL
18586 -# define LT_DLGLOBAL RTLD_GLOBAL
18587 -#else
18588 -# ifdef DL_GLOBAL
18589 -# define LT_DLGLOBAL DL_GLOBAL
18590 -# else
18591 -# define LT_DLGLOBAL 0
18592 -# endif
18593 -#endif
18594 -
18595 -/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18596 - find out it does not work in some platform. */
18597 -#ifndef LT_DLLAZY_OR_NOW
18598 -# ifdef RTLD_LAZY
18599 -# define LT_DLLAZY_OR_NOW RTLD_LAZY
18600 -# else
18601 -# ifdef DL_LAZY
18602 -# define LT_DLLAZY_OR_NOW DL_LAZY
18603 -# else
18604 -# ifdef RTLD_NOW
18605 -# define LT_DLLAZY_OR_NOW RTLD_NOW
18606 -# else
18607 -# ifdef DL_NOW
18608 -# define LT_DLLAZY_OR_NOW DL_NOW
18609 -# else
18610 -# define LT_DLLAZY_OR_NOW 0
18611 -# endif
18612 -# endif
18613 -# endif
18614 -# endif
18615 -#endif
18616 -
18617 -#ifdef __cplusplus
18618 -extern "C" void exit (int);
18619 -#endif
18620 -
18621 -void fnord() { int i=42;}
18622 -int main ()
18623 -{
18624 - void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18625 - int status = $lt_dlunknown;
18626 -
18627 - if (self)
18628 - {
18629 - if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
18630 - else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18631 - /* dlclose (self); */
18632 - }
18633 -
18634 - exit (status);
18635 -}
18636 -EOF
18637 - if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18638 - (eval $ac_link) 2>&5
18639 - ac_status=$?
18640 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
18641 - (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
18642 - (./conftest; exit; ) >&5 2>/dev/null
18643 - lt_status=$?
18644 - case x$lt_status in
18645 - x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
18646 - x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
18647 - x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
18648 - esac
18649 - else :
18650 - # compilation failed
18651 - lt_cv_dlopen_self_static=no
18652 - fi
18653 -fi
18654 -rm -fr conftest*
18655 -
18656 -
18657 -fi
18658 -echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
18659 -echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
18660 - fi
18661 -
18662 - CPPFLAGS="$save_CPPFLAGS"
18663 - LDFLAGS="$save_LDFLAGS"
18664 - LIBS="$save_LIBS"
18665 - ;;
18666 - esac
18667 -
18668 - case $lt_cv_dlopen_self in
18669 - yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
18670 - *) enable_dlopen_self=unknown ;;
18671 - esac
18672 -
18673 - case $lt_cv_dlopen_self_static in
18674 - yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
18675 - *) enable_dlopen_self_static=unknown ;;
18676 - esac
18677 -fi
18678 -
18679 -
18680 -# The else clause should only fire when bootstrapping the
18681 -# libtool distribution, otherwise you forgot to ship ltmain.sh
18682 -# with your package, and you will get complaints that there are
18683 -# no rules to generate ltmain.sh.
18684 -if test -f "$ltmain"; then
18685 - # See if we are running on zsh, and set the options which allow our commands through
18686 - # without removal of \ escapes.
18687 - if test -n "${ZSH_VERSION+set}" ; then
18688 - setopt NO_GLOB_SUBST
18689 - fi
18690 - # Now quote all the things that may contain metacharacters while being
18691 - # careful not to overquote the AC_SUBSTed values. We take copies of the
18692 - # variables and quote the copies for generation of the libtool script.
18693 - for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
18694 - SED SHELL STRIP \
18695 - libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18696 - old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18697 - deplibs_check_method reload_flag reload_cmds need_locks \
18698 - lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18699 - lt_cv_sys_global_symbol_to_c_name_address \
18700 - sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18701 - old_postinstall_cmds old_postuninstall_cmds \
18702 - compiler_CXX \
18703 - CC_CXX \
18704 - LD_CXX \
18705 - lt_prog_compiler_wl_CXX \
18706 - lt_prog_compiler_pic_CXX \
18707 - lt_prog_compiler_static_CXX \
18708 - lt_prog_compiler_no_builtin_flag_CXX \
18709 - export_dynamic_flag_spec_CXX \
18710 - thread_safe_flag_spec_CXX \
18711 - whole_archive_flag_spec_CXX \
18712 - enable_shared_with_static_runtimes_CXX \
18713 - old_archive_cmds_CXX \
18714 - old_archive_from_new_cmds_CXX \
18715 - predep_objects_CXX \
18716 - postdep_objects_CXX \
18717 - predeps_CXX \
18718 - postdeps_CXX \
18719 - compiler_lib_search_path_CXX \
18720 - archive_cmds_CXX \
18721 - archive_expsym_cmds_CXX \
18722 - postinstall_cmds_CXX \
18723 - postuninstall_cmds_CXX \
18724 - old_archive_from_expsyms_cmds_CXX \
18725 - allow_undefined_flag_CXX \
18726 - no_undefined_flag_CXX \
18727 - export_symbols_cmds_CXX \
18728 - hardcode_libdir_flag_spec_CXX \
18729 - hardcode_libdir_flag_spec_ld_CXX \
18730 - hardcode_libdir_separator_CXX \
18731 - hardcode_automatic_CXX \
18732 - module_cmds_CXX \
18733 - module_expsym_cmds_CXX \
18734 - lt_cv_prog_compiler_c_o_CXX \
18735 - exclude_expsyms_CXX \
18736 - include_expsyms_CXX; do
18737 -
18738 - case $var in
18739 - old_archive_cmds_CXX | \
18740 - old_archive_from_new_cmds_CXX | \
18741 - archive_cmds_CXX | \
18742 - archive_expsym_cmds_CXX | \
18743 - module_cmds_CXX | \
18744 - module_expsym_cmds_CXX | \
18745 - old_archive_from_expsyms_cmds_CXX | \
18746 - export_symbols_cmds_CXX | \
18747 - extract_expsyms_cmds | reload_cmds | finish_cmds | \
18748 - postinstall_cmds | postuninstall_cmds | \
18749 - old_postinstall_cmds | old_postuninstall_cmds | \
18750 - sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18751 - # Double-quote double-evaled strings.
18752 - eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18753 - ;;
18754 - *)
18755 - eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18756 - ;;
18757 - esac
18758 - done
18759 -
18760 - case $lt_echo in
18761 - *'\$0 --fallback-echo"')
18762 - lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18763 - ;;
18764 - esac
18765 -
18766 -cfgfile="$ofile"
18767 -
18768 - cat <<__EOF__ >> "$cfgfile"
18769 -# ### BEGIN LIBTOOL TAG CONFIG: $tagname
18770 -
18771 -# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18772 -
18773 -# Shell to use when invoking shell scripts.
18774 -SHELL=$lt_SHELL
18775 -
18776 -# Whether or not to build shared libraries.
18777 -build_libtool_libs=$enable_shared
18778 -
18779 -# Whether or not to build static libraries.
18780 -build_old_libs=$enable_static
18781 -
18782 -# Whether or not to add -lc for building shared libraries.
18783 -build_libtool_need_lc=$archive_cmds_need_lc_CXX
18784 -
18785 -# Whether or not to disallow shared libs when runtime libs are static
18786 -allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
18787 -
18788 -# Whether or not to optimize for fast installation.
18789 -fast_install=$enable_fast_install
18790 -
18791 -# The host system.
18792 -host_alias=$host_alias
18793 -host=$host
18794 -host_os=$host_os
18795 -
18796 -# The build system.
18797 -build_alias=$build_alias
18798 -build=$build
18799 -build_os=$build_os
18800 -
18801 -# An echo program that does not interpret backslashes.
18802 -echo=$lt_echo
18803 -
18804 -# The archiver.
18805 -AR=$lt_AR
18806 -AR_FLAGS=$lt_AR_FLAGS
18807 -
18808 -# A C compiler.
18809 -LTCC=$lt_LTCC
18810 -
18811 -# A language-specific compiler.
18812 -CC=$lt_compiler_CXX
18813 -
18814 -# Is the compiler the GNU C compiler?
18815 -with_gcc=$GCC_CXX
18816 -
18817 -# An ERE matcher.
18818 -EGREP=$lt_EGREP
18819 -
18820 -# The linker used to build libraries.
18821 -LD=$lt_LD_CXX
18822 -
18823 -# Whether we need hard or soft links.
18824 -LN_S=$lt_LN_S
18825 -
18826 -# A BSD-compatible nm program.
18827 -NM=$lt_NM
18828 -
18829 -# A symbol stripping program
18830 -STRIP=$lt_STRIP
18831 -
18832 -# Used to examine libraries when file_magic_cmd begins "file"
18833 -MAGIC_CMD=$MAGIC_CMD
18834 -
18835 -# Used on cygwin: DLL creation program.
18836 -DLLTOOL="$DLLTOOL"
18837 -
18838 -# Used on cygwin: object dumper.
18839 -OBJDUMP="$OBJDUMP"
18840 -
18841 -# Used on cygwin: assembler.
18842 -AS="$AS"
18843 -
18844 -# The name of the directory that contains temporary libtool files.
18845 -objdir=$objdir
18846 -
18847 -# How to create reloadable object files.
18848 -reload_flag=$lt_reload_flag
18849 -reload_cmds=$lt_reload_cmds
18850 -
18851 -# How to pass a linker flag through the compiler.
18852 -wl=$lt_lt_prog_compiler_wl_CXX
18853 -
18854 -# Object file suffix (normally "o").
18855 -objext="$ac_objext"
18856 -
18857 -# Old archive suffix (normally "a").
18858 -libext="$libext"
18859 -
18860 -# Shared library suffix (normally ".so").
18861 -shrext_cmds='$shrext_cmds'
18862 -
18863 -# Executable file suffix (normally "").
18864 -exeext="$exeext"
18865 -
18866 -# Additional compiler flags for building library objects.
18867 -pic_flag=$lt_lt_prog_compiler_pic_CXX
18868 -pic_mode=$pic_mode
18869 -
18870 -# What is the maximum length of a command?
18871 -max_cmd_len=$lt_cv_sys_max_cmd_len
18872 -
18873 -# Does compiler simultaneously support -c and -o options?
18874 -compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
18875 -
18876 -# Must we lock files when doing compilation?
18877 -need_locks=$lt_need_locks
18878 -
18879 -# Do we need the lib prefix for modules?
18880 -need_lib_prefix=$need_lib_prefix
18881 -
18882 -# Do we need a version for libraries?
18883 -need_version=$need_version
18884 -
18885 -# Whether dlopen is supported.
18886 -dlopen_support=$enable_dlopen
18887 -
18888 -# Whether dlopen of programs is supported.
18889 -dlopen_self=$enable_dlopen_self
18890 -
18891 -# Whether dlopen of statically linked programs is supported.
18892 -dlopen_self_static=$enable_dlopen_self_static
18893 -
18894 -# Compiler flag to prevent dynamic linking.
18895 -link_static_flag=$lt_lt_prog_compiler_static_CXX
18896 -
18897 -# Compiler flag to turn off builtin functions.
18898 -no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
18899 -
18900 -# Compiler flag to allow reflexive dlopens.
18901 -export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
18902 -
18903 -# Compiler flag to generate shared objects directly from archives.
18904 -whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
18905 -
18906 -# Compiler flag to generate thread-safe objects.
18907 -thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
18908 -
18909 -# Library versioning type.
18910 -version_type=$version_type
18911 -
18912 -# Format of library name prefix.
18913 -libname_spec=$lt_libname_spec
18914 -
18915 -# List of archive names. First name is the real one, the rest are links.
18916 -# The last name is the one that the linker finds with -lNAME.
18917 -library_names_spec=$lt_library_names_spec
18918 -
18919 -# The coded name of the library, if different from the real name.
18920 -soname_spec=$lt_soname_spec
18921 -
18922 -# Commands used to build and install an old-style archive.
18923 -RANLIB=$lt_RANLIB
18924 -old_archive_cmds=$lt_old_archive_cmds_CXX
18925 -old_postinstall_cmds=$lt_old_postinstall_cmds
18926 -old_postuninstall_cmds=$lt_old_postuninstall_cmds
18927 -
18928 -# Create an old-style archive from a shared archive.
18929 -old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
18930 -
18931 -# Create a temporary old-style archive to link instead of a shared archive.
18932 -old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
18933 -
18934 -# Commands used to build and install a shared archive.
18935 -archive_cmds=$lt_archive_cmds_CXX
18936 -archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
18937 -postinstall_cmds=$lt_postinstall_cmds
18938 -postuninstall_cmds=$lt_postuninstall_cmds
18939 -
18940 -# Commands used to build a loadable module (assumed same as above if empty)
18941 -module_cmds=$lt_module_cmds_CXX
18942 -module_expsym_cmds=$lt_module_expsym_cmds_CXX
18943 -
18944 -# Commands to strip libraries.
18945 -old_striplib=$lt_old_striplib
18946 -striplib=$lt_striplib
18947 -
18948 -# Dependencies to place before the objects being linked to create a
18949 -# shared library.
18950 -predep_objects=$lt_predep_objects_CXX
18951 -
18952 -# Dependencies to place after the objects being linked to create a
18953 -# shared library.
18954 -postdep_objects=$lt_postdep_objects_CXX
18955 -
18956 -# Dependencies to place before the objects being linked to create a
18957 -# shared library.
18958 -predeps=$lt_predeps_CXX
18959 -
18960 -# Dependencies to place after the objects being linked to create a
18961 -# shared library.
18962 -postdeps=$lt_postdeps_CXX
18963 -
18964 -# The library search path used internally by the compiler when linking
18965 -# a shared library.
18966 -compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
18967 -
18968 -# Method to check whether dependent libraries are shared objects.
18969 -deplibs_check_method=$lt_deplibs_check_method
18970 -
18971 -# Command to use when deplibs_check_method == file_magic.
18972 -file_magic_cmd=$lt_file_magic_cmd
18973 -
18974 -# Flag that allows shared libraries with undefined symbols to be built.
18975 -allow_undefined_flag=$lt_allow_undefined_flag_CXX
18976 -
18977 -# Flag that forces no undefined symbols.
18978 -no_undefined_flag=$lt_no_undefined_flag_CXX
18979 -
18980 -# Commands used to finish a libtool library installation in a directory.
18981 -finish_cmds=$lt_finish_cmds
18982 -
18983 -# Same as above, but a single script fragment to be evaled but not shown.
18984 -finish_eval=$lt_finish_eval
18985 -
18986 -# Take the output of nm and produce a listing of raw symbols and C names.
18987 -global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18988 -
18989 -# Transform the output of nm in a proper C declaration
18990 -global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18991 -
18992 -# Transform the output of nm in a C name address pair
18993 -global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18994 -
18995 -# This is the shared library runtime path variable.
18996 -runpath_var=$runpath_var
18997 -
18998 -# This is the shared library path variable.
18999 -shlibpath_var=$shlibpath_var
19000 -
19001 -# Is shlibpath searched before the hard-coded library search path?
19002 -shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19003 -
19004 -# How to hardcode a shared library path into an executable.
19005 -hardcode_action=$hardcode_action_CXX
19006 -
19007 -# Whether we should hardcode library paths into libraries.
19008 -hardcode_into_libs=$hardcode_into_libs
19009 -
19010 -# Flag to hardcode \$libdir into a binary during linking.
19011 -# This must work even if \$libdir does not exist.
19012 -hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
19013 -
19014 -# If ld is used when linking, flag to hardcode \$libdir into
19015 -# a binary during linking. This must work even if \$libdir does
19016 -# not exist.
19017 -hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
19018 -
19019 -# Whether we need a single -rpath flag with a separated argument.
19020 -hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
19021 -
19022 -# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19023 -# resulting binary.
19024 -hardcode_direct=$hardcode_direct_CXX
19025 -
19026 -# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19027 -# resulting binary.
19028 -hardcode_minus_L=$hardcode_minus_L_CXX
19029 -
19030 -# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19031 -# the resulting binary.
19032 -hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
19033 -
19034 -# Set to yes if building a shared library automatically hardcodes DIR into the library
19035 -# and all subsequent libraries and executables linked against it.
19036 -hardcode_automatic=$hardcode_automatic_CXX
19037 -
19038 -# Variables whose values should be saved in libtool wrapper scripts and
19039 -# restored at relink time.
19040 -variables_saved_for_relink="$variables_saved_for_relink"
19041 -
19042 -# Whether libtool must link a program against all its dependency libraries.
19043 -link_all_deplibs=$link_all_deplibs_CXX
19044 -
19045 -# Compile-time system search path for libraries
19046 -sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19047 -
19048 -# Run-time system search path for libraries
19049 -sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19050 -
19051 -# Fix the shell variable \$srcfile for the compiler.
19052 -fix_srcfile_path="$fix_srcfile_path_CXX"
19053 -
19054 -# Set to yes if exported symbols are required.
19055 -always_export_symbols=$always_export_symbols_CXX
19056 -
19057 -# The commands to list exported symbols.
19058 -export_symbols_cmds=$lt_export_symbols_cmds_CXX
19059 -
19060 -# The commands to extract the exported symbol list from a shared archive.
19061 -extract_expsyms_cmds=$lt_extract_expsyms_cmds
19062 -
19063 -# Symbols that should not be listed in the preloaded symbols.
19064 -exclude_expsyms=$lt_exclude_expsyms_CXX
19065 -
19066 -# Symbols that must always be exported.
19067 -include_expsyms=$lt_include_expsyms_CXX
19068 -
19069 -# ### END LIBTOOL TAG CONFIG: $tagname
19070 -
19071 -__EOF__
19072 -
19073 -
19074 -else
19075 - # If there is no Makefile yet, we rely on a make rule to execute
19076 - # `config.status --recheck' to rerun these tests and create the
19077 - # libtool script then.
19078 - ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19079 - if test -f "$ltmain_in"; then
19080 - test -f Makefile && make "$ltmain"
19081 - fi
19082 -fi
19083 -
19084 -
19085 -ac_ext=c
19086 -ac_cpp='$CPP $CPPFLAGS'
19087 -ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19088 -ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19089 -ac_compiler_gnu=$ac_cv_c_compiler_gnu
19090 -
19091 -CC=$lt_save_CC
19092 -LDCXX=$LD
19093 -LD=$lt_save_LD
19094 -GCC=$lt_save_GCC
19095 -with_gnu_ldcxx=$with_gnu_ld
19096 -with_gnu_ld=$lt_save_with_gnu_ld
19097 -lt_cv_path_LDCXX=$lt_cv_path_LD
19098 -lt_cv_path_LD=$lt_save_path_LD
19099 -lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
19100 -lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
19101 -
19102 - else
19103 - tagname=""
19104 - fi
19105 - ;;
19106 -
19107 - F77)
19108 - if test -n "$F77" && test "X$F77" != "Xno"; then
19109 -
19110 -ac_ext=f
19111 -ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
19112 -ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19113 -ac_compiler_gnu=$ac_cv_f77_compiler_gnu
19114 -
19115 -
19116 -archive_cmds_need_lc_F77=no
19117 -allow_undefined_flag_F77=
19118 -always_export_symbols_F77=no
19119 -archive_expsym_cmds_F77=
19120 -export_dynamic_flag_spec_F77=
19121 -hardcode_direct_F77=no
19122 -hardcode_libdir_flag_spec_F77=
19123 -hardcode_libdir_flag_spec_ld_F77=
19124 -hardcode_libdir_separator_F77=
19125 -hardcode_minus_L_F77=no
19126 -hardcode_automatic_F77=no
19127 -module_cmds_F77=
19128 -module_expsym_cmds_F77=
19129 -link_all_deplibs_F77=unknown
19130 -old_archive_cmds_F77=$old_archive_cmds
19131 -no_undefined_flag_F77=
19132 -whole_archive_flag_spec_F77=
19133 -enable_shared_with_static_runtimes_F77=no
19134 -
19135 -# Source file extension for f77 test sources.
19136 -ac_ext=f
19137 -
19138 -# Object file extension for compiled f77 test sources.
19139 -objext=o
19140 -objext_F77=$objext
19141 -
19142 -# Code to be used in simple compile tests
19143 -lt_simple_compile_test_code=" subroutine t\n return\n end\n"
19144 -
19145 -# Code to be used in simple link tests
19146 -lt_simple_link_test_code=" program t\n end\n"
19147 -
19148 -# ltmain only uses $CC for tagged configurations so make sure $CC is set.
19149 -
19150 -# If no C compiler was specified, use CC.
19151 -LTCC=${LTCC-"$CC"}
19152 -
19153 -# Allow CC to be a program name with arguments.
19154 -compiler=$CC
19155 -
19156 -
19157 -# save warnings/boilerplate of simple test code
19158 -ac_outfile=conftest.$ac_objext
19159 -printf "$lt_simple_compile_test_code" >conftest.$ac_ext
19160 -eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
19161 -_lt_compiler_boilerplate=`cat conftest.err`
19162 -$rm conftest*
19163 -
19164 -ac_outfile=conftest.$ac_objext
19165 -printf "$lt_simple_link_test_code" >conftest.$ac_ext
19166 -eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
19167 -_lt_linker_boilerplate=`cat conftest.err`
19168 -$rm conftest*
19169 -
19170 -
19171 -# Allow CC to be a program name with arguments.
19172 -lt_save_CC="$CC"
19173 -CC=${F77-"f77"}
19174 -compiler=$CC
19175 -compiler_F77=$CC
19176 -for cc_temp in $compiler""; do
19177 - case $cc_temp in
19178 - compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
19179 - distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
19180 - \-*) ;;
19181 - *) break;;
19182 - esac
19183 -done
19184 -cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
19185 -
19186 -
19187 -echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
19188 -echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
19189 -echo "$as_me:$LINENO: result: $can_build_shared" >&5
19190 -echo "${ECHO_T}$can_build_shared" >&6
19191 -
19192 -echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
19193 -echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
19194 -test "$can_build_shared" = "no" && enable_shared=no
19195 -
19196 -# On AIX, shared libraries and static libraries use the same namespace, and
19197 -# are all built from PIC.
19198 -case $host_os in
19199 -aix3*)
19200 - test "$enable_shared" = yes && enable_static=no
19201 - if test -n "$RANLIB"; then
19202 - archive_cmds="$archive_cmds~\$RANLIB \$lib"
19203 - postinstall_cmds='$RANLIB $lib'
19204 - fi
19205 - ;;
19206 -aix4* | aix5*)
19207 - if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
19208 - test "$enable_shared" = yes && enable_static=no
19209 - fi
19210 - ;;
19211 -esac
19212 -echo "$as_me:$LINENO: result: $enable_shared" >&5
19213 -echo "${ECHO_T}$enable_shared" >&6
19214 -
19215 -echo "$as_me:$LINENO: checking whether to build static libraries" >&5
19216 -echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
19217 -# Make sure either enable_shared or enable_static is yes.
19218 -test "$enable_shared" = yes || enable_static=yes
19219 -echo "$as_me:$LINENO: result: $enable_static" >&5
19220 -echo "${ECHO_T}$enable_static" >&6
19221 -
19222 -test "$ld_shlibs_F77" = no && can_build_shared=no
19223 -
19224 -GCC_F77="$G77"
19225 -LD_F77="$LD"
19226 -
19227 -lt_prog_compiler_wl_F77=
19228 -lt_prog_compiler_pic_F77=
19229 -lt_prog_compiler_static_F77=
19230 -
19231 -echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
19232 -echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
19233 -
19234 - if test "$GCC" = yes; then
19235 - lt_prog_compiler_wl_F77='-Wl,'
19236 - lt_prog_compiler_static_F77='-static'
19237 -
19238 - case $host_os in
19239 - aix*)
19240 - # All AIX code is PIC.
19241 - if test "$host_cpu" = ia64; then
19242 - # AIX 5 now supports IA64 processor
19243 - lt_prog_compiler_static_F77='-Bstatic'
19244 - fi
19245 - ;;
19246 -
19247 - amigaos*)
19248 - # FIXME: we need at least 68020 code to build shared libraries, but
19249 - # adding the `-m68020' flag to GCC prevents building anything better,
19250 - # like `-m68040'.
19251 - lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
19252 - ;;
19253 -
19254 - beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
19255 - # PIC is the default for these OSes.
19256 - ;;
19257 -
19258 - mingw* | pw32* | os2*)
19259 - # This hack is so that the source file can tell whether it is being
19260 - # built for inclusion in a dll (and should export symbols for example).
19261 - lt_prog_compiler_pic_F77='-DDLL_EXPORT'
19262 - ;;
19263 -
19264 - darwin* | rhapsody*)
19265 - # PIC is the default on this platform
19266 - # Common symbols not allowed in MH_DYLIB files
19267 - lt_prog_compiler_pic_F77='-fno-common'
19268 - ;;
19269 -
19270 - msdosdjgpp*)
19271 - # Just because we use GCC doesn't mean we suddenly get shared libraries
19272 - # on systems that don't support them.
19273 - lt_prog_compiler_can_build_shared_F77=no
19274 - enable_shared=no
19275 - ;;
19276 -
19277 - sysv4*MP*)
19278 - if test -d /usr/nec; then
19279 - lt_prog_compiler_pic_F77=-Kconform_pic
19280 - fi
19281 - ;;
19282 -
19283 - hpux*)
19284 - # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
19285 - # not for PA HP-UX.
19286 - case $host_cpu in
19287 - hppa*64*|ia64*)
19288 - # +Z the default
19289 - ;;
19290 - *)
19291 - lt_prog_compiler_pic_F77='-fPIC'
19292 - ;;
19293 - esac
19294 - ;;
19295 -
19296 - *)
19297 - lt_prog_compiler_pic_F77='-fPIC'
19298 - ;;
19299 - esac
19300 - else
19301 - # PORTME Check for flag to pass linker flags through the system compiler.
19302 - case $host_os in
19303 - aix*)
19304 - lt_prog_compiler_wl_F77='-Wl,'
19305 - if test "$host_cpu" = ia64; then
19306 - # AIX 5 now supports IA64 processor
19307 - lt_prog_compiler_static_F77='-Bstatic'
19308 - else
19309 - lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
19310 - fi
19311 - ;;
19312 - darwin*)
19313 - # PIC is the default on this platform
19314 - # Common symbols not allowed in MH_DYLIB files
19315 - case $cc_basename in
19316 - xlc*)
19317 - lt_prog_compiler_pic_F77='-qnocommon'
19318 - lt_prog_compiler_wl_F77='-Wl,'
19319 - ;;
19320 - esac
19321 - ;;
19322 -
19323 - mingw* | pw32* | os2*)
19324 - # This hack is so that the source file can tell whether it is being
19325 - # built for inclusion in a dll (and should export symbols for example).
19326 - lt_prog_compiler_pic_F77='-DDLL_EXPORT'
19327 - ;;
19328 -
19329 - hpux9* | hpux10* | hpux11*)
19330 - lt_prog_compiler_wl_F77='-Wl,'
19331 - # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
19332 - # not for PA HP-UX.
19333 - case $host_cpu in
19334 - hppa*64*|ia64*)
19335 - # +Z the default
19336 - ;;
19337 - *)
19338 - lt_prog_compiler_pic_F77='+Z'
19339 - ;;
19340 - esac
19341 - # Is there a better lt_prog_compiler_static that works with the bundled CC?
19342 - lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
19343 - ;;
19344 -
19345 - irix5* | irix6* | nonstopux*)
19346 - lt_prog_compiler_wl_F77='-Wl,'
19347 - # PIC (with -KPIC) is the default.
19348 - lt_prog_compiler_static_F77='-non_shared'
19349 - ;;
19350 -
19351 - newsos6)
19352 - lt_prog_compiler_pic_F77='-KPIC'
19353 - lt_prog_compiler_static_F77='-Bstatic'
19354 - ;;
19355 -
19356 - linux*)
19357 - case $cc_basename in
19358 - icc* | ecc*)
19359 - lt_prog_compiler_wl_F77='-Wl,'
19360 - lt_prog_compiler_pic_F77='-KPIC'
19361 - lt_prog_compiler_static_F77='-static'
19362 - ;;
19363 - pgcc* | pgf77* | pgf90* | pgf95*)
19364 - # Portland Group compilers (*not* the Pentium gcc compiler,
19365 - # which looks to be a dead project)
19366 - lt_prog_compiler_wl_F77='-Wl,'
19367 - lt_prog_compiler_pic_F77='-fpic'
19368 - lt_prog_compiler_static_F77='-Bstatic'
19369 - ;;
19370 - ccc*)
19371 - lt_prog_compiler_wl_F77='-Wl,'
19372 - # All Alpha code is PIC.
19373 - lt_prog_compiler_static_F77='-non_shared'
19374 - ;;
19375 - esac
19376 - ;;
19377 -
19378 - osf3* | osf4* | osf5*)
19379 - lt_prog_compiler_wl_F77='-Wl,'
19380 - # All OSF/1 code is PIC.
19381 - lt_prog_compiler_static_F77='-non_shared'
19382 - ;;
19383 -
19384 - sco3.2v5*)
19385 - lt_prog_compiler_pic_F77='-Kpic'
19386 - lt_prog_compiler_static_F77='-dn'
19387 - ;;
19388 -
19389 - solaris*)
19390 - lt_prog_compiler_pic_F77='-KPIC'
19391 - lt_prog_compiler_static_F77='-Bstatic'
19392 - case $cc_basename in
19393 - f77* | f90* | f95*)
19394 - lt_prog_compiler_wl_F77='-Qoption ld ';;
19395 - *)
19396 - lt_prog_compiler_wl_F77='-Wl,';;
19397 - esac
19398 - ;;
19399 -
19400 - sunos4*)
19401 - lt_prog_compiler_wl_F77='-Qoption ld '
19402 - lt_prog_compiler_pic_F77='-PIC'
19403 - lt_prog_compiler_static_F77='-Bstatic'
19404 - ;;
19405 -
19406 - sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
19407 - lt_prog_compiler_wl_F77='-Wl,'
19408 - lt_prog_compiler_pic_F77='-KPIC'
19409 - lt_prog_compiler_static_F77='-Bstatic'
19410 - ;;
19411 -
19412 - sysv4*MP*)
19413 - if test -d /usr/nec ;then
19414 - lt_prog_compiler_pic_F77='-Kconform_pic'
19415 - lt_prog_compiler_static_F77='-Bstatic'
19416 - fi
19417 - ;;
19418 -
19419 - unicos*)
19420 - lt_prog_compiler_wl_F77='-Wl,'
19421 - lt_prog_compiler_can_build_shared_F77=no
19422 - ;;
19423 -
19424 - uts4*)
19425 - lt_prog_compiler_pic_F77='-pic'
19426 - lt_prog_compiler_static_F77='-Bstatic'
19427 - ;;
19428 -
19429 - *)
19430 - lt_prog_compiler_can_build_shared_F77=no
19431 - ;;
19432 - esac
19433 - fi
19434 -
19435 -echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
19436 -echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6
19437 -
19438 -#
19439 -# Check to make sure the PIC flag actually works.
19440 -#
19441 -if test -n "$lt_prog_compiler_pic_F77"; then
19442 -
19443 -echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
19444 -echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6
19445 -if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
19446 - echo $ECHO_N "(cached) $ECHO_C" >&6
19447 -else
19448 - lt_prog_compiler_pic_works_F77=no
19449 - ac_outfile=conftest.$ac_objext
19450 - printf "$lt_simple_compile_test_code" > conftest.$ac_ext
19451 - lt_compiler_flag="$lt_prog_compiler_pic_F77"
19452 - # Insert the option either (1) after the last *FLAGS variable, or
19453 - # (2) before a word containing "conftest.", or (3) at the end.
19454 - # Note that $ac_compile itself does not contain backslashes and begins
19455 - # with a dollar sign (not a hyphen), so the echo should work correctly.
19456 - # The option is referenced via a variable to avoid confusing sed.
19457 - lt_compile=`echo "$ac_compile" | $SED \
19458 - -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
19459 - -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
19460 - -e 's:$: $lt_compiler_flag:'`
19461 - (eval echo "\"\$as_me:13628: $lt_compile\"" >&5)
19462 - (eval "$lt_compile" 2>conftest.err)
19463 - ac_status=$?
19464 - cat conftest.err >&5
19465 - echo "$as_me:13632: \$? = $ac_status" >&5
19466 - if (exit $ac_status) && test -s "$ac_outfile"; then
19467 - # The compiler can only warn and ignore the option if not recognized
19468 - # So say no if there are warnings other than the usual output.
19469 - $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
19470 - $SED '/^$/d' conftest.err >conftest.er2
19471 - if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
19472 - lt_prog_compiler_pic_works_F77=yes
19473 - fi
19474 - fi
19475 - $rm conftest*
19476 -
19477 -fi
19478 -echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
19479 -echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6
19480 -
19481 -if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
19482 - case $lt_prog_compiler_pic_F77 in
19483 - "" | " "*) ;;
19484 - *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
19485 - esac
19486 -else
19487 - lt_prog_compiler_pic_F77=
19488 - lt_prog_compiler_can_build_shared_F77=no
19489 -fi
19490 -
19491 -fi
19492 -case $host_os in
19493 - # For platforms which do not support PIC, -DPIC is meaningless:
19494 - *djgpp*)
19495 - lt_prog_compiler_pic_F77=
19496 - ;;
19497 - *)
19498 - lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
19499 - ;;
19500 -esac
19501 -
19502 -echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
19503 -echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
19504 -if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
19505 - echo $ECHO_N "(cached) $ECHO_C" >&6
19506 -else
19507 - lt_cv_prog_compiler_c_o_F77=no
19508 - $rm -r conftest 2>/dev/null
19509 - mkdir conftest
19510 - cd conftest
19511 - mkdir out
19512 - printf "$lt_simple_compile_test_code" > conftest.$ac_ext
19513 -
19514 - lt_compiler_flag="-o out/conftest2.$ac_objext"
19515 - # Insert the option either (1) after the last *FLAGS variable, or
19516 - # (2) before a word containing "conftest.", or (3) at the end.
19517 - # Note that $ac_compile itself does not contain backslashes and begins
19518 - # with a dollar sign (not a hyphen), so the echo should work correctly.
19519 - lt_compile=`echo "$ac_compile" | $SED \
19520 - -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
19521 - -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
19522 - -e 's:$: $lt_compiler_flag:'`
19523 - (eval echo "\"\$as_me:13690: $lt_compile\"" >&5)
19524 - (eval "$lt_compile" 2>out/conftest.err)
19525 - ac_status=$?
19526 - cat out/conftest.err >&5
19527 - echo "$as_me:13694: \$? = $ac_status" >&5
19528 - if (exit $ac_status) && test -s out/conftest2.$ac_objext
19529 - then
19530 - # The compiler can only warn and ignore the option if not recognized
19531 - # So say no if there are warnings
19532 - $echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp
19533 - $SED '/^$/d' out/conftest.err >out/conftest.er2
19534 - if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 >/dev/null; then
19535 - lt_cv_prog_compiler_c_o_F77=yes
19536 - fi
19537 - fi
19538 - chmod u+w . 2>&5
19539 - $rm conftest*
19540 - # SGI C++ compiler will create directory out/ii_files/ for
19541 - # template instantiation
19542 - test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
19543 - $rm out/* && rmdir out
19544 - cd ..
19545 - rmdir conftest
19546 - $rm conftest*
19547 -
19548 -fi
19549 -echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
19550 -echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6
19551 -
19552 -
19553 -hard_links="nottested"
19554 -if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
19555 - # do not overwrite the value of need_locks provided by the user
19556 - echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
19557 -echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
19558 - hard_links=yes
19559 - $rm conftest*
19560 - ln conftest.a conftest.b 2>/dev/null && hard_links=no
19561 - touch conftest.a
19562 - ln conftest.a conftest.b 2>&5 || hard_links=no
19563 - ln conftest.a conftest.b 2>/dev/null && hard_links=no
19564 - echo "$as_me:$LINENO: result: $hard_links" >&5
19565 -echo "${ECHO_T}$hard_links" >&6
19566 - if test "$hard_links" = no; then
19567 - { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
19568 -echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
19569 - need_locks=warn
19570 - fi
19571 -else
19572 - need_locks=no
19573 -fi
19574 -
19575 -echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
19576 -echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
19577 -
19578 - runpath_var=
19579 - allow_undefined_flag_F77=
19580 - enable_shared_with_static_runtimes_F77=no
19581 - archive_cmds_F77=
19582 - archive_expsym_cmds_F77=
19583 - old_archive_From_new_cmds_F77=
19584 - old_archive_from_expsyms_cmds_F77=
19585 - export_dynamic_flag_spec_F77=
19586 - whole_archive_flag_spec_F77=
19587 - thread_safe_flag_spec_F77=
19588 - hardcode_libdir_flag_spec_F77=
19589 - hardcode_libdir_flag_spec_ld_F77=
19590 - hardcode_libdir_separator_F77=
19591 - hardcode_direct_F77=no
19592 - hardcode_minus_L_F77=no
19593 - hardcode_shlibpath_var_F77=unsupported
19594 - link_all_deplibs_F77=unknown
19595 - hardcode_automatic_F77=no
19596 - module_cmds_F77=
19597 - module_expsym_cmds_F77=
19598 - always_export_symbols_F77=no
19599 - export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
19600 - # include_expsyms should be a list of space-separated symbols to be *always*
19601 - # included in the symbol list
19602 - include_expsyms_F77=
19603 - # exclude_expsyms can be an extended regexp of symbols to exclude
19604 - # it will be wrapped by ` (' and `)$', so one must not match beginning or
19605 - # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
19606 - # as well as any symbol that contains `d'.
19607 - exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
19608 - # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
19609 - # platforms (ab)use it in PIC code, but their linkers get confused if
19610 - # the symbol is explicitly referenced. Since portable code cannot
19611 - # rely on this symbol name, it's probably fine to never include it in
19612 - # preloaded symbol tables.
19613 - extract_expsyms_cmds=
19614 - # Just being paranoid about ensuring that cc_basename is set.
19615 - for cc_temp in $compiler""; do
19616 - case $cc_temp in
19617 - compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
19618 - distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
19619 - \-*) ;;
19620 - *) break;;
19621 - esac
19622 -done
19623 -cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
19624 -
19625 - case $host_os in
19626 - cygwin* | mingw* | pw32*)
19627 - # FIXME: the MSVC++ port hasn't been tested in a loooong time
19628 - # When not using gcc, we currently assume that we are using
19629 - # Microsoft Visual C++.
19630 - if test "$GCC" != yes; then
19631 - with_gnu_ld=no
19632 - fi
19633 - ;;
19634 - openbsd*)
19635 - with_gnu_ld=no
19636 - ;;
19637 - esac
19638 -
19639 - ld_shlibs_F77=yes
19640 - if test "$with_gnu_ld" = yes; then
19641 - # If archive_cmds runs LD, not CC, wlarc should be empty
19642 - wlarc='${wl}'
19643 -
19644 - # Set some defaults for GNU ld with shared library support. These
19645 - # are reset later if shared libraries are not supported. Putting them
19646 - # here allows them to be overridden if necessary.
19647 - runpath_var=LD_RUN_PATH
19648 - hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
19649 - export_dynamic_flag_spec_F77='${wl}--export-dynamic'
19650 - # ancient GNU ld didn't support --whole-archive et. al.
19651 - if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
19652 - whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
19653 - else
19654 - whole_archive_flag_spec_F77=
19655 - fi
19656 - supports_anon_versioning=no
19657 - case `$LD -v 2>/dev/null` in
19658 - *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
19659 - *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
19660 - *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
19661 - *\ 2.11.*) ;; # other 2.11 versions
19662 - *) supports_anon_versioning=yes ;;
19663 - esac
19664 -
19665 - # See if GNU ld supports shared libraries.
19666 - case $host_os in
19667 - aix3* | aix4* | aix5*)
19668 - # On AIX/PPC, the GNU linker is very broken
19669 - if test "$host_cpu" != ia64; then
19670 - ld_shlibs_F77=no
19671 - cat <<EOF 1>&2
19672 -
19673 -*** Warning: the GNU linker, at least up to release 2.9.1, is reported
19674 -*** to be unable to reliably create shared libraries on AIX.
19675 -*** Therefore, libtool is disabling shared libraries support. If you
19676 -*** really care for shared libraries, you may want to modify your PATH
19677 -*** so that a non-GNU linker is found, and then restart.
19678 -
19679 -EOF
19680 - fi
19681 - ;;
19682 -
19683 - amigaos*)
19684 - 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)'
19685 - hardcode_libdir_flag_spec_F77='-L$libdir'
19686 - hardcode_minus_L_F77=yes
19687 -
19688 - # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
19689 - # that the semantics of dynamic libraries on AmigaOS, at least up
19690 - # to version 4, is to share data among multiple programs linked
19691 - # with the same dynamic library. Since this doesn't match the
19692 - # behavior of shared libraries on other platforms, we can't use
19693 - # them.
19694 - ld_shlibs_F77=no
19695 - ;;
19696 -
19697 - beos*)
19698 - if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
19699 - allow_undefined_flag_F77=unsupported
19700 - # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
19701 - # support --undefined. This deserves some investigation. FIXME
19702 - archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19703 - else
19704 - ld_shlibs_F77=no
19705 - fi
19706 - ;;
19707 -
19708 - cygwin* | mingw* | pw32*)
19709 - # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
19710 - # as there is no search path for DLLs.
19711 - hardcode_libdir_flag_spec_F77='-L$libdir'
19712 - allow_undefined_flag_F77=unsupported
19713 - always_export_symbols_F77=no
19714 - enable_shared_with_static_runtimes_F77=yes
19715 - export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
19716 -
19717 - if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
19718 - archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
19719 - # If the export-symbols file already is a .def file (1st line
19720 - # is EXPORTS), use it as is; otherwise, prepend...
19721 - archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
19722 - cp $export_symbols $output_objdir/$soname.def;
19723 - else
19724 - echo EXPORTS > $output_objdir/$soname.def;
19725 - cat $export_symbols >> $output_objdir/$soname.def;
19726 - fi~
19727 - $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
19728 - else
19729 - ld_shlibs_F77=no
19730 - fi
19731 - ;;
19732 -
19733 - linux*)
19734 - if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
19735 - tmp_addflag=
19736 - case $cc_basename,$host_cpu in
19737 - pgcc*) # Portland Group C compiler
19738 - 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'
19739 - tmp_addflag=' $pic_flag'
19740 - ;;
19741 - pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
19742 - 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'
19743 - tmp_addflag=' $pic_flag -Mnomain' ;;
19744 - ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
19745 - tmp_addflag=' -i_dynamic' ;;
19746 - efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
19747 - tmp_addflag=' -i_dynamic -nofor_main' ;;
19748 - ifc* | ifort*) # Intel Fortran compiler
19749 - tmp_addflag=' -nofor_main' ;;
19750 - esac
19751 - archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19752 -
19753 - if test $supports_anon_versioning = yes; then
19754 - archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
19755 - cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
19756 - $echo "local: *; };" >> $output_objdir/$libname.ver~
19757 - $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
19758 - fi
19759 - else
19760 - ld_shlibs_F77=no
19761 - fi
19762 - ;;
19763 -
19764 - netbsd*)
19765 - if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
19766 - archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
19767 - wlarc=
19768 - else
19769 - archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19770 - archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
19771 - fi
19772 - ;;
19773 -
19774 - solaris* | sysv5*)
19775 - if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
19776 - ld_shlibs_F77=no
19777 - cat <<EOF 1>&2
19778 -
19779 -*** Warning: The releases 2.8.* of the GNU linker cannot reliably
19780 -*** create shared libraries on Solaris systems. Therefore, libtool
19781 -*** is disabling shared libraries support. We urge you to upgrade GNU
19782 -*** binutils to release 2.9.1 or newer. Another option is to modify
19783 -*** your PATH or compiler configuration so that the native linker is
19784 -*** used, and then restart.
19785 -
19786 -EOF
19787 - elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
19788 - archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19789 - archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
19790 - else
19791 - ld_shlibs_F77=no
19792 - fi
19793 - ;;
19794 -
19795 - sunos4*)
19796 - archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
19797 - wlarc=
19798 - hardcode_direct_F77=yes
19799 - hardcode_shlibpath_var_F77=no
19800 - ;;
19801 -
19802 - *)
19803 - if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
19804 - archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19805 - archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
19806 - else
19807 - ld_shlibs_F77=no
19808 - fi
19809 - ;;
19810 - esac
19811 -
19812 - if test "$ld_shlibs_F77" = no; then
19813 - runpath_var=
19814 - hardcode_libdir_flag_spec_F77=
19815 - export_dynamic_flag_spec_F77=
19816 - whole_archive_flag_spec_F77=
19817 - fi
19818 - else
19819 - # PORTME fill in a description of your system's linker (not GNU ld)
19820 - case $host_os in
19821 - aix3*)
19822 - allow_undefined_flag_F77=unsupported
19823 - always_export_symbols_F77=yes
19824 - 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'
19825 - # Note: this linker hardcodes the directories in LIBPATH if there
19826 - # are no directories specified by -L.
19827 - hardcode_minus_L_F77=yes
19828 - if test "$GCC" = yes && test -z "$link_static_flag"; then
19829 - # Neither direct hardcoding nor static linking is supported with a
19830 - # broken collect2.
19831 - hardcode_direct_F77=unsupported
19832 - fi
19833 - ;;
19834 -
19835 - aix4* | aix5*)
19836 - if test "$host_cpu" = ia64; then
19837 - # On IA64, the linker does run time linking by default, so we don't
19838 - # have to do anything special.
19839 - aix_use_runtimelinking=no
19840 - exp_sym_flag='-Bexport'
19841 - no_entry_flag=""
19842 - else
19843 - # If we're using GNU nm, then we don't want the "-C" option.
19844 - # -C means demangle to AIX nm, but means don't demangle with GNU nm
19845 - if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
19846 - 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'
19847 - else
19848 - 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'
19849 - fi
19850 - aix_use_runtimelinking=no
19851 -
19852 - # Test if we are trying to use run time linking or normal
19853 - # AIX style linking. If -brtl is somewhere in LDFLAGS, we
19854 - # need to do runtime linking.
19855 - case $host_os in aix4.[23]|aix4.[23].*|aix5*)
19856 - for ld_flag in $LDFLAGS; do
19857 - if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
19858 - aix_use_runtimelinking=yes
19859 - break
19860 - fi
19861 - done
19862 - esac
19863 -
19864 - exp_sym_flag='-bexport'
19865 - no_entry_flag='-bnoentry'
19866 - fi
19867 -
19868 - # When large executables or shared objects are built, AIX ld can
19869 - # have problems creating the table of contents. If linking a library
19870 - # or program results in "error TOC overflow" add -mminimal-toc to
19871 - # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
19872 - # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
19873 -
19874 - archive_cmds_F77=''
19875 - hardcode_direct_F77=yes
19876 - hardcode_libdir_separator_F77=':'
19877 - link_all_deplibs_F77=yes
19878 -
19879 - if test "$GCC" = yes; then
19880 - case $host_os in aix4.[012]|aix4.[012].*)
19881 - # We only want to do this on AIX 4.2 and lower, the check
19882 - # below for broken collect2 doesn't work under 4.3+
19883 - collect2name=`${CC} -print-prog-name=collect2`
19884 - if test -f "$collect2name" && \
19885 - strings "$collect2name" | grep resolve_lib_name >/dev/null
19886 - then
19887 - # We have reworked collect2
19888 - hardcode_direct_F77=yes
19889 - else
19890 - # We have old collect2
19891 - hardcode_direct_F77=unsupported
19892 - # It fails to find uninstalled libraries when the uninstalled
19893 - # path is not listed in the libpath. Setting hardcode_minus_L
19894 - # to unsupported forces relinking
19895 - hardcode_minus_L_F77=yes
19896 - hardcode_libdir_flag_spec_F77='-L$libdir'
19897 - hardcode_libdir_separator_F77=
19898 - fi
19899 - esac
19900 - shared_flag='-shared'
19901 - if test "$aix_use_runtimelinking" = yes; then
19902 - shared_flag="$shared_flag "'${wl}-G'
19903 - fi
19904 - else
19905 - # not using gcc
19906 - if test "$host_cpu" = ia64; then
19907 - # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
19908 - # chokes on -Wl,-G. The following line is correct:
19909 - shared_flag='-G'
19910 - else
19911 - if test "$aix_use_runtimelinking" = yes; then
19912 - shared_flag='${wl}-G'
19913 - else
19914 - shared_flag='${wl}-bM:SRE'
19915 - fi
19916 - fi
19917 - fi
19918 -
19919 - # It seems that -bexpall does not export symbols beginning with
19920 - # underscore (_), so it is better to generate a list of symbols to export.
19921 - always_export_symbols_F77=yes
19922 - if test "$aix_use_runtimelinking" = yes; then
19923 - # Warning - without using the other runtime loading flags (-brtl),
19924 - # -berok will link without error, but may produce a broken library.
19925 - allow_undefined_flag_F77='-berok'
19926 - # Determine the default libpath from the value encoded in an empty executable.
19927 - cat >conftest.$ac_ext <<_ACEOF
19928 - program main
19929 -
19930 - end
19931 -_ACEOF
19932 -rm -f conftest.$ac_objext conftest$ac_exeext
19933 -if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19934 - (eval $ac_link) 2>conftest.er1
19935 - ac_status=$?
19936 - grep -v '^ *+' conftest.er1 >conftest.err
19937 - rm -f conftest.er1
19938 - cat conftest.err >&5
19939 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
19940 - (exit $ac_status); } &&
19941 - { ac_try='test -z "$ac_f77_werror_flag"
19942 - || test ! -s conftest.err'
19943 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19944 - (eval $ac_try) 2>&5
19945 - ac_status=$?
19946 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
19947 - (exit $ac_status); }; } &&
19948 - { ac_try='test -s conftest$ac_exeext'
19949 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19950 - (eval $ac_try) 2>&5
19951 - ac_status=$?
19952 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
19953 - (exit $ac_status); }; }; then
19954 -
19955 -aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
19956 -}'`
19957 -# Check for a 64-bit object if we didn't find anything.
19958 -if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
19959 -}'`; fi
19960 -else
19961 - echo "$as_me: failed program was:" >&5
19962 -sed 's/^/| /' conftest.$ac_ext >&5
19963 -
19964 -fi
19965 -rm -f conftest.err conftest.$ac_objext \
19966 - conftest$ac_exeext conftest.$ac_ext
19967 -if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
19968 -
19969 - hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
19970 - archive_expsym_cmds_F77="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
19971 - else
19972 - if test "$host_cpu" = ia64; then
19973 - hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
19974 - allow_undefined_flag_F77="-z nodefs"
19975 - archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
19976 - else
19977 - # Determine the default libpath from the value encoded in an empty executable.
19978 - cat >conftest.$ac_ext <<_ACEOF
19979 - program main
19980 -
19981 - end
19982 -_ACEOF
19983 -rm -f conftest.$ac_objext conftest$ac_exeext
19984 -if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19985 - (eval $ac_link) 2>conftest.er1
19986 - ac_status=$?
19987 - grep -v '^ *+' conftest.er1 >conftest.err
19988 - rm -f conftest.er1
19989 - cat conftest.err >&5
19990 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
19991 - (exit $ac_status); } &&
19992 - { ac_try='test -z "$ac_f77_werror_flag"
19993 - || test ! -s conftest.err'
19994 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19995 - (eval $ac_try) 2>&5
19996 - ac_status=$?
19997 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
19998 - (exit $ac_status); }; } &&
19999 - { ac_try='test -s conftest$ac_exeext'
20000 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20001 - (eval $ac_try) 2>&5
20002 - ac_status=$?
20003 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
20004 - (exit $ac_status); }; }; then
20005 -
20006 -aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
20007 -}'`
20008 -# Check for a 64-bit object if we didn't find anything.
20009 -if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
20010 -}'`; fi
20011 -else
20012 - echo "$as_me: failed program was:" >&5
20013 -sed 's/^/| /' conftest.$ac_ext >&5
20014 -
20015 -fi
20016 -rm -f conftest.err conftest.$ac_objext \
20017 - conftest$ac_exeext conftest.$ac_ext
20018 -if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
20019 -
20020 - hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
20021 - # Warning - without using the other run time loading flags,
20022 - # -berok will link without error, but may produce a broken library.
20023 - no_undefined_flag_F77=' ${wl}-bernotok'
20024 - allow_undefined_flag_F77=' ${wl}-berok'
20025 - # -bexpall does not export symbols beginning with underscore (_)
20026 - always_export_symbols_F77=yes
20027 - # Exported symbols can be pulled into shared objects from archives
20028 - whole_archive_flag_spec_F77=' '
20029 - archive_cmds_need_lc_F77=yes
20030 - # This is similar to how AIX traditionally builds its shared libraries.
20031 - archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
20032 - fi
20033 - fi
20034 - ;;
20035 -
20036 - amigaos*)
20037 - 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)'
20038 - hardcode_libdir_flag_spec_F77='-L$libdir'
20039 - hardcode_minus_L_F77=yes
20040 - # see comment about different semantics on the GNU ld section
20041 - ld_shlibs_F77=no
20042 - ;;
20043 -
20044 - bsdi[45]*)
20045 - export_dynamic_flag_spec_F77=-rdynamic
20046 - ;;
20047 -
20048 - cygwin* | mingw* | pw32*)
20049 - # When not using gcc, we currently assume that we are using
20050 - # Microsoft Visual C++.
20051 - # hardcode_libdir_flag_spec is actually meaningless, as there is
20052 - # no search path for DLLs.
20053 - hardcode_libdir_flag_spec_F77=' '
20054 - allow_undefined_flag_F77=unsupported
20055 - # Tell ltmain to make .lib files, not .a files.
20056 - libext=lib
20057 - # Tell ltmain to make .dll files, not .so files.
20058 - shrext_cmds=".dll"
20059 - # FIXME: Setting linknames here is a bad hack.
20060 - archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
20061 - # The linker will automatically build a .lib file if we build a DLL.
20062 - old_archive_From_new_cmds_F77='true'
20063 - # FIXME: Should let the user specify the lib program.
20064 - old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
20065 - fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
20066 - enable_shared_with_static_runtimes_F77=yes
20067 - ;;
20068 -
20069 - darwin* | rhapsody*)
20070 - case $host_os in
20071 - rhapsody* | darwin1.[012])
20072 - allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
20073 - ;;
20074 - *) # Darwin 1.3 on
20075 - if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
20076 - allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
20077 - else
20078 - case ${MACOSX_DEPLOYMENT_TARGET} in
20079 - 10.[012])
20080 - allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
20081 - ;;
20082 - 10.*)
20083 - allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
20084 - ;;
20085 - esac
20086 - fi
20087 - ;;
20088 - esac
20089 - archive_cmds_need_lc_F77=no
20090 - hardcode_direct_F77=no
20091 - hardcode_automatic_F77=yes
20092 - hardcode_shlibpath_var_F77=unsupported
20093 - whole_archive_flag_spec_F77=''
20094 - link_all_deplibs_F77=yes
20095 - if test "$GCC" = yes ; then
20096 - output_verbose_link_cmd='echo'
20097 - archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
20098 - module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
20099 - # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
20100 - 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}'
20101 - 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}'
20102 - else
20103 - case $cc_basename in
20104 - xlc*)
20105 - output_verbose_link_cmd='echo'
20106 - archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
20107 - module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
20108 - # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
20109 - 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 $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
20110 - 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}'
20111 - ;;
20112 - *)
20113 - ld_shlibs_F77=no
20114 - ;;
20115 - esac
20116 - fi
20117 - ;;
20118 -
20119 - dgux*)
20120 - archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
20121 - hardcode_libdir_flag_spec_F77='-L$libdir'
20122 - hardcode_shlibpath_var_F77=no
20123 - ;;
20124 -
20125 - freebsd1*)
20126 - ld_shlibs_F77=no
20127 - ;;
20128 -
20129 - # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
20130 - # support. Future versions do this automatically, but an explicit c++rt0.o
20131 - # does not break anything, and helps significantly (at the cost of a little
20132 - # extra space).
20133 - freebsd2.2*)
20134 - archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
20135 - hardcode_libdir_flag_spec_F77='-R$libdir'
20136 - hardcode_direct_F77=yes
20137 - hardcode_shlibpath_var_F77=no
20138 - ;;
20139 -
20140 - # Unfortunately, older versions of FreeBSD 2 do not have this feature.
20141 - freebsd2*)
20142 - archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
20143 - hardcode_direct_F77=yes
20144 - hardcode_minus_L_F77=yes
20145 - hardcode_shlibpath_var_F77=no
20146 - ;;
20147 -
20148 - # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
20149 - freebsd* | kfreebsd*-gnu | dragonfly*)
20150 - archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
20151 - hardcode_libdir_flag_spec_F77='-R$libdir'
20152 - hardcode_direct_F77=yes
20153 - hardcode_shlibpath_var_F77=no
20154 - ;;
20155 -
20156 - hpux9*)
20157 - if test "$GCC" = yes; then
20158 - 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'
20159 - else
20160 - 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'
20161 - fi
20162 - hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
20163 - hardcode_libdir_separator_F77=:
20164 - hardcode_direct_F77=yes
20165 -
20166 - # hardcode_minus_L: Not really in the search PATH,
20167 - # but as the default location of the library.
20168 - hardcode_minus_L_F77=yes
20169 - export_dynamic_flag_spec_F77='${wl}-E'
20170 - ;;
20171 -
20172 - hpux10* | hpux11*)
20173 - if test "$GCC" = yes -a "$with_gnu_ld" = no; then
20174 - case $host_cpu in
20175 - hppa*64*|ia64*)
20176 - archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
20177 - ;;
20178 - *)
20179 - archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
20180 - ;;
20181 - esac
20182 - else
20183 - case $host_cpu in
20184 - hppa*64*|ia64*)
20185 - archive_cmds_F77='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
20186 - ;;
20187 - *)
20188 - archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
20189 - ;;
20190 - esac
20191 - fi
20192 - if test "$with_gnu_ld" = no; then
20193 - case $host_cpu in
20194 - hppa*64*)
20195 - hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
20196 - hardcode_libdir_flag_spec_ld_F77='+b $libdir'
20197 - hardcode_libdir_separator_F77=:
20198 - hardcode_direct_F77=no
20199 - hardcode_shlibpath_var_F77=no
20200 - ;;
20201 - ia64*)
20202 - hardcode_libdir_flag_spec_F77='-L$libdir'
20203 - hardcode_direct_F77=no
20204 - hardcode_shlibpath_var_F77=no
20205 -
20206 - # hardcode_minus_L: Not really in the search PATH,
20207 - # but as the default location of the library.
20208 - hardcode_minus_L_F77=yes
20209 - ;;
20210 - *)
20211 - hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
20212 - hardcode_libdir_separator_F77=:
20213 - hardcode_direct_F77=yes
20214 - export_dynamic_flag_spec_F77='${wl}-E'
20215 -
20216 - # hardcode_minus_L: Not really in the search PATH,
20217 - # but as the default location of the library.
20218 - hardcode_minus_L_F77=yes
20219 - ;;
20220 - esac
20221 - fi
20222 - ;;
20223 -
20224 - irix5* | irix6* | nonstopux*)
20225 - if test "$GCC" = yes; then
20226 - 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'
20227 - else
20228 - 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'
20229 - hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
20230 - fi
20231 - hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
20232 - hardcode_libdir_separator_F77=:
20233 - link_all_deplibs_F77=yes
20234 - ;;
20235 -
20236 - netbsd*)
20237 - if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
20238 - archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
20239 - else
20240 - archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
20241 - fi
20242 - hardcode_libdir_flag_spec_F77='-R$libdir'
20243 - hardcode_direct_F77=yes
20244 - hardcode_shlibpath_var_F77=no
20245 - ;;
20246 -
20247 - newsos6)
20248 - archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
20249 - hardcode_direct_F77=yes
20250 - hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
20251 - hardcode_libdir_separator_F77=:
20252 - hardcode_shlibpath_var_F77=no
20253 - ;;
20254 -
20255 - openbsd*)
20256 - hardcode_direct_F77=yes
20257 - hardcode_shlibpath_var_F77=no
20258 - if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
20259 - archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
20260 - archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
20261 - hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
20262 - export_dynamic_flag_spec_F77='${wl}-E'
20263 - else
20264 - case $host_os in
20265 - openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
20266 - archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
20267 - hardcode_libdir_flag_spec_F77='-R$libdir'
20268 - ;;
20269 - *)
20270 - archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
20271 - hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
20272 - ;;
20273 - esac
20274 - fi
20275 - ;;
20276 -
20277 - os2*)
20278 - hardcode_libdir_flag_spec_F77='-L$libdir'
20279 - hardcode_minus_L_F77=yes
20280 - allow_undefined_flag_F77=unsupported
20281 - 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'
20282 - old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
20283 - ;;
20284 -
20285 - osf3*)
20286 - if test "$GCC" = yes; then
20287 - allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
20288 - 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'
20289 - else
20290 - allow_undefined_flag_F77=' -expect_unresolved \*'
20291 - 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'
20292 - fi
20293 - hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
20294 - hardcode_libdir_separator_F77=:
20295 - ;;
20296 -
20297 - osf4* | osf5*) # as osf3* with the addition of -msym flag
20298 - if test "$GCC" = yes; then
20299 - allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
20300 - 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'
20301 - hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
20302 - else
20303 - allow_undefined_flag_F77=' -expect_unresolved \*'
20304 - 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'
20305 - 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~
20306 - $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'
20307 -
20308 - # Both c and cxx compiler support -rpath directly
20309 - hardcode_libdir_flag_spec_F77='-rpath $libdir'
20310 - fi
20311 - hardcode_libdir_separator_F77=:
20312 - ;;
20313 -
20314 - sco3.2v5*)
20315 - archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
20316 - hardcode_shlibpath_var_F77=no
20317 - export_dynamic_flag_spec_F77='${wl}-Bexport'
20318 - runpath_var=LD_RUN_PATH
20319 - hardcode_runpath_var=yes
20320 - ;;
20321 -
20322 - solaris*)
20323 - no_undefined_flag_F77=' -z text'
20324 - if test "$GCC" = yes; then
20325 - wlarc='${wl}'
20326 - archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
20327 - archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
20328 - $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
20329 - else
20330 - wlarc=''
20331 - archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
20332 - archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
20333 - $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
20334 - fi
20335 - hardcode_libdir_flag_spec_F77='-R$libdir'
20336 - hardcode_shlibpath_var_F77=no
20337 - case $host_os in
20338 - solaris2.[0-5] | solaris2.[0-5].*) ;;
20339 - *)
20340 - # The compiler driver will combine linker options so we
20341 - # cannot just pass the convience library names through
20342 - # without $wl, iff we do not link with $LD.
20343 - # Luckily, gcc supports the same syntax we need for Sun Studio.
20344 - # Supported since Solaris 2.6 (maybe 2.5.1?)
20345 - case $wlarc in
20346 - '')
20347 - whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
20348 - *)
20349 - whole_archive_flag_spec_F77='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
20350 - esac ;;
20351 - esac
20352 - link_all_deplibs_F77=yes
20353 - ;;
20354 -
20355 - sunos4*)
20356 - if test "x$host_vendor" = xsequent; then
20357 - # Use $CC to link under sequent, because it throws in some extra .o
20358 - # files that make .init and .fini sections work.
20359 - archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
20360 - else
20361 - archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
20362 - fi
20363 - hardcode_libdir_flag_spec_F77='-L$libdir'
20364 - hardcode_direct_F77=yes
20365 - hardcode_minus_L_F77=yes
20366 - hardcode_shlibpath_var_F77=no
20367 - ;;
20368 -
20369 - sysv4)
20370 - case $host_vendor in
20371 - sni)
20372 - archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
20373 - hardcode_direct_F77=yes # is this really true???
20374 - ;;
20375 - siemens)
20376 - ## LD is ld it makes a PLAMLIB
20377 - ## CC just makes a GrossModule.
20378 - archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
20379 - reload_cmds_F77='$CC -r -o $output$reload_objs'
20380 - hardcode_direct_F77=no
20381 - ;;
20382 - motorola)
20383 - archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
20384 - hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
20385 - ;;
20386 - esac
20387 - runpath_var='LD_RUN_PATH'
20388 - hardcode_shlibpath_var_F77=no
20389 - ;;
20390 -
20391 - sysv4.3*)
20392 - archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
20393 - hardcode_shlibpath_var_F77=no
20394 - export_dynamic_flag_spec_F77='-Bexport'
20395 - ;;
20396 -
20397 - sysv4*MP*)
20398 - if test -d /usr/nec; then
20399 - archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
20400 - hardcode_shlibpath_var_F77=no
20401 - runpath_var=LD_RUN_PATH
20402 - hardcode_runpath_var=yes
20403 - ld_shlibs_F77=yes
20404 - fi
20405 - ;;
20406 -
20407 - sysv4.2uw2*)
20408 - archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
20409 - hardcode_direct_F77=yes
20410 - hardcode_minus_L_F77=no
20411 - hardcode_shlibpath_var_F77=no
20412 - hardcode_runpath_var=yes
20413 - runpath_var=LD_RUN_PATH
20414 - ;;
20415 -
20416 - sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
20417 - no_undefined_flag_F77='${wl}-z ${wl}text'
20418 - if test "$GCC" = yes; then
20419 - archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
20420 - else
20421 - archive_cmds_F77='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
20422 - fi
20423 - runpath_var='LD_RUN_PATH'
20424 - hardcode_shlibpath_var_F77=no
20425 - ;;
20426 -
20427 - sysv5*)
20428 - no_undefined_flag_F77=' -z text'
20429 - # $CC -shared without GNU ld will not create a library from C++
20430 - # object files and a static libstdc++, better avoid it by now
20431 - archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
20432 - archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
20433 - $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
20434 - hardcode_libdir_flag_spec_F77=
20435 - hardcode_shlibpath_var_F77=no
20436 - runpath_var='LD_RUN_PATH'
20437 - ;;
20438 -
20439 - uts4*)
20440 - archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
20441 - hardcode_libdir_flag_spec_F77='-L$libdir'
20442 - hardcode_shlibpath_var_F77=no
20443 - ;;
20444 -
20445 - *)
20446 - ld_shlibs_F77=no
20447 - ;;
20448 - esac
20449 - fi
20450 -
20451 -echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
20452 -echo "${ECHO_T}$ld_shlibs_F77" >&6
20453 -test "$ld_shlibs_F77" = no && can_build_shared=no
20454 -
20455 -variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
20456 -if test "$GCC" = yes; then
20457 - variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
20458 -fi
20459 -
20460 -#
20461 -# Do we need to explicitly link libc?
20462 -#
20463 -case "x$archive_cmds_need_lc_F77" in
20464 -x|xyes)
20465 - # Assume -lc should be added
20466 - archive_cmds_need_lc_F77=yes
20467 -
20468 - if test "$enable_shared" = yes && test "$GCC" = yes; then
20469 - case $archive_cmds_F77 in
20470 - *'~'*)
20471 - # FIXME: we may have to deal with multi-command sequences.
20472 - ;;
20473 - '$CC '*)
20474 - # Test whether the compiler implicitly links with -lc since on some
20475 - # systems, -lgcc has to come before -lc. If gcc already passes -lc
20476 - # to ld, don't add -lc before -lgcc.
20477 - echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
20478 -echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
20479 - $rm conftest*
20480 - printf "$lt_simple_compile_test_code" > conftest.$ac_ext
20481 -
20482 - if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20483 - (eval $ac_compile) 2>&5
20484 - ac_status=$?
20485 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
20486 - (exit $ac_status); } 2>conftest.err; then
20487 - soname=conftest
20488 - lib=conftest
20489 - libobjs=conftest.$ac_objext
20490 - deplibs=
20491 - wl=$lt_prog_compiler_wl_F77
20492 - compiler_flags=-v
20493 - linker_flags=-v
20494 - verstring=
20495 - output_objdir=.
20496 - libname=conftest
20497 - lt_save_allow_undefined_flag=$allow_undefined_flag_F77
20498 - allow_undefined_flag_F77=
20499 - if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
20500 - (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
20501 - ac_status=$?
20502 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
20503 - (exit $ac_status); }
20504 - then
20505 - archive_cmds_need_lc_F77=no
20506 - else
20507 - archive_cmds_need_lc_F77=yes
20508 - fi
20509 - allow_undefined_flag_F77=$lt_save_allow_undefined_flag
20510 - else
20511 - cat conftest.err 1>&5
20512 - fi
20513 - $rm conftest*
20514 - echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
20515 -echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6
20516 - ;;
20517 - esac
20518 - fi
20519 - ;;
20520 -esac
20521 -
20522 -echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
20523 -echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
20524 -library_names_spec=
20525 -libname_spec='lib$name'
20526 -soname_spec=
20527 -shrext_cmds=".so"
20528 -postinstall_cmds=
20529 -postuninstall_cmds=
20530 -finish_cmds=
20531 -finish_eval=
20532 -shlibpath_var=
20533 -shlibpath_overrides_runpath=unknown
20534 -version_type=none
20535 -dynamic_linker="$host_os ld.so"
20536 -sys_lib_dlsearch_path_spec="/lib /usr/lib"
20537 -if test "$GCC" = yes; then
20538 - sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
20539 - if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
20540 - # if the path contains ";" then we assume it to be the separator
20541 - # otherwise default to the standard path separator (i.e. ":") - it is
20542 - # assumed that no part of a normal pathname contains ";" but that should
20543 - # okay in the real world where ";" in dirpaths is itself problematic.
20544 - sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
20545 - else
20546 - sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
20547 - fi
20548 -else
20549 - sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
20550 -fi
20551 -need_lib_prefix=unknown
20552 -hardcode_into_libs=no
20553 -
20554 -# when you set need_version to no, make sure it does not cause -set_version
20555 -# flags to be left without arguments
20556 -need_version=unknown
20557 -
20558 -case $host_os in
20559 -aix3*)
20560 - version_type=linux
20561 - library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
20562 - shlibpath_var=LIBPATH
20563 -
20564 - # AIX 3 has no versioning support, so we append a major version to the name.
20565 - soname_spec='${libname}${release}${shared_ext}$major'
20566 - ;;
20567 -
20568 -aix4* | aix5*)
20569 - version_type=linux
20570 - need_lib_prefix=no
20571 - need_version=no
20572 - hardcode_into_libs=yes
20573 - if test "$host_cpu" = ia64; then
20574 - # AIX 5 supports IA64
20575 - library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
20576 - shlibpath_var=LD_LIBRARY_PATH
20577 - else
20578 - # With GCC up to 2.95.x, collect2 would create an import file
20579 - # for dependence libraries. The import file would start with
20580 - # the line `#! .'. This would cause the generated library to
20581 - # depend on `.', always an invalid library. This was fixed in
20582 - # development snapshots of GCC prior to 3.0.
20583 - case $host_os in
20584 - aix4 | aix4.[01] | aix4.[01].*)
20585 - if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
20586 - echo ' yes '
20587 - echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
20588 - :
20589 - else
20590 - can_build_shared=no
20591 - fi
20592 - ;;
20593 - esac
20594 - # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
20595 - # soname into executable. Probably we can add versioning support to
20596 - # collect2, so additional links can be useful in future.
20597 - if test "$aix_use_runtimelinking" = yes; then
20598 - # If using run time linking (on AIX 4.2 or later) use lib<name>.so
20599 - # instead of lib<name>.a to let people know that these are not
20600 - # typical AIX shared libraries.
20601 - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20602 - else
20603 - # We preserve .a as extension for shared libraries through AIX4.2
20604 - # and later when we are not doing run time linking.
20605 - library_names_spec='${libname}${release}.a $libname.a'
20606 - soname_spec='${libname}${release}${shared_ext}$major'
20607 - fi
20608 - shlibpath_var=LIBPATH
20609 - fi
20610 - ;;
20611 -
20612 -amigaos*)
20613 - library_names_spec='$libname.ixlibrary $libname.a'
20614 - # Create ${libname}_ixlibrary.a entries in /sys/libs.
20615 - 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'
20616 - ;;
20617 -
20618 -beos*)
20619 - library_names_spec='${libname}${shared_ext}'
20620 - dynamic_linker="$host_os ld.so"
20621 - shlibpath_var=LIBRARY_PATH
20622 - ;;
20623 -
20624 -bsdi[45]*)
20625 - version_type=linux
20626 - need_version=no
20627 - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20628 - soname_spec='${libname}${release}${shared_ext}$major'
20629 - finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
20630 - shlibpath_var=LD_LIBRARY_PATH
20631 - sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
20632 - sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
20633 - # the default ld.so.conf also contains /usr/contrib/lib and
20634 - # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
20635 - # libtool to hard-code these into programs
20636 - ;;
20637 -
20638 -cygwin* | mingw* | pw32*)
20639 - version_type=windows
20640 - shrext_cmds=".dll"
20641 - need_version=no
20642 - need_lib_prefix=no
20643 -
20644 - case $GCC,$host_os in
20645 - yes,cygwin* | yes,mingw* | yes,pw32*)
20646 - library_names_spec='$libname.dll.a'
20647 - # DLL is installed to $(libdir)/../bin by postinstall_cmds
20648 - postinstall_cmds='base_file=`basename \${file}`~
20649 - dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
20650 - dldir=$destdir/`dirname \$dlpath`~
20651 - test -d \$dldir || mkdir -p \$dldir~
20652 - $install_prog $dir/$dlname \$dldir/$dlname~
20653 - chmod a+x \$dldir/$dlname'
20654 - postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
20655 - dlpath=$dir/\$dldll~
20656 - $rm \$dlpath'
20657 - shlibpath_overrides_runpath=yes
20658 -
20659 - case $host_os in
20660 - cygwin*)
20661 - # Cygwin DLLs use 'cyg' prefix rather than 'lib'
20662 - soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20663 - sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
20664 - ;;
20665 - mingw*)
20666 - # MinGW DLLs use traditional 'lib' prefix
20667 - soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20668 - sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
20669 - if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
20670 - # It is most probably a Windows format PATH printed by
20671 - # mingw gcc, but we are running on Cygwin. Gcc prints its search
20672 - # path with ; separators, and with drive letters. We can handle the
20673 - # drive letters (cygwin fileutils understands them), so leave them,
20674 - # especially as we might pass files found there to a mingw objdump,
20675 - # which wouldn't understand a cygwinified path. Ahh.
20676 - sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
20677 - else
20678 - sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
20679 - fi
20680 - ;;
20681 - pw32*)
20682 - # pw32 DLLs use 'pw' prefix rather than 'lib'
20683 - library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20684 - ;;
20685 - esac
20686 - ;;
20687 -
20688 - *)
20689 - library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
20690 - ;;
20691 - esac
20692 - dynamic_linker='Win32 ld.exe'
20693 - # FIXME: first we should search . and the directory the executable is in
20694 - shlibpath_var=PATH
20695 - ;;
20696 -
20697 -darwin* | rhapsody*)
20698 - dynamic_linker="$host_os dyld"
20699 - version_type=darwin
20700 - need_lib_prefix=no
20701 - need_version=no
20702 - library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
20703 - soname_spec='${libname}${release}${major}$shared_ext'
20704 - shlibpath_overrides_runpath=yes
20705 - shlibpath_var=DYLD_LIBRARY_PATH
20706 - shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
20707 - # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
20708 - if test "$GCC" = yes; then
20709 - sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
20710 - else
20711 - sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
20712 - fi
20713 - sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
20714 - ;;
20715 -
20716 -dgux*)
20717 - version_type=linux
20718 - need_lib_prefix=no
20719 - need_version=no
20720 - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
20721 - soname_spec='${libname}${release}${shared_ext}$major'
20722 - shlibpath_var=LD_LIBRARY_PATH
20723 - ;;
20724 -
20725 -freebsd1*)
20726 - dynamic_linker=no
20727 - ;;
20728 -
20729 -kfreebsd*-gnu)
20730 - version_type=linux
20731 - need_lib_prefix=no
20732 - need_version=no
20733 - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20734 - soname_spec='${libname}${release}${shared_ext}$major'
20735 - shlibpath_var=LD_LIBRARY_PATH
20736 - shlibpath_overrides_runpath=no
20737 - hardcode_into_libs=yes
20738 - dynamic_linker='GNU ld.so'
20739 - ;;
20740 -
20741 -freebsd* | dragonfly*)
20742 - # DragonFly does not have aout. When/if they implement a new
20743 - # versioning mechanism, adjust this.
20744 - if test -x /usr/bin/objformat; then
20745 - objformat=`/usr/bin/objformat`
20746 - else
20747 - case $host_os in
20748 - freebsd[123]*) objformat=aout ;;
20749 - *) objformat=elf ;;
20750 - esac
20751 - fi
20752 - version_type=freebsd-$objformat
20753 - case $version_type in
20754 - freebsd-elf*)
20755 - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20756 - need_version=no
20757 - need_lib_prefix=no
20758 - ;;
20759 - freebsd-*)
20760 - library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
20761 - need_version=yes
20762 - ;;
20763 - esac
20764 - shlibpath_var=LD_LIBRARY_PATH
20765 - case $host_os in
20766 - freebsd2*)
20767 - shlibpath_overrides_runpath=yes
20768 - ;;
20769 - freebsd3.[01]* | freebsdelf3.[01]*)
20770 - shlibpath_overrides_runpath=yes
20771 - hardcode_into_libs=yes
20772 - ;;
20773 - *) # from 3.2 on
20774 - shlibpath_overrides_runpath=no
20775 - hardcode_into_libs=yes
20776 - ;;
20777 - esac
20778 - ;;
20779 -
20780 -gnu*)
20781 - version_type=linux
20782 - need_lib_prefix=no
20783 - need_version=no
20784 - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
20785 - soname_spec='${libname}${release}${shared_ext}$major'
20786 - shlibpath_var=LD_LIBRARY_PATH
20787 - hardcode_into_libs=yes
20788 - ;;
20789 -
20790 -hpux9* | hpux10* | hpux11*)
20791 - # Give a soname corresponding to the major version so that dld.sl refuses to
20792 - # link against other versions.
20793 - version_type=sunos
20794 - need_lib_prefix=no
20795 - need_version=no
20796 - case $host_cpu in
20797 - ia64*)
20798 - shrext_cmds='.so'
20799 - hardcode_into_libs=yes
20800 - dynamic_linker="$host_os dld.so"
20801 - shlibpath_var=LD_LIBRARY_PATH
20802 - shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20803 - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20804 - soname_spec='${libname}${release}${shared_ext}$major'
20805 - if test "X$HPUX_IA64_MODE" = X32; then
20806 - sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
20807 - else
20808 - sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
20809 - fi
20810 - sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20811 - ;;
20812 - hppa*64*)
20813 - shrext_cmds='.sl'
20814 - hardcode_into_libs=yes
20815 - dynamic_linker="$host_os dld.sl"
20816 - shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
20817 - shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20818 - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20819 - soname_spec='${libname}${release}${shared_ext}$major'
20820 - sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
20821 - sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20822 - ;;
20823 - *)
20824 - shrext_cmds='.sl'
20825 - dynamic_linker="$host_os dld.sl"
20826 - shlibpath_var=SHLIB_PATH
20827 - shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
20828 - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20829 - soname_spec='${libname}${release}${shared_ext}$major'
20830 - ;;
20831 - esac
20832 - # HP-UX runs *really* slowly unless shared libraries are mode 555.
20833 - postinstall_cmds='chmod 555 $lib'
20834 - ;;
20835 -
20836 -irix5* | irix6* | nonstopux*)
20837 - case $host_os in
20838 - nonstopux*) version_type=nonstopux ;;
20839 - *)
20840 - if test "$lt_cv_prog_gnu_ld" = yes; then
20841 - version_type=linux
20842 - else
20843 - version_type=irix
20844 - fi ;;
20845 - esac
20846 - need_lib_prefix=no
20847 - need_version=no
20848 - soname_spec='${libname}${release}${shared_ext}$major'
20849 - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
20850 - case $host_os in
20851 - irix5* | nonstopux*)
20852 - libsuff= shlibsuff=
20853 - ;;
20854 - *)
20855 - case $LD in # libtool.m4 will add one of these switches to LD
20856 - *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
20857 - libsuff= shlibsuff= libmagic=32-bit;;
20858 - *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
20859 - libsuff=32 shlibsuff=N32 libmagic=N32;;
20860 - *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
20861 - libsuff=64 shlibsuff=64 libmagic=64-bit;;
20862 - *) libsuff= shlibsuff= libmagic=never-match;;
20863 - esac
20864 - ;;
20865 - esac
20866 - shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
20867 - shlibpath_overrides_runpath=no
20868 - sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
20869 - sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
20870 - hardcode_into_libs=yes
20871 - ;;
20872 -
20873 -# No shared lib support for Linux oldld, aout, or coff.
20874 -linux*oldld* | linux*aout* | linux*coff*)
20875 - dynamic_linker=no
20876 - ;;
20877 -
20878 -# This must be Linux ELF.
20879 -linux*)
20880 - version_type=linux
20881 - need_lib_prefix=no
20882 - need_version=no
20883 - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20884 - soname_spec='${libname}${release}${shared_ext}$major'
20885 - finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
20886 - shlibpath_var=LD_LIBRARY_PATH
20887 - shlibpath_overrides_runpath=no
20888 - # This implies no fast_install, which is unacceptable.
20889 - # Some rework will be needed to allow for fast_install
20890 - # before this can be enabled.
20891 - hardcode_into_libs=yes
20892 -
20893 - # Append ld.so.conf contents to the search path
20894 - if test -f /etc/ld.so.conf; then
20895 - lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
20896 - sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
20897 - fi
20898 -
20899 - # We used to test for /lib/ld.so.1 and disable shared libraries on
20900 - # powerpc, because MkLinux only supported shared libraries with the
20901 - # GNU dynamic linker. Since this was broken with cross compilers,
20902 - # most powerpc-linux boxes support dynamic linking these days and
20903 - # people can always --disable-shared, the test was removed, and we
20904 - # assume the GNU/Linux dynamic linker is in use.
20905 - dynamic_linker='GNU/Linux ld.so'
20906 - ;;
20907 -
20908 -knetbsd*-gnu)
20909 - version_type=linux
20910 - need_lib_prefix=no
20911 - need_version=no
20912 - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20913 - soname_spec='${libname}${release}${shared_ext}$major'
20914 - shlibpath_var=LD_LIBRARY_PATH
20915 - shlibpath_overrides_runpath=no
20916 - hardcode_into_libs=yes
20917 - dynamic_linker='GNU ld.so'
20918 - ;;
20919 -
20920 -netbsd*)
20921 - version_type=sunos
20922 - need_lib_prefix=no
20923 - need_version=no
20924 - if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
20925 - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20926 - finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20927 - dynamic_linker='NetBSD (a.out) ld.so'
20928 - else
20929 - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20930 - soname_spec='${libname}${release}${shared_ext}$major'
20931 - dynamic_linker='NetBSD ld.elf_so'
20932 - fi
20933 - shlibpath_var=LD_LIBRARY_PATH
20934 - shlibpath_overrides_runpath=yes
20935 - hardcode_into_libs=yes
20936 - ;;
20937 -
20938 -newsos6)
20939 - version_type=linux
20940 - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20941 - shlibpath_var=LD_LIBRARY_PATH
20942 - shlibpath_overrides_runpath=yes
20943 - ;;
20944 -
20945 -nto-qnx*)
20946 - version_type=linux
20947 - need_lib_prefix=no
20948 - need_version=no
20949 - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20950 - soname_spec='${libname}${release}${shared_ext}$major'
20951 - shlibpath_var=LD_LIBRARY_PATH
20952 - shlibpath_overrides_runpath=yes
20953 - ;;
20954 -
20955 -openbsd*)
20956 - version_type=sunos
20957 - need_lib_prefix=no
20958 - # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
20959 - case $host_os in
20960 - openbsd3.3 | openbsd3.3.*) need_version=yes ;;
20961 - *) need_version=no ;;
20962 - esac
20963 - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20964 - finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20965 - shlibpath_var=LD_LIBRARY_PATH
20966 - if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
20967 - case $host_os in
20968 - openbsd2.[89] | openbsd2.[89].*)
20969 - shlibpath_overrides_runpath=no
20970 - ;;
20971 - *)
20972 - shlibpath_overrides_runpath=yes
20973 - ;;
20974 - esac
20975 - else
20976 - shlibpath_overrides_runpath=yes
20977 - fi
20978 - ;;
20979 -
20980 -os2*)
20981 - libname_spec='$name'
20982 - shrext_cmds=".dll"
20983 - need_lib_prefix=no
20984 - library_names_spec='$libname${shared_ext} $libname.a'
20985 - dynamic_linker='OS/2 ld.exe'
20986 - shlibpath_var=LIBPATH
20987 - ;;
20988 -
20989 -osf3* | osf4* | osf5*)
20990 - version_type=osf
20991 - need_lib_prefix=no
20992 - need_version=no
20993 - soname_spec='${libname}${release}${shared_ext}$major'
20994 - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20995 - shlibpath_var=LD_LIBRARY_PATH
20996 - sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
20997 - sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
20998 - ;;
20999 -
21000 -sco3.2v5*)
21001 - version_type=osf
21002 - soname_spec='${libname}${release}${shared_ext}$major'
21003 - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21004 - shlibpath_var=LD_LIBRARY_PATH
21005 - ;;
21006 -
21007 -solaris*)
21008 - version_type=linux
21009 - need_lib_prefix=no
21010 - need_version=no
21011 - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21012 - soname_spec='${libname}${release}${shared_ext}$major'
21013 - shlibpath_var=LD_LIBRARY_PATH
21014 - shlibpath_overrides_runpath=yes
21015 - hardcode_into_libs=yes
21016 - # ldd complains unless libraries are executable
21017 - postinstall_cmds='chmod +x $lib'
21018 - ;;
21019 -
21020 -sunos4*)
21021 - version_type=sunos
21022 - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
21023 - finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
21024 - shlibpath_var=LD_LIBRARY_PATH
21025 - shlibpath_overrides_runpath=yes
21026 - if test "$with_gnu_ld" = yes; then
21027 - need_lib_prefix=no
21028 - fi
21029 - need_version=yes
21030 - ;;
21031 -
21032 -sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
21033 - version_type=linux
21034 - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21035 - soname_spec='${libname}${release}${shared_ext}$major'
21036 - shlibpath_var=LD_LIBRARY_PATH
21037 - case $host_vendor in
21038 - sni)
21039 - shlibpath_overrides_runpath=no
21040 - need_lib_prefix=no
21041 - export_dynamic_flag_spec='${wl}-Blargedynsym'
21042 - runpath_var=LD_RUN_PATH
21043 - ;;
21044 - siemens)
21045 - need_lib_prefix=no
21046 - ;;
21047 - motorola)
21048 - need_lib_prefix=no
21049 - need_version=no
21050 - shlibpath_overrides_runpath=no
21051 - sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
21052 - ;;
21053 - esac
21054 - ;;
21055 -
21056 -sysv4*MP*)
21057 - if test -d /usr/nec ;then
21058 - version_type=linux
21059 - library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
21060 - soname_spec='$libname${shared_ext}.$major'
21061 - shlibpath_var=LD_LIBRARY_PATH
21062 - fi
21063 - ;;
21064 -
21065 -uts4*)
21066 - version_type=linux
21067 - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21068 - soname_spec='${libname}${release}${shared_ext}$major'
21069 - shlibpath_var=LD_LIBRARY_PATH
21070 - ;;
21071 -
21072 -*)
21073 - dynamic_linker=no
21074 - ;;
21075 -esac
21076 -echo "$as_me:$LINENO: result: $dynamic_linker" >&5
21077 -echo "${ECHO_T}$dynamic_linker" >&6
21078 -test "$dynamic_linker" = no && can_build_shared=no
21079 -
21080 -echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
21081 -echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
21082 -hardcode_action_F77=
21083 -if test -n "$hardcode_libdir_flag_spec_F77" || \
21084 - test -n "$runpath_var_F77" || \
21085 - test "X$hardcode_automatic_F77" = "Xyes" ; then
21086 -
21087 - # We can hardcode non-existant directories.
21088 - if test "$hardcode_direct_F77" != no &&
21089 - # If the only mechanism to avoid hardcoding is shlibpath_var, we
21090 - # have to relink, otherwise we might link with an installed library
21091 - # when we should be linking with a yet-to-be-installed one
21092 - ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
21093 - test "$hardcode_minus_L_F77" != no; then
21094 - # Linking always hardcodes the temporary library directory.
21095 - hardcode_action_F77=relink
21096 - else
21097 - # We can link without hardcoding, and we can hardcode nonexisting dirs.
21098 - hardcode_action_F77=immediate
21099 - fi
21100 -else
21101 - # We cannot hardcode anything, or else we can only hardcode existing
21102 - # directories.
21103 - hardcode_action_F77=unsupported
21104 -fi
21105 -echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
21106 -echo "${ECHO_T}$hardcode_action_F77" >&6
21107 -
21108 -if test "$hardcode_action_F77" = relink; then
21109 - # Fast installation is not supported
21110 - enable_fast_install=no
21111 -elif test "$shlibpath_overrides_runpath" = yes ||
21112 - test "$enable_shared" = no; then
21113 - # Fast installation is not necessary
21114 - enable_fast_install=needless
21115 -fi
21116 -
21117 -striplib=
21118 -old_striplib=
21119 -echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
21120 -echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
21121 -if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
21122 - test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
21123 - test -z "$striplib" && striplib="$STRIP --strip-unneeded"
21124 - echo "$as_me:$LINENO: result: yes" >&5
21125 -echo "${ECHO_T}yes" >&6
21126 -else
21127 -# FIXME - insert some real tests, host_os isn't really good enough
21128 - case $host_os in
21129 - darwin*)
21130 - if test -n "$STRIP" ; then
21131 - striplib="$STRIP -x"
21132 - echo "$as_me:$LINENO: result: yes" >&5
21133 -echo "${ECHO_T}yes" >&6
21134 - else
21135 - echo "$as_me:$LINENO: result: no" >&5
21136 -echo "${ECHO_T}no" >&6
21137 -fi
21138 - ;;
21139 - *)
21140 - echo "$as_me:$LINENO: result: no" >&5
21141 -echo "${ECHO_T}no" >&6
21142 - ;;
21143 - esac
21144 -fi
21145 -
21146 -
21147 -
21148 -# The else clause should only fire when bootstrapping the
21149 -# libtool distribution, otherwise you forgot to ship ltmain.sh
21150 -# with your package, and you will get complaints that there are
21151 -# no rules to generate ltmain.sh.
21152 -if test -f "$ltmain"; then
21153 - # See if we are running on zsh, and set the options which allow our commands through
21154 - # without removal of \ escapes.
21155 - if test -n "${ZSH_VERSION+set}" ; then
21156 - setopt NO_GLOB_SUBST
21157 - fi
21158 - # Now quote all the things that may contain metacharacters while being
21159 - # careful not to overquote the AC_SUBSTed values. We take copies of the
21160 - # variables and quote the copies for generation of the libtool script.
21161 - for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
21162 - SED SHELL STRIP \
21163 - libname_spec library_names_spec soname_spec extract_expsyms_cmds \
21164 - old_striplib striplib file_magic_cmd finish_cmds finish_eval \
21165 - deplibs_check_method reload_flag reload_cmds need_locks \
21166 - lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
21167 - lt_cv_sys_global_symbol_to_c_name_address \
21168 - sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
21169 - old_postinstall_cmds old_postuninstall_cmds \
21170 - compiler_F77 \
21171 - CC_F77 \
21172 - LD_F77 \
21173 - lt_prog_compiler_wl_F77 \
21174 - lt_prog_compiler_pic_F77 \
21175 - lt_prog_compiler_static_F77 \
21176 - lt_prog_compiler_no_builtin_flag_F77 \
21177 - export_dynamic_flag_spec_F77 \
21178 - thread_safe_flag_spec_F77 \
21179 - whole_archive_flag_spec_F77 \
21180 - enable_shared_with_static_runtimes_F77 \
21181 - old_archive_cmds_F77 \
21182 - old_archive_from_new_cmds_F77 \
21183 - predep_objects_F77 \
21184 - postdep_objects_F77 \
21185 - predeps_F77 \
21186 - postdeps_F77 \
21187 - compiler_lib_search_path_F77 \
21188 - archive_cmds_F77 \
21189 - archive_expsym_cmds_F77 \
21190 - postinstall_cmds_F77 \
21191 - postuninstall_cmds_F77 \
21192 - old_archive_from_expsyms_cmds_F77 \
21193 - allow_undefined_flag_F77 \
21194 - no_undefined_flag_F77 \
21195 - export_symbols_cmds_F77 \
21196 - hardcode_libdir_flag_spec_F77 \
21197 - hardcode_libdir_flag_spec_ld_F77 \
21198 - hardcode_libdir_separator_F77 \
21199 - hardcode_automatic_F77 \
21200 - module_cmds_F77 \
21201 - module_expsym_cmds_F77 \
21202 - lt_cv_prog_compiler_c_o_F77 \
21203 - exclude_expsyms_F77 \
21204 - include_expsyms_F77; do
21205 -
21206 - case $var in
21207 - old_archive_cmds_F77 | \
21208 - old_archive_from_new_cmds_F77 | \
21209 - archive_cmds_F77 | \
21210 - archive_expsym_cmds_F77 | \
21211 - module_cmds_F77 | \
21212 - module_expsym_cmds_F77 | \
21213 - old_archive_from_expsyms_cmds_F77 | \
21214 - export_symbols_cmds_F77 | \
21215 - extract_expsyms_cmds | reload_cmds | finish_cmds | \
21216 - postinstall_cmds | postuninstall_cmds | \
21217 - old_postinstall_cmds | old_postuninstall_cmds | \
21218 - sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
21219 - # Double-quote double-evaled strings.
21220 - eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
21221 - ;;
21222 - *)
21223 - eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
21224 - ;;
21225 - esac
21226 - done
21227 -
21228 - case $lt_echo in
21229 - *'\$0 --fallback-echo"')
21230 - lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
21231 - ;;
21232 - esac
21233 -
21234 -cfgfile="$ofile"
21235 -
21236 - cat <<__EOF__ >> "$cfgfile"
21237 -# ### BEGIN LIBTOOL TAG CONFIG: $tagname
21238 -
21239 -# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
21240 -
21241 -# Shell to use when invoking shell scripts.
21242 -SHELL=$lt_SHELL
21243 -
21244 -# Whether or not to build shared libraries.
21245 -build_libtool_libs=$enable_shared
21246 -
21247 -# Whether or not to build static libraries.
21248 -build_old_libs=$enable_static
21249 -
21250 -# Whether or not to add -lc for building shared libraries.
21251 -build_libtool_need_lc=$archive_cmds_need_lc_F77
21252 -
21253 -# Whether or not to disallow shared libs when runtime libs are static
21254 -allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
21255 -
21256 -# Whether or not to optimize for fast installation.
21257 -fast_install=$enable_fast_install
21258 -
21259 -# The host system.
21260 -host_alias=$host_alias
21261 -host=$host
21262 -host_os=$host_os
21263 -
21264 -# The build system.
21265 -build_alias=$build_alias
21266 -build=$build
21267 -build_os=$build_os
21268 -
21269 -# An echo program that does not interpret backslashes.
21270 -echo=$lt_echo
21271 -
21272 -# The archiver.
21273 -AR=$lt_AR
21274 -AR_FLAGS=$lt_AR_FLAGS
21275 -
21276 -# A C compiler.
21277 -LTCC=$lt_LTCC
21278 -
21279 -# A language-specific compiler.
21280 -CC=$lt_compiler_F77
21281 -
21282 -# Is the compiler the GNU C compiler?
21283 -with_gcc=$GCC_F77
21284 -
21285 -# An ERE matcher.
21286 -EGREP=$lt_EGREP
21287 -
21288 -# The linker used to build libraries.
21289 -LD=$lt_LD_F77
21290 -
21291 -# Whether we need hard or soft links.
21292 -LN_S=$lt_LN_S
21293 -
21294 -# A BSD-compatible nm program.
21295 -NM=$lt_NM
21296 -
21297 -# A symbol stripping program
21298 -STRIP=$lt_STRIP
21299 -
21300 -# Used to examine libraries when file_magic_cmd begins "file"
21301 -MAGIC_CMD=$MAGIC_CMD
21302 -
21303 -# Used on cygwin: DLL creation program.
21304 -DLLTOOL="$DLLTOOL"
21305 -
21306 -# Used on cygwin: object dumper.
21307 -OBJDUMP="$OBJDUMP"
21308 -
21309 -# Used on cygwin: assembler.
21310 -AS="$AS"
21311 -
21312 -# The name of the directory that contains temporary libtool files.
21313 -objdir=$objdir
21314 -
21315 -# How to create reloadable object files.
21316 -reload_flag=$lt_reload_flag
21317 -reload_cmds=$lt_reload_cmds
21318 -
21319 -# How to pass a linker flag through the compiler.
21320 -wl=$lt_lt_prog_compiler_wl_F77
21321 -
21322 -# Object file suffix (normally "o").
21323 -objext="$ac_objext"
21324 -
21325 -# Old archive suffix (normally "a").
21326 -libext="$libext"
21327 -
21328 -# Shared library suffix (normally ".so").
21329 -shrext_cmds='$shrext_cmds'
21330 -
21331 -# Executable file suffix (normally "").
21332 -exeext="$exeext"
21333 -
21334 -# Additional compiler flags for building library objects.
21335 -pic_flag=$lt_lt_prog_compiler_pic_F77
21336 -pic_mode=$pic_mode
21337 -
21338 -# What is the maximum length of a command?
21339 -max_cmd_len=$lt_cv_sys_max_cmd_len
21340 -
21341 -# Does compiler simultaneously support -c and -o options?
21342 -compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
21343 -
21344 -# Must we lock files when doing compilation?
21345 -need_locks=$lt_need_locks
21346 -
21347 -# Do we need the lib prefix for modules?
21348 -need_lib_prefix=$need_lib_prefix
21349 -
21350 -# Do we need a version for libraries?
21351 -need_version=$need_version
21352 -
21353 -# Whether dlopen is supported.
21354 -dlopen_support=$enable_dlopen
21355 -
21356 -# Whether dlopen of programs is supported.
21357 -dlopen_self=$enable_dlopen_self
21358 -
21359 -# Whether dlopen of statically linked programs is supported.
21360 -dlopen_self_static=$enable_dlopen_self_static
21361 -
21362 -# Compiler flag to prevent dynamic linking.
21363 -link_static_flag=$lt_lt_prog_compiler_static_F77
21364 -
21365 -# Compiler flag to turn off builtin functions.
21366 -no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
21367 -
21368 -# Compiler flag to allow reflexive dlopens.
21369 -export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
21370 -
21371 -# Compiler flag to generate shared objects directly from archives.
21372 -whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
21373 -
21374 -# Compiler flag to generate thread-safe objects.
21375 -thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
21376 -
21377 -# Library versioning type.
21378 -version_type=$version_type
21379 -
21380 -# Format of library name prefix.
21381 -libname_spec=$lt_libname_spec
21382 -
21383 -# List of archive names. First name is the real one, the rest are links.
21384 -# The last name is the one that the linker finds with -lNAME.
21385 -library_names_spec=$lt_library_names_spec
21386 -
21387 -# The coded name of the library, if different from the real name.
21388 -soname_spec=$lt_soname_spec
21389 -
21390 -# Commands used to build and install an old-style archive.
21391 -RANLIB=$lt_RANLIB
21392 -old_archive_cmds=$lt_old_archive_cmds_F77
21393 -old_postinstall_cmds=$lt_old_postinstall_cmds
21394 -old_postuninstall_cmds=$lt_old_postuninstall_cmds
21395 -
21396 -# Create an old-style archive from a shared archive.
21397 -old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
21398 -
21399 -# Create a temporary old-style archive to link instead of a shared archive.
21400 -old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
21401 -
21402 -# Commands used to build and install a shared archive.
21403 -archive_cmds=$lt_archive_cmds_F77
21404 -archive_expsym_cmds=$lt_archive_expsym_cmds_F77
21405 -postinstall_cmds=$lt_postinstall_cmds
21406 -postuninstall_cmds=$lt_postuninstall_cmds
21407 -
21408 -# Commands used to build a loadable module (assumed same as above if empty)
21409 -module_cmds=$lt_module_cmds_F77
21410 -module_expsym_cmds=$lt_module_expsym_cmds_F77
21411 -
21412 -# Commands to strip libraries.
21413 -old_striplib=$lt_old_striplib
21414 -striplib=$lt_striplib
21415 -
21416 -# Dependencies to place before the objects being linked to create a
21417 -# shared library.
21418 -predep_objects=$lt_predep_objects_F77
21419 -
21420 -# Dependencies to place after the objects being linked to create a
21421 -# shared library.
21422 -postdep_objects=$lt_postdep_objects_F77
21423 -
21424 -# Dependencies to place before the objects being linked to create a
21425 -# shared library.
21426 -predeps=$lt_predeps_F77
21427 -
21428 -# Dependencies to place after the objects being linked to create a
21429 -# shared library.
21430 -postdeps=$lt_postdeps_F77
21431 -
21432 -# The library search path used internally by the compiler when linking
21433 -# a shared library.
21434 -compiler_lib_search_path=$lt_compiler_lib_search_path_F77
21435 -
21436 -# Method to check whether dependent libraries are shared objects.
21437 -deplibs_check_method=$lt_deplibs_check_method
21438 -
21439 -# Command to use when deplibs_check_method == file_magic.
21440 -file_magic_cmd=$lt_file_magic_cmd
21441 -
21442 -# Flag that allows shared libraries with undefined symbols to be built.
21443 -allow_undefined_flag=$lt_allow_undefined_flag_F77
21444 -
21445 -# Flag that forces no undefined symbols.
21446 -no_undefined_flag=$lt_no_undefined_flag_F77
21447 -
21448 -# Commands used to finish a libtool library installation in a directory.
21449 -finish_cmds=$lt_finish_cmds
21450 -
21451 -# Same as above, but a single script fragment to be evaled but not shown.
21452 -finish_eval=$lt_finish_eval
21453 -
21454 -# Take the output of nm and produce a listing of raw symbols and C names.
21455 -global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
21456 -
21457 -# Transform the output of nm in a proper C declaration
21458 -global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
21459 -
21460 -# Transform the output of nm in a C name address pair
21461 -global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
21462 -
21463 -# This is the shared library runtime path variable.
21464 -runpath_var=$runpath_var
21465 -
21466 -# This is the shared library path variable.
21467 -shlibpath_var=$shlibpath_var
21468 -
21469 -# Is shlibpath searched before the hard-coded library search path?
21470 -shlibpath_overrides_runpath=$shlibpath_overrides_runpath
21471 -
21472 -# How to hardcode a shared library path into an executable.
21473 -hardcode_action=$hardcode_action_F77
21474 -
21475 -# Whether we should hardcode library paths into libraries.
21476 -hardcode_into_libs=$hardcode_into_libs
21477 -
21478 -# Flag to hardcode \$libdir into a binary during linking.
21479 -# This must work even if \$libdir does not exist.
21480 -hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
21481 -
21482 -# If ld is used when linking, flag to hardcode \$libdir into
21483 -# a binary during linking. This must work even if \$libdir does
21484 -# not exist.
21485 -hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
21486 -
21487 -# Whether we need a single -rpath flag with a separated argument.
21488 -hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
21489 -
21490 -# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
21491 -# resulting binary.
21492 -hardcode_direct=$hardcode_direct_F77
21493 -
21494 -# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
21495 -# resulting binary.
21496 -hardcode_minus_L=$hardcode_minus_L_F77
21497 -
21498 -# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
21499 -# the resulting binary.
21500 -hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
21501 -
21502 -# Set to yes if building a shared library automatically hardcodes DIR into the library
21503 -# and all subsequent libraries and executables linked against it.
21504 -hardcode_automatic=$hardcode_automatic_F77
21505 -
21506 -# Variables whose values should be saved in libtool wrapper scripts and
21507 -# restored at relink time.
21508 -variables_saved_for_relink="$variables_saved_for_relink"
21509 -
21510 -# Whether libtool must link a program against all its dependency libraries.
21511 -link_all_deplibs=$link_all_deplibs_F77
21512 -
21513 -# Compile-time system search path for libraries
21514 -sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
21515 -
21516 -# Run-time system search path for libraries
21517 -sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
21518 -
21519 -# Fix the shell variable \$srcfile for the compiler.
21520 -fix_srcfile_path="$fix_srcfile_path_F77"
21521 +fi
21522 +fi
21523 +STRIP=$ac_cv_prog_STRIP
21524 +if test -n "$STRIP"; then
21525 + echo "$as_me:$LINENO: result: $STRIP" >&5
21526 +echo "${ECHO_T}$STRIP" >&6
21527 +else
21528 + echo "$as_me:$LINENO: result: no" >&5
21529 +echo "${ECHO_T}no" >&6
21530 +fi
21531
21532 -# Set to yes if exported symbols are required.
21533 -always_export_symbols=$always_export_symbols_F77
21534 +fi
21535 +if test -z "$ac_cv_prog_STRIP"; then
21536 + ac_ct_STRIP=$STRIP
21537 + # Extract the first word of "strip", so it can be a program name with args.
21538 +set dummy strip; ac_word=$2
21539 +echo "$as_me:$LINENO: checking for $ac_word" >&5
21540 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
21541 +if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
21542 + echo $ECHO_N "(cached) $ECHO_C" >&6
21543 +else
21544 + if test -n "$ac_ct_STRIP"; then
21545 + ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
21546 +else
21547 +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21548 +for as_dir in $PATH
21549 +do
21550 + IFS=$as_save_IFS
21551 + test -z "$as_dir" && as_dir=.
21552 + for ac_exec_ext in '' $ac_executable_extensions; do
21553 + if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21554 + ac_cv_prog_ac_ct_STRIP="strip"
21555 + echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
21556 + break 2
21557 + fi
21558 +done
21559 +done
21560
21561 -# The commands to list exported symbols.
21562 -export_symbols_cmds=$lt_export_symbols_cmds_F77
21563 + test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
21564 +fi
21565 +fi
21566 +ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
21567 +if test -n "$ac_ct_STRIP"; then
21568 + echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
21569 +echo "${ECHO_T}$ac_ct_STRIP" >&6
21570 +else
21571 + echo "$as_me:$LINENO: result: no" >&5
21572 +echo "${ECHO_T}no" >&6
21573 +fi
21574
21575 -# The commands to extract the exported symbol list from a shared archive.
21576 -extract_expsyms_cmds=$lt_extract_expsyms_cmds
21577 + STRIP=$ac_ct_STRIP
21578 +else
21579 + STRIP="$ac_cv_prog_STRIP"
21580 +fi
21581
21582 -# Symbols that should not be listed in the preloaded symbols.
21583 -exclude_expsyms=$lt_exclude_expsyms_F77
21584
21585 -# Symbols that must always be exported.
21586 -include_expsyms=$lt_include_expsyms_F77
21587 +enable_dlopen=no
21588 +enable_win32_dll=no
21589
21590 -# ### END LIBTOOL TAG CONFIG: $tagname
21591 +# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
21592 +if test "${enable_libtool_lock+set}" = set; then
21593 + enableval="$enable_libtool_lock"
21594
21595 -__EOF__
21596 +fi;
21597 +test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
21598
21599 +# Some flags need to be propagated to the compiler or linker for good
21600 +# libtool support.
21601 +case $host in
21602 +*-*-irix6*)
21603 + # Find out which ABI we are using.
21604 + echo '#line 4708 "configure"' > conftest.$ac_ext
21605 + if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21606 + (eval $ac_compile) 2>&5
21607 + ac_status=$?
21608 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
21609 + (exit $ac_status); }; then
21610 + case `/usr/bin/file conftest.$ac_objext` in
21611 + *32-bit*)
21612 + LD="${LD-ld} -32"
21613 + ;;
21614 + *N32*)
21615 + LD="${LD-ld} -n32"
21616 + ;;
21617 + *64-bit*)
21618 + LD="${LD-ld} -64"
21619 + ;;
21620 + esac
21621 + fi
21622 + rm -rf conftest*
21623 + ;;
21624
21625 +*-*-sco3.2v5*)
21626 + # On SCO OpenServer 5, we need -belf to get full-featured binaries.
21627 + SAVE_CFLAGS="$CFLAGS"
21628 + CFLAGS="$CFLAGS -belf"
21629 + echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
21630 +echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
21631 +if test "${lt_cv_cc_needs_belf+set}" = set; then
21632 + echo $ECHO_N "(cached) $ECHO_C" >&6
21633 else
21634 - # If there is no Makefile yet, we rely on a make rule to execute
21635 - # `config.status --recheck' to rerun these tests and create the
21636 - # libtool script then.
21637 - ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
21638 - if test -f "$ltmain_in"; then
21639 - test -f Makefile && make "$ltmain"
21640 - fi
21641 -fi
21642
21643
21644 -ac_ext=c
21645 + ac_ext=c
21646 ac_cpp='$CPP $CPPFLAGS'
21647 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21648 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21649 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21650
21651 -CC="$lt_save_CC"
21652 -
21653 - else
21654 - tagname=""
21655 - fi
21656 - ;;
21657 -
21658 - GCJ)
21659 - if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
21660 + cat >conftest.$ac_ext <<_ACEOF
21661 +/* confdefs.h. */
21662 +_ACEOF
21663 +cat confdefs.h >>conftest.$ac_ext
21664 +cat >>conftest.$ac_ext <<_ACEOF
21665 +/* end confdefs.h. */
21666
21667 +int
21668 +main ()
21669 +{
21670
21671 + ;
21672 + return 0;
21673 +}
21674 +_ACEOF
21675 +rm -f conftest.$ac_objext conftest$ac_exeext
21676 +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21677 + (eval $ac_link) 2>conftest.er1
21678 + ac_status=$?
21679 + grep -v '^ *+' conftest.er1 >conftest.err
21680 + rm -f conftest.er1
21681 + cat conftest.err >&5
21682 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
21683 + (exit $ac_status); } &&
21684 + { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21685 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21686 + (eval $ac_try) 2>&5
21687 + ac_status=$?
21688 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
21689 + (exit $ac_status); }; } &&
21690 + { ac_try='test -s conftest$ac_exeext'
21691 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21692 + (eval $ac_try) 2>&5
21693 + ac_status=$?
21694 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
21695 + (exit $ac_status); }; }; then
21696 + lt_cv_cc_needs_belf=yes
21697 +else
21698 + echo "$as_me: failed program was:" >&5
21699 +sed 's/^/| /' conftest.$ac_ext >&5
21700
21701 -# Source file extension for Java test sources.
21702 -ac_ext=java
21703 +lt_cv_cc_needs_belf=no
21704 +fi
21705 +rm -f conftest.err conftest.$ac_objext \
21706 + conftest$ac_exeext conftest.$ac_ext
21707 + ac_ext=c
21708 +ac_cpp='$CPP $CPPFLAGS'
21709 +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21710 +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21711 +ac_compiler_gnu=$ac_cv_c_compiler_gnu
21712
21713 -# Object file extension for compiled Java test sources.
21714 -objext=o
21715 -objext_GCJ=$objext
21716 +fi
21717 +echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
21718 +echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
21719 + if test x"$lt_cv_cc_needs_belf" != x"yes"; then
21720 + # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
21721 + CFLAGS="$SAVE_CFLAGS"
21722 + fi
21723 + ;;
21724
21725 -# Code to be used in simple compile tests
21726 -lt_simple_compile_test_code="class foo {}\n"
21727
21728 -# Code to be used in simple link tests
21729 -lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
21730 +esac
21731
21732 -# ltmain only uses $CC for tagged configurations so make sure $CC is set.
21733 +# Sed substitution that helps us do robust quoting. It backslashifies
21734 +# metacharacters that are still active within double-quoted strings.
21735 +Xsed='sed -e s/^X//'
21736 +sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
21737
21738 -# If no C compiler was specified, use CC.
21739 -LTCC=${LTCC-"$CC"}
21740 +# Same as above, but do not quote variable references.
21741 +double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
21742
21743 -# Allow CC to be a program name with arguments.
21744 -compiler=$CC
21745 +# Sed substitution to delay expansion of an escaped shell variable in a
21746 +# double_quote_subst'ed string.
21747 +delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
21748
21749 +# Constants:
21750 +rm="rm -f"
21751
21752 -# save warnings/boilerplate of simple test code
21753 -ac_outfile=conftest.$ac_objext
21754 -printf "$lt_simple_compile_test_code" >conftest.$ac_ext
21755 -eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
21756 -_lt_compiler_boilerplate=`cat conftest.err`
21757 -$rm conftest*
21758 -
21759 -ac_outfile=conftest.$ac_objext
21760 -printf "$lt_simple_link_test_code" >conftest.$ac_ext
21761 -eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
21762 -_lt_linker_boilerplate=`cat conftest.err`
21763 -$rm conftest*
21764 +# Global variables:
21765 +default_ofile=libtool
21766 +can_build_shared=yes
21767
21768 +# All known linkers require a `.a' archive for static linking (except M$VC,
21769 +# which needs '.lib').
21770 +libext=a
21771 +ltmain="$ac_aux_dir/ltmain.sh"
21772 +ofile="$default_ofile"
21773 +with_gnu_ld="$lt_cv_prog_gnu_ld"
21774 +need_locks="$enable_libtool_lock"
21775
21776 -# Allow CC to be a program name with arguments.
21777 -lt_save_CC="$CC"
21778 -CC=${GCJ-"gcj"}
21779 -compiler=$CC
21780 -compiler_GCJ=$CC
21781 -for cc_temp in $compiler""; do
21782 - case $cc_temp in
21783 - compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
21784 - distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
21785 - \-*) ;;
21786 - *) break;;
21787 - esac
21788 -done
21789 -cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
21790 +old_CC="$CC"
21791 +old_CFLAGS="$CFLAGS"
21792
21793 +# Set sane defaults for various variables
21794 +test -z "$AR" && AR=ar
21795 +test -z "$AR_FLAGS" && AR_FLAGS=cru
21796 +test -z "$AS" && AS=as
21797 +test -z "$CC" && CC=cc
21798 +test -z "$DLLTOOL" && DLLTOOL=dlltool
21799 +test -z "$LD" && LD=ld
21800 +test -z "$LN_S" && LN_S="ln -s"
21801 +test -z "$MAGIC_CMD" && MAGIC_CMD=file
21802 +test -z "$NM" && NM=nm
21803 +test -z "$OBJDUMP" && OBJDUMP=objdump
21804 +test -z "$RANLIB" && RANLIB=:
21805 +test -z "$STRIP" && STRIP=:
21806 +test -z "$ac_objext" && ac_objext=o
21807
21808 -# GCJ did not exist at the time GCC didn't implicitly link libc in.
21809 -archive_cmds_need_lc_GCJ=no
21810 +if test x"$host" != x"$build"; then
21811 + ac_tool_prefix=${host_alias}-
21812 +else
21813 + ac_tool_prefix=
21814 +fi
21815
21816 -old_archive_cmds_GCJ=$old_archive_cmds
21817 +# Transform linux* to *-*-linux-gnu*, to support old configure scripts.
21818 +case $host_os in
21819 +linux-gnu*) ;;
21820 +linux*) host=`echo $host | sed 's/^\(.*-.*-linux\)\(.*\)$/\1-gnu\2/'`
21821 +esac
21822
21823 +case $host_os in
21824 +aix3*)
21825 + # AIX sometimes has problems with the GCC collect2 program. For some
21826 + # reason, if we set the COLLECT_NAMES environment variable, the problems
21827 + # vanish in a puff of smoke.
21828 + if test "X${COLLECT_NAMES+set}" != Xset; then
21829 + COLLECT_NAMES=
21830 + export COLLECT_NAMES
21831 + fi
21832 + ;;
21833 +esac
21834
21835 -lt_prog_compiler_no_builtin_flag_GCJ=
21836 +# Determine commands to create old-style static archives.
21837 +old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
21838 +old_postinstall_cmds='chmod 644 $oldlib'
21839 +old_postuninstall_cmds=
21840
21841 -if test "$GCC" = yes; then
21842 - lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
21843 +if test -n "$RANLIB"; then
21844 + case $host_os in
21845 + openbsd*)
21846 + old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
21847 + ;;
21848 + *)
21849 + old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
21850 + ;;
21851 + esac
21852 + old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
21853 +fi
21854
21855 +# Allow CC to be a program name with arguments.
21856 +set dummy $CC
21857 +compiler="$2"
21858
21859 -echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
21860 -echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
21861 -if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
21862 - echo $ECHO_N "(cached) $ECHO_C" >&6
21863 +echo "$as_me:$LINENO: checking for objdir" >&5
21864 +echo $ECHO_N "checking for objdir... $ECHO_C" >&6
21865 +rm -f .libs 2>/dev/null
21866 +mkdir .libs 2>/dev/null
21867 +if test -d .libs; then
21868 + objdir=.libs
21869 else
21870 - lt_cv_prog_compiler_rtti_exceptions=no
21871 - ac_outfile=conftest.$ac_objext
21872 - printf "$lt_simple_compile_test_code" > conftest.$ac_ext
21873 - lt_compiler_flag="-fno-rtti -fno-exceptions"
21874 - # Insert the option either (1) after the last *FLAGS variable, or
21875 - # (2) before a word containing "conftest.", or (3) at the end.
21876 - # Note that $ac_compile itself does not contain backslashes and begins
21877 - # with a dollar sign (not a hyphen), so the echo should work correctly.
21878 - # The option is referenced via a variable to avoid confusing sed.
21879 - lt_compile=`echo "$ac_compile" | $SED \
21880 - -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
21881 - -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
21882 - -e 's:$: $lt_compiler_flag:'`
21883 - (eval echo "\"\$as_me:15820: $lt_compile\"" >&5)
21884 - (eval "$lt_compile" 2>conftest.err)
21885 - ac_status=$?
21886 - cat conftest.err >&5
21887 - echo "$as_me:15824: \$? = $ac_status" >&5
21888 - if (exit $ac_status) && test -s "$ac_outfile"; then
21889 - # The compiler can only warn and ignore the option if not recognized
21890 - # So say no if there are warnings other than the usual output.
21891 - $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
21892 - $SED '/^$/d' conftest.err >conftest.er2
21893 - if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
21894 - lt_cv_prog_compiler_rtti_exceptions=yes
21895 - fi
21896 - fi
21897 - $rm conftest*
21898 -
21899 + # MS-DOS does not allow filenames that begin with a dot.
21900 + objdir=_libs
21901 fi
21902 -echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
21903 -echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
21904 +rmdir .libs 2>/dev/null
21905 +echo "$as_me:$LINENO: result: $objdir" >&5
21906 +echo "${ECHO_T}$objdir" >&6
21907
21908 -if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
21909 - lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
21910 -else
21911 - :
21912 -fi
21913
21914 -fi
21915
21916 -lt_prog_compiler_wl_GCJ=
21917 -lt_prog_compiler_pic_GCJ=
21918 -lt_prog_compiler_static_GCJ=
21919 +# Check whether --with-pic or --without-pic was given.
21920 +if test "${with_pic+set}" = set; then
21921 + withval="$with_pic"
21922 + pic_mode="$withval"
21923 +else
21924 + pic_mode=default
21925 +fi;
21926 +test -z "$pic_mode" && pic_mode=default
21927
21928 +# We assume here that the value for lt_cv_prog_cc_pic will not be cached
21929 +# in isolation, and that seeing it set (from the cache) indicates that
21930 +# the associated values are set (in the cache) correctly too.
21931 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
21932 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
21933 +if test "${lt_cv_prog_cc_pic+set}" = set; then
21934 + echo $ECHO_N "(cached) $ECHO_C" >&6
21935 +else
21936 + lt_cv_prog_cc_pic=
21937 + lt_cv_prog_cc_shlib=
21938 + lt_cv_prog_cc_wl=
21939 + lt_cv_prog_cc_static=
21940 + lt_cv_prog_cc_no_builtin=
21941 + lt_cv_prog_cc_can_build_shared=$can_build_shared
21942
21943 if test "$GCC" = yes; then
21944 - lt_prog_compiler_wl_GCJ='-Wl,'
21945 - lt_prog_compiler_static_GCJ='-static'
21946 + lt_cv_prog_cc_wl='-Wl,'
21947 + lt_cv_prog_cc_static='-static'
21948
21949 case $host_os in
21950 - aix*)
21951 - # All AIX code is PIC.
21952 - if test "$host_cpu" = ia64; then
21953 - # AIX 5 now supports IA64 processor
21954 - lt_prog_compiler_static_GCJ='-Bstatic'
21955 - fi
21956 + aix*)
21957 + # Below there is a dirty hack to force normal static linking with -ldl
21958 + # The problem is because libdl dynamically linked with both libc and
21959 + # libC (AIX C++ library), which obviously doesn't included in libraries
21960 + # list by gcc. This cause undefined symbols with -static flags.
21961 + # This hack allows C programs to be linked with "-static -ldl", but
21962 + # not sure about C++ programs.
21963 + lt_cv_prog_cc_static="$lt_cv_prog_cc_static ${lt_cv_prog_cc_wl}-lC"
21964 ;;
21965 -
21966 amigaos*)
21967 # FIXME: we need at least 68020 code to build shared libraries, but
21968 # adding the `-m68020' flag to GCC prevents building anything better,
21969 # like `-m68040'.
21970 - lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
21971 + lt_cv_prog_cc_pic='-m68020 -resident32 -malways-restore-a4'
21972 ;;
21973 -
21974 - beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
21975 + beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
21976 # PIC is the default for these OSes.
21977 ;;
21978 -
21979 - mingw* | pw32* | os2*)
21980 - # This hack is so that the source file can tell whether it is being
21981 - # built for inclusion in a dll (and should export symbols for example).
21982 - lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
21983 - ;;
21984 -
21985 darwin* | rhapsody*)
21986 # PIC is the default on this platform
21987 # Common symbols not allowed in MH_DYLIB files
21988 - lt_prog_compiler_pic_GCJ='-fno-common'
21989 + lt_cv_prog_cc_pic='-fno-common'
21990 ;;
21991 -
21992 - msdosdjgpp*)
21993 - # Just because we use GCC doesn't mean we suddenly get shared libraries
21994 - # on systems that don't support them.
21995 - lt_prog_compiler_can_build_shared_GCJ=no
21996 - enable_shared=no
21997 + cygwin* | mingw* | pw32* | os2*)
21998 + # This hack is so that the source file can tell whether it is being
21999 + # built for inclusion in a dll (and should export symbols for example).
22000 + lt_cv_prog_cc_pic='-DDLL_EXPORT'
22001 ;;
22002 -
22003 sysv4*MP*)
22004 if test -d /usr/nec; then
22005 - lt_prog_compiler_pic_GCJ=-Kconform_pic
22006 + lt_cv_prog_cc_pic=-Kconform_pic
22007 fi
22008 ;;
22009 -
22010 - hpux*)
22011 - # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
22012 - # not for PA HP-UX.
22013 - case $host_cpu in
22014 - hppa*64*|ia64*)
22015 - # +Z the default
22016 - ;;
22017 - *)
22018 - lt_prog_compiler_pic_GCJ='-fPIC'
22019 - ;;
22020 - esac
22021 - ;;
22022 -
22023 *)
22024 - lt_prog_compiler_pic_GCJ='-fPIC'
22025 + lt_cv_prog_cc_pic='-fPIC'
22026 ;;
22027 esac
22028 else
22029 - # PORTME Check for flag to pass linker flags through the system compiler.
22030 + # PORTME Check for PIC flags for the system compiler.
22031 case $host_os in
22032 - aix*)
22033 - lt_prog_compiler_wl_GCJ='-Wl,'
22034 + aix3* | aix4* | aix5*)
22035 + lt_cv_prog_cc_wl='-Wl,'
22036 + # All AIX code is PIC.
22037 if test "$host_cpu" = ia64; then
22038 # AIX 5 now supports IA64 processor
22039 - lt_prog_compiler_static_GCJ='-Bstatic'
22040 + lt_cv_prog_cc_static='-Bstatic'
22041 else
22042 - lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
22043 + lt_cv_prog_cc_static='-bnso -bI:/lib/syscalls.exp'
22044 fi
22045 ;;
22046 - darwin*)
22047 - # PIC is the default on this platform
22048 - # Common symbols not allowed in MH_DYLIB files
22049 - case $cc_basename in
22050 - xlc*)
22051 - lt_prog_compiler_pic_GCJ='-qnocommon'
22052 - lt_prog_compiler_wl_GCJ='-Wl,'
22053 - ;;
22054 - esac
22055 - ;;
22056 -
22057 - mingw* | pw32* | os2*)
22058 - # This hack is so that the source file can tell whether it is being
22059 - # built for inclusion in a dll (and should export symbols for example).
22060 - lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
22061 - ;;
22062
22063 hpux9* | hpux10* | hpux11*)
22064 - lt_prog_compiler_wl_GCJ='-Wl,'
22065 - # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
22066 - # not for PA HP-UX.
22067 - case $host_cpu in
22068 - hppa*64*|ia64*)
22069 - # +Z the default
22070 - ;;
22071 - *)
22072 - lt_prog_compiler_pic_GCJ='+Z'
22073 - ;;
22074 - esac
22075 - # Is there a better lt_prog_compiler_static that works with the bundled CC?
22076 - lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
22077 + # Is there a better lt_cv_prog_cc_static that works with the bundled CC?
22078 + lt_cv_prog_cc_wl='-Wl,'
22079 + lt_cv_prog_cc_static="${lt_cv_prog_cc_wl}-a ${lt_cv_prog_cc_wl}archive"
22080 + lt_cv_prog_cc_pic='+Z'
22081 ;;
22082
22083 irix5* | irix6* | nonstopux*)
22084 - lt_prog_compiler_wl_GCJ='-Wl,'
22085 + lt_cv_prog_cc_wl='-Wl,'
22086 + lt_cv_prog_cc_static='-non_shared'
22087 # PIC (with -KPIC) is the default.
22088 - lt_prog_compiler_static_GCJ='-non_shared'
22089 ;;
22090
22091 - newsos6)
22092 - lt_prog_compiler_pic_GCJ='-KPIC'
22093 - lt_prog_compiler_static_GCJ='-Bstatic'
22094 + cygwin* | mingw* | pw32* | os2*)
22095 + # This hack is so that the source file can tell whether it is being
22096 + # built for inclusion in a dll (and should export symbols for example).
22097 + lt_cv_prog_cc_pic='-DDLL_EXPORT'
22098 ;;
22099
22100 - linux*)
22101 - case $cc_basename in
22102 - icc* | ecc*)
22103 - lt_prog_compiler_wl_GCJ='-Wl,'
22104 - lt_prog_compiler_pic_GCJ='-KPIC'
22105 - lt_prog_compiler_static_GCJ='-static'
22106 - ;;
22107 - pgcc* | pgf77* | pgf90* | pgf95*)
22108 - # Portland Group compilers (*not* the Pentium gcc compiler,
22109 - # which looks to be a dead project)
22110 - lt_prog_compiler_wl_GCJ='-Wl,'
22111 - lt_prog_compiler_pic_GCJ='-fpic'
22112 - lt_prog_compiler_static_GCJ='-Bstatic'
22113 - ;;
22114 - ccc*)
22115 - lt_prog_compiler_wl_GCJ='-Wl,'
22116 - # All Alpha code is PIC.
22117 - lt_prog_compiler_static_GCJ='-non_shared'
22118 - ;;
22119 - esac
22120 + newsos6)
22121 + lt_cv_prog_cc_pic='-KPIC'
22122 + lt_cv_prog_cc_static='-Bstatic'
22123 ;;
22124
22125 osf3* | osf4* | osf5*)
22126 - lt_prog_compiler_wl_GCJ='-Wl,'
22127 # All OSF/1 code is PIC.
22128 - lt_prog_compiler_static_GCJ='-non_shared'
22129 + lt_cv_prog_cc_wl='-Wl,'
22130 + lt_cv_prog_cc_static='-non_shared'
22131 ;;
22132
22133 sco3.2v5*)
22134 - lt_prog_compiler_pic_GCJ='-Kpic'
22135 - lt_prog_compiler_static_GCJ='-dn'
22136 + lt_cv_prog_cc_pic='-Kpic'
22137 + lt_cv_prog_cc_static='-dn'
22138 + lt_cv_prog_cc_shlib='-belf'
22139 ;;
22140
22141 solaris*)
22142 - lt_prog_compiler_pic_GCJ='-KPIC'
22143 - lt_prog_compiler_static_GCJ='-Bstatic'
22144 - case $cc_basename in
22145 - f77* | f90* | f95*)
22146 - lt_prog_compiler_wl_GCJ='-Qoption ld ';;
22147 - *)
22148 - lt_prog_compiler_wl_GCJ='-Wl,';;
22149 - esac
22150 + lt_cv_prog_cc_pic='-KPIC'
22151 + lt_cv_prog_cc_static='-Bstatic'
22152 + lt_cv_prog_cc_wl='-Wl,'
22153 ;;
22154
22155 sunos4*)
22156 - lt_prog_compiler_wl_GCJ='-Qoption ld '
22157 - lt_prog_compiler_pic_GCJ='-PIC'
22158 - lt_prog_compiler_static_GCJ='-Bstatic'
22159 + lt_cv_prog_cc_pic='-PIC'
22160 + lt_cv_prog_cc_static='-Bstatic'
22161 + lt_cv_prog_cc_wl='-Qoption ld '
22162 ;;
22163
22164 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
22165 - lt_prog_compiler_wl_GCJ='-Wl,'
22166 - lt_prog_compiler_pic_GCJ='-KPIC'
22167 - lt_prog_compiler_static_GCJ='-Bstatic'
22168 + lt_cv_prog_cc_pic='-KPIC'
22169 + lt_cv_prog_cc_static='-Bstatic'
22170 + lt_cv_prog_cc_wl='-Wl,'
22171 + ;;
22172 +
22173 + uts4*)
22174 + lt_cv_prog_cc_pic='-pic'
22175 + lt_cv_prog_cc_static='-Bstatic'
22176 ;;
22177
22178 sysv4*MP*)
22179 if test -d /usr/nec ;then
22180 - lt_prog_compiler_pic_GCJ='-Kconform_pic'
22181 - lt_prog_compiler_static_GCJ='-Bstatic'
22182 + lt_cv_prog_cc_pic='-Kconform_pic'
22183 + lt_cv_prog_cc_static='-Bstatic'
22184 fi
22185 ;;
22186
22187 - unicos*)
22188 - lt_prog_compiler_wl_GCJ='-Wl,'
22189 - lt_prog_compiler_can_build_shared_GCJ=no
22190 - ;;
22191 -
22192 - uts4*)
22193 - lt_prog_compiler_pic_GCJ='-pic'
22194 - lt_prog_compiler_static_GCJ='-Bstatic'
22195 - ;;
22196 -
22197 *)
22198 - lt_prog_compiler_can_build_shared_GCJ=no
22199 + lt_cv_prog_cc_can_build_shared=no
22200 ;;
22201 esac
22202 fi
22203
22204 -echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
22205 -echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
22206 -
22207 -#
22208 -# Check to make sure the PIC flag actually works.
22209 -#
22210 -if test -n "$lt_prog_compiler_pic_GCJ"; then
22211 -
22212 -echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
22213 -echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
22214 -if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
22215 - echo $ECHO_N "(cached) $ECHO_C" >&6
22216 -else
22217 - lt_prog_compiler_pic_works_GCJ=no
22218 - ac_outfile=conftest.$ac_objext
22219 - printf "$lt_simple_compile_test_code" > conftest.$ac_ext
22220 - lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
22221 - # Insert the option either (1) after the last *FLAGS variable, or
22222 - # (2) before a word containing "conftest.", or (3) at the end.
22223 - # Note that $ac_compile itself does not contain backslashes and begins
22224 - # with a dollar sign (not a hyphen), so the echo should work correctly.
22225 - # The option is referenced via a variable to avoid confusing sed.
22226 - lt_compile=`echo "$ac_compile" | $SED \
22227 - -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
22228 - -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
22229 - -e 's:$: $lt_compiler_flag:'`
22230 - (eval echo "\"\$as_me:16082: $lt_compile\"" >&5)
22231 - (eval "$lt_compile" 2>conftest.err)
22232 - ac_status=$?
22233 - cat conftest.err >&5
22234 - echo "$as_me:16086: \$? = $ac_status" >&5
22235 - if (exit $ac_status) && test -s "$ac_outfile"; then
22236 - # The compiler can only warn and ignore the option if not recognized
22237 - # So say no if there are warnings other than the usual output.
22238 - $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
22239 - $SED '/^$/d' conftest.err >conftest.er2
22240 - if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
22241 - lt_prog_compiler_pic_works_GCJ=yes
22242 - fi
22243 - fi
22244 - $rm conftest*
22245 -
22246 fi
22247 -echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
22248 -echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6
22249
22250 -if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
22251 - case $lt_prog_compiler_pic_GCJ in
22252 - "" | " "*) ;;
22253 - *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
22254 - esac
22255 +if test -z "$lt_cv_prog_cc_pic"; then
22256 + echo "$as_me:$LINENO: result: none" >&5
22257 +echo "${ECHO_T}none" >&6
22258 else
22259 - lt_prog_compiler_pic_GCJ=
22260 - lt_prog_compiler_can_build_shared_GCJ=no
22261 -fi
22262 -
22263 -fi
22264 -case $host_os in
22265 - # For platforms which do not support PIC, -DPIC is meaningless:
22266 - *djgpp*)
22267 - lt_prog_compiler_pic_GCJ=
22268 - ;;
22269 - *)
22270 - lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
22271 - ;;
22272 -esac
22273 + echo "$as_me:$LINENO: result: $lt_cv_prog_cc_pic" >&5
22274 +echo "${ECHO_T}$lt_cv_prog_cc_pic" >&6
22275
22276 -echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
22277 -echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
22278 -if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
22279 + # Check to make sure the pic_flag actually works.
22280 + echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_cv_prog_cc_pic works" >&5
22281 +echo $ECHO_N "checking if $compiler PIC flag $lt_cv_prog_cc_pic works... $ECHO_C" >&6
22282 + if test "${lt_cv_prog_cc_pic_works+set}" = set; then
22283 echo $ECHO_N "(cached) $ECHO_C" >&6
22284 else
22285 - lt_cv_prog_compiler_c_o_GCJ=no
22286 - $rm -r conftest 2>/dev/null
22287 - mkdir conftest
22288 - cd conftest
22289 - mkdir out
22290 - printf "$lt_simple_compile_test_code" > conftest.$ac_ext
22291 -
22292 - lt_compiler_flag="-o out/conftest2.$ac_objext"
22293 - # Insert the option either (1) after the last *FLAGS variable, or
22294 - # (2) before a word containing "conftest.", or (3) at the end.
22295 - # Note that $ac_compile itself does not contain backslashes and begins
22296 - # with a dollar sign (not a hyphen), so the echo should work correctly.
22297 - lt_compile=`echo "$ac_compile" | $SED \
22298 - -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
22299 - -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
22300 - -e 's:$: $lt_compiler_flag:'`
22301 - (eval echo "\"\$as_me:16144: $lt_compile\"" >&5)
22302 - (eval "$lt_compile" 2>out/conftest.err)
22303 - ac_status=$?
22304 - cat out/conftest.err >&5
22305 - echo "$as_me:16148: \$? = $ac_status" >&5
22306 - if (exit $ac_status) && test -s out/conftest2.$ac_objext
22307 - then
22308 - # The compiler can only warn and ignore the option if not recognized
22309 - # So say no if there are warnings
22310 - $echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp
22311 - $SED '/^$/d' out/conftest.err >out/conftest.er2
22312 - if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 >/dev/null; then
22313 - lt_cv_prog_compiler_c_o_GCJ=yes
22314 - fi
22315 - fi
22316 - chmod u+w . 2>&5
22317 - $rm conftest*
22318 - # SGI C++ compiler will create directory out/ii_files/ for
22319 - # template instantiation
22320 - test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
22321 - $rm out/* && rmdir out
22322 - cd ..
22323 - rmdir conftest
22324 - $rm conftest*
22325 + save_CFLAGS="$CFLAGS"
22326 + CFLAGS="$CFLAGS $lt_cv_prog_cc_pic -DPIC"
22327 + cat >conftest.$ac_ext <<_ACEOF
22328 +/* confdefs.h. */
22329 +_ACEOF
22330 +cat confdefs.h >>conftest.$ac_ext
22331 +cat >>conftest.$ac_ext <<_ACEOF
22332 +/* end confdefs.h. */
22333
22334 -fi
22335 -echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
22336 -echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
22337 +int
22338 +main ()
22339 +{
22340
22341 + ;
22342 + return 0;
22343 +}
22344 +_ACEOF
22345 +rm -f conftest.$ac_objext
22346 +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22347 + (eval $ac_compile) 2>conftest.er1
22348 + ac_status=$?
22349 + grep -v '^ *+' conftest.er1 >conftest.err
22350 + rm -f conftest.er1
22351 + cat conftest.err >&5
22352 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
22353 + (exit $ac_status); } &&
22354 + { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22355 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22356 + (eval $ac_try) 2>&5
22357 + ac_status=$?
22358 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
22359 + (exit $ac_status); }; } &&
22360 + { ac_try='test -s conftest.$ac_objext'
22361 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22362 + (eval $ac_try) 2>&5
22363 + ac_status=$?
22364 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
22365 + (exit $ac_status); }; }; then
22366 + case $host_os in
22367 + hpux9* | hpux10* | hpux11*)
22368 + # On HP-UX, both CC and GCC only warn that PIC is supported... then
22369 + # they create non-PIC objects. So, if there were any warnings, we
22370 + # assume that PIC is not supported.
22371 + if test -s conftest.err; then
22372 + lt_cv_prog_cc_pic_works=no
22373 + else
22374 + lt_cv_prog_cc_pic_works=yes
22375 + fi
22376 + ;;
22377 + *)
22378 + lt_cv_prog_cc_pic_works=yes
22379 + ;;
22380 + esac
22381
22382 -hard_links="nottested"
22383 -if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
22384 - # do not overwrite the value of need_locks provided by the user
22385 - echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
22386 -echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
22387 - hard_links=yes
22388 - $rm conftest*
22389 - ln conftest.a conftest.b 2>/dev/null && hard_links=no
22390 - touch conftest.a
22391 - ln conftest.a conftest.b 2>&5 || hard_links=no
22392 - ln conftest.a conftest.b 2>/dev/null && hard_links=no
22393 - echo "$as_me:$LINENO: result: $hard_links" >&5
22394 -echo "${ECHO_T}$hard_links" >&6
22395 - if test "$hard_links" = no; then
22396 - { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
22397 -echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
22398 - need_locks=warn
22399 - fi
22400 else
22401 - need_locks=no
22402 -fi
22403 -
22404 -echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
22405 -echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
22406 -
22407 - runpath_var=
22408 - allow_undefined_flag_GCJ=
22409 - enable_shared_with_static_runtimes_GCJ=no
22410 - archive_cmds_GCJ=
22411 - archive_expsym_cmds_GCJ=
22412 - old_archive_From_new_cmds_GCJ=
22413 - old_archive_from_expsyms_cmds_GCJ=
22414 - export_dynamic_flag_spec_GCJ=
22415 - whole_archive_flag_spec_GCJ=
22416 - thread_safe_flag_spec_GCJ=
22417 - hardcode_libdir_flag_spec_GCJ=
22418 - hardcode_libdir_flag_spec_ld_GCJ=
22419 - hardcode_libdir_separator_GCJ=
22420 - hardcode_direct_GCJ=no
22421 - hardcode_minus_L_GCJ=no
22422 - hardcode_shlibpath_var_GCJ=unsupported
22423 - link_all_deplibs_GCJ=unknown
22424 - hardcode_automatic_GCJ=no
22425 - module_cmds_GCJ=
22426 - module_expsym_cmds_GCJ=
22427 - always_export_symbols_GCJ=no
22428 - export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
22429 - # include_expsyms should be a list of space-separated symbols to be *always*
22430 - # included in the symbol list
22431 - include_expsyms_GCJ=
22432 - # exclude_expsyms can be an extended regexp of symbols to exclude
22433 - # it will be wrapped by ` (' and `)$', so one must not match beginning or
22434 - # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
22435 - # as well as any symbol that contains `d'.
22436 - exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
22437 - # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
22438 - # platforms (ab)use it in PIC code, but their linkers get confused if
22439 - # the symbol is explicitly referenced. Since portable code cannot
22440 - # rely on this symbol name, it's probably fine to never include it in
22441 - # preloaded symbol tables.
22442 - extract_expsyms_cmds=
22443 - # Just being paranoid about ensuring that cc_basename is set.
22444 - for cc_temp in $compiler""; do
22445 - case $cc_temp in
22446 - compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
22447 - distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
22448 - \-*) ;;
22449 - *) break;;
22450 - esac
22451 -done
22452 -cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
22453 -
22454 - case $host_os in
22455 - cygwin* | mingw* | pw32*)
22456 - # FIXME: the MSVC++ port hasn't been tested in a loooong time
22457 - # When not using gcc, we currently assume that we are using
22458 - # Microsoft Visual C++.
22459 - if test "$GCC" != yes; then
22460 - with_gnu_ld=no
22461 - fi
22462 - ;;
22463 - openbsd*)
22464 - with_gnu_ld=no
22465 - ;;
22466 - esac
22467 + echo "$as_me: failed program was:" >&5
22468 +sed 's/^/| /' conftest.$ac_ext >&5
22469
22470 - ld_shlibs_GCJ=yes
22471 - if test "$with_gnu_ld" = yes; then
22472 - # If archive_cmds runs LD, not CC, wlarc should be empty
22473 - wlarc='${wl}'
22474 + lt_cv_prog_cc_pic_works=no
22475
22476 - # Set some defaults for GNU ld with shared library support. These
22477 - # are reset later if shared libraries are not supported. Putting them
22478 - # here allows them to be overridden if necessary.
22479 - runpath_var=LD_RUN_PATH
22480 - hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
22481 - export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
22482 - # ancient GNU ld didn't support --whole-archive et. al.
22483 - if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
22484 - whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
22485 - else
22486 - whole_archive_flag_spec_GCJ=
22487 - fi
22488 - supports_anon_versioning=no
22489 - case `$LD -v 2>/dev/null` in
22490 - *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
22491 - *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
22492 - *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
22493 - *\ 2.11.*) ;; # other 2.11 versions
22494 - *) supports_anon_versioning=yes ;;
22495 - esac
22496 +fi
22497 +rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22498 + CFLAGS="$save_CFLAGS"
22499
22500 - # See if GNU ld supports shared libraries.
22501 - case $host_os in
22502 - aix3* | aix4* | aix5*)
22503 - # On AIX/PPC, the GNU linker is very broken
22504 - if test "$host_cpu" != ia64; then
22505 - ld_shlibs_GCJ=no
22506 - cat <<EOF 1>&2
22507 +fi
22508
22509 -*** Warning: the GNU linker, at least up to release 2.9.1, is reported
22510 -*** to be unable to reliably create shared libraries on AIX.
22511 -*** Therefore, libtool is disabling shared libraries support. If you
22512 -*** really care for shared libraries, you may want to modify your PATH
22513 -*** so that a non-GNU linker is found, and then restart.
22514
22515 -EOF
22516 - fi
22517 - ;;
22518 + if test "X$lt_cv_prog_cc_pic_works" = Xno; then
22519 + lt_cv_prog_cc_pic=
22520 + lt_cv_prog_cc_can_build_shared=no
22521 + else
22522 + lt_cv_prog_cc_pic=" $lt_cv_prog_cc_pic"
22523 + fi
22524
22525 - amigaos*)
22526 - 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)'
22527 - hardcode_libdir_flag_spec_GCJ='-L$libdir'
22528 - hardcode_minus_L_GCJ=yes
22529 -
22530 - # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
22531 - # that the semantics of dynamic libraries on AmigaOS, at least up
22532 - # to version 4, is to share data among multiple programs linked
22533 - # with the same dynamic library. Since this doesn't match the
22534 - # behavior of shared libraries on other platforms, we can't use
22535 - # them.
22536 - ld_shlibs_GCJ=no
22537 - ;;
22538 + echo "$as_me:$LINENO: result: $lt_cv_prog_cc_pic_works" >&5
22539 +echo "${ECHO_T}$lt_cv_prog_cc_pic_works" >&6
22540 +fi
22541
22542 - beos*)
22543 - if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
22544 - allow_undefined_flag_GCJ=unsupported
22545 - # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
22546 - # support --undefined. This deserves some investigation. FIXME
22547 - archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
22548 - else
22549 - ld_shlibs_GCJ=no
22550 - fi
22551 - ;;
22552 +# Check for any special shared library compilation flags.
22553 +if test -n "$lt_cv_prog_cc_shlib"; then
22554 + { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_cv_prog_cc_shlib' to build shared libraries" >&5
22555 +echo "$as_me: WARNING: \`$CC' requires \`$lt_cv_prog_cc_shlib' to build shared libraries" >&2;}
22556 + if echo "$old_CC $old_CFLAGS " | egrep -e "[ ]$lt_cv_prog_cc_shlib[ ]" >/dev/null; then :
22557 + else
22558 + { echo "$as_me:$LINENO: WARNING: add \`$lt_cv_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
22559 +echo "$as_me: WARNING: add \`$lt_cv_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
22560 + lt_cv_prog_cc_can_build_shared=no
22561 + fi
22562 +fi
22563
22564 - cygwin* | mingw* | pw32*)
22565 - # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
22566 - # as there is no search path for DLLs.
22567 - hardcode_libdir_flag_spec_GCJ='-L$libdir'
22568 - allow_undefined_flag_GCJ=unsupported
22569 - always_export_symbols_GCJ=no
22570 - enable_shared_with_static_runtimes_GCJ=yes
22571 - export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
22572 -
22573 - if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
22574 - archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
22575 - # If the export-symbols file already is a .def file (1st line
22576 - # is EXPORTS), use it as is; otherwise, prepend...
22577 - archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
22578 - cp $export_symbols $output_objdir/$soname.def;
22579 - else
22580 - echo EXPORTS > $output_objdir/$soname.def;
22581 - cat $export_symbols >> $output_objdir/$soname.def;
22582 - fi~
22583 - $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
22584 - else
22585 - ld_shlibs_GCJ=no
22586 - fi
22587 - ;;
22588 +echo "$as_me:$LINENO: checking if $compiler static flag $lt_cv_prog_cc_static works" >&5
22589 +echo $ECHO_N "checking if $compiler static flag $lt_cv_prog_cc_static works... $ECHO_C" >&6
22590 +if test "${lt_cv_prog_cc_static_works+set}" = set; then
22591 + echo $ECHO_N "(cached) $ECHO_C" >&6
22592 +else
22593 + lt_cv_prog_cc_static_works=no
22594 + save_LDFLAGS="$LDFLAGS"
22595 + LDFLAGS="$LDFLAGS $lt_cv_prog_cc_static"
22596 + cat >conftest.$ac_ext <<_ACEOF
22597 +/* confdefs.h. */
22598 +_ACEOF
22599 +cat confdefs.h >>conftest.$ac_ext
22600 +cat >>conftest.$ac_ext <<_ACEOF
22601 +/* end confdefs.h. */
22602
22603 - linux*)
22604 - if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
22605 - tmp_addflag=
22606 - case $cc_basename,$host_cpu in
22607 - pgcc*) # Portland Group C compiler
22608 - 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'
22609 - tmp_addflag=' $pic_flag'
22610 - ;;
22611 - pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
22612 - 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'
22613 - tmp_addflag=' $pic_flag -Mnomain' ;;
22614 - ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
22615 - tmp_addflag=' -i_dynamic' ;;
22616 - efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
22617 - tmp_addflag=' -i_dynamic -nofor_main' ;;
22618 - ifc* | ifort*) # Intel Fortran compiler
22619 - tmp_addflag=' -nofor_main' ;;
22620 - esac
22621 - archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
22622 +int
22623 +main ()
22624 +{
22625
22626 - if test $supports_anon_versioning = yes; then
22627 - archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
22628 - cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
22629 - $echo "local: *; };" >> $output_objdir/$libname.ver~
22630 - $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
22631 - fi
22632 - else
22633 - ld_shlibs_GCJ=no
22634 - fi
22635 - ;;
22636 + ;
22637 + return 0;
22638 +}
22639 +_ACEOF
22640 +rm -f conftest.$ac_objext conftest$ac_exeext
22641 +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22642 + (eval $ac_link) 2>conftest.er1
22643 + ac_status=$?
22644 + grep -v '^ *+' conftest.er1 >conftest.err
22645 + rm -f conftest.er1
22646 + cat conftest.err >&5
22647 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
22648 + (exit $ac_status); } &&
22649 + { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22650 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22651 + (eval $ac_try) 2>&5
22652 + ac_status=$?
22653 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
22654 + (exit $ac_status); }; } &&
22655 + { ac_try='test -s conftest$ac_exeext'
22656 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22657 + (eval $ac_try) 2>&5
22658 + ac_status=$?
22659 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
22660 + (exit $ac_status); }; }; then
22661 + lt_cv_prog_cc_static_works=yes
22662 +else
22663 + echo "$as_me: failed program was:" >&5
22664 +sed 's/^/| /' conftest.$ac_ext >&5
22665
22666 - netbsd*)
22667 - if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
22668 - archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
22669 - wlarc=
22670 - else
22671 - archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
22672 - archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
22673 - fi
22674 - ;;
22675 +fi
22676 +rm -f conftest.err conftest.$ac_objext \
22677 + conftest$ac_exeext conftest.$ac_ext
22678 + LDFLAGS="$save_LDFLAGS"
22679
22680 - solaris* | sysv5*)
22681 - if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
22682 - ld_shlibs_GCJ=no
22683 - cat <<EOF 1>&2
22684 +fi
22685
22686 -*** Warning: The releases 2.8.* of the GNU linker cannot reliably
22687 -*** create shared libraries on Solaris systems. Therefore, libtool
22688 -*** is disabling shared libraries support. We urge you to upgrade GNU
22689 -*** binutils to release 2.9.1 or newer. Another option is to modify
22690 -*** your PATH or compiler configuration so that the native linker is
22691 -*** used, and then restart.
22692
22693 -EOF
22694 - elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
22695 - archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
22696 - archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
22697 - else
22698 - ld_shlibs_GCJ=no
22699 - fi
22700 - ;;
22701 +# Belt *and* braces to stop my trousers falling down:
22702 +test "X$lt_cv_prog_cc_static_works" = Xno && lt_cv_prog_cc_static=
22703 +echo "$as_me:$LINENO: result: $lt_cv_prog_cc_static_works" >&5
22704 +echo "${ECHO_T}$lt_cv_prog_cc_static_works" >&6
22705
22706 - sunos4*)
22707 - archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
22708 - wlarc=
22709 - hardcode_direct_GCJ=yes
22710 - hardcode_shlibpath_var_GCJ=no
22711 - ;;
22712 +pic_flag="$lt_cv_prog_cc_pic"
22713 +special_shlib_compile_flags="$lt_cv_prog_cc_shlib"
22714 +wl="$lt_cv_prog_cc_wl"
22715 +link_static_flag="$lt_cv_prog_cc_static"
22716 +no_builtin_flag="$lt_cv_prog_cc_no_builtin"
22717 +can_build_shared="$lt_cv_prog_cc_can_build_shared"
22718
22719 - *)
22720 - if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
22721 - archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
22722 - archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
22723 - else
22724 - ld_shlibs_GCJ=no
22725 - fi
22726 - ;;
22727 - esac
22728
22729 - if test "$ld_shlibs_GCJ" = no; then
22730 - runpath_var=
22731 - hardcode_libdir_flag_spec_GCJ=
22732 - export_dynamic_flag_spec_GCJ=
22733 - whole_archive_flag_spec_GCJ=
22734 - fi
22735 - else
22736 - # PORTME fill in a description of your system's linker (not GNU ld)
22737 - case $host_os in
22738 - aix3*)
22739 - allow_undefined_flag_GCJ=unsupported
22740 - always_export_symbols_GCJ=yes
22741 - 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'
22742 - # Note: this linker hardcodes the directories in LIBPATH if there
22743 - # are no directories specified by -L.
22744 - hardcode_minus_L_GCJ=yes
22745 - if test "$GCC" = yes && test -z "$link_static_flag"; then
22746 - # Neither direct hardcoding nor static linking is supported with a
22747 - # broken collect2.
22748 - hardcode_direct_GCJ=unsupported
22749 - fi
22750 - ;;
22751 +# Check to see if options -o and -c are simultaneously supported by compiler
22752 +echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
22753 +echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
22754 +if test "${lt_cv_compiler_c_o+set}" = set; then
22755 + echo $ECHO_N "(cached) $ECHO_C" >&6
22756 +else
22757
22758 - aix4* | aix5*)
22759 - if test "$host_cpu" = ia64; then
22760 - # On IA64, the linker does run time linking by default, so we don't
22761 - # have to do anything special.
22762 - aix_use_runtimelinking=no
22763 - exp_sym_flag='-Bexport'
22764 - no_entry_flag=""
22765 - else
22766 - # If we're using GNU nm, then we don't want the "-C" option.
22767 - # -C means demangle to AIX nm, but means don't demangle with GNU nm
22768 - if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
22769 - 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'
22770 - else
22771 - 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'
22772 - fi
22773 - aix_use_runtimelinking=no
22774 +$rm -r conftest 2>/dev/null
22775 +mkdir conftest
22776 +cd conftest
22777 +echo "int some_variable = 0;" > conftest.$ac_ext
22778 +mkdir out
22779 +# According to Tom Tromey, Ian Lance Taylor reported there are C compilers
22780 +# that will create temporary files in the current directory regardless of
22781 +# the output directory. Thus, making CWD read-only will cause this test
22782 +# to fail, enabling locking or at least warning the user not to do parallel
22783 +# builds.
22784 +chmod -w .
22785 +save_CFLAGS="$CFLAGS"
22786 +CFLAGS="$CFLAGS -o out/conftest2.$ac_objext"
22787 +compiler_c_o=no
22788 +if { (eval echo configure:5263: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>out/conftest.err; } && test -s out/conftest2.$ac_objext; then
22789 + # The compiler can only warn and ignore the option if not recognized
22790 + # So say no if there are warnings
22791 + if test -s out/conftest.err; then
22792 + lt_cv_compiler_c_o=no
22793 + else
22794 + lt_cv_compiler_c_o=yes
22795 + fi
22796 +else
22797 + # Append any errors to the config.log.
22798 + cat out/conftest.err 1>&5
22799 + lt_cv_compiler_c_o=no
22800 +fi
22801 +CFLAGS="$save_CFLAGS"
22802 +chmod u+w .
22803 +$rm conftest* out/*
22804 +rmdir out
22805 +cd ..
22806 +rmdir conftest
22807 +$rm -r conftest 2>/dev/null
22808
22809 - # Test if we are trying to use run time linking or normal
22810 - # AIX style linking. If -brtl is somewhere in LDFLAGS, we
22811 - # need to do runtime linking.
22812 - case $host_os in aix4.[23]|aix4.[23].*|aix5*)
22813 - for ld_flag in $LDFLAGS; do
22814 - if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
22815 - aix_use_runtimelinking=yes
22816 - break
22817 - fi
22818 - done
22819 - esac
22820 +fi
22821
22822 - exp_sym_flag='-bexport'
22823 - no_entry_flag='-bnoentry'
22824 - fi
22825 +compiler_c_o=$lt_cv_compiler_c_o
22826 +echo "$as_me:$LINENO: result: $compiler_c_o" >&5
22827 +echo "${ECHO_T}$compiler_c_o" >&6
22828
22829 - # When large executables or shared objects are built, AIX ld can
22830 - # have problems creating the table of contents. If linking a library
22831 - # or program results in "error TOC overflow" add -mminimal-toc to
22832 - # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
22833 - # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
22834 -
22835 - archive_cmds_GCJ=''
22836 - hardcode_direct_GCJ=yes
22837 - hardcode_libdir_separator_GCJ=':'
22838 - link_all_deplibs_GCJ=yes
22839 -
22840 - if test "$GCC" = yes; then
22841 - case $host_os in aix4.[012]|aix4.[012].*)
22842 - # We only want to do this on AIX 4.2 and lower, the check
22843 - # below for broken collect2 doesn't work under 4.3+
22844 - collect2name=`${CC} -print-prog-name=collect2`
22845 - if test -f "$collect2name" && \
22846 - strings "$collect2name" | grep resolve_lib_name >/dev/null
22847 - then
22848 - # We have reworked collect2
22849 - hardcode_direct_GCJ=yes
22850 - else
22851 - # We have old collect2
22852 - hardcode_direct_GCJ=unsupported
22853 - # It fails to find uninstalled libraries when the uninstalled
22854 - # path is not listed in the libpath. Setting hardcode_minus_L
22855 - # to unsupported forces relinking
22856 - hardcode_minus_L_GCJ=yes
22857 - hardcode_libdir_flag_spec_GCJ='-L$libdir'
22858 - hardcode_libdir_separator_GCJ=
22859 - fi
22860 - esac
22861 - shared_flag='-shared'
22862 - if test "$aix_use_runtimelinking" = yes; then
22863 - shared_flag="$shared_flag "'${wl}-G'
22864 - fi
22865 - else
22866 - # not using gcc
22867 - if test "$host_cpu" = ia64; then
22868 - # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
22869 - # chokes on -Wl,-G. The following line is correct:
22870 - shared_flag='-G'
22871 - else
22872 - if test "$aix_use_runtimelinking" = yes; then
22873 - shared_flag='${wl}-G'
22874 - else
22875 - shared_flag='${wl}-bM:SRE'
22876 - fi
22877 - fi
22878 - fi
22879 +if test x"$compiler_c_o" = x"yes"; then
22880 + # Check to see if we can write to a .lo
22881 + echo "$as_me:$LINENO: checking if $compiler supports -c -o file.lo" >&5
22882 +echo $ECHO_N "checking if $compiler supports -c -o file.lo... $ECHO_C" >&6
22883 + if test "${lt_cv_compiler_o_lo+set}" = set; then
22884 + echo $ECHO_N "(cached) $ECHO_C" >&6
22885 +else
22886
22887 - # It seems that -bexpall does not export symbols beginning with
22888 - # underscore (_), so it is better to generate a list of symbols to export.
22889 - always_export_symbols_GCJ=yes
22890 - if test "$aix_use_runtimelinking" = yes; then
22891 - # Warning - without using the other runtime loading flags (-brtl),
22892 - # -berok will link without error, but may produce a broken library.
22893 - allow_undefined_flag_GCJ='-berok'
22894 - # Determine the default libpath from the value encoded in an empty executable.
22895 - cat >conftest.$ac_ext <<_ACEOF
22896 + lt_cv_compiler_o_lo=no
22897 + save_CFLAGS="$CFLAGS"
22898 + CFLAGS="$CFLAGS -c -o conftest.lo"
22899 + save_objext="$ac_objext"
22900 + ac_objext=lo
22901 + cat >conftest.$ac_ext <<_ACEOF
22902 /* confdefs.h. */
22903 _ACEOF
22904 cat confdefs.h >>conftest.$ac_ext
22905 @@ -16555,58 +5310,90 @@
22906 int
22907 main ()
22908 {
22909 -
22910 +int some_variable = 0;
22911 ;
22912 return 0;
22913 }
22914 _ACEOF
22915 -rm -f conftest.$ac_objext conftest$ac_exeext
22916 -if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22917 - (eval $ac_link) 2>conftest.er1
22918 +rm -f conftest.$ac_objext
22919 +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22920 + (eval $ac_compile) 2>conftest.er1
22921 ac_status=$?
22922 grep -v '^ *+' conftest.er1 >conftest.err
22923 rm -f conftest.er1
22924 cat conftest.err >&5
22925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22926 (exit $ac_status); } &&
22927 - { ac_try='test -z "$ac_c_werror_flag"
22928 - || test ! -s conftest.err'
22929 + { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22930 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22931 (eval $ac_try) 2>&5
22932 ac_status=$?
22933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22934 (exit $ac_status); }; } &&
22935 - { ac_try='test -s conftest$ac_exeext'
22936 + { ac_try='test -s conftest.$ac_objext'
22937 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22938 (eval $ac_try) 2>&5
22939 ac_status=$?
22940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22941 (exit $ac_status); }; }; then
22942 + # The compiler can only warn and ignore the option if not recognized
22943 + # So say no if there are warnings
22944 + if test -s conftest.err; then
22945 + lt_cv_compiler_o_lo=no
22946 + else
22947 + lt_cv_compiler_o_lo=yes
22948 + fi
22949
22950 -aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
22951 -}'`
22952 -# Check for a 64-bit object if we didn't find anything.
22953 -if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
22954 -}'`; fi
22955 else
22956 echo "$as_me: failed program was:" >&5
22957 sed 's/^/| /' conftest.$ac_ext >&5
22958
22959 fi
22960 -rm -f conftest.err conftest.$ac_objext \
22961 - conftest$ac_exeext conftest.$ac_ext
22962 -if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
22963 +rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22964 + ac_objext="$save_objext"
22965 + CFLAGS="$save_CFLAGS"
22966
22967 - hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
22968 - archive_expsym_cmds_GCJ="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
22969 - else
22970 - if test "$host_cpu" = ia64; then
22971 - hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
22972 - allow_undefined_flag_GCJ="-z nodefs"
22973 - archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
22974 - else
22975 - # Determine the default libpath from the value encoded in an empty executable.
22976 - cat >conftest.$ac_ext <<_ACEOF
22977 +fi
22978 +
22979 + compiler_o_lo=$lt_cv_compiler_o_lo
22980 + echo "$as_me:$LINENO: result: $compiler_o_lo" >&5
22981 +echo "${ECHO_T}$compiler_o_lo" >&6
22982 +else
22983 + compiler_o_lo=no
22984 +fi
22985 +
22986 +# Check to see if we can do hard links to lock some files if needed
22987 +hard_links="nottested"
22988 +if test "$compiler_c_o" = no && test "$need_locks" != no; then
22989 + # do not overwrite the value of need_locks provided by the user
22990 + echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
22991 +echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
22992 + hard_links=yes
22993 + $rm conftest*
22994 + ln conftest.a conftest.b 2>/dev/null && hard_links=no
22995 + touch conftest.a
22996 + ln conftest.a conftest.b 2>&5 || hard_links=no
22997 + ln conftest.a conftest.b 2>/dev/null && hard_links=no
22998 + echo "$as_me:$LINENO: result: $hard_links" >&5
22999 +echo "${ECHO_T}$hard_links" >&6
23000 + if test "$hard_links" = no; then
23001 + { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
23002 +echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
23003 + need_locks=warn
23004 + fi
23005 +else
23006 + need_locks=no
23007 +fi
23008 +
23009 +if test "$GCC" = yes; then
23010 + # Check to see if options -fno-rtti -fno-exceptions are supported by compiler
23011 + echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
23012 +echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
23013 + echo "int some_variable = 0;" > conftest.$ac_ext
23014 + save_CFLAGS="$CFLAGS"
23015 + CFLAGS="$CFLAGS -fno-rtti -fno-exceptions -c conftest.$ac_ext"
23016 + compiler_rtti_exceptions=no
23017 + cat >conftest.$ac_ext <<_ACEOF
23018 /* confdefs.h. */
23019 _ACEOF
23020 cat confdefs.h >>conftest.$ac_ext
23021 @@ -16616,556 +5403,808 @@
23022 int
23023 main ()
23024 {
23025 -
23026 +int some_variable = 0;
23027 ;
23028 return 0;
23029 }
23030 _ACEOF
23031 -rm -f conftest.$ac_objext conftest$ac_exeext
23032 -if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23033 - (eval $ac_link) 2>conftest.er1
23034 +rm -f conftest.$ac_objext
23035 +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23036 + (eval $ac_compile) 2>conftest.er1
23037 ac_status=$?
23038 grep -v '^ *+' conftest.er1 >conftest.err
23039 rm -f conftest.er1
23040 cat conftest.err >&5
23041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23042 (exit $ac_status); } &&
23043 - { ac_try='test -z "$ac_c_werror_flag"
23044 - || test ! -s conftest.err'
23045 + { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23046 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23047 (eval $ac_try) 2>&5
23048 ac_status=$?
23049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23050 (exit $ac_status); }; } &&
23051 - { ac_try='test -s conftest$ac_exeext'
23052 + { ac_try='test -s conftest.$ac_objext'
23053 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23054 (eval $ac_try) 2>&5
23055 ac_status=$?
23056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23057 (exit $ac_status); }; }; then
23058 + # The compiler can only warn and ignore the option if not recognized
23059 + # So say no if there are warnings
23060 + if test -s conftest.err; then
23061 + compiler_rtti_exceptions=no
23062 + else
23063 + compiler_rtti_exceptions=yes
23064 + fi
23065
23066 -aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
23067 -}'`
23068 -# Check for a 64-bit object if we didn't find anything.
23069 -if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
23070 -}'`; fi
23071 else
23072 echo "$as_me: failed program was:" >&5
23073 sed 's/^/| /' conftest.$ac_ext >&5
23074
23075 fi
23076 -rm -f conftest.err conftest.$ac_objext \
23077 - conftest$ac_exeext conftest.$ac_ext
23078 -if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
23079 +rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23080 + CFLAGS="$save_CFLAGS"
23081 + echo "$as_me:$LINENO: result: $compiler_rtti_exceptions" >&5
23082 +echo "${ECHO_T}$compiler_rtti_exceptions" >&6
23083 +
23084 + if test "$compiler_rtti_exceptions" = "yes"; then
23085 + no_builtin_flag=' -fno-builtin -fno-rtti -fno-exceptions'
23086 + else
23087 + no_builtin_flag=' -fno-builtin'
23088 + fi
23089 +fi
23090 +
23091 +# See if the linker supports building shared libraries.
23092 +echo "$as_me:$LINENO: checking whether the linker ($LD) supports shared libraries" >&5
23093 +echo $ECHO_N "checking whether the linker ($LD) supports shared libraries... $ECHO_C" >&6
23094 +
23095 +allow_undefined_flag=
23096 +no_undefined_flag=
23097 +need_lib_prefix=unknown
23098 +need_version=unknown
23099 +# when you set need_version to no, make sure it does not cause -set_version
23100 +# flags to be left without arguments
23101 +archive_cmds=
23102 +archive_expsym_cmds=
23103 +old_archive_from_new_cmds=
23104 +old_archive_from_expsyms_cmds=
23105 +export_dynamic_flag_spec=
23106 +whole_archive_flag_spec=
23107 +thread_safe_flag_spec=
23108 +hardcode_into_libs=no
23109 +hardcode_libdir_flag_spec=
23110 +hardcode_libdir_separator=
23111 +hardcode_direct=no
23112 +hardcode_minus_L=no
23113 +hardcode_shlibpath_var=unsupported
23114 +runpath_var=
23115 +link_all_deplibs=unknown
23116 +always_export_symbols=no
23117 +export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | sed '\''s/.* //'\'' | sort | uniq > $export_symbols'
23118 +# include_expsyms should be a list of space-separated symbols to be *always*
23119 +# included in the symbol list
23120 +include_expsyms=
23121 +# exclude_expsyms can be an egrep regular expression of symbols to exclude
23122 +# it will be wrapped by ` (' and `)$', so one must not match beginning or
23123 +# end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
23124 +# as well as any symbol that contains `d'.
23125 +exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
23126 +# Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
23127 +# platforms (ab)use it in PIC code, but their linkers get confused if
23128 +# the symbol is explicitly referenced. Since portable code cannot
23129 +# rely on this symbol name, it's probably fine to never include it in
23130 +# preloaded symbol tables.
23131 +extract_expsyms_cmds=
23132 +
23133 +case $host_os in
23134 +cygwin* | mingw* | pw32*)
23135 + # FIXME: the MSVC++ port hasn't been tested in a loooong time
23136 + # When not using gcc, we currently assume that we are using
23137 + # Microsoft Visual C++.
23138 + if test "$GCC" != yes; then
23139 + with_gnu_ld=no
23140 + fi
23141 + ;;
23142 +openbsd*)
23143 + with_gnu_ld=no
23144 + ;;
23145 +esac
23146 +
23147 +ld_shlibs=yes
23148 +if test "$with_gnu_ld" = yes; then
23149 + # If archive_cmds runs LD, not CC, wlarc should be empty
23150 + wlarc='${wl}'
23151 +
23152 + # See if GNU ld supports shared libraries.
23153 + case $host_os in
23154 + aix3* | aix4* | aix5*)
23155 + # On AIX, the GNU linker is very broken
23156 + # Note:Check GNU linker on AIX 5-IA64 when/if it becomes available.
23157 + ld_shlibs=no
23158 + cat <<EOF 1>&2
23159 +
23160 +*** Warning: the GNU linker, at least up to release 2.9.1, is reported
23161 +*** to be unable to reliably create shared libraries on AIX.
23162 +*** Therefore, libtool is disabling shared libraries support. If you
23163 +*** really care for shared libraries, you may want to modify your PATH
23164 +*** so that a non-GNU linker is found, and then restart.
23165 +
23166 +EOF
23167 + ;;
23168 +
23169 + amigaos*)
23170 + 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)'
23171 + hardcode_libdir_flag_spec='-L$libdir'
23172 + hardcode_minus_L=yes
23173 +
23174 + # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
23175 + # that the semantics of dynamic libraries on AmigaOS, at least up
23176 + # to version 4, is to share data among multiple programs linked
23177 + # with the same dynamic library. Since this doesn't match the
23178 + # behavior of shared libraries on other platforms, we can use
23179 + # them.
23180 + ld_shlibs=no
23181 + ;;
23182 +
23183 + beos*)
23184 + if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
23185 + allow_undefined_flag=unsupported
23186 + # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
23187 + # support --undefined. This deserves some investigation. FIXME
23188 + archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
23189 + else
23190 + ld_shlibs=no
23191 + fi
23192 + ;;
23193 +
23194 + cygwin* | mingw* | pw32*)
23195 + # hardcode_libdir_flag_spec is actually meaningless, as there is
23196 + # no search path for DLLs.
23197 + hardcode_libdir_flag_spec='-L$libdir'
23198 + allow_undefined_flag=unsupported
23199 + always_export_symbols=yes
23200 +
23201 + extract_expsyms_cmds='test -f $output_objdir/impgen.c || \
23202 + sed -e "/^# \/\* impgen\.c starts here \*\//,/^# \/\* impgen.c ends here \*\// { s/^# //;s/^# *$//; p; }" -e d < $''0 > $output_objdir/impgen.c~
23203 + test -f $output_objdir/impgen.exe || (cd $output_objdir && \
23204 + if test "x$HOST_CC" != "x" ; then $HOST_CC -o impgen impgen.c ; \
23205 + else $CC -o impgen impgen.c ; fi)~
23206 + $output_objdir/impgen $dir/$soroot > $output_objdir/$soname-def'
23207 +
23208 + old_archive_from_expsyms_cmds='$DLLTOOL --as=$AS --dllname $soname --def $output_objdir/$soname-def --output-lib $output_objdir/$newlib'
23209 +
23210 + # cygwin and mingw dlls have different entry points and sets of symbols
23211 + # to exclude.
23212 + # FIXME: what about values for MSVC?
23213 + dll_entry=__cygwin_dll_entry@12
23214 + dll_exclude_symbols=DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12~
23215 + case $host_os in
23216 + mingw*)
23217 + # mingw values
23218 + dll_entry=_DllMainCRTStartup@12
23219 + dll_exclude_symbols=DllMain@12,DllMainCRTStartup@12,DllEntryPoint@12~
23220 + ;;
23221 + esac
23222 +
23223 + # mingw and cygwin differ, and it's simplest to just exclude the union
23224 + # of the two symbol sets.
23225 + dll_exclude_symbols=DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12,DllMainCRTStartup@12,DllEntryPoint@12
23226 +
23227 + # recent cygwin and mingw systems supply a stub DllMain which the user
23228 + # can override, but on older systems we have to supply one (in ltdll.c)
23229 + if test "x$lt_cv_need_dllmain" = "xyes"; then
23230 + ltdll_obj='$output_objdir/$soname-ltdll.'"$ac_objext "
23231 + ltdll_cmds='test -f $output_objdir/$soname-ltdll.c || sed -e "/^# \/\* ltdll\.c starts here \*\//,/^# \/\* ltdll.c ends here \*\// { s/^# //; p; }" -e d < $''0 > $output_objdir/$soname-ltdll.c~
23232 + test -f $output_objdir/$soname-ltdll.$ac_objext || (cd $output_objdir && $CC -c $soname-ltdll.c)~'
23233 + else
23234 + ltdll_obj=
23235 + ltdll_cmds=
23236 + fi
23237 +
23238 + # Extract the symbol export list from an `--export-all' def file,
23239 + # then regenerate the def file from the symbol export list, so that
23240 + # the compiled dll only exports the symbol export list.
23241 + # Be careful not to strip the DATA tag left be newer dlltools.
23242 + export_symbols_cmds="$ltdll_cmds"'
23243 + $DLLTOOL --export-all --exclude-symbols '$dll_exclude_symbols' --output-def $output_objdir/$soname-def '$ltdll_obj'$libobjs $convenience~
23244 + sed -e "1,/EXPORTS/d" -e "s/ @ [0-9]*//" -e "s/ *;.*$//" < $output_objdir/$soname-def > $export_symbols'
23245 +
23246 + # If the export-symbols file already is a .def file (1st line
23247 + # is EXPORTS), use it as is.
23248 + # If DATA tags from a recent dlltool are present, honour them!
23249 + archive_expsym_cmds='if test "x`sed 1q $export_symbols`" = xEXPORTS; then
23250 + cp $export_symbols $output_objdir/$soname-def;
23251 + else
23252 + echo EXPORTS > $output_objdir/$soname-def;
23253 + _lt_hint=1;
23254 + cat $export_symbols | while read symbol; do
23255 + set dummy \$symbol;
23256 + case \$# in
23257 + 2) echo " \$2 @ \$_lt_hint ; " >> $output_objdir/$soname-def;;
23258 + 4) echo " \$2 \$3 \$4 ; " >> $output_objdir/$soname-def; _lt_hint=`expr \$_lt_hint - 1`;;
23259 + *) echo " \$2 @ \$_lt_hint \$3 ; " >> $output_objdir/$soname-def;;
23260 + esac;
23261 + _lt_hint=`expr 1 + \$_lt_hint`;
23262 + done;
23263 + fi~
23264 + '"$ltdll_cmds"'
23265 + $CC -Wl,--base-file,$output_objdir/$soname-base '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $output_objdir/$soname '$ltdll_obj'$libobjs $deplibs $compiler_flags~
23266 + $DLLTOOL --as=$AS --dllname $soname --exclude-symbols '$dll_exclude_symbols' --def $output_objdir/$soname-def --base-file $output_objdir/$soname-base --output-exp $output_objdir/$soname-exp~
23267 + $CC -Wl,--base-file,$output_objdir/$soname-base $output_objdir/$soname-exp '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $output_objdir/$soname '$ltdll_obj'$libobjs $deplibs $compiler_flags~
23268 + $DLLTOOL --as=$AS --dllname $soname --exclude-symbols '$dll_exclude_symbols' --def $output_objdir/$soname-def --base-file $output_objdir/$soname-base --output-exp $output_objdir/$soname-exp --output-lib $output_objdir/$libname.dll.a~
23269 + $CC $output_objdir/$soname-exp '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $output_objdir/$soname '$ltdll_obj'$libobjs $deplibs $compiler_flags'
23270 + ;;
23271 +
23272 + netbsd* | knetbsd*-gnu)
23273 + if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
23274 + archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
23275 + wlarc=
23276 + else
23277 + archive_cmds='$CC -shared -nodefaultlibs $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
23278 + archive_expsym_cmds='$CC -shared -nodefaultlibs $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
23279 + fi
23280 + ;;
23281 +
23282 + solaris* | sysv5*)
23283 + if $LD -v 2>&1 | egrep 'BFD 2\.8' > /dev/null; then
23284 + ld_shlibs=no
23285 + cat <<EOF 1>&2
23286 +
23287 +*** Warning: The releases 2.8.* of the GNU linker cannot reliably
23288 +*** create shared libraries on Solaris systems. Therefore, libtool
23289 +*** is disabling shared libraries support. We urge you to upgrade GNU
23290 +*** binutils to release 2.9.1 or newer. Another option is to modify
23291 +*** your PATH or compiler configuration so that the native linker is
23292 +*** used, and then restart.
23293 +
23294 +EOF
23295 + elif $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
23296 + archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
23297 + archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
23298 + else
23299 + ld_shlibs=no
23300 + fi
23301 + ;;
23302 +
23303 + sunos4*)
23304 + archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
23305 + wlarc=
23306 + hardcode_direct=yes
23307 + hardcode_shlibpath_var=no
23308 + ;;
23309 +
23310 + *)
23311 + if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
23312 + archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
23313 + archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
23314 + else
23315 + ld_shlibs=no
23316 + fi
23317 + ;;
23318 + esac
23319 +
23320 + if test "$ld_shlibs" = yes; then
23321 + runpath_var=LD_RUN_PATH
23322 + hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
23323 + export_dynamic_flag_spec='${wl}--export-dynamic'
23324 + case $host_os in
23325 + cygwin* | mingw* | pw32*)
23326 + # dlltool doesn't understand --whole-archive et. al.
23327 + whole_archive_flag_spec=
23328 + ;;
23329 + *)
23330 + # ancient GNU ld didn't support --whole-archive et. al.
23331 + if $LD --help 2>&1 | egrep 'no-whole-archive' > /dev/null; then
23332 + whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
23333 + else
23334 + whole_archive_flag_spec=
23335 + fi
23336 + ;;
23337 + esac
23338 + fi
23339 +else
23340 + # PORTME fill in a description of your system's linker (not GNU ld)
23341 + case $host_os in
23342 + aix3*)
23343 + allow_undefined_flag=unsupported
23344 + always_export_symbols=yes
23345 + archive_expsym_cmds='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
23346 + # Note: this linker hardcodes the directories in LIBPATH if there
23347 + # are no directories specified by -L.
23348 + hardcode_minus_L=yes
23349 + if test "$GCC" = yes && test -z "$link_static_flag"; then
23350 + # Neither direct hardcoding nor static linking is supported with a
23351 + # broken collect2.
23352 + hardcode_direct=unsupported
23353 + fi
23354 + ;;
23355 +
23356 + aix4* | aix5*)
23357 + if test "$host_cpu" = ia64; then
23358 + # On IA64, the linker does run time linking by default, so we don't
23359 + # have to do anything special.
23360 + aix_use_runtimelinking=no
23361 + exp_sym_flag='-Bexport'
23362 + no_entry_flag=""
23363 + else
23364 + aix_use_runtimelinking=no
23365 +
23366 + # Test if we are trying to use run time linking or normal
23367 + # AIX style linking. If -brtl is somewhere in LDFLAGS, we
23368 + # need to do runtime linking.
23369 + case $host_os in aix4.[23]|aix4.[23].*|aix5*)
23370 + for ld_flag in $LDFLAGS; do
23371 + case $ld_flag in
23372 + *-brtl*)
23373 + aix_use_runtimelinking=yes
23374 + break
23375 + ;;
23376 + esac
23377 + done
23378 + esac
23379 +
23380 + exp_sym_flag='-bexport'
23381 + no_entry_flag='-bnoentry'
23382 + fi
23383 +
23384 + # When large executables or shared objects are built, AIX ld can
23385 + # have problems creating the table of contents. If linking a library
23386 + # or program results in "error TOC overflow" add -mminimal-toc to
23387 + # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
23388 + # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
23389 +
23390 + hardcode_direct=yes
23391 + archive_cmds=''
23392 + hardcode_libdir_separator=':'
23393 + if test "$GCC" = yes; then
23394 + case $host_os in aix4.[012]|aix4.[012].*)
23395 + collect2name=`${CC} -print-prog-name=collect2`
23396 + if test -f "$collect2name" && \
23397 + strings "$collect2name" | grep resolve_lib_name >/dev/null
23398 + then
23399 + # We have reworked collect2
23400 + hardcode_direct=yes
23401 + else
23402 + # We have old collect2
23403 + hardcode_direct=unsupported
23404 + # It fails to find uninstalled libraries when the uninstalled
23405 + # path is not listed in the libpath. Setting hardcode_minus_L
23406 + # to unsupported forces relinking
23407 + hardcode_minus_L=yes
23408 + hardcode_libdir_flag_spec='-L$libdir'
23409 + hardcode_libdir_separator=
23410 + fi
23411 + esac
23412
23413 - hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
23414 - # Warning - without using the other run time loading flags,
23415 - # -berok will link without error, but may produce a broken library.
23416 - no_undefined_flag_GCJ=' ${wl}-bernotok'
23417 - allow_undefined_flag_GCJ=' ${wl}-berok'
23418 - # -bexpall does not export symbols beginning with underscore (_)
23419 - always_export_symbols_GCJ=yes
23420 - # Exported symbols can be pulled into shared objects from archives
23421 - whole_archive_flag_spec_GCJ=' '
23422 - archive_cmds_need_lc_GCJ=yes
23423 - # This is similar to how AIX traditionally builds its shared libraries.
23424 - archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
23425 + shared_flag='-shared'
23426 + else
23427 + # not using gcc
23428 + if test "$host_cpu" = ia64; then
23429 + shared_flag='${wl}-G'
23430 + else
23431 + if test "$aix_use_runtimelinking" = yes; then
23432 + shared_flag='${wl}-G'
23433 + else
23434 + shared_flag='${wl}-bM:SRE'
23435 fi
23436 fi
23437 - ;;
23438 -
23439 - amigaos*)
23440 - 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)'
23441 - hardcode_libdir_flag_spec_GCJ='-L$libdir'
23442 - hardcode_minus_L_GCJ=yes
23443 - # see comment about different semantics on the GNU ld section
23444 - ld_shlibs_GCJ=no
23445 - ;;
23446 -
23447 - bsdi[45]*)
23448 - export_dynamic_flag_spec_GCJ=-rdynamic
23449 - ;;
23450 -
23451 - cygwin* | mingw* | pw32*)
23452 - # When not using gcc, we currently assume that we are using
23453 - # Microsoft Visual C++.
23454 - # hardcode_libdir_flag_spec is actually meaningless, as there is
23455 - # no search path for DLLs.
23456 - hardcode_libdir_flag_spec_GCJ=' '
23457 - allow_undefined_flag_GCJ=unsupported
23458 - # Tell ltmain to make .lib files, not .a files.
23459 - libext=lib
23460 - # Tell ltmain to make .dll files, not .so files.
23461 - shrext_cmds=".dll"
23462 - # FIXME: Setting linknames here is a bad hack.
23463 - archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
23464 - # The linker will automatically build a .lib file if we build a DLL.
23465 - old_archive_From_new_cmds_GCJ='true'
23466 - # FIXME: Should let the user specify the lib program.
23467 - old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
23468 - fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
23469 - enable_shared_with_static_runtimes_GCJ=yes
23470 - ;;
23471 + fi
23472
23473 - darwin* | rhapsody*)
23474 - case $host_os in
23475 - rhapsody* | darwin1.[012])
23476 - allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
23477 - ;;
23478 - *) # Darwin 1.3 on
23479 - if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
23480 - allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
23481 - else
23482 - case ${MACOSX_DEPLOYMENT_TARGET} in
23483 - 10.[012])
23484 - allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
23485 - ;;
23486 - 10.*)
23487 - allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
23488 - ;;
23489 - esac
23490 - fi
23491 - ;;
23492 - esac
23493 - archive_cmds_need_lc_GCJ=no
23494 - hardcode_direct_GCJ=no
23495 - hardcode_automatic_GCJ=yes
23496 - hardcode_shlibpath_var_GCJ=unsupported
23497 - whole_archive_flag_spec_GCJ=''
23498 - link_all_deplibs_GCJ=yes
23499 - if test "$GCC" = yes ; then
23500 - output_verbose_link_cmd='echo'
23501 - archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
23502 - module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
23503 - # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
23504 - 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}'
23505 - 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}'
23506 + # It seems that -bexpall can do strange things, so it is better to
23507 + # generate a list of symbols to export.
23508 + always_export_symbols=yes
23509 + if test "$aix_use_runtimelinking" = yes; then
23510 + # Warning - without using the other runtime loading flags (-brtl),
23511 + # -berok will link without error, but may produce a broken library.
23512 + allow_undefined_flag='-berok'
23513 + hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:/usr/lib:/lib'
23514 + archive_expsym_cmds="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
23515 else
23516 - case $cc_basename in
23517 - xlc*)
23518 - output_verbose_link_cmd='echo'
23519 - archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
23520 - module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
23521 - # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
23522 - 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 $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
23523 - 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}'
23524 - ;;
23525 - *)
23526 - ld_shlibs_GCJ=no
23527 - ;;
23528 - esac
23529 + if test "$host_cpu" = ia64; then
23530 + hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
23531 + allow_undefined_flag="-z nodefs"
23532 + archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname ${wl}-h$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
23533 + else
23534 + hardcode_libdir_flag_spec='${wl}-bnolibpath ${wl}-blibpath:$libdir:/usr/lib:/lib'
23535 + # Warning - without using the other run time loading flags,
23536 + # -berok will link without error, but may produce a broken library.
23537 + allow_undefined_flag='${wl}-berok'
23538 + # This is a bit strange, but is similar to how AIX traditionally builds
23539 + # it's shared libraries.
23540 + archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"' ~$AR -crlo $output_objdir/$libname$release.a $output_objdir/$soname'
23541 + fi
23542 fi
23543 - ;;
23544 + ;;
23545
23546 - dgux*)
23547 - archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
23548 - hardcode_libdir_flag_spec_GCJ='-L$libdir'
23549 - hardcode_shlibpath_var_GCJ=no
23550 - ;;
23551 + amigaos*)
23552 + 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)'
23553 + hardcode_libdir_flag_spec='-L$libdir'
23554 + hardcode_minus_L=yes
23555 + # see comment about different semantics on the GNU ld section
23556 + ld_shlibs=no
23557 + ;;
23558
23559 - freebsd1*)
23560 - ld_shlibs_GCJ=no
23561 - ;;
23562 + cygwin* | mingw* | pw32*)
23563 + # When not using gcc, we currently assume that we are using
23564 + # Microsoft Visual C++.
23565 + # hardcode_libdir_flag_spec is actually meaningless, as there is
23566 + # no search path for DLLs.
23567 + hardcode_libdir_flag_spec=' '
23568 + allow_undefined_flag=unsupported
23569 + # Tell ltmain to make .lib files, not .a files.
23570 + libext=lib
23571 + # FIXME: Setting linknames here is a bad hack.
23572 + archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | sed -e '\''s/ -lc$//'\''` -link -dll~linknames='
23573 + # The linker will automatically build a .lib file if we build a DLL.
23574 + old_archive_from_new_cmds='true'
23575 + # FIXME: Should let the user specify the lib program.
23576 + old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
23577 + fix_srcfile_path='`cygpath -w "$srcfile"`'
23578 + ;;
23579 +
23580 + darwin* | rhapsody*)
23581 + case "$host_os" in
23582 + rhapsody* | darwin1.[012])
23583 + allow_undefined_flag='-undefined suppress'
23584 + ;;
23585 + *) # Darwin 1.3 on
23586 + allow_undefined_flag='-flat_namespace -undefined suppress'
23587 + ;;
23588 + esac
23589 + # FIXME: Relying on posixy $() will cause problems for
23590 + # cross-compilation, but unfortunately the echo tests do not
23591 + # yet detect zsh echo's removal of \ escapes. Also zsh mangles
23592 + # `"' quotes if we put them in here... so don't!
23593 + archive_cmds='$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs && $CC $(test .$module = .yes && echo -bundle || echo -dynamiclib) $allow_undefined_flag -o $lib ${lib}-master.o $deplibs$linker_flags $(test .$module != .yes && echo -install_name $rpath/$soname $verstring)'
23594 + # We need to add '_' to the symbols in $export_symbols first
23595 + #archive_expsym_cmds="$archive_cmds"' && strip -s $export_symbols'
23596 + hardcode_direct=yes
23597 + hardcode_shlibpath_var=no
23598 + whole_archive_flag_spec='-all_load $convenience'
23599 + ;;
23600 +
23601 + freebsd1*)
23602 + ld_shlibs=no
23603 + ;;
23604 +
23605 + # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
23606 + # support. Future versions do this automatically, but an explicit c++rt0.o
23607 + # does not break anything, and helps significantly (at the cost of a little
23608 + # extra space).
23609 + freebsd2.2*)
23610 + archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
23611 + hardcode_libdir_flag_spec='-R$libdir'
23612 + hardcode_direct=yes
23613 + hardcode_shlibpath_var=no
23614 + ;;
23615
23616 - # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
23617 - # support. Future versions do this automatically, but an explicit c++rt0.o
23618 - # does not break anything, and helps significantly (at the cost of a little
23619 - # extra space).
23620 - freebsd2.2*)
23621 - archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
23622 - hardcode_libdir_flag_spec_GCJ='-R$libdir'
23623 - hardcode_direct_GCJ=yes
23624 - hardcode_shlibpath_var_GCJ=no
23625 - ;;
23626 + # Unfortunately, older versions of FreeBSD 2 do not have this feature.
23627 + freebsd2*)
23628 + archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
23629 + hardcode_direct=yes
23630 + hardcode_minus_L=yes
23631 + hardcode_shlibpath_var=no
23632 + ;;
23633
23634 - # Unfortunately, older versions of FreeBSD 2 do not have this feature.
23635 - freebsd2*)
23636 - archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
23637 - hardcode_direct_GCJ=yes
23638 - hardcode_minus_L_GCJ=yes
23639 - hardcode_shlibpath_var_GCJ=no
23640 - ;;
23641 + # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
23642 + freebsd*)
23643 + archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
23644 + hardcode_libdir_flag_spec='-R$libdir'
23645 + hardcode_direct=yes
23646 + hardcode_shlibpath_var=no
23647 + ;;
23648
23649 - # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
23650 - freebsd* | kfreebsd*-gnu | dragonfly*)
23651 - archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
23652 - hardcode_libdir_flag_spec_GCJ='-R$libdir'
23653 - hardcode_direct_GCJ=yes
23654 - hardcode_shlibpath_var_GCJ=no
23655 - ;;
23656 + hpux9* | hpux10* | hpux11*)
23657 + case $host_os in
23658 + hpux9*) 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' ;;
23659 + *) archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' ;;
23660 + esac
23661 + hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
23662 + hardcode_libdir_separator=:
23663 + hardcode_direct=yes
23664 + hardcode_minus_L=yes # Not in the search PATH, but as the default
23665 + # location of the library.
23666 + export_dynamic_flag_spec='${wl}-E'
23667 + ;;
23668
23669 - hpux9*)
23670 - if test "$GCC" = yes; then
23671 - 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'
23672 - else
23673 - 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'
23674 - fi
23675 - hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
23676 - hardcode_libdir_separator_GCJ=:
23677 - hardcode_direct_GCJ=yes
23678 -
23679 - # hardcode_minus_L: Not really in the search PATH,
23680 - # but as the default location of the library.
23681 - hardcode_minus_L_GCJ=yes
23682 - export_dynamic_flag_spec_GCJ='${wl}-E'
23683 - ;;
23684 + irix5* | irix6* | nonstopux*)
23685 + if test "$GCC" = yes; then
23686 + 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'
23687 + hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
23688 + else
23689 + 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'
23690 + hardcode_libdir_flag_spec='-rpath $libdir'
23691 + fi
23692 + hardcode_libdir_separator=:
23693 + link_all_deplibs=yes
23694 + ;;
23695
23696 - hpux10* | hpux11*)
23697 - if test "$GCC" = yes -a "$with_gnu_ld" = no; then
23698 - case $host_cpu in
23699 - hppa*64*|ia64*)
23700 - archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
23701 - ;;
23702 - *)
23703 - archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
23704 - ;;
23705 - esac
23706 - else
23707 - case $host_cpu in
23708 - hppa*64*|ia64*)
23709 - archive_cmds_GCJ='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
23710 - ;;
23711 - *)
23712 - archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
23713 - ;;
23714 - esac
23715 - fi
23716 - if test "$with_gnu_ld" = no; then
23717 - case $host_cpu in
23718 - hppa*64*)
23719 - hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
23720 - hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
23721 - hardcode_libdir_separator_GCJ=:
23722 - hardcode_direct_GCJ=no
23723 - hardcode_shlibpath_var_GCJ=no
23724 - ;;
23725 - ia64*)
23726 - hardcode_libdir_flag_spec_GCJ='-L$libdir'
23727 - hardcode_direct_GCJ=no
23728 - hardcode_shlibpath_var_GCJ=no
23729 -
23730 - # hardcode_minus_L: Not really in the search PATH,
23731 - # but as the default location of the library.
23732 - hardcode_minus_L_GCJ=yes
23733 - ;;
23734 - *)
23735 - hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
23736 - hardcode_libdir_separator_GCJ=:
23737 - hardcode_direct_GCJ=yes
23738 - export_dynamic_flag_spec_GCJ='${wl}-E'
23739 -
23740 - # hardcode_minus_L: Not really in the search PATH,
23741 - # but as the default location of the library.
23742 - hardcode_minus_L_GCJ=yes
23743 - ;;
23744 - esac
23745 - fi
23746 - ;;
23747 + netbsd* | knetbsd*-gnu)
23748 + if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
23749 + archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
23750 + else
23751 + archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
23752 + fi
23753 + hardcode_libdir_flag_spec='-R$libdir'
23754 + hardcode_direct=yes
23755 + hardcode_shlibpath_var=no
23756 + ;;
23757
23758 - irix5* | irix6* | nonstopux*)
23759 - if test "$GCC" = yes; then
23760 - 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'
23761 - else
23762 - 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'
23763 - hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
23764 - fi
23765 - hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
23766 - hardcode_libdir_separator_GCJ=:
23767 - link_all_deplibs_GCJ=yes
23768 - ;;
23769 + newsos6)
23770 + archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
23771 + hardcode_direct=yes
23772 + hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
23773 + hardcode_libdir_separator=:
23774 + hardcode_shlibpath_var=no
23775 + ;;
23776
23777 - netbsd*)
23778 - if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
23779 - archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
23780 - else
23781 - archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
23782 - fi
23783 - hardcode_libdir_flag_spec_GCJ='-R$libdir'
23784 - hardcode_direct_GCJ=yes
23785 - hardcode_shlibpath_var_GCJ=no
23786 - ;;
23787 + openbsd*)
23788 + hardcode_direct=yes
23789 + hardcode_shlibpath_var=no
23790 + if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
23791 + archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
23792 + hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
23793 + export_dynamic_flag_spec='${wl}-E'
23794 + else
23795 + case "$host_os" in
23796 + openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
23797 + archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
23798 + hardcode_libdir_flag_spec='-R$libdir'
23799 + ;;
23800 + *)
23801 + archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
23802 + hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
23803 + ;;
23804 + esac
23805 + fi
23806 + ;;
23807
23808 - newsos6)
23809 - archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
23810 - hardcode_direct_GCJ=yes
23811 - hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
23812 - hardcode_libdir_separator_GCJ=:
23813 - hardcode_shlibpath_var_GCJ=no
23814 - ;;
23815 + os2*)
23816 + hardcode_libdir_flag_spec='-L$libdir'
23817 + hardcode_minus_L=yes
23818 + allow_undefined_flag=unsupported
23819 + 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'
23820 + old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
23821 + ;;
23822
23823 - openbsd*)
23824 - hardcode_direct_GCJ=yes
23825 - hardcode_shlibpath_var_GCJ=no
23826 - if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
23827 - archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
23828 - archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
23829 - hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
23830 - export_dynamic_flag_spec_GCJ='${wl}-E'
23831 - else
23832 - case $host_os in
23833 - openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
23834 - archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
23835 - hardcode_libdir_flag_spec_GCJ='-R$libdir'
23836 - ;;
23837 - *)
23838 - archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
23839 - hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
23840 - ;;
23841 - esac
23842 - fi
23843 - ;;
23844 + osf3*)
23845 + if test "$GCC" = yes; then
23846 + allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
23847 + 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'
23848 + else
23849 + allow_undefined_flag=' -expect_unresolved \*'
23850 + 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'
23851 + fi
23852 + hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
23853 + hardcode_libdir_separator=:
23854 + ;;
23855
23856 - os2*)
23857 - hardcode_libdir_flag_spec_GCJ='-L$libdir'
23858 - hardcode_minus_L_GCJ=yes
23859 - allow_undefined_flag_GCJ=unsupported
23860 - 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'
23861 - old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
23862 - ;;
23863 + osf4* | osf5*) # as osf3* with the addition of -msym flag
23864 + if test "$GCC" = yes; then
23865 + allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
23866 + 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'
23867 + hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
23868 + else
23869 + allow_undefined_flag=' -expect_unresolved \*'
23870 + 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'
23871 + archive_expsym_cmds='for i in `cat $export_symbols`; do printf "-exported_symbol " >> $lib.exp; echo "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
23872 + $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib~$rm $lib.exp'
23873
23874 - osf3*)
23875 - if test "$GCC" = yes; then
23876 - allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
23877 - 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'
23878 - else
23879 - allow_undefined_flag_GCJ=' -expect_unresolved \*'
23880 - 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'
23881 - fi
23882 - hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
23883 - hardcode_libdir_separator_GCJ=:
23884 - ;;
23885 + #Both c and cxx compiler support -rpath directly
23886 + hardcode_libdir_flag_spec='-rpath $libdir'
23887 + fi
23888 + hardcode_libdir_separator=:
23889 + ;;
23890
23891 - osf4* | osf5*) # as osf3* with the addition of -msym flag
23892 - if test "$GCC" = yes; then
23893 - allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
23894 - 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'
23895 - hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
23896 - else
23897 - allow_undefined_flag_GCJ=' -expect_unresolved \*'
23898 - 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'
23899 - 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~
23900 - $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'
23901 + sco3.2v5*)
23902 + archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
23903 + hardcode_shlibpath_var=no
23904 + runpath_var=LD_RUN_PATH
23905 + hardcode_runpath_var=yes
23906 + export_dynamic_flag_spec='${wl}-Bexport'
23907 + ;;
23908
23909 - # Both c and cxx compiler support -rpath directly
23910 - hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
23911 - fi
23912 - hardcode_libdir_separator_GCJ=:
23913 - ;;
23914 + solaris*)
23915 + # gcc --version < 3.0 without binutils cannot create self contained
23916 + # shared libraries reliably, requiring libgcc.a to resolve some of
23917 + # the object symbols generated in some cases. Libraries that use
23918 + # assert need libgcc.a to resolve __eprintf, for example. Linking
23919 + # a copy of libgcc.a into every shared library to guarantee resolving
23920 + # such symbols causes other problems: According to Tim Van Holder
23921 + # <tim.van.holder@pandora.be>, C++ libraries end up with a separate
23922 + # (to the application) exception stack for one thing.
23923 + no_undefined_flag=' -z defs'
23924 + if test "$GCC" = yes; then
23925 + case `$CC --version 2>/dev/null` in
23926 + [12].*)
23927 + cat <<EOF 1>&2
23928
23929 - sco3.2v5*)
23930 - archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
23931 - hardcode_shlibpath_var_GCJ=no
23932 - export_dynamic_flag_spec_GCJ='${wl}-Bexport'
23933 - runpath_var=LD_RUN_PATH
23934 - hardcode_runpath_var=yes
23935 - ;;
23936 +*** Warning: Releases of GCC earlier than version 3.0 cannot reliably
23937 +*** create self contained shared libraries on Solaris systems, without
23938 +*** introducing a dependency on libgcc.a. Therefore, libtool is disabling
23939 +*** -no-undefined support, which will at least allow you to build shared
23940 +*** libraries. However, you may find that when you link such libraries
23941 +*** into an application without using GCC, you have to manually add
23942 +*** \`gcc --print-libgcc-file-name\` to the link command. We urge you to
23943 +*** upgrade to a newer version of GCC. Another option is to rebuild your
23944 +*** current GCC to use the GNU linker from GNU binutils 2.9.1 or newer.
23945
23946 - solaris*)
23947 - no_undefined_flag_GCJ=' -z text'
23948 - if test "$GCC" = yes; then
23949 - wlarc='${wl}'
23950 - archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
23951 - archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
23952 - $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
23953 - else
23954 - wlarc=''
23955 - archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
23956 - archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
23957 - $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
23958 - fi
23959 - hardcode_libdir_flag_spec_GCJ='-R$libdir'
23960 - hardcode_shlibpath_var_GCJ=no
23961 - case $host_os in
23962 - solaris2.[0-5] | solaris2.[0-5].*) ;;
23963 - *)
23964 - # The compiler driver will combine linker options so we
23965 - # cannot just pass the convience library names through
23966 - # without $wl, iff we do not link with $LD.
23967 - # Luckily, gcc supports the same syntax we need for Sun Studio.
23968 - # Supported since Solaris 2.6 (maybe 2.5.1?)
23969 - case $wlarc in
23970 - '')
23971 - whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
23972 - *)
23973 - whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
23974 - esac ;;
23975 +EOF
23976 + no_undefined_flag=
23977 + ;;
23978 esac
23979 - link_all_deplibs_GCJ=yes
23980 - ;;
23981 + fi
23982 + # $CC -shared without GNU ld will not create a library from C++
23983 + # object files and a static libstdc++, better avoid it by now
23984 + archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
23985 + archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
23986 + $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
23987 + hardcode_libdir_flag_spec='-R$libdir'
23988 + hardcode_shlibpath_var=no
23989 + case $host_os in
23990 + solaris2.[0-5] | solaris2.[0-5].*) ;;
23991 + *) # Supported since Solaris 2.6 (maybe 2.5.1?)
23992 + whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
23993 + esac
23994 + link_all_deplibs=yes
23995 + ;;
23996
23997 - sunos4*)
23998 - if test "x$host_vendor" = xsequent; then
23999 - # Use $CC to link under sequent, because it throws in some extra .o
24000 - # files that make .init and .fini sections work.
24001 - archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
24002 - else
24003 - archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
24004 - fi
24005 - hardcode_libdir_flag_spec_GCJ='-L$libdir'
24006 - hardcode_direct_GCJ=yes
24007 - hardcode_minus_L_GCJ=yes
24008 - hardcode_shlibpath_var_GCJ=no
24009 - ;;
24010 + sunos4*)
24011 + if test "x$host_vendor" = xsequent; then
24012 + # Use $CC to link under sequent, because it throws in some extra .o
24013 + # files that make .init and .fini sections work.
24014 + archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
24015 + else
24016 + archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
24017 + fi
24018 + hardcode_libdir_flag_spec='-L$libdir'
24019 + hardcode_direct=yes
24020 + hardcode_minus_L=yes
24021 + hardcode_shlibpath_var=no
24022 + ;;
24023
24024 - sysv4)
24025 - case $host_vendor in
24026 - sni)
24027 - archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
24028 - hardcode_direct_GCJ=yes # is this really true???
24029 - ;;
24030 - siemens)
24031 - ## LD is ld it makes a PLAMLIB
24032 - ## CC just makes a GrossModule.
24033 - archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
24034 - reload_cmds_GCJ='$CC -r -o $output$reload_objs'
24035 - hardcode_direct_GCJ=no
24036 + sysv4)
24037 + case $host_vendor in
24038 + sni)
24039 + archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
24040 + hardcode_direct=yes # is this really true???
24041 ;;
24042 - motorola)
24043 - archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
24044 - hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
24045 - ;;
24046 - esac
24047 - runpath_var='LD_RUN_PATH'
24048 - hardcode_shlibpath_var_GCJ=no
24049 - ;;
24050 + siemens)
24051 + ## LD is ld it makes a PLAMLIB
24052 + ## CC just makes a GrossModule.
24053 + archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
24054 + reload_cmds='$CC -r -o $output$reload_objs'
24055 + hardcode_direct=no
24056 + ;;
24057 + motorola)
24058 + archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
24059 + hardcode_direct=no #Motorola manual says yes, but my tests say they lie
24060 + ;;
24061 + esac
24062 + runpath_var='LD_RUN_PATH'
24063 + hardcode_shlibpath_var=no
24064 + ;;
24065
24066 - sysv4.3*)
24067 - archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
24068 - hardcode_shlibpath_var_GCJ=no
24069 - export_dynamic_flag_spec_GCJ='-Bexport'
24070 - ;;
24071 + sysv4.3*)
24072 + archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
24073 + hardcode_shlibpath_var=no
24074 + export_dynamic_flag_spec='-Bexport'
24075 + ;;
24076 +
24077 + sysv5*)
24078 + no_undefined_flag=' -z text'
24079 + # $CC -shared without GNU ld will not create a library from C++
24080 + # object files and a static libstdc++, better avoid it by now
24081 + archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
24082 + archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
24083 + $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
24084 + hardcode_libdir_flag_spec=
24085 + hardcode_shlibpath_var=no
24086 + runpath_var='LD_RUN_PATH'
24087 + ;;
24088 +
24089 + uts4*)
24090 + archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
24091 + hardcode_libdir_flag_spec='-L$libdir'
24092 + hardcode_shlibpath_var=no
24093 + ;;
24094
24095 - sysv4*MP*)
24096 - if test -d /usr/nec; then
24097 - archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
24098 - hardcode_shlibpath_var_GCJ=no
24099 - runpath_var=LD_RUN_PATH
24100 - hardcode_runpath_var=yes
24101 - ld_shlibs_GCJ=yes
24102 - fi
24103 - ;;
24104 + dgux*)
24105 + archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
24106 + hardcode_libdir_flag_spec='-L$libdir'
24107 + hardcode_shlibpath_var=no
24108 + ;;
24109
24110 - sysv4.2uw2*)
24111 - archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
24112 - hardcode_direct_GCJ=yes
24113 - hardcode_minus_L_GCJ=no
24114 - hardcode_shlibpath_var_GCJ=no
24115 - hardcode_runpath_var=yes
24116 + sysv4*MP*)
24117 + if test -d /usr/nec; then
24118 + archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
24119 + hardcode_shlibpath_var=no
24120 runpath_var=LD_RUN_PATH
24121 - ;;
24122 -
24123 - sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
24124 - no_undefined_flag_GCJ='${wl}-z ${wl}text'
24125 - if test "$GCC" = yes; then
24126 - archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
24127 - else
24128 - archive_cmds_GCJ='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
24129 - fi
24130 - runpath_var='LD_RUN_PATH'
24131 - hardcode_shlibpath_var_GCJ=no
24132 - ;;
24133 + hardcode_runpath_var=yes
24134 + ld_shlibs=yes
24135 + fi
24136 + ;;
24137
24138 - sysv5*)
24139 - no_undefined_flag_GCJ=' -z text'
24140 - # $CC -shared without GNU ld will not create a library from C++
24141 - # object files and a static libstdc++, better avoid it by now
24142 - archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
24143 - archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
24144 - $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
24145 - hardcode_libdir_flag_spec_GCJ=
24146 - hardcode_shlibpath_var_GCJ=no
24147 - runpath_var='LD_RUN_PATH'
24148 - ;;
24149 + sysv4.2uw2*)
24150 + archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
24151 + hardcode_direct=yes
24152 + hardcode_minus_L=no
24153 + hardcode_shlibpath_var=no
24154 + hardcode_runpath_var=yes
24155 + runpath_var=LD_RUN_PATH
24156 + ;;
24157
24158 - uts4*)
24159 - archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
24160 - hardcode_libdir_flag_spec_GCJ='-L$libdir'
24161 - hardcode_shlibpath_var_GCJ=no
24162 - ;;
24163 + sysv5uw7* | unixware7*)
24164 + no_undefined_flag='${wl}-z ${wl}text'
24165 + if test "$GCC" = yes; then
24166 + archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
24167 + else
24168 + archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
24169 + fi
24170 + runpath_var='LD_RUN_PATH'
24171 + hardcode_shlibpath_var=no
24172 + ;;
24173
24174 - *)
24175 - ld_shlibs_GCJ=no
24176 - ;;
24177 - esac
24178 - fi
24179 + *)
24180 + ld_shlibs=no
24181 + ;;
24182 + esac
24183 +fi
24184 +echo "$as_me:$LINENO: result: $ld_shlibs" >&5
24185 +echo "${ECHO_T}$ld_shlibs" >&6
24186 +test "$ld_shlibs" = no && can_build_shared=no
24187
24188 -echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
24189 -echo "${ECHO_T}$ld_shlibs_GCJ" >&6
24190 -test "$ld_shlibs_GCJ" = no && can_build_shared=no
24191 +# Check hardcoding attributes.
24192 +echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
24193 +echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
24194 +hardcode_action=
24195 +if test -n "$hardcode_libdir_flag_spec" || \
24196 + test -n "$runpath_var"; then
24197
24198 -variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
24199 -if test "$GCC" = yes; then
24200 - variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
24201 + # We can hardcode non-existant directories.
24202 + if test "$hardcode_direct" != no &&
24203 + # If the only mechanism to avoid hardcoding is shlibpath_var, we
24204 + # have to relink, otherwise we might link with an installed library
24205 + # when we should be linking with a yet-to-be-installed one
24206 + ## test "$hardcode_shlibpath_var" != no &&
24207 + test "$hardcode_minus_L" != no; then
24208 + # Linking always hardcodes the temporary library directory.
24209 + hardcode_action=relink
24210 + else
24211 + # We can link without hardcoding, and we can hardcode nonexisting dirs.
24212 + hardcode_action=immediate
24213 + fi
24214 +else
24215 + # We cannot hardcode anything, or else we can only hardcode existing
24216 + # directories.
24217 + hardcode_action=unsupported
24218 fi
24219 +echo "$as_me:$LINENO: result: $hardcode_action" >&5
24220 +echo "${ECHO_T}$hardcode_action" >&6
24221
24222 -#
24223 -# Do we need to explicitly link libc?
24224 -#
24225 -case "x$archive_cmds_need_lc_GCJ" in
24226 -x|xyes)
24227 - # Assume -lc should be added
24228 - archive_cmds_need_lc_GCJ=yes
24229 -
24230 - if test "$enable_shared" = yes && test "$GCC" = yes; then
24231 - case $archive_cmds_GCJ in
24232 - *'~'*)
24233 - # FIXME: we may have to deal with multi-command sequences.
24234 - ;;
24235 - '$CC '*)
24236 - # Test whether the compiler implicitly links with -lc since on some
24237 - # systems, -lgcc has to come before -lc. If gcc already passes -lc
24238 - # to ld, don't add -lc before -lgcc.
24239 - echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
24240 -echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
24241 - $rm conftest*
24242 - printf "$lt_simple_compile_test_code" > conftest.$ac_ext
24243 +striplib=
24244 +old_striplib=
24245 +echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
24246 +echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
24247 +if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
24248 + test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
24249 + test -z "$striplib" && striplib="$STRIP --strip-unneeded"
24250 + echo "$as_me:$LINENO: result: yes" >&5
24251 +echo "${ECHO_T}yes" >&6
24252 +else
24253 + echo "$as_me:$LINENO: result: no" >&5
24254 +echo "${ECHO_T}no" >&6
24255 +fi
24256
24257 - if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24258 - (eval $ac_compile) 2>&5
24259 - ac_status=$?
24260 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
24261 - (exit $ac_status); } 2>conftest.err; then
24262 - soname=conftest
24263 - lib=conftest
24264 - libobjs=conftest.$ac_objext
24265 - deplibs=
24266 - wl=$lt_prog_compiler_wl_GCJ
24267 - compiler_flags=-v
24268 - linker_flags=-v
24269 - verstring=
24270 - output_objdir=.
24271 - libname=conftest
24272 - lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
24273 - allow_undefined_flag_GCJ=
24274 - if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
24275 - (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
24276 - ac_status=$?
24277 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
24278 - (exit $ac_status); }
24279 - then
24280 - archive_cmds_need_lc_GCJ=no
24281 - else
24282 - archive_cmds_need_lc_GCJ=yes
24283 - fi
24284 - allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
24285 - else
24286 - cat conftest.err 1>&5
24287 - fi
24288 - $rm conftest*
24289 - echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
24290 -echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
24291 - ;;
24292 - esac
24293 - fi
24294 - ;;
24295 -esac
24296 +reload_cmds='$LD$reload_flag -o $output$reload_objs'
24297 +test -z "$deplibs_check_method" && deplibs_check_method=unknown
24298
24299 +# PORTME Fill in your ld.so characteristics
24300 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
24301 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
24302 library_names_spec=
24303 libname_spec='lib$name'
24304 soname_spec=
24305 -shrext_cmds=".so"
24306 postinstall_cmds=
24307 postuninstall_cmds=
24308 finish_cmds=
24309 @@ -17175,35 +6214,16 @@
24310 version_type=none
24311 dynamic_linker="$host_os ld.so"
24312 sys_lib_dlsearch_path_spec="/lib /usr/lib"
24313 -if test "$GCC" = yes; then
24314 - sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
24315 - if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
24316 - # if the path contains ";" then we assume it to be the separator
24317 - # otherwise default to the standard path separator (i.e. ":") - it is
24318 - # assumed that no part of a normal pathname contains ";" but that should
24319 - # okay in the real world where ";" in dirpaths is itself problematic.
24320 - sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
24321 - else
24322 - sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
24323 - fi
24324 -else
24325 - sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
24326 -fi
24327 -need_lib_prefix=unknown
24328 -hardcode_into_libs=no
24329 -
24330 -# when you set need_version to no, make sure it does not cause -set_version
24331 -# flags to be left without arguments
24332 -need_version=unknown
24333 +sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
24334
24335 case $host_os in
24336 aix3*)
24337 version_type=linux
24338 - library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
24339 + library_names_spec='${libname}${release}.so$versuffix $libname.a'
24340 shlibpath_var=LIBPATH
24341
24342 - # AIX 3 has no versioning support, so we append a major version to the name.
24343 - soname_spec='${libname}${release}${shared_ext}$major'
24344 + # AIX has no versioning support, so we append a major version to the name.
24345 + soname_spec='${libname}${release}.so$major'
24346 ;;
24347
24348 aix4* | aix5*)
24349 @@ -17213,7 +6233,7 @@
24350 hardcode_into_libs=yes
24351 if test "$host_cpu" = ia64; then
24352 # AIX 5 supports IA64
24353 - library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
24354 + library_names_spec='${libname}${release}.so$major ${libname}${release}.so$versuffix $libname.so'
24355 shlibpath_var=LD_LIBRARY_PATH
24356 else
24357 # With GCC up to 2.95.x, collect2 would create an import file
24358 @@ -17223,54 +6243,57 @@
24359 # development snapshots of GCC prior to 3.0.
24360 case $host_os in
24361 aix4 | aix4.[01] | aix4.[01].*)
24362 - if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
24363 - echo ' yes '
24364 - echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
24365 - :
24366 - else
24367 - can_build_shared=no
24368 - fi
24369 - ;;
24370 + if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
24371 + echo ' yes '
24372 + echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
24373 + :
24374 + else
24375 + can_build_shared=no
24376 + fi
24377 + ;;
24378 esac
24379 - # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
24380 - # soname into executable. Probably we can add versioning support to
24381 - # collect2, so additional links can be useful in future.
24382 + # AIX (on Power*) has no versioning support, so currently we can
24383 + # not hardcode correct soname into executable. Probably we can
24384 + # add versioning support to collect2, so additional links can
24385 + # be useful in future.
24386 if test "$aix_use_runtimelinking" = yes; then
24387 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
24388 # instead of lib<name>.a to let people know that these are not
24389 # typical AIX shared libraries.
24390 - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
24391 + library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
24392 else
24393 # We preserve .a as extension for shared libraries through AIX4.2
24394 # and later when we are not doing run time linking.
24395 library_names_spec='${libname}${release}.a $libname.a'
24396 - soname_spec='${libname}${release}${shared_ext}$major'
24397 + soname_spec='${libname}${release}.so$major'
24398 fi
24399 shlibpath_var=LIBPATH
24400 fi
24401 + hardcode_into_libs=yes
24402 ;;
24403
24404 amigaos*)
24405 library_names_spec='$libname.ixlibrary $libname.a'
24406 # Create ${libname}_ixlibrary.a entries in /sys/libs.
24407 - 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'
24408 + 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'
24409 ;;
24410
24411 beos*)
24412 - library_names_spec='${libname}${shared_ext}'
24413 + library_names_spec='${libname}.so'
24414 dynamic_linker="$host_os ld.so"
24415 shlibpath_var=LIBRARY_PATH
24416 ;;
24417
24418 -bsdi[45]*)
24419 +bsdi4*)
24420 version_type=linux
24421 need_version=no
24422 - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
24423 - soname_spec='${libname}${release}${shared_ext}$major'
24424 + library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
24425 + soname_spec='${libname}${release}.so$major'
24426 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
24427 shlibpath_var=LD_LIBRARY_PATH
24428 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
24429 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
24430 + export_dynamic_flag_spec=-rdynamic
24431 # the default ld.so.conf also contains /usr/contrib/lib and
24432 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
24433 # libtool to hard-code these into programs
24434 @@ -17278,56 +6301,29 @@
24435
24436 cygwin* | mingw* | pw32*)
24437 version_type=windows
24438 - shrext_cmds=".dll"
24439 need_version=no
24440 need_lib_prefix=no
24441 -
24442 case $GCC,$host_os in
24443 - yes,cygwin* | yes,mingw* | yes,pw32*)
24444 + yes,cygwin*)
24445 library_names_spec='$libname.dll.a'
24446 - # DLL is installed to $(libdir)/../bin by postinstall_cmds
24447 - postinstall_cmds='base_file=`basename \${file}`~
24448 - dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
24449 + soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll'
24450 + postinstall_cmds='dlpath=`bash 2>&1 -c '\''. $dir/${file}i;echo \$dlname'\''`~
24451 dldir=$destdir/`dirname \$dlpath`~
24452 test -d \$dldir || mkdir -p \$dldir~
24453 - $install_prog $dir/$dlname \$dldir/$dlname~
24454 - chmod a+x \$dldir/$dlname'
24455 - postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
24456 + $install_prog .libs/$dlname \$dldir/$dlname'
24457 + postuninstall_cmds='dldll=`bash 2>&1 -c '\''. $file; echo \$dlname'\''`~
24458 dlpath=$dir/\$dldll~
24459 $rm \$dlpath'
24460 - shlibpath_overrides_runpath=yes
24461 -
24462 - case $host_os in
24463 - cygwin*)
24464 - # Cygwin DLLs use 'cyg' prefix rather than 'lib'
24465 - soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
24466 - sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
24467 - ;;
24468 - mingw*)
24469 - # MinGW DLLs use traditional 'lib' prefix
24470 - soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
24471 - sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
24472 - if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
24473 - # It is most probably a Windows format PATH printed by
24474 - # mingw gcc, but we are running on Cygwin. Gcc prints its search
24475 - # path with ; separators, and with drive letters. We can handle the
24476 - # drive letters (cygwin fileutils understands them), so leave them,
24477 - # especially as we might pass files found there to a mingw objdump,
24478 - # which wouldn't understand a cygwinified path. Ahh.
24479 - sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
24480 - else
24481 - sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
24482 - fi
24483 - ;;
24484 - pw32*)
24485 - # pw32 DLLs use 'pw' prefix rather than 'lib'
24486 - library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
24487 - ;;
24488 - esac
24489 ;;
24490 -
24491 + yes,mingw*)
24492 + library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll'
24493 + sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | sed -e "s/^libraries://" -e "s/;/ /g" -e "s,=/,/,g"`
24494 + ;;
24495 + yes,pw32*)
24496 + library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | sed -e 's/./-/g'`${versuffix}.dll'
24497 + ;;
24498 *)
24499 - library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
24500 + library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll $libname.lib'
24501 ;;
24502 esac
24503 dynamic_linker='Win32 ld.exe'
24504 @@ -17340,65 +6336,42 @@
24505 version_type=darwin
24506 need_lib_prefix=no
24507 need_version=no
24508 - library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
24509 - soname_spec='${libname}${release}${major}$shared_ext'
24510 + # FIXME: Relying on posixy $() will cause problems for
24511 + # cross-compilation, but unfortunately the echo tests do not
24512 + # yet detect zsh echo's removal of \ escapes.
24513 + library_names_spec='${libname}${release}${versuffix}.$(test .$module = .yes && echo so || echo dylib) ${libname}${release}${major}.$(test .$module = .yes && echo so || echo dylib) ${libname}.$(test .$module = .yes && echo so || echo dylib)'
24514 + soname_spec='${libname}${release}${major}.$(test .$module = .yes && echo so || echo dylib)'
24515 shlibpath_overrides_runpath=yes
24516 shlibpath_var=DYLD_LIBRARY_PATH
24517 - shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
24518 - # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
24519 - if test "$GCC" = yes; then
24520 - sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
24521 - else
24522 - sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
24523 - fi
24524 - sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
24525 - ;;
24526 -
24527 -dgux*)
24528 - version_type=linux
24529 - need_lib_prefix=no
24530 - need_version=no
24531 - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
24532 - soname_spec='${libname}${release}${shared_ext}$major'
24533 - shlibpath_var=LD_LIBRARY_PATH
24534 ;;
24535
24536 freebsd1*)
24537 dynamic_linker=no
24538 ;;
24539
24540 -kfreebsd*-gnu)
24541 +kfreebsd*-gnu*)
24542 version_type=linux
24543 need_lib_prefix=no
24544 need_version=no
24545 - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
24546 - soname_spec='${libname}${release}${shared_ext}$major'
24547 + library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
24548 + soname_spec='${libname}${release}.so$major'
24549 shlibpath_var=LD_LIBRARY_PATH
24550 shlibpath_overrides_runpath=no
24551 hardcode_into_libs=yes
24552 - dynamic_linker='GNU ld.so'
24553 + dynamic_linker='GNU/FreeBSD ld.so'
24554 ;;
24555
24556 -freebsd* | dragonfly*)
24557 - # DragonFly does not have aout. When/if they implement a new
24558 - # versioning mechanism, adjust this.
24559 - if test -x /usr/bin/objformat; then
24560 - objformat=`/usr/bin/objformat`
24561 - else
24562 - case $host_os in
24563 - freebsd[123]*) objformat=aout ;;
24564 - *) objformat=elf ;;
24565 - esac
24566 - fi
24567 +freebsd*)
24568 + objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
24569 version_type=freebsd-$objformat
24570 case $version_type in
24571 freebsd-elf*)
24572 - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
24573 + library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so $libname.so'
24574 need_version=no
24575 need_lib_prefix=no
24576 ;;
24577 freebsd-*)
24578 - library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
24579 + library_names_spec='${libname}${release}.so$versuffix $libname.so$versuffix'
24580 need_version=yes
24581 ;;
24582 esac
24583 @@ -17407,11 +6380,7 @@
24584 freebsd2*)
24585 shlibpath_overrides_runpath=yes
24586 ;;
24587 - freebsd3.[01]* | freebsdelf3.[01]*)
24588 - shlibpath_overrides_runpath=yes
24589 - hardcode_into_libs=yes
24590 - ;;
24591 - *) # from 3.2 on
24592 + *)
24593 shlibpath_overrides_runpath=no
24594 hardcode_into_libs=yes
24595 ;;
24596 @@ -17422,8 +6391,8 @@
24597 version_type=linux
24598 need_lib_prefix=no
24599 need_version=no
24600 - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
24601 - soname_spec='${libname}${release}${shared_ext}$major'
24602 + library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so${major} ${libname}.so'
24603 + soname_spec='${libname}${release}.so$major'
24604 shlibpath_var=LD_LIBRARY_PATH
24605 hardcode_into_libs=yes
24606 ;;
24607 @@ -17431,45 +6400,14 @@
24608 hpux9* | hpux10* | hpux11*)
24609 # Give a soname corresponding to the major version so that dld.sl refuses to
24610 # link against other versions.
24611 + dynamic_linker="$host_os dld.sl"
24612 version_type=sunos
24613 need_lib_prefix=no
24614 need_version=no
24615 - case $host_cpu in
24616 - ia64*)
24617 - shrext_cmds='.so'
24618 - hardcode_into_libs=yes
24619 - dynamic_linker="$host_os dld.so"
24620 - shlibpath_var=LD_LIBRARY_PATH
24621 - shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
24622 - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
24623 - soname_spec='${libname}${release}${shared_ext}$major'
24624 - if test "X$HPUX_IA64_MODE" = X32; then
24625 - sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
24626 - else
24627 - sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
24628 - fi
24629 - sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
24630 - ;;
24631 - hppa*64*)
24632 - shrext_cmds='.sl'
24633 - hardcode_into_libs=yes
24634 - dynamic_linker="$host_os dld.sl"
24635 - shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
24636 - shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
24637 - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
24638 - soname_spec='${libname}${release}${shared_ext}$major'
24639 - sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
24640 - sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
24641 - ;;
24642 - *)
24643 - shrext_cmds='.sl'
24644 - dynamic_linker="$host_os dld.sl"
24645 - shlibpath_var=SHLIB_PATH
24646 - shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
24647 - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
24648 - soname_spec='${libname}${release}${shared_ext}$major'
24649 - ;;
24650 - esac
24651 + shlibpath_var=SHLIB_PATH
24652 + shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
24653 + library_names_spec='${libname}${release}.sl$versuffix ${libname}${release}.sl$major $libname.sl'
24654 + soname_spec='${libname}${release}.sl$major'
24655 # HP-UX runs *really* slowly unless shared libraries are mode 555.
24656 postinstall_cmds='chmod 555 $lib'
24657 ;;
24658 @@ -17477,29 +6415,21 @@
24659 irix5* | irix6* | nonstopux*)
24660 case $host_os in
24661 nonstopux*) version_type=nonstopux ;;
24662 - *)
24663 - if test "$lt_cv_prog_gnu_ld" = yes; then
24664 - version_type=linux
24665 - else
24666 - version_type=irix
24667 - fi ;;
24668 + *) version_type=irix ;;
24669 esac
24670 need_lib_prefix=no
24671 need_version=no
24672 - soname_spec='${libname}${release}${shared_ext}$major'
24673 - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
24674 + soname_spec='${libname}${release}.so$major'
24675 + library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so $libname.so'
24676 case $host_os in
24677 irix5* | nonstopux*)
24678 libsuff= shlibsuff=
24679 ;;
24680 *)
24681 case $LD in # libtool.m4 will add one of these switches to LD
24682 - *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
24683 - libsuff= shlibsuff= libmagic=32-bit;;
24684 - *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
24685 - libsuff=32 shlibsuff=N32 libmagic=N32;;
24686 - *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
24687 - libsuff=64 shlibsuff=64 libmagic=64-bit;;
24688 + *-32|*"-32 ") libsuff= shlibsuff= libmagic=32-bit;;
24689 + *-n32|*"-n32 ") libsuff=32 shlibsuff=N32 libmagic=N32;;
24690 + *-64|*"-64 ") libsuff=64 shlibsuff=64 libmagic=64-bit;;
24691 *) libsuff= shlibsuff= libmagic=never-match;;
24692 esac
24693 ;;
24694 @@ -17508,21 +6438,20 @@
24695 shlibpath_overrides_runpath=no
24696 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
24697 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
24698 - hardcode_into_libs=yes
24699 ;;
24700
24701 # No shared lib support for Linux oldld, aout, or coff.
24702 -linux*oldld* | linux*aout* | linux*coff*)
24703 +linux-gnuoldld* | linux-gnuaout* | linux-gnucoff*)
24704 dynamic_linker=no
24705 ;;
24706
24707 # This must be Linux ELF.
24708 -linux*)
24709 +linux-gnu*)
24710 version_type=linux
24711 need_lib_prefix=no
24712 need_version=no
24713 - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
24714 - soname_spec='${libname}${release}${shared_ext}$major'
24715 + library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
24716 + soname_spec='${libname}${release}.so$major'
24717 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
24718 shlibpath_var=LD_LIBRARY_PATH
24719 shlibpath_overrides_runpath=no
24720 @@ -17531,12 +6460,6 @@
24721 # before this can be enabled.
24722 hardcode_into_libs=yes
24723
24724 - # Append ld.so.conf contents to the search path
24725 - if test -f /etc/ld.so.conf; then
24726 - lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
24727 - sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
24728 - fi
24729 -
24730 # We used to test for /lib/ld.so.1 and disable shared libraries on
24731 # powerpc, because MkLinux only supported shared libraries with the
24732 # GNU dynamic linker. Since this was broken with cross compilers,
24733 @@ -17550,8 +6473,8 @@
24734 version_type=linux
24735 need_lib_prefix=no
24736 need_version=no
24737 - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
24738 - soname_spec='${libname}${release}${shared_ext}$major'
24739 + library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
24740 + soname_spec='${libname}${release}.so$major'
24741 shlibpath_var=LD_LIBRARY_PATH
24742 shlibpath_overrides_runpath=no
24743 hardcode_into_libs=yes
24744 @@ -17563,12 +6486,12 @@
24745 need_lib_prefix=no
24746 need_version=no
24747 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
24748 - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
24749 + library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
24750 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
24751 dynamic_linker='NetBSD (a.out) ld.so'
24752 else
24753 - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
24754 - soname_spec='${libname}${release}${shared_ext}$major'
24755 + library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so ${libname}.so'
24756 + soname_spec='${libname}${release}.so$major'
24757 dynamic_linker='NetBSD ld.elf_so'
24758 fi
24759 shlibpath_var=LD_LIBRARY_PATH
24760 @@ -17578,17 +6501,7 @@
24761
24762 newsos6)
24763 version_type=linux
24764 - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
24765 - shlibpath_var=LD_LIBRARY_PATH
24766 - shlibpath_overrides_runpath=yes
24767 - ;;
24768 -
24769 -nto-qnx*)
24770 - version_type=linux
24771 - need_lib_prefix=no
24772 - need_version=no
24773 - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
24774 - soname_spec='${libname}${release}${shared_ext}$major'
24775 + library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
24776 shlibpath_var=LD_LIBRARY_PATH
24777 shlibpath_overrides_runpath=yes
24778 ;;
24779 @@ -17596,52 +6509,48 @@
24780 openbsd*)
24781 version_type=sunos
24782 need_lib_prefix=no
24783 - # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
24784 - case $host_os in
24785 - openbsd3.3 | openbsd3.3.*) need_version=yes ;;
24786 - *) need_version=no ;;
24787 - esac
24788 - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
24789 - finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
24790 - shlibpath_var=LD_LIBRARY_PATH
24791 + need_version=no
24792 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
24793 - case $host_os in
24794 - openbsd2.[89] | openbsd2.[89].*)
24795 - shlibpath_overrides_runpath=no
24796 - ;;
24797 - *)
24798 - shlibpath_overrides_runpath=yes
24799 - ;;
24800 - esac
24801 + case "$host_os" in
24802 + openbsd2.[89] | openbsd2.[89].*)
24803 + shlibpath_overrides_runpath=no
24804 + ;;
24805 + *)
24806 + shlibpath_overrides_runpath=yes
24807 + ;;
24808 + esac
24809 else
24810 shlibpath_overrides_runpath=yes
24811 fi
24812 + library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
24813 + finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
24814 + shlibpath_var=LD_LIBRARY_PATH
24815 ;;
24816
24817 os2*)
24818 libname_spec='$name'
24819 - shrext_cmds=".dll"
24820 need_lib_prefix=no
24821 - library_names_spec='$libname${shared_ext} $libname.a'
24822 + library_names_spec='$libname.dll $libname.a'
24823 dynamic_linker='OS/2 ld.exe'
24824 shlibpath_var=LIBPATH
24825 ;;
24826
24827 osf3* | osf4* | osf5*)
24828 version_type=osf
24829 - need_lib_prefix=no
24830 need_version=no
24831 - soname_spec='${libname}${release}${shared_ext}$major'
24832 - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
24833 + need_lib_prefix=no
24834 + soname_spec='${libname}${release}.so$major'
24835 + library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
24836 shlibpath_var=LD_LIBRARY_PATH
24837 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
24838 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
24839 + hardcode_into_libs=yes
24840 ;;
24841
24842 sco3.2v5*)
24843 version_type=osf
24844 - soname_spec='${libname}${release}${shared_ext}$major'
24845 - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
24846 + soname_spec='${libname}${release}.so$major'
24847 + library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
24848 shlibpath_var=LD_LIBRARY_PATH
24849 ;;
24850
24851 @@ -17649,8 +6558,8 @@
24852 version_type=linux
24853 need_lib_prefix=no
24854 need_version=no
24855 - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
24856 - soname_spec='${libname}${release}${shared_ext}$major'
24857 + library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
24858 + soname_spec='${libname}${release}.so$major'
24859 shlibpath_var=LD_LIBRARY_PATH
24860 shlibpath_overrides_runpath=yes
24861 hardcode_into_libs=yes
24862 @@ -17660,7 +6569,7 @@
24863
24864 sunos4*)
24865 version_type=sunos
24866 - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
24867 + library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
24868 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
24869 shlibpath_var=LD_LIBRARY_PATH
24870 shlibpath_overrides_runpath=yes
24871 @@ -17672,8 +6581,8 @@
24872
24873 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
24874 version_type=linux
24875 - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
24876 - soname_spec='${libname}${release}${shared_ext}$major'
24877 + library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
24878 + soname_spec='${libname}${release}.so$major'
24879 shlibpath_var=LD_LIBRARY_PATH
24880 case $host_vendor in
24881 sni)
24882 @@ -17694,22 +6603,31 @@
24883 esac
24884 ;;
24885
24886 +uts4*)
24887 + version_type=linux
24888 + library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
24889 + soname_spec='${libname}${release}.so$major'
24890 + shlibpath_var=LD_LIBRARY_PATH
24891 + ;;
24892 +
24893 +dgux*)
24894 + version_type=linux
24895 + need_lib_prefix=no
24896 + need_version=no
24897 + library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
24898 + soname_spec='${libname}${release}.so$major'
24899 + shlibpath_var=LD_LIBRARY_PATH
24900 + ;;
24901 +
24902 sysv4*MP*)
24903 if test -d /usr/nec ;then
24904 version_type=linux
24905 - library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
24906 - soname_spec='$libname${shared_ext}.$major'
24907 + library_names_spec='$libname.so.$versuffix $libname.so.$major $libname.so'
24908 + soname_spec='$libname.so.$major'
24909 shlibpath_var=LD_LIBRARY_PATH
24910 fi
24911 ;;
24912
24913 -uts4*)
24914 - version_type=linux
24915 - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
24916 - soname_spec='${libname}${release}${shared_ext}$major'
24917 - shlibpath_var=LD_LIBRARY_PATH
24918 - ;;
24919 -
24920 *)
24921 dynamic_linker=no
24922 ;;
24923 @@ -17718,35 +6636,44 @@
24924 echo "${ECHO_T}$dynamic_linker" >&6
24925 test "$dynamic_linker" = no && can_build_shared=no
24926
24927 -echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
24928 -echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
24929 -hardcode_action_GCJ=
24930 -if test -n "$hardcode_libdir_flag_spec_GCJ" || \
24931 - test -n "$runpath_var_GCJ" || \
24932 - test "X$hardcode_automatic_GCJ" = "Xyes" ; then
24933 +# Report the final consequences.
24934 +echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
24935 +echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
24936 +echo "$as_me:$LINENO: result: $can_build_shared" >&5
24937 +echo "${ECHO_T}$can_build_shared" >&6
24938
24939 - # We can hardcode non-existant directories.
24940 - if test "$hardcode_direct_GCJ" != no &&
24941 - # If the only mechanism to avoid hardcoding is shlibpath_var, we
24942 - # have to relink, otherwise we might link with an installed library
24943 - # when we should be linking with a yet-to-be-installed one
24944 - ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
24945 - test "$hardcode_minus_L_GCJ" != no; then
24946 - # Linking always hardcodes the temporary library directory.
24947 - hardcode_action_GCJ=relink
24948 - else
24949 - # We can link without hardcoding, and we can hardcode nonexisting dirs.
24950 - hardcode_action_GCJ=immediate
24951 +echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
24952 +echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
24953 +test "$can_build_shared" = "no" && enable_shared=no
24954 +
24955 +# On AIX, shared libraries and static libraries use the same namespace, and
24956 +# are all built from PIC.
24957 +case "$host_os" in
24958 +aix3*)
24959 + test "$enable_shared" = yes && enable_static=no
24960 + if test -n "$RANLIB"; then
24961 + archive_cmds="$archive_cmds~\$RANLIB \$lib"
24962 + postinstall_cmds='$RANLIB $lib'
24963 fi
24964 -else
24965 - # We cannot hardcode anything, or else we can only hardcode existing
24966 - # directories.
24967 - hardcode_action_GCJ=unsupported
24968 -fi
24969 -echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
24970 -echo "${ECHO_T}$hardcode_action_GCJ" >&6
24971 + ;;
24972 +
24973 +aix4*)
24974 + if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
24975 + test "$enable_shared" = yes && enable_static=no
24976 + fi
24977 + ;;
24978 +esac
24979 +echo "$as_me:$LINENO: result: $enable_shared" >&5
24980 +echo "${ECHO_T}$enable_shared" >&6
24981 +
24982 +echo "$as_me:$LINENO: checking whether to build static libraries" >&5
24983 +echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
24984 +# Make sure either enable_shared or enable_static is yes.
24985 +test "$enable_shared" = yes || enable_static=yes
24986 +echo "$as_me:$LINENO: result: $enable_static" >&5
24987 +echo "${ECHO_T}$enable_static" >&6
24988
24989 -if test "$hardcode_action_GCJ" = relink; then
24990 +if test "$hardcode_action" = relink; then
24991 # Fast installation is not supported
24992 enable_fast_install=no
24993 elif test "$shlibpath_overrides_runpath" = yes ||
24994 @@ -17755,33 +6682,9 @@
24995 enable_fast_install=needless
24996 fi
24997
24998 -striplib=
24999 -old_striplib=
25000 -echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
25001 -echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
25002 -if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
25003 - test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
25004 - test -z "$striplib" && striplib="$STRIP --strip-unneeded"
25005 - echo "$as_me:$LINENO: result: yes" >&5
25006 -echo "${ECHO_T}yes" >&6
25007 -else
25008 -# FIXME - insert some real tests, host_os isn't really good enough
25009 - case $host_os in
25010 - darwin*)
25011 - if test -n "$STRIP" ; then
25012 - striplib="$STRIP -x"
25013 - echo "$as_me:$LINENO: result: yes" >&5
25014 -echo "${ECHO_T}yes" >&6
25015 - else
25016 - echo "$as_me:$LINENO: result: no" >&5
25017 -echo "${ECHO_T}no" >&6
25018 -fi
25019 - ;;
25020 - *)
25021 - echo "$as_me:$LINENO: result: no" >&5
25022 -echo "${ECHO_T}no" >&6
25023 - ;;
25024 - esac
25025 +variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
25026 +if test "$GCC" = yes; then
25027 + variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
25028 fi
25029
25030 if test "x$enable_dlopen" != xyes; then
25031 @@ -17792,99 +6695,16 @@
25032 lt_cv_dlopen=no
25033 lt_cv_dlopen_libs=
25034
25035 - case $host_os in
25036 - beos*)
25037 - lt_cv_dlopen="load_add_on"
25038 - lt_cv_dlopen_libs=
25039 - lt_cv_dlopen_self=yes
25040 - ;;
25041 -
25042 - mingw* | pw32*)
25043 - lt_cv_dlopen="LoadLibrary"
25044 - lt_cv_dlopen_libs=
25045 - ;;
25046 -
25047 - cygwin*)
25048 - lt_cv_dlopen="dlopen"
25049 - lt_cv_dlopen_libs=
25050 - ;;
25051 -
25052 - darwin*)
25053 - # if libdl is installed we need to link against it
25054 - echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
25055 -echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
25056 -if test "${ac_cv_lib_dl_dlopen+set}" = set; then
25057 - echo $ECHO_N "(cached) $ECHO_C" >&6
25058 -else
25059 - ac_check_lib_save_LIBS=$LIBS
25060 -LIBS="-ldl $LIBS"
25061 -cat >conftest.$ac_ext <<_ACEOF
25062 -/* confdefs.h. */
25063 -_ACEOF
25064 -cat confdefs.h >>conftest.$ac_ext
25065 -cat >>conftest.$ac_ext <<_ACEOF
25066 -/* end confdefs.h. */
25067 -
25068 -/* Override any gcc2 internal prototype to avoid an error. */
25069 -#ifdef __cplusplus
25070 -extern "C"
25071 -#endif
25072 -/* We use char because int might match the return type of a gcc2
25073 - builtin and then its argument prototype would still apply. */
25074 -char dlopen ();
25075 -int
25076 -main ()
25077 -{
25078 -dlopen ();
25079 - ;
25080 - return 0;
25081 -}
25082 -_ACEOF
25083 -rm -f conftest.$ac_objext conftest$ac_exeext
25084 -if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25085 - (eval $ac_link) 2>conftest.er1
25086 - ac_status=$?
25087 - grep -v '^ *+' conftest.er1 >conftest.err
25088 - rm -f conftest.er1
25089 - cat conftest.err >&5
25090 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
25091 - (exit $ac_status); } &&
25092 - { ac_try='test -z "$ac_c_werror_flag"
25093 - || test ! -s conftest.err'
25094 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25095 - (eval $ac_try) 2>&5
25096 - ac_status=$?
25097 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
25098 - (exit $ac_status); }; } &&
25099 - { ac_try='test -s conftest$ac_exeext'
25100 - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25101 - (eval $ac_try) 2>&5
25102 - ac_status=$?
25103 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
25104 - (exit $ac_status); }; }; then
25105 - ac_cv_lib_dl_dlopen=yes
25106 -else
25107 - echo "$as_me: failed program was:" >&5
25108 -sed 's/^/| /' conftest.$ac_ext >&5
25109 -
25110 -ac_cv_lib_dl_dlopen=no
25111 -fi
25112 -rm -f conftest.err conftest.$ac_objext \
25113 - conftest$ac_exeext conftest.$ac_ext
25114 -LIBS=$ac_check_lib_save_LIBS
25115 -fi
25116 -echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
25117 -echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
25118 -if test $ac_cv_lib_dl_dlopen = yes; then
25119 - lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
25120 -else
25121 -
25122 - lt_cv_dlopen="dyld"
25123 + case $host_os in
25124 + beos*)
25125 + lt_cv_dlopen="load_add_on"
25126 lt_cv_dlopen_libs=
25127 lt_cv_dlopen_self=yes
25128 + ;;
25129
25130 -fi
25131 -
25132 + cygwin* | mingw* | pw32*)
25133 + lt_cv_dlopen="LoadLibrary"
25134 + lt_cv_dlopen_libs=
25135 ;;
25136
25137 *)
25138 @@ -17953,8 +6773,7 @@
25139 cat conftest.err >&5
25140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25141 (exit $ac_status); } &&
25142 - { ac_try='test -z "$ac_c_werror_flag"
25143 - || test ! -s conftest.err'
25144 + { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
25145 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25146 (eval $ac_try) 2>&5
25147 ac_status=$?
25148 @@ -18019,8 +6838,7 @@
25149 cat conftest.err >&5
25150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25151 (exit $ac_status); } &&
25152 - { ac_try='test -z "$ac_c_werror_flag"
25153 - || test ! -s conftest.err'
25154 + { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
25155 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25156 (eval $ac_try) 2>&5
25157 ac_status=$?
25158 @@ -18113,8 +6931,7 @@
25159 cat conftest.err >&5
25160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25161 (exit $ac_status); } &&
25162 - { ac_try='test -z "$ac_c_werror_flag"
25163 - || test ! -s conftest.err'
25164 + { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
25165 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25166 (eval $ac_try) 2>&5
25167 ac_status=$?
25168 @@ -18179,8 +6996,7 @@
25169 cat conftest.err >&5
25170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25171 (exit $ac_status); } &&
25172 - { ac_try='test -z "$ac_c_werror_flag"
25173 - || test ! -s conftest.err'
25174 + { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
25175 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25176 (eval $ac_try) 2>&5
25177 ac_status=$?
25178 @@ -18246,8 +7062,7 @@
25179 cat conftest.err >&5
25180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25181 (exit $ac_status); } &&
25182 - { ac_try='test -z "$ac_c_werror_flag"
25183 - || test ! -s conftest.err'
25184 + { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
25185 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25186 (eval $ac_try) 2>&5
25187 ac_status=$?
25188 @@ -18313,8 +7128,7 @@
25189 cat conftest.err >&5
25190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25191 (exit $ac_status); } &&
25192 - { ac_try='test -z "$ac_c_werror_flag"
25193 - || test ! -s conftest.err'
25194 + { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
25195 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25196 (eval $ac_try) 2>&5
25197 ac_status=$?
25198 @@ -18370,7 +7184,7 @@
25199 case $lt_cv_dlopen in
25200 dlopen)
25201 save_CPPFLAGS="$CPPFLAGS"
25202 - test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
25203 + test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
25204
25205 save_LDFLAGS="$LDFLAGS"
25206 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
25207 @@ -18386,10 +7200,10 @@
25208 if test "$cross_compiling" = yes; then :
25209 lt_cv_dlopen_self=cross
25210 else
25211 - lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
25212 + lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
25213 lt_status=$lt_dlunknown
25214 cat > conftest.$ac_ext <<EOF
25215 -#line 18392 "configure"
25216 +#line 7206 "configure"
25217 #include "confdefs.h"
25218
25219 #if HAVE_DLFCN_H
25220 @@ -18455,7 +7269,7 @@
25221 ac_status=$?
25222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25223 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
25224 - (./conftest; exit; ) >&5 2>/dev/null
25225 + (./conftest; exit; ) 2>/dev/null
25226 lt_status=$?
25227 case x$lt_status in
25228 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
25229 @@ -18484,10 +7298,10 @@
25230 if test "$cross_compiling" = yes; then :
25231 lt_cv_dlopen_self_static=cross
25232 else
25233 - lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
25234 + lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
25235 lt_status=$lt_dlunknown
25236 cat > conftest.$ac_ext <<EOF
25237 -#line 18490 "configure"
25238 +#line 7304 "configure"
25239 #include "confdefs.h"
25240
25241 #if HAVE_DLFCN_H
25242 @@ -18553,7 +7367,7 @@
25243 ac_status=$?
25244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25245 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
25246 - (./conftest; exit; ) >&5 2>/dev/null
25247 + (./conftest; exit; ) 2>/dev/null
25248 lt_status=$?
25249 case x$lt_status in
25250 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
25251 @@ -18584,407 +7398,76 @@
25252 *) enable_dlopen_self=unknown ;;
25253 esac
25254
25255 - case $lt_cv_dlopen_self_static in
25256 - yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
25257 - *) enable_dlopen_self_static=unknown ;;
25258 - esac
25259 -fi
25260 -
25261 -
25262 -# The else clause should only fire when bootstrapping the
25263 -# libtool distribution, otherwise you forgot to ship ltmain.sh
25264 -# with your package, and you will get complaints that there are
25265 -# no rules to generate ltmain.sh.
25266 -if test -f "$ltmain"; then
25267 - # See if we are running on zsh, and set the options which allow our commands through
25268 - # without removal of \ escapes.
25269 - if test -n "${ZSH_VERSION+set}" ; then
25270 - setopt NO_GLOB_SUBST
25271 - fi
25272 - # Now quote all the things that may contain metacharacters while being
25273 - # careful not to overquote the AC_SUBSTed values. We take copies of the
25274 - # variables and quote the copies for generation of the libtool script.
25275 - for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
25276 - SED SHELL STRIP \
25277 - libname_spec library_names_spec soname_spec extract_expsyms_cmds \
25278 - old_striplib striplib file_magic_cmd finish_cmds finish_eval \
25279 - deplibs_check_method reload_flag reload_cmds need_locks \
25280 - lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
25281 - lt_cv_sys_global_symbol_to_c_name_address \
25282 - sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
25283 - old_postinstall_cmds old_postuninstall_cmds \
25284 - compiler_GCJ \
25285 - CC_GCJ \
25286 - LD_GCJ \
25287 - lt_prog_compiler_wl_GCJ \
25288 - lt_prog_compiler_pic_GCJ \
25289 - lt_prog_compiler_static_GCJ \
25290 - lt_prog_compiler_no_builtin_flag_GCJ \
25291 - export_dynamic_flag_spec_GCJ \
25292 - thread_safe_flag_spec_GCJ \
25293 - whole_archive_flag_spec_GCJ \
25294 - enable_shared_with_static_runtimes_GCJ \
25295 - old_archive_cmds_GCJ \
25296 - old_archive_from_new_cmds_GCJ \
25297 - predep_objects_GCJ \
25298 - postdep_objects_GCJ \
25299 - predeps_GCJ \
25300 - postdeps_GCJ \
25301 - compiler_lib_search_path_GCJ \
25302 - archive_cmds_GCJ \
25303 - archive_expsym_cmds_GCJ \
25304 - postinstall_cmds_GCJ \
25305 - postuninstall_cmds_GCJ \
25306 - old_archive_from_expsyms_cmds_GCJ \
25307 - allow_undefined_flag_GCJ \
25308 - no_undefined_flag_GCJ \
25309 - export_symbols_cmds_GCJ \
25310 - hardcode_libdir_flag_spec_GCJ \
25311 - hardcode_libdir_flag_spec_ld_GCJ \
25312 - hardcode_libdir_separator_GCJ \
25313 - hardcode_automatic_GCJ \
25314 - module_cmds_GCJ \
25315 - module_expsym_cmds_GCJ \
25316 - lt_cv_prog_compiler_c_o_GCJ \
25317 - exclude_expsyms_GCJ \
25318 - include_expsyms_GCJ; do
25319 -
25320 - case $var in
25321 - old_archive_cmds_GCJ | \
25322 - old_archive_from_new_cmds_GCJ | \
25323 - archive_cmds_GCJ | \
25324 - archive_expsym_cmds_GCJ | \
25325 - module_cmds_GCJ | \
25326 - module_expsym_cmds_GCJ | \
25327 - old_archive_from_expsyms_cmds_GCJ | \
25328 - export_symbols_cmds_GCJ | \
25329 - extract_expsyms_cmds | reload_cmds | finish_cmds | \
25330 - postinstall_cmds | postuninstall_cmds | \
25331 - old_postinstall_cmds | old_postuninstall_cmds | \
25332 - sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
25333 - # Double-quote double-evaled strings.
25334 - eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
25335 - ;;
25336 - *)
25337 - eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
25338 - ;;
25339 - esac
25340 - done
25341 -
25342 - case $lt_echo in
25343 - *'\$0 --fallback-echo"')
25344 - lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
25345 - ;;
25346 - esac
25347 -
25348 -cfgfile="$ofile"
25349 -
25350 - cat <<__EOF__ >> "$cfgfile"
25351 -# ### BEGIN LIBTOOL TAG CONFIG: $tagname
25352 -
25353 -# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
25354 -
25355 -# Shell to use when invoking shell scripts.
25356 -SHELL=$lt_SHELL
25357 -
25358 -# Whether or not to build shared libraries.
25359 -build_libtool_libs=$enable_shared
25360 -
25361 -# Whether or not to build static libraries.
25362 -build_old_libs=$enable_static
25363 -
25364 -# Whether or not to add -lc for building shared libraries.
25365 -build_libtool_need_lc=$archive_cmds_need_lc_GCJ
25366 -
25367 -# Whether or not to disallow shared libs when runtime libs are static
25368 -allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
25369 -
25370 -# Whether or not to optimize for fast installation.
25371 -fast_install=$enable_fast_install
25372 -
25373 -# The host system.
25374 -host_alias=$host_alias
25375 -host=$host
25376 -host_os=$host_os
25377 -
25378 -# The build system.
25379 -build_alias=$build_alias
25380 -build=$build
25381 -build_os=$build_os
25382 -
25383 -# An echo program that does not interpret backslashes.
25384 -echo=$lt_echo
25385 -
25386 -# The archiver.
25387 -AR=$lt_AR
25388 -AR_FLAGS=$lt_AR_FLAGS
25389 -
25390 -# A C compiler.
25391 -LTCC=$lt_LTCC
25392 -
25393 -# A language-specific compiler.
25394 -CC=$lt_compiler_GCJ
25395 -
25396 -# Is the compiler the GNU C compiler?
25397 -with_gcc=$GCC_GCJ
25398 -
25399 -# An ERE matcher.
25400 -EGREP=$lt_EGREP
25401 -
25402 -# The linker used to build libraries.
25403 -LD=$lt_LD_GCJ
25404 -
25405 -# Whether we need hard or soft links.
25406 -LN_S=$lt_LN_S
25407 -
25408 -# A BSD-compatible nm program.
25409 -NM=$lt_NM
25410 -
25411 -# A symbol stripping program
25412 -STRIP=$lt_STRIP
25413 -
25414 -# Used to examine libraries when file_magic_cmd begins "file"
25415 -MAGIC_CMD=$MAGIC_CMD
25416 -
25417 -# Used on cygwin: DLL creation program.
25418 -DLLTOOL="$DLLTOOL"
25419 -
25420 -# Used on cygwin: object dumper.
25421 -OBJDUMP="$OBJDUMP"
25422 -
25423 -# Used on cygwin: assembler.
25424 -AS="$AS"
25425 -
25426 -# The name of the directory that contains temporary libtool files.
25427 -objdir=$objdir
25428 -
25429 -# How to create reloadable object files.
25430 -reload_flag=$lt_reload_flag
25431 -reload_cmds=$lt_reload_cmds
25432 -
25433 -# How to pass a linker flag through the compiler.
25434 -wl=$lt_lt_prog_compiler_wl_GCJ
25435 -
25436 -# Object file suffix (normally "o").
25437 -objext="$ac_objext"
25438 -
25439 -# Old archive suffix (normally "a").
25440 -libext="$libext"
25441 -
25442 -# Shared library suffix (normally ".so").
25443 -shrext_cmds='$shrext_cmds'
25444 -
25445 -# Executable file suffix (normally "").
25446 -exeext="$exeext"
25447 -
25448 -# Additional compiler flags for building library objects.
25449 -pic_flag=$lt_lt_prog_compiler_pic_GCJ
25450 -pic_mode=$pic_mode
25451 -
25452 -# What is the maximum length of a command?
25453 -max_cmd_len=$lt_cv_sys_max_cmd_len
25454 -
25455 -# Does compiler simultaneously support -c and -o options?
25456 -compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
25457 -
25458 -# Must we lock files when doing compilation?
25459 -need_locks=$lt_need_locks
25460 -
25461 -# Do we need the lib prefix for modules?
25462 -need_lib_prefix=$need_lib_prefix
25463 -
25464 -# Do we need a version for libraries?
25465 -need_version=$need_version
25466 -
25467 -# Whether dlopen is supported.
25468 -dlopen_support=$enable_dlopen
25469 -
25470 -# Whether dlopen of programs is supported.
25471 -dlopen_self=$enable_dlopen_self
25472 -
25473 -# Whether dlopen of statically linked programs is supported.
25474 -dlopen_self_static=$enable_dlopen_self_static
25475 -
25476 -# Compiler flag to prevent dynamic linking.
25477 -link_static_flag=$lt_lt_prog_compiler_static_GCJ
25478 -
25479 -# Compiler flag to turn off builtin functions.
25480 -no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
25481 -
25482 -# Compiler flag to allow reflexive dlopens.
25483 -export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
25484 -
25485 -# Compiler flag to generate shared objects directly from archives.
25486 -whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
25487 -
25488 -# Compiler flag to generate thread-safe objects.
25489 -thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
25490 -
25491 -# Library versioning type.
25492 -version_type=$version_type
25493 -
25494 -# Format of library name prefix.
25495 -libname_spec=$lt_libname_spec
25496 -
25497 -# List of archive names. First name is the real one, the rest are links.
25498 -# The last name is the one that the linker finds with -lNAME.
25499 -library_names_spec=$lt_library_names_spec
25500 -
25501 -# The coded name of the library, if different from the real name.
25502 -soname_spec=$lt_soname_spec
25503 -
25504 -# Commands used to build and install an old-style archive.
25505 -RANLIB=$lt_RANLIB
25506 -old_archive_cmds=$lt_old_archive_cmds_GCJ
25507 -old_postinstall_cmds=$lt_old_postinstall_cmds
25508 -old_postuninstall_cmds=$lt_old_postuninstall_cmds
25509 -
25510 -# Create an old-style archive from a shared archive.
25511 -old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
25512 -
25513 -# Create a temporary old-style archive to link instead of a shared archive.
25514 -old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
25515 -
25516 -# Commands used to build and install a shared archive.
25517 -archive_cmds=$lt_archive_cmds_GCJ
25518 -archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
25519 -postinstall_cmds=$lt_postinstall_cmds
25520 -postuninstall_cmds=$lt_postuninstall_cmds
25521 -
25522 -# Commands used to build a loadable module (assumed same as above if empty)
25523 -module_cmds=$lt_module_cmds_GCJ
25524 -module_expsym_cmds=$lt_module_expsym_cmds_GCJ
25525 -
25526 -# Commands to strip libraries.
25527 -old_striplib=$lt_old_striplib
25528 -striplib=$lt_striplib
25529 -
25530 -# Dependencies to place before the objects being linked to create a
25531 -# shared library.
25532 -predep_objects=$lt_predep_objects_GCJ
25533 -
25534 -# Dependencies to place after the objects being linked to create a
25535 -# shared library.
25536 -postdep_objects=$lt_postdep_objects_GCJ
25537 -
25538 -# Dependencies to place before the objects being linked to create a
25539 -# shared library.
25540 -predeps=$lt_predeps_GCJ
25541 -
25542 -# Dependencies to place after the objects being linked to create a
25543 -# shared library.
25544 -postdeps=$lt_postdeps_GCJ
25545 -
25546 -# The library search path used internally by the compiler when linking
25547 -# a shared library.
25548 -compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
25549 -
25550 -# Method to check whether dependent libraries are shared objects.
25551 -deplibs_check_method=$lt_deplibs_check_method
25552 -
25553 -# Command to use when deplibs_check_method == file_magic.
25554 -file_magic_cmd=$lt_file_magic_cmd
25555 -
25556 -# Flag that allows shared libraries with undefined symbols to be built.
25557 -allow_undefined_flag=$lt_allow_undefined_flag_GCJ
25558 -
25559 -# Flag that forces no undefined symbols.
25560 -no_undefined_flag=$lt_no_undefined_flag_GCJ
25561 -
25562 -# Commands used to finish a libtool library installation in a directory.
25563 -finish_cmds=$lt_finish_cmds
25564 -
25565 -# Same as above, but a single script fragment to be evaled but not shown.
25566 -finish_eval=$lt_finish_eval
25567 -
25568 -# Take the output of nm and produce a listing of raw symbols and C names.
25569 -global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
25570 -
25571 -# Transform the output of nm in a proper C declaration
25572 -global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
25573 -
25574 -# Transform the output of nm in a C name address pair
25575 -global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
25576 -
25577 -# This is the shared library runtime path variable.
25578 -runpath_var=$runpath_var
25579 -
25580 -# This is the shared library path variable.
25581 -shlibpath_var=$shlibpath_var
25582 -
25583 -# Is shlibpath searched before the hard-coded library search path?
25584 -shlibpath_overrides_runpath=$shlibpath_overrides_runpath
25585 -
25586 -# How to hardcode a shared library path into an executable.
25587 -hardcode_action=$hardcode_action_GCJ
25588 -
25589 -# Whether we should hardcode library paths into libraries.
25590 -hardcode_into_libs=$hardcode_into_libs
25591 -
25592 -# Flag to hardcode \$libdir into a binary during linking.
25593 -# This must work even if \$libdir does not exist.
25594 -hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
25595 -
25596 -# If ld is used when linking, flag to hardcode \$libdir into
25597 -# a binary during linking. This must work even if \$libdir does
25598 -# not exist.
25599 -hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
25600 -
25601 -# Whether we need a single -rpath flag with a separated argument.
25602 -hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
25603 -
25604 -# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
25605 -# resulting binary.
25606 -hardcode_direct=$hardcode_direct_GCJ
25607 -
25608 -# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
25609 -# resulting binary.
25610 -hardcode_minus_L=$hardcode_minus_L_GCJ
25611 -
25612 -# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
25613 -# the resulting binary.
25614 -hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
25615 -
25616 -# Set to yes if building a shared library automatically hardcodes DIR into the library
25617 -# and all subsequent libraries and executables linked against it.
25618 -hardcode_automatic=$hardcode_automatic_GCJ
25619 -
25620 -# Variables whose values should be saved in libtool wrapper scripts and
25621 -# restored at relink time.
25622 -variables_saved_for_relink="$variables_saved_for_relink"
25623 -
25624 -# Whether libtool must link a program against all its dependency libraries.
25625 -link_all_deplibs=$link_all_deplibs_GCJ
25626 -
25627 -# Compile-time system search path for libraries
25628 -sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
25629 -
25630 -# Run-time system search path for libraries
25631 -sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
25632 -
25633 -# Fix the shell variable \$srcfile for the compiler.
25634 -fix_srcfile_path="$fix_srcfile_path_GCJ"
25635 -
25636 -# Set to yes if exported symbols are required.
25637 -always_export_symbols=$always_export_symbols_GCJ
25638 -
25639 -# The commands to list exported symbols.
25640 -export_symbols_cmds=$lt_export_symbols_cmds_GCJ
25641 -
25642 -# The commands to extract the exported symbol list from a shared archive.
25643 -extract_expsyms_cmds=$lt_extract_expsyms_cmds
25644 -
25645 -# Symbols that should not be listed in the preloaded symbols.
25646 -exclude_expsyms=$lt_exclude_expsyms_GCJ
25647 + case $lt_cv_dlopen_self_static in
25648 + yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
25649 + *) enable_dlopen_self_static=unknown ;;
25650 + esac
25651 +fi
25652
25653 -# Symbols that must always be exported.
25654 -include_expsyms=$lt_include_expsyms_GCJ
25655
25656 -# ### END LIBTOOL TAG CONFIG: $tagname
25657 +if test "$enable_shared" = yes && test "$GCC" = yes; then
25658 + case $archive_cmds in
25659 + *'~'*)
25660 + # FIXME: we may have to deal with multi-command sequences.
25661 + ;;
25662 + '$CC '*)
25663 + # Test whether the compiler implicitly links with -lc since on some
25664 + # systems, -lgcc has to come before -lc. If gcc already passes -lc
25665 + # to ld, don't add -lc before -lgcc.
25666 + echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
25667 +echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
25668 + if test "${lt_cv_archive_cmds_need_lc+set}" = set; then
25669 + echo $ECHO_N "(cached) $ECHO_C" >&6
25670 +else
25671 + $rm conftest*
25672 + echo 'static int dummy;' > conftest.$ac_ext
25673
25674 -__EOF__
25675 + if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25676 + (eval $ac_compile) 2>&5
25677 + ac_status=$?
25678 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
25679 + (exit $ac_status); }; then
25680 + soname=conftest
25681 + lib=conftest
25682 + libobjs=conftest.$ac_objext
25683 + deplibs=
25684 + wl=$lt_cv_prog_cc_wl
25685 + compiler_flags=-v
25686 + linker_flags=-v
25687 + verstring=
25688 + output_objdir=.
25689 + libname=conftest
25690 + save_allow_undefined_flag=$allow_undefined_flag
25691 + allow_undefined_flag=
25692 + if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
25693 + (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
25694 + ac_status=$?
25695 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
25696 + (exit $ac_status); }
25697 + then
25698 + lt_cv_archive_cmds_need_lc=no
25699 + else
25700 + lt_cv_archive_cmds_need_lc=yes
25701 + fi
25702 + allow_undefined_flag=$save_allow_undefined_flag
25703 + else
25704 + cat conftest.err 1>&5
25705 + fi
25706 +fi
25707
25708 + echo "$as_me:$LINENO: result: $lt_cv_archive_cmds_need_lc" >&5
25709 +echo "${ECHO_T}$lt_cv_archive_cmds_need_lc" >&6
25710 + ;;
25711 + esac
25712 +fi
25713 +need_lc=${lt_cv_archive_cmds_need_lc-yes}
25714
25715 +# The second clause should only fire when bootstrapping the
25716 +# libtool distribution, otherwise you forgot to ship ltmain.sh
25717 +# with your package, and you will get complaints that there are
25718 +# no rules to generate ltmain.sh.
25719 +if test -f "$ltmain"; then
25720 + :
25721 else
25722 # If there is no Makefile yet, we rely on a make rule to execute
25723 # `config.status --recheck' to rerun these tests and create the
25724 @@ -18995,148 +7478,39 @@
25725 fi
25726 fi
25727
25728 +if test -f "$ltmain"; then
25729 + trap "$rm \"${ofile}T\"; exit 1" 1 2 15
25730 + $rm -f "${ofile}T"
25731
25732 -ac_ext=c
25733 -ac_cpp='$CPP $CPPFLAGS'
25734 -ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25735 -ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25736 -ac_compiler_gnu=$ac_cv_c_compiler_gnu
25737 -
25738 -CC="$lt_save_CC"
25739 -
25740 - else
25741 - tagname=""
25742 - fi
25743 - ;;
25744 -
25745 - RC)
25746 -
25747 -
25748 -
25749 -# Source file extension for RC test sources.
25750 -ac_ext=rc
25751 -
25752 -# Object file extension for compiled RC test sources.
25753 -objext=o
25754 -objext_RC=$objext
25755 -
25756 -# Code to be used in simple compile tests
25757 -lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
25758 -
25759 -# Code to be used in simple link tests
25760 -lt_simple_link_test_code="$lt_simple_compile_test_code"
25761 -
25762 -# ltmain only uses $CC for tagged configurations so make sure $CC is set.
25763 -
25764 -# If no C compiler was specified, use CC.
25765 -LTCC=${LTCC-"$CC"}
25766 -
25767 -# Allow CC to be a program name with arguments.
25768 -compiler=$CC
25769 -
25770 -
25771 -# save warnings/boilerplate of simple test code
25772 -ac_outfile=conftest.$ac_objext
25773 -printf "$lt_simple_compile_test_code" >conftest.$ac_ext
25774 -eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
25775 -_lt_compiler_boilerplate=`cat conftest.err`
25776 -$rm conftest*
25777 -
25778 -ac_outfile=conftest.$ac_objext
25779 -printf "$lt_simple_link_test_code" >conftest.$ac_ext
25780 -eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
25781 -_lt_linker_boilerplate=`cat conftest.err`
25782 -$rm conftest*
25783 -
25784 -
25785 -# Allow CC to be a program name with arguments.
25786 -lt_save_CC="$CC"
25787 -CC=${RC-"windres"}
25788 -compiler=$CC
25789 -compiler_RC=$CC
25790 -for cc_temp in $compiler""; do
25791 - case $cc_temp in
25792 - compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
25793 - distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
25794 - \-*) ;;
25795 - *) break;;
25796 - esac
25797 -done
25798 -cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
25799 -
25800 -lt_cv_prog_compiler_c_o_RC=yes
25801 + echo creating $ofile
25802
25803 -# The else clause should only fire when bootstrapping the
25804 -# libtool distribution, otherwise you forgot to ship ltmain.sh
25805 -# with your package, and you will get complaints that there are
25806 -# no rules to generate ltmain.sh.
25807 -if test -f "$ltmain"; then
25808 - # See if we are running on zsh, and set the options which allow our commands through
25809 - # without removal of \ escapes.
25810 - if test -n "${ZSH_VERSION+set}" ; then
25811 - setopt NO_GLOB_SUBST
25812 - fi
25813 # Now quote all the things that may contain metacharacters while being
25814 # careful not to overquote the AC_SUBSTed values. We take copies of the
25815 # variables and quote the copies for generation of the libtool script.
25816 - for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
25817 - SED SHELL STRIP \
25818 - libname_spec library_names_spec soname_spec extract_expsyms_cmds \
25819 - old_striplib striplib file_magic_cmd finish_cmds finish_eval \
25820 - deplibs_check_method reload_flag reload_cmds need_locks \
25821 - lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
25822 - lt_cv_sys_global_symbol_to_c_name_address \
25823 + for var in echo old_CC old_CFLAGS SED \
25824 + AR AR_FLAGS CC LD LN_S NM SHELL STRIP \
25825 + reload_flag reload_cmds wl \
25826 + pic_flag link_static_flag no_builtin_flag export_dynamic_flag_spec \
25827 + thread_safe_flag_spec whole_archive_flag_spec libname_spec \
25828 + library_names_spec soname_spec \
25829 + RANLIB old_archive_cmds old_archive_from_new_cmds old_postinstall_cmds \
25830 + old_postuninstall_cmds archive_cmds archive_expsym_cmds postinstall_cmds \
25831 + postuninstall_cmds extract_expsyms_cmds old_archive_from_expsyms_cmds \
25832 + old_striplib striplib file_magic_cmd export_symbols_cmds \
25833 + deplibs_check_method allow_undefined_flag no_undefined_flag \
25834 + finish_cmds finish_eval global_symbol_pipe global_symbol_to_cdecl \
25835 + global_symbol_to_c_name_address \
25836 + hardcode_libdir_flag_spec hardcode_libdir_separator \
25837 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
25838 - old_postinstall_cmds old_postuninstall_cmds \
25839 - compiler_RC \
25840 - CC_RC \
25841 - LD_RC \
25842 - lt_prog_compiler_wl_RC \
25843 - lt_prog_compiler_pic_RC \
25844 - lt_prog_compiler_static_RC \
25845 - lt_prog_compiler_no_builtin_flag_RC \
25846 - export_dynamic_flag_spec_RC \
25847 - thread_safe_flag_spec_RC \
25848 - whole_archive_flag_spec_RC \
25849 - enable_shared_with_static_runtimes_RC \
25850 - old_archive_cmds_RC \
25851 - old_archive_from_new_cmds_RC \
25852 - predep_objects_RC \
25853 - postdep_objects_RC \
25854 - predeps_RC \
25855 - postdeps_RC \
25856 - compiler_lib_search_path_RC \
25857 - archive_cmds_RC \
25858 - archive_expsym_cmds_RC \
25859 - postinstall_cmds_RC \
25860 - postuninstall_cmds_RC \
25861 - old_archive_from_expsyms_cmds_RC \
25862 - allow_undefined_flag_RC \
25863 - no_undefined_flag_RC \
25864 - export_symbols_cmds_RC \
25865 - hardcode_libdir_flag_spec_RC \
25866 - hardcode_libdir_flag_spec_ld_RC \
25867 - hardcode_libdir_separator_RC \
25868 - hardcode_automatic_RC \
25869 - module_cmds_RC \
25870 - module_expsym_cmds_RC \
25871 - lt_cv_prog_compiler_c_o_RC \
25872 - exclude_expsyms_RC \
25873 - include_expsyms_RC; do
25874 + compiler_c_o compiler_o_lo need_locks exclude_expsyms include_expsyms; do
25875
25876 case $var in
25877 - old_archive_cmds_RC | \
25878 - old_archive_from_new_cmds_RC | \
25879 - archive_cmds_RC | \
25880 - archive_expsym_cmds_RC | \
25881 - module_cmds_RC | \
25882 - module_expsym_cmds_RC | \
25883 - old_archive_from_expsyms_cmds_RC | \
25884 - export_symbols_cmds_RC | \
25885 - extract_expsyms_cmds | reload_cmds | finish_cmds | \
25886 - postinstall_cmds | postuninstall_cmds | \
25887 + reload_cmds | old_archive_cmds | old_archive_from_new_cmds | \
25888 old_postinstall_cmds | old_postuninstall_cmds | \
25889 - sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
25890 + export_symbols_cmds | archive_cmds | archive_expsym_cmds | \
25891 + extract_expsyms_cmds | old_archive_from_expsyms_cmds | \
25892 + postinstall_cmds | postuninstall_cmds | \
25893 + finish_cmds | sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
25894 # Double-quote double-evaled strings.
25895 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
25896 ;;
25897 @@ -19146,16 +7520,46 @@
25898 esac
25899 done
25900
25901 - case $lt_echo in
25902 - *'\$0 --fallback-echo"')
25903 - lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
25904 - ;;
25905 - esac
25906 + cat <<__EOF__ > "${ofile}T"
25907 +#! $SHELL
25908 +
25909 +# `$echo "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
25910 +# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
25911 +# NOTE: Changes made to this file will be lost: look at ltmain.sh.
25912 +#
25913 +# Copyright (C) 1996-2000 Free Software Foundation, Inc.
25914 +# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
25915 +#
25916 +# This program is free software; you can redistribute it and/or modify
25917 +# it under the terms of the GNU General Public License as published by
25918 +# the Free Software Foundation; either version 2 of the License, or
25919 +# (at your option) any later version.
25920 +#
25921 +# This program is distributed in the hope that it will be useful, but
25922 +# WITHOUT ANY WARRANTY; without even the implied warranty of
25923 +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
25924 +# General Public License for more details.
25925 +#
25926 +# You should have received a copy of the GNU General Public License
25927 +# along with this program; if not, write to the Free Software
25928 +# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
25929 +#
25930 +# As a special exception to the GNU General Public License, if you
25931 +# distribute this file as part of a program that contains a
25932 +# configuration script generated by Autoconf, you may include it under
25933 +# the same distribution terms that you use for the rest of that program.
25934
25935 -cfgfile="$ofile"
25936 +# A sed that does not truncate output.
25937 +SED=$lt_SED
25938 +
25939 +# Sed that helps us avoid accidentally triggering echo(1) options like -n.
25940 +Xsed="${SED} -e s/^X//"
25941 +
25942 +# The HP-UX ksh and POSIX shell print the target directory to stdout
25943 +# if CDPATH is set.
25944 +if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
25945
25946 - cat <<__EOF__ >> "$cfgfile"
25947 -# ### BEGIN LIBTOOL TAG CONFIG: $tagname
25948 +# ### BEGIN LIBTOOL CONFIG
25949
25950 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
25951
25952 @@ -19169,10 +7573,7 @@
25953 build_old_libs=$enable_static
25954
25955 # Whether or not to add -lc for building shared libraries.
25956 -build_libtool_need_lc=$archive_cmds_need_lc_RC
25957 -
25958 -# Whether or not to disallow shared libs when runtime libs are static
25959 -allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
25960 +build_libtool_need_lc=$need_lc
25961
25962 # Whether or not to optimize for fast installation.
25963 fast_install=$enable_fast_install
25964 @@ -19180,12 +7581,6 @@
25965 # The host system.
25966 host_alias=$host_alias
25967 host=$host
25968 -host_os=$host_os
25969 -
25970 -# The build system.
25971 -build_alias=$build_alias
25972 -build=$build
25973 -build_os=$build_os
25974
25975 # An echo program that does not interpret backslashes.
25976 echo=$lt_echo
25977 @@ -19194,20 +7589,14 @@
25978 AR=$lt_AR
25979 AR_FLAGS=$lt_AR_FLAGS
25980
25981 -# A C compiler.
25982 -LTCC=$lt_LTCC
25983 -
25984 -# A language-specific compiler.
25985 -CC=$lt_compiler_RC
25986 +# The default C compiler.
25987 +CC=$lt_CC
25988
25989 # Is the compiler the GNU C compiler?
25990 -with_gcc=$GCC_RC
25991 -
25992 -# An ERE matcher.
25993 -EGREP=$lt_EGREP
25994 +with_gcc=$GCC
25995
25996 # The linker used to build libraries.
25997 -LD=$lt_LD_RC
25998 +LD=$lt_LD
25999
26000 # Whether we need hard or soft links.
26001 LN_S=$lt_LN_S
26002 @@ -19238,7 +7627,7 @@
26003 reload_cmds=$lt_reload_cmds
26004
26005 # How to pass a linker flag through the compiler.
26006 -wl=$lt_lt_prog_compiler_wl_RC
26007 +wl=$lt_wl
26008
26009 # Object file suffix (normally "o").
26010 objext="$ac_objext"
26011 @@ -19246,23 +7635,20 @@
26012 # Old archive suffix (normally "a").
26013 libext="$libext"
26014
26015 -# Shared library suffix (normally ".so").
26016 -shrext_cmds='$shrext_cmds'
26017 -
26018 # Executable file suffix (normally "").
26019 exeext="$exeext"
26020
26021 # Additional compiler flags for building library objects.
26022 -pic_flag=$lt_lt_prog_compiler_pic_RC
26023 +pic_flag=$lt_pic_flag
26024 pic_mode=$pic_mode
26025
26026 -# What is the maximum length of a command?
26027 -max_cmd_len=$lt_cv_sys_max_cmd_len
26028 -
26029 # Does compiler simultaneously support -c and -o options?
26030 -compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
26031 +compiler_c_o=$lt_compiler_c_o
26032 +
26033 +# Can we write directly to a .lo ?
26034 +compiler_o_lo=$lt_compiler_o_lo
26035
26036 -# Must we lock files when doing compilation?
26037 +# Must we lock files when doing compilation ?
26038 need_locks=$lt_need_locks
26039
26040 # Do we need the lib prefix for modules?
26041 @@ -19281,19 +7667,19 @@
26042 dlopen_self_static=$enable_dlopen_self_static
26043
26044 # Compiler flag to prevent dynamic linking.
26045 -link_static_flag=$lt_lt_prog_compiler_static_RC
26046 +link_static_flag=$lt_link_static_flag
26047
26048 # Compiler flag to turn off builtin functions.
26049 -no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
26050 +no_builtin_flag=$lt_no_builtin_flag
26051
26052 # Compiler flag to allow reflexive dlopens.
26053 -export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
26054 +export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
26055
26056 # Compiler flag to generate shared objects directly from archives.
26057 -whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
26058 +whole_archive_flag_spec=$lt_whole_archive_flag_spec
26059
26060 # Compiler flag to generate thread-safe objects.
26061 -thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
26062 +thread_safe_flag_spec=$lt_thread_safe_flag_spec
26063
26064 # Library versioning type.
26065 version_type=$version_type
26066 @@ -19310,50 +7696,26 @@
26067
26068 # Commands used to build and install an old-style archive.
26069 RANLIB=$lt_RANLIB
26070 -old_archive_cmds=$lt_old_archive_cmds_RC
26071 +old_archive_cmds=$lt_old_archive_cmds
26072 old_postinstall_cmds=$lt_old_postinstall_cmds
26073 old_postuninstall_cmds=$lt_old_postuninstall_cmds
26074
26075 # Create an old-style archive from a shared archive.
26076 -old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
26077 +old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
26078
26079 # Create a temporary old-style archive to link instead of a shared archive.
26080 -old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
26081 +old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
26082
26083 # Commands used to build and install a shared archive.
26084 -archive_cmds=$lt_archive_cmds_RC
26085 -archive_expsym_cmds=$lt_archive_expsym_cmds_RC
26086 +archive_cmds=$lt_archive_cmds
26087 +archive_expsym_cmds=$lt_archive_expsym_cmds
26088 postinstall_cmds=$lt_postinstall_cmds
26089 postuninstall_cmds=$lt_postuninstall_cmds
26090
26091 -# Commands used to build a loadable module (assumed same as above if empty)
26092 -module_cmds=$lt_module_cmds_RC
26093 -module_expsym_cmds=$lt_module_expsym_cmds_RC
26094 -
26095 # Commands to strip libraries.
26096 old_striplib=$lt_old_striplib
26097 striplib=$lt_striplib
26098
26099 -# Dependencies to place before the objects being linked to create a
26100 -# shared library.
26101 -predep_objects=$lt_predep_objects_RC
26102 -
26103 -# Dependencies to place after the objects being linked to create a
26104 -# shared library.
26105 -postdep_objects=$lt_postdep_objects_RC
26106 -
26107 -# Dependencies to place before the objects being linked to create a
26108 -# shared library.
26109 -predeps=$lt_predeps_RC
26110 -
26111 -# Dependencies to place after the objects being linked to create a
26112 -# shared library.
26113 -postdeps=$lt_postdeps_RC
26114 -
26115 -# The library search path used internally by the compiler when linking
26116 -# a shared library.
26117 -compiler_lib_search_path=$lt_compiler_lib_search_path_RC
26118 -
26119 # Method to check whether dependent libraries are shared objects.
26120 deplibs_check_method=$lt_deplibs_check_method
26121
26122 @@ -19361,10 +7723,10 @@
26123 file_magic_cmd=$lt_file_magic_cmd
26124
26125 # Flag that allows shared libraries with undefined symbols to be built.
26126 -allow_undefined_flag=$lt_allow_undefined_flag_RC
26127 +allow_undefined_flag=$lt_allow_undefined_flag
26128
26129 # Flag that forces no undefined symbols.
26130 -no_undefined_flag=$lt_no_undefined_flag_RC
26131 +no_undefined_flag=$lt_no_undefined_flag
26132
26133 # Commands used to finish a libtool library installation in a directory.
26134 finish_cmds=$lt_finish_cmds
26135 @@ -19373,13 +7735,13 @@
26136 finish_eval=$lt_finish_eval
26137
26138 # Take the output of nm and produce a listing of raw symbols and C names.
26139 -global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
26140 +global_symbol_pipe=$lt_global_symbol_pipe
26141
26142 # Transform the output of nm in a proper C declaration
26143 -global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
26144 +global_symbol_to_cdecl=$lt_global_symbol_to_cdecl
26145
26146 # Transform the output of nm in a C name address pair
26147 -global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
26148 +global_symbol_to_c_name_address=$lt_global_symbol_to_c_name_address
26149
26150 # This is the shared library runtime path variable.
26151 runpath_var=$runpath_var
26152 @@ -19391,45 +7753,36 @@
26153 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
26154
26155 # How to hardcode a shared library path into an executable.
26156 -hardcode_action=$hardcode_action_RC
26157 +hardcode_action=$hardcode_action
26158
26159 # Whether we should hardcode library paths into libraries.
26160 hardcode_into_libs=$hardcode_into_libs
26161
26162 # Flag to hardcode \$libdir into a binary during linking.
26163 # This must work even if \$libdir does not exist.
26164 -hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
26165 -
26166 -# If ld is used when linking, flag to hardcode \$libdir into
26167 -# a binary during linking. This must work even if \$libdir does
26168 -# not exist.
26169 -hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
26170 +hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
26171
26172 # Whether we need a single -rpath flag with a separated argument.
26173 -hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
26174 +hardcode_libdir_separator=$lt_hardcode_libdir_separator
26175
26176 -# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
26177 +# Set to yes if using DIR/libNAME.so during linking hardcodes DIR into the
26178 # resulting binary.
26179 -hardcode_direct=$hardcode_direct_RC
26180 +hardcode_direct=$hardcode_direct
26181
26182 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
26183 # resulting binary.
26184 -hardcode_minus_L=$hardcode_minus_L_RC
26185 +hardcode_minus_L=$hardcode_minus_L
26186
26187 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
26188 # the resulting binary.
26189 -hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
26190 -
26191 -# Set to yes if building a shared library automatically hardcodes DIR into the library
26192 -# and all subsequent libraries and executables linked against it.
26193 -hardcode_automatic=$hardcode_automatic_RC
26194 +hardcode_shlibpath_var=$hardcode_shlibpath_var
26195
26196 # Variables whose values should be saved in libtool wrapper scripts and
26197 # restored at relink time.
26198 variables_saved_for_relink="$variables_saved_for_relink"
26199
26200 # Whether libtool must link a program against all its dependency libraries.
26201 -link_all_deplibs=$link_all_deplibs_RC
26202 +link_all_deplibs=$link_all_deplibs
26203
26204 # Compile-time system search path for libraries
26205 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
26206 @@ -19438,75 +7791,234 @@
26207 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
26208
26209 # Fix the shell variable \$srcfile for the compiler.
26210 -fix_srcfile_path="$fix_srcfile_path_RC"
26211 +fix_srcfile_path="$fix_srcfile_path"
26212
26213 # Set to yes if exported symbols are required.
26214 -always_export_symbols=$always_export_symbols_RC
26215 +always_export_symbols=$always_export_symbols
26216
26217 # The commands to list exported symbols.
26218 -export_symbols_cmds=$lt_export_symbols_cmds_RC
26219 +export_symbols_cmds=$lt_export_symbols_cmds
26220
26221 # The commands to extract the exported symbol list from a shared archive.
26222 extract_expsyms_cmds=$lt_extract_expsyms_cmds
26223
26224 # Symbols that should not be listed in the preloaded symbols.
26225 -exclude_expsyms=$lt_exclude_expsyms_RC
26226 +exclude_expsyms=$lt_exclude_expsyms
26227
26228 # Symbols that must always be exported.
26229 -include_expsyms=$lt_include_expsyms_RC
26230 +include_expsyms=$lt_include_expsyms
26231
26232 -# ### END LIBTOOL TAG CONFIG: $tagname
26233 +# ### END LIBTOOL CONFIG
26234
26235 __EOF__
26236
26237 + case $host_os in
26238 + aix3*)
26239 + cat <<\EOF >> "${ofile}T"
26240
26241 -else
26242 - # If there is no Makefile yet, we rely on a make rule to execute
26243 - # `config.status --recheck' to rerun these tests and create the
26244 - # libtool script then.
26245 - ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
26246 - if test -f "$ltmain_in"; then
26247 - test -f Makefile && make "$ltmain"
26248 - fi
26249 +# AIX sometimes has problems with the GCC collect2 program. For some
26250 +# reason, if we set the COLLECT_NAMES environment variable, the problems
26251 +# vanish in a puff of smoke.
26252 +if test "X${COLLECT_NAMES+set}" != Xset; then
26253 + COLLECT_NAMES=
26254 + export COLLECT_NAMES
26255 fi
26256 +EOF
26257 + ;;
26258 + esac
26259
26260 + case $host_os in
26261 + cygwin* | mingw* | pw32* | os2*)
26262 + cat <<'EOF' >> "${ofile}T"
26263 + # This is a source program that is used to create dlls on Windows
26264 + # Don't remove nor modify the starting and closing comments
26265 +# /* ltdll.c starts here */
26266 +# #define WIN32_LEAN_AND_MEAN
26267 +# #include <windows.h>
26268 +# #undef WIN32_LEAN_AND_MEAN
26269 +# #include <stdio.h>
26270 +#
26271 +# #ifndef __CYGWIN__
26272 +# # ifdef __CYGWIN32__
26273 +# # define __CYGWIN__ __CYGWIN32__
26274 +# # endif
26275 +# #endif
26276 +#
26277 +# #ifdef __cplusplus
26278 +# extern "C" {
26279 +# #endif
26280 +# BOOL APIENTRY DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved);
26281 +# #ifdef __cplusplus
26282 +# }
26283 +# #endif
26284 +#
26285 +# #ifdef __CYGWIN__
26286 +# #include <cygwin/cygwin_dll.h>
26287 +# DECLARE_CYGWIN_DLL( DllMain );
26288 +# #endif
26289 +# HINSTANCE __hDllInstance_base;
26290 +#
26291 +# BOOL APIENTRY
26292 +# DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved)
26293 +# {
26294 +# __hDllInstance_base = hInst;
26295 +# return TRUE;
26296 +# }
26297 +# /* ltdll.c ends here */
26298 + # This is a source program that is used to create import libraries
26299 + # on Windows for dlls which lack them. Don't remove nor modify the
26300 + # starting and closing comments
26301 +# /* impgen.c starts here */
26302 +# /* Copyright (C) 1999-2000 Free Software Foundation, Inc.
26303 +#
26304 +# This file is part of GNU libtool.
26305 +#
26306 +# This program is free software; you can redistribute it and/or modify
26307 +# it under the terms of the GNU General Public License as published by
26308 +# the Free Software Foundation; either version 2 of the License, or
26309 +# (at your option) any later version.
26310 +#
26311 +# This program is distributed in the hope that it will be useful,
26312 +# but WITHOUT ANY WARRANTY; without even the implied warranty of
26313 +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
26314 +# GNU General Public License for more details.
26315 +#
26316 +# You should have received a copy of the GNU General Public License
26317 +# along with this program; if not, write to the Free Software
26318 +# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
26319 +# */
26320 +#
26321 +# #include <stdio.h> /* for printf() */
26322 +# #include <unistd.h> /* for open(), lseek(), read() */
26323 +# #include <fcntl.h> /* for O_RDONLY, O_BINARY */
26324 +# #include <string.h> /* for strdup() */
26325 +#
26326 +# /* O_BINARY isn't required (or even defined sometimes) under Unix */
26327 +# #ifndef O_BINARY
26328 +# #define O_BINARY 0
26329 +# #endif
26330 +#
26331 +# static unsigned int
26332 +# pe_get16 (fd, offset)
26333 +# int fd;
26334 +# int offset;
26335 +# {
26336 +# unsigned char b[2];
26337 +# lseek (fd, offset, SEEK_SET);
26338 +# read (fd, b, 2);
26339 +# return b[0] + (b[1]<<8);
26340 +# }
26341 +#
26342 +# static unsigned int
26343 +# pe_get32 (fd, offset)
26344 +# int fd;
26345 +# int offset;
26346 +# {
26347 +# unsigned char b[4];
26348 +# lseek (fd, offset, SEEK_SET);
26349 +# read (fd, b, 4);
26350 +# return b[0] + (b[1]<<8) + (b[2]<<16) + (b[3]<<24);
26351 +# }
26352 +#
26353 +# static unsigned int
26354 +# pe_as32 (ptr)
26355 +# void *ptr;
26356 +# {
26357 +# unsigned char *b = ptr;
26358 +# return b[0] + (b[1]<<8) + (b[2]<<16) + (b[3]<<24);
26359 +# }
26360 +#
26361 +# int
26362 +# main (argc, argv)
26363 +# int argc;
26364 +# char *argv[];
26365 +# {
26366 +# int dll;
26367 +# unsigned long pe_header_offset, opthdr_ofs, num_entries, i;
26368 +# unsigned long export_rva, export_size, nsections, secptr, expptr;
26369 +# unsigned long name_rvas, nexp;
26370 +# unsigned char *expdata, *erva;
26371 +# char *filename, *dll_name;
26372 +#
26373 +# filename = argv[1];
26374 +#
26375 +# dll = open(filename, O_RDONLY|O_BINARY);
26376 +# if (dll < 1)
26377 +# return 1;
26378 +#
26379 +# dll_name = filename;
26380 +#
26381 +# for (i=0; filename[i]; i++)
26382 +# if (filename[i] == '/' || filename[i] == '\\' || filename[i] == ':')
26383 +# dll_name = filename + i +1;
26384 +#
26385 +# pe_header_offset = pe_get32 (dll, 0x3c);
26386 +# opthdr_ofs = pe_header_offset + 4 + 20;
26387 +# num_entries = pe_get32 (dll, opthdr_ofs + 92);
26388 +#
26389 +# if (num_entries < 1) /* no exports */
26390 +# return 1;
26391 +#
26392 +# export_rva = pe_get32 (dll, opthdr_ofs + 96);
26393 +# export_size = pe_get32 (dll, opthdr_ofs + 100);
26394 +# nsections = pe_get16 (dll, pe_header_offset + 4 +2);
26395 +# secptr = (pe_header_offset + 4 + 20 +
26396 +# pe_get16 (dll, pe_header_offset + 4 + 16));
26397 +#
26398 +# expptr = 0;
26399 +# for (i = 0; i < nsections; i++)
26400 +# {
26401 +# char sname[8];
26402 +# unsigned long secptr1 = secptr + 40 * i;
26403 +# unsigned long vaddr = pe_get32 (dll, secptr1 + 12);
26404 +# unsigned long vsize = pe_get32 (dll, secptr1 + 16);
26405 +# unsigned long fptr = pe_get32 (dll, secptr1 + 20);
26406 +# lseek(dll, secptr1, SEEK_SET);
26407 +# read(dll, sname, 8);
26408 +# if (vaddr <= export_rva && vaddr+vsize > export_rva)
26409 +# {
26410 +# expptr = fptr + (export_rva - vaddr);
26411 +# if (export_rva + export_size > vaddr + vsize)
26412 +# export_size = vsize - (export_rva - vaddr);
26413 +# break;
26414 +# }
26415 +# }
26416 +#
26417 +# expdata = (unsigned char*)malloc(export_size);
26418 +# lseek (dll, expptr, SEEK_SET);
26419 +# read (dll, expdata, export_size);
26420 +# erva = expdata - export_rva;
26421 +#
26422 +# nexp = pe_as32 (expdata+24);
26423 +# name_rvas = pe_as32 (expdata+32);
26424 +#
26425 +# printf ("EXPORTS\n");
26426 +# for (i = 0; i<nexp; i++)
26427 +# {
26428 +# unsigned long name_rva = pe_as32 (erva+name_rvas+i*4);
26429 +# printf ("\t%s @ %ld ;\n", erva+name_rva, 1+ i);
26430 +# }
26431 +#
26432 +# return 0;
26433 +# }
26434 +# /* impgen.c ends here */
26435
26436 -ac_ext=c
26437 -ac_cpp='$CPP $CPPFLAGS'
26438 -ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26439 -ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26440 -ac_compiler_gnu=$ac_cv_c_compiler_gnu
26441 -
26442 -CC="$lt_save_CC"
26443 +EOF
26444 + ;;
26445 + esac
26446
26447 - ;;
26448 + # We use sed instead of cat because bash on DJGPP gets confused if
26449 + # if finds mixed CR/LF and LF-only lines. Since sed operates in
26450 + # text mode, it properly converts lines to CR/LF. This bash problem
26451 + # is reportedly fixed, but why not run on old versions too?
26452 + sed '$q' "$ltmain" >> "${ofile}T" || (rm -f "${ofile}T"; exit 1)
26453
26454 - *)
26455 - { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
26456 -echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
26457 - { (exit 1); exit 1; }; }
26458 - ;;
26459 - esac
26460 + mv -f "${ofile}T" "$ofile" || \
26461 + (rm -f "$ofile" && cp "${ofile}T" "$ofile" && rm -f "${ofile}T")
26462 + chmod +x "$ofile"
26463 +fi
26464
26465 - # Append the new tag name to the list of available tags.
26466 - if test -n "$tagname" ; then
26467 - available_tags="$available_tags $tagname"
26468 - fi
26469 - fi
26470 - done
26471 - IFS="$lt_save_ifs"
26472
26473 - # Now substitute the updated list of available tags.
26474 - if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
26475 - mv "${ofile}T" "$ofile"
26476 - chmod +x "$ofile"
26477 - else
26478 - rm -f "${ofile}T"
26479 - { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
26480 -echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
26481 - { (exit 1); exit 1; }; }
26482 - fi
26483 -fi
26484
26485
26486
26487 @@ -19521,24 +8033,6 @@
26488
26489
26490
26491 -
26492 -
26493 -
26494 -
26495 -
26496 -
26497 -
26498 -
26499 -
26500 -
26501 -
26502 -
26503 -
26504 -
26505 -
26506 -
26507 -
26508 -
26509 DEBUG="-g"
26510 if test -z "$GCC"; then
26511 XIPH_CPPFLAGS="-D_REENTRANT"
26512 @@ -19614,8 +8108,7 @@
26513 cat conftest.err >&5
26514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26515 (exit $ac_status); } &&
26516 - { ac_try='test -z "$ac_c_werror_flag"
26517 - || test ! -s conftest.err'
26518 + { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26519 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26520 (eval $ac_try) 2>&5
26521 ac_status=$?
26522 @@ -19782,8 +8275,7 @@
26523 cat conftest.err >&5
26524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26525 (exit $ac_status); } &&
26526 - { ac_try='test -z "$ac_c_werror_flag"
26527 - || test ! -s conftest.err'
26528 + { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26529 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26530 (eval $ac_try) 2>&5
26531 ac_status=$?
26532 @@ -19932,8 +8424,7 @@
26533 cat conftest.err >&5
26534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26535 (exit $ac_status); } &&
26536 - { ac_try='test -z "$ac_c_werror_flag"
26537 - || test ! -s conftest.err'
26538 + { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26539 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26540 (eval $ac_try) 2>&5
26541 ac_status=$?
26542 @@ -20086,8 +8577,7 @@
26543 cat conftest.err >&5
26544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26545 (exit $ac_status); } &&
26546 - { ac_try='test -z "$ac_c_werror_flag"
26547 - || test ! -s conftest.err'
26548 + { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26549 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26550 (eval $ac_try) 2>&5
26551 ac_status=$?
26552 @@ -20279,8 +8769,7 @@
26553 cat conftest.err >&5
26554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26555 (exit $ac_status); } &&
26556 - { ac_try='test -z "$ac_c_werror_flag"
26557 - || test ! -s conftest.err'
26558 + { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26559 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26560 (eval $ac_try) 2>&5
26561 ac_status=$?
26562 @@ -20350,8 +8839,7 @@
26563 cat conftest.err >&5
26564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26565 (exit $ac_status); } &&
26566 - { ac_try='test -z "$ac_c_werror_flag"
26567 - || test ! -s conftest.err'
26568 + { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26569 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26570 (eval $ac_try) 2>&5
26571 ac_status=$?
26572 @@ -20405,8 +8893,7 @@
26573 cat conftest.err >&5
26574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26575 (exit $ac_status); } &&
26576 - { ac_try='test -z "$ac_c_werror_flag"
26577 - || test ! -s conftest.err'
26578 + { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26579 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26580 (eval $ac_try) 2>&5
26581 ac_status=$?
26582 @@ -20476,8 +8963,7 @@
26583 cat conftest.err >&5
26584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26585 (exit $ac_status); } &&
26586 - { ac_try='test -z "$ac_c_werror_flag"
26587 - || test ! -s conftest.err'
26588 + { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26589 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26590 (eval $ac_try) 2>&5
26591 ac_status=$?
26592 @@ -20631,8 +9117,7 @@
26593 cat conftest.err >&5
26594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26595 (exit $ac_status); } &&
26596 - { ac_try='test -z "$ac_c_werror_flag"
26597 - || test ! -s conftest.err'
26598 + { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26599 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26600 (eval $ac_try) 2>&5
26601 ac_status=$?
26602 @@ -20693,8 +9178,7 @@
26603 cat conftest.err >&5
26604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26605 (exit $ac_status); } &&
26606 - { ac_try='test -z "$ac_c_werror_flag"
26607 - || test ! -s conftest.err'
26608 + { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26609 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26610 (eval $ac_try) 2>&5
26611 ac_status=$?
26612 @@ -20738,8 +9222,7 @@
26613 cat conftest.err >&5
26614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26615 (exit $ac_status); } &&
26616 - { ac_try='test -z "$ac_c_werror_flag"
26617 - || test ! -s conftest.err'
26618 + { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26619 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26620 (eval $ac_try) 2>&5
26621 ac_status=$?
26622 @@ -20813,8 +9296,7 @@
26623 cat conftest.err >&5
26624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26625 (exit $ac_status); } &&
26626 - { ac_try='test -z "$ac_c_werror_flag"
26627 - || test ! -s conftest.err'
26628 + { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26629 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26630 (eval $ac_try) 2>&5
26631 ac_status=$?
26632 @@ -20959,8 +9441,7 @@
26633 cat conftest.err >&5
26634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26635 (exit $ac_status); } &&
26636 - { ac_try='test -z "$ac_c_werror_flag"
26637 - || test ! -s conftest.err'
26638 + { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26639 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26640 (eval $ac_try) 2>&5
26641 ac_status=$?
26642 @@ -21116,8 +9597,7 @@
26643 cat conftest.err >&5
26644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26645 (exit $ac_status); } &&
26646 - { ac_try='test -z "$ac_c_werror_flag"
26647 - || test ! -s conftest.err'
26648 + { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26649 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26650 (eval $ac_try) 2>&5
26651 ac_status=$?
26652 @@ -21171,8 +9651,7 @@
26653 cat conftest.err >&5
26654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26655 (exit $ac_status); } &&
26656 - { ac_try='test -z "$ac_c_werror_flag"
26657 - || test ! -s conftest.err'
26658 + { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26659 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26660 (eval $ac_try) 2>&5
26661 ac_status=$?
26662 @@ -21246,8 +9725,7 @@
26663 cat conftest.err >&5
26664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26665 (exit $ac_status); } &&
26666 - { ac_try='test -z "$ac_c_werror_flag"
26667 - || test ! -s conftest.err'
26668 + { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26669 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26670 (eval $ac_try) 2>&5
26671 ac_status=$?
26672 @@ -21301,8 +9779,7 @@
26673 cat conftest.err >&5
26674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26675 (exit $ac_status); } &&
26676 - { ac_try='test -z "$ac_c_werror_flag"
26677 - || test ! -s conftest.err'
26678 + { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26679 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26680 (eval $ac_try) 2>&5
26681 ac_status=$?
26682 @@ -21410,8 +9887,7 @@
26683 cat conftest.err >&5
26684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26685 (exit $ac_status); } &&
26686 - { ac_try='test -z "$ac_c_werror_flag"
26687 - || test ! -s conftest.err'
26688 + { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26689 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26690 (eval $ac_try) 2>&5
26691 ac_status=$?
26692 @@ -21478,8 +9954,7 @@
26693 cat conftest.err >&5
26694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26695 (exit $ac_status); } &&
26696 - { ac_try='test -z "$ac_c_werror_flag"
26697 - || test ! -s conftest.err'
26698 + { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26699 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26700 (eval $ac_try) 2>&5
26701 ac_status=$?
26702 @@ -21524,8 +9999,7 @@
26703 cat conftest.err >&5
26704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26705 (exit $ac_status); } &&
26706 - { ac_try='test -z "$ac_c_werror_flag"
26707 - || test ! -s conftest.err'
26708 + { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26709 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26710 (eval $ac_try) 2>&5
26711 ac_status=$?
26712 @@ -21625,8 +10099,7 @@
26713 cat conftest.err >&5
26714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26715 (exit $ac_status); } &&
26716 - { ac_try='test -z "$ac_c_werror_flag"
26717 - || test ! -s conftest.err'
26718 + { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26719 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26720 (eval $ac_try) 2>&5
26721 ac_status=$?
26722 @@ -21802,8 +10275,7 @@
26723 cat conftest.err >&5
26724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26725 (exit $ac_status); } &&
26726 - { ac_try='test -z "$ac_c_werror_flag"
26727 - || test ! -s conftest.err'
26728 + { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26729 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26730 (eval $ac_try) 2>&5
26731 ac_status=$?
26732 @@ -21930,8 +10402,7 @@
26733 cat conftest.err >&5
26734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26735 (exit $ac_status); } &&
26736 - { ac_try='test -z "$ac_c_werror_flag"
26737 - || test ! -s conftest.err'
26738 + { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26739 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26740 (eval $ac_try) 2>&5
26741 ac_status=$?
26742 @@ -22009,8 +10480,7 @@
26743 cat conftest.err >&5
26744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26745 (exit $ac_status); } &&
26746 - { ac_try='test -z "$ac_c_werror_flag"
26747 - || test ! -s conftest.err'
26748 + { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26749 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26750 (eval $ac_try) 2>&5
26751 ac_status=$?
26752 @@ -22051,8 +10521,7 @@
26753 cat conftest.err >&5
26754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26755 (exit $ac_status); } &&
26756 - { ac_try='test -z "$ac_c_werror_flag"
26757 - || test ! -s conftest.err'
26758 + { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26759 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26760 (eval $ac_try) 2>&5
26761 ac_status=$?
26762 @@ -22154,8 +10623,7 @@
26763 cat conftest.err >&5
26764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26765 (exit $ac_status); } &&
26766 - { ac_try='test -z "$ac_c_werror_flag"
26767 - || test ! -s conftest.err'
26768 + { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26769 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26770 (eval $ac_try) 2>&5
26771 ac_status=$?
26772 @@ -22232,8 +10700,7 @@
26773 cat conftest.err >&5
26774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26775 (exit $ac_status); } &&
26776 - { ac_try='test -z "$ac_c_werror_flag"
26777 - || test ! -s conftest.err'
26778 + { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26779 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26780 (eval $ac_try) 2>&5
26781 ac_status=$?
26782 @@ -22282,8 +10749,7 @@
26783 cat conftest.err >&5
26784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26785 (exit $ac_status); } &&
26786 - { ac_try='test -z "$ac_c_werror_flag"
26787 - || test ! -s conftest.err'
26788 + { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26789 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26790 (eval $ac_try) 2>&5
26791 ac_status=$?
26792 @@ -22351,8 +10817,7 @@
26793 cat conftest.err >&5
26794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26795 (exit $ac_status); } &&
26796 - { ac_try='test -z "$ac_c_werror_flag"
26797 - || test ! -s conftest.err'
26798 + { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26799 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26800 (eval $ac_try) 2>&5
26801 ac_status=$?
26802 @@ -22513,8 +10978,7 @@
26803 cat conftest.err >&5
26804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26805 (exit $ac_status); } &&
26806 - { ac_try='test -z "$ac_c_werror_flag"
26807 - || test ! -s conftest.err'
26808 + { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26809 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26810 (eval $ac_try) 2>&5
26811 ac_status=$?
26812 @@ -22586,8 +11050,7 @@
26813 cat conftest.err >&5
26814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26815 (exit $ac_status); } &&
26816 - { ac_try='test -z "$ac_c_werror_flag"
26817 - || test ! -s conftest.err'
26818 + { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26819 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26820 (eval $ac_try) 2>&5
26821 ac_status=$?
26822 @@ -22639,8 +11102,7 @@
26823 cat conftest.err >&5
26824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26825 (exit $ac_status); } &&
26826 - { ac_try='test -z "$ac_c_werror_flag"
26827 - || test ! -s conftest.err'
26828 + { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26829 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26830 (eval $ac_try) 2>&5
26831 ac_status=$?
26832 @@ -22792,8 +11254,7 @@
26833 cat conftest.err >&5
26834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26835 (exit $ac_status); } &&
26836 - { ac_try='test -z "$ac_c_werror_flag"
26837 - || test ! -s conftest.err'
26838 + { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26839 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26840 (eval $ac_try) 2>&5
26841 ac_status=$?
26842 @@ -22866,8 +11327,7 @@
26843 cat conftest.err >&5
26844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26845 (exit $ac_status); } &&
26846 - { ac_try='test -z "$ac_c_werror_flag"
26847 - || test ! -s conftest.err'
26848 + { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26849 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26850 (eval $ac_try) 2>&5
26851 ac_status=$?
26852 @@ -22917,8 +11377,7 @@
26853 cat conftest.err >&5
26854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26855 (exit $ac_status); } &&
26856 - { ac_try='test -z "$ac_c_werror_flag"
26857 - || test ! -s conftest.err'
26858 + { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26859 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26860 (eval $ac_try) 2>&5
26861 ac_status=$?
26862 @@ -22969,8 +11428,7 @@
26863 cat conftest.err >&5
26864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26865 (exit $ac_status); } &&
26866 - { ac_try='test -z "$ac_c_werror_flag"
26867 - || test ! -s conftest.err'
26868 + { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26869 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26870 (eval $ac_try) 2>&5
26871 ac_status=$?
26872 @@ -23118,8 +11576,7 @@
26873 cat conftest.err >&5
26874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26875 (exit $ac_status); } &&
26876 - { ac_try='test -z "$ac_c_werror_flag"
26877 - || test ! -s conftest.err'
26878 + { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26879 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26880 (eval $ac_try) 2>&5
26881 ac_status=$?
26882 @@ -23299,8 +11756,7 @@
26883 cat conftest.err >&5
26884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26885 (exit $ac_status); } &&
26886 - { ac_try='test -z "$ac_c_werror_flag"
26887 - || test ! -s conftest.err'
26888 + { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26889 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26890 (eval $ac_try) 2>&5
26891 ac_status=$?
26892 @@ -23371,8 +11827,7 @@
26893 cat conftest.err >&5
26894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26895 (exit $ac_status); } &&
26896 - { ac_try='test -z "$ac_c_werror_flag"
26897 - || test ! -s conftest.err'
26898 + { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26899 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26900 (eval $ac_try) 2>&5
26901 ac_status=$?
26902 @@ -23448,8 +11903,7 @@
26903 cat conftest.err >&5
26904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26905 (exit $ac_status); } &&
26906 - { ac_try='test -z "$ac_c_werror_flag"
26907 - || test ! -s conftest.err'
26908 + { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26909 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26910 (eval $ac_try) 2>&5
26911 ac_status=$?
26912 @@ -23654,7 +12108,11 @@
26913
26914 fi;
26915
26916 -if test "x$curl_prefix" != "x" -a "x$curl_prefix" != "xyes"; then
26917 +curl_ok="yes"
26918 +
26919 +if test "x$curl_prefix" == "xno"; then
26920 + curl_ok="no"
26921 +elif test "x$curl_prefix" != "x" -a "x$curl_prefix" != "xyes"; then
26922 CURL_LIBS="-L$curl_prefix/lib -lcurl"
26923 CURL_CFLAGS="-I$curl_prefix/include"
26924 elif test "x$CURL_CONFIG" != "x"; then
26925 @@ -23675,8 +12133,8 @@
26926 CURL_CFLAGS="-I$curl_prefix/include"
26927 fi
26928
26929 -curl_ok="yes"
26930 -
26931 +if test "$curl_ok" = "yes"
26932 +then
26933 xt_curl_CPPFLAGS="$CPPFLAGS"
26934 xt_curl_LIBS="$LIBS"
26935 CPPFLAGS="$CPPFLAGS $CURL_CFLAGS"
26936 @@ -23715,8 +12173,7 @@
26937 cat conftest.err >&5
26938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26939 (exit $ac_status); } &&
26940 - { ac_try='test -z "$ac_c_werror_flag"
26941 - || test ! -s conftest.err'
26942 + { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26943 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26944 (eval $ac_try) 2>&5
26945 ac_status=$?
26946 @@ -23835,16 +12292,7 @@
26947
26948 echo "$as_me:$LINENO: checking for libcurl" >&5
26949 echo $ECHO_N "checking for libcurl... $ECHO_C" >&6
26950 -if test "$curl_ok" = "yes"
26951 -then
26952 - if test "$cross_compiling" = yes; then
26953 - { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
26954 -See \`config.log' for more details." >&5
26955 -echo "$as_me: error: cannot run test program while cross compiling
26956 -See \`config.log' for more details." >&2;}
26957 - { (exit 1); exit 1; }; }
26958 -else
26959 - cat >conftest.$ac_ext <<_ACEOF
26960 +cat >conftest.$ac_ext <<_ACEOF
26961 /* confdefs.h. */
26962 _ACEOF
26963 cat confdefs.h >>conftest.$ac_ext
26964 @@ -23858,12 +12306,22 @@
26965 }
26966
26967 _ACEOF
26968 -rm -f conftest$ac_exeext
26969 +rm -f conftest.$ac_objext conftest$ac_exeext
26970 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26971 - (eval $ac_link) 2>&5
26972 + (eval $ac_link) 2>conftest.er1
26973 + ac_status=$?
26974 + grep -v '^ *+' conftest.er1 >conftest.err
26975 + rm -f conftest.er1
26976 + cat conftest.err >&5
26977 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
26978 + (exit $ac_status); } &&
26979 + { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26980 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26981 + (eval $ac_try) 2>&5
26982 ac_status=$?
26983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26984 - (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26985 + (exit $ac_status); }; } &&
26986 + { ac_try='test -s conftest$ac_exeext'
26987 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26988 (eval $ac_try) 2>&5
26989 ac_status=$?
26990 @@ -23871,16 +12329,13 @@
26991 (exit $ac_status); }; }; then
26992 :
26993 else
26994 - echo "$as_me: program exited with status $ac_status" >&5
26995 -echo "$as_me: failed program was:" >&5
26996 + echo "$as_me: failed program was:" >&5
26997 sed 's/^/| /' conftest.$ac_ext >&5
26998
26999 -( exit $ac_status )
27000 curl_ok="no"
27001 fi
27002 -rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
27003 -fi
27004 -fi
27005 +rm -f conftest.err conftest.$ac_objext \
27006 + conftest$ac_exeext conftest.$ac_ext
27007 if test "$curl_ok" = "yes"; then
27008 echo "$as_me:$LINENO: result: yes" >&5
27009 echo "${ECHO_T}yes" >&6
27010 @@ -23924,8 +12379,7 @@
27011 cat conftest.err >&5
27012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27013 (exit $ac_status); } &&
27014 - { ac_try='test -z "$ac_c_werror_flag"
27015 - || test ! -s conftest.err'
27016 + { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27017 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27018 (eval $ac_try) 2>&5
27019 ac_status=$?
27020 @@ -24003,6 +12457,7 @@
27021 fi
27022 CPPFLAGS="$xt_curl_CPPFLAGS"
27023 LIBS="$xt_curl_LIBS"
27024 +fi
27025
27026 # Check whether --enable-yp or --disable-yp was given.
27027 if test "${enable_yp+set}" = set; then
27028 @@ -24734,22 +13189,12 @@
27029 s,@host_cpu@,$host_cpu,;t t
27030 s,@host_vendor@,$host_vendor,;t t
27031 s,@host_os@,$host_os,;t t
27032 -s,@EGREP@,$EGREP,;t t
27033 s,@LN_S@,$LN_S,;t t
27034 s,@ECHO@,$ECHO,;t t
27035 -s,@AR@,$AR,;t t
27036 -s,@ac_ct_AR@,$ac_ct_AR,;t t
27037 s,@RANLIB@,$RANLIB,;t t
27038 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
27039 s,@CPP@,$CPP,;t t
27040 -s,@CXX@,$CXX,;t t
27041 -s,@CXXFLAGS@,$CXXFLAGS,;t t
27042 -s,@ac_ct_CXX@,$ac_ct_CXX,;t t
27043 -s,@CXXDEPMODE@,$CXXDEPMODE,;t t
27044 -s,@CXXCPP@,$CXXCPP,;t t
27045 -s,@F77@,$F77,;t t
27046 -s,@FFLAGS@,$FFLAGS,;t t
27047 -s,@ac_ct_F77@,$ac_ct_F77,;t t
27048 +s,@EGREP@,$EGREP,;t t
27049 s,@LIBTOOL@,$LIBTOOL,;t t
27050 s,@XSLTCONFIG@,$XSLTCONFIG,;t t
27051 s,@FGREP@,$FGREP,;t t
27052 @@ -24953,11 +13398,6 @@
27053 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
27054 esac
27055
27056 - if test x"$ac_file" != x-; then
27057 - { echo "$as_me:$LINENO: creating $ac_file" >&5
27058 -echo "$as_me: creating $ac_file" >&6;}
27059 - rm -f "$ac_file"
27060 - fi
27061 # Let's still pretend it is `configure' which instantiates (i.e., don't
27062 # use $as_me), people would be surprised to read:
27063 # /* config.h. Generated by config.status. */
27064 @@ -24996,6 +13436,12 @@
27065 fi;;
27066 esac
27067 done` || { (exit 1); exit 1; }
27068 +
27069 + if test x"$ac_file" != x-; then
27070 + { echo "$as_me:$LINENO: creating $ac_file" >&5
27071 +echo "$as_me: creating $ac_file" >&6;}
27072 + rm -f "$ac_file"
27073 + fi
27074 _ACEOF
27075 cat >>$CONFIG_STATUS <<_ACEOF
27076 sed "$ac_vpsub
27077 diff -ruN icecast-2.3.0-old/m4/xiph_curl.m4 icecast-2.3.0-new/m4/xiph_curl.m4
27078 --- icecast-2.3.0-old/m4/xiph_curl.m4 2005-08-19 04:02:00.000000000 +0200
27079 +++ icecast-2.3.0-new/m4/xiph_curl.m4 2005-10-02 12:34:19.000000000 +0200
27080 @@ -14,7 +14,11 @@
27081 AC_HELP_STRING([--with-curl-config=curl-config],[Use curl-config to find libcurl]),
27082 CURL_CONFIG="$withval", [AC_PATH_PROGS(CURL_CONFIG, [curl-config], "")])
27083
27084 -if test "x$curl_prefix" != "x" -a "x$curl_prefix" != "xyes"; then
27085 +curl_ok="yes"
27086 +
27087 +if test "x$curl_prefix" == "xno"; then
27088 + curl_ok="no"
27089 +elif test "x$curl_prefix" != "x" -a "x$curl_prefix" != "xyes"; then
27090 CURL_LIBS="-L$curl_prefix/lib -lcurl"
27091 CURL_CFLAGS="-I$curl_prefix/include"
27092 elif test "x$CURL_CONFIG" != "x"; then
27093 @@ -33,8 +37,8 @@
27094 CURL_CFLAGS="-I$curl_prefix/include"
27095 fi
27096
27097 -curl_ok="yes"
27098 -
27099 +if test "$curl_ok" = "yes"
27100 +then
27101 xt_curl_CPPFLAGS="$CPPFLAGS"
27102 xt_curl_LIBS="$LIBS"
27103 CPPFLAGS="$CPPFLAGS $CURL_CFLAGS"
27104 @@ -44,16 +48,13 @@
27105 dnl
27106 AC_CHECK_HEADERS([curl/curl.h],, curl_ok="no")
27107 AC_MSG_CHECKING(for libcurl)
27108 -if test "$curl_ok" = "yes"
27109 -then
27110 - AC_RUN_IFELSE(AC_LANG_SOURCE([
27111 +AC_LINK_IFELSE(AC_LANG_SOURCE([
27112 #include <curl/curl.h>
27113 int main()
27114 {
27115 return 0;
27116 }
27117 ]),,[curl_ok="no"])
27118 -fi
27119 if test "$curl_ok" = "yes"; then
27120 AC_MSG_RESULT(yes)
27121 AC_DEFINE(HAVE_CURL, 1, [Define if you have libcurl.])
27122 @@ -66,4 +67,5 @@
27123 fi
27124 CPPFLAGS="$xt_curl_CPPFLAGS"
27125 LIBS="$xt_curl_LIBS"
27126 +fi
27127 ])
This page took 1.2901 seconds and 5 git commands to generate.